/* =============================================
   Royal Institute of Technology – Custom CMS
   ============================================= */

:root {
  --navy:       #0d1b3e;
  --navy-dark:  #07101f;
  --navy-mid:   #132248;
  --gold:       #c9960c;
  --gold-dark:  #a07808;
  --gold-light: #f5c842;
  --white:      #ffffff;
  --gray-bg:    #f4f6f9;
  --text:       #3d4a5c;
  --text-light: #718096;
  --border:     #e2e8f0;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --radius:     8px;
  --font:       'Poppins', sans-serif;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font); color: var(--text); background: var(--navy-dark); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { font-family: var(--font); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ===== TOP BAR ===== */
.topbar { background: var(--navy-dark); padding: 8px 0; font-size: 11.5px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-left a, .topbar-right a {
  color: rgba(255,255,255,0.7);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--transition);
}
.topbar-left a i, .topbar-right a i { color: var(--gold); font-size: 11px; }
.topbar-left a:hover, .topbar-right a:hover { color: #fff; }
.topbar-center { color: #fff; font-weight: 600; font-size: 12px; text-align: center; flex: 1; letter-spacing: 0.3px; }

/* ===== NAVIGATION ===== */
.main-nav {
  background: transparent;
  box-shadow: none;
  position: relative; z-index: 500;
  margin-top: 20px;
}
.nav-inner { display: flex; align-items: center; height: 100px; position: relative; }
.nav-left  { display: flex; gap: 40px; align-items: center; flex: 1; justify-content: flex-end; padding-right: 90px; }
.nav-right { display: flex; gap: 40px; align-items: center; flex: 1; justify-content: flex-start; padding-left: 90px; }
.nav-logo  { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1; }
.nav-logo img { height: 110px; width: auto; }
.nav-logo-text {
  font-size: 20px; font-weight: 800; color: #fff;
  letter-spacing: 2px; border: 2px solid rgba(255,255,255,0.5);
  padding: 5px 14px; border-radius: 6px;
}
.nav-link {
  color: rgba(255,255,255,0.85); font-weight: 500; font-size: 14.5px;
  padding: 6px 0; position: relative; white-space: nowrap;
  letter-spacing: 0.2px;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2.5px; background: var(--gold);
  border-radius: 2px; transition: width var(--transition);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1.5px solid rgba(255,255,255,0.25); border-radius: 6px; padding: 6px 10px; font-size: 18px; color: #fff; cursor: pointer; }
.nav-mobile { display: none; flex-direction: column; padding-bottom: 12px; background: var(--navy); }
.nav-mobile .nav-link { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); display: block; font-size: 15px; color: rgba(255,255,255,0.85); }
.nav-mobile.open { display: flex; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  padding: 160px 0 60px; text-align: center; position: relative; overflow: hidden;
  margin-top: -120px;
}
.page-hero::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");
}
.page-hero h1 { color: #fff; font-size: 34px; font-weight: 700; position: relative; letter-spacing: -0.3px; }
.page-hero p { color: rgba(255,255,255,0.65); margin-top: 10px; font-size: 15px; position: relative; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-gray  { background: var(--gray-bg); }
.section-dark  { background: var(--navy); }
.section-white { background: #fff; }
.section-title { text-align: center; margin-bottom: 52px; }
.section-title h2 { font-size: 32px; font-weight: 700; color: var(--navy); margin-bottom: 12px; letter-spacing: -0.3px; }
.section-dark .section-title h2 { color: #fff; }
.section-title p { color: var(--text-light); font-size: 15px; max-width: 520px; margin: 0 auto; }
.section-dark .section-title p { color: rgba(255,255,255,0.58); }
.section-title .title-line {
  width: 48px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 14px auto 0;
}
.gold-text { color: var(--gold); }

/* ===== CONFERENCES HERO ===== */
.conf-hero-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #0f2050 40%, var(--navy-mid) 100%);
  min-height: 80vh; padding: 60px 0 60px; text-align: center; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin-top: -120px;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(7, 16, 31, 0.82);
  z-index: 0;
}
.conf-hero-section::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.conf-hero-section .container { width: 100%; }
.conf-hero-section .section-title { margin-bottom: 0; }
.conf-hero-section .section-title h2 { color: #fff; font-size: 38px; }
.conf-hero-section .section-title h2 .gold-text { color: var(--gold); }
.conf-hero-section .section-title p { color: rgba(255,255,255,0.65); margin-top: 14px; }

/* ===== CONFERENCES SECTION (overlaps hero) ===== */
.conf-hero-section + .section {
  margin-top: -80px;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 2;
}

/* ===== CONFERENCE CARDS ===== */
.conf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.conf-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(13,27,62,0.08);
  border: 1px solid rgba(13,27,62,0.08);
  border-top: 3px solid var(--gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column; text-decoration: none;
}
.conf-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(13,27,62,0.16); border-color: var(--gold); border-top-color: var(--gold); }

.conf-card-img {
  height: 200px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(145deg, #0a1628 0%, #0d1b3e 60%, #162550 100%);
  position: relative;
}
.conf-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.conf-card:hover .conf-card-img img { transform: scale(1.04); }

.conf-card-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.conf-card-placeholder i {
  font-size: 52px; color: var(--gold); opacity: 0.8;
  filter: drop-shadow(0 0 20px rgba(201,150,12,0.5));
}
.conf-card-placeholder span {
  font-size: 10.5px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
}
.conf-card-price-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: 20px;
  box-shadow: 0 2px 10px rgba(201,150,12,0.5);
}

.conf-card-body { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; }
.conf-card-body h3 {
  font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.5; margin-bottom: 13px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.conf-card-divider { height: 2px; width: 36px; background: var(--gold); border-radius: 2px; margin-bottom: 14px; }
.conf-card-meta { font-size: 13px; color: #6b7280; flex: 1; }
.meta-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.meta-row i { color: var(--gold); flex-shrink: 0; margin-top: 2px; width: 14px; text-align: center; }
.meta-row span { line-height: 1.45; }
.conf-card-cta {
  margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--gold);
  display: flex; align-items: center; gap: 6px; transition: gap 0.2s ease;
}
.conf-card:hover .conf-card-cta { gap: 10px; }

/* ===== POPULAR COURSES ===== */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card {
  background: #fff; border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.course-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-card:hover::before { transform: scaleX(1); }
.course-card-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 14px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px;
  color: var(--navy); font-size: 22px;
  box-shadow: 0 6px 16px rgba(201,150,12,0.3);
}
.course-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.course-card p { font-size: 13px; color: var(--text-light); line-height: 1.75; }

/* ===== EXPLORE MORE ===== */
.explore-section { background: var(--gray-bg); padding: 80px 0 0; }
.explore-section .section-title { margin-bottom: 44px; }
.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.explore-item {
  padding: 48px 24px; text-align: center;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  transition: filter var(--transition);
  cursor: pointer;
}
.explore-item:hover { filter: brightness(1.08); }
.explore-item i { font-size: 28px; color: rgba(255,255,255,0.8); }
.explore-item span { font-weight: 700; font-size: 13px; letter-spacing: 0.8px; color: #fff; }
.explore-navy { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.explore-gold  { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }

/* ===== ACCREDITATION ===== */
.accreditation-text { text-align: center; font-size: 14.5px; color: var(--text-light); max-width: 740px; margin: 0 auto 40px; line-height: 1.85; }

.accreditation-track-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.accreditation-track-wrap:hover .accreditation-track { animation-play-state: paused; }

.accreditation-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: accreditation-scroll 20s linear infinite;
}

@keyframes accreditation-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.accreditation-item {
  flex-shrink: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 36px;
  min-width: 160px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.accreditation-item:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(201,150,12,0.15); }
.accreditation-item img { max-height: 60px; max-width: 140px; object-fit: contain; display: block; }
.accreditation-item span { font-size: 13px; font-weight: 600; color: var(--navy); }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--gray-bg);
  padding: 60px 0;
}
.cta-section .container {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  border-radius: 16px; padding: 60px 48px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 16px 48px rgba(13,27,62,0.25);
  border: 1px solid rgba(201,150,12,0.2);
}
.cta-section .container::before {
  content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,150,12,0.08), transparent 70%);
  pointer-events: none;
}
.cta-section h2 { color: var(--gold); font-size: 30px; font-weight: 700; margin-bottom: 14px; position: relative; }
.cta-section p { color: rgba(255,255,255,0.72); margin-bottom: 30px; font-size: 15.5px; position: relative; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 32px; border-radius: var(--radius);
  font-family: var(--font); font-weight: 600; font-size: 13.5px;
  letter-spacing: 0.3px; cursor: pointer; border: none;
  transition: all var(--transition); text-align: center;
}
.btn-gold  { background: linear-gradient(135deg, var(--gold), #e8a80a); color: #fff; box-shadow: 0 4px 14px rgba(201,150,12,0.35); }
.btn-gold:hover  { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(201,150,12,0.45); }
.btn-navy  { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); color: #fff; box-shadow: 0 4px 14px rgba(13,27,62,0.25); }
.btn-navy:hover  { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(13,27,62,0.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.55); border-radius: 50px; }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline-gold { background: transparent; color: var(--gold); border: 2px solid var(--gold); border-radius: var(--radius); }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }
.btn-disabled { opacity: 0.45; pointer-events: none; cursor: not-allowed; }

/* ===== ALERTS ===== */
.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 22px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; }
.alert-error   { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; }

/* ===== FOOTER ===== */
.footer { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; padding-bottom: 50px; }
.footer-col h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 16px; letter-spacing: 0.2px; }
.footer-divider { height: 2px; border: none; border-top: 2px dotted rgba(201,150,12,0.5); margin-bottom: 22px; }
.footer-col p { font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 1.9; }
.oh-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.oh-icon { color: var(--gold); font-size: 14px; flex-shrink: 0; padding-top: 3px; }
.oh-content strong { display: block; color: rgba(255,255,255,0.88); font-size: 13px; font-weight: 600; }
.oh-content span { font-size: 12px; color: rgba(255,255,255,0.5); }
.contact-item { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 12px; }
.contact-item i { color: var(--gold); font-size: 13px; flex-shrink: 0; margin-top: 3px; }
.contact-item span { font-size: 13px; color: rgba(255,255,255,0.65); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 18px 24px; text-align: center; }
.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: var(--gold); }

/* ===== ABOUT PAGE ===== */
.vmv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vmv-card {
  background: #fff; border-radius: var(--radius);
  padding: 38px 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  text-align: center; transition: transform var(--transition), box-shadow var(--transition);
}
.vmv-card.featured { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-color: transparent; }
.vmv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vmv-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 18px; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 20px;
  color: var(--navy); font-size: 26px;
  box-shadow: 0 8px 20px rgba(201,150,12,0.3);
}
.vmv-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.vmv-card.featured h3 { color: #fff; }
.vmv-card p { font-size: 13.5px; color: var(--text-light); line-height: 1.85; }
.vmv-card.featured p { color: rgba(255,255,255,0.72); }

.core-values-section { background: linear-gradient(135deg, var(--navy-dark), var(--navy), var(--navy-mid)); padding: 80px 0; }
.core-values-section .section-title h2 { color: #fff; }
.cv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 60px; }
.cv-num { font-size: 64px; font-weight: 800; color: rgba(255,255,255,0.06); line-height: 1; margin-bottom: -8px; font-style: italic; }
.cv-title { font-size: 17px; font-weight: 700; color: var(--gold); font-style: italic; margin-bottom: 10px; }
.cv-desc { font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.75; }
.cv-desc ul { padding-left: 18px; list-style: disc; }

.why-section { padding: 80px 0; background: var(--gray-bg); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.why-img img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.why-img-placeholder { width: 100%; height: 400px; border-radius: var(--radius); box-shadow: var(--shadow); background: linear-gradient(135deg, var(--navy), var(--navy-mid)); display: flex; align-items: center; justify-content: center; }
.why-img-placeholder i { font-size: 60px; color: rgba(201,150,12,0.3); }
.why-content h2 { font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.why-content > p { font-size: 14.5px; color: var(--text-light); line-height: 1.9; margin-bottom: 26px; }
.why-list { border-top: 1px solid var(--border); }
details.why-item { border-bottom: 1px solid var(--border); }
details.why-item summary {
  padding: 15px 0; cursor: pointer; font-weight: 600;
  color: var(--navy); display: flex; align-items: center;
  gap: 10px; font-size: 14px; list-style: none; user-select: none;
}
details.why-item summary::-webkit-details-marker { display: none; }
details.why-item summary::before { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--gold); font-size: 11px; transition: transform var(--transition); flex-shrink: 0; }
details.why-item[open] summary::before { transform: rotate(90deg); }
details.why-item .why-detail { padding: 0 0 16px 22px; font-size: 13.5px; color: var(--text-light); line-height: 1.75; }

.stats-section { padding: 0; }
.stats-inner { display: grid; grid-template-columns: auto repeat(3, 1fr); }
.stats-label { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); padding: 40px 48px; color: #fff; font-size: 22px; font-weight: 700; font-style: italic; display: flex; align-items: center; }
.stat-item { padding: 40px 24px; text-align: center; border-right: 1px solid var(--border); background: #fff; }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 40px; font-weight: 800; color: var(--navy); letter-spacing: -1px; }
.stat-lbl { font-size: 13px; color: var(--text-light); margin-top: 6px; font-weight: 500; }

/* ===== COURSES PAGE ===== */
.cp-stats {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 28px 0; border-top: 3px solid var(--gold);
}
.cp-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; text-align: center;
}
.cp-stat {
  padding: 10px 20px; border-right: 1px solid rgba(255,255,255,0.1);
}
.cp-stat:last-child { border-right: none; }
.cp-stat-num { display: block; font-size: 32px; font-weight: 800; color: var(--gold); letter-spacing: -1px; }
.cp-stat-lbl { font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 2px; display: block; }

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

.cp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
/* Center lone last card when it's the only one in its row */
.cp-card:last-child:nth-child(3n+1) { grid-column: 2; }
.cp-card:last-child:nth-child(3n+2) { grid-column: 2 / span 2; }

.cp-card {
  background: #fff; border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cp-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }

.cp-card-img {
  position: relative; height: 200px; overflow: hidden; flex-shrink: 0;
}
.cp-card-img img,
.cp-card-img-fallback {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.cp-card:hover .cp-card-img img { transform: scale(1.05); }
.cp-card-img-fallback { background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid)); }

.cp-card-header {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px;
}
.cp-card-header h3 {
  font-size: 15px; font-weight: 700; color: var(--navy);
  line-height: 1.3; margin-bottom: 5px;
}
.cp-card-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; color: var(--navy); font-size: 18px;
  box-shadow: 0 4px 12px rgba(201,150,12,0.4);
}
.cp-badge {
  display: inline-block; background: var(--gold);
  color: var(--navy); font-size: 10.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 50px; letter-spacing: 0.3px;
}

.cp-card-body {
  padding: 20px; flex: 1;
  display: flex; flex-direction: column;
}
.cp-card-desc {
  font-size: 12.5px; color: var(--text-light); line-height: 1.7;
  margin-bottom: 14px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cp-card-list {
  flex: 1; margin-bottom: 18px;
}
.cp-card-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: var(--text); line-height: 1.6;
  padding: 5px 0; border-bottom: 1px solid var(--gray-bg);
}
.cp-card-list li:last-child { border-bottom: none; }
.cp-card-list li i { color: var(--gold); font-size: 10px; flex-shrink: 0; margin-top: 4px; }
.cp-card-list li.cp-card-more { color: var(--text-light); font-style: italic; }
.cp-card-list li.cp-card-more i { color: var(--text-light); }

.cp-enroll-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 11px 20px; border-radius: var(--radius);
  transition: all var(--transition); letter-spacing: 0.2px;
}
.cp-enroll-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy); transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201,150,12,0.35);
}
.cp-enroll-btn i { font-size: 11px; transition: transform var(--transition); }
.cp-enroll-btn:hover i { transform: translateX(4px); }

