/* =========================================================
   SARASWAT ACADEMY
   CHAPTER PAGE STYLES
   Namespace: sa-chapter-
   ========================================================= */


/* =========================================================
   MAIN PAGE WRAPPER
   ========================================================= */

.sa-chapter-page {
    width: 100%;
    min-width: 0;
    background: #f4f7fb;
    color: #182230;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    box-sizing: border-box;
    overflow-x: hidden;
}

.sa-chapter-page *,
.sa-chapter-page *::before,
.sa-chapter-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   MAIN WIDTH
   ========================================================= */

.sa-chapter-container {
    width: min(1650px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 60px;
}


/* =========================================================
   HERO
   ========================================================= */

.sa-chapter-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 50px 48px;
    border-radius: 28px;
    color: #ffffff;
    background:
        linear-gradient(
            115deg,
            #111b38 0%,
            #18336f 42%,
            #2459c8 75%,
            #2b65e8 100%
        );
    box-shadow: 0 18px 45px rgba(22, 55, 115, 0.16);
}

.sa-chapter-hero::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -150px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
    pointer-events: none;
}

.sa-chapter-breadcrumb {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 16px;
}

.sa-chapter-breadcrumb-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sa-chapter-breadcrumb-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.sa-chapter-breadcrumb-arrow {
    color: rgba(255, 255, 255, 0.7);
}

.sa-chapter-breadcrumb-current {
    color: rgba(255, 255, 255, 0.96);
}

.sa-chapter-hero-labels {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 17px;
}

.sa-chapter-hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.sa-chapter-title {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 57px);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -1.5px;
}

.sa-chapter-description {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    line-height: 1.75;
}

.sa-chapter-hero-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.sa-chapter-update,
.sa-chapter-reading {
    display: inline-flex;
    align-items: center;
}


/* =========================================================
   ADSENSE AREAS
   ========================================================= */

.sa-chapter-ad {
    width: 100%;
    min-width: 0;
    margin: 24px 0;
    text-align: center;
}

.sa-chapter-ad-top {
    min-height: 90px;
}

.sa-chapter-ad-content {
    min-height: 120px;
    margin: 30px 0;
}

.sa-chapter-ad-mid {
    min-height: 120px;
    margin: 34px 0;
}

.sa-chapter-ad-bottom {
    min-height: 120px;
    margin-top: 34px;
}


/* =========================================================
   TWO COLUMN LAYOUT
   ========================================================= */

.sa-chapter-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: start;
    gap: 30px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sa-chapter-sidebar {
    min-width: 0;
}

.sa-chapter-navigation {
    position: sticky;
    top: 24px;
    padding: 28px 26px;
    border: 1px solid #e7ebf2;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(22, 34, 58, 0.07);
}

.sa-chapter-navigation-title {
    margin: 0 0 23px;
    color: #2460d8;
    font-size: 28px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.6px;
}

.sa-chapter-navigation-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sa-chapter-navigation-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 11px 12px;
    border-radius: 10px;
    color: #384152;
    font-size: 15px;
    font-weight: 550;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.sa-chapter-navigation-link:hover {
    background: #f0f5ff;
    color: #245fd4;
    transform: translateX(2px);
}

.sa-chapter-navigation-link-active {
    background: #edf4ff;
    color: #225ed4;
    font-weight: 700;
}

.sa-chapter-navigation-icon {
    display: inline-flex;
    flex: 0 0 25px;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: #eaf2ff;
    color: #2865dc;
    font-size: 13px;
    font-weight: 800;
}

.sa-chapter-resource-box {
    margin-top: 20px;
    padding: 23px;
    border: 1px solid #e6ebf3;
    border-radius: 18px;
    background: #ffffff;
}

.sa-chapter-resource-title {
    margin: 0 0 12px;
    color: #172033;
    font-size: 17px;
    font-weight: 750;
}

.sa-chapter-resource-link {
    display: block;
    padding: 7px 0;
    color: #3568ca;
    font-size: 14px;
    text-decoration: none;
}

