/* -------------------------------------------------------------------
   Government Arts & Science College, Tamil Nadu - Modern Stylesheet
   Color Identity Preserved: Deep Green (#166534 / #0B3D1E), Royal Gold (#D4AF37),
   Warm Light Gold (#FFF8E7), Olive Accent (#3E4C2A / #4B5320)
   ------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-color: #166534;
  --primary-dark: #0B3D1E;
  --bs-primary: #166534;
  --bs-primary-rgb: 22, 101, 52;
  --bs-link-color: #166534;
  --bs-link-color-rgb: 22, 101, 52;
  --bs-link-hover-color: #0B3D1E;
  --bs-link-hover-color-rgb: 11, 61, 30;
  --secondary-color: #D4AF37;
  --secondary-hover: #b89324;
  --accent-gold: #D4AF37;
  --accent-gold-light: #FFF8E7;
  --olive-accent: #4B5320;
  --olive-dark: #3E4C2A;
  --dark-text: #0F172A;
  --muted-text: #64748B;
  --light-bg: #F8FAFC;
  --card-border: rgba(226, 232, 240, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 12px rgba(22, 101, 52, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(22, 101, 52, 0.08), 0 8px 10px -6px rgba(22, 101, 52, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(22, 101, 52, 0.14), 0 10px 15px -5px rgba(22, 101, 52, 0.06);
  --shadow-glow-gold: 0 0 25px rgba(212, 175, 55, 0.35);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Bootstrap Overrides to match Palette */
.text-primary {
  color: var(--accent-gold) !important;
}

.bg-primary {
  background-color: var(--accent-gold) !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background-color: #FFFFFF;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  transition: var(--transition-fast);
}

/* -------------------------------------------------------------------
   Top Announcement Bar
   ------------------------------------------------------------------- */
.top-bar {
  background: linear-gradient(90deg, #0B3D1E 0%, #3a2a07 50%, #0B3D1E 100%);
  color: #FFF8E7;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  letter-spacing: 0.2px;
}

.top-bar a {
  color: #FFF8E7;
  transition: var(--transition-fast);
}

.top-bar a:hover {
  color: var(--accent-gold);
}

/* Accessibility & language tools (top bar, right) */
.top-tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 0;
}

.top-tools > li {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-left: 1px solid rgba(212, 175, 55, 0.4);
}

.top-tools > li:first-child {
  border-left: none;
}

.top-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.font-size-tools {
  gap: 4px;
}

.font-size-btn {
  min-width: 30px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 4px;
  background: transparent;
  color: #FFF8E7;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  transition: var(--transition-fast);
}

.font-size-btn:hover,
.font-size-btn:focus-visible {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b89324 100%);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.82rem;
  transition: var(--transition-fast);
}

.lang-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.45);
}

@media (max-width: 991.98px) {
  .top-tools { justify-content: center; }
}

@media (max-width: 575.98px) {
  .top-tools > li { padding: 0 8px; }
}

#main-content:focus {
  outline: none;
}

/* Hide Google Translate's own toolbar/popups; the top-bar toggle replaces them */
.goog-te-banner-frame,
.skiptranslate > iframe,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

