/* ===================================================================
   Bilim Portal Modern v2 Design System
   Primary Colors: Deep Green (#107C41, #107C41), Light Green (#10B981, #EBF7EE), White (#FFFFFF)
   =================================================================== */

/* Local System Font Stack (100% Offline / Fast Loading) */
:root {
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  
  /* Primary Green Palette */
  --green-950: #1B4D33;
  --green-900: #166534;
  --green-800: #248255;
  --green-700: #2E9E66;
  --green-600: #34A870;
  --green-500: #10B981;
  --green-400: #34D399;
  --green-300: #6EE7B7;
  --green-200: #A7F3D0;
  --green-100: #D1FAE5;
  --green-50:  #F0FDF4;
  --green-surface: #EBF7EE;
  
  /* Gold Accent Palette */
  --gold-600: #A0801D;
  --gold-500: #C9A227;
  --gold-400: #DDB83B;
  --gold-200: #F4EAC9;
  --gold-100: #FDF9EC;
  
  /* Neutral / Ink Palette */
  --ink-950: #09140E;
  --ink-900: #0F2419;
  --ink-800: #1F2937;
  --ink-700: #374151;
  --ink-600: #4B5563;
  --ink-500: #6B7280;
  --ink-400: #9CA3AF;
  --ink-300: #D1D5DB;
  --ink-200: #E5E7EB;
  --ink-100: #F3F4F6;
  --ink-50:  #F9FAFB;
  
  /* Base */
  --bg-body: #F4F6F8;
  --bg-card: #FFFFFF;
  --border-light: #E2E8F0;
  --border-card: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 45px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --max-w: 1280px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--ink-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

img, svg, video {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

.container-custom,
.std-container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container-custom,
  .std-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  .container-custom,
  .std-container {
    max-width: 1360px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Utility Top Bar */
.top-utility-bar {
  background: #148A4C !important;
  background: linear-gradient(90deg, #107C41 0%, #158A50 50%, #107C41 100%) !important;
  color: #DCFCE7 !important;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.lang-btn {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  color: #2E5A42;
  transition: all 0.2s;
}

.lang-btn:hover, .lang-btn.active {
  background: #248255; color: #FFFFFF;
  color: #FFFFFF;
}

/* Header Masthead */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.site-header.is-scrolled .top-utility-bar { background: #148A4C !important; }

.site-header.is-scrolled .header-masthead {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

.site-header.is-scrolled .brand-emblem {
  width: 44px;
  height: 44px;
}

.site-header.is-scrolled .brand-title {
  font-size: 1.05rem;
}

.site-header.is-scrolled .brand-subtitle {
  display: none;
}

.site-header.is-scrolled .main-nav-bar .nav-link-item {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.header-masthead {
  background: linear-gradient(-45deg, #FFFFFF 0%, #F0FDF4 25%, #E2F5E9 50%, #F5FBF7 75%, #FFFFFF 100%);
  background-size: 300% 300%;
  animation: mastheadGradientFlow 14s ease infinite;
  color: #0F2419;
  border-bottom: 1px solid #D5EBDC;
  position: relative;
  overflow: hidden;
  will-change: background-position;
}

.header-masthead::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 200%;
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.16), rgba(52, 211, 153, 0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: mastheadGlowFloat 10s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes mastheadGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes mastheadGlowFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-30px, 15px) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: translate(20px, -10px) scale(0.95);
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-masthead,
  .header-masthead::after {
    animation: none !important;
  }
}

.brand-emblem {
  width: 62px;
  height: 62px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  transition: all 0.2s ease;
}

.brand-title {
  font-size: 1.35rem;
  color: #0F2419 !important;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.brand-subtitle {
  font-size: 0.8125rem;
  color: #2E5A42;
  font-weight: 500;
  margin-top: 2px;
}

.national-motto {
  font-size: 0.875rem;
  color: #1E293B !important;
  max-width: 460px;
  text-align: right;
  line-height: 1.4;
}

/* Navigation Bar (Light Green Theme) */
.main-nav-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(8, 58, 33, 0.08);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.mobile-sticky-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 14px rgba(8, 58, 33, 0.08);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.main-nav-bar.nav-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(8, 58, 33, 0.12) !important;
}

.mobile-sticky-bar.nav-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(8, 58, 33, 0.12) !important;
}

/* Scroll To Top Button (100% Reliable Floating Widget) */
#scroll-to-top {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: #107C41 !important;
  color: #FFFFFF !important;
  border: 2px solid rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  cursor: pointer !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(16px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
}

#scroll-to-top.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

#scroll-to-top:hover {
  background: #107C41 !important;
  border-color: #C9A227 !important;
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
}

#scroll-to-top:active {
  transform: translateY(0) scale(0.95) !important;
}

.nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem !important;
  font-weight: 800 !important;
  color: #1E293B;
  position: relative;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0.1rem 0.05rem;
  text-decoration: none;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.2 !important;
}

@media (min-width: 1360px) {
  .nav-link-item {
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem !important;
    gap: 0.4rem;
  }
}

.nav-link-item:hover {
  background: #F0FDF4 !important;
  color: #166534 !important;
}

.nav-link-item:hover *,
.nav-link-item:hover span,
.nav-link-item:hover svg {
  color: #166534 !important;
}

.nav-link-item.active,
.nav-link-item.is-active,
.nav-link-item:active,
.nav-link-item[class*="active"],
.nav-link-item[class*="bg-[#107C41]"],
.nav-link-item[class*="bg-emerald"] {
  background: #107C41 !important;
  background-color: #107C41 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(16, 124, 65, 0.35) !important;
}

.nav-link-item.active *,
.nav-link-item.active span,
.nav-link-item.active svg,
.nav-link-item.is-active *,
.nav-link-item.is-active span,
.nav-link-item.is-active svg,
.nav-link-item:active *,
.nav-link-item:active span,
.nav-link-item:active svg,
.nav-link-item[class*="active"] *,
.nav-link-item[class*="active"] span,
.nav-link-item[class*="active"] svg,
.nav-link-item[class*="bg-[#107C41]"] *,
.nav-link-item[class*="bg-[#107C41]"] span,
.nav-link-item[class*="bg-[#107C41]"] svg,
.nav-link-item[class*="bg-emerald"] *,
.nav-link-item[class*="bg-emerald"] span,
.nav-link-item[class*="bg-emerald"] svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.04) !important;
  padding: 8px !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.group:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 16px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #1E293B !important;
  border-radius: 10px !important;
  border-left: 3px solid transparent !important;
  transition: all 0.2s ease !important;
  margin-bottom: 3px !important;
}