.cp-cta {
  margin-top: 60px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: 14px; padding: 48px 52px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; box-shadow: 0 12px 40px rgba(13,27,62,0.2);
  border-left: 5px solid var(--gold);
}
.cp-cta-text h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.cp-cta-text p  { font-size: 14px; color: rgba(255,255,255,0.65); }

@media (max-width: 1024px) {
  .cp-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-stat:nth-child(2) { border-right: none; }
}
@media (max-width: 768px) {
  .cp-grid { grid-template-columns: 1fr; }
  .cp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-cta { flex-direction: column; text-align: center; padding: 36px 28px; }
}

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; margin-bottom: 70px; }
.contact-img { position: relative; }
.contact-img img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; display: block; }
.contact-img-placeholder { width: 100%; min-height: 480px; background: linear-gradient(135deg, var(--navy-dark), var(--navy), var(--navy-mid)); display: flex; align-items: center; justify-content: center; }
.contact-img-placeholder i { font-size: 72px; color: rgba(201,150,12,0.2); }
.contact-form-wrap { background: var(--gray-bg); padding: 56px 48px; }
.contact-form-wrap h2 { font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 8px; letter-spacing: -0.3px; }
.contact-form-wrap > p { color: var(--text-light); font-size: 14px; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: 14px; color: var(--text);
  background: #fff; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,150,12,0.1);
}
.form-group textarea { height: 135px; resize: vertical; }
.btn-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff; border: none; border-radius: var(--radius);
  font-family: var(--font); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(13,27,62,0.25);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(13,27,62,0.35); }

