/* Lightweight chrome for /topics — avoids blocking on full style-starter.css */
/* English: Baskervville 600 · Arabic: Noto Naskh Arabic */
@import url("https://fonts.googleapis.com/css2?family=Baskervville:wght@400;600&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap");

:root {
    --primary-color: #ed1c24;
    --bg-color: #fff;
    --heading-color: #242952;
    --font-color: #333;
    --e4h-index-font: "Baskervville", "Noto Naskh Arabic", serif;
}

/* Keep Inter available for non-index chrome if needed */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

body,
h1, h2, h3, h4, h5, h6,
p, li, a, label,
button, input, textarea, select {
    font-family: "Inter", "Noto Naskh Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* Index (desktop + mobile): Baskervville for Latin, Noto Naskh Arabic for Arabic */
body.index-page,
body.index-page h1, body.index-page h2, body.index-page h3,
body.index-page h4, body.index-page h5, body.index-page h6,
body.index-page p, body.index-page li, body.index-page a, body.index-page label,
body.index-page button, body.index-page input, body.index-page textarea, body.index-page select,
body.index-page .topic-name,
body.index-page .thumb-title,
body.index-page .thumb-title-index,
body.index-page .thumbs-panel-title,
body.index-page .index-topics-head-text,
body.index-page .index-topics-head-text strong,
body.index-page .tab-label,
body.mobile-cat-page .topic-name,
body.mobile-cat-page .thumbs-panel-title,
body.mobile-playlist-page .thumbs-panel-title,
.mobile-index-list .topic-name,
.thumb-title-index,
.thumbs-panel-title {
    font-family: var(--e4h-index-font) !important;
    font-weight: 600;
}

/* Numbers keep prior Inter stack (sequence + counts) */
body.index-page .topic-num,
body.index-page .topic-meta,
body.index-page .thumbs-panel-count,
body.index-page .tab-vid-count,
body.index-page .tab-hours-count,
body.index-page .index-topics-head-text small,
body.index-page [data-index-summary],
body.mobile-cat-page .topic-num,
body.mobile-cat-page .topic-meta,
body.mobile-cat-page .thumbs-panel-count,
.mobile-index-list .topic-num,
.mobile-index-list .topic-meta {
    font-family: "E4H Inter", "Inter", Roboto, Arial, sans-serif !important;
    font-weight: 700;
    font-variation-settings: "wght" 700;
}

body {
    margin: 0;
    color: var(--font-color);
    background: #242952;
}

a { text-decoration: none; }

.btn-style {
    padding: 6px 20px;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    outline: none;
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    transition: all 0.25s ease;
    display: inline-block;
    line-height: 1.4;
    border-radius: 4px;
}

.btn-style:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
    text-decoration: none;
}

#site-header.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1050;
    background: #fff;
}

#site-header .navbar {
    background: #fff;
}

#site-header .navbar-brand {
    margin: 0;
    padding: 0;
}

/* Unify mobile burger dropdown with index page 1 (style-starter 18px). */
@media (max-width: 991.98px) {
    #site-header #navbarResponsive .nav-link,
    #navbarResponsive .nav-link {
        font-size: 18px !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
    }

    #site-header #navbarResponsive .btn-style,
    #site-header #navbarResponsive .btn-sign-in,
    #navbarResponsive .btn-style,
    #navbarResponsive .btn-sign-in {
        font-size: 16px !important;
    }

    #site-header #navbarResponsive .btn-style.btn-brand-blue,
    #navbarResponsive .btn-style.btn-brand-blue,
    #navbarResponsive .btn-sign-in.btn-brand-blue {
        background: #193584 !important;
        border-color: #193584 !important;
        color: #fff !important;
    }
}

header.nav-fixed {
    background-color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

body.noscroll {
    overflow: hidden;
    height: 100vh;
}

.radius-image {
    border-radius: 8px;
}

/* Index brand blue (#193584 = Change Password) */
body.index-page .index-topics-head-text strong,
body.index-page .index-topics-head-text small,
body.index-page [data-index-summary],
body.index-page .topic-name,
body.index-page .topic-meta,
body.index-page .topic-meta i,
body.index-page .thumbs-panel-title,
body.index-page .thumbs-panel-count,
body.index-page .thumb-title,
body.index-page .thumb-title-index,
body.index-page .playlist-panel-title,
body.index-page .playlist-panel-title-text,
body.mobile-cat-page .thumbs-panel-title,
body.mobile-cat-page .thumbs-panel-count,
body.mobile-cat-page .thumb-title,
body.mobile-cat-page .text_hide,
body.mobile-playlist-page .playlist-panel-title,
body.mobile-playlist-page .playlist-panel-title-text,
body.mobile-playlist-page .thumb-title,
body.mobile-playlist-page .text_hide {
    color: #193584 !important;
}

body.index-page .topic-num {
    background: #193584 !important;
    color: #fff !important;
}

@media (max-width: 991.98px) {
    .mobile-index-list .topic-meta,
    .mobile-index-list .topic-meta i {
        font-size: 9px !important;
    }
    .mobile-index-head .index-topics-head-text small,
    .mobile-index-head [data-index-summary],
    .mobile-index-head [data-index-summary] i {
        font-size: 10px !important;
    }
    .mobile-index-list .topic-name,
    body.index-page .mobile-index-list .topic-name {
        font-size: 18px !important;
        font-weight: 700 !important;
        font-variation-settings: "wght" 700;
    }
}