.top-bar .badge-live {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b89324 100%);
  color: var(--primary-dark);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar .badge-live::before {
  content: '';
  width: 7px;
  height: 7px;
  background-color: var(--primary-dark);
  border-radius: 50%;
  animation: pulse-live 1.6s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.top-bar .badge-affiliated {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #FFF8E7;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

/* -------------------------------------------------------------------
   Title Header (TN emblem | Centered college name | College logo)
   ------------------------------------------------------------------- */
.site-header {
  background: linear-gradient(135deg, #FFFDF7 0%, #FFF8E7 45%, #F5E6BE 100%);
  padding: 14px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.site-header-logo img {
  height: 96px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.15));
  transition: var(--transition-fast);
}

.site-header-logo img:hover {
  transform: scale(1.05);
}

.site-header-logo-right {
  gap: 12px;
}

@media (max-width: 767.98px) {
  .site-header-logo-right { gap: 6px; }
}

@media (max-width: 575.98px) {
  .site-header-logo-affiliate { display: none; }
}

.site-header-title {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.site-title-tamil {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 900;
  color: #C8940A;
  text-shadow: 0 1px 1px rgba(90, 60, 0, 0.35);
  -webkit-text-stroke: 0.4px #C8940A;
  line-height: 1.35;
}

.site-title-main {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  color: #1B6B2F;
  line-height: 1.15;
  letter-spacing: 0.3px;
}

.site-title-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--olive-dark);
  letter-spacing: 0.3px;
}

@media (max-width: 1199.98px) {
  .site-header-logo img { height: 84px; }
  .site-title-main { font-size: 1.95rem; }
  .site-title-tamil { font-size: 1.2rem; }
}

@media (max-width: 991.98px) {
  .site-header-logo img { height: 70px; }
  .site-title-main { font-size: 1.55rem; }
  .site-title-tamil { font-size: 1.05rem; }
  .site-title-sub { font-size: 0.8rem; }
}

@media (max-width: 767.98px) {
  .site-header { padding: 10px 0; }
  .site-header-inner { gap: 8px; }
  .site-header-logo img { height: 54px; }
  .site-title-main { font-size: 1.1rem; }
  .site-title-tamil { font-size: 0.85rem; }
  .site-title-sub { display: none; }
}

@media (max-width: 400px) {
  .site-header-logo img { height: 44px; }
  .site-title-main { font-size: 0.95rem; }
  .site-title-tamil { font-size: 0.75rem; }
}

@media (min-width: 1920px) {
  .site-header-logo img { height: 110px; }
  .site-title-main { font-size: 2.75rem; }
  .site-title-tamil { font-size: 1.5rem; }
}

/* -------------------------------------------------------------------
   Menu Bar (Green, Sticky)
   ------------------------------------------------------------------- */
.navbar-custom {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-sm);
  padding: 6px 0;
  border-top: 3px solid var(--accent-gold);
  border-bottom: 3px solid var(--accent-gold);
  transition: var(--transition-smooth);
}

.navbar-custom .container {
  flex-wrap: nowrap;
}

.navbar-toggler {
  flex-shrink: 0;
  color: #fff;
}

.navbar-mobile-label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
}

.navbar-custom.scrolled {
  box-shadow: var(--shadow-md);
}

.brand-tamil {
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.navbar-custom .brand-tamil {
  font-size: 1.15rem;
}

.header-college-name {
  font-size: 1.25rem;
  font-weight: 800;
}



footer .brand-tamil {
  color: rgba(255, 255, 255, 0.85);
}

.header-right-logo {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  transition: var(--transition-fast);
  filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.15));
}

.header-right-logo:hover {
  transform: scale(1.06) rotate(1deg);
  filter: drop-shadow(0px 6px 12px rgba(0, 0, 0, 0.22));
}

.navbar-collapse {
  justify-content: flex-end;
}

/* -------------------------------------------------------------------
   Mobile Navigation Drawer (Offcanvas)
   ------------------------------------------------------------------- */
.nav-drawer {
  --bs-offcanvas-width: 300px;
  background: linear-gradient(180deg, #FFFDF7 0%, #FFF8E7 100%);
}

.nav-drawer .offcanvas-header {
  border-bottom: 2px solid var(--accent-gold);
}

.nav-drawer .navbar-nav {
  align-items: stretch;
  margin-left: 0;
  gap: 8px;
}

.nav-drawer .nav-link {
  text-align: left;
}

@media (max-width: 991.98px) {
  .nav-drawer .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    margin-top: 0;
    width: 100%;
  }
}

@media (min-width: 992px) {
  .nav-drawer,
  .nav-drawer .offcanvas-body {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }
}

.navbar-nav {
  gap: 12px;
  margin-left: auto;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark-text) !important;
  padding: 8px 18px !important;
  border-radius: 30px;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-dark) !important;
  background-color: rgba(212, 175, 55, 0.15);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary-dark) !important;
  background: linear-gradient(135deg, #E5C158 0%, #D4AF37 100%);
  border: 1px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

/* Desktop menu bar: light links on green */
@media (min-width: 992px) {
  .navbar-custom .navbar-nav {
    margin-left: auto;
    margin-right: auto;
    gap: 6px;
  }
  .navbar-custom .nav-link {
    color: #fff !important;
    text-transform: uppercase;
    font-size: 0.92rem;
    letter-spacing: 0.6px;
  }
  .navbar-custom .nav-link:hover,
  .navbar-custom .nav-link.show {
    color: var(--accent-gold) !important;
    background-color: rgba(255, 255, 255, 0.08);
  }
  .navbar-custom .nav-link.active {
    color: var(--primary-dark) !important;
  }
  .navbar-custom .dropdown-menu {
    margin-top: 8px;
  }
}

.dropdown-menu {
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-top: 12px;
  animation: dropdownFade 0.25s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  color: var(--dark-text);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--accent-gold-light);
  color: var(--primary-dark);
  transform: translateX(4px);
}

