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

:root {
  --primary-color: #063923; /* Deep Islamic Emerald */
  --primary-light: #0b5736;
  --secondary-color: #d4af37; /* Metallic Gold */
  --secondary-hover: #b89428;
  --accent-color: #127c4b;
  --text-dark: #1f2923;
  --text-muted: #5a6660;
  --bg-color: #faf9f6;
  --card-bg: #ffffff;
  --white: #ffffff;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', serif;
  --shadow-sm: 0 4px 12px rgba(6, 57, 35, 0.05);
  --shadow-md: 0 10px 30px rgba(6, 57, 35, 0.08);
  --shadow-lg: 0 20px 45px rgba(6, 57, 35, 0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Fix 9: Prevent Mobile Horizontal Overflow */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Universal Noto Nastaliq Urdu Font for ALL Arabic & Urdu Text Across the Web App */
:lang(ur),
:lang(ar),
[dir="rtl"],
.arabic-text,
.arabic-bismillah,
.hadith-quote,
.urdu-text,
.urdu-greeting,
.service-title-urdu,
.service-name-urdu,
.quran-verse {
  font-family: 'Noto Nastaliq Urdu', 'Amiri', 'Traditional Arabic', serif !important;
  line-height: 2.2 !important;
}

img, svg, iframe, video, object {
  max-width: 100%;
}

section, main, header, footer, nav, article, aside {
  max-width: 100%;
  box-sizing: border-box;
}

/* Touch target sizing.
   This used to include a bare `a`, at every viewport, which forced a 48px
   minimum on every block-level link — the footer navigation rendered 48px
   rows on desktop with no way to tighten it. Controls keep the minimum; plain
   links only get one where the pointer is actually a finger. */
button, input, select, textarea,
.btn-primary, .btn-secondary, .btn-donate, .btn-hero, .nav-links a {
  min-height: 48px;
  box-sizing: border-box;
}

@media (pointer: coarse) {
  .footer-col a, .topbar-item, .contact-card a, .dept-contact a, .info-row a {
    min-height: 44px;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .grid, .split-section, .stats-grid, .cta-cards-grid, .course-grid-inner {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .split-image, .split-content, .standalone-category-box, .bilingual-course-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.25;
}

/* Header & Nav */
header {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 5%;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
}

.logo svg {
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  padding: 5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.98rem;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-links a:not(.btn-donate)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a:not(.btn-donate):hover::after, 
.nav-links a.active:not(.btn-donate)::after {
  width: 100%;
}

.nav-links a:not(.btn-donate):hover, 
.nav-links a.active:not(.btn-donate) {
  color: var(--primary-color);
}

.btn-donate {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #b89428 100%);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: visible !important;
  line-height: 1;
  text-align: center;
}

.btn-donate span {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.btn-donate:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.45);
}

/* Hero Section */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(6, 57, 35, 0.94), rgba(18, 124, 75, 0.88)), 
              radial-gradient(circle at top right, rgba(212, 175, 55, 0.25), transparent 60%);
  color: var(--white);
  padding: 4rem 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
  pointer-events: none;
}

.hero-small {
  min-height: 40vh;
  padding: 3rem 20px;
}

.hero-content {
  max-width: 850px;
  position: relative;
  z-index: 2;
  animation: fadeIn 0.9s ease-out;
}

.hero h1 {
  font-size: 3.4rem;
  color: var(--white);
  margin-bottom: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.2rem;
  opacity: 0.95;
  font-weight: 400;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #b89428 100%);
  color: var(--white);
  padding: 0.95rem 2.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.55);
}

/* Hero Button Standardization (Fix 3) */
.hero-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0.65rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-sizing: border-box;
  margin: 0 !important;
  white-space: nowrap;
}

.btn-hero span {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* Sections */
section {
  padding: 2.6rem 5%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Homepage Hero Stats Counter Row */
.hero-stats-container {
  max-width: 1100px;
  margin: -2.8rem auto 1.8rem auto;
  position: relative;
  z-index: 20;
  padding: 0 5%;
}

.hero-stats-row {
  background: var(--white);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(6, 57, 35, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.8rem 1.5rem;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  position: relative;
}

.hero-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(212, 175, 55, 0.35);
}

.hero-stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}

.hero-stat-item .stat-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
  opacity: 0.9;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .hero-stats-container {
    margin: 1.5rem auto 2.5rem auto;
  }
  
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .hero-stat-item:not(:last-child)::after {
    display: none;
  }

  .hero-stat-item .stat-number {
    font-size: 2.1rem;
  }
}

@media (max-width: 480px) {
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* Latest News & Announcements Strip Component */
.announcements-strip-section {
  max-width: 1240px;
  margin: 0 auto 1.8rem auto;
  padding: 0 5%;
}

/* Institutional Recognitions & Affiliations Strip */
.affiliations-section {
  margin: 1.8rem 0 2.2rem 0;
  padding: 0 5%;
}

.affiliations-container {
  max-width: 1240px;
  margin: 0 auto;
}

.affiliations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.affiliation-badge-card {
  background: var(--white);
  border-radius: 16px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 6px 20px rgba(6, 57, 35, 0.05);
  padding: 1.5rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: all 0.35s ease;
}

.affiliation-badge-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary-color);
  box-shadow: 0 12px 30px rgba(6, 57, 35, 0.1);
}

.aff-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.aff-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 0.2rem 0;
}

.aff-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Daily Campus & Prayer Schedule Widget */
.schedule-widget-section {
  margin: 2rem 0 2.5rem 0;
}

.schedule-widget-card {
  background: linear-gradient(145deg, #063923 0%, #094d2e 100%);
  border-radius: 24px;
  border: 1.8px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 14px 40px rgba(6, 57, 35, 0.18);
  padding: 2.8rem 3rem;
  color: var(--white);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.8rem;
}

.schedule-col {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  padding: 1.8rem 2rem;
}

.schedule-col-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 1rem;
  border-bottom: 1.5px dashed rgba(212, 175, 55, 0.4);
  margin-bottom: 1.2rem;
}

