/* ============================================================
   DIGITAL STARTUP INDIA — Design System
   Palette: Ink Navy #0F1B3D · Saffron #FF7A1A · Emerald #0E9F6E
            Paper #F6F7FB · Gold #F6B93B
   Type:    Sora (display) · Plus Jakarta Sans (body)
   ============================================================ */
:root {
    --navy: #0F1B3D;
    --navy-2: #16265C;
    --saffron: #FF7A1A;
    --saffron-soft: #FFF1E6;
    --emerald: #0E9F6E;
    --emerald-soft: #E6F7F0;
    --gold: #F6B93B;
    --paper: #F6F7FB;
    --ink: #1B2136;
    --muted: #667085;
    --line: #E7E9F2;
    --radius: 1.25rem;
    --shadow: 0 12px 40px rgba(15, 27, 61, .08);
    --shadow-lg: 0 24px 64px rgba(15, 27, 61, .14);
}

body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: #fff; }
h1, h2, h3, h4, h5, .display-font { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--navy); }
a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: #fff; padding: .45rem 0; }
.topbar a { color: rgba(255,255,255,.8); }
.topbar a:hover { color: var(--gold); }
.main-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: .8rem 0; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px;
    background: linear-gradient(135deg, var(--saffron), #ff9d52); color: #fff; font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(255,122,26,.35); }
.brand-text { font-family: 'Sora'; font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.brand-text em { font-style: normal; color: var(--saffron); }
.main-nav .nav-link { font-weight: 600; color: var(--ink); border-radius: 999px; padding: .5rem 1rem; }
.main-nav .nav-link:hover { background: var(--saffron-soft); color: var(--saffron); }
.nav-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; margin-right: .35rem; }

.btn-saffron { background: linear-gradient(135deg, var(--saffron), #ff9d52); color: #fff; font-weight: 700; border: 0;
    box-shadow: 0 8px 20px rgba(255,122,26,.3); }
.btn-saffron:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255,122,26,.4); }
.btn-navy { background: var(--navy); color: #fff; font-weight: 700; border: 0; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); font-weight: 600; }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

.flash-alert { border-radius: 0; text-align: center; }

/* ---------- Signature: tricolor ribbon ---------- */
.tricolor-ribbon { height: 5px; background: linear-gradient(90deg, var(--saffron) 0 33%, #fff 33% 66%, var(--emerald) 66% 100%); }

/* ---------- Hero (matrilab-style: text + CTA left, layered imagery right) ---------- */
.hero { background: radial-gradient(1200px 600px at 85% -10%, #22346f 0%, var(--navy) 55%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="1.5" cy="1.5" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>'); }
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    padding: .4rem 1rem; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.12; letter-spacing: -.02em; }
.hero h1 .hl { color: var(--saffron); position: relative; }
.hero p.lead { color: rgba(255,255,255,.75); max-width: 540px; }
.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero-stats .num { font-family: 'Sora'; font-weight: 800; font-size: 1.6rem; color: var(--gold); }
.hero-stats .lbl { color: rgba(255,255,255,.65); font-size: .85rem; }
.hero-imgs { position: relative; min-height: 460px; }
.hero-imgs img { border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow-lg); position: absolute; border: 4px solid rgba(255,255,255,.12); }
.hero-imgs .im1 { width: 62%; height: 330px; top: 0; right: 0; }
.hero-imgs .im2 { width: 46%; height: 250px; bottom: 0; left: 0; z-index: 2; }
.hero-float { position: absolute; z-index: 3; background: #fff; color: var(--ink); border-radius: 1rem; padding: .7rem 1rem;
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .85rem; }
.hero-float i { font-size: 1.3rem; }
.hf1 { top: 18px; left: 6%; animation: floaty 5s ease-in-out infinite; }
.hf2 { bottom: 90px; right: 4%; animation: floaty 6s ease-in-out 1s infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2 { color: #fff; }
.sec-eyebrow { color: var(--saffron); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.sec-title { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; }

/* ---------- Cards ---------- */
.card-x { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .25s; overflow: hidden; }
.card-x:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--saffron-soft); color: var(--saffron);
    font-weight: 700; font-size: .75rem; padding: .3rem .8rem; border-radius: 999px; }
.chip-green { background: var(--emerald-soft); color: var(--emerald); }
.chip-navy { background: #EDF0FA; color: var(--navy); }

/* Category tiles */
.cat-tile { display: flex; flex-direction: column; gap: .8rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); transition: .25s; height: 100%; color: var(--ink); }
.cat-tile:hover { border-color: var(--saffron); box-shadow: var(--shadow); transform: translateY(-4px); }
.cat-tile .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem;
    background: var(--saffron-soft); color: var(--saffron); }
.cat-tile:hover .ic { background: var(--saffron); color: #fff; }

/* Business card */
.biz-card .cover { height: 130px; object-fit: cover; width: 100%; }
.biz-card .logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 4px solid #fff; margin-top: -32px; box-shadow: var(--shadow); }
.rating-badge { background: var(--emerald); color: #fff; font-weight: 700; border-radius: .6rem; padding: .15rem .5rem; font-size: .8rem; }

/* Member card (matrilab members style) */
.member-card { text-align: center; padding: 1.8rem 1.2rem; position: relative; }
.member-card .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid var(--saffron-soft); }
.member-card:hover .avatar { border-color: var(--saffron); }
.verify-tick { color: var(--emerald); }
.type-tag { position: absolute; top: 14px; left: 14px; }

/* Video story cards */
.video-card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.video-card img { width: 100%; height: 300px; object-fit: cover; transition: .4s; }
.video-card:hover img { transform: scale(1.06); }
.video-card .veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(15,27,61,.9)); }
.video-card .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px;
    background: rgba(255,122,26,.95); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem;
    box-shadow: 0 0 0 10px rgba(255,122,26,.25); }
.video-card .meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.1rem; color: #fff; }
.video-card .meta small { color: rgba(255,255,255,.7); }

/* Testimonial (matrilab style: big moving image + quote) */
.testi-wrap { background: linear-gradient(120deg, var(--navy), var(--navy-2)); border-radius: 2rem; overflow: hidden; }
.testi-big-img { height: 100%; min-height: 420px; object-fit: cover; width: 100%; }
.testi-quote { padding: 3rem; color: #fff; }
.testi-quote .bi-quote { font-size: 3.4rem; color: var(--saffron); }
.testi-quote p { font-size: 1.25rem; line-height: 1.7; color: rgba(255,255,255,.9); }
.testi-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.carousel-indicators-x button { width: 34px; height: 5px; border-radius: 3px; border: 0; background: rgba(255,255,255,.3); }
.carousel-indicators-x button.active { background: var(--saffron); }

/* Event card */
.event-card .date-flag { position: absolute; top: 14px; left: 14px; background: #fff; border-radius: .9rem; text-align: center;
    padding: .4rem .8rem; box-shadow: var(--shadow); }
.event-card .date-flag .d { font-family: 'Sora'; font-weight: 800; font-size: 1.2rem; color: var(--saffron); line-height: 1; }
.event-card .date-flag .m { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.event-card img.banner { height: 190px; width: 100%; object-fit: cover; }
.seat-bar { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.seat-bar > div { height: 100%; background: linear-gradient(90deg, var(--saffron), var(--gold)); }

/* Course card */
.course-card img { height: 170px; width: 100%; object-fit: cover; }
.price-now { font-family: 'Sora'; font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.price-mrp { color: var(--muted); text-decoration: line-through; font-size: .85rem; }

/* Blog */
.blog-card img { height: 200px; width: 100%; object-fit: cover; }
.blog-featured { border-radius: var(--radius); overflow: hidden; position: relative; display: block; height: 100%; min-height: 300px; }
.blog-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.blog-featured:hover img { transform: scale(1.05); }
.blog-featured .ov { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(15,27,61,.95)); }
.blog-featured .tx { position: absolute; bottom: 0; padding: 1.4rem; color: #fff; }
.blog-featured .tx h3, .blog-featured .tx h5 { color: #fff; }

/* Magazine (thebusinesstycoons style: dark shelf of covers) */
.mag-shelf { background: #10131F; }
.mag-cover { border-radius: .8rem; overflow: hidden; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.5); transition: .3s; display: block; }
.mag-cover:hover { transform: translateY(-10px) rotate(-1deg); }
.mag-cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.mag-cover .rib { position: absolute; top: 14px; left: -34px; transform: rotate(-45deg); background: var(--saffron); color: #fff;
    font-size: .7rem; font-weight: 800; padding: .25rem 2.4rem; letter-spacing: .05em; }

/* Detail pages */
.detail-hero { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; padding: 3.5rem 0; }
.detail-hero h1 { color: #fff; }
.breadcrumb-x a { color: rgba(255,255,255,.65); }
.breadcrumb-x .active { color: var(--gold); }
.info-box { background: var(--paper); border-radius: 1rem; padding: 1rem 1.2rem; }
.info-box .lbl { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.info-box .val { font-weight: 700; color: var(--navy); }
.req-box { border: 2px dashed var(--saffron); background: var(--saffron-soft); border-radius: var(--radius); }

/* Ecosystem map */
.eco-col { background: #fff; border-radius: var(--radius); border-top: 5px solid var(--saffron); box-shadow: var(--shadow); }
.eco-col:nth-child(2n) { border-top-color: var(--emerald); }
.eco-col:nth-child(3n) { border-top-color: var(--gold); }
.eco-mini { display: flex; gap: .7rem; align-items: center; padding: .6rem; border-radius: .8rem; }
.eco-mini:hover { background: var(--paper); }
.eco-mini img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

/* Auth */
.auth-wrap { min-height: 78vh; display: grid; place-items: center; background: var(--paper); padding: 3rem 1rem; }
.auth-card { max-width: 520px; width: 100%; background: #fff; border-radius: 1.6rem; box-shadow: var(--shadow-lg); padding: 2.4rem; }

/* Forms */
.form-control, .form-select { border-radius: .85rem; padding: .7rem 1rem; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--saffron); box-shadow: 0 0 0 .2rem rgba(255,122,26,.15); }
.form-label { font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); }
.footer-head { color: var(--gold); font-family: 'Sora'; font-size: .95rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: rgba(255,255,255,.65); display: block; padding: .28rem 0; }
.footer-links a:hover { color: #fff; padding-left: .3rem; }
.social-dot { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.social-dot:hover { background: var(--saffron); color: #fff; }
.newsletter .form-control { border-radius: 999px 0 0 999px; border: 0; }
.newsletter .btn { border-radius: 0 999px 999px 0; }

/* ---------- Dashboards (admin + user) ---------- */
.dash-body { background: var(--paper); min-height: 100vh; font-family: 'Plus Jakarta Sans', sans-serif; }
.dash-side { background: var(--navy); min-height: 100vh; position: sticky; top: 0; }
.dash-side .nav-link { color: rgba(255,255,255,.7); border-radius: .8rem; font-weight: 600; padding: .65rem 1rem; display: flex; gap: .7rem; align-items: center; }
.dash-side .nav-link:hover, .dash-side .nav-link.active { background: rgba(255,122,26,.18); color: #fff; }
.dash-side .nav-link.active { border-left: 3px solid var(--saffron); }
.stat-card { background: #fff; border-radius: 1.2rem; padding: 1.4rem; box-shadow: var(--shadow); display: flex; gap: 1rem; align-items: center; }
.stat-card .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; background: var(--saffron-soft); color: var(--saffron); }
.stat-card .n { font-family: 'Sora'; font-weight: 800; font-size: 1.5rem; color: var(--navy); }
.table-card { background: #fff; border-radius: 1.2rem; box-shadow: var(--shadow); overflow: hidden; }
.table-card .table { margin: 0; }
.table-card thead { background: var(--paper); }
.table-card th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--saffron), #ff9d52); border-radius: 2rem; color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: "\F52B"; font-family: "bootstrap-icons"; position: absolute; right: -20px; bottom: -40px; font-size: 12rem; opacity: .15; }
.cta-band h2 { color: #fff; }

/* utility */
.hover-lift { transition: .25s; } .hover-lift:hover { transform: translateY(-4px); }
.text-saffron { color: var(--saffron) !important; }
.text-emerald { color: var(--emerald) !important; }
.bg-soft { background: var(--paper); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 991px) {
    .hero-imgs { min-height: 380px; margin-top: 2rem; }
    .testi-quote { padding: 1.8rem; }
    .section { padding: 3rem 0; }
}
