/* ============================================
   BMSF Premium Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --navy: #0A1628;
  --navy-light: #0F2044;
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --emerald: #10B981;
  --gold: #F59E0B;
  --gold-light: #FCD34D;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --border: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 8px 32px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.18);
  --shadow-teal: 0 8px 32px rgba(13, 148, 136, 0.25);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --header-height: 130px;
}

/* Static fallback close to the real mobile header height so the first
   paint (before JS measures the header) leaves no blank gap. JS then
   corrects --header-height to the exact measured value on every page. */
@media (max-width: 991.98px) {
  :root {
    --header-height: 70px;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--emerald), var(--gold));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

.topbar {
  background: var(--navy);
  padding: 8px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.topbar a:hover {
  color: var(--teal-light);
}

.topbar .social-icons a {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: var(--transition);
}

.topbar .social-icons a:hover {
  background: var(--teal);
  color: white;
}

.navbar-main {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
  padding: 0;
  transition: var(--transition);
}

.site-header.scrolled .topbar {
  display: none;
}

.site-header.scrolled .navbar-main {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(10, 22, 40, 0.25);
}

.navbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  /* background: linear-gradient(135deg, var(--teal), var(--emerald)); */
  background: white;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: var(--shadow-teal);
}

.brand-text {
  line-height: 1.15;
}

.brand-text .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  display: block;
}

.brand-text .sub {
  font-size: 10.5px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

.site-header.scrolled .brand-text .name,
.site-header.scrolled .brand-text .sub {
  color: rgba(255, 255, 255, 0.9);
}

.main-nav {
  padding: 0;
}

.main-nav .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy) !important;
  padding: 28px 16px !important;
  position: relative;
  transition: color 0.25s;
}

.main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--teal);
  transition: var(--transition);
  border-radius: 2px;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  left: 16px;
  right: 16px;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--teal) !important;
}

.site-header.scrolled .main-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

.site-header.scrolled .main-nav .nav-link:hover {
  color: var(--teal-light) !important;
}

/* Mega Menu */
.mega-menu-wrapper {
  position: static;
}

.mega-menu-wrapper>.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  background: white;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 3px solid var(--teal);
  z-index: 100;
}

.mega-menu-wrapper:hover .mega-menu {
  display: grid;
}

.mega-course-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.mega-course-item:hover {
  background: var(--off-white);
}

.mega-course-item .icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(16, 185, 129, 0.1));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 15px;
  flex-shrink: 0;
}

.mega-course-item .info .title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  display: block;
}

.mega-course-item .info .meta {
  font-size: 11.5px;
  color: var(--slate);
}

.mega-menu-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
}

.mega-menu-header h6 {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-register {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: white !important;
  padding: 10px 22px !important;
  border-radius: 50px;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-teal);
  transition: var(--transition) !important;
  border: none;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(13, 148, 136, 0.4);
}

.btn-register::after {
  display: none !important;
}

/* Hamburger */
.navbar-toggler {
  border: none !important;
  padding: 0;
  color: var(--navy);
  font-size: 22px;
}

.site-header.scrolled .navbar-toggler {
  color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  height: 100vh;
  min-height: 680px;
  position: relative;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  height: 88%;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.swiper-slide-active .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(10, 22, 40, 0.92) 0%,
      rgba(10, 22, 40, 0.7) 50%,
      rgba(13, 148, 136, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(13, 148, 136, 0.4);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--teal-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-light);
  animation: pulse-dot 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero-title .accent {
  color: var(--teal-light);
  font-style: italic;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: white;
  padding: 15px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.4);
  transition: var(--transition);
  border: none;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(13, 148, 136, 0.5);
  color: white;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 15px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  transform: translateY(-3px);
}

/* Hero stats bar */
.hero-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  z-index: 5;
}

.hero-stat {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-stat .num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--teal-light);
  display: block;
  line-height: 1;
}

.hero-stat .label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* EKG line */
.ekg-line {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 3;
  opacity: 0.3;
  pointer-events: none;
}

/* Swiper navigation */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  z-index: 10;
}

.hero-nav-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.swiper-pagination-hero {
  bottom: 100px !important;
}

.swiper-pagination-hero .swiper-pagination-bullet {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition: var(--transition);
}

.swiper-pagination-hero .swiper-pagination-bullet-active {
  background: var(--teal-light);
  width: 48px;
}

/* ============================================
   SECTION COMMONS
   ============================================ */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.section-title .italic {
  font-style: italic;
  color: var(--teal);
}

.section-lead {
  font-size: 17px;
  color: var(--slate);
  line-height: 1.75;
  max-width: 560px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--emerald));
  border-radius: 2px;
  margin: 20px 0;
}

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: white;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  box-shadow: var(--shadow-teal);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.45);
  color: white;
}

.btn-outline-custom {
  background: transparent;
  color: var(--teal);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--teal);
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline-custom:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-ghost:hover {
  color: var(--teal);
  gap: 14px;
}

.btn-ghost:hover {
  text-decoration: none;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 100px 0;
  background: var(--off-white);
}

.about-image-grid {
  position: relative;
  height: 480px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 68%;
  height: 360px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 52%;
  height: 260px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 4px solid white;
}

.about-badge-float {
  position: absolute;
  top: 280px;
  left: 55%;
  background: var(--navy);
  color: white;
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: center;
  z-index: 2;
  min-width: 120px;
  box-shadow: var(--shadow-lg);
}

.about-badge-float .num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--teal-light);
  display: block;
}

.about-badge-float .txt {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-features {
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(10, 22, 40, 0.07);
}

.about-feature:last-child {
  border-bottom: none;
}

.about-feature .icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(16, 185, 129, 0.12));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 17px;
  flex-shrink: 0;
}

.about-feature .text h6 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.about-feature .text p {
  font-size: 13.5px;
  color: var(--slate);
  margin: 0;
}

/* ============================================
   COURSES SECTION
   ============================================ */
.courses-section {
  padding: 100px 0;
  background: white;
}