.nav-dropdown-item:hover {
  background: #F0FDF4 !important;
  color: #166534 !important;
  border-left-color: #22C55E !important;
  padding-left: 20px !important;
  box-shadow: 0 1px 3px rgba(34, 197, 94, 0.1) !important;
}

.nav-dropdown-item.active {
  background: #248255 !important;
  color: #FFFFFF !important;
  border-left-color: #F59E0B !important;
  font-weight: 800 !important;
}

/* Hero Banner Swiper Pagination & Controls */
.heroBannerSwiper .swiper-pagination-bullet {
  background: #FFFFFF !important;
  opacity: 0.6 !important;
  width: 9px !important;
  height: 9px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}

.heroBannerSwiper .swiper-pagination-bullet-active {
  background: #10B981 !important;
  opacity: 1 !important;
  width: 28px !important;
  border-radius: 6px !important;
}

/* Breaking Ticker */
.breaking-ticker {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  overflow: hidden;
}

.ticker-badge {
  background: #107C41;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ticker-scroll {
  display: flex;
  white-space: nowrap;
  animation: ticker-move 35s linear infinite;
}

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

@keyframes ticker-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Banner Framed Slider */
.hero-banner-container {
  border: 2.5px solid #10B981;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(16, 185, 129, 0.18), 0 4px 14px rgba(0, 0, 0, 0.08);
  background: #FFFFFF;
}

@media (min-width: 768px) {
  .hero-banner-container {
    border-radius: 28px;
    border-width: 3px;
  }
}

.heroBannerSwiper .swiper-slide img,
.heroBannerSwiper .swiper-slide video {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.heroBannerSwiper .swiper-pagination-bullet {
  background: #FFFFFF;
  opacity: 0.6;
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}

.heroBannerSwiper .swiper-pagination-bullet-active {
  background: #10B981;
  opacity: 1;
  width: 28px;
  border-radius: 6px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--green-500);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #107C41;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

/* Quick Hero Cards Row */
.quick-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 20;
}

