/* 
   RITAM College Website - Stylesheet
   Design & Architecture Inspired by vimsrayagada.in
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --vims-blue: #434ef6;
  --vims-blue-hover: #2e3be8;
  --vims-red: #b90202;
  --vims-red-hover: #9c0202;
  --vims-dark-border: #414141;
  --vims-divider: rgba(0, 0, 0, 0.43);
  --vims-black: #000000;
  --vims-white: #ffffff;
  --vims-gray-bg: #f9fafb;
  --vims-border-light: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--vims-black);
  background-color: var(--vims-white);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ===================================================
   TOP HEADER (3-Column Layout)
   =================================================== */
.site-header {
  padding: 16px 0;
  background-color: var(--vims-white);
  border-bottom: 1px solid var(--vims-border-light);
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: center;
  gap: 20px;
}

.header-logo img {
  height: 85px;
  width: auto;
  object-contain: contain;
}

.header-center {
  text-align: center;
}

.header-title {
  color: var(--vims-red);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 4px;
}

.header-subtitle {
  color: var(--vims-black);
  font-size: 13px;
  font-weight: 500;
}

.header-right {
  text-align: right;
}

.header-affiliation {
  color: var(--vims-red);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* Mobile Header Hamburger */
.mobile-nav-bar-header {
  display: none;
}

.mobile-nav-title {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #ffffff;
  cursor: pointer;
}

/* ===================================================
   NAVIGATION BAR (#434ef6 with 2px #414141 borders)
   =================================================== */
.nav-wrapper {
  background-color: var(--vims-blue);
  border-top: 2px solid var(--vims-dark-border);
  border-bottom: 2px solid var(--vims-dark-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  color: var(--vims-white);
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  padding: 13px 14px;
  display: inline-block;
  position: relative;
  letter-spacing: 0.3px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--vims-black);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--vims-black);
}

/* Dropdown styling */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--vims-blue);
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 1px solid var(--vims-dark-border);
  z-index: 105;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-dropdown-menu a:hover {
  background-color: #313de0;
  color: var(--vims-white);
}

/* ===================================================
   NEWS UPDATE TICKER
   =================================================== */
.news-ticker-bar {
  background-color: var(--vims-white);
  border-bottom: 2px solid var(--vims-dark-border);
  padding: 8px 0;
}

.ticker-flex {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-label {
  font-weight: 700;
  color: var(--vims-black);
  font-size: 14px;
  padding-right: 14px;
  white-space: nowrap;
  border-right: 2px solid #ccc;
  flex-shrink: 0;
}

.ticker-marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  padding-left: 14px;
  width: 100%;
}

.ticker-marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-anim 28s linear infinite;
}

.ticker-marquee:hover {
  animation-play-state: paused;
}

.ticker-marquee a {
  color: var(--vims-red);
  font-weight: 600;
  font-size: 13.5px;
}

.ticker-marquee a:hover {
  text-decoration: underline;
}

@keyframes marquee-anim {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===================================================
   HERO SLIDER (400px height with 50% dark overlay)
   =================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: #000000;
}

.slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-item.active {
  opacity: 1;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-content {
  max-width: 760px;
  text-align: center;
  color: var(--vims-white);
  padding: 0 20px;
  z-index: 5;
}

.slide-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}

.slide-content p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: var(--vims-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  z-index: 10;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background-color 0.2s;
}

.slider-dot.active {
  background-color: var(--vims-blue);
}

/* ===================================================
   PAGE HEADER / HERO BANNER (FOR INNER 9 PAGES)
   =================================================== */
.page-banner {
  background-color: #f3f4f6;
  border-bottom: 2px solid var(--vims-dark-border);
  padding: 36px 0;
}

.page-banner-title {
  color: var(--vims-red);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.breadcrumbs {
  font-size: 13px;
  color: #4b5563;
}

.breadcrumbs a {
  color: var(--vims-blue);
  font-weight: 600;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ===================================================
   MAIN CONTENT GRID & VIMS 3-COLUMN SECTIONS
   =================================================== */
.main-content-section {
  padding: 50px 0;
}

.vims-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.vims-col {
  display: flex;
  flex-direction: column;
}

.vims-heading {
  color: var(--vims-red);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.vims-heading.centered {
  text-align: center;
}

.vims-subheading {
  color: var(--vims-black);
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 8px;
}

.vims-divider {
  border: 0;
  border-top: 1px solid var(--vims-divider);
  margin: 22px 0;
}

.text-justify {
  text-align: justify;
}

p.body-text {
  font-size: 15px;
  color: var(--vims-black);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* Leader photo wrapper */
.leader-portrait {
  width: 195px;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  margin-bottom: 10px;
}

/* ===================================================
   VIMS RED CHECKMARK ICON LISTS
   =================================================== */
.vims-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vims-check-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.vims-check-list.uppercase-items li {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13.5px;
}

.vims-check-list .check-icon {
  color: var(--vims-red);
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
  font-size: 14px;
}

.vims-check-list a {
  color: var(--vims-black);
}

.vims-check-list a:hover {
  color: var(--vims-red);
  text-decoration: underline;
}

/* ===================================================
   DATA TABLES (For Programs, Fees, Approvals)
   =================================================== */
.vims-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
  background-color: var(--vims-white);
  border: 1px solid #d1d5db;
}

.vims-table th {
  background-color: var(--vims-blue);
  color: var(--vims-white);
  padding: 12px 14px;
  font-weight: 600;
  text-align: left;
  border: 1px solid #2e3be8;
}

.vims-table td {
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
}

.vims-table tr:nth-child(even) {
  background-color: var(--vims-gray-bg);
}

.vims-table tr:hover {
  background-color: #f1f5f9;
}

.badge-red {
  color: var(--vims-red);
  font-weight: 700;
}

/* ===================================================
   FACULTY CARDS GRID
   =================================================== */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.faculty-card {
  border: 1px solid var(--vims-border-light);
  border-radius: 6px;
  padding: 20px 16px;
  text-align: center;
  background-color: var(--vims-white);
  transition: transform 0.2s, box-shadow 0.2s;
}

.faculty-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--vims-blue);
}

.faculty-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid var(--vims-red);
}