.schedule-col-header .sch-icon {
  font-size: 1.6rem;
}

.schedule-col-header h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin: 0;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.schedule-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.98rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px rgba(255, 255, 255, 0.1) solid;
}

.schedule-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.schedule-list li span {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.schedule-list li strong {
  color: var(--secondary-color);
  font-weight: 800;
}

@media (max-width: 992px) {
  .affiliations-grid {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }
}

.announcements-container {
  background: linear-gradient(145deg, #063923 0%, #094a2e 100%);
  border-radius: 24px;
  padding: 2.2rem 2.5rem;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 14px 40px rgba(6, 57, 35, 0.16);
  color: var(--white);
}

.announcements-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.18);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  color: var(--secondary-color);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.announcements-header h3 {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.announcement-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.announcement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: linear-gradient(90deg, var(--secondary-color), transparent);
  opacity: 0.7;
}

.announcement-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--secondary-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.announcement-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.6rem;
}

.announcement-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.announcement-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.announcement-link {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.announcement-link:hover {
  color: var(--white);
  transform: translateX(4px);
}

@media (max-width: 992px) {
  .announcements-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  .announcements-container {
    padding: 1.8rem 1.4rem;
  }

  .announcements-grid {
    grid-template-columns: 1fr;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 1.6rem;
}

.section-title h2 {
  font-size: 2.6rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  border-radius: 4px;
}

/* Mission Section */
.mission-content {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.mission-text {
  font-size: 1.2rem;
  color: var(--text-dark);
  line-height: 1.8;
}

.mission-link {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
  display: inline-block;
  margin-top: 1rem;
}

.mission-link:hover {
  color: var(--secondary-color);
  transform: translateX(4px);
}

.programs-section {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Cards & Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(6, 57, 35, 0.08);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.card-img {
  height: 220px;
  background-color: #eaeaea;
  position: relative;
  overflow: hidden;
}

/* Fix 1: Specific Program Card Backgrounds */
.bg-home-hifz {
  background-image: url('../../assets/images/home_hifz.jpg');
  background-size: cover;
  background-position: center;
  min-height: 200px;
}

.bg-home-aalimiyyah {
  background-image: url('../../assets/images/home_aalimiyyah.jpg');
  background-size: cover;
  background-position: center;
  min-height: 200px;
}

.bg-home-modern {
  background-image: url('../../assets/images/modern_edu.jpg');
  background-size: cover;
  background-position: center;
  min-height: 200px;
}

.card-content {
  padding: 2.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.45rem;
  color: var(--primary-color);
  margin-bottom: 0.9rem;
}

.card p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* Principal Spotlight Section */
.principal-spotlight {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 4rem 3.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.principal-spotlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 7px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.principal-badge {
  display: inline-block;
  background-color: rgba(6, 57, 35, 0.08);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(6, 57, 35, 0.15);
}

.principal-img-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--white);
  outline: 2px solid var(--secondary-color);
}

.principal-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.principal-img-container img:hover {
  transform: scale(1.03);
}

/* About Page & Split Sections */
.split-section {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  margin-bottom: 5rem;
}

.split-section:nth-child(even) {
  flex-direction: row-reverse;
}

.split-content {
  flex: 1;
}

.split-content h3 {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 1.3rem;
}

.split-content p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

.split-image {
  flex: 1;
}

.split-image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  outline: 1px solid rgba(212, 175, 55, 0.3);
  object-fit: cover;
  transition: var(--transition);
}

.split-image img:hover {
  transform: scale(1.02);
}

/* Program Lists */
.program-list {
  list-style: none;
  margin-top: 1rem;
}

.program-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text-dark);
}

.program-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-color);
  font-weight: 800;
  font-size: 1.1rem;
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  margin: 4rem 0;
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

.contact-card {
  background: var(--card-bg);
  padding: 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(6, 57, 35, 0.08);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

.contact-form-section {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-form-section h2 {
  margin-bottom: 1.8rem;
  font-size: 2rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid #dcdfdc;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: var(--transition);
  background: #fdfdfd;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(6, 57, 35, 0.1);
  background: var(--white);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #042919 0%, #063923 100%);
  color: var(--white);
  padding: 5rem 5% 2rem;
  position: relative;
  border-top: 3px solid var(--secondary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.2rem;
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1.6rem;
  color: var(--secondary-color);
  letter-spacing: 0.5px;
}

.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.9rem;
  display: block;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.98rem;
}

.footer-col a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
/* Mobile & Tablet Responsive Design System */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
  }

  .split-section {
    gap: 3rem;
  }
}