.course-filter {
  margin-bottom: 48px;
}

.filter-btn {
  background: transparent;
  border: 1.5px solid rgba(10, 22, 40, 0.12);
  color: var(--slate);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin: 4px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.course-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 22, 40, 0.07);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.course-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .course-card-img img {
  transform: scale(1.08);
}

.course-type-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.course-type-badge.workshop {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
}

.course-type-badge.conference {
  background: linear-gradient(135deg, var(--gold), #ef8f00);
}

.course-type-badge.certification {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.course-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
}

.course-card-meta span {
  font-size: 12px;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-card-meta span i {
  color: var(--teal);
}

.course-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.course-card-desc {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.course-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(10, 22, 40, 0.07);
}

.course-price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--teal);
}

.course-price .currency {
  font-size: 12px;
  color: var(--slate);
}

.btn-course {
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-course:hover {
  background: var(--teal);
  color: white;
  text-decoration: none;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0D2048 60%, #0A2840 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 600;
  background: linear-gradient(135deg, var(--teal-light), var(--emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  background: linear-gradient(135deg, var(--teal-light), var(--emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  height: 80px;
  margin: auto;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-section {
  padding: 100px 0;
  background: var(--off-white);
}

.why-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(10, 22, 40, 0.07);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--emerald));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(16, 185, 129, 0.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 22px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: white;
}

.why-card h5 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   FACULTY SECTION
   ============================================ */
.faculty-section {
  padding: 100px 0;
  background: white;
}

.faculty-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 22, 40, 0.07);
  transition: var(--transition);
  text-align: center;
}

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

.faculty-img-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.faculty-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.faculty-card:hover .faculty-img-wrap img {
  transform: scale(1.05);
}

.faculty-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.7), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  gap: 10px;
}

.faculty-card:hover .faculty-overlay {
  opacity: 1;
}

.faculty-social-btn {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  backdrop-filter: blur(4px);
  transition: var(--transition);
  cursor: pointer;
}

.faculty-social-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.faculty-info {
  padding: 20px;
}

.faculty-info h5 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.faculty-role {
  font-size: 12.5px;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.faculty-dept {
  font-size: 12.5px;
  color: var(--slate);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0F2A50 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(10px);
  height: 100%;
}

.quote-icon {
  font-size: 40px;
  color: var(--teal);
  opacity: 0.5;
  margin-bottom: 20px;
  display: block;
  line-height: 1;
}

.testimonial-text {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}

.stars {
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 18px;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(13, 148, 136, 0.5);
}

.reviewer-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.reviewer-info .name {
  font-size: 14.5px;
  font-weight: 700;
  color: white;
  display: block;
}

.reviewer-info .role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--teal) 0%, var(--emerald) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -10%;
  width: 55%;
  background: rgba(255, 255, 255, 0.06);
  transform: skewX(-8deg);
}

.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0L80 12v2L54 40h-2zm4 0L80 16v2L58 40h-2zm4 0L80 20v2L62 40h-2zm4 0L80 24v2L66 40h-2zm4 0L80 28v2L70 40h-2zm4 0L80 32v2L74 40h-2zm4 0L80 36v2L78 40h-2zm4 0L80 40l-2-2h2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner-content {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

.btn-cta-white {
  background: white;
  color: var(--teal);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-cta-white:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.25);
}

/* ============================================
   UPCOMING EVENTS
   ============================================ */
.events-section {
  padding: 100px 0;
  background: var(--off-white);
}

.event-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 22, 40, 0.07);
  display: flex;
  gap: 0;
  transition: var(--transition);
}

.event-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--teal);
}

/* Cards inside the 2-column grid stretch to equal height without double gaps. */
.event-grid .event-card {
  height: 100%;
}

.event-date {
  min-width: 80px;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  text-align: center;
}

.event-date .day {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: white;
  line-height: 1;
  display: block;
}

.event-date .month {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  display: block;
}

.event-info {
  padding: 16px 20px;
  flex: 1;
}

.event-tag {
  display: inline-block;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.event-info h6 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.event-meta {
  font-size: 12.5px;
  color: var(--slate);
}

.event-meta span {
  margin-right: 14px;
}

.event-meta i {
  color: var(--teal);
  margin-right: 4px;
}

.event-arrow {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--slate);
  font-size: 14px;
  transition: var(--transition);
}

.event-card:hover .event-arrow {
  color: var(--teal);
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
  padding: 100px 0;
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 12px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-overlay i {
  color: white;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

/* ============================================
   PARTNERS
   ============================================ */
.partners-section {
  padding: 60px 0;
  border-top: 1px solid rgba(10, 22, 40, 0.07);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  filter: grayscale(1) opacity(0.5);
  transition: var(--transition);
  padding: 0 20px;
  text-decoration: none;
}

a.partner-logo {
  cursor: pointer;
}

.partner-logo:hover {
  filter: grayscale(0) opacity(1);
}

.partner-logo img {
  max-height: 40px;
  width: auto;
}

.partner-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--slate);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ============================================
   NEWS / NOTICES
   ============================================ */
.news-section {
  padding: 100px 0;
  background: var(--off-white);
}

.news-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 22, 40, 0.07);
  transition: var(--transition);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card-img {
  height: 180px;
  overflow: hidden;
}

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

.news-card:hover .news-card-img img {
  transform: scale(1.06);
}

.news-card-body {
  padding: 22px;
}

.news-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.news-card-body h6 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-date {
  font-size: 12px;
  color: var(--slate);
  margin-bottom: 10px;
}

.news-date i {
  margin-right: 5px;
}

.news-excerpt {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.65;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  padding: 100px 0;
  background: white;
}

.faq-accordion .accordion-item {
  border: 1px solid rgba(10, 22, 40, 0.08) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background: white;
  padding: 20px 24px;
  box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--teal);
  background: rgba(13, 148, 136, 0.04);
}

.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230D9488'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-body {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.75;
  padding: 0 24px 20px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: 100px 0;
  background: var(--off-white);
}

