/* ============================================================
   course_details.php — page styles
   Moved out of the page on 14 Aug 2026.
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1f2937;
    background-color: var(--gx-white, #ffffff);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--gx-transition, 0.25s ease);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1280px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ==============================
   BUTTONS & BADGES
   ============================== */

.rbt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--gx-r, 12px);
    transition: var(--gx-transition, 0.25s ease);
    cursor: pointer;
    border: none;
}

.btn-gradient {
    background: linear-gradient(135deg, #5e72e4 0%, #825ee4 100%);
    color: white;
    box-shadow: 0 6px 14px rgba(94, 114, 228, 0.25);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(94, 114, 228, 0.35);
    color: white;
}

.btn-border {
    background: transparent;
    border: 2px solid #5e72e4;
    color: #5e72e4;
}

.btn-border:hover {
    background: #5e72e4;
    color: white;
}

.rbt-badge-2,
.rbt-badge-4,
.rbt-badge-5 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4ff;
    padding: 5px 12px;
    border-radius: var(--gx-r-xl, 999px);
    font-size: 13px;
    font-weight: 500;
}

.rbt-badge-2 {
    background: #e8eaff;
    color: var(--gx-indigo, #4f46e5);
}

.rbt-badge-4 {
    background: var(--gx-surface, #f8fafc);
    color: #334155;
}

.rbt-badge-5 {
    background: var(--gx-surface, #f8fafc);
    color: var(--gx-ink-soft, #475569);
    font-size: 13px;
}

.best-seller-badge .image img {
    width: 18px;
    vertical-align: middle;
}

/* ==============================
   HEADER — ensure it's above everything
   ============================== */

.rbt-header {
    background: var(--gx-white, #ffffff);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1050 !important;   /* above Bootstrap's sticky-top (1020) */
}

.logo img {
    max-height: 48px;
}
.course-sidebar {
    position: sticky;
    top: 100px;              /* header ke neeche */
    z-index: 90;             /* navbar 1000 se neeche */
}
/* ==============================
   PAGE BANNER
   ============================== */

.rbt-page-banner-wrapper {
    position: relative;
    background: linear-gradient(105deg, rgba(249, 250, 255, 0.92) 0%, rgba(243, 246, 255, 0.92) 100%);
    padding: 48px 0 32px;
    overflow: hidden;
}

.rbt-page-banner-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1600&h=500&fit=crop');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.15;
    z-index: 0;
}

.rbt-banner-content {
    position: relative;
    z-index: 2;
}

.title.theme-gradient {
    background: linear-gradient(135deg, var(--gx-ink-soft, #1e293b) 0%, #3b2e5e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.rbt-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--gx-text, #334155);
}

.rbt-meta li i {
    margin-right: 8px;
    color: #5e72e4;
}

/* ==============================
   SIDEBAR — force z-index below header
   ============================== */

.course-sidebar {
    background: white;
    border-radius: 28px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
    padding: 28px 24px;
    border: 1px solid var(--gx-surface-tint, #e6eaf3);
    position: sticky;
    top: 100px;
    /* default z-index will be overridden below */
}

/* Override Bootstrap's .sticky-top z-index (1020) */
.course-sidebar.sticky-top {
    z-index: 80 !important;   /* below header (1050) and below navbar */
}

.current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--gx-indigo, #4f46e5);
}

.buy-now-btn .rbt-btn {
    width: 100%;
    justify-content: center;
}

.includes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.includes-card {
    background: var(--gx-bg, #f8fafc);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    transition: var(--gx-transition-fast, 0.15s ease);
    border: 1px solid var(--gx-surface-tint, #e6eaf3);
}

.includes-card i {
    font-size: 22px;
    color: #5e72e4;
    margin-bottom: 8px;
    display: block;
}

.includes-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gx-text, #334155);
    display: block;
}

.includes-value {
    font-weight: 700;
    font-size: 16px;
    color: var(--gx-ink, #0f172a);
    display: block;
    margin-top: 4px;
}

.section-title-widget h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
    border-left: 4px solid #5e72e4;
    padding-left: 14px;
}

/* ==============================
   TABS NAVIGATION
   ============================== */

.rbt-inner-onepage-navigation {
    background: white;
    border-radius: 60px;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--gx-surface-tint, #e6eaf3);
}

.onepagenav .mainmenu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.onepagenav .mainmenu li a {
    font-weight: 600;
    color: #4b5563;
    padding: 8px 16px;
    border-radius: var(--gx-r-pill, 999px);
    transition: 0.2s;
}

.onepagenav .mainmenu li.current a,
.onepagenav .mainmenu li a:hover {
    background: var(--gx-surface-tint, #e6eaf3);
    color: var(--gx-indigo, #4f46e5);
}

/* ==============================
   CONTENT BOXES
   ============================== */

.rbt-shadow-box {
    background: var(--gx-white, #ffffff);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
}

.section-title h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gx-ink, #0f172a);
    border-left: 5px solid #5e72e4;
    padding-left: 20px;
}

/* ==============================
   SYLLABUS BULLET LIST (legacy)
   ============================== */

.syllabus-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.syllabus-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f2f8;
}

.syllabus-item i {
    color: #5e72e4;
    font-size: 18px;
    width: 28px;
    text-align: center;
}

.syllabus-item span {
    font-size: var(--gx-fs-base, 16px);
    color: var(--gx-ink-soft, #475569);
    font-weight: 500;
}

/* ==============================
   SHOW MORE / SHOW LESS
   ============================== */

.has-show-more-inner-content .short-content {
    display: block;
}

.rbt-show-more-btn {
    margin-top: 20px;
    color: var(--gx-indigo, #4f46e5);
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.extra-content {
    display: none;
}

/* ==============================
   MODAL
   ============================== */

.modal-content {
    border-radius: 28px;
    border: none;
}

/* ==============================
   SYLLABUS — CHAPTERS & TOPICS
   ============================== */

.gx-syl-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.gx-syl-stat {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #f4f6fb;
    border: 1px solid #e6eaf3;
    font-size: 13px;
    color: #475569;
}

.gx-syl-stat i {
    color: #4f46e5;
    font-size: 13px;
}

.gx-syl-stat strong {
    font-weight: 800;
    color: #0f172a;
}

.gx-syl-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 18px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 13px;
    line-height: 1.55;
}

.gx-syl-notice i {
    margin-top: 2px;
}

.gx-syl-notice a {
    color: #b45309;
    font-weight: 700;
}

.gx-syl-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gx-syl-ch {
    border: 1px solid #e6eaf3;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.gx-syl-ch > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    list-style: none;
}

.gx-syl-ch > summary::-webkit-details-marker {
    display: none;
}

.gx-syl-ch > summary::marker {
    content: '';
}

.gx-syl-ch > summary:hover {
    background: #f8fafc;
}

.gx-syl-ch__num {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gx-syl-ch__title {
    flex: 1;
    font-size: 14.5px;
}

.gx-syl-ch__meta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.gx-syl-ch__meta em {
    font-style: normal;
}

.gx-syl-ch__meta i {
    color: #cbd5e1;
}

.gx-syl-ch > summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.gx-syl-ch[open] > summary::after {
    transform: rotate(180deg);
}

.gx-syl-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 14px;
}

.gx-syl-files--inline {
    padding: 0;
}

.gx-syl-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}

.gx-syl-file--pdf {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.gx-syl-file--pdf:hover {
    background: #fee2e2;
}

.gx-syl-file--vid {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.gx-syl-file--vid:hover {
    background: #e0e7ff;
}

.gx-syl-file--lock {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.gx-syl-topics {
    list-style: none;
    margin: 0;
    padding: 0 16px 14px;
    border-top: 1px dashed #eef2f8;
}

.gx-syl-topics li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 0;
    border-bottom: 1px solid #f4f6fb;
}

.gx-syl-topics li:last-child {
    border-bottom: none;
}

.gx-syl-topic__title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: #334155;
}

.gx-syl-topic__title i {
    font-size: 5px;
    color: #c7d2fe;
}

/* ==============================
   RESPONSIVE TWEAKS
   ============================== */

@media (max-width: 992px) {
    .course-sidebar {
        margin-top: 40px;
        position: relative;
        top: 0;
        /* On mobile we don't need sticky, so remove z-index conflict */
        z-index: auto !important;
    }

    .title.theme-gradient {
        font-size: 1.9rem;
    }

    .rbt-shadow-box {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .includes-grid {
        grid-template-columns: 1fr;
    }

    .rbt-shadow-box {
        padding: 20px;
    }

    .gx-syl-ch__meta em {
        display: none;
    }

    .gx-syl-topics li {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==============================
   UTILITY HELPERS
   ============================== */

.pt--60 {
    padding-top: 60px;
}

.mt--30 {
    margin-top: 30px;
}

.mt--15 {
    margin-top: 15px;
}

.mb--15 {
    margin-bottom: 15px;
}

/* Keep this for fallback, but we override .sticky-top above */
.sticky-top {
    position: sticky;
    top: 100px;
}