@media (max-width: 850px) {
  nav {
    padding: 1rem 5%;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 57, 35, 0.08) 0%, rgba(212, 175, 55, 0.15) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 4px 12px rgba(6, 57, 35, 0.08);
  }

  .menu-toggle:hover, .menu-toggle:focus, .menu-toggle.active {
    background: var(--primary-color);
    border-color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
  }

  .menu-toggle svg {
    stroke: var(--secondary-color);
    transition: transform 0.35s ease;
  }

  .menu-toggle.active svg {
    transform: rotate(90deg);
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(6, 57, 35, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.6rem 6% 2rem 6%;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    gap: 0.6rem;
    border-bottom: 3.5px solid var(--secondary-color);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    text-align: left;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
  }

  .nav-links.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    color: #ffffff;
    padding: 0.9rem 1.3rem;
    display: block;
    border-radius: 10px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-links a:not(.btn-donate)::after {
    display: none;
  }

  .nav-links a:hover, 
  .nav-links a.active {
    background: rgba(212, 175, 55, 0.18);
    color: var(--secondary-color) !important;
    border-left-color: var(--secondary-color);
    padding-left: 1.7rem;
  }

  .nav-links li:last-child {
    margin-top: 0.6rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(212, 175, 55, 0.35);
  }

  .btn-donate {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.9rem 1.5rem !important;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #b89428 100%) !important;
    border-radius: 50px !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4) !important;
    border-left: none !important;
  }

  .btn-donate:hover {
    padding-left: 1.5rem !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6) !important;
  }

  .hero {
    min-height: 60vh;
    padding: 4rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .split-section, 
  .split-section:nth-child(even) {
    flex-direction: column;
    text-align: center;
    gap: 2.2rem;
    margin-bottom: 3.5rem;
  }

  .split-content h3 {
    font-size: 1.8rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-section {
    padding: 2rem 1.5rem;
  }

  .principal-spotlight {
    padding: 2.5rem 1.5rem;
    margin: 3rem 0;
  }

  .mission-content {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-col a:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.3rem;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    width: 100%;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card-content {
    padding: 1.5rem;
  }

  .program-list li {
    text-align: left;
  }
}

/* Expanded Donate Icon & Step Container */
.step-number {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #b89428 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35), 0 0 0 6px rgba(212, 175, 55, 0.14);
  border: 3px solid var(--white);
  transition: var(--transition);
  padding: 16px;
}

.step-number:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.45), 0 0 0 8px rgba(212, 175, 55, 0.2);
}

.step-number svg {
  width: 34px;
  height: 34px;
}

/* Centralized Component & Utility Classes (Eliminating Inline Styles) */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }

/* Arabic Calligraphy & Hadith Quotes */
.arabic-bismillah {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.hadith-quote {
  font-style: italic;
  color: var(--text-dark);
  border-left: 3px solid var(--secondary-color);
  padding-left: 1rem;
  margin-bottom: 1.2rem;
}

.quote-box {
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Page Card Image Classes */
.bg-home-hifz {
  background-image: url('../images/home_hifz.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 200px;
}
.bg-home-aalimiyyah {
  background-image: url('../images/home_aalimiyyah.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 200px;
}
.bg-home-modern {
  background-image: url('../images/modern_edu.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 200px;
}
.bg-academics-hifz { background: url('../images/hifz.jpg') center/cover no-repeat; }
.bg-academics-aalimiyyah { background: url('../images/aalimiyyah.jpg') center/cover no-repeat; }
.bg-academics-tajweed { background: url('../images/tajweed.jpg') center/cover no-repeat; }
.bg-academics-modern { background: url('../images/2.jpeg') center/cover no-repeat; }
.bg-about-heritage { background: url('../images/4.jpeg') center/cover no-repeat; }
.bg-admissions-campus { background: url('../images/campus_life.jpg') center/cover no-repeat; }
.bg-donate-scholarship { background: url('../images/scholarship.jpg') center/cover no-repeat; min-height: 210px; height: 210px; }
.bg-donate-construction { background: url('../images/construction.jpg') center/cover no-repeat; min-height: 210px; height: 210px; }
.bg-donate-teachers { background: url('../images/teachers.jpg') center/cover no-repeat; min-height: 210px; height: 210px; }
.bg-donate-zakat { background: url('../images/zakat.jpg') center/cover no-repeat; min-height: 210px; height: 210px; }
.bg-donate-sadaqah { background: url('../images/sadaqah.jpg') center/cover no-repeat; min-height: 210px; height: 210px; }
.bg-donate-waqf { background: url('../images/waqf.jpg') center/cover no-repeat; min-height: 210px; height: 210px; }

/* Donate Page Full-Width Stock Banner Hero */
.hero-donate-bg {
  background: linear-gradient(rgba(6, 57, 35, 0.76), rgba(6, 57, 35, 0.88)), url('../images/donate_hero.jpg') center/cover no-repeat !important;
  min-height: 420px;
  padding: 4.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 4px solid var(--secondary-color);
  box-shadow: 0 12px 35px rgba(6, 57, 35, 0.3);
  position: relative;
}

.hero-donate-bg .hero-content {
  background: rgba(6, 57, 35, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 3rem 3.5rem;
  border-radius: 24px;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.32);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* About Us Page Redesign Components */
.stats-section {
  padding: 3rem 5%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0d5435 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  box-shadow: var(--shadow-md);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 1.8rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--secondary-color);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 0.3rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
  letter-spacing: 0.3px;
}

.pillar-card {
  background: var(--white);
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 57, 35, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.35);
}

.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #0d5435);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem auto;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(6, 57, 35, 0.2);
}

/* Custom Badge Variants */
.badge-gold {
  background: rgba(212, 175, 55, 0.2) !important;
  color: var(--secondary-color) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}

/* Donate Page Method Cards */
.donate-method {
  background: var(--white);
  padding: 2.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6, 57, 35, 0.08);
  margin-bottom: 1.5rem;
}

.donate-method h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
}

.donate-method p {
  margin-top: 0.8rem;
}

/* Map Iframe Styling */
.map-iframe {
  border: 0;
  border-radius: var(--radius-md);
  width: 100%;
  height: 400px;
  box-shadow: var(--shadow-md);
}

.list-inline-left {
  text-align: left;
  display: inline-block;
}

/* SVG Inline Icon Alignments */
.svg-nav-icon {
  height: 24px !important;
  width: auto;
  max-width: 44px;
  overflow: visible !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.svg-badge-icon {
  vertical-align: text-bottom;
  margin-right: 4px;
}

/* Fix 7 & 11: Fine-Line Gold Stroke SVG Icon Class */
.gold-svg-icon {
  stroke: var(--secondary-color) !important;
  stroke-width: 1.8px !important;
  fill: none !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  min-height: 24px;
  display: inline-block;
  vertical-align: middle;
}

/* Restyled About Us Action Cards (Fix Restyle) */
.cta-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.cta-action-card {
  background: var(--white);
  padding: 1.8rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 8px 24px rgba(6, 57, 35, 0.06);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.cta-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
  transition: var(--transition);
}

.cta-action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(6, 57, 35, 0.12);
  border-color: var(--secondary-color);
  background: linear-gradient(135deg, var(--white) 0%, rgba(212, 175, 55, 0.04) 100%);
}

.cta-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(6, 57, 35, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.cta-action-card:hover .cta-card-icon {
  background: var(--primary-color);
  transform: scale(1.08);
}

.cta-card-body h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.cta-card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.cta-arrow {
  font-size: 1.5rem;
  color: var(--secondary-color);
  transition: var(--transition);
  margin-left: auto;
}

/* Professional Framed Content Box (Fix Center & Professional Borders) */
.framed-text-card {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 30px rgba(6, 57, 35, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 2.5rem auto;
  max-width: 920px;
}

.framed-text-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--secondary-color));
}

