@keyframes heroBgAnimate {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

:root {--brand:        #0b66a0;
    --brand-dark:   #074f80;
    --brand-light:  #e0f0ff;
    --accent:       #f59e0b;
    --accent-dim:   #fef3c7;
    --crimson:      #dc2626;
    --crimson-dim:  #fee2e2;
    --text-head:    #0f172a;
    --text-body:    #334155;
    --text-muted:   #64748b;
    --text-light:   #94a3b8;
    --bg-page:      #f0f4f8;
    --bg-card:      #ffffff;
    --bg-callout:   #f8fafc;
    --border:       #e2e8f0;
    --border-brand: rgba(11,102,160,0.18);
    --radius-sm:    8px;
    --radius-md:    12px;
    --shadow-xs:    0 1px 3px rgba(15,23,42,.06);
    --shadow-sm:    0 4px 12px rgba(11,102,160,.07);
    --shadow-md:    0 8px 24px rgba(11,102,160,.11);
    --shadow-hover: 0 14px 36px rgba(11,102,160,.15);
    --ff-head:      'Poppins', sans-serif;
    --ff-body:      'Gabarito', sans-serif;}
body.premium-design-system {font-family: var(--ff-body);
    color: var(--text-body);
    background-color: var(--bg-page);
    margin: 0;
    padding: 0;
    font-size: 13.5px;
    line-height: 1.3; 
    -webkit-font-smoothing: antialiased;}
@media (min-width: 768px) {body.premium-design-system { font-size: 15px; line-height: 1.55;}
}


.premium-main {
    margin: 0 auto;
    padding: 4px;
    box-sizing: border-box;
}
@media (min-width: 768px) { .premium-main { padding: 4px; } }


/* ── PAGE HEADER – animated indigo gradient, full width ── */
.page-header { width: 100%; padding: 0px 4px;}
@media (min-width: 768px) { .page-header { padding: 0px 4px; } }

.header-banner {
    background: linear-gradient(-45deg, #0f172a, #1e1b4b, #312e81, #0f172a);
    background-size: 400% 400%;
    animation: heroBgAnimate 10s ease infinite;
    padding: 16px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
    overflow: hidden;
    border-bottom: 3px solid #fbbf24;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
/* subtle glow overlay */
.header-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.2) 0%, transparent 70%);
    pointer-events: none;
}
@media (min-width: 768px) { .header-banner { padding: 20px 32px; } }

/* NO max-width — spans full width */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    position: relative;
    z-index: 1;
}

.brand-logo {
    margin: 0;
    font-family: var(--ff-head);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.3px;
}
@media (min-width: 768px) { .brand-logo { font-size: 32px; } }

.brand-link { color: #ffffff !important; text-decoration: none !important; transition: opacity 0.2s; }
.brand-link:hover { opacity: 0.85; }

.brand-tagline {
    margin: 0;
    font-family: var(--ff-head);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.78);
    letter-spacing: 0.3px;
}
@media (min-width: 768px) { .brand-tagline { font-size: 14.5px; } }

.brand-badge {
    margin: 3px 0 0;
    font-family: var(--ff-head);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fbbf24;
    background: rgba(251,191,36,.12);
    padding: 2px 12px;
    border-radius: 50px;
    border: 1px solid rgba(251,191,36,.28);
    display: inline-block;
}
@media (min-width: 768px) { .brand-badge { font-size: 10px; padding: 3px 16px; } }


/* ── HERO – compact, clean card style ── */
.hero-container {
    width: 100%;
    background: #ffffff;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid #312e81;
}
@media (min-width: 768px) { .hero-container { margin-bottom: 18px; border-left-width: 5px; } }

.hero-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
@media (min-width: 768px) { .hero-content { padding: 8px; gap: 4px; } }

/* badge inside hero */
.hero-badge {
    display: inline-block;
    font-family: var(--ff-head);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #312e81;
    background: rgba(49,46,129,.08);
    border: 1px solid rgba(49,46,129,.2);
    border-radius: 50px;
    padding: 3px 12px;
    width: fit-content;
}
@media (min-width: 768px) { .hero-badge { font-size: 11px; padding: 4px 16px; } }