.contact-info-card {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 40px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.08);
}

.contact-info-card h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.contact-info-card p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-info-item .icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
  font-size: 17px;
  flex-shrink: 0;
}

.contact-info-item .text .label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 3px;
}

.contact-info-item .text .value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.contact-form-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-label-custom {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
}

.form-control-custom {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(10, 22, 40, 0.12);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--navy);
  background: var(--off-white);
  transition: border-color 0.25s;
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.form-control-custom::placeholder {
  color: var(--slate-light);
}

textarea.form-control-custom {
  resize: vertical;
  min-height: 120px;
}

.form-select-custom {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(10, 22, 40, 0.12);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--navy);
  background: var(--off-white);
  transition: border-color 0.25s;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.form-select-custom:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
  height: 420px;
  position: relative;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--emerald), var(--gold));
}

.footer-brand .brand-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  transition: var(--transition);
}

.footer-social-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a::before {
  content: '→';
  font-size: 11px;
  color: var(--teal);
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
  gap: 14px;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item i {
  color: var(--teal);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.footer-newsletter .newsletter-form {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px;
}

.footer-newsletter input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 13.5px;
  padding: 8px 16px;
  flex: 1;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.footer-newsletter button {
  background: var(--teal);
  border: none;
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.footer-newsletter button:hover {
  background: var(--emerald);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.25);
  padding: 20px 0;
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: var(--teal-light);
}

/* ============================================
   FLOATING ACTION BUTTON
   ============================================ */
.fab-group {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.fab-main {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.45);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.fab-main:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(13, 148, 136, 0.55);
}

#back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-to-top:hover {
  background: var(--teal);
  transform: translateY(-2px);
}

/* ============================================
   MODAL (Lightbox / Registration)
   ============================================ */
.modal-custom .modal-content {
  border-radius: var(--radius-xl);
  border: none;
  overflow: hidden;
}

.modal-custom .modal-header {
  background: linear-gradient(135deg, var(--navy), #0F2A50);
  padding: 24px 32px;
  border: none;
}

.modal-custom .modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: white;
}

.modal-custom .modal-body {
  padding: 32px;
}

.modal-custom .btn-close {
  filter: invert(1);
  opacity: 0.7;
}

/* Homepage notice popup: big full-width image, body scrolls inside the modal */
#noticePopupModal .modal-dialog {
  width: min(560px, calc(100vw - 2rem));
  max-width: min(560px, calc(100vw - 2rem));
  margin: 1rem auto;
}

#noticePopupModal .modal-content {
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#noticePopupModal .modal-header {
  flex-shrink: 0;
  gap: 12px;
}

#noticePopupModal .modal-title {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

#noticePopupModal .modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#noticePopupModal .notice-popup-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* Lightbox */
#lightbox-modal .modal-dialog {
  max-width: 900px;
}

#lightbox-modal .modal-content {
  background: rgba(10, 22, 40, 0.95);
}

#lightbox-modal .modal-body {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-modal img {
  max-height: 80vh;
  border-radius: var(--radius);
}

/* Registration multi-step */
.reg-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
  gap: 0;
}

.reg-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.1);
  border: 2px solid rgba(10, 22, 40, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.reg-step.active .step-circle,
.reg-step.done .step-circle {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.step-line {
  width: 60px;
  height: 2px;
  background: rgba(10, 22, 40, 0.12);
  transition: var(--transition);
}

.reg-step.done+.reg-step .step-line,
.step-line.done {
  background: var(--teal);
}

/* ============================================
   PAGE BANNERS
   ============================================ */
.page-banner {
  background: linear-gradient(135deg, var(--navy), #0D2248);
  padding: 100px 0 60px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--header-height, 130px);
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.1), transparent 70%);
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
}

.breadcrumb-item.active {
  color: var(--teal-light);
  font-size: 13.5px;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   SIMULATION LAB
   ============================================ */
.lab-feature {
  padding: 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 22, 40, 0.07);
  display: flex;
  gap: 16px;
  transition: var(--transition);
}

.lab-feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.lab-feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.lab-feature-text h6 {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
  font-size: 15px;
}

.lab-feature-text p {
  font-size: 13.5px;
  color: var(--slate);
  margin: 0;
}

/* ============================================
   COURSE DETAIL PAGE
   ============================================ */
.course-detail-sidebar {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height, 130px) + 20px);
}

.sidebar-price-box {
  background: linear-gradient(135deg, var(--navy), #0F2A50);
  padding: 28px;
  text-align: center;
}

.sidebar-price {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 600;
  color: var(--teal-light);
}

.sidebar-price .nrs {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-details {
  padding: 24px;
}

.sidebar-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(10, 22, 40, 0.07);
  font-size: 14px;
}

.sidebar-detail-item:last-child {
  border-bottom: none;
}

.sidebar-detail-item .key {
  color: var(--slate);
}

.sidebar-detail-item .val {
  font-weight: 600;
  color: var(--navy);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-content>* {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.swiper-slide-active .hero-badge {
  animation-delay: 0.2s;
}

.swiper-slide-active .hero-title {
  animation-delay: 0.4s;
}

.swiper-slide-active .hero-desc {
  animation-delay: 0.6s;
}

.swiper-slide-active .hero-actions {
  animation-delay: 0.8s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
  .topbar {
    display: none;
  }

  .main-nav .nav-link {
    padding: 12px 16px !important;
  }

  .main-nav .nav-link::after {
    display: none;
  }

  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0 16px;
    border-radius: 0;
  }

  .mega-menu-wrapper:hover .mega-menu {
    display: none;
  }

  .hero-stat {
    padding: 0 12px;
  }

  .hero-stat .num {
    font-size: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-item:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
    height: 220px;
  }

  .about-image-grid {
    height: 320px;
  }

  .about-badge-float {
    display: none;
  }

  .contact-info-card {
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
  }
}

@media (max-width: 767.98px) {
  .hero-stats-bar .d-flex {
    flex-wrap: wrap;
  }

  .hero-stat {
    width: 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-stat:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .event-card {
    flex-direction: column;
  }

  .event-date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  .cta-banner {
    text-align: center;
  }

  .cta-banner .text-lg-end {
    text-align: center !important;
    margin-top: 24px;
  }
}

@media (min-width: 992px) {
  .mega-menu-wrapper {
    position: relative;
  }
}

/* Mobile menu drawer */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    border-top: 1px solid rgba(10, 22, 40, 0.08);
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }

  .site-header.scrolled .navbar-collapse {
    background: var(--navy);
  }

  .site-header.scrolled .main-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
  }
}

