/* ==========================================================================
   THE DERMA INSTITUTE - DERMIX-INSPIRED GREEN LIGHT-MODE DESIGN SYSTEM
   Domain: thedermainstitute.pk | Phone: 0332 4066640
   ========================================================================== */

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

:root {
  /* Emerald Green Color Palette */
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --primary-300: #86efac;
  --primary-400: #4ade80;
  --primary-500: #10b981;
  --primary-600: #059669;
  --primary-700: #047857;
  --primary-800: #065f46;
  --primary-900: #064e3b;
  --primary-dark: #022c22;

  /* Neutral Light Mode System */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-section: #f1f5f9;
  --bg-emerald-subtle: #ecfdf5;
  
  /* Text & Typography */
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* UI Borders & Accents */
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-emerald: #a7f3d0;
  --accent-gold: #d97706;

  /* Fonts */
  --font-heading: 'Onest', 'Outfit', -apple-system, sans-serif;
  --font-body: 'Onest', 'Inter', -apple-system, sans-serif;

  /* Shadows & Radius */
  --shadow-sm: 0 2px 5px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --shadow-emerald: 0 12px 30px -6px rgba(5, 150, 105, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

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

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

a {
  color: var(--primary-700);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-900);
}

ul {
  list-style: none;
}

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

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

/* Row & Grid Utilities */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1rem;
  margin-right: -1rem;
}

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

.col-xl-7, .col-xl-5, .col-lg-10, .col-lg-12 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-lg-10 { flex: 0 0 83.333333%; }
.col-lg-12 { flex: 0 0 100%; }

@media (max-width: 1024px) {
  .col-xl-7, .col-xl-5 { flex: 0 0 100%; max-width: 100%; }
}

/* ==========================================================================
   DERMIX ANIMATION CLASSES (Entrance & Hover Effects)
   ========================================================================== */
.wow {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.wow.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Image Anime Hover Frame */
figure.image-anime {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin: 0;
}

figure.image-anime img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

figure.image-anime:hover img {
  transform: scale(1.08);
}

/* ==========================================================================
   TOPBAR & HEADER
   ========================================================================== */
.top-bar {
  background-color: var(--primary-900);
  color: var(--primary-100);
  font-size: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-info-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-100);
  font-weight: 500;
}

.top-info-item a {
  color: var(--primary-100);
  font-weight: 600;
}

.top-info-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-badge {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  color: var(--text-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: var(--shadow-emerald);
}

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

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--primary-700);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.95rem;
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--primary-700);
  background-color: var(--primary-50);
}

.dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
  fill: currentColor;
}

.nav-item:hover > .nav-link .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1050;
}

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

.dropdown-item {
  position: relative;
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.35rem;
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-link:hover, .dropdown-item:hover > .dropdown-link {
  background-color: var(--primary-50);
  color: var(--primary-800);
  padding-left: 1.6rem;
}

/* Sub-dropdown */
.sub-dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 240px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.dropdown-item:hover > .sub-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Header Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary, .btn-default.btn-highlighted {
  background-color: var(--primary-500);
  color: var(--text-white);
  box-shadow: var(--shadow-emerald);
}

.btn-primary:hover, .btn-default.btn-highlighted:hover {
  background-color: var(--primary-600);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(16, 185, 129, 0.45);
}

.btn-outline {
  border-color: var(--primary-700);
  color: var(--primary-700);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-700);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-heading);
}

.mobile-toggle svg {
  width: 30px;
  height: 30px;
}

/* ==========================================================================
   DERMIX FULL-WIDTH BACKGROUND IMAGE HERO (.hero.dark-section)
   ========================================================================== */
.hero.dark-section {
  position: relative;
  background: linear-gradient(90deg, rgba(2, 44, 34, 0.92) 0%, rgba(2, 44, 34, 0.82) 45%, rgba(2, 44, 34, 0.45) 100%), url('../images/hero_bg_banner.jpg') center/cover no-repeat;
  padding: 7rem 0 7rem;
  color: #ffffff;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero .section-sub-title {
  background-color: rgba(16, 185, 129, 0.25);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.4);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero .section-sub-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--primary-400);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-400);
}

