/*
Theme Name:  Chandan Computer Institute
Theme URI:   https://chandancomputers.com
Author:      Chandan Computer Institute
Author URI:  https://chandancomputers.com
Description: University-style theme for Chandan Computer Institute, modeled on the visual density and trust signals of institutes like Amity, Sharda and Symbiosis — photography-led, accreditation-forward, notice-driven.
Version:     2.0.0
License:     GNU General Public License v2 or later
Text Domain: chandan-computers
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

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

:root {
  --maroon:        #7A1330;
  --maroon-dark:   #500A1F;
  --navy:          #0B2447;
  --navy-2:        #14315E;
  --gold:          #D6A11C;
  --gold-light:    #F2C94C;
  --white:         #FFFFFF;
  --off-white:     #F7F5F1;
  --cream:         #FBF8F2;
  --gray:          #6B7280;
  --gray-light:    #E7E3DA;
  --text:          #1C1C1C;
  --text-mid:      #5A5650;
  --border:        #E5E0D5;
  --radius-s:      6px;
  --radius-m:      12px;
  --radius-l:      18px;
  --shadow-s:      0 4px 14px rgba(20,10,5,.08);
  --shadow-m:      0 12px 32px rgba(20,10,5,.12);
  --shadow-l:      0 24px 60px rgba(20,10,5,.22);
  --grad-maroon:   linear-gradient(120deg, #7A1330 0%, #500A1F 100%);
  --grad-gold:     linear-gradient(120deg, #F2C94C 0%, #D6A11C 100%);
  --grad-navy:     linear-gradient(120deg, #0B2447 0%, #14315E 100%);
  --font-h:        'Poppins', sans-serif;
  --font-b:        'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; position: relative; }
.section-tight { padding: 50px 0; }
@media (max-width: 768px) { .section { padding: 56px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-h); font-weight: 700; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--maroon);
  border-bottom: 3px solid var(--gold); padding-bottom: 6px; margin-bottom: 16px;
}
.eyebrow.on-dark { color: var(--gold-light); }

.section-head { max-width: 700px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 12px; }
.section-head p { color: var(--text-mid); font-size: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-h); font-weight: 600; font-size: 14.5px;
  padding: 14px 28px; border-radius: var(--radius-s); border: none;
  cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--maroon); color: var(--white); box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--maroon-dark); transform: translateY(-1px); }
.btn-gold { background: var(--grad-gold); color: var(--navy); font-weight: 700; }
.btn-gold:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline-navy:hover { border-color: var(--maroon); color: var(--maroon); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ============ UTILITY BAR ============ */
.utility-bar { background: var(--navy); color: rgba(255,255,255,.85); font-size: 12.5px; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.utility-left { display: flex; gap: 22px; align-items: center; }
.utility-left a { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); }
.utility-left a:hover { color: var(--gold-light); }
.utility-right { display: flex; gap: 16px; align-items: center; }
.utility-right a { color: rgba(255,255,255,.85); font-weight: 600; }
.utility-right a:hover { color: var(--gold-light); }
.utility-right .sep { opacity: .3; }
@media (max-width: 768px) { .utility-bar { display: none; } }

/* ============ NOTICE TICKER ============ */
.notice-ticker { background: var(--gold); color: var(--navy); overflow: hidden; position: relative; height: 42px; display: flex; align-items: center; }
.notice-ticker .nt-label {
  background: var(--maroon); color: #fff; font-family: var(--font-h); font-weight: 700;
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 0 18px; height: 100%;
  display: flex; align-items: center; flex-shrink: 0; z-index: 2; gap: 6px;
}
.nt-track-wrap { overflow: hidden; flex: 1; }
.nt-track { display: flex; gap: 60px; white-space: nowrap; animation: ticker 28s linear infinite; padding-left: 24px; }
.nt-track span { font-weight: 600; font-size: 13.5px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ NAVBAR ============ */
.navbar {
  position: sticky; top: 0; left: 0; right: 0; z-index: 999;
  background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 86px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge {
  width: 50px; height: 50px; border-radius: 50%; background: var(--grad-maroon);
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold);
  font-family: var(--font-h); font-weight: 800; color: #fff; font-size: 16px;
}
.logo-text { font-family: var(--font-h); font-weight: 800; font-size: 19px; color: var(--navy); line-height: 1.25; }
.logo-text span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--maroon); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > li { position: relative; }
.nav-links a {
  font-family: var(--font-h); font-weight: 600; font-size: 14px; color: var(--navy);
  display: flex; align-items: center; gap: 5px; height: 86px;
}
.nav-links a:hover { color: var(--maroon); }
.nav-links .caret { font-size: 9px; opacity: .6; }