/* AOS overrides */
[data-aos] {
  backface-visibility: hidden;
}

/* AOS keeps a live transform on elements it has not animated in yet. A transformed
   ancestor becomes the containing block for position:fixed, so any Bootstrap modal
   nested inside one lands off-screen. Neutralise it instead. */
[data-aos]:has(.modal) {
  transform: none;
  backface-visibility: visible;
}

/* Swiper custom */
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}

/* course */
/* ============================================
   SCHEDULE SELECTION
   ============================================ */
.schedule-option {
  display: flex;
  border: 1.5px solid rgba(10, 22, 40, 0.08);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--off-white);
}

.schedule-option:hover {
  border-color: rgba(13, 148, 136, 0.35);
  background: white;
}

.schedule-option:has(.schedule-checkbox:checked) {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.05);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08);
}

.schedule-option.is-waitlist {
  opacity: 0.85;
}

.schedule-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
}

.schedule-checkbox:disabled {
  cursor: not-allowed;
}

.selection-summary-bar {
  position: sticky;
  bottom: 20px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 22, 40, 0.08);
  padding: 20px 24px;
  margin-top: 24px;
  z-index: 10;
}

#enrollSubmitBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
/* ============================================
   RESPONSIVE FIXES � header/banner + mobile
   (appended; keep last so it wins ties)
   ============================================ */

/* Mega menu must fit laptop viewports */
@media (max-width: 1199.98px) {
  .mega-menu {
    width: min(820px, calc(100vw - 32px));
  }
}

/* Tablet and below: breathing room for stacked sections */
@media (max-width: 991.98px) {
  .about-section,
  .courses-section,
  .why-section,
  .faculty-section,
  .testimonials-section,
  .events-section,
  .gallery-section,
  .news-section,
  .faq-section,
  .contact-section {
    padding: 64px 0;
  }

  .stats-section,
  .cta-banner {
    padding: 56px 0;
  }

  .page-banner {
    padding: 72px 0 44px;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 28px;
  }

  .why-card,
  .testimonial-card {
    padding: 24px;
  }

  .modal-custom .modal-body {
    padding: 24px;
  }

  #noticePopupModal .modal-dialog {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    margin: 0.75rem auto;
  }

  #noticePopupModal .modal-body {
    padding: 20px;
  }

  #noticePopupModal .notice-popup-img {
    max-height: none;
  }

  /* Drawer must scroll, never cover the whole viewport */
  .navbar-collapse {
    max-height: calc(100vh - var(--header-height, 130px) - 16px);
    max-height: calc(100dvh - var(--header-height, 130px) - 16px);
    overflow-y: auto;
  }

  .mega-menu {
    grid-template-columns: 1fr 1fr;
    max-height: 50vh;
    max-height: 50dvh;
    overflow-y: auto;
  }

  .course-detail-sidebar {
    position: static;
  }
}

/* Phones */
@media (max-width: 575.98px) {
  /* Header brand never wraps into the toggler */
  .brand-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .brand-text .name {
    font-size: 14.5px;
  }

  .brand-text .sub {
    font-size: 9px;
  }

  .header-cta {
    display: none;
  }

  /* Hero fits small screens */
  .hero-section {
    height: auto;
    min-height: 0;
    /* padding: 64px 0 0; */
  }

  .hero-slide {
    height: auto;
    min-height: 420px;
    padding: 24px 0 48px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 4px;
  }

  .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .hero-desc {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    justify-content: center;
    padding: 13px 24px;
    font-size: 14px;
  }

  .hero-nav-btn {
    display: none;
  }

  .swiper-pagination-hero {
    bottom: 12px !important;
  }

  .ekg-line {
    display: none;
  }

  .hero-stats-bar {
    position: static;
    padding: 16px 0;
  }

  .hero-stat {
    width: 50%;
    padding: 10px 8px;
  }

  .hero-stat .num {
    font-size: 18px;
  }

  /* Banner + sections stay compact */
  .page-banner {
    padding: 56px 0 36px;
  }

  .page-banner h1 {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .about-section,
  .courses-section,
  .why-section,
  .faculty-section,
  .testimonials-section,
  .events-section,
  .gallery-section,
  .news-section,
  .faq-section,
  .contact-section {
    padding: 48px 0;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
  }

  /* Single-column menus, cards, grids */
  .mega-menu {
    grid-template-columns: 1fr;
  }

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

  .gallery-item:first-child {
    grid-column: auto;
    height: 200px;
  }

  .event-card {
    flex-direction: column;
  }

  /* Footer stacks and centers */
  .site-footer {
    padding: 48px 0 0;
    text-align: center;
  }

  .footer-brand .d-flex {
    justify-content: center;
  }

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

  .footer-newsletter .newsletter-form {
    flex-direction: column;
  }

  .footer-newsletter .newsletter-form input,
  .footer-newsletter .newsletter-form button {
    width: 100%;
    border-radius: 10px;
  }

  .footer-newsletter .newsletter-form button {
    margin-top: 8px;
  }

  .footer-bottom {
    margin-top: 32px;
  }

  .footer-bottom .d-flex {
    justify-content: center;
    text-align: center;
  }

  /* Long content never forces horizontal scroll */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    max-width: 100%;
  }

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

  /* FAQ search + filter fit narrow screens */
  .faq-search .input-group {
    flex-wrap: nowrap;
  }

  .course-filter .filter-btn {
    margin: 4px;
    font-size: 13px;
    padding: 8px 14px;
  }

  .selection-summary-bar {
    padding: 16px;
    bottom: 12px;
  }

  .cta-banner .btn-cta-white {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   NEWS LIST ROWS + NOTICE DETAIL
   ============================================ */
.news-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid rgba(10, 22, 40, 0.07);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 14px;
  transition: var(--transition);
}

a.news-row {
  text-decoration: none;
  color: inherit;
}

/* Rows inside the 2-column grid stretch to equal height without double gaps. */
.news-grid .news-row {
  height: 100%;
  margin-bottom: 0;
}

.news-row:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-row-main {
  flex: 1;
  min-width: 0;
}

.news-row-main .news-tag {
  margin-bottom: 8px;
}

.news-row-main h6 {
  margin: 8px 0 6px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}

.news-row:hover .news-row-main h6 {
  color: var(--teal);
}

.news-files {
  color: var(--teal);
  font-weight: 600;
  margin-left: 12px;
  white-space: nowrap;
}

.notice-body {
  font-size: 16px;
  color: #334155;
  line-height: 1.85;
  margin: 8px 0 8px;
}

.notice-body p {
  margin-bottom: 16px;
}

.notice-body img {
  border-radius: 12px;
}

.attach-heading {
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 14px;
}

.attach-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.attach-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--off-white);
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  transition: var(--transition);
}