.faculty-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--vims-black);
  margin-bottom: 2px;
}

.faculty-desig {
  font-size: 13px;
  color: var(--vims-red);
  font-weight: 600;
}

.faculty-dept {
  font-size: 12px;
  color: #4b5563;
  margin-top: 4px;
}

.faculty-interest {
  font-size: 11px;
  color: #6b7280;
  margin-top: 6px;
  border-top: 1px dashed #e5e7eb;
  padding-top: 6px;
}

/* ===================================================
   FORM STYLING
   =================================================== */
.vims-form-group {
  margin-bottom: 16px;
}

.vims-label {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: var(--vims-black);
}

.vims-input, .vims-select, .vims-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.vims-input:focus, .vims-select:focus, .vims-textarea:focus {
  border-color: var(--vims-blue);
  box-shadow: 0 0 0 2px rgba(67, 78, 246, 0.15);
}

.vims-btn-primary {
  background-color: var(--vims-blue);
  color: var(--vims-white);
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.2s;
  text-transform: uppercase;
}

.vims-btn-primary:hover {
  background-color: var(--vims-blue-hover);
}

.vims-btn-red {
  background-color: var(--vims-red);
  color: var(--vims-white);
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.2s;
  text-transform: uppercase;
}

.vims-btn-red:hover {
  background-color: var(--vims-red-hover);
}

/* ===================================================
   FOOTER (VIMS 3-Column + Bottom Copyright)
   =================================================== */
.site-footer {
  border-top: 2px solid var(--vims-dark-border);
  border-bottom: 2px solid var(--vims-dark-border);
  background-color: var(--vims-white);
  padding: 36px 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 12px;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--vims-black);
  margin-bottom: 4px;
}

.footer-sub {
  font-size: 12px;
  color: #374151;
  margin-bottom: 12px;
}

.footer-address {
  font-size: 13px;
  color: #1f2937;
  line-height: 1.6;
}

.footer-map-frame {
  width: 100%;
  height: 170px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}

.footer-bottom {
  background-color: var(--vims-blue);
  color: var(--vims-white);
  padding: 14px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.footer-bottom a {
  color: var(--vims-white);
  text-decoration: underline;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: var(--vims-black);
}

/* Scroll To Top */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--vims-blue);
  color: var(--vims-white);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: background-color 0.2s, transform 0.2s;
  z-index: 99;
}

.scroll-top-btn:hover {
  background-color: var(--vims-blue-hover);
  transform: translateY(-2px);
}

/* ===================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   =================================================== */
@media (max-width: 992px) {
  .header-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }
  .header-right {
    text-align: center;
  }
  .header-logo {
    display: flex;
    justify-content: center;
  }
  .vims-3col-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-slider-section {
    height: 320px;
  }
  .slide-content h2 {
    font-size: 24px;
  }
  .slide-content p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .nav-wrapper .container {
    padding: 0 16px;
  }
  .mobile-nav-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 0;
  }
  .mobile-nav-title {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
  }
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 22px;
    line-height: 1;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .mobile-toggle:hover, .mobile-toggle:active {
    background: rgba(255, 255, 255, 0.25);
  }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #3641e6;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    padding: 6px 0 10px 0;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    width: 100%;
    padding: 13px 18px;
    font-size: 13.5px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .main-nav a:last-child {
    border-bottom: none;
  }
  .main-nav a:hover, .main-nav a.active {
    background-color: #2730b8;
    color: #ffffff;
  }
  .nav-dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    background-color: #2e3be8;
    padding-left: 20px;
  }
  /* Responsive Tables */
  .vims-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  /* Prevent iOS Safari form input zoom */
  .vims-input, .vims-select, .vims-textarea {
    font-size: 16px !important;
  }
  /* Page Banner on Tablets/Phones */
  .page-banner {
    padding: 24px 0;
  }
  .page-banner-title {
    font-size: 22px;
  }
  /* Hero Slider on Tablets */
  .hero-slider-section {
    height: 280px;
  }
  .slide-content h2 {
    font-size: 20px;
    line-height: 1.3;
  }
  .slide-content p {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .header-logo img {
    height: 68px;
  }
  .header-title {
    font-size: 17px;
    line-height: 1.25;
  }
  .header-subtitle {
    font-size: 11.5px;
  }
  .header-affiliation {
    font-size: 11px;
  }
  .hero-slider-section {
    height: 230px;
  }
  .slide-content {
    padding: 14px 16px;
  }
  .slide-content h2 {
    font-size: 16px;
    margin-bottom: 0;
  }
  .slide-content p {
    display: none;
  }
  .slider-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  .slider-btn.prev { left: 8px; }
  .slider-btn.next { right: 8px; }
  .ticker-label {
    font-size: 12px;
    padding-right: 10px;
  }
  .ticker-marquee a {
    font-size: 12px;
  }
  .vims-heading {
    font-size: 18px;
  }
  .footer-title {
    font-size: 16px;
  }
  .scroll-top-btn {
    bottom: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
}