.sa-chapter-resource-link:hover {
    color: #174cae;
    text-decoration: underline;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.sa-chapter-main-content {
    min-width: 0;
}

.sa-chapter-section {
    position: relative;
    margin-bottom: 25px;
    padding: 34px 39px;
    border: 1px solid #e7ebf2;
    border-top: 5px solid #2863dc;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(24, 39, 68, 0.055);
}

.sa-chapter-overview-section {
    padding-top: 39px;
}

.sa-chapter-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.sa-chapter-section-label {
    display: block;
    margin-bottom: 5px;
    color: #4d73bb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sa-chapter-section-title {
    margin: 0 0 22px;
    color: #2460d8;
    font-size: clamp(27px, 3vw, 39px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.sa-chapter-text {
    margin: 0 0 17px;
    color: #4d5667;
    font-size: 16px;
    line-height: 1.75;
}

.sa-chapter-text:last-child {
    margin-bottom: 0;
}


/* =========================================================
   HIGHLIGHT
   ========================================================= */

.sa-chapter-highlight-box {
    margin: 0 0 22px;
    padding: 19px 22px;
    border-left: 6px solid #2864dc;
    border-radius: 12px;
    background: #edf4ff;
}

.sa-chapter-highlight-text {
    margin: 0;
    color: #243d67;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
}


/* =========================================================
   OBJECTIVES
   ========================================================= */

.sa-chapter-objectives-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.sa-chapter-objective-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e8edf4;
    border-radius: 15px;
    background: #fafcff;
}

.sa-chapter-objective-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    margin-bottom: 13px;
    border-radius: 9px;
    background: #eaf2ff;
    color: #2864dc;
    font-size: 12px;
    font-weight: 800;
}

.sa-chapter-objective-title {
    margin: 0 0 7px;
    color: #202a3a;
    font-size: 17px;
    font-weight: 750;
}

.sa-chapter-objective-text {
    margin: 0;
    color: #687284;
    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   QUICK INFORMATION
   ========================================================= */

.sa-chapter-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.sa-chapter-info-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    background: #f9fbfe;
}

.sa-chapter-info-label {
    display: block;
    margin-bottom: 5px;
    color: #7a8494;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.sa-chapter-info-value {
    display: block;
    color: #202a3a;
    font-size: 16px;
    font-weight: 750;
}


/* =========================================================
   CONCEPTS
   ========================================================= */

.sa-chapter-concept-card {
    margin-top: 15px;
    padding: 22px 24px;
    border: 1px solid #e7ebf2;
    border-radius: 15px;
    background: #fcfdff;
}

.sa-chapter-subtitle {
    margin: 0 0 9px;
    color: #26344d;
    font-size: 20px;
    font-weight: 750;
}

.sa-chapter-example-box {
    margin-top: 18px;
    padding: 17px 19px;
    border-radius: 11px;
    background: #f1f6ff;
}

.sa-chapter-example-title {
    display: block;
    margin-bottom: 4px;
    color: #2864d9;
    font-size: 13px;
}

.sa-chapter-example-text {
    margin: 0;
    color: #4d5c72;
    font-size: 15px;
}


/* =========================================================
   FORMULAS
   ========================================================= */

.sa-chapter-formula-section {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );
}

.sa-chapter-formula-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.sa-chapter-formula-card {
    min-width: 0;
    padding: 21px;
    border: 1px solid #dfe8f7;
    border-radius: 15px;
    background: #f5f8fe;
}

.sa-chapter-formula-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #dfeaff;
    color: #2762d4;
    font-size: 11px;
    font-weight: 800;
}

.sa-chapter-formula-name {
    margin: 13px 0 12px;
    color: #3d4b61;
    font-size: 14px;
    font-weight: 700;
}

.sa-chapter-formula {
    overflow-x: auto;
    padding: 14px 10px;
    color: #162b51;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}


/* =========================================================
   EXERCISE
   ========================================================= */

.sa-chapter-exercise {
    overflow: hidden;
    border: 1px solid #e4e9f1;
    border-radius: 16px;
    background: #ffffff;
}

.sa-chapter-exercise-heading {
    padding: 20px 23px;
    border-bottom: 1px solid #e7ebf2;
    background: #f7f9fc;
}

.sa-chapter-exercise-label {
    display: block;
    margin-bottom: 3px;
    color: #6d7890;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.sa-chapter-exercise-title {
    margin: 0;
    color: #25324a;
    font-size: 20px;
    font-weight: 750;
}

.sa-chapter-question {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    padding: 27px 23px;
    border-bottom: 1px solid #edf0f4;
}

.sa-chapter-question:last-child {
    border-bottom: 0;
}

.sa-chapter-question-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 11px;
    background: #eaf2ff;
    color: #2561d6;
    font-size: 13px;
    font-weight: 800;
}

.sa-chapter-question-content {
    min-width: 0;
}

.sa-chapter-question-title {
    margin: 0 0 7px;
    color: #273348;
    font-size: 18px;
    font-weight: 750;
}

.sa-chapter-question-text {
    margin: 0;
    color: #505b6d;
    font-size: 15px;
    line-height: 1.75;
}

.sa-chapter-solution {
    margin-top: 18px;
    padding: 18px;
    border-left: 4px solid #2864dc;
    border-radius: 10px;
    background: #f7faff;
}

.sa-chapter-solution-title {
    margin: 0 0 8px;
    color: #2864dc;
    font-size: 15px;
    font-weight: 800;
}

.sa-chapter-solution-text {
    margin: 0;
    color: #515c6d;
    font-size: 15px;
    line-height: 1.75;
}