.attach-item:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.attach-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.attach-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.attach-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attach-meta {
  font-size: 12px;
  color: var(--slate);
}

.attach-ext {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  border-radius: 6px;
  padding: 4px 10px;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .news-row {
    padding: 16px;
  }

  .news-row-main h6 {
    font-size: 15px;
  }

  .news-files {
    display: inline-block;
    margin-left: 0;
    margin-top: 4px;
  }

  .attach-name {
    white-space: normal;
  }
}

/* ============================================
   NEWS GRID CARDS + LIST SEARCH
   ============================================ */
a.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.news-card:hover h6 {
  color: var(--teal);
}

.news-card .news-date {
  margin-bottom: 6px;
}

.faq-search .input-group,
.news-search .input-group {
  box-shadow: var(--shadow-sm);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(10, 22, 40, 0.08);
  background: white;
}

.faq-search .input-group-text,
.news-search .input-group-text {
  background: white;
  border: 0;
  color: var(--teal);
  padding-left: 20px;
}

.faq-search .form-control,
.news-search .form-control {
  border: 0;
  padding: 13px 20px 13px 8px;
  font-size: 14.5px;
  box-shadow: none !important;
}

/* Bootstrap pagination in brand colors */
.pagination {
  --bs-pagination-color: var(--navy);
  --bs-pagination-hover-color: var(--teal);
  --bs-pagination-active-bg: var(--teal);
  --bs-pagination-active-border-color: var(--teal);
  --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
  margin-bottom: 0;
}

/* Notice/event list: separated pill buttons instead of joined segments */
.notice-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.notice-pagination-meta {
  font-size: 13.5px;
  color: var(--slate);
  margin-bottom: 0;
}

.notice-pagination-meta strong {
  color: var(--navy);
}

ul.pagination.notice-pagination {
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.notice-pagination .page-item .page-link {
  border-radius: 10px;
  border: 1px solid rgba(10, 22, 40, 0.1);
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.notice-pagination button.page-link {
  font: inherit;
  background-color: var(--bs-pagination-bg, #fff);
}

.notice-pagination .page-item:not(.disabled) .page-link {
  cursor: pointer;
}

.notice-pagination .page-item.active .page-link {
  box-shadow: var(--shadow-teal);
}

/* ============================================
   NOTICE TOOLBAR � filter dropdown + search
   ============================================ */
.notice-toolbar {
  display: flex;
  gap: 14px;
  align-items: stretch;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.notice-search {
  flex: 1;
  min-width: 0;
}

.notice-filter-dropdown {
  flex-shrink: 0;
}

.notice-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 50px;
  background: white;
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.notice-filter-btn:hover,
.notice-filter-btn.show {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.notice-filter-btn::after {
  margin-left: 2px;
  color: var(--slate);
}

.notice-filter-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.notice-filter-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: white;
  background: var(--navy);
  border-radius: 50px;
  padding: 2px 10px;
}

.notice-filter-menu {
  min-width: 270px;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  margin-top: 8px !important;
}

.notice-filter-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

.notice-filter-menu .dropdown-item:hover {
  background: rgba(13, 148, 136, 0.08);
}

.notice-filter-menu .dropdown-item.active {
  background: rgba(13, 148, 136, 0.12);
  color: var(--navy);
  font-weight: 700;
}

.notice-filter-menu .item-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.notice-filter-menu .item-label {
  flex: 1;
}

.notice-filter-menu .item-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  background: var(--off-white);
  border-radius: 50px;
  padding: 1px 9px;
}

.notice-filter-menu .dropdown-item.active .item-count {
  background: var(--teal);
  color: white;
}

.notice-filter-menu .item-check {
  color: var(--teal);
  font-size: 13px;
}

@media (max-width: 575.98px) {
  .notice-toolbar {
    flex-direction: column;
  }

  .notice-pagination-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .notice-filter-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .notice-filter-dropdown .dropdown-menu {
    width: 100%;
  }
}

/* ============================================
   PHOTO ALBUM CARDS
   ============================================ */
a.album-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 22, 40, 0.07);
  transition: var(--transition);
}

a.album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.album-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--off-white);
}

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

a.album-card:hover .album-cover img {
  transform: scale(1.06);
}

.album-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: var(--slate-light);
}

.album-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.album-body {
  padding: 20px 22px 22px;
}

.album-body h6 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

a.album-card:hover .album-body h6 {
  color: var(--teal);
}

.album-body p {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 10px;
}

/* ============================================
   FACULTY DETAIL + CARD LINKS
   ============================================ */