.courses-dropdown-toggle::after {
  display: none;
}

/* -------------------------------------------------------------------
   Buttons & Badges (Modern Glass & Glow Utilities)
   ------------------------------------------------------------------- */
.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c49f2b 100%);
  color: var(--primary-dark) !important;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e5bd3d 0%, var(--accent-gold) 100%);
  color: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.45);
}

.btn-gold:active {
  transform: translateY(-1px);
}

.btn-outline-gold {
  border: 2px solid var(--accent-gold);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-gold:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-gold);
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 6px 20px rgba(22, 101, 52, 0.25);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #062913 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(22, 101, 52, 0.35);
}

.btn-outline-custom {
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 50px;
  background: transparent;
  transition: var(--transition-smooth);
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: #FFFFFF !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent-gold);
  color: var(--primary-dark) !important;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  transition: var(--transition-fast);
}

.btn-accent:hover {
  background-color: #c49f2b;
  transform: translateY(-2px);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-gold-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.section-badge-gold {
  background: linear-gradient(135deg, #FFF8E7 0%, #F8E6B8 100%);
  color: #8B6508;
  font-weight: 800;
  border-color: rgba(212, 175, 55, 0.4);
}

.section-badge-olive {
  background-color: #4B5320;
  color: #FFFFFF;
}

.event-link-olive {
  color: #4B5320;
  font-weight: 700;
}

.event-link-olive:hover {
  color: #333914;
}

.faculty-role-olive {
  color: #4B5320;
}

.campus-visit-olive {
  background-color: #4B5320;
}

.quote-olive {
  color: #4B5320;
}

.timeline-year {
  background-color: #4B5320 !important;
  color: #FFFFFF;
}

/* -------------------------------------------------------------------
   Hero Section Carousel & Page Headers
   ------------------------------------------------------------------- */
.hero-section {
  position: relative;
  margin-bottom: 0;
}

/* -------------------------------------------------------------------
   News Scroller (below hero slider)
   ------------------------------------------------------------------- */
.news-ticker {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  border-bottom: 3px solid var(--accent-gold);
  color: #fff;
  overflow: hidden;
}

.news-ticker .container {
  padding-left: 0;
  padding-right: 0;
}

.news-ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  padding-right: 32px;
}

.news-ticker-track {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
}

.news-ticker-content {
  display: flex;
  width: max-content;
  animation: news-scroll 45s linear infinite;
}

.news-ticker:hover .news-ticker-content,
.news-ticker:focus-within .news-ticker-content {
  animation-play-state: paused;
}

.news-ticker-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-ticker-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 0 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-right: 1px solid rgba(212, 175, 55, 0.45);
}

.news-ticker-list li > .bi {
  color: var(--accent-gold);
}

.news-ticker-list a {
  color: var(--accent-gold);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.news-ticker-list a:hover {
  color: #fff;
  text-decoration: underline;
}

@keyframes news-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .news-ticker-content { animation: none; }
  .news-ticker-track { overflow-x: auto; }
}

@media (max-width: 575.98px) {
  .news-ticker-label {
    padding: 10px 24px 10px 14px;
    font-size: 0.8rem;
  }
  .news-ticker-label .bi { display: none; }
  .news-ticker-list li { font-size: 0.85rem; padding: 0 20px; }
}

.hero-carousel .carousel-item {
  height: 75vh;
  min-height: 520px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(11, 61, 30, 0.92) 0%, rgba(22, 101, 52, 0.80) 50%, rgba(139, 101, 8, 0.65) 100%);
  display: flex;
  align-items: center;
  padding-bottom: 75px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #E2E8F0;
  max-width: 680px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-carousel .carousel-indicators {
  bottom: 35px;
  margin-bottom: 1.5rem;
}

.carousel-indicators [data-bs-target] {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.carousel-indicators .active {
  width: 38px;
  border-radius: 20px;
  background-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.9);
}