.hero-main-title {
  font-size: 3.8rem;
  color: #ffffff;
  margin-bottom: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-main-title span {
  color: #6ee7b7;
  position: relative;
}

.hero-text {
  font-size: 1.18rem;
  color: #e2e8f0;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  max-width: 680px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content-body {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Dermix Video Play Button */
.video-play-button a {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.video-play-button .bg-effect {
  width: 54px;
  height: 54px;
  background-color: #ffffff;
  color: var(--primary-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  animation: pulse-ring 2.2s infinite;
  transition: var(--transition);
}

.video-play-button a:hover .bg-effect {
  transform: scale(1.1);
  background-color: #dcfce7;
}

.video-play-button p {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Hero Stats Row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 680px;
}

.hero-stat-item h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-stat-item p {
  font-size: 0.85rem;
  color: #a7f3d0;
  font-weight: 600;
  margin: 0;
}

/* Floating Verified Badge Card */
.hero-floating-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.6rem;
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-emerald);
  margin-top: 2rem;
}

.hero-floating-card .badge-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-100);
  color: var(--primary-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
}

.hero-floating-card strong {
  display: block;
  font-size: 1rem;
  color: var(--text-heading);
}

.hero-floating-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   DERMIX STACKED "ABOUT US" LAYOUT
   ========================================================================== */
.about-us {
  padding: 6rem 0;
  background-color: var(--bg-surface);
}

.about-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.about-us-image-box {
  position: relative;
  min-height: 450px;
}

.about-us-image.image-1 {
  width: 82%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-us-image.image-2 {
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--bg-surface);
}

.about-us-item-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.about-us-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about-us-item .icon-box {
  width: 46px;
  height: 46px;
  background-color: var(--primary-100);
  color: var(--primary-800);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.about-us-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.about-us-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION & GRID LAYOUTS
   ========================================================================== */
.section {
  padding: 6rem 0;
}

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

.section-title-wrap {
  margin-bottom: 3.5rem;
}

.section-title-center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-sub-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-emerald-subtle);
  color: var(--primary-700);
  border: 1px solid var(--border-emerald);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-sub-title::before {
  content: "";
  width: 7px;
  height: 7px;
  background-color: var(--primary-500);
  border-radius: 50%;
}

.section-main-title {
  font-size: 2.5rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

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

/* ==========================================================================
   DERMIX-STYLE SERVICE / COURSE CARDS
   ========================================================================== */
.course-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

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

.course-card-image {
  position: relative;
  height: 220px;
}

.course-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-700);
  color: var(--text-white);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  z-index: 2;
}

.course-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-heading);
}

.course-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.course-meta-table {
  width: 100%;
  border-top: 1px dashed var(--border-light);
  border-bottom: 1px dashed var(--border-light);
  margin-bottom: 1.5rem;
  padding: 0.85rem 0;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 0.35rem 0;
}

.meta-row .label {
  color: var(--text-muted);
}

.meta-row .value {
  font-weight: 700;
  color: var(--text-heading);
}

/* ==========================================================================
   DERMIX "WHY CHOOSE US" & COUNTER CARDS
   ========================================================================== */
.why-choose-us {
  padding: 6rem 0;
  background-color: var(--bg-surface);
}

.why-choose-highlighted-box {
  background-color: var(--bg-emerald-subtle);
  border-left: 4px solid var(--primary-700);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--primary-900);
  line-height: 1.6;
}

.why-choose-counter-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.why-choose-counter-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.why-choose-counter-item h2 {
  font-size: 2.2rem;
  color: var(--primary-800);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.why-choose-counter-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.why-choose-us-contact-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--primary-900);
  color: var(--text-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-full);
}

