/* =========================================================
   LEARNOVA ACADEMY
   COURSE DETAILS PAGE
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Cairo", sans-serif;
    color: #24345f;
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(111, 92, 231, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(75, 164, 255, 0.12),
            transparent 30%
        ),
        #f7f9ff;
}

a {
    text-decoration: none;
}

button,
input,
select {
    font-family: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.course-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(93, 80, 180, 0.10);

    box-shadow:
        0 8px 30px rgba(36, 52, 95, 0.06);
}

.header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   BRAND
========================================================= */

.course-brand {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #24345f;
}

.course-brand img {
    width: 48px;
    height: 48px;

    object-fit: contain;
}

.course-brand div {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
}

.course-brand strong {
    font-size: 21px;
    font-weight: 800;

    color: #4f46b8;
}

.course-brand span {
    font-size: 11px;
    font-weight: 600;

    color: #7c86a8;
    letter-spacing: 1px;
}


/* =========================================================
   NAV
========================================================= */

.course-nav {
    display: flex;
    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}

.course-nav a {
    display: flex;
    align-items: center;

    gap: 7px;

    padding: 10px 14px;

    border-radius: 12px;

    color: #5f6b8d;

    font-size: 14px;
    font-weight: 700;

    transition: 0.25s ease;
}

.course-nav a:hover {
    color: #5147c7;
    background: #f1efff;
}

.course-nav a.active {
    color: #5147c7;
    background: #eeecff;
}

.course-nav i {
    font-size: 13px;
}


/* =========================================================
   PAGE
========================================================= */

.course-page-section {
    padding: 55px 0 80px;
}


/* =========================================================
   COURSE HERO
========================================================= */

.course-hero {
    display: grid;

    grid-template-columns:
        minmax(320px, 0.9fr)
        minmax(0, 1.1fr);

    gap: 40px;

    align-items: stretch;

    margin-bottom: 35px;
}


/* =========================================================
   COURSE IMAGE
========================================================= */

.course-image-wrapper {
    position: relative;

    min-height: 370px;

    border-radius: 30px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #6258d8,
            #6d9cf5
        );

    box-shadow:
        0 25px 60px rgba(75, 69, 180, 0.22);
}

.course-image-glow {
    position: absolute;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.16);

    top: -70px;
    right: -50px;

    filter: blur(3px);
}

.course-main-image {
    position: relative;

    width: 100%;
    height: 100%;

    min-height: 370px;

    display: block;

    object-fit: cover;

    z-index: 2;
}

.course-image-badge {
    position: absolute;

    right: 22px;
    bottom: 22px;

    z-index: 5;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 10px 16px;

    border-radius: 14px;

    color: white;

    background: rgba(24, 31, 72, 0.72);

    backdrop-filter: blur(12px);

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.course-hero-content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 15px 0;
}

.course-small-label {
    width: fit-content;

    padding: 7px 13px;

    border-radius: 10px;

    color: #5c52c9;

    background: #eeecff;

    font-size: 12px;
    font-weight: 800;

    margin-bottom: 15px;
}

.course-hero-content h1 {
    margin: 0 0 18px;

    color: #202d57;

    font-size: clamp(30px, 4vw, 48px);

    line-height: 1.25;

    font-weight: 800;
}

.course-description {
    margin: 0;

    max-width: 700px;

    color: #687493;

    font-size: 16px;

    line-height: 2;
}


/* =========================================================
   META
========================================================= */

.course-meta {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-top: 30px;
}

.meta-item {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 14px;

    background: white;

    border: 1px solid #e9ecf6;

    border-radius: 17px;

    box-shadow:
        0 10px 30px rgba(36, 52, 95, 0.05);
}

.meta-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: #5a51c9;

    background: #efedff;
}

.meta-item div {
    min-width: 0;
}

.meta-item small {
    display: block;

    color: #8a94ad;

    font-size: 11px;

    margin-bottom: 3px;
}

.meta-item strong {
    display: block;

    color: #344064;

    font-size: 13px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   CONTENT CARD
========================================================= */

.content-card {
    background: white;

    border: 1px solid #e8ebf5;

    border-radius: 26px;

    padding: 30px;

    margin-bottom: 25px;

    box-shadow:
        0 15px 45px rgba(36, 52, 95, 0.06);
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 25px;
}

.section-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 15px;

    color: #5b50c9;

    background: #efedff;

    font-size: 18px;
}

.section-heading h2 {
    margin: 0;

    color: #25345e;

    font-size: 22px;

    font-weight: 800;
}