/* Modern Hero Slider Navigation Arrows */
.hero-nav-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(11, 61, 30, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF !important;
  border: 2px solid rgba(212, 175, 55, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9 !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.hero-nav-btn:hover {
  background: linear-gradient(135deg, #E5C158 0%, #D4AF37 100%);
  color: #0B3D1E !important;
  border-color: #FFFFFF;
  transform: translateY(-50%) scale(1.14);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.7);
  opacity: 1 !important;
}

.carousel-control-prev.hero-nav-btn {
  left: 25px;
}

.carousel-control-next.hero-nav-btn {
  right: 25px;
}

@media (max-width: 767.98px) {
  .hero-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .carousel-control-prev.hero-nav-btn {
    left: 10px;
  }
  .carousel-control-next.hero-nav-btn {
    right: 10px;
  }
}

.page-header-banner {
  background: linear-gradient(135deg, #0B3D1E 0%, #166534 50%, #8B6508 100%);
  border-bottom: 4px solid var(--accent-gold);
  color: #FFFFFF;
  padding: 85px 0 65px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header-banner .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.page-header-banner h1,
.page-header-banner .about-page-title {
  color: #FFFFFF !important;
  font-size: clamp(2rem, 4vw, 3rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  text-align: center;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 900px;
  width: 100%;
}

.about-tamil-title {
  font-size: clamp(1.1rem, 4vw, 2rem);
  white-space: nowrap;
  max-width: 100%;
}

.about-english-title {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.about-affiliation-title {
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  font-weight: 500;
}

.page-header-banner p {
  color: #FFF8E7 !important;
  font-weight: 500;
  max-width: 750px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

.page-header-banner .breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto !important;
  margin-right: auto !important;
}

.page-header-banner .breadcrumb a {
  color: #FFE699;
  font-weight: 600;
}

.page-header-banner .breadcrumb-item.active {
  color: #FFFFFF !important;
  font-weight: 600;
}

.page-header-banner::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* -------------------------------------------------------------------
   CTA Admission Gold Banner
   ------------------------------------------------------------------- */
.cta-gold-banner {
  background: linear-gradient(135deg, #0B3D1E 0%, #166534 40%, #8B6508 100%);
  border-top: 3px solid var(--accent-gold);
  border-bottom: 3px solid var(--accent-gold);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta-gold-banner h2 {
  color: #FFFFFF !important;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.cta-gold-banner p {
  color: #FFF8E7 !important;
  font-weight: 500;
}

.cta-gold-banner .btn-dark-custom {
  background-color: var(--primary-dark);
  color: #FFFFFF !important;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 6px 20px rgba(11, 61, 30, 0.5);
  transition: var(--transition-smooth);
}

.cta-gold-banner .btn-dark-custom:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-gold);
}

/* -------------------------------------------------------------------
   Stats Section (Bento Card Aesthetics)
   ------------------------------------------------------------------- */
.stat-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--card-border);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
  opacity: 0;
  transition: var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.4);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card i {
  font-size: 2.8rem;
  color: var(--accent-gold);
  margin-bottom: 16px;
  display: inline-block;
  background: var(--accent-gold-light);
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
  transition: var(--transition-fast);
}

.stat-card:hover i {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary-dark);
  color: var(--accent-gold);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: 8px;
}

/* -------------------------------------------------------------------
   Course & Bento Feature Cards
   ------------------------------------------------------------------- */
.card-hover {
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: #FFFFFF;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.4);
}

.card-hover .card-img-top-wrapper {
  position: relative;
  overflow: hidden;
  height: 230px;
}

.card-hover .card-img-top-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover .card-img-top-wrapper img {
  transform: scale(1.1);
}

.badge-category {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(11, 61, 30, 0.88);
  backdrop-filter: blur(8px);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 0.88rem;
  color: var(--muted-text);
  font-weight: 500;
}

/* -------------------------------------------------------------------
   Filter Tabs
   ------------------------------------------------------------------- */
.filter-btn {
  background: #F1F5F9;
  color: var(--dark-text);
  border: 1px solid var(--card-border);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  margin: 4px;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.25);
}

.filter-btn.all-degrees:hover,
.filter-btn.all-degrees.active,
.filter-btn.undergraduate-filter:hover,
.filter-btn.undergraduate-filter.active,
.filter-btn.postgraduate-filter:hover,
.filter-btn.postgraduate-filter.active,
.filter-btn.doctorate-filter:hover,
.filter-btn.doctorate-filter.active {
  background: var(--primary-dark);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow-gold);
}

.course-details-olive {
  background-color: #4B5320;
  color: #FFFFFF !important;
  border-color: #4B5320;
}

.course-details-olive:hover {
  background-color: #333914;
  color: #FFFFFF !important;
  border-color: #333914;
}

/* -------------------------------------------------------------------
   Gallery Grid
   ------------------------------------------------------------------- */
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 270px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.12);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 61, 30, 0.90) 0%, rgba(11, 61, 30, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* -------------------------------------------------------------------
   Timeline Components (About & Admissions)
   ------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 3px solid var(--accent-gold);
}