.framed-text-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--secondary-color));
}

.framed-text-card h3 {
  font-size: 1.85rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  text-align: center;
}

.framed-text-card p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1rem;
}

.framed-text-card p:last-child {
  margin-bottom: 0;
}
.urdu-greeting {
  font-family: 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.55rem;
  color: var(--secondary-color);
  line-height: 2.2;
  margin-bottom: 0.4rem;
}
.principal-img-compact {
  width: 160px !important;
  height: 160px !important;
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%) !important;
  aspect-ratio: 1 / 1 !important;
  border: 3.5px solid var(--secondary-color) !important;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.38) !important;
  object-fit: cover !important;
  margin: 0 auto 1rem auto !important;
  display: block !important;
}

/* Sub-page Previews Section (Homepage) */
.preview-card {
  background: var(--white);
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 57, 35, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  min-height: 280px;
}

.preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: var(--transition);
}

.preview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.3);
}

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

.preview-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(6, 57, 35, 0.06);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem auto;
  font-size: 1.5rem;
  transition: var(--transition);
}

.preview-card:hover .preview-icon {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.svg-gold-outline {
  stroke: #D4AF37 !important;
  stroke-width: 1.8px !important;
  fill: none !important;
}

/* Fix 12: Full Services Catalog & Grid Styling */
.services-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 4rem 5%;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.service-category-card {
  background: var(--bg-color);
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 57, 35, 0.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.service-category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
  background: var(--white);
}

.service-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(212, 175, 55, 0.16);
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  margin-bottom: 1rem;
}

.service-category-card h3 {
  font-size: 1.35rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  display: block;
}

[dir="rtl"], .font-urdu {
  font-family: 'Noto Nastaliq Urdu', serif !important;
}

.service-title-urdu {
  font-family: 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.48rem;
  font-weight: 800 !important;
  color: var(--primary-color);
  line-height: 2.2;
  display: block;
  margin-bottom: 0.2rem;
}

.service-title-en {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 800 !important;
  display: block;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bilingual-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Standalone 5 Individual Category Section Boxes */
.academic-filter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2.2rem 0 3rem 0;
  padding: 8px;
  background: rgba(6, 57, 35, 0.04);
  border-radius: 50px;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
}

.academic-filter-btn {
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.academic-filter-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--primary-color);
  border-color: rgba(212, 175, 55, 0.4);
}

.academic-filter-btn.active {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #b89428 100%);
  color: var(--white);
  border-color: var(--secondary-color);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
}

.standalone-category-box {
  background: var(--white);
  padding: 2.8rem 2.2rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(6, 57, 35, 0.07);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.standalone-category-box.hide-category {
  display: none !important;
}

.standalone-category-box:last-child {
  margin-bottom: 0;
}

.standalone-category-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--secondary-color));
}

.standalone-category-box:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 14px 36px rgba(6, 57, 35, 0.12);
}

.category-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 1.2rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

.course-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.bilingual-course-box {
  background: var(--bg-color);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(6, 57, 35, 0.1);
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(6, 57, 35, 0.02);
}

.bilingual-course-box:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.18);
  background: #fffdf6;
  transform: translateY(-3px);
}

/* Section 1: Why Choose Us Component */
.why-choose-card {
  background: var(--white);
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 57, 35, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.why-choose-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  opacity: 0;
  transition: var(--transition);
}

.why-choose-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.35);
}

.why-choose-card:hover::before {
  opacity: 1;
}

.why-choose-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(6, 57, 35, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: var(--transition);
}

.why-choose-card:hover .why-choose-icon {
  background: var(--primary-color);
}

.why-choose-card h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.why-choose-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Testimonials Component Styling (Recommendation 1) */
.testimonials-section {
  margin: 2rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: 20px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 30px rgba(6, 57, 35, 0.06);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 15px;
  right: 25px;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: rgba(212, 175, 55, 0.15);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary-color);
  box-shadow: 0 16px 40px rgba(6, 57, 35, 0.12);
}

.testimonial-rating {
  color: var(--secondary-color);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 0.98rem;
  color: var(--text-dark);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 1.2rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0d5435 100%);
  color: var(--secondary-color);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.8px solid var(--secondary-color);
  box-shadow: 0 4px 12px rgba(6, 57, 35, 0.15);
}

.author-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 0.2rem 0;
}