.section-heading p {
    margin: 4px 0 0;

    color: #8992aa;

    font-size: 13px;
}


/* =========================================================
   PRICING
========================================================= */

.pricing-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.pricing-card {
    position: relative;

    padding: 28px 22px;

    border-radius: 22px;

    background: #fafbff;

    border: 1px solid #e9ecf5;

    text-align: center;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);

    border-color: #cfcaff;

    box-shadow:
        0 18px 40px rgba(79, 70, 184, 0.12);
}

.pricing-card.featured {
    border: 2px solid #7167dd;

    background:
        linear-gradient(
            180deg,
            #f5f3ff,
            #ffffff
        );

    box-shadow:
        0 18px 45px rgba(79, 70, 184, 0.12);
}

.popular-label {
    position: absolute;

    top: -12px;
    right: 50%;

    transform: translateX(50%);

    padding: 5px 14px;

    border-radius: 20px;

    color: white;

    background: #6258d8;

    font-size: 11px;

    font-weight: 800;

    white-space: nowrap;
}

.pricing-icon {
    width: 55px;
    height: 55px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    color: #5b51ca;

    background: #eeecff;

    font-size: 20px;
}

.pricing-card h3 {
    margin: 0 0 10px;

    color: #2d3a61;

    font-size: 18px;

    font-weight: 800;
}

.pricing-price {
    display: flex;

    justify-content: center;
    align-items: baseline;

    gap: 6px;

    color: #4d43bb;

    margin: 8px 0;
}

.pricing-price strong {
    font-size: 38px;

    font-weight: 800;

    line-height: 1;
}

.pricing-price span {
    font-size: 13px;

    color: #7e88a5;
}

.pricing-card > p {
    margin: 8px 0;

    color: #7d87a2;

    font-size: 13px;
}

.pricing-line {
    height: 1px;

    background: #e6e9f2;

    margin: 18px 0;
}

.pricing-info {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #65718f;

    font-size: 12px;

    font-weight: 600;
}

.pricing-info i {
    color: #6258d8;
}


/* =========================================================
   ACCESS
========================================================= */

.access-card {
    padding: 35px;
}

.status-box {
    display: flex;

    align-items: flex-start;

    gap: 20px;

    padding: 24px;

    border-radius: 20px;

    background: #f8f9ff;

    border: 1px solid #e8ebf5;
}

.status-box.success {
    background: #f2fbf7;

    border-color: #ccefe0;
}

.status-box.pending {
    background: #fffaf0;

    border-color: #f3dfb1;
}

.status-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    color: #5d54ca;

    background: #eae8ff;

    font-size: 22px;
}

.status-box.success .status-icon {
    color: #16845b;

    background: #d9f4e8;
}

.status-box.pending .status-icon {
    color: #b97916;

    background: #fff0c8;
}

.status-box h2 {
    margin: 2px 0 7px;

    color: #2b385e;

    font-size: 20px;

    font-weight: 800;
}

.status-box p {
    margin: 0;

    color: #77819d;

    line-height: 1.9;

    font-size: 14px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button-group {
    display: flex;

    gap: 10px;

    margin-top: 18px;

    flex-wrap: wrap;
}

.main-button,
.secondary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 46px;

    padding: 11px 20px;

    border-radius: 13px;

    font-size: 13px;

    font-weight: 800;

    transition: 0.25s ease;
}

.main-button {
    color: white;

    background:
        linear-gradient(
            135deg,
            #6157d5,
            #756bea
        );

    box-shadow:
        0 10px 25px rgba(97, 87, 213, 0.22);
}

.main-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(97, 87, 213, 0.28);
}

.secondary-button {
    color: #5b51c9;

    background: #eeecff;

    border: 1px solid #dfdcff;
}

.secondary-button:hover {
    background: #e5e2ff;
}


/* =========================================================
   REQUEST AREA
========================================================= */

.request-area {
    max-width: 800px;

    margin: 0 auto;
}

.request-heading {
    display: flex;

    align-items: flex-start;

    gap: 16px;

    margin-bottom: 25px;
}

.request-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    color: #168b60;

    background: #dcf6e9;

    font-size: 25px;
}

.request-icon.rejected {
    color: #c34554;

    background: #ffebee;
}

.request-heading h2 {
    margin: 2px 0 5px;

    color: #2b385e;

    font-size: 21px;

    font-weight: 800;
}

.request-heading p {
    margin: 0;

    color: #7d87a2;

    font-size: 13px;

    line-height: 1.9;
}


/* =========================================================
   FORM
========================================================= */

