/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #0a3d8f;
  --primary-dark: #072d6b;
  --secondary: #27ae60;
  --accent: #f39c12;
  --accent-dark: #e67e22;
  --danger: #e74c3c;
  --light: #f8fafc;
  --dark: #1a1a2e;
  --text: #333;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --white: #fff;
  --gradient: linear-gradient(135deg, #0a3d8f 0%, #1565c0 50%, #27ae60 100%);
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

/* ========== TYPOGRAPHY ========== */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.3; color: var(--dark); }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p { margin-bottom: 1rem; }

/* ========== UTILITY ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { color: var(--primary); margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-label { display: inline-block; color: var(--accent); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.bg-light { background: var(--light); }
.bg-primary { background: var(--primary); }
.bg-gradient { background: var(--gradient); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; } .align-center { align-items: center; } .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }

/* ========== BUTTONS ========== */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: all .25s; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,61,143,0.35); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #219a52; color: var(--white); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-outline-primary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #c0392b; color: var(--white); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ========== TOPBAR ========== */
.topbar { background: var(--primary-dark); color: rgba(255,255,255,.8); font-size: 0.82rem; padding: 0.4rem 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.topbar a { color: rgba(255,255,255,.8); } .topbar a:hover { color: var(--white); }
.topbar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-social { display: flex; gap: 0.75rem; }
.topbar-social a { background: rgba(255,255,255,.15); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.topbar-social a:hover { background: var(--accent); }

/* ========== NAVBAR ========== */
.navbar { background: var(--white); box-shadow: 0 2px 20px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.navbar-brand { display: flex; align-items: center; gap: 0.75rem; }
.navbar-brand .logo-text { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.navbar-brand .logo-text span { color: var(--secondary); }
.navbar-logo { height: 54px; width: auto; display: block; }
.navbar-brand img { height: 50px; }
.nav-menu { display: flex; align-items: center; list-style: none; gap: 0.25rem; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.85rem; color: var(--dark); font-weight: 500; font-size: 0.92rem; border-radius: var(--radius-sm); transition: all .2s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(10,61,143,.07); }
.nav-link .arrow { font-size: 0.7rem; transition: transform .2s; }
.nav-item:hover .arrow { transform: rotate(180deg); }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; padding: 0.5rem; z-index: 999; border-top: 3px solid var(--primary); }
.nav-item:hover > .dropdown { display: block; }
.dropdown-item { display: block; padding: 0.5rem 1rem; color: var(--text); font-size: 0.88rem; border-radius: var(--radius-sm); transition: all .15s; }
.dropdown-item:hover { background: var(--light); color: var(--primary); padding-left: 1.3rem; }
.sub-dropdown { display: none; position: absolute; left: 100%; top: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; padding: 0.5rem; border-top: 3px solid var(--secondary); }
.dropdown-item:hover > .sub-dropdown { display: block; }
.dropdown-item.has-sub { position: relative; }
.dropdown-item.has-sub::after { content: '›'; float: right; }
.navbar-cta { display: flex; align-items: center; gap: 0.75rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.hamburger span { width: 25px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .3s; }

/* ========== HERO ========== */
.hero { background: var(--gradient); color: var(--white); padding: 6rem 0 5rem; min-height: 85vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="85" cy="15" r="30" fill="rgba(255,255,255,.04)"/><circle cx="15" cy="85" r="40" fill="rgba(255,255,255,.03)"/></svg>'); background-size: cover; }
.hero .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-content { }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); backdrop-filter: blur(10px); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.85rem; margin-bottom: 1.25rem; border: 1px solid rgba(255,255,255,.2); }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.hero-sub { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; max-width: 500px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.5rem; }
.hero-stat { background: rgba(255,255,255,.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 1rem; text-align: center; }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.hero-stat .label { font-size: 0.8rem; opacity: 0.8; }
.hero-form-card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); color: var(--text); }
.hero-form-card h3 { color: var(--primary); margin-bottom: 1.25rem; font-size: 1.3rem; text-align: center; }

/* ========== NOTICES BAR ========== */
.notices-bar { background: var(--accent); color: var(--white); padding: 0.6rem 0; overflow: hidden; }
.notices-track { display: flex; gap: 3rem; animation: scroll-x 30s linear infinite; white-space: nowrap; }
.notices-track:hover { animation-play-state: paused; }
.notice-item { font-size: 0.9rem; font-weight: 500; }
.notice-item a { color: var(--white); text-decoration: underline; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========== CARDS ========== */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: all .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.5rem; }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-tag { display: inline-block; background: rgba(10,61,143,.1); color: var(--primary); font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.7rem; border-radius: 50px; margin-bottom: 0.75rem; }
.card-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-text { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.card-meta { display: flex; gap: 1rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; flex-wrap: wrap; }
.card-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ========== COURSE CARD ========== */
.course-card { border: 1px solid var(--border); border-top: 4px solid var(--primary); }
.course-card .badge { position: absolute; top: 1rem; right: 1rem; background: var(--secondary); color: var(--white); font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 50px; }
.course-card .icon { width: 50px; height: 50px; background: rgba(10,61,143,.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1rem; color: var(--primary); }
.feature-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; margin-bottom: 1rem; flex-shrink: 0; }
.stream-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; margin: 0 auto 1rem; }
.course-hero-icon { width: 70px; height: 70px; border-radius: 16px; background: rgba(10,61,143,.1); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 1.25rem; }

/* ========== STATS ========== */
.stats-section { background: var(--primary); color: var(--white); padding: 3.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.stat-item .number { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.stat-item .label { opacity: 0.85; font-size: 0.95rem; margin-top: 0.25rem; }

/* ========== WHY CHOOSE ========== */
.why-item { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--radius); transition: all .2s; }
.why-item:hover { background: var(--light); }
.why-icon { width: 48px; height: 48px; background: var(--gradient); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: white; flex-shrink: 0; }
.why-text h4 { margin-bottom: 0.3rem; font-size: 1rem; }
.why-text p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--dark); }
.form-control { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font); transition: border-color .2s; background: var(--white); color: var(--text); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,61,143,.1); }
.form-control::placeholder { color: #aaa; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-card { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.form-card h2 { color: var(--primary); margin-bottom: 0.5rem; }
.form-card .subtitle { color: var(--text-muted); margin-bottom: 2rem; }
.required { color: var(--danger); }
.form-section-title { font-size: 1rem; font-weight: 700; color: var(--primary); border-bottom: 2px solid var(--border); padding-bottom: 0.5rem; margin: 1.5rem 0 1rem; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--secondary); }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-info { background: #dbeafe; color: #1e40af; border-left: 4px solid var(--primary); }

/* ========== PAGE HERO ========== */
.page-hero { background: var(--gradient); color: var(--white); padding: 4rem 0 3rem; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.2); }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { opacity: 0.9; font-size: 1.1rem; max-width: 600px; margin: 0 auto 1.25rem; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.88rem; opacity: 0.8; }
.breadcrumb a { color: rgba(255,255,255,.8); } .breadcrumb a:hover { color: var(--white); }