.campus-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-bottom: 60px; }
.campus-block:last-child { margin-bottom: 0; }
.campus-info h3 { font-size: 21px; font-weight: 700; color: var(--navy); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.campus-info h3::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); border-radius: 2px; }
.campus-row { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 14px; font-size: 14px; color: var(--text-light); }
.campus-row i { color: var(--gold); flex-shrink: 0; margin-top: 3px; width: 16px; }
.campus-map iframe { width: 100%; height: 295px; border: none; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.campus-map-placeholder { width: 100%; height: 295px; background: var(--gray-bg); border-radius: var(--radius); border: 2px dashed var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-light); font-size: 13.5px; }
.campus-map-placeholder i { font-size: 32px; color: var(--border); }

/* ===== CONFERENCE DETAIL ===== */
.conf-detail-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #0f2050 50%, var(--navy-mid) 100%);
  min-height: 360px; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 170px 24px 70px;
  position: relative; overflow: hidden;
  margin-top: -120px;
}
.conf-detail-hero::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.015'%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");
}
.conf-detail-hero > div { position: relative; }
.conf-detail-hero h1 { color: #fff; font-size: 28px; font-weight: 700; max-width: 860px; margin: 0 auto 24px; line-height: 1.4; }
.conf-detail-meta { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; color: rgba(255,255,255,0.8); font-size: 14px; }
.conf-detail-meta .meta-item { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,0.06); padding: 8px 18px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); }
.conf-detail-meta .meta-item i { color: var(--gold); }
.conf-price { color: var(--gold); font-size: 40px; font-weight: 800; margin-top: 24px; letter-spacing: -1px; }