.author-info span {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Downloadable Admissions Prospectus Card (Compact Margin Upgrade) */
.prospectus-section {
  margin: 2.2rem 0 2.5rem 0;
}

.prospectus-card {
  background: linear-gradient(145deg, #063923 0%, #094d2e 100%);
  border-radius: 22px;
  border: 1.8px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 12px 35px rgba(6, 57, 35, 0.18);
  padding: 2.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.2rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.prospectus-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.prospectus-content {
  max-width: 720px;
}

.prospectus-content .news-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 0.8rem;
  font-size: 0.84rem;
  letter-spacing: 0.6px;
}

.prospectus-content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin: 0.4rem 0 0.6rem 0;
  line-height: 1.3;
}

.prospectus-desc {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.prospectus-features {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.prospectus-features span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--secondary-color);
  background: rgba(212, 175, 55, 0.14);
  padding: 10px 22px;
  border-radius: 50px;
  border: 1.2px solid rgba(212, 175, 55, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.prospectus-features span svg {
  margin-right: 4px;
}

.prospectus-action {
  flex-shrink: 0;
  padding-left: 0.5rem;
}

.btn-prospectus {
  padding: 1.05rem 2rem;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
  border-radius: 50px;
  letter-spacing: 0.3px;
}

@media (max-width: 992px) {
  .prospectus-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.6rem;
  }

  .prospectus-action {
    padding-left: 0;
    width: 100%;
  }

  .prospectus-features {
    justify-content: center;
    gap: 0.8rem;
  }
}

/* Spacious & Bold Modern FAQ Component */
.faq-section-modern {
  margin: 2rem 0 2.8rem 0;
  padding: 0;
}

.faq-split-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.8rem;
  align-items: start;
}

@media (max-width: 992px) {
  .faq-split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.faq-sidebar-card {
  background: linear-gradient(145deg, var(--primary-color) 0%, #084d2f 100%);
  color: var(--white);
  padding: 3rem 2.2rem;
  border-radius: 20px;
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 14px 40px rgba(6, 57, 35, 0.16);
  position: sticky;
  top: 100px;
}

.faq-sidebar-card h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.faq-sidebar-card p {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.92;
  line-height: 1.68;
  margin-bottom: 2rem;
}

.faq-sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.35);
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.95;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.faq-item {
  background: linear-gradient(145deg, #063923 0%, #094d2e 100%);
  border-radius: 18px;
  border: 1.8px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 30px rgba(6, 57, 35, 0.18);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  color: var(--white);
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--secondary-color) 0%, #ffffff 100%);
  opacity: 0;
  transition: var(--transition);
}

.faq-item:hover {
  transform: translateY(-4px);
  border-color: var(--secondary-color);
  box-shadow: 0 16px 40px rgba(6, 57, 35, 0.28);
}

.faq-item.open {
  border-color: var(--secondary-color);
  box-shadow: 0 22px 50px rgba(6, 57, 35, 0.35), 0 0 0 2px rgba(212, 175, 55, 0.4);
  background: linear-gradient(145deg, #063923 0%, #0a5433 100%);
}

.faq-item.open::before {
  opacity: 1;
}

.faq-question {
  width: 100%;
  padding: 1.8rem 2.4rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800 !important;
  color: var(--secondary-color);
  cursor: pointer;
  min-height: 60px;
  gap: 22px;
}

.faq-question:focus {
  outline: none;
}

.faq-question-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.faq-question-content span {
  font-weight: 800 !important;
  color: #D4AF37 !important;
}

.faq-item.open .faq-question-content span {
  color: #FFE885 !important;
}

.faq-token-q {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #D4AF37 0%, #b89428 100%);
  color: #063923;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  border: 2px solid #ffffff;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover .faq-token-q {
  transform: scale(1.1) rotate(-5deg);
  background: #ffffff;
  color: #063923;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
}

.faq-item.open .faq-token-q {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  color: #063923;
  transform: scale(1.08);
}

.faq-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
}

.faq-item.open .faq-toggle-btn {
  background: var(--secondary-color);
  color: #063923;
  transform: rotate(180deg);
  border-color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, padding 0.35s ease;
  padding: 0 2.4rem;
}

.faq-item.open .faq-answer {
  max-height: 1000px !important;
  opacity: 1 !important;
  padding: 0 2.4rem 2.2rem 2.4rem !important;
}

.faq-answer-inner {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-left: 5px solid var(--secondary-color);
  border-radius: 14px;
  padding: 1.8rem 2.2rem;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.25);
}

.faq-token-a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--secondary-color);
  color: #063923;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid #ffffff;
}

.faq-answer-text {
  font-size: 1.08rem;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.85;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Scholars Showcase Component (About Us Page Addition) */
.scholars-showcase-section {
  margin: 2.5rem 0;
}

.scholars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 1.6rem;
}

.scholar-card {
  background: var(--white);
  border-radius: 20px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(6, 57, 35, 0.06);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.35s ease;
}

.scholar-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary-color);
  box-shadow: 0 16px 36px rgba(6, 57, 35, 0.12);
}

.scholar-avatar-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #063923 0%, #0d5435 100%);
  color: var(--secondary-color);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 6px 18px rgba(6, 57, 35, 0.2);
  margin-bottom: 1.2rem;
}

.scholar-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 0.4rem 0;
}

.scholar-sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
  background: rgba(212, 175, 55, 0.12);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 1rem;
  display: inline-block;
}

.scholar-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 992px) {
  .scholars-grid {
    grid-template-columns: 1fr;
  }
}

/* Campus Facilities Component (About Us Page) */
.campus-facilities-section {
  margin: 2.5rem 0;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.6rem;
}

.facility-card {
  background: var(--white);
  border-radius: 18px;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 6px 20px rgba(6, 57, 35, 0.05);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: all 0.35s ease;
}

.facility-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: 0 12px 30px rgba(6, 57, 35, 0.1);
}

.facility-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.facility-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
}

.facility-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 992px) {
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .facilities-grid {
    grid-template-columns: 1fr;
  }
}

/* Ijazah Certification Component (Academics Page) */
.ijazah-certification-section {
  margin: 2.5rem 0;
}

.ijazah-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 1.6rem;
}

.ijazah-card {
  background: var(--white);
  border-radius: 20px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(6, 57, 35, 0.06);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.35s ease;
}

.ijazah-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary-color);
  box-shadow: 0 16px 36px rgba(6, 57, 35, 0.12);
}

.ijazah-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.ijazah-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 0.4rem 0;
}