.timeline-item {
  position: relative;
  margin-bottom: 34px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 4px solid #FFFFFF;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
}

/* -------------------------------------------------------------------
   Testimonial Cards
   ------------------------------------------------------------------- */
.testimonial-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
  position: relative;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card i.quote-icon {
  font-size: 3.2rem;
  color: rgba(212, 175, 55, 0.2);
  position: absolute;
  top: 20px;
  right: 25px;
}

/* -------------------------------------------------------------------
   Modern Testimonial Carousel Arrow Controls
   ------------------------------------------------------------------- */
.testimonial-carousel-wrapper {
  position: relative;
  padding: 0 45px;
}

@media (max-width: 767.98px) {
  .testimonial-carousel-wrapper {
    padding: 0;
  }
}

.testimonial-nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B3D1E 0%, #166534 100%);
  color: #D4AF37 !important;
  border: 2px solid #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 20px rgba(11, 61, 30, 0.35);
  transition: var(--transition-smooth);
  opacity: 1 !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.testimonial-nav-btn:hover {
  background: linear-gradient(135deg, #E5C158 0%, #D4AF37 100%);
  color: #0B3D1E !important;
  border-color: #D4AF37;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

.carousel-control-prev.testimonial-nav-btn {
  left: 0;
}

.carousel-control-next.testimonial-nav-btn {
  right: 0;
}

/* -------------------------------------------------------------------
   Accordion Gold Theme Override
   ------------------------------------------------------------------- */
.accordion-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  margin-bottom: 12px;
}

.accordion-button {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.05rem;
  padding: 18px 24px;
  background-color: #FFFFFF;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-dark);
  background-color: var(--accent-gold-light);
  border-left: 5px solid var(--accent-gold);
  box-shadow: inset 0 -1px 0 rgba(212, 175, 55, 0.2);
}

.accordion-button:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* -------------------------------------------------------------------
   Footer Section (Logo Green Color Palette)
   ------------------------------------------------------------------- */
footer {
  background: linear-gradient(180deg, #3E4C2A 0%, #223315 100%);
  color: #FFFFFF;
  padding-top: 75px;
  padding-bottom: 35px;
  border-top: 4px solid var(--accent-gold);
  position: relative;
}

footer h5 {
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 24px;
  position: relative;
  letter-spacing: -0.01em;
}

footer h5::after {
  content: '';
  display: block;
  width: 42px;
  height: 3.5px;
  background: var(--accent-gold);
  margin-top: 8px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

footer ul li {
  margin-bottom: 12px;
}

footer ul li a {
  color: #F1F5F9;
  font-weight: 500;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

footer ul li a:hover {
  color: var(--accent-gold);
  transform: translateX(5px);
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: var(--transition-smooth);
}

.social-icon-btn:hover {
  background: var(--accent-gold);
  color: #030712;
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-gold);
}

/* -------------------------------------------------------------------
   Back to Top Button
   ------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b89324 100%);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 999;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(11, 61, 30, 0.5);
}

/* -------------------------------------------------------------------
   Responsive Customizations & Multi-Resolution Support (Mobile to 4K)
   ------------------------------------------------------------------- */

/* --- 1. Ultra-Wide & High-Resolution Monitors (1920px, 2K 2560px, 4K 3840px) --- */
@media (min-width: 1920px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1680px;
  }
  body {
    font-size: 1.08rem;
  }
  .display-4 {
    font-size: 3.5rem;
  }
  .display-6 {
    font-size: 2.5rem;
  }
  .hero-carousel .carousel-item {
    min-height: 720px;
  }
}

@media (min-width: 2560px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 2160px;
  }
  body {
    font-size: 1.18rem;
    line-height: 1.75;
  }
  h1, .display-4 {
    font-size: 4.2rem;
  }
  h2, .display-6 {
    font-size: 3rem;
  }
  .hero-carousel .carousel-item {
    min-height: 800px;
  }
  .card {
    border-radius: 24px !important;
  }
  .navbar-brand-logo span {
    font-size: 1.35rem;
  }
}

@media (min-width: 3840px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 3200px;
  }
  body {
    font-size: 1.45rem;
  }
  h1, .display-4 {
    font-size: 5.5rem;
  }
  h2, .display-6 {
    font-size: 3.8rem;
  }
  .hero-carousel .carousel-item {
    min-height: 950px;
  }
  .navbar-brand-logo img {
    max-height: 75px;
  }
  .navbar-brand-logo span {
    font-size: 1.6rem;
  }
  .btn {
    padding: 16px 36px;
    font-size: 1.2rem;
    border-radius: 50px;
  }
}