.why-choose-us-contact-box .icon-box {
  width: 42px;
  height: 42px;
  background-color: var(--primary-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.why-choose-us-contact-box p {
  font-size: 0.78rem;
  color: var(--primary-200);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.why-choose-us-contact-box h3 a {
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 800;
}

/* ==========================================================================
   DERMIX CORE FEATURE SPLIT LAYOUT (4-Step Admission Journey)
   ========================================================================== */
.core-feature-split {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1fr;
  align-items: center;
  gap: 2rem;
}

.core-feature-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.core-feature-item:hover {
  border-color: var(--border-emerald);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.core-feature-item .step-num {
  width: 36px;
  height: 36px;
  background-color: var(--primary-100);
  color: var(--primary-800);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.core-feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.core-feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ACCREDITATION BANNER
   ========================================================================== */
.accreditation-banner {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  box-shadow: var(--shadow-emerald);
}

.accreditation-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.accreditation-banner h2 {
  color: var(--text-white);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.accreditation-banner p {
  color: var(--primary-100);
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

/* ==========================================================================
   SCHEDULE TABLE
   ========================================================================== */
.schedule-table-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  background-color: var(--bg-section);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.schedule-table th {
  background-color: var(--primary-900);
  color: var(--text-white);
  padding: 1.1rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
}

.schedule-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.94rem;
}

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

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-open {
  background-color: var(--primary-100);
  color: var(--primary-800);
}

/* ==========================================================================
   LOCATION CARDS & MAP
   ========================================================================== */
.campus-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.campus-card:hover {
  border-color: var(--border-emerald);
  box-shadow: var(--shadow-md);
}

.campus-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.campus-icon {
  width: 52px;
  height: 52px;
  background-color: var(--primary-100);
  color: var(--primary-800);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.campus-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  font-size: 0.94rem;
}

.campus-detail-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.campus-detail-item strong {
  min-width: 85px;
  color: var(--text-heading);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.65rem;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-700);
}

.faq-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
  fill: currentColor;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.65rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.faq-item.active .faq-answer {
  max-height: 320px;
  padding: 0 1.65rem 1.35rem;
}

/* ==========================================================================
   MODAL DIALOG & FORMS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-surface);
  width: 100%;
  max-width: 660px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem 2rem;
  background-color: var(--primary-900);
  color: var(--text-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--text-white);
  font-size: 1.4rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--primary-100);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-body {
  padding: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.94rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-600);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--primary-dark);
  color: var(--primary-100);
  padding: 5rem 0 2rem;
  border-top: 5px solid var(--primary-600);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.9fr);
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--primary-100);
  font-size: 0.94rem;
  line-height: 1.75;
}

.footer-title {
  color: var(--text-white);
  font-size: 1.15rem;
  margin-bottom: 1.35rem;
}

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

.footer-links a {
  color: var(--primary-100);
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-white);
  padding-left: 0.4rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--primary-200);
}

/* Fixed Ribbon */
.fixed-contact-ribbon {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-surface);
  padding: 0.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  border-left: none;
}

.ribbon-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: var(--transition);
}

.ribbon-whatsapp { background-color: #25d366; }
.ribbon-phone { background-color: var(--primary-700); }
.ribbon-verify { background-color: var(--text-heading); }

.ribbon-item:hover {
  transform: scale(1.1);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero.dark-section { padding: 5rem 0; min-height: auto; }
  .hero-main-title { font-size: 2.8rem; }
  .grid-3, .about-us-grid, .core-feature-split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar-content { flex-direction: column; text-align: center; }
  .mobile-toggle { display: block; }
  
  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    width: 100%;
    height: calc(100vh - 84px);
    background-color: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .main-nav.active { transform: translateX(0); }
  .nav-list { flex-direction: column; width: 100%; align-items: flex-start; }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 0.85rem 1rem; }

  .dropdown-menu, .sub-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: none;
    width: 100%;
  }

  .dropdown-item.active > .sub-dropdown-menu,
  .nav-item.active > .dropdown-menu { display: block; }

  .hero-main-title { font-size: 2.3rem; }
  .grid-3, .grid-2, .grid-4, .accreditation-grid, .about-us-item-list, .why-choose-counter-list, .hero-stats-row {
    grid-template-columns: 1fr;
  }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .fixed-contact-ribbon { display: none; }
}