.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow-l);
  min-width: 300px; padding: 12px; opacity: 0; visibility: hidden; transition: all .2s ease;
  border-top: 3px solid var(--gold);
}
.dropdown:hover .dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-panel a { height: auto; color: var(--text); padding: 11px 14px; border-radius: var(--radius-s); font-size: 13.5px; }
.dropdown-panel a:hover { background: var(--off-white); color: var(--maroon); }
.dropdown-panel small { display: block; color: var(--text-mid); font-weight: 400; font-size: 11.5px; margin-top: 2px; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 14px 12px; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

.mobile-menu {
  position: fixed; inset: 0; background: var(--navy); z-index: 1100;
  display: flex; flex-direction: column; padding: 90px 28px 28px; gap: 6px;
  transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { color: #fff; font-family: var(--font-h); font-weight: 600; font-size: 17px; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-close { position: absolute; top: 28px; right: 24px; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

@media (max-width: 980px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .nav-inner { height: 66px; }
  .nav-links a { height: 66px; }
  .logo-badge { width: 42px; height: 42px; font-size: 14px; }
  .logo-text { font-size: 16px; }
  .logo-text span { font-size: 9.5px; }
}

/* ============ HERO (photo-led) ============ */
.hero {
  position: relative; overflow: hidden; color: #fff; min-height: 560px;
  display: flex; align-items: center;
}
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,36,71,.72) 0%, rgba(11,36,71,.4) 45%, rgba(122,19,48,.18) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 80px clamp(20px, 6vw, 64px) 70px; max-width: 720px; margin: 0; box-sizing: content-box; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); color: #fff; margin-bottom: 18px; }
.hero h1 .accent { color: var(--gold-light); }
.hero p.lead { font-size: 17px; color: rgba(255,255,255,.88); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-trust div { font-family: var(--font-h); border-left: 2px solid var(--gold); padding-left: 14px; }
.hero-trust strong { display: block; font-size: 24px; color: #fff; }
.hero-trust span { font-size: 14px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; }

.hero-dots { position: absolute; bottom: 24px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--gold); width: 26px; border-radius: 6px; }

@media (max-width: 768px) {
  .hero { min-height: 0; }
  .hero-inner { padding-top: 56px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(26px, 7vw, 34px); }
  .hero p.lead { font-size: 15.5px; max-width: 100%; }
  .hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-trust div { padding-left: 10px; }
  .hero-trust strong { font-size: 19px; }
  .hero-trust span { font-size: 10.5px; }
}

/* ============ ACCREDITATION STRIP ============ */
.accred-strip { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 28px 0; }
.accred-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.accred-label { font-family: var(--font-h); font-weight: 700; font-size: 14.5px; color: var(--text-mid); text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; }
.accred-badges { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.accred-badge { display: flex; align-items: center; gap: 10px; }
.accred-badge .ab-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--grad-navy); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-family: var(--font-h); font-size: 14px; border: 2px solid var(--gold); }
.accred-badge .ab-text strong { display: block; font-size: 16px; color: var(--navy); font-family: var(--font-h); }
.accred-badge .ab-text span { font-size: 13.5px; color: var(--text-mid); }
@media (max-width: 768px) {
  .accred-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .accred-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 16px; width: 100%; }
  .accred-badge .ab-icon { width: 40px; height: 40px; font-size: 12px; flex-shrink: 0; }
  .accred-badge .ab-text strong { font-size: 14px; }
  .accred-badge .ab-text span { font-size: 12px; }
}

/* ============ STATS BAND ============ */
.stats-band { background: var(--grad-maroon); padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; border-right: 1px solid rgba(255,255,255,.18); padding: 0 14px; }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-family: var(--font-h); font-size: clamp(34px,4.2vw,52px); color: var(--gold-light); margin-bottom: 8px; }
.stat span { color: rgba(255,255,255,.85); font-size: 16.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 18px; }
}