.ijazah-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary-color);
  background: rgba(212, 175, 55, 0.12);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.ijazah-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Classical Library Overview Card Component */
.library-overview-section {
  margin: 2.5rem 0 3rem 0;
}

.library-card {
  background: linear-gradient(145deg, #063923 0%, #094d2e 100%);
  border-radius: 22px;
  border: 1.8px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 12px 35px rgba(6, 57, 35, 0.18);
  padding: 2.5rem 2.8rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.library-content h3 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--white);
  margin: 0.6rem 0 0.8rem 0;
  line-height: 1.3;
}

.library-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.library-features {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.library-features span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary-color);
  background: rgba(212, 175, 55, 0.14);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.2px solid rgba(212, 175, 55, 0.35);
}

@media (max-width: 992px) {
  .ijazah-grid {
    grid-template-columns: 1fr;
  }
}

/* Admission Timeline Component (Admissions Page) */
.admission-timeline-section {
  margin: 2.5rem 0;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.6rem;
}

.timeline-card {
  background: var(--white);
  border-radius: 18px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 6px 20px rgba(6, 57, 35, 0.05);
  padding: 1.8rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.35s ease;
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: 0 12px 30px rgba(6, 57, 35, 0.1);
}

.timeline-step-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #b89428 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem auto;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.timeline-date {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(6, 57, 35, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.timeline-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 0.4rem 0;
}

.timeline-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 992px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .timeline-grid {
    grid-template-columns: 1fr;
  }
}

/* Student Sponsorship Tiers Component (Donate Page) */
.donation-tiers-section {
  margin: 2.5rem 0;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 1.6rem;
}

.tier-card {
  background: var(--white);
  border-radius: 22px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(6, 57, 35, 0.06);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
}

.tier-highlight {
  background: linear-gradient(145deg, #063923 0%, #094d2e 100%);
  color: var(--white);
  border-color: var(--secondary-color);
  box-shadow: 0 14px 40px rgba(6, 57, 35, 0.2);
}

.tier-highlight h3, .tier-highlight p {
  color: var(--white) !important;
}

.tier-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary-color);
  box-shadow: 0 16px 36px rgba(6, 57, 35, 0.14);
}

.tier-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-color);
  background: rgba(6, 57, 35, 0.08);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.tier-highlight .tier-badge {
  color: var(--secondary-color);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.tier-amount {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 0.8rem;
}

.tier-amount span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tier-highlight .tier-amount span {
  color: rgba(255, 255, 255, 0.8);
}

.tier-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 0.6rem 0;
}

.tier-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 992px) {
  .tiers-grid {
    grid-template-columns: 1fr;
  }
}

/* Campus Directions Component (Contact Page) */
.campus-directions-section {
  margin: 2.5rem 0;
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 1.6rem;
}

.direction-card {
  background: var(--white);
  border-radius: 18px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 6px 20px rgba(6, 57, 35, 0.05);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: all 0.35s ease;
}

.direction-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: 0 12px 30px rgba(6, 57, 35, 0.1);
}

.direction-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.direction-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 0.4rem 0;
}

.direction-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Department Direct Contact Directory Component */
.department-directory-section {
  margin: 2.5rem 0 3rem 0;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 1.6rem;
}

.directory-card {
  background: var(--white);
  border-radius: 20px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(6, 57, 35, 0.06);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.35s ease;
}

.directory-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary-color);
  box-shadow: 0 16px 36px rgba(6, 57, 35, 0.12);
}

.dept-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(6, 57, 35, 0.08);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.directory-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 0.3rem 0;
}

.dept-role {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--secondary-color);
  background: rgba(212, 175, 55, 0.12);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 0.9rem;
  display: inline-block;
}

.dept-contact {
  font-size: 0.94rem;
  color: var(--text-dark);
  margin: 0;
}

.dept-contact strong {
  color: var(--primary-color);
}

@media (max-width: 992px) {
  .directions-grid, .directory-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ICON SYSTEM  (Phase 3)
   Replaces emoji iconography with a single gold-stroke SVG set.
   Icons size from their container's font-size (1em) and take their colour
   from `currentColor`, so a container only needs font-size + color.
   ========================================================================== */

.icon-sprite {
  display: none;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
  overflow: visible;
}

/* Icon leading a run of text (contact lines, feature lists) */
.icon-inline {
  width: 1.05em;
  height: 1.05em;
  margin-inline-end: 0.55rem;
  vertical-align: -0.19em;
  color: var(--secondary-color);
  stroke-width: 1.8;
}

/* --- Circular icon badge: one treatment for every card icon ------------- */
.pillar-icon,
.facility-icon,
.direction-icon,
.ijazah-icon,
.dept-avatar,
.contact-icon,
.aff-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  flex-shrink: 0;
  transition: var(--transition);
}

