

.unit_detail_page{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    margin-top: 6rem;
}

.badge_content_header {
    border-radius: 36px;
    border: 0.5px solid rgba(0, 133, 120, 0.20);
    background: linear-gradient(0deg, #E8F9F7 0%, #FFF 100%);
    display: flex;
    padding: 8px 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;

    color: var(--Pine-Green, #008578);

    /* Heading H8- 16px/Bold */
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    /* 125% */

    letter-spacing: -0.16px;
}



.share-container {
    display: flex;
    height: 2.75rem;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    align-self: stretch;
    border-top: 1px solid var(--Neutral-Stroke, #e9ebec);
    width: 1040px;
    margin: 0 auto;
    border-bottom: 1px solid var(--Neutral-Stroke, #e9ebec);
}

.subject-chip_unitDetail_text{
    color: var(--Neutral-Dark-Grey, #4F4F4F);

/* Heading H8- 16px/SemiBold */
font-family: Inter;
font-size: 16px;
font-style: normal;
font-weight: 600;
line-height: 20px; /* 125% */
letter-spacing: -0.16px;
}


.header-sub-heading_unit_chapter {
    color: var(--Neutral-Dark-Grey, #4F4F4F);
    text-align: center;

    /* Paragraph Base- 16px/Medium */
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    /* 22.4px */
    letter-spacing: -0.16px;
    width: 48vw;
}

.header-heading_unitDetail {
    color: var(--Neutral-Granite, #7A7A7A) !important; 

    /* Heading H2- 40px/Bold */
    font-family: Inter;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.4px;
}

.header-heading_unitDetail span {
    color: var(--Neutral-Dark-Grey, #1a1a1a);
}

.subjects-row {
    margin: 3rem auto;
}

.subject-chip {
    display: flex;
    height: 2.75rem;
    padding: 0.6875rem 1.25rem 0.6875rem 0.875rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--Neutral-Stroke, #E9EBEC);
    background: #FFF;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.06);

    color: var(--Neutral-Dark-Grey, #1f1e1e) !important;
    /* Heading H8- 16px/SemiBold */
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    /* 125% */
    letter-spacing: -0.16px;
}

.subject-name {
    color: var(--Neutral-Dark-Grey, #1f1e1e) !important;
    /* Heading H8- 16px/SemiBold */
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    /* 125% */
    letter-spacing: -0.16px;
}

/* ==================== */

.unit-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    width: 1040px;
    margin: 2.5rem auto;

}

.unit-header {
    margin-bottom: 16px;
    background-color: #FAFAFA;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: 20px;
}

.unit-title {
    color: var(--Neutral-Black, #1A1A1A);

    /* Heading H6- 20px/SemiBold */
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.2px;
}

.unit-description {
    color: var(--Neutral-Dark-Grey, #4F4F4F);

    /* Paragraph Small- 14px/Regular */
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    /* 19.6px */
    letter-spacing: -0.14px;
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    padding: 20px;

}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-item:hover {
    background: #f9fdfd;
}

.lesson-link {
    color: var(--Neutral-Black, #1A1A1A);

    /* Heading H7- 18px/Medium */
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.18px;
}

.lesson-link span {
    color: #008578;
    /* teal/blue-green number */
    margin-right: 6px;
}

.lesson-arrow {
    font-size: 16px;
    color: #008578;
}

/* ========= chapter detail  */


.chapter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1100px;
    width: 100%;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.chapter-card {
    background: linear-gradient(to bottom, #fdfdfd, #f2f6fb);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
} */

.chapter-number {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.chapter-title {
    font-size: 16px;
    color: #222;
    margin-bottom: 8px;
}

.chapter-description {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

/* Mobile optimization */
@media (max-width: 600px) {
   

    .chapter-card {
        padding: 16px;
    }


    .hero_heading_section_top {
        width: 100%;
    }

    .share-container{
        width: 90vw;
    }

    .header-sub-heading_unit_chapter{
        width: 90vw;
        text-align: center ;
    }
    
    
    .header-heading_unitDetail {
        text-align: center;
    }



    .unit-card{
        width: 90vw;
    }
}