.sa-chapter-answer-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #dce7fa;
    border-radius: 9px;
    background: #ffffff;
}

.sa-chapter-answer-label {
    color: #718096;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sa-chapter-answer {
    color: #1f56bd;
    font-size: 15px;
}


/* =========================================================
   QUESTION CATEGORIES
   ========================================================= */

.sa-chapter-question-category {
    margin-top: 17px;
    padding: 20px 22px;
    border: 1px solid #e7ebf2;
    border-radius: 14px;
    background: #fbfcfe;
}

.sa-chapter-category-title {
    margin: 0 0 12px;
    color: #29364c;
    font-size: 18px;
    font-weight: 750;
}

.sa-chapter-question-list {
    margin: 0;
    padding-left: 24px;
}

.sa-chapter-list-question {
    margin: 8px 0;
    padding-left: 5px;
    color: #4e596a;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   REVISION
   ========================================================= */

.sa-chapter-revision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sa-chapter-revision-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5ebf3;
    border-radius: 12px;
    background: #fafcff;
}

.sa-chapter-revision-icon {
    display: inline-flex;
    flex: 0 0 27px;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: #e9f5ee;
    color: #2c8b55;
    font-size: 12px;
    font-weight: 800;
}

.sa-chapter-revision-text {
    margin: 1px 0 0;
    color: #4f5a6c;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   COMMON MISTAKES
   ========================================================= */

.sa-chapter-mistake-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sa-chapter-mistake-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 17px;
    border: 1px solid #f0dfdf;
    border-radius: 12px;
    background: #fffafa;
}

.sa-chapter-mistake-number {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #fff0f0;
    color: #bf5555;
    font-size: 11px;
    font-weight: 800;
}

.sa-chapter-mistake-text {
    margin: 2px 0 0;
    color: #5c555a;
    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   EXAM TIPS
   ========================================================= */

.sa-chapter-tip-box {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid #e1e8f3;
    border-radius: 15px;
    background: #f8faff;
}

.sa-chapter-tip-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 19px 20px;
    border-bottom: 1px solid #e5eaf2;
}

.sa-chapter-tip-item:last-child {
    border-bottom: 0;
}

.sa-chapter-tip-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #e8f0ff;
    color: #2762d4;
    font-size: 12px;
    font-weight: 800;
}

.sa-chapter-tip-title {
    margin: 1px 0 4px;
    color: #29364b;
    font-size: 16px;
    font-weight: 750;
}

.sa-chapter-tip-text {
    margin: 0;
    color: #657084;
    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   RELATED RESOURCES
   ========================================================= */

.sa-chapter-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.sa-chapter-related-card {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 15px;
    border: 1px solid #e4eaf2;
    border-radius: 13px;
    color: inherit;
    text-decoration: none;
    background: #fbfcfe;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.sa-chapter-related-card:hover {
    border-color: #bcd0f4;
    box-shadow: 0 8px 20px rgba(35, 79, 145, 0.08);
    transform: translateY(-2px);
}

.sa-chapter-related-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 10px;
    background: #eaf2ff;
    color: #2864d8;
    font-size: 14px;
    font-weight: 800;
}

.sa-chapter-related-title {
    display: block;
    overflow: hidden;
    color: #29364a;
    font-size: 14px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-chapter-related-description {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #7a8494;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-chapter-related-arrow {
    color: #6280b5;
    font-size: 17px;
    font-weight: 700;
}


/* =========================================================
   PREVIOUS / NEXT
   ========================================================= */

.sa-chapter-pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 25px;
}

.sa-chapter-pagination-card {
    display: block;
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid #e3e9f1;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.sa-chapter-pagination-card:hover {
    border-color: #bdd0f1;
    box-shadow: 0 8px 20px rgba(25, 56, 110, 0.07);
}