@media (min-width: 768px) {
  .quick-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quick-news-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quick-news-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-500);
  box-shadow: var(--shadow-xl);
}

/* Services Grid (Köp soralýan hyzmatlar) */
.services-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.services-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-400);
  box-shadow: var(--shadow-lg);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--green-surface);
  color: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  transition: all 0.2s;
}

.services-card:hover .service-icon-box {
  background: var(--green-800);
  color: #FFFFFF;
}

/* Section Header */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-700);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.15rem;
  }
}

.section-link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-800);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--green-surface);
  transition: all 0.2s;
}

.section-link-more:hover {
  background: var(--green-800);
  color: #FFFFFF;
}

/* News Modern Grid */
.news-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .news-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-main-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card-v2 {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.news-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-300);
}

.news-card-thumb {
  height: 200px;
  width: 100%;
  object-fit: cover;
  background: var(--green-surface);
  transition: transform 0.35s ease;
}

.news-card-v2:hover .news-card-thumb {
  transform: scale(1.04);
}

/* Scientific Articles Bento */
.article-featured-card {
  background: linear-gradient(135deg, #072F1B 0%, #0E653A 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(201, 162, 39, 0.2), transparent 60%);
  pointer-events: none;
}

.article-list-item {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s;
}

.article-list-item:hover {
  border-color: var(--green-500);
  background: var(--green-50);
  transform: translateX(4px);
}

/* Stats Counter Banner */
.stats-banner {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 0;
  box-shadow: inset 0 2px 8px rgba(8, 58, 33, 0.02);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--green-800);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 2.75rem;
  }
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-600);
}