.faculty-card {
  position: relative;
}

.faculty-card .faculty-overlay {
  z-index: 2;
}

.faculty-card:hover .faculty-info h5 {
  color: var(--teal);
}

.faculty-detail-section {
  padding: 80px 0 100px;
}

.faculty-detail-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  object-position: top;
  aspect-ratio: 4 / 5;
  background: var(--off-white);
}

.faculty-dept-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  padding: 6px 16px;
}

.faculty-detail-label {
  font-weight: 700;
  color: var(--navy);
  margin: 4px 0 10px;
}

.faculty-detail-bio {
  font-size: 15.5px;
  color: #334155;
  line-height: 1.85;
}

.faculty-detail-bio p {
  margin-bottom: 14px;
}

@media (max-width: 767.98px) {
  .faculty-detail-section {
    padding: 56px 0 64px;
  }

  .faculty-detail-photo img {
    aspect-ratio: 1 / 1;
  }
}

/* ============================================
   FACULTY SIDEBAR (detail page)
   ============================================ */
.faculty-sidebar {
  background: white;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-height, 130px) + 20px);
}

.faculty-sidebar-heading {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faculty-sidebar-heading i {
  color: var(--teal);
}

.faculty-sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faculty-sidebar-list li + li {
  border-top: 1px solid rgba(10, 22, 40, 0.07);
}

.faculty-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  transition: var(--transition);
}

.faculty-sidebar-item:hover {
  padding-left: 10px;
}

.faculty-sidebar-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  background: var(--off-white);
  border: 2px solid rgba(13, 148, 136, 0.2);
}

.faculty-sidebar-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.faculty-sidebar-name {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
  line-height: 1.4;
}

.faculty-sidebar-item:hover .faculty-sidebar-name {
  color: var(--teal);
}

.faculty-sidebar-role {
  display: block;
  font-size: 12.5px;
  color: var(--slate);
  margin-top: 2px;
}

@media (max-width: 991.98px) {
  .faculty-sidebar {
    position: static;
  }
}

/* ============================================
   MOBILE CONTAINMENT � nothing may exceed the viewport
   ============================================ */
html,
body {
  overflow-x: clip;
}

/* Brand must shrink so the hamburger always fits on small screens, while the
   mobile drawer still wraps onto its own row below the brand bar.
   Scoped below lg on purpose: on laptop the Bootstrap navbar-expand-lg
   row (brand | nav | CTA) must stay exactly as designed. */
@media (max-width: 991.98px) {
  .navbar-main .container {
    flex-wrap: wrap;
  }

  .navbar-brand-wrap {
    min-width: 0;
    flex: 1 1 auto;
    margin-right: 8px;
  }

  .brand-text {
    min-width: 0;
  }

  .navbar-toggler {
    flex-shrink: 0;
  }

  #mainNav {
    flex-basis: 100%;
  }
}

/* Hero badge + content must wrap instead of forcing page width. */
.hero-badge {
  max-width: 100%;
}

.hero-slide,
.hero-content,
.hero-title,
.hero-desc {
  min-width: 0;
}

.hero-title,
.hero-desc,
.section-title,
.section-lead {
  overflow-wrap: break-word;
}

.hero-stat {
  min-width: 0;
}

.hero-stat .label {
  overflow-wrap: break-word;
}

/* Ticker row wraps on narrow screens. */
.ticker-inner {
  flex-wrap: wrap;
  row-gap: 8px;
  text-align: center;
}

.ticker-text {
  min-width: 0;
}

/* User-entered rich content (admin editors) can never break layout. */
.notice-body,
.faq-accordion .accordion-body,
.faculty-detail-bio,
.event-info,
.contact-info-card,
.footer-contact-item span {
  overflow-wrap: break-word;
}

.notice-body img,
.faq-accordion .accordion-body img,
.faculty-detail-bio img,
.event-info img {
  max-width: 100%;
  height: auto;
}

.notice-body table,
.faq-accordion .accordion-body table,
.faculty-detail-bio table,
.event-info table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.notice-body iframe,
.faq-accordion .accordion-body iframe,
.faculty-detail-bio iframe {
  max-width: 100%;
}

/* Fixed chrome that must stay inside small screens. */
.notice-filter-menu {
  max-width: calc(100vw - 32px);
}

.event-arrow {
  flex-shrink: 0;
}

.footer-contact-item a {
  overflow-wrap: anywhere;
}

@media (max-width: 359.98px) {
  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .brand-text .name {
    font-size: 12px;
  }

  .brand-text .sub {
    display: none;
  }

  .navbar-toggler {
    padding: 6px 10px;
    font-size: 15px;
  }
}

@media (max-width: 575.98px) {
  .navbar-main .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .brand-text .name {
    font-size: 13.5px;
  }

  .brand-text .sub {
    font-size: 8.5px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
    margin-bottom: 16px;
  }

  .hero-stat {
    padding: 10px 6px;
  }

  .ticker-text {
    font-size: 13.5px !important;
    width: 100%;
  }
}

/* ============================================
   TESTIMONIAL DETAIL
   ============================================ */
.testimonial-detail-section {
  padding: 80px 0 100px;
}

.testimonial-detail-card {
  background: white;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 48px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonial-detail-card .quote-icon {
  font-size: 64px;
}

.testimonial-detail-avatar {
  margin: 8px auto 16px;
  display: flex;
  justify-content: center;
}

.testimonial-detail-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(13, 148, 136, 0.4);
  box-shadow: var(--shadow-teal);
}

.reviewer-avatar-lg {
  width: 96px;
  height: 96px;
  font-size: 34px;
}

.testimonial-detail-card .stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 18px;
}

.testimonial-detail-text {
  font-size: 17px;
  color: #334155;
  line-height: 1.85;
  max-width: 640px;
  margin: 0 auto 20px;
}

.testimonial-detail-text p {
  margin-bottom: 14px;
}

.testimonial-detail-name {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 2px;
}

