/**
 * Unified inner-page theme — matches index.html (skin-3)
 */
.page-banner {
    position: relative;
    background: url('../images/banner/bnr1.webp') center/cover no-repeat;
    padding: 120px 0 80px;
    text-align: center;
    color: #fff;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.82), rgba(13, 59, 79, 0.75));
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.page-banner p,
.page-banner .breadcrumb {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin: 0;
}

.page-content {
    max-width: 100vw;
    overflow-x: hidden;
}

.content-section {
    padding: 80px 0;
}

.content-section.bg-light {
    background: #f8f9fb;
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head .sub-title {
    color: var(--bs-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
}

.section-head .title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-head p {
    color: #666;
    max-width: 720px;
    margin: 0 auto;
}

/* Course cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.course-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(200, 16, 46, 0.12);
}

.course-card .course-header {
    background: transparent;
    color: inherit;
    padding: 10px 0px;
}

.course-card .course-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #0a2540;
    line-height: 1.3;
}

.course-card .course-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
}

.course-info-item i {
    color: var(--bs-primary);
    margin-top: 3px;
}

.course-description {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin: 12px 0 16px;
    flex: 1;
}

.course-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.course-highlights li {
    font-size: 13px;
    color: #555;
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.course-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bs-primary);
    font-weight: 700;
}

    .course-image {
        width: 100%;
        height: 240px;
        object-fit: cover;
        display: block;
    }

    .course-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 16px 0 12px;
    }

    .course-tag {
        display: inline-flex;
        align-items: center;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(10, 37, 64, 0.08);
        color: #0a2540;
        font-size: 13px;
        font-weight: 600;
    }

    .course-detail-image {
        width: 100%;
        height: 260px;
        object-fit: cover;
        border-radius: 14px;
        margin-bottom: 24px;
    }

    .course-detail-section h4 {
        font-size: 16px;
        margin-bottom: 10px;
        color: #0a2540;
    }

    .course-detail-section {
        margin-top: 18px;
    }

}

.course-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--bs-primary);
}

.btn-enroll,
.btn-view-course {
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-enroll {
    background: var(--bs-primary);
    color: #fff;
}

.btn-enroll:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.btn-view-course {
    background: transparent;
    color: var(--bs-primary);
    border: 2px solid var(--bs-primary);
}

.category-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: #fff;
    color: var(--bs-primary);
    border: 2px solid var(--bs-primary);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--bs-primary);
    color: #fff;
}

/* Enrollment modal */
.enrollment-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 37, 64, 0.55);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.enrollment-modal.active {
    display: flex;
}

.enrollment-modal .modal-content {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.enrollment-modal .modal-header h2 {
    font-size: 22px;
    margin: 0 0 6px;
}

.enrollment-modal .modal-header p {
    color: var(--bs-primary);
    font-weight: 600;
    margin: 0;
}

.enrollment-modal .form-group {
    margin-bottom: 16px;
}

.enrollment-modal label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.enrollment-modal input,
.enrollment-modal select,
.enrollment-modal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.enrollment-modal .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.enrollment-modal .btn-submit {
    flex: 1;
    background: var(--bs-primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.enrollment-modal .btn-cancel {
    flex: 1;
    background: #e9ecef;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 50%;
        font-size: 24px;
        cursor: pointer;
        color: #1d1d1d;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
        z-index: 2;
    }

    .close-modal:hover {
        background: #fff;
        color: #111;
    }

.course-detail-panel {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1050;
}

.course-detail-panel.active {
    display: flex;
}

/* Header CTA button */
.btn-cta-red {
    background: #c8102e !important;
    border-color: #c8102e !important;
    color: #fff !important;
}

.btn-cta-red:hover,
.btn-cta-red:focus {
    background: #a10b24 !important;
    border-color: #a10b24 !important;
    color: #fff !important;
}

.top-bar .dz-topbar-left ul li {
    margin-right: 24px;
}

.top-bar .dz-topbar-left ul li a,
.top-bar .dz-topbar-right ul li a {
    color: inherit;
}

.top-bar .dz-topbar-right .btn-cta-red {
    padding: 10px 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.course-detail-panel .panel-inner {
    background: #fff;
    border-radius: 14px;
    max-width: min(720px, calc(100vw - 32px));
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 32px;
    position: relative;
}

@media (max-width: 768px) {
    .course-detail-panel {
        align-items: flex-start;
        padding: 12px;
    }

    .course-detail-panel .panel-inner {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 50px 0;
    }
    .course-grid {
        grid-template-columns: 1fr;
    }
}

/* Header/nav consistency overrides */
.site-header .main-bar .inner-bar {
    display: flex;
    align-items: center;
}
.site-header .logo-header img {
    height: 52px;
    max-height: 56px;
    width: auto;
    display: block;
}
.header-nav .nav>li>a {
    padding: 20px 12px;
    display: inline-block;
    line-height: 1;
}
.site-header .extra-nav {
    height: 72px;
    align-items: center;
}