/* Interactive Calendar Component */
.calendar-card-v2 {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calendar-header-v2 {
  background: #107C41;
  color: #FFFFFF;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-day-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-500);
  text-align: center;
  padding: 0.5rem 0;
}

.calendar-day-box {
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  color: #374151;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.calendar-day-box:hover {
  border-color: #10B981;
  background: #F0FDF4;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Days with Events (Rich Emerald Background & Border) */
.calendar-day-box.has-event {
  background: #EBF7EE;
  background: linear-gradient(145deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1.5px solid #10B981;
  color: #064E3B;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

.calendar-day-box.has-event::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #107C41;
  box-shadow: 0 0 0 2px #A7F3D0;
}

.calendar-day-box.has-event:hover {
  background: #A7F3D0;
  border-color: #107C41;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

/* Today's Date */
.calendar-day-box.is-today {
  background: #107C41 !important;
  color: #FFFFFF !important;
  border: 2px solid #C9A227 !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 14px rgba(8, 58, 33, 0.4) !important;
}

.calendar-day-box.is-today.has-event::after {
  background: #FBBF24 !important;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.5) !important;
}

/* Journal Issue Cards */
.journal-issue-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}

.journal-issue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-500);
}

.journal-cover-box {
  height: 180px;
  background: linear-gradient(135deg, #16A34A 0%, #107C41 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Institutions & University Cards */
.institution-card-v2 {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all 0.25s;
}

.institution-card-v2:hover {
  transform: translateY(-4px);
  border-color: var(--green-500);
  box-shadow: var(--shadow-lg);
}

.institution-logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-surface);
  border: 2px solid var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

/* Footer Section */
.footer-v2 {
  background: #148A4C;
  background: linear-gradient(180deg, #148A4C 0%, #0F763E 100%);
  color: #E2F2E8;
  border-top: 3px solid #22C55E;
  padding-top: 3.5rem;
  padding-bottom: 0;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFFFFF !important;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 0.75rem;
  border-left: 3px solid #F59E0B;
}

.footer-heading::after {
  display: none;
}

.footer-link {
  display: block;
  color: #DCFCE7 !important;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.65rem;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: #FFFFFF !important;
  font-weight: 700;
  transform: translateX(4px);
}

.footer-bottom-full {
  width: 100%;
  background: #0F763E !important;
  background: linear-gradient(90deg, #0E6E3A 0%, #127E45 50%, #0E6E3A 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #DCFCE7 !important;
}

@media (min-width: 768px) {
  .footer-bottom-full {
    width: 100%;
    background: #0F763E !important;
    background: linear-gradient(90deg, #0E6E3A 0%, #127E45 50%, #0E6E3A 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #DCFCE7 !important;
  }
}

/* ===================================================================
   Exact Proposal Hero Slider (.hslider) Styles
   =================================================================== */
.hslider {
  background: #107C41;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.hslider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.hslide {
  color: #FFFFFF;
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hslide-bg-photo {
  background-size: cover;
  background-position: center 38%;
}

.hslide .pattern {
  opacity: 0.12;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hslide .inner {
  max-width: 720px;
  padding: 56px 0 152px;
  position: relative;
  z-index: 10;
}

.hslide .kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FDF9EC;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  margin-bottom: 8px;
}

.hslide .kicker::before {
  content: "";
  background: #C9A227;
  border-radius: 2px;
  width: 28px;
  height: 3px;
  display: inline-block;
}

.hslide h1, .hslide h2 {
  letter-spacing: -0.02em;
  max-width: 26ch;
  margin: 14px 0 14px;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hslide p {
  color: #D7E8DE;
  max-width: 58ch;
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
}

.hslide .cta {
  color: #107C41;
  border-radius: 10px;
  background: #FFFFFF;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  cursor: pointer;
}

.hslide .cta:hover {
  background: #EBF7EE;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hslider-ui-outer {
  pointer-events: none;
  position: absolute;
  bottom: 84px;
  left: 0;
  right: 0;
  z-index: 30;
}

.hslider-ui {
  pointer-events: auto;
  align-items: center;
  gap: 18px;
  display: flex;
}

.hslider-ui .dots {
  gap: 8px;
  display: flex;
  align-items: center;
}

.hslider-ui .dots button {
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  border-radius: 2px;
  width: 28px;
  height: 4px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s;
}

.hslider-ui .dots button.on {
  background: #C9A227;
  width: 44px;
}

.hslider-ui .count {
  color: #BCD8C8;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
}

.hslider-ui .sp {
  flex: 1;
}

.hslider-ui .arrow {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid;
  cursor: pointer;
  transition: all 0.2s;
}

.hslider-ui .arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #FFFFFF;
  transform: scale(1.05);
}

/* ===================================================================
   Exact Proposal Hero Cards Layered Overlap (Refined & Aligned)
   =================================================================== */
.hero-cards {
  z-index: 20;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: -54px;
  display: grid;
  position: relative;
  margin-bottom: 2.5rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .hero-cards {
    grid-template-columns: 1fr;
    margin-top: -36px;
    gap: 14px;
  }
}

.hero-card {
  background: #FFFFFF;
  border: 1px solid #E4ECE7;
  border-radius: 16px;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 20px 22px;
  display: flex;
  box-shadow: 0 10px 28px rgba(8, 58, 33, 0.1);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s, border-color 0.2s;
  height: 100%;
  min-height: 135px;
  box-sizing: border-box;
}

.hero-card:hover {
  border-color: #10B981;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(8, 58, 33, 0.16);
}

.hero-card time {
  color: #6B7280;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.hero-card b {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-card .read {
  color: #107C41;
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-card:hover .read {
  color: #107C41;
}

/* ===================================================================
   Active Navigation Link & Dropdown Styling
   =================================================================== */
.nav-link-item.active {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

.nav-link-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: #C9A227;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.6);
}

.nav-dropdown-item.active {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #F6D878 !important;
  font-weight: 700 !important;
  border-left: 3px solid #C9A227;
  padding-left: calc(1.4rem - 3px);
}

/* ===================================================================
   Region Details Modal Table Styles
   =================================================================== */
#modal-table-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  font-size: 0.875rem;
}

#modal-table-container th {
  background: #107C41;
  color: #FFFFFF;
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #C9A227;
  font-size: 0.8125rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

#modal-table-container td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #F3F4F6;
  color: #374151;
  vertical-align: middle;
  line-height: 1.5;
}

#modal-table-container tr:last-child td {
  border-bottom: none;
}

#modal-table-container tbody tr:hover {
  background-color: #F0FDF4;
}

#modal-table-container tbody tr:nth-child(even) {
  background-color: #FAFAF9;
}

/* ===================================================================
   Accessibility (A11y) Modes & Controls (WCAG 2.1 AAA Compliant)
   =================================================================== */

/* 1. Font Size Scaling */
html.a11y-font-sm { font-size: 88% !important; }
html.a11y-font-md { font-size: 100% !important; }
html.a11y-font-lg { font-size: 116% !important; }
html.a11y-font-xl { font-size: 132% !important; }

/* 2. Black & White High Contrast (Ak-Gara) */
html.a11y-contrast-bw,
html.a11y-contrast-bw body {
  background: #FFFFFF !important;
  color: #000000 !important;
}
html.a11y-contrast-bw * {
  border-color: #000000 !important;
  box-shadow: none !important;
}
html.a11y-contrast-bw a,
html.a11y-contrast-bw h1,
html.a11y-contrast-bw h2,
html.a11y-contrast-bw h3,
html.a11y-contrast-bw h4,
html.a11y-contrast-bw h5,
html.a11y-contrast-bw p,
html.a11y-contrast-bw span {
  color: #000000 !important;
}
html.a11y-contrast-bw .bg-white,
html.a11y-contrast-bw .bg-gray-50,
html.a11y-contrast-bw .bg-gray-100,
html.a11y-contrast-bw .bg-emerald-50,
html.a11y-contrast-bw .bg-[#107C41],
html.a11y-contrast-bw .header-nav-bar,
html.a11y-contrast-bw .footer-v2 {
  background: #FFFFFF !important;
  color: #000000 !important;
  border: 1px solid #000000 !important;
}

/* 3. Inverted Dark High Contrast (Gara-Ak) */
html.a11y-contrast-dark,
html.a11y-contrast-dark body {
  background: #000000 !important;
  color: #FFFFFF !important;
}
html.a11y-contrast-dark * {
  border-color: #555555 !important;
  box-shadow: none !important;
}
html.a11y-contrast-dark a,
html.a11y-contrast-dark h1,
html.a11y-contrast-dark h2,
html.a11y-contrast-dark h3,
html.a11y-contrast-dark h4,
html.a11y-contrast-dark h5,
html.a11y-contrast-dark p,
html.a11y-contrast-dark span {
  color: #FFFFFF !important;
}
html.a11y-contrast-dark .bg-white,
html.a11y-contrast-dark .bg-gray-50,
html.a11y-contrast-dark .bg-gray-100,
html.a11y-contrast-dark .bg-emerald-50,
html.a11y-contrast-dark .header-nav-bar,
html.a11y-contrast-dark .footer-v2 {
  background: #111111 !important;
  color: #FFFFFF !important;
}

/* 4. Sepia / Soft Tint (Sary-Gara) */
html.a11y-contrast-sepia,
html.a11y-contrast-sepia body {
  background: #F8F1E0 !important;
  color: #382A13 !important;
}
html.a11y-contrast-sepia * {
  border-color: #8C6F3D !important;
}
html.a11y-contrast-sepia .bg-white,
html.a11y-contrast-sepia .bg-gray-50,
html.a11y-contrast-sepia .header-nav-bar,
html.a11y-contrast-sepia .footer-v2 {
  background: #EFE4CA !important;
  color: #382A13 !important;
}

/* 5. Images Toggle */
html.a11y-hide-images img,
html.a11y-hide-images video,
html.a11y-hide-images iframe {
  opacity: 0.1 !important;
  filter: grayscale(100%) !important;
}

.nav-link-item.active,
.nav-link-item[class*="active"],
a.nav-link-item.active,
button.nav-link-item.active {
  background-color: #107C41 !important;
  background: #107C41 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(16, 124, 65, 0.35) !important;
}

.nav-link-item.active *,
.nav-link-item.active span,
.nav-link-item.active svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* Brandbook Hero Banner Gradient Styling */
.hero-banner-brand-gradient {
  background: #FFFFFF;
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 35%, #E1F5E8 70%, #F7FCF9 100%);
  border-bottom: 1px solid #D5EBDC;
  position: relative;
}

.hero-banner-brand-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(52, 211, 153, 0.25), transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(16, 124, 65, 0.3), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.heroSwiper .swiper-pagination-bullet {
  background: #107C41 !important;
  opacity: 0.3 !important;
  width: 10px !important;
  height: 10px !important;
  transition: all 0.3s ease !important;
}

.heroSwiper .swiper-pagination-bullet-active {
  background: #107C41 !important;
  opacity: 1 !important;
  width: 32px !important;
  border-radius: 9999px !important;
}

#scroll-to-top.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  display: flex !important;
}

/* 100% Guaranteed Visible & Smooth Card Animations */
.services-card,
.news-card-v2,
.institution-card-v2,
.journal-issue-card,
.rating-card {
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
  will-change: transform, box-shadow;
}

.services-card:hover,
.news-card-v2:hover,
.institution-card-v2:hover,
.journal-issue-card:hover,
.rating-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 40px -12px rgba(16, 124, 65, 0.2), 0 8px 18px -4px rgba(0, 0, 0, 0.06) !important;
  border-color: #107C41 !important;
}

.news-card-thumb,
.news-card-v2 img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.news-card-v2:hover .news-card-thumb,
.news-card-v2:hover img {
  transform: scale(1.05) !important;
}

/* Soft Edge Feathering and Lighter Luminous Ambient Banner */
.banner-soft-edge {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.05) 2%, rgba(0, 0, 0, 0.4) 6%, rgba(0, 0, 0, 0.8) 10%, black 14%, black 86%, rgba(0, 0, 0, 0.8) 90%, rgba(0, 0, 0, 0.4) 94%, rgba(0, 0, 0, 0.05) 98%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.05) 2%, rgba(0, 0, 0, 0.4) 6%, rgba(0, 0, 0, 0.8) 10%, black 14%, black 86%, rgba(0, 0, 0, 0.8) 90%, rgba(0, 0, 0, 0.4) 94%, rgba(0, 0, 0, 0.05) 98%, transparent 100%);
  filter: drop-shadow(0 4px 25px rgba(0, 0, 0, 0.08));
}