.testimonial-detail-role {
  color: var(--slate);
  font-size: 14px;
  margin-bottom: 0;
}

.testimonial-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}

.testimonial-mini-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  transition: var(--transition);
}

.testimonial-mini-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-mini-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 700;
}

span.testimonial-mini-photo {
  display: inline-flex;
}

.testimonial-mini-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.testimonial-mini-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
}

.testimonial-mini-role {
  font-size: 12.5px;
  color: var(--slate);
}

.testimonial-mini-arrow {
  color: var(--slate-light);
  font-size: 13px;
  flex-shrink: 0;
}

.testimonial-mini-item:hover .testimonial-mini-arrow {
  color: var(--teal);
}

@media (max-width: 575.98px) {
  .testimonial-detail-section {
    padding: 56px 0 64px;
  }

  .testimonial-detail-card {
    padding: 32px 22px;
  }
}

/* ============================================
   AUTH PAGES (split brand panel + form)
   ============================================ */
.auth-wrap {
  background: white;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.auth-side {
  background: linear-gradient(135deg, var(--navy) 0%, #0F2A50 55%, var(--teal) 130%);
  color: white;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-side::before {
  content: '';
  position: absolute;
  top: -25%;
  right: -20%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.25), transparent 70%);
}

.auth-side-brand {
  position: relative;
  z-index: 1;
}

.auth-side-brand .brand-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
}

.auth-side-brand h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.auth-side-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 0;
}

.auth-side-points {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.auth-side-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
}

.auth-side-points i {
  color: var(--teal-light);
  margin-top: 3px;
}

.auth-side-help {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.auth-side-help a {
  color: var(--teal-light);
  font-weight: 600;
}

.auth-main {
  padding: 48px 44px;
}

.auth-main h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
}

/* Show/hide password eye toggle. */
.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 44px;
}

.password-field .form-control.is-invalid {
  padding-right: 68px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--slate);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: var(--transition);
}

.password-toggle:hover {
  color: var(--teal);
  background: rgba(13, 148, 136, 0.08);
}

@media (max-width: 991.98px) {
  .auth-side {
    padding: 36px 28px;
  }

  .auth-side-points {
    margin: 20px 0;
  }

  .auth-main {
    padding: 36px 26px;
  }
}

/* ============================================
   USER AREA � dashboard + profile
   ============================================ */
.dash-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0F2A50 60%, var(--teal) 140%);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.dash-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.25), transparent 70%);
}

.dash-hero-user {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.dash-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.25);
}

.dash-avatar-lg {
  width: 84px;
  height: 84px;
  font-size: 30px;
}

.dash-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-light);
  margin-bottom: 2px;
}

.dash-title {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 2px;
}

.dash-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin-bottom: 0;
}

.dash-hero-side {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.dash-stats {
  display: flex;
  gap: 28px;
}

.dash-stat {
  text-align: center;
}

.dash-stat .num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--teal-light);
  display: block;
  line-height: 1.1;
}

.dash-stat .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

.dash-card {
  background: white;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
}

.dash-card:last-child {
  margin-bottom: 0;
}

.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.dash-card-head h6 {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0;
}

.dash-card-head h6 i {
  color: var(--teal);
  margin-right: 8px;
}

/* Profile completion reminder */
.dash-profile-reminder {
  border-left: 4px solid var(--gold);
}

.dash-reminder-main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.dash-reminder-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
}

.dash-reminder-body {
  flex: 1 1 240px;
  min-width: 0;
}

.dash-reminder-body h6 {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.dash-reminder-body p {
  font-size: 13.5px;
  color: var(--slate);
}

.dash-progress {
  height: 10px;
  border-radius: 999px;
  background: #E2E8F0;
  overflow: hidden;
}

.dash-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--emerald));
  transition: width 0.4s ease;
}

/* Dashboard analytics: stat cards, donut, bars, course × student matrix */
.dash-stats-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-stats-filters input[type="date"] {
  border: 1px solid rgba(10, 22, 40, 0.15);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12.5px;
  color: var(--navy);
  background: white;
}

.dash-stats-sep {
  font-size: 12px;
  color: var(--slate);
}

.dash-scope-pill {
  background: white;
  border: 1.5px solid rgba(10, 22, 40, 0.12);
  color: var(--slate);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.dash-scope-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.dash-scope-pill.active {
  background: linear-gradient(135deg, var(--navy), #0F2A50);
  border-color: transparent;
  color: white;
}

.dash-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.dash-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--off-white);
  border: 1px solid rgba(10, 22, 40, 0.07);
  border-radius: 14px;
  padding: 16px 18px;
}

.dash-stat-ico {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.dash-stat-card.total .dash-stat-ico {
  background: linear-gradient(135deg, var(--navy), #0F2A50);
}

.dash-stat-card.pending .dash-stat-ico {
  background: linear-gradient(135deg, var(--gold), #ef8f00);
}

.dash-stat-card.completed .dash-stat-ico {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
}

.dash-stat-card.cancelled .dash-stat-ico {
  background: linear-gradient(135deg, #EF4444, #b91c1c);
}

.dash-stat-card.certificates .dash-stat-ico {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.dash-stat-card.spent .dash-stat-ico {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.dash-stat-card strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.dash-stat-card small {
  font-size: 12px;
  color: var(--slate);
  font-weight: 600;
}

.dash-analytics-box {
  background: var(--off-white);
  border: 1px solid rgba(10, 22, 40, 0.07);
  border-radius: 14px;
  padding: 20px;
  height: 100%;
}

.dash-analytics-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 14.5px;
  margin-bottom: 16px;
}

.dash-donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.dash-donut {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
}

.dash-donut-num {
  font-size: 20px;
  font-weight: 800;
  fill: var(--navy);
}

.dash-donut-label {
  font-size: 8px;
  fill: var(--slate);
}

.dash-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--slate);
}

.dash-donut-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.dash-donut-legend strong {
  color: var(--navy);
  margin-left: 6px;
}

.dash-bars {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-height: 190px;
}

.dash-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.dash-bar-track {
  flex: 1;
  width: 100%;
  max-width: 44px;
  min-height: 110px;
  background: #E2E8F0;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.dash-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--navy-light), var(--navy));
  border-radius: 8px;
}

.dash-bar-done {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--emerald), var(--teal));
}

.dash-bar-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
}