/* --- 2. Laptops & Medium Desktops (992px to 1199px) --- */
@media (max-width: 1199.98px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .navbar-brand-logo span {
    font-size: 1.05rem;
  }
}

/* --- 3. Tablets & Mobile Landscape (768px to 991px) --- */
@media (max-width: 991.98px) {
  .top-bar {
    padding: 10px 0;
  }
  .top-bar .row > div {
    text-align: center !important;
    justify-content: center !important;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-carousel .carousel-item {
    height: 420px;
    min-height: 0;
  }
  .hero-overlay {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .navbar-nav .nav-link {
    padding: 10px 15px !important;
  }
  .hero-nav-btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    bottom: 20px;
  }
  .hero-nav-btn.carousel-control-prev {
    right: 70px;
  }
  .hero-nav-btn.carousel-control-next {
    right: 20px;
  }
}

/* --- 4. Mobile Phones Portrait (< 768px) --- */
@media (max-width: 767.98px) {
  body {
    font-size: 0.95rem;
  }
  .page-header-banner {
    padding: 45px 0 35px;
  }
  .about-tamil-title {
    white-space: normal;
    font-size: 1.15rem;
    line-height: 1.4;
    padding: 0 10px;
  }
  .page-header-banner h1 {
    font-size: 2rem;
  }
  .display-6 {
    font-size: 1.75rem;
  }
  .stat-card {
    padding: 20px;
  }
  .stat-number {
    font-size: 2.2rem;
  }
  .hero-content h1 {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .hero-content p {
    font-size: 0.95rem;
  }
  .hero-carousel .carousel-indicators {
    bottom: 15px;
  }
  .top-bar {
    font-size: 0.8rem;
  }
  .badge-affiliated {
    font-size: 0.72rem;
    padding: 3px 10px;
  }
}

/* --- 5. Small Mobile Screens (< 576px) --- */
@media (max-width: 575.98px) {
  .navbar-brand-logo {
    gap: 8px;
  }
  .navbar-brand-logo .brand-text {
    overflow: visible;
  }
  .navbar-brand-logo img {
    max-height: 44px;
  }
  .navbar-brand-logo span,
  .header-college-name {
    font-size: 0.78rem;
    line-height: 1.25;
  }
  .navbar-custom .brand-tamil {
    font-size: 0.72rem;
    line-height: 1.25;
  }
  .hero-carousel .carousel-item {
    height: 240px;
    min-height: 0;
  }
  .hero-overlay {
    padding-top: 45px;
    padding-bottom: 55px;
  }
  .btn-gold, .btn-outline-gold, .btn-primary, .btn-outline-custom {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
  .stat-card i {
    font-size: 2rem;
  }
  .card {
    margin-bottom: 10px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

/* -------------------------------------------------------------------
   Photo Gallery
   ------------------------------------------------------------------- */
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md, 14px);
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--primary-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}


.gallery-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gold);
  color: var(--primary-dark);
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition-fast);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.07);
}

.gallery-item:hover .gallery-zoom,
.gallery-item:focus-visible .gallery-zoom {
  opacity: 1;
  transform: scale(1);
}

.gallery-item:hover {
  border-color: var(--accent-gold);
}

.gallery-lightbox .modal-content {
  background: transparent;
  border: none;
  position: relative;
  align-items: center;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  border: 3px solid var(--accent-gold);
}


.gallery-close {
  position: absolute;
  top: -40px;
  right: 0;
  opacity: 1;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }

.gallery-nav:hover {
  background: #e5bd3d;
}

.modal-backdrop.show {
  opacity: 0.88;
}