/* Emerald-filled badge with gold icon — used on light cards */
.pillar-icon,
.facility-icon,
.direction-icon,
.ijazah-icon,
.contact-icon,
.dept-avatar {
  background: linear-gradient(135deg, var(--primary-color), #0d5435);
  color: var(--secondary-color);
  box-shadow: 0 6px 16px rgba(6, 57, 35, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

/* Centred badges */
.pillar-icon,
.facility-icon,
.direction-icon,
.ijazah-icon,
.contact-icon {
  margin: 0 auto 1.1rem auto;
}

.dept-avatar {
  margin: 0 auto 1rem auto;
}

/* Affiliation strip sits inline beside its text — lighter treatment */
.aff-icon {
  width: 52px;
  height: 52px;
  background: rgba(6, 57, 35, 0.06);
  color: var(--primary-color);
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-size: 1.4rem;
}

.affiliation-badge-card:hover .aff-icon {
  background: linear-gradient(135deg, var(--primary-color), #0d5435);
  color: var(--secondary-color);
}

/* Lift the badge with its card */
.pillar-card:hover .pillar-icon,
.facility-card:hover .facility-icon,
.direction-card:hover .direction-icon,
.ijazah-card:hover .ijazah-icon,
.contact-card:hover .contact-icon {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 22px rgba(6, 57, 35, 0.26);
}

/* Home-page wells previously held a near-white background; gold on that is
   ~1.9:1 and fails the 3:1 minimum for meaningful graphics. Match the emerald
   badge used elsewhere so the whole icon set reads as one system. */
.preview-icon,
.why-choose-icon {
  background: linear-gradient(135deg, var(--primary-color), #0d5435);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 6px 16px rgba(6, 57, 35, 0.18);
}

.preview-icon .icon,
.why-choose-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--secondary-color);
}

.preview-card:hover .preview-icon,
.why-choose-card:hover .why-choose-icon {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 22px rgba(6, 57, 35, 0.26);
}

/* Schedule widget sits on a dark panel */
.schedule-col-header .sch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--secondary-color);
}

/* Inline icons on dark surfaces stay gold; on light surfaces too */
.footer-col .icon-inline,
.faq-sidebar-info .icon-inline,
.library-features .icon-inline,
.donate-method .icon-inline,
.schedule-widget-card .icon-inline {
  color: var(--secondary-color);
}

/* Contact-card icon block previously relied on `display:block` */
.contact-card .contact-icon {
  display: flex;
}

/* Footer contact lines: align icon with first line of wrapping text */
.footer-col p .icon-inline {
  vertical-align: -0.16em;
}

/* --- Accessibility: visible focus + skip target ------------------------- */
:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   GRID QUANTITY RULE  (Phase 3)
   `.grid` auto-fits at minmax(320px, 1fr), which lands 4-item sections on a
   3+1 layout and strands the last card on its own row. Give any grid holding
   exactly four children an explicit four-column track on wide screens.
   ========================================================================== */

@media (min-width: 993px) {
  .grid:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
  }
}

/* Equal-height cards so a shorter card never leaves a ragged baseline */
.grid > * {
  height: 100%;
}

/* ==========================================================================
   TYPE SCALE & CONTRAST  (Phase 3)
   ========================================================================== */

/* Gold on white fails WCAG AA below ~18px. Restrict small gold text to the
   dark surfaces where it passes, and darken it on light surfaces. */
.section-title p,
.mission-text,
.scholar-bio,
.dept-role {
  color: var(--text-muted);
}

/* Badge on light background: darkened gold text on a soft gold wash */
.principal-badge {
  color: #6b5518;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.45);
}

/* The gold badge variant is used on dark heroes — keep it bright there */
.hero .principal-badge.badge-gold,
.schedule-widget-card .principal-badge.badge-gold {
  color: var(--secondary-color);
  background: rgba(212, 175, 55, 0.18);
}

/* Tighten heading rhythm at the top of the scale */
.hero h1 {
  line-height: 1.14;
  letter-spacing: -1px;
}

.section-title h2 {
  letter-spacing: -0.6px;
}

/* Body measure: keep long paragraphs readable rather than full-bleed */
.split-content p,
.faq-answer-text {
  max-width: 62ch;
}

/* ==========================================================================
   BRAND SPINE  (Phase 3)
   The Jamia's own identity, taken from its printed material:
     name     جامعہ علوم القرآن
     place    آئی ایٹ مرکز، اسلام آباد
     tagline  دینی و عصری تعلیم کا حسین امتزاج
     pillars  حفظ القرآن · درس نظامی · تجوید و قرأت · اخلاق و تربیت
   Nastaliq needs far more leading than Latin type; every Urdu/Arabic block
   below sets its own line-height rather than inheriting.
   ========================================================================== */

/* --- Hero identity lockup ---------------------------------------------- */
/* Nastaliq sits small inside its em box — it needs a larger font-size than
   Latin type to read at the same optical weight.
   NB: these are <p> elements, so they must out-specify `.hero p` (0,1,1). */
