/* ==========================================================================
   Campus Portal - Clean, Modern & Responsive Stylesheet
   Inspired by Ma'din Academy (madin.edu.in)
   ========================================================================== */

:root {
  /* Emerald Theme (Default Ma'din Style) */
  --primary-900: #063628;
  --primary-800: #0c4a37;
  --primary-700: #105d46;
  --primary-600: #167a5b;
  --primary-500: #10b981;
  --primary-100: #e6f4ea;
  --primary-50:  #f0fdf4;

  /* Gold Accent */
  --gold-500: #d4af37;
  --gold-600: #b89428;
  --gold-700: #987819;
  --gold-100: #fef9e7;
  --gold-gradient: linear-gradient(135deg, #e5c058 0%, #d4af37 50%, #b38728 100%);

  /* Neutral Slate */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Typography */
  --font-serif: "Cinzel", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Elevations */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navy Theme Variant */
[data-theme="navy"] {
  --primary-900: #0a1628;
  --primary-800: #0e2442;
  --primary-700: #143560;
  --primary-600: #1d4ed8;
  --primary-500: #3b82f6;
  --primary-100: #eff6ff;
  --primary-50:  #f8faff;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-700);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

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

/* Section Common Styles */
.section {
  padding: 5rem 0;
}

.section-bg-alt {
  background-color: var(--slate-50);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--gold-100);
  color: var(--gold-700);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.section-title {
  font-family: var(--font-serif);
  color: var(--slate-900);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--slate-600);
  font-size: 1.05rem;
}

/* ==========================================================================
   Top Announcement & Host Bar
   ========================================================================== */
.top-bar {
  background-color: var(--primary-900);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 1.25rem;
  gap: 1rem;
}

.top-notice-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.notice-label {
  background-color: var(--gold-500);
  color: var(--primary-900);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  flex-shrink: 0;
}

.notice-scroller {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f8fafc;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.host-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(212, 175, 55, 0.18);
  color: var(--gold-500);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid rgba(212, 175, 55, 0.4);
  transition: all var(--transition-fast);
}

.host-link-btn:hover {
  background-color: var(--gold-500);
  color: var(--primary-900);
}

/* ==========================================================================
   Main Navigation
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-crest {
  width: 46px;
  height: 46px;
  background: var(--gold-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-900);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.brand-crest svg {
  width: 28px;
  height: 28px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-800);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.935rem;
  font-weight: 600;
  color: var(--slate-700);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-700);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--gold-500);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--primary-800);
  color: var(--white);
  border-color: var(--primary-800);
}

.btn-primary:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--primary-900);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary-900);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-800);
  padding: 0.5rem;
}

/* ==========================================================================
   Hero Banner Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--primary-900);
  color: var(--white);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.38) contrast(1.1);
  transform: scale(1.02);
  transition: transform 10s ease-out;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 54, 40, 0.92) 0%,
    rgba(12, 74, 55, 0.75) 55%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 4rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold-500);
  color: #fff;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge svg {
  color: var(--gold-500);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 700px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

/* ==========================================================================
   Quick Stats Section
   ========================================================================== */
.stats-container {
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
}

.stats-card-grid {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.75rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-right: 1px solid var(--slate-200);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-100);
  color: var(--primary-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-800);
  line-height: 1.1;
}

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

/* ==========================================================================
   Founder / Leadership Section
   ========================================================================== */
.leadership-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  overflow: hidden;
}

.leader-portrait-frame {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.leader-photo-border {
  position: relative;
  border-radius: var(--radius-md);
  padding: 6px;
  background: var(--gold-gradient);
  box-shadow: var(--shadow-xl);
}

.leader-photo {
  width: 280px;
  height: 330px;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 4px);
  display: block;
}

.leader-content {
  padding: 3rem 3rem 3rem 0;
}

.leader-quote-icon {
  color: var(--gold-500);
  margin-bottom: 1rem;
}

.leader-quote-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--slate-700);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.leader-bio {
  border-top: 1px solid var(--slate-200);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.leader-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-900);
}

.leader-title {
  color: var(--slate-500);
  font-size: 0.9rem;
  font-weight: 600;
}