/* ========== TESTIMONIALS ========== */
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.stars { color: var(--accent); font-size: 1rem; margin-bottom: 0.75rem; }
.testimonial-card p { color: var(--text-muted); font-style: italic; margin-bottom: 1rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1rem; }
.author-info .name { font-weight: 700; font-size: 0.95rem; color: var(--dark); }
.author-info .course { font-size: 0.8rem; color: var(--text-muted); }

/* ========== CTA SECTION ========== */
.cta-section { background: var(--gradient); color: var(--white); padding: 5rem 0; text-align: center; position: relative; overflow: hidden; }
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { opacity: 0.9; margin-bottom: 2rem; font-size: 1.1rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ========== FLOATING BUTTONS ========== */
/* Use a.fab / button.fab selectors to avoid clashing with Font Awesome's .fab brand-icon class on <i> elements */
.floating-actions { position: fixed; right: 1.5rem; bottom: 2rem; z-index: 999; display: flex; flex-direction: column; gap: 0.75rem; }
a.fab, button.fab { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: var(--shadow-lg); transition: all .2s; cursor: pointer; text-decoration: none; border: none; }
a.fab-whatsapp, button.fab-whatsapp { background: #25d366; color: var(--white); }
a.fab-whatsapp:hover, button.fab-whatsapp:hover { background: #1ebe57; transform: scale(1.1); color: var(--white); }
a.fab-phone, button.fab-phone { background: var(--primary); color: var(--white); }
a.fab-phone:hover, button.fab-phone:hover { background: var(--primary-dark); transform: scale(1.1); color: var(--white); }
button.fab-top { background: var(--accent); color: var(--white); opacity: 0; transition: opacity .3s; }
button.fab-top.visible { opacity: 1; }
button.fab-top:hover { background: var(--accent-dark); transform: scale(1.1); }

/* ========== POPUP ========== */
.popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.popup-overlay.active { opacity: 1; pointer-events: all; }
.popup-box { background: var(--white); border-radius: var(--radius); padding: 2.5rem; max-width: 500px; width: 90%; position: relative; transform: scale(0.9); transition: transform .3s; }
.popup-overlay.active .popup-box { transform: scale(1); }
.popup-close { position: absolute; top: 1rem; right: 1rem; background: var(--light); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.popup-close:hover { background: var(--danger); color: var(--white); }

/* ========== FOOTER ========== */
footer { background: var(--dark); color: rgba(255,255,255,.8); }
.footer-top { padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
footer h4 { color: var(--white); margin-bottom: 1.25rem; font-size: 1.05rem; position: relative; padding-bottom: 0.5rem; }
footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--accent); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: 0.9rem; transition: all .2s; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-contact-item { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.footer-contact-item .icon { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.footer-contact-item p { font-size: 0.88rem; line-height: 1.5; margin: 0; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: all .2s; }
.footer-social a:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }
.footer-bottom { background: rgba(0,0,0,.3); padding: 1.25rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 1rem; }
.footer-bottom-links a { color: rgba(255,255,255,.6); }
.footer-bottom-links a:hover { color: var(--white); }
.footer-brand-text { font-size: 1.5rem; font-weight: 800; color: var(--white); } .footer-brand-text span { color: var(--secondary); }
.footer-logo { max-width: 200px; height: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-about { font-size: 0.88rem; opacity: 0.7; margin: 1rem 0; line-height: 1.7; }

/* ========== COURSE DETAIL ========== */
.course-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
.course-sidebar .sticky { position: sticky; top: 90px; }
.info-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; margin-bottom: 1.5rem; border-top: 4px solid var(--primary); }
.info-box h3 { color: var(--primary); margin-bottom: 1.25rem; font-size: 1.1rem; }
.info-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.info-row:last-child { border: none; }
.info-row .label { color: var(--text-muted); font-weight: 500; }
.info-row .value { font-weight: 600; color: var(--dark); text-align: right; }
.highlights-list { list-style: none; }
.highlights-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; display: flex; gap: 0.5rem; }
.highlights-list li::before { content: '✓'; color: var(--secondary); font-weight: 700; flex-shrink: 0; }
.highlights-list li:last-child { border: none; }
.course-content h3 { color: var(--primary); margin: 1.5rem 0 0.75rem; }
.course-content p, .course-content li { color: var(--text-muted); }

/* ========== ADMISSION STEPS ========== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 1.75rem 1.25rem; text-align: center; box-shadow: var(--shadow); position: relative; }
.step-num { width: 54px; height: 54px; background: var(--gradient); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; margin: 0 auto 1rem; }
.step h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ========== CONTACT ========== */
.contact-info-item { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); margin-bottom: 1rem; align-items: flex-start; }
.contact-info-icon { width: 48px; height: 48px; background: var(--gradient); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--white); flex-shrink: 0; }
.contact-info-text h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.contact-info-text p { color: var(--text-muted); font-size: 0.88rem; margin: 0; line-height: 1.6; }
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-container iframe { width: 100%; height: 300px; border: none; }

/* ========== PAGE EDITOR ========== */
.content-wrapper { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--border); min-height: 200px; padding: 1rem; }

/* ========== ADMIN ========== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--primary-dark); color: var(--white); flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-logo { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-logo .name { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.admin-logo .sub { font-size: 0.78rem; opacity: 0.6; }
.admin-nav { padding: 1rem 0; }
.admin-nav-section { padding: 0.5rem 1rem 0.25rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.5; font-weight: 600; }
.admin-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1.25rem; color: rgba(255,255,255,.75); font-size: 0.9rem; transition: all .2s; border-left: 3px solid transparent; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.1); color: var(--white); border-left-color: var(--accent); }
.admin-nav a .icon { width: 20px; text-align: center; font-size: 1rem; }
.admin-main { flex: 1; background: #f1f5f9; overflow-y: auto; }
.admin-topbar { background: var(--white); padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 10px rgba(0,0,0,.05); }
.admin-topbar h1 { font-size: 1.2rem; color: var(--dark); }
.admin-content { padding: 1.5rem; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem; }
.stat-card-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.stat-card-num { font-size: 2rem; font-weight: 800; color: var(--dark); }
.stat-card-label { color: var(--text-muted); font-size: 0.85rem; }
.table-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.table-header h3 { font-size: 1.05rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.85rem 1.5rem; text-align: left; font-size: 0.88rem; }
th { background: var(--light); font-weight: 600; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
tr:hover td { background: rgba(10,61,143,.02); }
td { border-bottom: 1px solid var(--border); color: var(--text); }
tr:last-child td { border: none; }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.badge-new { background: #dbeafe; color: #1e40af; }
.badge-read { background: #f0fdf4; color: #166534; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-inactive { background: #fee2e2; color: #991b1b; }
.admin-form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.admin-form-card h3 { margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot-new { background: var(--primary); }
.dot-read { background: var(--secondary); }
.dot-pending { background: var(--accent); }
.pagination { display: flex; gap: 0.5rem; align-items: center; justify-content: center; padding: 1.5rem; }
.page-num { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.88rem; color: var(--text); cursor: pointer; }
.page-num.active, .page-num:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.tabs { display: flex; gap: 0.25rem; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.tab { padding: 0.6rem 1.25rem; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; font-weight: 600; font-size: 0.88rem; color: var(--text-muted); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.toggle-switch { position: relative; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #ccc; border-radius: 24px; cursor: pointer; transition: .3s; }
.toggle-slider:before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: .3s; }
input:checked + .toggle-slider { background: var(--secondary); }
input:checked + .toggle-slider:before { transform: translateX(20px); }

/* ========== GALLERY ========== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--light); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .course-detail-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-form-card { display: none; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .nav-menu { display: none; position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: var(--white); flex-direction: column; align-items: stretch; padding: 2rem 1rem; box-shadow: var(--shadow-lg); transition: right .3s; z-index: 9998; overflow-y: auto; }
  .nav-menu.open { right: 0; display: flex; }
  .dropdown { position: static; display: none; box-shadow: none; border: none; border-top: none; padding-left: 1rem; background: var(--light); border-radius: 0; }
  .nav-item.open .dropdown { display: block; }
  .sub-dropdown { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .dropdown-item.has-sub.open .sub-dropdown { display: block; }
  .hamburger { display: flex; }
  .navbar-cta .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid, .form-row { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .topbar-info { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 0; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { animation: fadeInUp .6s ease forwards; }
.delay-1 { animation-delay: .1s; } .delay-2 { animation-delay: .2s; } .delay-3 { animation-delay: .3s; }

/* ========== MISC ========== */
.divider { height: 3px; background: var(--gradient); border-radius: 2px; margin: 0 auto; width: 60px; margin-bottom: 1.5rem; }
.quote-mark { font-size: 4rem; color: var(--primary); opacity: 0.1; line-height: 0; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 2rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.highlight-box { background: linear-gradient(135deg, rgba(10,61,143,.05), rgba(39,174,96,.05)); border: 1px solid rgba(10,61,143,.1); border-radius: var(--radius); padding: 1.75rem; }
.quick-apply { background: var(--accent); color: var(--white); padding: 1.25rem 1.5rem; border-radius: var(--radius); text-align: center; }
.quick-apply h4 { color: var(--white); margin-bottom: 0.5rem; }
.quick-apply p { font-size: 0.85rem; opacity: 0.9; margin-bottom: 1rem; }

/* ========== DASHBOARD ========== */
.dash-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.dash-stat-card { background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); border-left: 4px solid transparent; display: flex; flex-direction: column; gap: .5rem; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.dash-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dash-stat-card.primary  { border-left-color: var(--primary);  }
.dash-stat-card.warning  { border-left-color: var(--accent);   }
.dash-stat-card.success  { border-left-color: var(--secondary);}
.dash-stat-card.danger   { border-left-color: #ef4444;         }
.dash-stat-card.info     { border-left-color: #3b82f6;         }
.dash-stat-card.purple   { border-left-color: #8b5cf6;         }
.dash-stat-card.teal     { border-left-color: #14b8a6;         }
.dash-stat-card.orange   { border-left-color: #f97316;         }
.dash-stat-icon { position: absolute; right: 1rem; top: 1rem; font-size: 1.8rem; opacity: .08; }
.dash-stat-card.primary  .dash-stat-icon { color: var(--primary);   opacity: .12; }
.dash-stat-card.warning  .dash-stat-icon { color: var(--accent);    opacity: .12; }
.dash-stat-card.success  .dash-stat-icon { color: var(--secondary); opacity: .12; }
.dash-stat-card.danger   .dash-stat-icon { color: #ef4444;          opacity: .12; }
.dash-stat-card.info     .dash-stat-icon { color: #3b82f6;          opacity: .12; }
.dash-stat-card.purple   .dash-stat-icon { color: #8b5cf6;          opacity: .12; }
.dash-stat-card.teal     .dash-stat-icon { color: #14b8a6;          opacity: .12; }
.dash-stat-card.orange   .dash-stat-icon { color: #f97316;          opacity: .12; }
.dash-stat-body { flex: 1; }
.dash-stat-num { font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1; }
.dash-stat-label { font-size: .82rem; color: var(--text-muted); font-weight: 500; margin-top: .2rem; }
.dash-stat-sub { font-size: .75rem; color: var(--text-muted); margin-top: .4rem; }
.dash-stat-link { font-size: .75rem; color: var(--primary); font-weight: 600; text-decoration: none; margin-top: .5rem; display: inline-flex; align-items: center; gap: .3rem; }
.dash-stat-link:hover { text-decoration: underline; }
.dash-charts-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.dash-chart-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.dash-chart-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.dash-chart-header h3 { font-size: 1rem; margin: 0; }
.dash-bottom-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.dash-activity-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.dash-activity-list { max-height: 420px; overflow-y: auto; }
.dash-activity-item { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.5rem; border-bottom: 1px solid var(--border); transition: background .15s; }
.dash-activity-item:last-child { border: none; }
.dash-activity-item:hover { background: var(--light); }
.dash-activity-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.dash-activity-body { flex: 1; min-width: 0; }
.dash-activity-name { font-size: .88rem; font-weight: 600; color: var(--dark); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dash-activity-meta { font-size: .78rem; color: var(--text-muted); margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-activity-time { font-size: .72rem; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }
.dash-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.dash-quick-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: .85rem .5rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border); color: var(--text-muted); font-size: .78rem; font-weight: 600; text-decoration: none; transition: all .2s; text-align: center; }
.dash-quick-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(10,61,143,.04); }
.dash-quick-btn i { font-size: 1.2rem; }
@media (max-width: 1200px) { .dash-stats-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .dash-stats-grid { grid-template-columns: repeat(2, 1fr); } .dash-charts-grid { grid-template-columns: 1fr; } .dash-bottom-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px)  { .dash-stats-grid { grid-template-columns: 1fr 1fr; } .dash-quick-grid { grid-template-columns: repeat(3,1fr); } }

/* ========== CRM ========== */
.crm-status-badge { display:inline-block; padding:.2rem .65rem; border-radius:50px; font-size:.72rem; font-weight:700; }
.crm-status-new        { background:#dbeafe; color:#1e40af; }
.crm-status-contacted  { background:#ede9fe; color:#5b21b6; }
.crm-status-interested { background:#fef3c7; color:#92400e; }
.crm-status-applied    { background:#ffedd5; color:#9a3412; }
.crm-status-converted  { background:#dcfce7; color:#14532d; }
.crm-status-lost       { background:#fee2e2; color:#991b1b; }
.crm-priority { display:inline-block; padding:.15rem .55rem; border-radius:50px; font-size:.7rem; font-weight:700; }
.crm-priority-high   { background:#fee2e2; color:#991b1b; }
.crm-priority-medium { background:#fef3c7; color:#92400e; }
.crm-priority-low    { background:#f1f5f9; color:#64748b; }

/* Timeline */
.crm-timeline { display:flex; flex-direction:column; gap:0; }
.crm-timeline-item { display:flex; gap:.9rem; align-items:flex-start; padding:.9rem 0; border-bottom:1px solid #f1f5f9; }
.crm-timeline-item:last-child { border:none; }
.crm-timeline-icon { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.8rem; flex-shrink:0; margin-top:.1rem; }
.crm-timeline-body { flex:1; min-width:0; }

/* Pipeline Board */
.crm-pipeline-board { display:grid; grid-template-columns:repeat(6,1fr); gap:1rem; align-items:start; overflow-x:auto; min-width:0; }
.crm-pipeline-col { background:#f8fafc; border-radius:var(--radius); padding:0; min-width:180px; }
.crm-pipeline-col-header { background:white; padding:.9rem 1rem .7rem; border-radius:var(--radius) var(--radius) 0 0; box-shadow:var(--shadow); margin-bottom:.5rem; }
.crm-pipeline-cards { display:flex; flex-direction:column; gap:.6rem; padding:.5rem; max-height:calc(100vh - 280px); overflow-y:auto; }
.crm-pipeline-cards::-webkit-scrollbar { width:3px; }
.crm-pipeline-cards::-webkit-scrollbar-thumb { background:#cbd5e1; border-radius:3px; }
.crm-card { background:white; border-radius:10px; padding:.85rem; box-shadow:0 1px 6px rgba(0,0,0,.07); border:1px solid #f1f5f9; transition:box-shadow .2s, transform .15s; }
.crm-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.12); transform:translateY(-1px); }
.crm-card-actions { display:none; }
.crm-card:hover .crm-card-actions { display:block; }

@media (max-width:1200px) { .crm-pipeline-board { grid-template-columns:repeat(3,1fr); } }
@media (max-width:768px)  { .crm-pipeline-board { grid-template-columns:repeat(2,1fr); } }

/* ========== AI CHATBOT WIDGET ========== */
.chatbot-widget { position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 9990; }
.chatbot-toggle { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #0a3d8f, #1a5cc8); color: #fff; border: none; cursor: pointer; box-shadow: 0 4px 20px rgba(10,61,143,.45); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; transition: transform .2s, box-shadow .2s; position: relative; }
.chatbot-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(10,61,143,.55); }
.chatbot-toggle.active { background: linear-gradient(135deg, #1e40af, #0a3d8f); }
.chatbot-toggle-open, .chatbot-toggle-close { display: flex; align-items: center; justify-content: center; }
.chatbot-badge { position: absolute; top: -4px; right: -4px; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: none; align-items: center; justify-content: center; border: 2px solid #fff; }
@keyframes pulse-ring { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.18);opacity:.7} }
.chatbot-toggle.pulse { animation: pulse-ring 1.5s ease-in-out infinite; }
.chatbot-window { position: absolute; bottom: 72px; left: 0; width: 360px; max-height: 520px; background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,.18); display: flex; flex-direction: column; overflow: hidden; transform: scale(.85) translateY(20px); opacity: 0; pointer-events: none; transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s; transform-origin: bottom left; }
.chatbot-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.chatbot-header { background: linear-gradient(135deg, #0a3d8f, #1a5cc8); color: #fff; padding: .9rem 1rem; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.chatbot-header-left { display: flex; align-items: center; gap: .75rem; }
.chatbot-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.chatbot-name { font-weight: 700; font-size: .95rem; }
.chatbot-status { font-size: .72rem; opacity: .85; display: flex; align-items: center; gap: .3rem; margin-top: .1rem; }
.chatbot-online-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; display: inline-block; }
.chatbot-close-btn { background: rgba(255,255,255,.15); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: background .2s; }
.chatbot-close-btn:hover { background: rgba(255,255,255,.3); }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; background: #f8fafc; scroll-behavior: smooth; }
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.chatbot-msg { display: flex; gap: .5rem; align-items: flex-end; }
.chatbot-msg.user { flex-direction: row-reverse; }
.chatbot-msg-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,#0a3d8f,#1a5cc8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .7rem; flex-shrink: 0; }
.chatbot-msg-content { max-width: 82%; display: flex; flex-direction: column; gap: .4rem; }
.chatbot-bubble { background: #fff; border-radius: 14px 14px 14px 4px; padding: .7rem 1rem; font-size: .85rem; line-height: 1.5; color: var(--dark); box-shadow: 0 1px 4px rgba(0,0,0,.07); word-break: break-word; }
.user-bubble { background: linear-gradient(135deg,#0a3d8f,#1a5cc8); color: #fff; border-radius: 14px 14px 4px 14px; padding: .7rem 1rem; font-size: .85rem; line-height: 1.5; word-break: break-word; }
.chatbot-quick-replies { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.chatbot-qr { background: #fff; border: 1.5px solid #dbeafe; color: var(--primary); font-size: .76rem; font-weight: 600; padding: .35rem .8rem; border-radius: 50px; cursor: pointer; transition: all .2s; white-space: nowrap; }
.chatbot-qr:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.chatbot-typing { display: flex; align-items: center; gap: .3rem; background: #fff; border-radius: 14px 14px 14px 4px; padding: .7rem 1rem; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.chatbot-typing span { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; display: inline-block; animation: typing-bounce .8s ease-in-out infinite; }
.chatbot-typing span:nth-child(2) { animation-delay: .15s; }
.chatbot-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-6px)} }
.chatbot-input-area { padding: .75rem 1rem; background: #fff; border-top: 1px solid #e2e8f0; flex-shrink: 0; }
.chatbot-input-row { display: flex; gap: .5rem; align-items: center; }
.chatbot-input { flex: 1; border: 1.5px solid #e2e8f0; border-radius: 50px; padding: .55rem 1rem; font-size: .85rem; outline: none; transition: border-color .2s; }
.chatbot-input:focus { border-color: var(--primary); }
.chatbot-send { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; transition: background .2s, transform .2s; }
.chatbot-send:hover { background: #1a5cc8; transform: scale(1.08); }
.chatbot-send:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.chatbot-footer-note { font-size: .68rem; color: #94a3b8; text-align: center; margin-top: .4rem; }
@media (max-width: 480px) { .chatbot-window { width: calc(100vw - 2rem); left: 0; } }