.hero-banner-brand-gradient {
  background: #FFFFFF;
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 35%, #E1F5E8 70%, #F7FCF9 100%);
  border-bottom: 1px solid #D5EBDC;
  position: relative;
}

/* ===================================================================
   Rich Interactive Card Animations (Elevate, Glass Sheen & Icon Spring)
   =================================================================== */

.services-card,
.news-card-v2,
.quick-news-card,
.institution-card-v2,
.journal-issue-card,
.rating-card {
  position: relative !important;
  overflow: hidden !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.28s ease !important;
  will-change: transform, box-shadow;
}

/* Glass Sheen Light Ray Reflection */
.services-card::after,
.news-card-v2::after,
.quick-news-card::after,
.institution-card-v2::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: left 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 15;
}

.services-card:hover::after,
.news-card-v2:hover::after,
.quick-news-card:hover::after,
.institution-card-v2:hover::after {
  left: 150%;
}

/* Hover Lift & Emerald Shadow */
.services-card:hover,
.news-card-v2:hover,
.quick-news-card:hover,
.institution-card-v2:hover,
.journal-issue-card:hover,
.rating-card:hover {
  transform: translateY(-8px) scale(1.015) !important;
  box-shadow: 0 24px 44px -10px rgba(16, 124, 65, 0.22), 0 8px 20px -4px rgba(0, 0, 0, 0.08) !important;
  border-color: #107C41 !important;
}

/* Service Icon Box Spring & Glow */
.service-icon-box {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              background-color 0.25s ease, 
              color 0.25s ease, 
              box-shadow 0.3s ease !important;
}

.services-card:hover .service-icon-box {
  transform: scale(1.18) rotate(5deg) !important;
  background: #107C41 !important;
  color: #FFFFFF !important;
  box-shadow: 0 12px 24px -4px rgba(16, 124, 65, 0.4) !important;
}

/* News Thumbnail Smooth Zoom with Depth */
.news-card-thumb,
.news-card-v2 img {
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease !important;
}

.news-card-v2:hover .news-card-thumb,
.news-card-v2:hover img {
  transform: scale(1.08) !important;
}

/* Action Arrow Slide & Spring */
.services-card span,
.news-card-v2 span {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease !important;
}

.services-card:hover span[class*="group-hover:translate-x-1"],
.news-card-v2:hover span[class*="group-hover:translate-x-1"] {
  transform: translateX(6px) !important;
  color: #107C41 !important;
}