.request-form {
    display: grid;

    gap: 18px;
}

.form-field {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-field label {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #3b4769;

    font-size: 13px;

    font-weight: 800;
}

.form-field label i {
    color: #665cd5;
}

.form-field input,
.form-field select {
    width: 100%;

    min-height: 50px;

    padding: 12px 15px;

    border-radius: 13px;

    border: 1px solid #dfe3ef;

    outline: none;

    background: #fbfcff;

    color: #344064;

    font-size: 13px;

    transition: 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
    border-color: #766ce1;

    background: white;

    box-shadow:
        0 0 0 4px rgba(102, 92, 213, 0.08);
}

.readonly-field {
    min-height: 50px;

    display: flex;
    align-items: center;

    padding: 12px 15px;

    border-radius: 13px;

    border: 1px solid #e0e4ef;

    background: #f7f8fc;

    color: #5b6683;

    font-size: 13px;

    font-weight: 600;
}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp-button {
    min-height: 52px;

    border: 0;

    border-radius: 14px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #159c68,
            #1fba7a
        );

    font-size: 14px;

    font-weight: 800;

    box-shadow:
        0 12px 28px rgba(22, 156, 104, 0.18);

    transition: 0.25s ease;
}

.whatsapp-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 32px rgba(22, 156, 104, 0.24);
}

.whatsapp-button i {
    font-size: 20px;
}

.request-note {
    display: flex;

    align-items: flex-start;

    gap: 7px;

    color: #8a93aa;

    line-height: 1.8;

    font-size: 11px;
}

.request-note i {
    color: #6b62d5;

    margin-top: 4px;
}


/* =========================================================
   COURSE CONTENT
========================================================= */

.content-open {
    display: flex;

    align-items: center;

    gap: 13px;

    padding: 18px 20px;

    border-radius: 16px;

    background: #f0faf6;

    border: 1px solid #d4f0e4;

    color: #197d59;
}

.content-open > i {
    font-size: 23px;
}

.content-open strong,
.content-open span {
    display: block;
}

.content-open strong {
    font-size: 14px;

    margin-bottom: 3px;
}

.content-open span {
    color: #6e8c80;

    font-size: 12px;
}

.content-locked {
    text-align: center;

    padding: 35px 20px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #f8f8ff,
            #f6f9ff
        );

    border: 1px dashed #d9dcef;
}

.locked-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    color: #6b61d5;

    background: #eceaff;

    font-size: 22px;
}

.content-locked h3 {
    margin: 0 0 7px;

    color: #354162;

    font-size: 17px;
}

.content-locked p {
    max-width: 550px;

    margin: 0 auto;

    color: #8a93aa;

    font-size: 12px;

    line-height: 1.9;
}


/* =========================================================
   FOOTER
========================================================= */

.course-footer {
    background: #202b4c;

    color: white;

    padding: 30px 0;
}

.course-footer .container {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 10px;
}

.footer-brand img {
    width: 42px;
    height: 42px;

    object-fit: contain;
}

.footer-brand strong,
.footer-brand span {
    display: block;
}

.footer-brand strong {
    font-size: 14px;
}

.footer-brand span {
    margin-top: 3px;

    color: #aeb8d2;

    font-size: 10px;
}

.course-footer p {
    margin: 0;

    color: #aeb8d2;

    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .course-hero {
        grid-template-columns: 1fr;
    }

    .course-image-wrapper {
        min-height: 320px;
    }

    .course-main-image {
        min-height: 320px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        max-width: 500px;

        width: 100%;

        margin: 0 auto;
    }

    .course-meta {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 700px) {

    .container {
        width: min(
            100% - 24px,
            1180px
        );
    }

    .header-inner {
        min-height: auto;

        padding: 14px 0;

        flex-direction: column;

        align-items: stretch;
    }

    .course-brand {
        justify-content: center;
    }

    .course-nav {
        justify-content: center;
    }

    .course-nav a {
        font-size: 12px;

        padding: 8px 10px;
    }

    .course-page-section {
        padding: 30px 0 55px;
    }

    .course-image-wrapper,
    .course-main-image {
        min-height: 240px;
    }

    .course-hero-content h1 {
        font-size: 29px;
    }

    .course-description {
        font-size: 14px;
    }

    .content-card {
        padding: 22px 16px;

        border-radius: 20px;
    }

    .access-card {
        padding: 22px 16px;
    }

    .status-box {
        flex-direction: column;
    }

    .request-heading {
        flex-direction: column;
    }

    .course-footer .container {
        flex-direction: column;

        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }
}