/* ============ WHY US ============ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card {
  background: #fff; border-radius: var(--radius-m); padding: 28px 24px;
  border: 1px solid var(--border); border-top: 3px solid var(--maroon); transition: all .25s ease;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.why-icon {
  width: 50px; height: 50px; border-radius: var(--radius-s); background: var(--off-white);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
  border: 1px solid var(--border);
}
.why-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.why-card p { color: var(--text-mid); font-size: 14px; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ============ SECTION VARIANTS ============ */
.section-dark { background: var(--grad-navy); color: #fff; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: rgba(255,255,255,.7); }
.section-cream { background: var(--cream); }

/* ============ COURSES (photo cards) ============ */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card {
  background: #fff; border-radius: var(--radius-m); overflow: hidden; transition: all .25s ease;
  box-shadow: var(--shadow-s); border: 1px solid var(--border);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.course-photo { height: 160px; position: relative; overflow: hidden; }
.course-photo img { width: 100%; height: 100%; object-fit: cover; }
.course-photo .badge { position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 700; background: var(--gold); color: var(--navy); padding: 5px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.course-body { padding: 22px; }
.course-card h4 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.course-card p { color: var(--text-mid); font-size: 13.5px; margin-bottom: 16px; min-height: 40px; }
.course-meta { display: flex; gap: 16px; margin-bottom: 18px; }
.course-meta div { font-size: 12.5px; color: var(--text-mid); }
.course-meta strong { display: block; color: var(--maroon); font-family: var(--font-h); font-size: 13.5px; }
.course-card a.btn { width: 100%; }

.courses-cta { text-align: center; margin-top: 44px; }

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

/* ============ NEWS & EVENTS ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-s); transition: all .25s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.news-photo { height: 170px; position: relative; }
.news-photo img { width: 100%; height: 100%; object-fit: cover; }
.news-date { position: absolute; bottom: 0; left: 0; background: var(--maroon); color: #fff; font-family: var(--font-h); text-align: center; padding: 8px 14px; }
.news-date strong { display: block; font-size: 20px; line-height: 1; }
.news-date span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.news-body { padding: 20px; }
.news-body h4 { font-size: 15.5px; margin-bottom: 8px; }
.news-body p { color: var(--text-mid); font-size: 13.5px; }
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

/* ============ PLACEMENTS / TESTIMONIALS (photo) ============ */
.placement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.placement-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 24px; box-shadow: var(--shadow-s); display: flex; gap: 16px; align-items: flex-start;
}
.placement-card .avatar-photo {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--gold);
}
.placement-card .avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--grad-maroon); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-family: var(--font-h);
  border: 2px solid var(--gold); font-size: 18px;
}
.placement-card h5 { font-size: 15px; margin-bottom: 3px; }
.placement-card .role { color: var(--maroon); font-size: 12.5px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .02em; }
.placement-card p { color: var(--text-mid); font-size: 13px; }
@media (max-width: 980px) { .placement-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .placement-grid { grid-template-columns: 1fr; } }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: var(--grad-maroon); border-radius: var(--radius-l); padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; color: #fff;
  position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.1);
}
.cta-banner::before { content:''; position:absolute; inset:0; border: 3px solid var(--gold); border-radius: var(--radius-l); pointer-events:none; opacity:.6; }
.cta-banner h3 { color: #fff; font-size: clamp(22px,3vw,30px); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.85); }
@media (max-width: 768px) { .cta-banner { flex-direction: column; text-align: center; padding: 36px 24px; } }

/* ============ FACULTY ============ */
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.faculty-card { text-align: center; }
.faculty-photo {
  width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px;
  border: 4px solid var(--gold); box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.faculty-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.faculty-info h4 { font-size: 15.5px; color: var(--navy); margin-bottom: 4px; }
.faculty-info span { font-size: 13px; color: var(--maroon); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 980px) { .faculty-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .faculty-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } .faculty-photo { width: 110px; height: 110px; } }

/* ============ STUDY MATERIALS ============ */
.materials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.material-card {
  display: flex; align-items: flex-start; gap: 18px; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--white);
  box-shadow: var(--shadow-s); transition: box-shadow .2s, transform .2s;
}
.material-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.material-icon { font-size: 36px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.material-body { flex: 1; }
.material-course { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--maroon); margin-bottom: 6px; }
.material-body h4 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.material-body p { font-size: 13.5px; color: var(--text-mid); line-height: 1.6; margin-bottom: 14px; }
.material-btn { align-self: flex-end; white-space: nowrap; }
@media (max-width: 700px) { .materials-grid { grid-template-columns: 1fr; } .material-card { flex-direction: column; } .material-btn { width: 100%; text-align: center; } }

