/* ===== Brahma Academy – Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  --primary: #0a2e43;
  --gold: #FFD700;
  --gold-dark: #E6C200;
  --light-bg: #f6f7f8;
}

* { font-family: 'DM Sans', sans-serif; margin: 0; padding: 0; box-sizing: border-box; }
h1, h2, h3, .font-display { font-family: 'Playfair Display', serif; }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

body { background: var(--light-bg); }

/* ---- Buttons ---- */
.btn-primary { background: var(--primary); color: white; padding: 12px 28px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: all .2s; border: none; font-family: 'DM Sans', sans-serif; font-size: 15px; }
.btn-primary:hover { background: #0e3d5a; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--primary); padding: 12px 28px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: all .2s; border: none; font-family: 'DM Sans', sans-serif; font-size: 15px; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 10px 26px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: 'DM Sans', sans-serif; font-size: 15px; }
.btn-outline:hover { background: var(--primary); color: white; }

/* ---- Navbar ---- */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid #f0f0f0; box-shadow: 0 1px 8px rgba(0,0,0,.05); }
.navbar-inner { max-width: 1280px; margin: auto; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 12px rgba(10,46,67,.15); }
.logo-icon { width: 48px; height: 48px; background: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(10,46,67,.3); }
.logo-icon .material-symbols-outlined { color: var(--gold); font-size: 28px; font-variation-settings: 'FILL' 1,'wght' 400,'GRAD' 0,'opsz' 48; }
.logo-text .name { font-family: 'Playfair Display', serif; color: var(--primary); font-size: 18px; font-weight: 700; line-height: 1.2; }
.logo-text .sub { font-size: 11px; color: #888; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 16px; border-radius: 8px; color: var(--primary); font-weight: 500; font-size: 15px; text-decoration: none; transition: all .2s; background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(10,46,67,.05); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--primary); padding: 8px; }
.mobile-menu { display: none; padding: 1rem; border-top: 1px solid #f0f0f0; }
.mobile-menu.open { display: block; }
.mobile-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.mobile-nav-link { padding: 10px 12px; border-radius: 8px; color: var(--primary); font-weight: 500; font-size: 14px; text-decoration: none; display: block; }
.mobile-nav-link:hover { background: rgba(10,46,67,.06); }
.mobile-actions { display: flex; gap: 10px; }
.mobile-actions .btn-outline, .mobile-actions .btn-primary { flex: 1; text-align: center; padding: 10px 16px; }

/* ---- Hero ---- */
.hero { background: linear-gradient(135deg, #0a2e43 0%, #1a5276 50%, #0a2e43 100%); color: white; padding: 80px 1rem; position: relative; overflow: hidden; }
.hero-inner { max-width: 1280px; margin: auto; position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 99px; padding: 6px 16px; margin-bottom: 24px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.hero-badge span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.hero h1 .accent { color: var(--gold); }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.8); max-width: 680px; line-height: 1.7; margin-bottom: 40px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-btns .btn-secondary { background: rgba(255,255,255,.1); color: white; border: 2px solid rgba(255,255,255,.3); padding: 14px 32px; border-radius: 12px; font-weight: 700; font-size: 17px; cursor: pointer; transition: all .2s; font-family: 'DM Sans', sans-serif; }
.hero-btns .btn-secondary:hover { background: rgba(255,255,255,.2); }
.hero-btns .btn-gold { font-size: 17px; padding: 14px 32px; }
.hero-orbs { position: absolute; inset: 0; opacity: .1; pointer-events: none; }
.hero-orbs .orb { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }

/* ---- Stats Bar ---- */
.stats-bar { background: var(--primary); padding: 60px 1rem; }
.stats-bar-inner { max-width: 1280px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; color: white; }
.stat-item .number { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 900; color: var(--gold); }
.stat-item .number.white { color: white; }
.stat-item .label { color: rgba(255,255,255,.65); font-size: 14px; margin-top: 4px; }

/* ---- Section ---- */
.section { padding: 80px 1rem; }
.section.bg-white { background: white; }
.section-inner { max-width: 1280px; margin: auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); color: var(--primary); font-weight: 700; margin-bottom: 14px; }
.section-header p { font-size: 1.1rem; color: #888; max-width: 600px; margin: auto; }

/* ---- Cards ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: white; border-radius: 20px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: all .3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(10,46,67,.12); }
.card.border-gold { border-left: 4px solid var(--gold); }
.card-icon { font-size: 2.8rem; color: var(--gold); margin-bottom: 16px; display: block; font-variation-settings: 'FILL' 1,'wght' 400,'GRAD' 0,'opsz' 48; }
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.card p { color: #777; font-size: 14px; line-height: 1.65; }

/* ---- Course Card ---- */
.course-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: all .3s; }
.course-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(10,46,67,.12); }
.course-card-header { background: var(--primary); padding: 20px 24px; display: flex; justify-content: space-between; align-items: flex-start; }
.course-badge { background: var(--gold); color: var(--primary); padding: 4px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.course-icon .material-symbols-outlined { color: rgba(255,255,255,.2); font-size: 40px; font-variation-settings: 'FILL' 1,'wght' 400,'GRAD' 0,'opsz' 48; }
.course-card-body { padding: 24px; }
.course-card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }
.course-card-body p { color: #777; font-size: 13px; line-height: 1.6; margin-bottom: 18px; }
.course-meta { display: flex; gap: 16px; font-size: 12px; color: #aaa; margin-bottom: 20px; }
.course-meta span { display: flex; align-items: center; gap: 4px; }
.course-meta .material-symbols-outlined { font-size: 16px; }
.course-price { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.course-price .free { color: #1a7a4a; }
.course-card-footer { padding: 16px 24px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }

/* ---- Page Header ---- */
.page-header { background: var(--primary); padding: 64px 1rem; text-align: center; color: white; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,.7); font-size: 1.1rem; }

/* ---- CTA Banner ---- */
.cta-banner { background: linear-gradient(135deg, #0a2e43 0%, #1a5276 50%, #0a2e43 100%); padding: 80px 1rem; text-align: center; color: white; }
.cta-banner h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 16px; }
.cta-banner p { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 40px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta-btns .btn-secondary { background: rgba(255,255,255,.1); color: white; border: 2px solid rgba(255,255,255,.3); padding: 12px 28px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: all .2s; font-family: 'DM Sans', sans-serif; font-size: 15px; }
.cta-btns .btn-secondary:hover { background: rgba(255,255,255,.2); }

/* ---- Footer ---- */
footer { background: var(--primary); color: white; padding: 64px 1rem 28px; }
.footer-inner { max-width: 1280px; margin: auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.7; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.55); font-size: 13px; text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.55); font-size: 13px; margin-bottom: 10px; }
.footer-contact-item .material-symbols-outlined { color: var(--gold); font-size: 16px; }
.footer-bottom { max-width: 1280px; margin: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; color: rgba(255,255,255,.35); font-size: 13px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--primary); font-size: 14px; }
.form-input { width: 100%; padding: 12px 16px; border: 1.5px solid #e0e0e0; border-radius: 10px; font-size: 15px; background: white; transition: border-color .2s; font-family: 'DM Sans', sans-serif; }
.form-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(10,46,67,.08); }
.input-icon-wrap { position: relative; }
.input-icon-wrap .material-symbols-outlined { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #bbb; font-size: 20px; }
.input-icon-wrap .form-input { padding-left: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.badge-gold { background: #FFF8DC; color: #997700; }
.badge-blue { background: #E3F0FF; color: #1a5276; }
.badge-green { background: #E8F8F0; color: #1a7a4a; }
.badge-red { background: #FDECEA; color: #c0392b; }

/* ---- Toast ---- */
.toast { position: fixed; top: 24px; right: 24px; z-index: 9999; padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 15px; animation: slideIn .3s ease; max-width: 340px; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.success { background: var(--primary); color: var(--gold); }
.toast.error { background: #c0392b; color: white; }

/* ---- WhatsApp ---- */
.whatsapp-btn { position: fixed; bottom: 28px; right: 28px; z-index: 900; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,.4); cursor: pointer; transition: transform .2s; text-decoration: none; }
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn svg { width: 30px; height: 30px; fill: white; }

/* ---- Filter Tabs ---- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.filter-btn { padding: 10px 24px; border-radius: 99px; font-weight: 600; font-size: 14px; border: 1.5px solid #e0e0e0; background: white; color: var(--primary); cursor: pointer; transition: all .2s; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ---- Auth Card ---- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: linear-gradient(135deg, rgba(10,46,67,.04) 0%, rgba(255,215,0,.04) 100%); }
.auth-card { background: white; border-radius: 28px; box-shadow: 0 20px 60px rgba(10,46,67,.12); overflow: hidden; width: 100%; max-width: 460px; }
.auth-header { background: var(--primary); padding: 40px; text-align: center; }
.auth-header .auth-icon { width: 80px; height: 80px; background: rgba(255,255,255,.1); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.auth-header .auth-icon .material-symbols-outlined { font-size: 48px; color: var(--gold); font-variation-settings: 'FILL' 1,'wght' 400,'GRAD' 0,'opsz' 48; }
.auth-header h1 { font-family: 'Playfair Display', serif; color: white; font-size: 1.6rem; margin-bottom: 6px; }
.auth-header p { color: rgba(255,255,255,.6); font-size: 14px; }
.auth-body { padding: 40px; }
.divider { position: relative; text-align: center; margin: 24px 0; }
.divider::before { content:''; position: absolute; inset: 50% 0 auto; height: 1px; background: #f0f0f0; }
.divider span { position: relative; background: white; padding: 0 16px; color: #aaa; font-size: 13px; }

/* ---- Dashboard ---- */
.dash-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e8e8e8; margin-bottom: 32px; }
.dash-tab { padding: 12px 24px; font-weight: 600; font-size: 15px; color: #aaa; border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; transition: all .2s; font-family: 'DM Sans', sans-serif; }
.dash-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Admin ---- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 280px; background: var(--primary); min-height: 100vh; flex-shrink: 0; }
.admin-sidebar-head { padding: 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-head .title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.admin-sidebar-head .sub { color: rgba(255,255,255,.45); font-size: 12px; margin-top: 4px; }
.admin-nav { padding: 16px; }
.admin-nav-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; color: rgba(255,255,255,.65); background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 15px; transition: all .2s; text-align: left; }
.admin-nav-btn:hover { background: rgba(255,255,255,.1); color: white; }
.admin-nav-btn.active { background: rgba(255,255,255,.15); color: white; }
.admin-nav-btn .material-symbols-outlined { font-size: 20px; }
.admin-main { flex: 1; background: var(--light-bg); padding: 32px; overflow-y: auto; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.stat-card { background: white; border-radius: 16px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.stat-card .label { color: #999; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.stat-card .value { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--primary); }
.stat-card .trend { font-size: 12px; margin-top: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }

/* ---- Table ---- */
.table-wrap { background: white; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.06); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--light-bg); text-align: left; padding: 12px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #888; font-weight: 600; }
td { padding: 14px 16px; border-bottom: 1px solid #f4f4f4; font-size: 14px; color: #444; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafafa; }

/* ---- Modal ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.hidden { display: none; }
.modal { background: white; border-radius: 28px; width: 100%; max-width: 480px; padding: 40px; max-height: 90vh; overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.modal-close { background: none; border: none; cursor: pointer; color: #bbb; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: #f5f5f5; color: #666; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; min-height: auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 1rem; }
}
