/* =========================================
   STUDY MATERIAL PAGE
========================================= */


/* HERO */

.material-hero {
    padding: 120px 7% 110px;
    background: #061b28;
    color: #ffffff;
}

.material-hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.material-hero .section-label {
    color: #ffd500;
}

.material-hero h1 {
    margin: 15px 0 25px;
    max-width: 850px;

    font-size: clamp(48px, 7vw, 86px);
    line-height: 0.98;
    font-weight: 700;
}

.material-hero h1 span {
    color: #ffd500;
}

.material-hero p {
    max-width: 650px;
    margin: 0;

    font-size: 18px;
    line-height: 1.7;

    color: #c9d4da;
}


/* INTRO */

.material-intro {
    padding: 100px 7%;
    background: #ffffff;
}

.material-intro-container {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.material-intro-heading h2 {
    margin: 15px 0 0;

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;

    color: #061b28;
}

.material-intro-text {
    align-self: end;
}

.material-intro-text p {
    margin: 0;

    font-size: 17px;
    line-height: 1.8;

    color: #596873;
}


/* RESOURCE SECTION */

.material-section {
    padding: 100px 7%;
    background: #f7f9fb;
}

.material-container {
    max-width: 1200px;
    margin: 0 auto;
}

.material-heading {
    margin-bottom: 50px;
}

.material-heading h2 {
    margin: 15px 0 0;

    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;

    color: #061b28;
}


/* RESOURCE GRID */

.material-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


/* CARD */

.material-card {
    position: relative;

    min-height: 340px;
    padding: 30px;

    display: flex;
    flex-direction: column;

    text-decoration: none;

    background: #ffffff;
    border: 1px solid #e0e6ea;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.material-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 35px rgba(6, 27, 40, 0.10);
}


/* CARD TOP */

.material-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.material-number {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;

    color: #167bc0;
}

.material-type {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;

    color: #77858d;
}


/* BIG ICON / CLASS */

.material-card-icon {
    margin-top: 45px;
    margin-bottom: 25px;

    font-size: 42px;
    line-height: 1;

    font-weight: 800;

    color: #061b28;
}

.material-card h3 {
    margin: 0 0 12px;

    font-size: 24px;

    color: #061b28;
}

.material-card p {
    margin: 0;
    max-width: 350px;

    font-size: 14px;
    line-height: 1.7;

    color: #64727b;
}


/* ARROW */

.material-arrow {
    position: absolute;

    right: 30px;
    bottom: 28px;

    font-size: 24px;

    color: #167bc0;

    transition: transform 0.3s ease;
}

.material-card:hover .material-arrow {
    transform: translateX(6px);
}


/* =========================================
   MATERIAL TYPES
========================================= */

.material-types {
    padding: 110px 7%;
    background: #ffffff;
}

.material-types-container {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

.material-types-heading h2 {
    margin: 15px 0 0;

    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.05;

    color: #061b28;
}


/* LIST */

.material-types-list {
    display: flex;
    flex-direction: column;
}

.material-type-row {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 20px;

    padding: 25px 0;

    border-bottom: 1px solid #dfe5e9;
}

.material-type-row:first-child {
    padding-top: 0;
}

.material-type-row > span {
    font-size: 13px;
    font-weight: 700;

    color: #167bc0;
}

.material-type-row h3 {
    margin: 0 0 8px;

    font-size: 21px;

    color: #061b28;
}

.material-type-row p {
    margin: 0;

    font-size: 15px;
    line-height: 1.7;

    color: #64727b;
}


/* =========================================
   CTA
========================================= */

.material-cta {
    padding: 100px 7%;

    background: #061b28;

    text-align: center;
}

.material-cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.material-cta .section-label {
    color: #ffd500;
}

.material-cta h2 {
    margin: 15px 0 30px;

    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;

    color: #ffffff;
}

.cta-button {
    display: inline-block;

    padding: 14px 28px;

    background: #ffd500;
    color: #061b28;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: 0.3s ease;
}

.cta-button:hover {
    background: #ffffff;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .material-intro-container,
    .material-types-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .material-grid {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 600px) {

    .material-hero {
        padding: 90px 5% 80px;
    }

    .material-intro,
    .material-section,
    .material-types {
        padding: 75px 5%;
    }

    .material-grid {
        grid-template-columns: 1fr;
    }

    .material-card {
        min-height: 310px;
    }

    .material-cta {
        padding: 80px 5%;
    }

}
/* =========================================
   JEE / MEDICAL MATERIAL PAGE
========================================= */

.material-hero {
    padding: 150px 7% 110px;
    background: #061b28;
    color: #ffffff;
}

.material-hero-container {
    max-width: 1100px;
    margin: 0 auto;
}

.material-hero .section-label {
    color: #ffd500;
}

.material-hero h1 {
    max-width: 850px;
    margin: 0 0 25px;
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -2px;
}

.material-hero p {
    max-width: 720px;
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    color: #c9d3d9;
}


/* =========================================
   INTRO
========================================= */

.material-intro {
    padding: 100px 7% 70px;
    background: #ffffff;
}

.material-intro-container {
    max-width: 1200px;
    margin: 0 auto;
}

.material-intro h2 {
    max-width: 800px;
    margin: 0 0 22px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    color: #061b28;
}

.material-intro p {
    max-width: 700px;
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    color: #5f6d76;
}


/* =========================================
   SUBJECT SECTION
========================================= */

.subject-section {
    padding: 80px 7% 110px;
    background: #ffffff;
}

.subject-alt {
    background: #f7f9fb;
}

.subject-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================
   SUBJECT HEADING
========================================= */

.subject-heading {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: end;
    margin-bottom: 45px;
    padding-bottom: 30px;
    border-bottom: 1px solid #dfe5e9;
}

.subject-number {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #167bc0;
}

.subject-heading h2 {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    color: #061b28;
}

.subject-heading p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #64727b;
}


/* =========================================
   CHAPTER LIST
========================================= */

.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.chapter-card {
    background: #ffffff;
    border: 1px solid #dfe5e9;
    padding: 30px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.subject-alt .chapter-card {
    background: #ffffff;
}

.chapter-card:hover {
    transform: translateY(-3px);
    border-color: #b9c6ce;
    box-shadow: 0 15px 35px rgba(6, 27, 40, 0.08);
}


/* =========================================
   CHAPTER HEADER
========================================= */

.chapter-top {
    margin-bottom: 25px;
}

.chapter-number {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: #167bc0;
}

.chapter-top h3 {
    margin: 0;
    font-size: 25px;
    line-height: 1.25;
    color: #061b28;
}


/* =========================================
   RESOURCE GRID
========================================= */

.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}


/* =========================================
   RESOURCE BUTTON
========================================= */

.resource-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;

    min-height: 82px;
    padding: 15px;

    background: #f7f9fb;
    border: 1px solid #e2e7ea;

    text-decoration: none;
    color: #061b28;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.resource-button:hover {
    background: #ffffff;
    border-color: #167bc0;
    transform: translateY(-2px);
}

.resource-icon {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #061b28;
    color: #ffffff;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.resource-button strong {
    display: block;
    margin-bottom: 4px;

    font-size: 13px;
    line-height: 1.2;
}

.resource-button small {
    display: block;

    font-size: 11px;
    line-height: 1.3;

    color: #71808a;
}

.resource-arrow {
    margin-left: auto;

    font-size: 19px;
    color: #167bc0;

    transition: transform 0.25s ease;
}

.resource-button:hover .resource-arrow {
    transform: translateX(4px);
}


/* =========================================
   CTA
========================================= */

.material-cta {
    padding: 100px 7%;
    background: #061b28;
    color: #ffffff;
}

.material-cta-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.material-cta .section-label {
    color: #ffd500;
}

.material-cta h2 {
    margin: 0 0 20px;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
}

.material-cta p {
    max-width: 650px;
    margin: 0 auto 35px;

    font-size: 17px;
    line-height: 1.7;

    color: #c9d3d9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 15px 28px;

    background: #ffd500;
    color: #061b28;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.cta-button:hover {
    background: #ffffff;
    transform: translateY(-2px);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .resource-grid {
        grid-template-columns: 1fr 1fr;
    }

    .subject-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}


@media (max-width: 700px) {

    .material-hero {
        padding: 120px 5% 80px;
    }

    .material-hero h1 {
        letter-spacing: -1px;
    }

    .material-intro {
        padding: 70px 5% 50px;
    }

    .subject-section {
        padding: 65px 5% 80px;
    }

    .subject-heading {
        margin-bottom: 30px;
    }

    .chapter-card {
        padding: 22px;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-button {
        min-height: 72px;
    }

    .material-cta {
        padding: 75px 5%;
    }

}
/* =========================================
   SUBJECT ACCORDION - CLEAN VERSION
========================================= */

.subjects-section {
    padding: 90px 7% 120px;
    background: #f7f9fb;
}

.subjects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.subjects-heading {
    max-width: 750px;
    margin-bottom: 55px;
}

.subjects-heading h2 {
    margin: 0 0 15px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    color: #061b28;
}

.subjects-heading p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #64727b;
}


/* SUBJECT LIST */

.subject-accordion {
    border-top: 1px solid #cfd8de;
}

.subject-item {
    border-bottom: 1px solid #cfd8de;
}


/* SUBJECT HEADER */

.subject-toggle {
    width: 100%;
    min-height: 105px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 25px 5px;

    border: none;
    background: transparent;

    cursor: pointer;
    text-align: left;
}

.subject-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.subject-number {
    min-width: 30px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;

    color: #167bc0;
}

.subject-name {
    font-size: clamp(27px, 3vw, 40px);
    font-weight: 700;
    line-height: 1;

    color: #061b28;
}

.subject-plus {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #cbd5db;

    font-size: 26px;
    font-weight: 300;

    color: #167bc0;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


/* HOVER */

.subject-toggle:hover .subject-name {
    color: #167bc0;
}

.subject-toggle:hover .subject-plus {
    background: #061b28;
    border-color: #061b28;
    color: #ffffff;
}


/* OPEN SUBJECT */

.subject-item.active .subject-plus {
    transform: rotate(45deg);

    background: #ffd500;
    border-color: #ffd500;

    color: #061b28;
}


/* =========================================
   IMPORTANT:
   CLOSED CONTENT TAKES ZERO SPACE
========================================= */

.subject-content {
    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition:
        max-height 0.45s ease,
        opacity 0.25s ease;
}


/* OPEN CONTENT */

.subject-item.active .subject-content {
    max-height: 5000px;
    opacity: 1;
}


/* CONTENT INSIDE */

.subject-content .chapter-list {
    padding: 0 0 35px 60px;
}


/* CHAPTER CARD */

.chapter-card {
    margin-bottom: 16px;
    padding: 28px;

    background: #ffffff;

    border: 1px solid #dce3e7;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.chapter-card:last-child {
    margin-bottom: 0;
}

.chapter-card:hover {
    transform: translateY(-2px);

    box-shadow: 0 12px 30px rgba(6, 27, 40, 0.08);
}


/* CHAPTER TITLE */

.chapter-top {
    margin-bottom: 22px;
}

.chapter-number {
    display: block;

    margin-bottom: 8px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;

    color: #167bc0;
}

.chapter-top h3 {
    margin: 0;

    font-size: 22px;
    line-height: 1.3;

    color: #061b28;
}


/* RESOURCES */

.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.resource-button {
    min-height: 75px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 13px;

    background: #f7f9fb;

    border: 1px solid #e1e7ea;

    text-decoration: none;
    color: #061b28;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.resource-button:hover {
    background: #ffffff;
    border-color: #167bc0;
    transform: translateY(-2px);
}

.resource-icon {
    width: 31px;
    height: 31px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #061b28;

    color: #ffffff;

    font-size: 9px;
    font-weight: 800;
}

.resource-button strong {
    display: block;

    margin-bottom: 3px;

    font-size: 12px;
}

.resource-button small {
    display: block;

    font-size: 10px;

    color: #71808a;
}

.resource-arrow {
    margin-left: auto;

    font-size: 18px;
    color: #167bc0;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 800px) {

    .subjects-section {
        padding: 70px 5% 85px;
    }

    .subject-toggle {
        min-height: 85px;
        padding: 20px 0;
    }

    .subject-left {
        gap: 18px;
    }

    .subject-name {
        font-size: 26px;
    }

    .subject-plus {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .subject-content .chapter-list {
        padding: 0 0 25px;
    }

    .resource-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 550px) {

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .chapter-card {
        padding: 20px;
    }

}