/* ============ GALLERY FILTERS ============ */
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.gf-btn {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--border);
  background: transparent; font-family: var(--font-b); font-size: 13.5px; font-weight: 600;
  color: var(--text-mid); cursor: pointer; transition: all .18s;
}
.gf-btn:hover { border-color: var(--navy); color: var(--navy); }
.gf-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.g-item { transition: opacity .3s, transform .3s; }
.g-item.hidden { display: none; }
@media (max-width: 600px) { .gf-btn { padding: 8px 14px; font-size: 12.5px; } }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--white); overflow: hidden; }
.faq-q {
  padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 15.5px;
  color: var(--navy); display: flex; justify-content: space-between; align-items: center;
  gap: 16px; list-style: none; user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 22px; line-height: 1; color: var(--maroon); flex-shrink: 0; font-weight: 400; }
details[open] > .faq-q::after { content: '−'; }
details[open] > .faq-q { color: var(--maroon); border-bottom: 1px solid var(--border); }
.faq-a { padding: 16px 22px 20px; color: var(--text-mid); line-height: 1.75; font-size: 15px; }
@media (max-width: 600px) { .faq-q { font-size: 14.5px; padding: 16px 16px; } .faq-a { padding: 14px 16px 18px; } }

/* ============ GALLERY ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery-grid .g-item { border-radius: var(--radius-s); overflow: hidden; position: relative; background: var(--grad-navy); }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.07); }
.gallery-grid .g-item.tall { grid-row: span 2; }
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; } .gallery-grid .g-item.tall { grid-row: span 1; } }

/* ============ FOOTER ============ */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-accred { border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 32px; margin-bottom: 40px; display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.footer-accred .accred-badge .ab-text strong { color: #fff; }
.footer-accred .accred-badge .ab-text span { color: rgba(255,255,255,.55); }
@media (max-width: 600px) {
  .footer-accred { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand p { margin: 16px 0 20px; font-size: 13.5px; max-width: 320px; color: rgba(255,255,255,.55); }
.footer h5 { color: #fff; font-size: 14.5px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .04em; }
.footer-links li { margin-bottom: 11px; font-size: 13.5px; }
.footer-links a:hover { color: var(--gold-light); }
.socials { display: flex; gap: 10px; }
.soc-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.soc-link:hover { background: var(--maroon); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 12.5px; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 10px; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: rgba(255,255,255,.4); }
.footer-legal a:hover { color: var(--gold-light); }
@media (max-width: 980px) { .footer-top { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; } }

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 998;
  background: #1FAE53; color: #fff; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-l);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float .wa-pulse { position: absolute; inset: 0; border-radius: 50%; background: #1FAE53; opacity: .5; animation: pulse 2s infinite; }
.wa-float span { display: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }

/* ============ GENERIC PAGE HERO (inner pages) ============ */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 64px 0 50px;
  background: var(--grad-navy);
}
.page-hero.has-photo { background-size: cover; background-position: center; }
.page-hero.has-photo::after { content:''; position:absolute; inset:0; background: linear-gradient(100deg, rgba(11,36,71,.92), rgba(122,19,48,.7)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(28px,3.6vw,42px); }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.breadcrumb a { color: var(--gold-light); }

/* ============ FORMS ============ */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-s);
  font-family: var(--font-b); font-size: 14px; background: var(--off-white); transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--maroon); background: #fff; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ============ GENERIC CARD / TWO COL ============ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.tag-list span { background: var(--off-white); border: 1px solid var(--border); padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--navy); }

.info-card { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 26px; border-top: 3px solid var(--maroon); }
.info-card h4 { font-size: 16.5px; margin-bottom: 10px; }

.timeline-step { display: flex; gap: 18px; padding: 0 0 32px 0; position: relative; }
.timeline-step::before { content:''; position:absolute; left:18px; top:40px; bottom:0; width:2px; background: var(--border); }
.timeline-step:last-child::before { display: none; }
.timeline-num { flex-shrink:0; width:38px; height:38px; border-radius:50%; background: var(--grad-maroon); color:#fff; display:flex; align-items:center; justify-content:center; font-family: var(--font-h); font-weight:700; border: 2px solid var(--gold); }
.timeline-step h4 { font-size: 16px; margin-bottom: 6px; }
.timeline-step p { color: var(--text-mid); font-size: 14px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-clean { width: 100%; border-collapse: collapse; min-width: 480px; }
.table-clean th, .table-clean td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--border); font-size: 14px; white-space: nowrap; }
.table-clean th { font-family: var(--font-h); color: var(--navy); background: var(--off-white); }
.table-clean tr:hover td { background: rgba(255,255,255,.06); }

.radio-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text-mid); }

.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: start; }
@media (max-width: 768px) { .catalog-grid { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(22px); transition: all .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.placeholder-note {
  background: #FFF7E6; border: 1px dashed var(--gold); border-radius: var(--radius-s);
  padding: 13px 17px; font-size: 12.5px; color: #6b4a00; margin: 16px 0;
}

.form-success {
  background: #E9F7EF; border: 1px solid #34A853; border-radius: var(--radius-s);
  padding: 14px 18px; font-size: 14.5px; color: #1E7A3C; margin-bottom: 18px; font-weight: 600;
}

.form-error {
  background: #FDECEA; border: 1px solid #D93025; border-radius: var(--radius-s);
  padding: 14px 18px; font-size: 14.5px; color: #A50E0E; margin-bottom: 18px; font-weight: 600;
}

/* ── Promo Banners Carousel ── */
.promo-banners-section {
  background: var(--navy);
  padding: 72px 0 60px;
}
.promo-banners-section .eyebrow { color: var(--gold); }
.promo-banners-section h2 { color: #fff; }
.promo-banners-section p { color: rgba(255,255,255,.65); }
.promo-header { text-align: center; margin-bottom: 44px; }

.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.promo-card {
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  transition: transform .3s, box-shadow .3s;
}
.promo-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
.promo-card img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 960px) {
  .promo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .promo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── BLOG ── */
.blog-hero {
  background: var(--navy);
  padding: 72px 0 48px;
  text-align: center;
}
.blog-hero .eyebrow { color: var(--gold); }
.blog-hero h1 { color: #fff; margin-bottom: 12px; }
.blog-hero p { color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.blog-card-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--cream); }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-thumb--placeholder { display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: var(--maroon); background: var(--cream); }
.blog-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.blog-card-cat { background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.blog-card-body h3 { font-size: 17px; line-height: 1.4; margin-bottom: 8px; }
.blog-card-body h3 a { color: var(--navy); text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--maroon); }
.blog-card-body p { font-size: 14px; color: var(--text-muted); flex: 1; margin-bottom: 14px; }
.blog-read-more { font-size: 13px; font-weight: 700; color: var(--maroon); text-decoration: none; margin-top: auto; }
.blog-read-more:hover { color: var(--navy); }

.blog-pagination { margin-top: 48px; text-align: center; }
.blog-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius-s); border: 1.5px solid var(--border); color: var(--navy); font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }

.blog-empty { text-align: center; padding: 60px 0; }
.blog-empty p { color: var(--text-muted); margin-bottom: 24px; }

/* Single post */
.single-post-hero { background: var(--navy); padding: 60px 0 40px; text-align: center; }
.single-post-hero h1 { color: #fff; max-width: 760px; margin: 16px auto 0; font-size: clamp(24px,3.5vw,38px); line-height: 1.3; }
.single-post-thumb { margin-top: 36px; border-radius: var(--radius-m); overflow: hidden; max-height: 420px; }
.single-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.single-post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.post-body { font-size: 16px; line-height: 1.85; color: var(--text); }
.post-body h2,.post-body h3 { color: var(--navy); margin: 32px 0 12px; }
.post-body p { margin-bottom: 18px; }
.post-body ul,.post-body ol { padding-left: 22px; margin-bottom: 18px; }
.post-body li { margin-bottom: 6px; }
.post-body a { color: var(--maroon); }
.post-body img { max-width: 100%; border-radius: var(--radius-s); margin: 16px 0; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; }
.post-nav a { color: var(--navy); text-decoration: none; font-weight: 600; }
.post-nav a:hover { color: var(--maroon); }

.sidebar-card { background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow-card); padding: 24px; }
.sidebar-card h4 { color: var(--navy); margin-bottom: 10px; }
.sidebar-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .single-post-layout { grid-template-columns: 1fr; }
  .single-post-sidebar { display: none; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── STUDY MATERIALS ── */
.study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.study-card {
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.study-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.study-icon { font-size: 40px; margin-bottom: 12px; }
.study-course-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--maroon);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.study-card h4 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.study-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; min-height: 42px; }
.study-download-btn { width: 100%; }

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