.dash-bar-label {
  font-size: 11px;
  color: var(--slate);
}

.dash-matrix thead th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
  border-bottom: 2px solid rgba(10, 22, 40, 0.1);
  white-space: nowrap;
}

.dash-matrix tbody td {
  font-size: 13.5px;
  color: var(--navy);
}

.dash-progress-sm {
  height: 8px;
  margin-bottom: 2px;
}

@media (max-width: 991.98px) {
  .dash-stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .dash-stat-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .dash-stat-card {
    padding: 12px;
    gap: 10px;
  }

  .dash-stat-ico {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .dash-bars {
    gap: 5px;
  }
}

.dash-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dash-profile-grid .key {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-bottom: 2px;
}

.dash-profile-grid .val {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
  overflow-wrap: break-word;
}

.enroll-list {
  display: grid;
  gap: 14px;
}

.enroll-card {
  background: white;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-left: 4px solid var(--slate-light);
  transition: var(--transition);
}

.enroll-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.enroll-status-confirmed { border-left-color: var(--emerald); }
.enroll-status-pending { border-left-color: var(--gold); }
.enroll-status-waitlisted { border-left-color: var(--gold); }
.enroll-status-completed { border-left-color: var(--teal); }
.enroll-status-cancelled { border-left-color: #dc3545; }

.enroll-main {
  min-width: 0;
  flex: 1;
}

.enroll-main h6 {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 16px;
}

.enroll-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--slate);
  margin-bottom: 10px;
}

.enroll-meta i {
  color: var(--teal);
  margin-right: 4px;
}

.enroll-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-head {
  background: white;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-head-text {
  min-width: 0;
  flex: 1;
}

.profile-head-text h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 2px;
}

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

@media (max-width: 575.98px) {
  .dash-hero {
    padding: 24px 20px;
  }

  .dash-stats {
    gap: 18px;
  }

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

  .enroll-card {
    flex-direction: column;
    align-items: stretch;
  }

  .enroll-actions {
    justify-content: flex-start;
  }

  .profile-head .btn {
    width: 100%;
  }
}

/* Profile photo upload. */
.profile-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-photo-img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow-md);
  display: block;
}

.profile-photo-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  margin-bottom: 0;
  transition: var(--transition);
}

.profile-photo-edit:hover {
  transform: scale(1.1);
}

.profile-photo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.dash-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.25);
}

/* ============================================
   CERTIFICATE DIRECT VIEW
   ============================================ */
.certificate-section {
  padding: 80px 0 100px;
}

.certificate-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(10, 22, 40, 0.08);
}

.certificate-frame img {
  width: 100%;
  display: block;
}

.certificate-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12% 10%;
}

.certificate-presented {
  font-size: clamp(12px, 1.8vw, 17px);
  color: var(--slate);
  margin-bottom: 6px;
}

.certificate-recipient {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(22px, 4vw, 40px);
  margin-bottom: 40px;
}

.certificate-course {
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0;
}

.certificate-meta-card {
  background: white;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-top: 24px;
}

.certificate-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.certificate-meta-grid .key {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-bottom: 2px;
}

.certificate-meta-grid .val {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
  overflow-wrap: break-word;
}

.certificate-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 767.98px) {
  .certificate-section {
    padding: 56px 0 64px;
  }

  .certificate-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Print defaults: never print app chrome; certificate printing uses an
   isolated print window (see printCertificateFrame in main.js). */
@media print {
  .site-header,
  .site-footer,
  .fab-group,
  #scroll-progress,
  .cta-banner,
  .page-banner {
    display: none !important;
  }
}

/* ============================================
   DASHBOARD SIDEBAR (certificates + review CTA)
   ============================================ */
.dash-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
  position: sticky;
  top: calc(var(--header-height, 130px) + 20px);
}

/* A sticky sidebar must never carry a transform: it would become the containing
   block for position:fixed children (modals render off-screen) and break sticky. */
.dash-sidebar[data-aos] {
  transform: none;
  backface-visibility: visible;
}

.dash-side-card {
  background: white;
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.dash-side-heading {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 15.5px;
}

.dash-side-heading i {
  color: var(--teal);
  margin-right: 8px;
}

.dash-side-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-side-list li + li {
  border-top: 1px solid rgba(10, 22, 40, 0.07);
}

.dash-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  transition: var(--transition);
}

.dash-side-item:hover {
  padding-left: 10px;
}

.dash-side-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dash-side-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-side-item:hover .dash-side-name {
  color: var(--teal);
}

.dash-side-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate);
}

.dash-side-arrow {
  color: var(--slate-light);
  font-size: 12px;
  flex-shrink: 0;
}

.dash-review-card {
  background: linear-gradient(135deg, var(--navy) 0%, #0F2A50 60%, var(--teal) 140%);
  border: none;
  color: white;
  text-align: center;
}

.dash-review-card .dash-side-heading {
  color: white;
  justify-content: center;
}

.dash-review-card .text-muted {
  color: rgba(255, 255, 255, 0.65) !important;
}

@media (max-width: 991.98px) {
  .dash-sidebar {
    position: static;
  }
}

/* Testimonial list rows: avatar, name, meta, stars � message lives on detail. */
.review-row-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.review-row-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(13, 148, 136, 0.35);
  display: block;
}

.review-row-avatar .reviewer-avatar-placeholder {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.stars-small {
  font-size: 12px;
  margin-bottom: 0;
  color: var(--gold);
}

@media (max-width: 575.98px) {
  .review-row-avatar,
  .review-row-avatar img,
  .review-row-avatar .reviewer-avatar-placeholder {
    width: 46px;
    height: 46px;
    font-size: 17px;
  }
}