.sa-chapter-pagination-label {
    display: block;
    margin-bottom: 3px;
    color: #7a8494;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.sa-chapter-pagination-title {
    display: block;
    overflow: hidden;
    color: #2c5fc2;
    font-size: 15px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-chapter-pagination-next {
    text-align: right;
}

.sa-chapter-pagination-disabled {
    opacity: 0.6;
}


/* =========================================================
   TABLE RESPONSIVENESS
   ========================================================= */

.sa-chapter-table-responsive {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sa-chapter-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #ffffff;
}

.sa-chapter-table th {
    padding: 13px 15px;
    border: 1px solid #dfe5ee;
    background: #f0f5fd;
    color: #263a5b;
    font-size: 14px;
    font-weight: 750;
    text-align: left;
}

.sa-chapter-table td {
    padding: 13px 15px;
    border: 1px solid #e1e6ed;
    color: #4d5869;
    font-size: 14px;
    vertical-align: top;
}


/* =========================================================
   FOCUS ACCESSIBILITY
   ========================================================= */

.sa-chapter-page a:focus-visible {
    outline: 3px solid rgba(39, 99, 218, 0.35);
    outline-offset: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .sa-chapter-container {
        width: min(100% - 32px, 1000px);
    }

    .sa-chapter-layout {
        grid-template-columns: 270px minmax(0, 1fr);
        gap: 20px;
    }

    .sa-chapter-navigation {
        padding: 23px 19px;
    }

    .sa-chapter-navigation-title {
        font-size: 23px;
    }

    .sa-chapter-section {
        padding: 29px 28px;
    }

    .sa-chapter-objectives-grid,
    .sa-chapter-formula-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sa-chapter-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sa-chapter-related-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 780px) {

    .sa-chapter-container {
        width: calc(100% - 20px);
        padding-top: 10px;
        padding-bottom: 35px;
    }

    .sa-chapter-hero {
        padding: 34px 23px 30px;
        border-radius: 21px;
    }

    .sa-chapter-breadcrumb {
        margin-bottom: 21px;
        font-size: 13px;
        gap: 5px;
    }

    .sa-chapter-hero-labels {
        gap: 6px;
    }

    .sa-chapter-hero-badge {
        min-height: 29px;
        padding: 3px 10px;
        font-size: 11px;
    }

    .sa-chapter-title {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .sa-chapter-description {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.65;
    }

    .sa-chapter-hero-bottom {
        margin-top: 20px;
        font-size: 12px;
    }

    .sa-chapter-layout {
        display: block;
    }

    .sa-chapter-sidebar {
        margin-bottom: 20px;
    }

    .sa-chapter-navigation {
        position: static;
        padding: 21px;
        border-radius: 17px;
    }

    .sa-chapter-navigation-title {
        margin-bottom: 14px;
        font-size: 23px;
    }

    .sa-chapter-navigation-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .sa-chapter-navigation-link {
        padding: 9px 8px;
        font-size: 12px;
    }

    .sa-chapter-navigation-icon {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .sa-chapter-resource-box {
        display: none;
    }

    .sa-chapter-section {
        margin-bottom: 17px;
        padding: 25px 19px;
        border-radius: 17px;
    }

    .sa-chapter-section-title {
        margin-bottom: 17px;
        font-size: 27px;
    }

    .sa-chapter-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .sa-chapter-highlight-box {
        padding: 15px 16px;
    }

    .sa-chapter-highlight-text {
        font-size: 14px;
    }

    .sa-chapter-objectives-grid,
    .sa-chapter-formula-grid,
    .sa-chapter-info-grid,
    .sa-chapter-revision-grid {
        grid-template-columns: 1fr;
    }

    .sa-chapter-objective-card {
        padding: 17px;
    }

    .sa-chapter-formula {
        font-size: 18px;
    }

    .sa-chapter-question {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
        padding: 21px 16px;
    }

    .sa-chapter-question-number {
        width: 35px;
        height: 35px;
        border-radius: 9px;
        font-size: 11px;
    }

    .sa-chapter-question-title {
        font-size: 16px;
    }

    .sa-chapter-question-text,
    .sa-chapter-solution-text {
        font-size: 14px;
    }

    .sa-chapter-solution {
        padding: 14px;
    }

    .sa-chapter-question-category {
        padding: 17px;
    }

    .sa-chapter-category-title {
        font-size: 16px;
    }

    .sa-chapter-list-question {
        font-size: 14px;
    }

    .sa-chapter-pagination {
        grid-template-columns: 1fr;
    }

    .sa-chapter-pagination-next {
        text-align: left;
    }

    .sa-chapter-ad-top,
    .sa-chapter-ad-content,
    .sa-chapter-ad-mid,
    .sa-chapter-ad-bottom {
        min-height: 70px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 450px) {

    .sa-chapter-container {
        width: calc(100% - 14px);
    }

    .sa-chapter-hero {
        padding: 28px 17px 25px;
        border-radius: 18px;
    }

    .sa-chapter-title {
        font-size: 27px;
        line-height: 1.22;
    }

    .sa-chapter-navigation {
        padding: 17px 13px;
    }

    .sa-chapter-navigation-list {
        grid-template-columns: 1fr;
    }

    .sa-chapter-navigation-link {
        font-size: 13px;
    }

    .sa-chapter-section {
        padding: 22px 15px;
    }

    .sa-chapter-section-title {
        font-size: 25px;
    }

    .sa-chapter-formula-card {
        padding: 17px 13px;
    }

    .sa-chapter-related-card {
        grid-template-columns: 35px minmax(0, 1fr) 16px;
        padding: 12px;
    }

    .sa-chapter-related-icon {
        width: 35px;
        height: 35px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sa-chapter-page *,
    .sa-chapter-page *::before,
    .sa-chapter-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}