.conf-downloads { padding: 64px 0; text-align: center; background: var(--gray-bg); }
.conf-downloads h2 { font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 30px; }
.download-btns { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ===== ANIMATIONS ===== */

/* Page entry / exit */
html.page-loading body { opacity: 0; }
html.page-ready body {
  opacity: 1;
  transition: opacity 0.4s ease;
}
html.page-leaving body {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Navbar scroll shadow */
.main-nav { transition: box-shadow 0.3s ease, background 0.3s ease; }
.main-nav.nav-scrolled { box-shadow: 0 4px 24px rgba(13,27,62,0.12); }

/* Scroll-reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Visible state */
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Section title — slides up a bit faster */
.section-title.reveal {
  transform: translateY(20px);
  transition-duration: 0.5s;
}

/* Hero — slides up from slightly further */
.hero-content.reveal,
.conf-detail-hero.reveal {
  transform: translateY(36px);
  transition-duration: 0.7s;
}

/* Cards — subtle scale on entry */
.conf-card.reveal,
.course-panel.reveal,
.vmv-card.reveal,
.why-item.reveal {
  transform: translateY(24px) scale(0.97);
}
.conf-card.revealed,
.course-panel.revealed,
.vmv-card.revealed,
.why-item.revealed {
  transform: translateY(0) scale(1);
}

/* CTA section — fade only */
.cta-section.reveal {
  transform: translateY(16px);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  html.page-ready body, html.page-leaving body { transition: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .conf-grid    { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .cv-grid      { grid-template-columns: repeat(2, 1fr); }
  .stats-inner  { grid-template-columns: 1fr 1fr 1fr; }
  .stats-label  { grid-column: 1 / -1; justify-content: center; }
  .cat-inner    { grid-template-columns: 240px 1fr; gap: 40px; }
  .nav-left  { padding-right: 50px; }
  .nav-right { padding-left: 50px; }
  .cp-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .topbar-inner { flex-direction: column; text-align: center; gap: 4px; }
  .topbar-left, .topbar-right { justify-content: center; gap: 10px; }
  .nav-inner    { height: 70px; padding: 0; justify-content: center; position: relative; }
  .nav-left, .nav-right { display: none; }
  .nav-toggle   { display: block; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .nav-logo     { position: static; transform: none; }
  .nav-logo img { height: 56px; }
  .conf-hero-section { margin-top: -70px; }
  .page-hero    { margin-top: -70px; padding-top: 130px; }
  .conf-detail-hero { margin-top: -70px; padding-top: 130px; }
  .section-title h2 { font-size: 26px; }
  .conf-hero-section .section-title h2 { font-size: 28px; }
  .conf-grid, .courses-grid, .vmv-grid, .cv-grid,
  .why-grid, .cat-inner, .contact-grid, .campus-block { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr; gap: 32px; }
  .why-img, .why-img-placeholder { display: none; }
  .page-hero h1 { font-size: 26px; }
  .conf-detail-hero h1 { font-size: 20px; }
  .conf-price   { font-size: 32px; }
}
@media (max-width: 480px) {
  .explore-grid { grid-template-columns: 1fr; }
  .stats-inner  { grid-template-columns: 1fr; }
  .stat-item    { border-right: none; border-bottom: 1px solid var(--border); }
  .container    { padding: 0 18px; }
}