.leader-signature {
  font-family: 'Brush Script MT', 'Great Vibes', cursive, serif;
  font-size: 2rem;
  color: var(--gold-600);
  transform: rotate(-3deg);
  opacity: 0.9;
}

/* ==========================================================================
   Institutions & Departments Grid
   ========================================================================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  border-color: var(--primary-700);
  color: var(--primary-800);
}

.tab-btn.active {
  background: var(--primary-800);
  color: var(--white);
  border-color: var(--primary-800);
  box-shadow: 0 4px 10px rgba(12, 74, 55, 0.2);
}

.institutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.institution-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.institution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold-500);
}

.inst-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.inst-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.institution-card:hover .inst-image {
  transform: scale(1.05);
}

.inst-category-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(6, 54, 40, 0.85);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.inst-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.inst-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.inst-desc {
  font-size: 0.925rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  flex: 1;
}

.inst-degrees {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.degree-pill {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.inst-footer {
  border-top: 1px solid var(--slate-100);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inst-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-700);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.inst-link:hover {
  color: var(--gold-600);
  gap: 0.55rem;
}

/* ==========================================================================
   Campus Life & Features
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.feature-img-box {
  height: 170px;
  overflow: hidden;
}

.feature-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-content {
  padding: 1.5rem;
}

.feature-icon-chip {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--gold-100);
  color: var(--gold-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2.25rem;
  margin-bottom: 1rem;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-md);
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.55;
}

/* ==========================================================================
   Side-by-Side: Latest News & Upcoming Events
   ========================================================================== */
.news-events-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--slate-200);
  padding-bottom: 0.75rem;
}

.column-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-600);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-item-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.news-item-card:hover {
  transform: translateX(4px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-md);
}

.news-thumb {
  width: 100%;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
}

.news-details {
  padding: 1rem 1rem 1rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.775rem;
  color: var(--slate-500);
  margin-bottom: 0.35rem;
}

.news-category-badge {
  color: var(--primary-700);
  font-weight: 700;
}

.news-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.news-excerpt {
  font-size: 0.825rem;
  color: var(--slate-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Events Column */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.event-item-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.event-item-card:hover {
  transform: translateX(4px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-md);
}

.event-date-box {
  background: var(--primary-800);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.event-day {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.event-month {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-500);
  letter-spacing: 1px;
}

.event-info {
  padding: 1rem 1rem 1rem 0;
}

.event-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-800);
  background: var(--primary-100);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.35rem;
}

.event-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--slate-500);
}

.event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   Admissions CTA Strip
   ========================================================================== */
.admissions-strip {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--gold-500);
}

.admissions-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.admissions-text-block h2 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.admissions-text-block p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 650px;
}

.admissions-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background-color: var(--slate-900);
  color: var(--slate-400);
  padding-top: 5rem;
  font-size: 0.925rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-title {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--gold-500);
}

.footer-brand-desc {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--gold-500);
  color: var(--primary-900);
  transform: translateY(-2px);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--gold-500);
  padding-left: 4px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-info-row svg {
  color: var(--gold-500);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-host-access {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold-500);
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.footer-host-access:hover {
  background: var(--gold-500);
  color: var(--primary-900);
}

/* ==========================================================================
   Modal Dialogs
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.2s ease forwards;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--white);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  position: relative;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--slate-200);
  background: var(--slate-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-900);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--slate-500);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--slate-900);
}

.modal-body {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  font-size: 0.95rem;
  color: var(--slate-800);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(16, 93, 70, 0.15);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--slate-900);
  color: var(--white);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 600;
  z-index: 3000;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-left: 4px solid var(--gold-500);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.65rem;
  }
  .stats-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .leadership-wrapper {
    grid-template-columns: 1fr;
  }
  .leader-portrait-frame {
    padding: 2.5rem;
  }
  .leader-content {
    padding: 2rem;
  }
  .news-events-split {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-notice-box {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    display: none;
    border-bottom: 2px solid var(--gold-500);
  }
  .nav-menu.open {
    display: flex;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .stats-card-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--slate-200);
    padding: 1rem 0.5rem;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .institutions-grid {
    grid-template-columns: 1fr;
  }
  .news-item-card, .event-item-card {
    grid-template-columns: 1fr;
  }
  .news-thumb {
    height: 160px;
  }
  .news-details, .event-info {
    padding: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
