/*
Theme Name: Civil Decode
Theme URI: https://www.instagram.com/civil_decode
Author: Civil Decode
Description: Navy + safety-orange theme for the Civil Decode civil engineering training institute. Pair with the "Civil Decode Courses" plugin for courses, checkout and Razorpay / Paytm / UPI payments.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: civil-decode
*/

/* Civil Decode — colours taken from the logo: deep navy + safety-helmet orange */
:root {
  --navy: #0d1f45;
  --navy-2: #15306a;
  --navy-3: #1f3f86;
  --orange: #f7931e;
  --orange-2: #e57c00;
  --orange-soft: #fff3e3;
  --ink: #142037;
  --muted: #5b6780;
  --line: #e3e8f2;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --ok: #138a52;
  --ok-soft: #e6f6ee;
  --err: #c62f2f;
  --err-soft: #fdecec;
  --warn-soft: #fff6e0;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(13, 31, 69, .25);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--orange-2); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--orange); }
.lead { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; stroke-width: 2; flex-shrink: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 10px; border: 2px solid transparent; font: 600 .95rem/1 var(--font-head); cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(247, 147, 30, .7); }
.btn-primary:hover { background: var(--orange-2); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-ghost.light { color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 9px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* announcement + header */
.announce { background: var(--orange); color: #fff; font-size: .9rem; text-align: center; padding: 9px 16px; }
.announce a { color: #fff; font-weight: 700; text-decoration: underline; margin-left: 8px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.2rem/1 var(--font-head); color: var(--navy); letter-spacing: .02em; min-width: 0; flex-shrink: 1; }
.brand span { white-space: nowrap; }
.brand img { width: 50px; height: 50px; object-fit: contain; mix-blend-mode: multiply; }
.brand span b { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--orange-2); background: var(--orange-soft); }
.nav-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.menu-btn { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 8px; border-radius: 10px; }
.menu-btn .i-close, .menu-btn.is-open .i-open { display: none; }
.menu-btn.is-open .i-close { display: inline-flex; }
.nav-mobile-only { display: none; }
.mobile-bar { display: none; }

@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
  .nav-links .icon { width: 18px; height: 18px; color: var(--orange); }
  .nav-mobile-only { display: block; }
  .nav-links li.nav-mobile-only:not(.nav-mobile-only + .nav-mobile-only) { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .nav-links .nav-mobile-cta { padding-top: 10px; }
  .nav-links .nav-mobile-cta a { justify-content: center; color: #fff; }
  .nav-cta .nav-call { display: none; }
}
@media (max-width: 640px) {
  .announce { font-size: .8rem; padding: 7px 12px; line-height: 1.4; }
  .nav { height: 64px; gap: 8px; }
  .brand { gap: 8px; font-size: 1.02rem; }
  .brand img { width: 40px; height: 40px; }
  .nav-cta { gap: 4px; }
  .nav-cta .nav-enroll { display: none; }
  .nav-cta .nav-login { padding: 8px 10px; gap: 6px; }
  .nav-cta .nav-login .btn-label { display: none; }
  .nav-cta .nav-login .icon { width: 20px; height: 20px; margin: 0; }
  .nav-cta .nav-login .count-badge { margin: 0; }
  /* bottom quick-links bar replaces the floating WhatsApp button */
  .mobile-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -12px rgba(13,31,69,.35); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; color: var(--navy); font: 600 .72rem var(--font-body); }
  .mobile-bar a .icon { width: 22px; height: 22px; color: var(--orange); }
  .mobile-bar a.mb-wa .icon { color: #1faa53; }
  body .wa-float { display: none; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) { .brand span { display: none; } }

/* hero with blueprint grid */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #dbe4f7; padding: 90px 0 110px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px; mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(247,147,30,.35), transparent 65%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { color: #b9c6e2; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.hero-points li { display: flex; gap: 8px; align-items: center; }
.hero-points .icon { color: var(--orange); width: 18px; }
.hero-card { position: relative; background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.hero-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.hero-card .badge-float { position: absolute; display: flex; gap: 10px; align-items: center; background: #fff; color: var(--navy); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font: 600 .85rem/1.25 var(--font-head); }
.hero-card .badge-float .icon { color: var(--orange); width: 26px; height: 26px; }
.hero-card .bf-1 { left: -34px; bottom: 60px; }
.hero-card .bf-2 { right: -26px; top: 34px; }
@media (max-width: 920px) {
  .hero { padding: 60px 0 80px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-card { max-width: 380px; margin: 0 auto; }
  .hero-card .bf-1 { left: -8px; } .hero-card .bf-2 { right: -8px; }
}

/* software marquee */
.marquee { background: var(--navy-2); color: #fff; overflow: hidden; padding: 16px 0; border-top: 3px solid var(--orange); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 32s linear infinite; font: 600 1rem/1 var(--font-head); letter-spacing: .04em; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; opacity: .9; }
.marquee-track span::after { content: "◆"; color: var(--orange); font-size: .7rem; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: 18px; box-shadow: var(--shadow); margin-top: 40px; position: relative; z-index: 2; overflow: hidden; }
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 800 2.1rem/1 var(--font-head); color: var(--navy); }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* features */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--orange); transform: translateY(-3px); }
.feature .ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--orange-soft); color: var(--orange-2); margin-bottom: 16px; }
.feature .ico .icon { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* course cards */
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.course-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.course-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); background-size: 22px 22px, 22px 22px, 100% 100%; }
.thumb-art .sw { font: 800 1.5rem/1.1 var(--font-head); }
.thumb-art .sw small { display: block; font: 500 .78rem/1.4 var(--font-body); opacity: .75; margin-top: 4px; }
.thumb-art .helmet { position: absolute; right: 16px; top: 14px; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.course-thumb .tag { position: absolute; left: 12px; top: 12px; background: var(--orange); color: #fff; font: 700 .7rem/1 var(--font-head); padding: 7px 10px; border-radius: 6px; letter-spacing: .06em; text-transform: uppercase; }
.course-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.course-cat { font: 600 .75rem/1 var(--font-head); color: var(--orange-2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.course-body h3 a { color: var(--navy); }
.course-body h3 a:hover { color: var(--orange-2); }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .85rem; margin: 4px 0 16px; }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta .icon { width: 15px; height: 15px; }
.course-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px dashed var(--line); gap: 10px; }
.price { font: 800 1.35rem/1 var(--font-head); color: var(--navy); }
.price s { font: 500 .9rem var(--font-body); color: var(--muted); margin-left: 6px; white-space: nowrap; }
.price { white-space: nowrap; }
.off { display: inline-block; background: var(--ok-soft); color: var(--ok); font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; margin-left: 6px; vertical-align: middle; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 30px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 500; }
.chip.active, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.search { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; }
.search input { border: 0; padding: 10px 16px; font: inherit; min-width: 220px; outline: none; }
.search button { border: 0; background: var(--orange); color: #fff; padding: 0 16px; cursor: pointer; }

/* page hero */
.page-hero { background: var(--navy); color: #c9d4ec; padding: 64px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.crumbs { font-size: .88rem; margin-bottom: 14px; }
.crumbs a { color: var(--orange); }

/* course detail */
.detail-grid { display: grid; grid-template-columns: 1fr 370px; gap: 40px; align-items: start; }
@media (max-width: 980px) { .detail-grid { grid-template-columns: 1fr; } }
.buy-box { position: sticky; top: 96px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.buy-box .course-thumb { aspect-ratio: 16/9; }
.buy-box .inner { padding: 22px; }
.buy-box .price { font-size: 2rem; }
.buy-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; font-size: .93rem; }
.buy-list li { display: flex; gap: 10px; align-items: center; }
.buy-list .icon { color: var(--orange-2); width: 18px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--ok); margin-top: 3px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; }
.module { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.module summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; gap: 14px; font: 600 1rem var(--font-head); color: var(--navy); background: var(--bg-alt); }
.module summary::-webkit-details-marker { display: none; }
.module summary .num { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; }
.module summary .chev { margin-left: auto; transition: transform .2s; }
.module[open] summary .chev { transform: rotate(180deg); }
.module ul { margin: 0; padding: 14px 18px 18px 62px; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); font-size: .82rem; padding: 6px 12px; border-radius: 30px; display: inline-flex; gap: 6px; align-items: center; }
.pill .icon { width: 15px; height: 15px; color: var(--orange); }

/* testimonials */
.testimonial { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); position: relative; }
.testimonial .stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial p { color: var(--ink); }
.who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 1rem var(--font-head); }
.who b { display: block; color: var(--navy); font-size: .95rem; }
.who span { font-size: .82rem; color: var(--muted); }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 26px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--orange); color: #fff; display: grid; place-items: center; font: 800 1rem var(--font-head); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); border-radius: 22px; padding: 48px; display: flex; gap: 30px; align-items: center; justify-content: space-between; color: #c9d4ec; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(247,147,30,.25); }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band > * { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; } }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(247,147,30,.15); }
.field small { color: var(--muted); font-size: .8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.checkbox { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.checkbox input { width: auto; }

/* payment method picker */
.pay-options { display: grid; gap: 12px; margin: 10px 0 20px; }
.pay-opt { display: flex; gap: 14px; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-opt:hover { border-color: #c8d2e6; }
.pay-opt input { accent-color: var(--orange); width: 18px; height: 18px; }
.pay-opt:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.pay-opt b { display: block; color: var(--navy); }
.pay-opt small { color: var(--muted); }
.pay-opt .logo-txt { margin-left: auto; font: 800 .8rem var(--font-head); padding: 6px 10px; border-radius: 6px; color: #fff; }
.lt-rzp { background: #0c2451; } .lt-paytm { background: #00baf2; } .lt-upi { background: #097939; }
.secure-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .82rem; justify-content: center; margin-top: 14px; }
.secure-note .icon { width: 16px; color: var(--ok); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.summary-row.total { border: 0; font: 800 1.2rem var(--font-head); color: var(--navy); }

/* alerts */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: .93rem; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-error { background: var(--err-soft); color: var(--err); }
.alert-warn { background: var(--warn-soft); color: #8a5a00; }
.flash-wrap { position: fixed; top: 90px; right: 16px; z-index: 100; max-width: 380px; }
.flash-wrap .alert { box-shadow: var(--shadow); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font: 600 1.05rem var(--font-head); color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--orange); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* contact */
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--orange); display: grid; place-items: center; flex-shrink: 0; }
.contact-item b { display: block; color: var(--navy); }

/* footer */
.site-footer { background: #091633; color: #9aa9c9; padding: 70px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #9aa9c9; }
.site-footer a:hover { color: var(--orange); }
.footer-brand img { width: 84px; background: #fff; border-radius: 14px; padding: 6px; margin-bottom: 14px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--orange); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.ig-card { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); color: #fff !important; border-radius: 14px; padding: 16px; margin-top: 6px; }
.ig-card b { display: block; }
.ig-card:hover { opacity: .95; }

/* whatsapp float */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37,211,102,.6); }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* order / UPI pages */
.status-card { max-width: 620px; margin: 0 auto; text-align: center; }
.status-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; }
.status-icon .icon { width: 42px; height: 42px; }
.si-ok { background: var(--ok-soft); color: var(--ok); }
.si-wait { background: var(--warn-soft); color: #b77900; }
.si-err { background: var(--err-soft); color: var(--err); }
.receipt { text-align: left; margin: 24px 0; }
.qr-box { background: #fff; padding: 16px; border-radius: 16px; border: 2px dashed var(--orange); display: inline-block; margin: 10px auto 16px; }
.qr-box #qr img, .qr-box #qr canvas { margin: 0 auto; }
.upi-apps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.upi-apps span { font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 20px; background: var(--bg-alt); color: var(--navy); }
.copy-row { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: ui-monospace, monospace; background: var(--bg-alt); padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; word-break: break-all; }
.copy-row button { border: 0; background: var(--navy); color: #fff; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: .78rem; }

/* misc */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 20px; } .mt-4 { margin-top: 40px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose ul { padding-left: 20px; color: var(--muted); }
.prose p { color: var(--muted); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.about-img { border-radius: 22px; background: #fff; padding: 30px; box-shadow: var(--shadow); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 30px; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- WordPress additions ---------- */
.nav-links .current-menu-item > a, .nav-links .current_page_item > a { color: var(--orange-2); background: var(--orange-soft); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.box-title { font-size: 1.4rem; }
.entry > *:first-child { margin-top: 0; }
.entry img { border-radius: 12px; height: auto; }
.entry ul, .entry ol { padding-left: 22px; }
.entry .prose, .cdc-policy { max-width: 820px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.nav-links .sub-menu { display: none; }
.pagination .nav-links { display: flex; gap: 8px; position: static; box-shadow: none; border: 0; padding: 0; background: none; flex-direction: row; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pagination .current { background: var(--navy); color: #fff; }

/* ---------- login, dashboard, locked modules ---------- */
.count-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--orange); color: #fff; font-size: .75rem; margin-left: 2px; }
.module.locked { background: var(--bg-alt); opacity: .8; }
.module.locked .summary { padding: 16px 18px; display: flex; align-items: center; gap: 14px; font: 600 1rem var(--font-head); color: var(--muted); }
.module.locked .num { width: 30px; height: 30px; border-radius: 8px; background: #c8d0e0; color: #fff; display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; }
.module.locked .lock { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font: 600 .78rem var(--font-body); color: var(--muted); }
.module.locked .lock .icon { width: 16px; height: 16px; }
.cdc-login .status-icon .icon { width: 36px; height: 36px; }
.cdc-dashboard h3 { margin-top: 10px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.dash-kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.dash-kpi span { color: var(--muted); font-size: .9rem; }
.dash-kpi b { display: block; font: 800 2.2rem/1.1 var(--font-head); color: var(--navy); margin-top: 6px; }
.dash-kpi.hl { border-color: var(--orange); background: var(--orange-soft); }
.enrolled-badge { display: inline-flex; gap: 4px; align-items: center; color: var(--ok); }
.enrolled-badge .icon { width: 14px; height: 14px; }
.status-paid { color: var(--ok); } .status-verifying { color: #b77900; } .status-failed, .status-rejected { color: var(--err); }
.feature.text-center p { margin-inline: auto; }
.text-center .section-head, .section-head.center { text-align: center; margin-inline: auto; }
@media (max-width: 920px) { .nav-cta .nav-login { display: inline-flex; } }

/* ---------- Elementor pages (Home, About, FAQs, Contact) ---------- */
.elementor-page main#content { overflow-x: clip; }
.cd-el-section .elementor-heading-title { font-family: var(--font-head); line-height: 1.2; }
.cd-el-section h1.elementor-heading-title { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.cd-el-section h2.elementor-heading-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cd-el-section .elementor-widget-text-editor { font-size: 1.05rem; line-height: 1.65; }
.cd-eyebrow .elementor-heading-title { font: 600 .78rem/1 var(--font-head) !important; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.cd-eyebrow .elementor-heading-title::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--orange); }
.cd-hero-title .elementor-heading-title span { color: var(--orange); }
.cd-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%); }
.cd-hero > .elementor-container { position: relative; z-index: 2; }
.cd-hero-card img { background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); max-width: 420px; width: 100%; }
.cd-hero-points .elementor-icon-list-items { gap: 6px 22px; }
/* buttons */
.cd-btn .elementor-button, .cd-account-btn { border-radius: 10px; font: 600 .95rem/1 var(--font-head); padding: 14px 24px; transition: transform .15s, background .15s; display: inline-flex; align-items: center; gap: 8px; border: 2px solid transparent; }
.cd-btn .elementor-button:hover, .cd-account-btn:hover { transform: translateY(-1px); }
.cd-btn-primary .elementor-button { box-shadow: 0 8px 20px -8px rgba(247,147,30,.7); }
.cd-btn-primary .elementor-button:hover { background-color: var(--orange-2) !important; }
.cd-btn-ghost .elementor-button, a.cd-account-btn.cd-btn-ghost { background: transparent !important; border-color: currentColor; color: var(--navy) !important; }
.cd-hero .cd-btn-ghost .elementor-button, .cd-hero a.cd-account-btn, .cd-cta-band .cd-btn-ghost .elementor-button { color: #fff !important; }
.cd-inline { margin-right: 12px; margin-bottom: 12px !important; }
.cd-account-btn .icon { width: 18px; height: 18px; }
/* marquee + stats */
.cd-marquee-section > .elementor-container { max-width: none !important; }
.cd-marquee-section .elementor-column > .elementor-widget-wrap { padding: 0 !important; }
.cd-stats > .elementor-container { background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.cd-stats .elementor-column + .elementor-column { border-left: 1px solid var(--line); }
.cd-stat-num .elementor-heading-title { font: 800 2.1rem/1 var(--font-head) !important; }
.cd-stats .elementor-widget-text-editor p { margin: 0; }
.cd-bottom > .elementor-widget-wrap { align-content: flex-end; }
/* cards */
.elementor-widget.cd-feature, .elementor-widget.cd-testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.elementor-widget.cd-feature:hover { border-color: var(--orange); transform: translateY(-3px); }
.cd-feature .elementor-icon { background: var(--orange-soft); border-radius: 12px; padding: 13px; font-size: 26px; }
.cd-feature .elementor-icon-box-title, .cd-step .elementor-icon-box-title { color: var(--navy); font-family: var(--font-head); font-size: 1.15rem; margin-top: 4px; }
.cd-feature .elementor-icon-box-description, .cd-step .elementor-icon-box-description { color: var(--muted); font-size: .95rem; }
.cd-step .elementor-icon { background: var(--orange); color: #fff !important; border-radius: 12px; padding: 12px; font-size: 22px; }
.cd-step .elementor-icon svg, .cd-step .elementor-icon i { fill: #fff; color: #fff; }
.cd-testimonial .elementor-testimonial-content::before { content: "★★★★★"; display: block; color: var(--orange); letter-spacing: 2px; margin-bottom: 10px; font-style: normal; }
.cd-testimonial .elementor-testimonial-content { color: var(--ink); font-size: 1rem; }
/* page hero, CTA, FAQ, contact */
.cd-page-hero .cd-crumbs p { margin: 0; font-size: .88rem; color: #c9d4ec; }
.cd-page-hero .cd-crumbs a { color: var(--orange); }
.cd-cta-band .elementor-heading-title { color: #fff; }
.cd-cta-buttons > .elementor-widget-wrap { align-content: center; gap: 12px; justify-content: flex-end; }
.cd-faq .elementor-tab-title { font: 600 1.05rem var(--font-head); padding: 20px 0 !important; border-bottom: 1px solid var(--line); }
.cd-faq .elementor-toggle-item { border: 0 !important; }
.cd-faq .elementor-tab-content { color: var(--muted); border: 0 !important; padding: 0 0 18px !important; }
.cd-rounded img { border-radius: 22px; box-shadow: var(--shadow); }
.cd-contact-list .elementor-icon-list-item { padding: 14px 0 !important; border-bottom: 1px solid var(--line); font-size: 1rem; }
@media (max-width: 767px) {
	.cd-stats > .elementor-container { flex-wrap: wrap; }
	.cd-stats .elementor-column { width: 50% !important; }
	.cd-stats .elementor-column + .elementor-column { border-left: 0; border-top: 0; }
	.cd-stats .elementor-column:nth-child(odd) { border-right: 1px solid var(--line); }
	.cd-stats .elementor-column:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.cd-stats .elementor-widget-wrap { padding: 16px 8px !important; }
	.cd-cta-buttons > .elementor-widget-wrap { justify-content: flex-start; }
}

/* photo backgrounds when Elementor isn't used */
.hero { background-image: linear-gradient(rgba(13,31,69,.9), rgba(13,31,69,.9)), url(assets/images/photos/hero-skyscraper.jpg); background-size: cover; background-position: center; }
.elementor-widget.cd-hero-card { max-width: 420px; margin-inline: auto; }
.course-thumb img { object-position: center 70%; }
.cd-testimonial .elementor-testimonial-content { font-size: 1rem !important; line-height: 1.6 !important; }
.cd-testimonial .elementor-testimonial-name { font-family: var(--font-head); }

/* WhatsApp enrollment */
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 20px -8px rgba(37,211,102,.7); }
.btn-whatsapp:hover { background: #1faa53; color: #fff; }
.wa-steps ol { padding-left: 20px; color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.wa-steps li { margin-bottom: 6px; }

/* ---------- phones: tighter Elementor spacing, contact block ---------- */
.contact-item a, .contact-item span { overflow-wrap: anywhere; }
.cd-contact-note { display: none; }
@media (max-width: 767px) {
  .elementor-section.cd-el-section > .elementor-container { padding-left: 4px; padding-right: 4px; }
  .elementor-section.cd-el-section:not(.cd-page-hero):not(.cd-marquee-section):not(.cd-stats) { padding-top: 48px !important; padding-bottom: 48px !important; }
  .elementor-section.cd-marquee-section { padding-top: 0 !important; padding-bottom: 0 !important; }
  .elementor-section.cd-stats { padding-top: 24px !important; padding-bottom: 8px !important; }
  .cd-el-section .elementor-align-right, .cd-el-section .elementor-align-right .elementor-button-wrapper { text-align: left; }
  .cd-el-section .cd-bottom > .elementor-widget-wrap { align-content: flex-start; }
  .elementor-widget.cd-hero-card { display: none; }
  .elementor-section.cd-page-hero { padding-top: 40px !important; padding-bottom: 40px !important; }
  .cd-el-section h1.elementor-heading-title { font-size: 2rem; }
  .cd-el-section .elementor-widget-text-editor { font-size: 1rem; }
  .cd-el-section .elementor-column + .elementor-column { margin-top: 12px; }
  .elementor-widget-button .elementor-button { white-space: normal; }
}
/* never let one long word or wide block push the page sideways */
.detail-grid > *, .two-col > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.box, .form-card, .course-card { overflow-wrap: anywhere; }
img, video, iframe { max-width: 100%; }
.entry-content table, .box table { display: block; overflow-x: auto; }
@media (max-width: 640px) { .box { padding: 20px; margin-bottom: 18px; } }
/* phones: sticky price + Enroll bar on course pages */
.course-cta-bar { display: none; }
@media (max-width: 640px) {
  .course-cta-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(13,31,69,.4); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .course-cta-bar .ccb-price { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .course-cta-bar .price { font-size: 1.25rem; }
  .course-cta-bar small { color: var(--muted); font-size: .75rem; }
  .course-cta-bar .btn { padding: 12px 20px; flex-shrink: 0; }
  body:has(.course-cta-bar) .mobile-bar { display: none; }
  body:has(.course-cta-bar) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .filters > * { width: 100%; }
  .search { width: 100%; }
  .search input { min-width: 0; flex: 1; }
  .search button { padding: 12px 18px; }
}