.hero-title {
    font-family: var(--ff-head);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    color: var(--text-head);
    letter-spacing: -0.3px;
}
@media (min-width: 768px) { .hero-title { font-size: 30px; } }

.hero-desc {
    font-family: var(--ff-body);
    font-size: 13.5px;
    line-height: 1.2;
    margin: 0;
    color: var(--text-body);
    text-align: justify;
}
@media (min-width: 768px) { .hero-desc { font-size: 15.5px; line-height: 1.72; } }

.hero-desc a {
    color: var(--brand) !important;
    text-decoration: none !important;
    font-weight: 600;
    border-bottom: 1.5px solid var(--border-brand);
    transition: border-color 0.2s;
}
.hero-desc a:hover { border-bottom-color: var(--brand); }
.content-card {background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    margin-bottom: 8px;
}
@media (min-width: 768px) {.content-card { margin-bottom: 14px;}
.content-card:hover {box-shadow: var(--shadow-hover);
        transform: translateY(-2px);}
}


/* ── CARD TITLE GRADIENT BARS per section ── */
.card-what-is-matka    .card-title { background: linear-gradient(90deg,#0b66a0,#0369a1); color:#fff; border-bottom-color: transparent; }
.card-ecosystem        .card-title { background: linear-gradient(90deg,#7c3aed,#6d28d9); color:#fff; border-bottom-color: transparent; }
.card-market-structure .card-title { background: linear-gradient(90deg,#0891b2,#0e7490); color:#fff; border-bottom-color: transparent; }
.card-result-structure .card-title { background: linear-gradient(90deg,#16a34a,#15803d); color:#fff; border-bottom-color: transparent; }
.card-historical-records .card-title { background: linear-gradient(90deg,#d97706,#b45309); color:#fff; border-bottom-color: transparent; }
.card-learning-center  .card-title { background: linear-gradient(90deg,#dc2626,#b91c1c); color:#fff; border-bottom-color: transparent; }
.card-market-directory .card-title { background: linear-gradient(90deg,#0b66a0,#312e81); color:#fff; border-bottom-color: transparent; }
.card-knowledge-library .card-title { background: linear-gradient(90deg,#7c3aed,#0891b2); color:#fff; border-bottom-color: transparent; }
.card-faq              .card-title { background: linear-gradient(90deg,#0891b2,#0b66a0); color:#fff; border-bottom-color: transparent; }
.card-about            .card-title { background: linear-gradient(90deg,#16a34a,#0891b2); color:#fff; border-bottom-color: transparent; }
.card-info-policy      .card-title { background: linear-gradient(90deg,#d97706,#dc2626); color:#fff; border-bottom-color: transparent; }
.card-title {font-family: var(--ff-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-head);
    margin: 0;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    line-height: 1.25;}
@media (min-width: 768px) {.card-title { font-size: 18px; padding: 14px 22px; gap: 8px;}
}


.card-body {padding: 8px;}
@media (min-width: 768px) {.card-body { padding: 12px;}
}


.card-paragraph {font-family: var(--ff-body);
    font-size: 13px;
    line-height: 1.3;
    color: var(--text-body);
    margin: 0 0 7px;
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
    word-break: break-word;}
.card-paragraph:last-child {margin-bottom: 0;}
@media (min-width: 768px) {.card-paragraph { font-size: 14.5px; line-height: 1.6; margin-bottom: 12px;}
}


.card-intro {font-size: 13px;
    font-weight: 500;
    color: var(--text-head);
    background: var(--bg-callout);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 8px 10px;
    margin-bottom: 8px;
    line-height: 1.35;
    text-align: left;}
@media (min-width: 768px) {.card-intro { font-size: 14.5px; padding: 12px 16px; margin-bottom: 14px;}
}


.inline-market-link {color: var(--brand) !important;
    text-decoration: none !important;
    font-weight: 600;
    border-bottom: 1.5px solid var(--border-brand);
    transition: all 0.2s ease;
    padding-bottom: 1px;}
.inline-market-link:hover {color: var(--brand-dark) !important;
    border-bottom-color: var(--brand-dark);}
.callout-paragraph {background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 1px solid #bfdbfe;
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    margin-top: 7px;
    font-family: var(--ff-body);
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--text-body);}
@media (min-width: 768px) {.callout-paragraph { padding: 12px 16px; font-size: 14px; margin-top: 14px;}
}


.learning-links-wrapper, .library-section {margin: 7px 0;}
@media (min-width: 768px) {.learning-links-wrapper, .library-section { margin: 14px 0;}
}

.learning-links-list, .library-links-list {list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;}
@media (min-width: 768px) {.learning-links-list, .library-links-list { gap: 7px;}
}

.learning-link-item, .library-link-item {background: var(--bg-callout);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    transition: all 0.2s ease;
    position: relative;}
.learning-link-item::before, .library-link-item::before {content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--brand);
    opacity: 0;
    transition: opacity 0.2s;}
.learning-link-item:hover, .library-link-item:hover {background: #ffffff;
    border-color: var(--border-brand);
    box-shadow: var(--shadow-xs);}
.learning-link-item:hover::before, .library-link-item:hover::before {opacity: 1;}
@media (min-width: 768px) {.learning-link-item, .library-link-item { padding: 10px 14px; gap: 3px;}
}

.learning-link-anchor, .library-link-anchor {font-family: var(--ff-head);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand) !important;
    text-decoration: none !important;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;}
.learning-link-anchor::after, .library-link-anchor::after {content: '→';
    font-size: 12px;
    transition: transform 0.2s;}
.learning-link-item:hover .learning-link-anchor::after, .library-link-item:hover .library-link-anchor::after {transform: translateX(3px);}
@media (min-width: 768px) {.learning-link-anchor, .library-link-anchor { font-size: 15px;}
}

.learning-link-desc, .library-link-desc {font-size: 12px;
    color: var(--text-muted);
    font-family: var(--ff-body);
    line-height: 1.45;}
@media (min-width: 768px) {.learning-link-desc, .library-link-desc { font-size: 13.5px;}
}


.library-section-title {font-family: var(--ff-head);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-head);
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 5px;}
.library-section-title::before {content: '';
    display: inline-block;
    width: 10px; height: 3px;
    background: var(--brand);
    border-radius: 2px;
    flex-shrink: 0;}
@media (min-width: 768px) {.library-section-title { font-size: 13px; margin-bottom: 10px;}
}


.directory-grid-wrapper {margin: 7px 0;}
@media (min-width: 768px) {.directory-grid-wrapper { margin: 14px 0;}
}

.directory-grid {display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;}
@media (min-width: 640px) {.directory-grid { grid-template-columns: repeat(3, 1fr);}
}
@media (min-width: 768px) {.directory-grid { gap: 12px;}
}

.directory-card {background: var(--bg-callout);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.22s ease;
    border-left: 3px solid var(--brand);}
.directory-card:hover {background: var(--brand-light);
    border-left-color: var(--brand-dark);
    box-shadow: var(--shadow-xs);
    transform: translateY(-1px);}
.directory-link-anchor {font-family: var(--ff-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--brand) !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    line-height: 1.3;}
.directory-link-anchor::after {content: '→';
    font-size: 11px;
    transition: transform 0.2s;
    flex-shrink: 0;}
.directory-card:hover .directory-link-anchor {color: var(--brand-dark) !important;}
.directory-card:hover .directory-link-anchor::after {transform: translateX(3px);}
@media (min-width: 768px) {.directory-link-anchor { font-size: 14.5px;}
}

.directory-link-desc {font-size: 11.5px;
    color: var(--text-muted);
    font-family: var(--ff-body);
    line-height: 1.4;}
@media (min-width: 768px) {.directory-link-desc { font-size: 13px;}
}


.faq-accordion-item {border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;}
.faq-accordion-item:hover {border-color: var(--border-brand);}
.faq-accordion-item.active {border-color: var(--brand);
    box-shadow: 0 4px 16px rgba(11,102,160,0.08);}
@media (min-width: 768px) {.faq-accordion-item { margin-bottom: 7px;}
}

.faq-question-trigger {width: 100%;
    background: none;
    border: none;
    padding: 9px 12px;
    text-align: left;
    font-family: var(--ff-head);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-head);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    outline: none;
    margin: 0;
    line-height: 1.3;}
.faq-question-trigger:hover {background: var(--bg-callout);}
.faq-question-trigger:focus-visible {outline: 2px solid var(--brand);
    outline-offset: -2px;}
.faq-question-trigger::after {content: '+';
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
    transition: transform 0.25s ease, color 0.2s;
    flex-shrink: 0;
    line-height: 1;}
.faq-accordion-item.active .faq-question-trigger::after {content: '−';
    color: var(--brand);
    transform: rotate(0deg);}
@media (min-width: 768px) {.faq-question-trigger { padding: 13px 18px; font-size: 15px; line-height: 1.4;}
}

.faq-answer-panel {max-height: 0;
    overflow: hidden;
    padding: 0 12px;
    opacity: 0;
    font-family: var(--ff-body);
    font-size: 13px;
    line-height: 1.3;
    color: var(--text-body);
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease, opacity 0.25s ease;}
.faq-accordion-item.active .faq-answer-panel {max-height: 400px;
    padding: 0 12px 10px;
    opacity: 1;}
@media (min-width: 768px) {.faq-answer-panel { padding: 0 18px; font-size: 14.5px; line-height: 1.55;}
.faq-accordion-item.active .faq-answer-panel {padding: 0 18px 16px;}
}


.editorial-review-block {background: linear-gradient(135deg, #f0f9ff, #f0fdf4);
    border: 1px solid #bae6fd;
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;}
@media (min-width: 768px) {.editorial-review-block { padding: 14px 18px; gap: 5px;}
}

.editorial-text {font-family: var(--ff-head);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-head);
    margin: 0 !important;
    line-height: 1.4;}
@media (min-width: 768px) {.editorial-text { font-size: 14.5px;}
}

.editorial-date {font-size: 11px;
    color: var(--text-muted);
    font-family: var(--ff-body);
    font-weight: 500;
    margin: 0 !important;}
@media (min-width: 768px) {.editorial-date { font-size: 12.5px;}
}


footer.footer {background: linear-gradient(180deg, #0b0f19 0%, #030712 100%) !important;
    border-top: 2px solid rgba(11,102,160,0.4) !important;
    color: #94a3b8 !important;
    padding: 36px 20px 24px !important;}
@media (min-width: 768px) {footer.footer { padding: 52px 40px 30px !important;}
}

footer .footer-container {display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    max-width: 1100px;
    margin: 0 auto !important;}
@media (min-width: 768px) {footer .footer-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 40px !important;}
}

footer .footer-col-content {flex: 1 1 300px !important;}
footer .footer-col-content h3 {font-family: var(--ff-head) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 10px !important;}
@media (min-width: 768px) {footer .footer-col-content h3 { font-size: 24px !important;}
}

footer .footer-col-content p {font-family: var(--ff-body) !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    color: #94a3b8 !important;
    margin: 0 !important;}
@media (min-width: 768px) {footer .footer-col-content p { font-size: 14px !important;}
}

footer .footer-col-head {flex: 2 1 460px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;}
@media (min-width: 640px) {footer .footer-col-head {
        flex-direction: row !important;
        gap: 20px !important;
        justify-content: space-between !important;}
}

footer .footer-col {flex: 1 !important;}
footer .footer-col h3 {font-family: var(--ff-head) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #38bdf8 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 0 14px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;}
footer .footer-col ul {list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;}
footer .footer-col ul li a {font-family: var(--ff-body) !important;
    font-size: 13.5px !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-block;}
footer .footer-col ul li a:hover {color: #ffffff !important;
    padding-left: 4px !important;}
footer .footer-divider {height: 1px !important;
    background: rgba(255,255,255,0.06) !important;
    margin: 24px 0 16px !important;
    max-width: 1100px;
    margin-left: auto !important;
    margin-right: auto !important;}
footer .footer-bottom {max-width: 1100px;
    margin: 0 auto !important;
    text-align: center !important;}
footer .footer-desc, footer .footer-bottom p {font-family: var(--ff-body) !important;
    font-size: 12px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 0 !important;}
footer .footer-desc a, footer .footer-bottom p a {color: #cbd5e1 !important;
    text-decoration: none !important;}
footer .footer-desc a:hover, footer .footer-bottom p a:hover {color: #ffffff !important;
    text-decoration: underline !important;}
@media (prefers-reduced-motion: reduce) {*, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;}
}