.hero .hero-name-ur {
  font-size: clamp(2.6rem, 6.5vw, 4.2rem);
  color: var(--secondary-color);
  line-height: 1.75 !important;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero .hero-tagline-ur {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: #f2e4b8;
  line-height: 2.4 !important;
  margin: 0.5rem auto 0.1rem auto;
  max-width: 100%;
}

.hero .hero-tagline-en {
  font-size: clamp(0.98rem, 1.6vw, 1.18rem);
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
  letter-spacing: 0.2px;
  margin-bottom: 0.9rem;
  max-width: 640px;
}

.hero-rule {
  width: 108px;
  height: 2px;
  margin: 1rem auto;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.hero .hero-place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* --- Bilingual section heading ----------------------------------------- */
.section-title .heading-ur {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: var(--secondary-color);
  line-height: 2.3 !important;
  margin-bottom: 0.1rem;
  font-weight: 400;
}

.schedule-widget-card .section-title .heading-ur,
.announcements-container .heading-ur {
  color: var(--secondary-color);
}

/* --- Authentic four-pillar cards ---------------------------------------- */
.pillar-name-ur {
  display: block;
  font-size: 1.45rem;
  color: var(--primary-color);
  line-height: 2.2 !important;
  margin-bottom: 0.15rem;
}

.why-choose-card .pillar-name-en,
.pillar-card .pillar-name-en {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.2px;
  margin-bottom: 0.45rem;
}

.pillar-name-translit {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #6b5518;
  margin-bottom: 0.55rem;
}

/* Centre the pillar cards and give the icon room */
.why-choose-card {
  text-align: center;
  align-items: center;
}

.why-choose-card .why-choose-icon {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   HEADER & FOOTER  (Phase 4)
   One canonical header/footer duplicated across all six pages. Any change
   here must be applied to every page in the same pass.
   ========================================================================== */

/* --- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.85rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* --- Utility bar -------------------------------------------------------- */
.topbar {
  background: var(--primary-color);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.5rem 5%;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.topbar-item .icon {
  color: var(--secondary-color);
  width: 1.05em;
  height: 1.05em;
}

a.topbar-item:hover {
  color: var(--secondary-color);
}

/* Push the mail item to the right on wide screens */
.topbar-mail {
  margin-inline-start: auto;
}

/* WhatsApp gets its own affordance so it reads as a chat action */
.topbar-wa {
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.5);
  border-radius: 50px;
  padding: 2px 12px;
  font-weight: 700;
}

.topbar-wa .icon {
  color: #25d366;
}

a.topbar-wa:hover {
  background: #25d366;
  color: #04331a;
}

a.topbar-wa:hover .icon {
  color: #04331a;
}

/* --- Bilingual logo lockup ---------------------------------------------- */
.logo {
  gap: 14px;
  align-items: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-ur {
  font-size: 1.32rem;
  color: var(--secondary-color);
  line-height: 1.5 !important;
  margin-bottom: -2px;
}

.logo-en {
  font-family: var(--font-heading);
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.4px;
}

/* --- Donate button: real text, not baked-in SVG type -------------------- */
.nav-cta .btn-donate {
  gap: 8px;
  padding: 0.6rem 1.35rem;
}

.nav-cta .btn-donate .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--white);
  fill: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer-content {
  grid-template-columns: 1.6fr 1fr 1.35fr 1.15fr;
  gap: 2.4rem;
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 0.9rem;
}

.footer-name-ur {
  display: block;
  font-size: 1.3rem;
  color: var(--secondary-color);
  line-height: 1.6 !important;
}

.footer-name-en {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
}

.footer-tagline-ur {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 2.2 !important;
  margin-bottom: 0.5rem;
}

.footer-tagline-en {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-bottom: 0.7rem;
  line-height: 1.55;
  transition: var(--transition);
}

a.footer-contact:hover {
  color: var(--secondary-color);
}

.footer-wa {
  align-items: center;
  flex-wrap: wrap;
  gap: 0 6px;
}

.wa-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #25d366;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.45);
  border-radius: 50px;
  padding: 1px 8px;
}

.footer-wa .icon-inline {
  color: #25d366;
}

.footer-cta {
  margin-top: 1.1rem;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

.footer-cta .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--white);
  fill: rgba(255, 255, 255, 0.22);
}

.footer-bottom {
  text-align: center;
}

.footer-quran-verse {
  margin-bottom: 0.9rem;
}

.footer-quran-verse .arabic-text {
  font-size: 1.45rem;
  color: var(--secondary-color);
  line-height: 2.2 !important;
  margin-bottom: 0.15rem;
}

.verse-translation {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  margin: 0;
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
}

/* --- Contact page: phone / WhatsApp cards ------------------------------- */
.contact-card a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.5);
  transition: var(--transition);
}

.contact-card a:hover {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

.contact-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.contact-card-wa .contact-icon {
  background: linear-gradient(135deg, #128c47, #25d366);
  border-color: rgba(255, 255, 255, 0.45);
}

.contact-card-wa .contact-icon .icon {
  color: #ffffff;
}

.dept-contact a,
.faq-sidebar-info a,
.donate-method a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.dept-contact a:hover,
.faq-sidebar-info a:hover,
.donate-method a:hover {
  color: var(--secondary-color);
}

/* ==========================================================================
   HEADER / FOOTER RESPONSIVE
   ========================================================================== */

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 850px) {
  /* The utility bar keeps only the two tap actions on small screens */
  .topbar-inner {
    justify-content: center;
    gap: 0.9rem;
    padding: 0.45rem 4%;
  }

  .topbar-place,
  .topbar-mail {
    display: none;
  }

  .logo-ur {
    font-size: 1.15rem;
  }

  .logo-en {
    font-size: 1rem;
  }

  .logo img {
    width: 38px;
    height: 38px;
  }

  /* Donate sits inside the collapsed menu — make it full width */
  .nav-cta .btn-donate {
    justify-content: center;
    width: 100%;
    margin-top: 0.4rem;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .footer-cta {
    width: 100%;
    justify-content: center;
  }
}

/* --- Phase 4 corrections ------------------------------------------------ */

/* RTL text right-aligns inside its box by default, which pulled the Urdu
   name away from the English beneath it in both lockups. Align the whole
   lockup to the inline start instead. */
.logo-text,
.footer-logo > span {
  align-items: flex-start;
  text-align: left;
}

.logo-ur,
.footer-name-ur,
.footer-tagline-ur {
  text-align: left;
}

.footer-logo {
  align-items: center;
}

.footer-logo > span {
  display: flex;
  flex-direction: column;
}

/* Contact lines: icon in its own column so wrapped text stays indented */
.footer-contact {
  gap: 0.55rem;
  align-items: flex-start;
}

.footer-contact .icon-inline {
  margin-inline-end: 0;
  margin-top: 0.18em;
}

.footer-contact strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}

.footer-wa {
  align-items: flex-start;
}

.wa-tag {
  display: inline-block;
  margin-inline-start: 4px;
  vertical-align: 1px;
}

/* Footer nav links were spaced like paragraphs */
.footer-col > a:not(.footer-logo):not(.footer-cta):not(.footer-contact) {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
}

.footer-content {
  grid-template-columns: 1.7fr 0.9fr 1.3fr 1.2fr;
}

/* `.footer-col p, .footer-col a` is (0,2,0) and was forcing display:block onto
   the logo lockup and the contact rows, collapsing their flex layout. These
   need to out-specify it. */
.footer-col a.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-col .footer-contact,
.footer-col a.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.footer-col a.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.1rem;
}

/* Sliding on hover is fine for nav links but makes contact rows twitch */
.footer-col a.footer-logo:hover,
.footer-col a.footer-contact:hover,
.footer-col a.footer-cta:hover {
  transform: none;
}

.footer-col a.footer-cta:hover {
  transform: translateY(-3px);
}
