/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #00716D;
    --blue-dark: #00BDB6;
    --blue-light: #e8eeff;
    --amber: #f59e0b;
    --amber-light: #fef3c7;
    --green: #10b981;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(26, 63, 170, .10);
    --shadow-lg: 0 12px 48px rgba(26, 63, 170, .16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: '__Manrope_294701', '__Manrope_Fallback_294701', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== TOPBAR ===== */
.cg-topbar {
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.cg-topbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cg-topbar__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cg-topbar__badge {
    background: var(--amber);
    color: #000;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.cg-topbar__text {
    opacity: .85;
}

.cg-topbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cg-topbar__sep {
    opacity: .4;
}

.cg-topbar__link {
    opacity: .85;
    transition: opacity .2s;
}

.cg-topbar__link:hover {
    opacity: 1;
}

.cg-topbar__link--highlight {
    color: var(--amber);
    font-weight: 600;
    opacity: 1;
}

/* ===== HEADER ===== */
.cg-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}

.cg-header.scrolled {
    box-shadow: var(--shadow);
}

.cg-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.cg-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cg-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.cg-logo__name {
    font-family: '__Manrope_294701', '__Manrope_Fallback_294701', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 18px;
    color: var(--blue);
}

.cg-logo__sub {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Nav */
.cg-nav {
    flex: 1;
}

.cg-nav__group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cg-nav__item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: background .15s, color .15s;
    position: relative;
    cursor: pointer;
    line-height: 1;
}

.cg-nav__item:hover {
    background: var(--bg);
    color: var(--blue);
}

.cg-nav__item--dropdown {
    user-select: none;
}

.cg-nav__item--dropdown:hover .cg-dropdown {
    display: block;
}

/* Dropdown */
.cg-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    padding: 8px;
    animation: fadeDown .15s ease;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cg-dropdown__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.cg-dropdown__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s;
}

.cg-dropdown__item:hover {
    background: var(--blue-light);
    color: var(--blue);
}

.cg-dropdown__icon {
    font-size: 16px;
}

.cg-dropdown__footer {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    padding: 6px;
}

.cg-dropdown__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    transition: background .15s;
}

.cg-dropdown__row:hover {
    background: var(--blue-light);
}

.cg-dropdown__row strong {
    display: block;
    font-weight: 600;
    color: var(--text);
}

.cg-dropdown__row span {
    color: var(--muted);
    font-size: 12px;
}

.cg-dropdown__ricon {
    font-size: 20px;
    flex-shrink: 0;
}

/* Buttons */
.cg-header__cta {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.cg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    border: none;
}

.cg-btn--ghost {
    color: var(--text);
    background: transparent;
    border: 1.5px solid var(--border);
}

.cg-btn--ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.cg-btn--primary {
    background: var(--blue);
    color: #fff;
}

.cg-btn--primary:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26, 63, 170, .3);
}

.cg-btn--amber {
    background: var(--amber);
    color: #000;
    font-weight: 700;
}

.cg-btn--amber:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, .3);
}

.cg-btn--lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 10px;
}

.cg-btn--outline-white {
    border: 2px solid rgba(255, 255, 255, .4);
    color: #fff;
    background: transparent;
}

.cg-btn--outline-white:hover {
    background: rgba(255, 255, 255, .1);
    border-color: white;
}

/* Burger */
.cg-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    margin-left: auto;
}

.cg-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s;
}

/* ===== HERO ===== */
.cg-hero {
    background: linear-gradient(135deg, #07755d 0%, #062e24 50%, #024242 100%);
    padding: 96px 24px 80px;
    position: relative;
    overflow: hidden;
}

.cg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cg-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.cg-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cg-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.cg-hero__label span {
    color: var(--amber);
}

.cg-hero__title {
    font-family: '__Manrope_294701', '__Manrope_Fallback_294701', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    font-size: 40px;
}

.cg-hero__title em {
    color: var(--amber);
    font-style: italic;
}

.cg-hero__desc {
    font-size: 17px;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.7;
}

.cg-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cg-hero__stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.cg-hero__stat-num {
    font-family: '__Manrope_294701', '__Manrope_Fallback_294701', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 28px;
    color: #fff;
    display: block;
}

.cg-hero__stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
}

/* Hero visual card */
.cg-hero__visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cg-mockcard {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 20px;
    color: #fff;
    transition: transform .3s;
}

.cg-mockcard:hover {
    transform: translateX(6px);
}

.cg-mockcard__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
}

.cg-mockcard__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.cg-mockcard__bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cg-mockcard__bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
}

.cg-mockcard__bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, .15);
    border-radius: 3px;
    overflow: hidden;
}

.cg-mockcard__bar-fill {
    height: 100%;
    border-radius: 3px;
}

.cg-mockcard__score {
    font-weight: 700;
    color: #fff;
    min-width: 32px;
    text-align: right;
    font-size: 12px;
}

.cg-mockcard__q {
    font-size: 13px;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 12px;
    line-height: 1.5;
}

.cg-mockcard__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.cg-mockcard__opt {
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
}

.cg-mockcard__opt.correct {
    background: rgba(16, 185, 129, .25);
    border-color: #10b981;
    color: #6ee7b7;
}

/* ===== SECTION COMMONS ===== */
.cg-section {
    padding: 30px 24px;
}

.cg-section--gray {
    background: var(--bg);
}

.cg-section__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cg-section__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}

.cg-section__title {
    font-family: '__Manrope_294701', '__Manrope_Fallback_294701', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 16px;
}

.cg-section__desc {
    font-size: 16px;
    color: var(--muted);
    max-width: 540px;
    line-height: 1.7;
}

.cg-section__head {
    margin-bottom: 52px;
}

.cg-section__head--center {
    text-align: center;
}

.cg-section__head--center .cg-section__desc {
    margin: 0 auto;
}

/* ===== SUBJECTS GRID ===== */
.cg-subjects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cg-subject-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: #fff;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}

.cg-subject-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent, var(--blue));
    transform: scaleX(0);
    transition: transform .25s;
}

.cg-subject-card:hover {
    border-color: var(--accent, var(--blue));
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.cg-subject-card:hover::before {
    transform: scaleX(1);
}

.cg-subject-card__icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.cg-subject-card__name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cg-subject-card__meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
}

.cg-subject-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cg-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--blue-light);
    color: var(--blue);
}


/* =========subject accordion ============*/

.cg-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cg-accordion__item {
    border-radius: 22px;
    overflow: hidden;
    background: #1e3a8a;
    color: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.cg-accordion__item:nth-child(2) {
    background: #243b74;
}

.cg-accordion__item:nth-child(3) {
    background: #c84f2f;
}

.cg-accordion__item:nth-child(4) {
    background: #6d2b88;
}

.cg-accordion__header {
    width: 100%;
    border: none;
    background: transparent;
    color: #fff;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.cg-accordion__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cg-accordion__title {
    font-size: 22px;
    font-weight: 700;
}

.cg-accordion__arrow {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .15);
    font-size: 14px;
    transition: .3s ease;
}

.cg-accordion__item.active .cg-accordion__arrow {
    transform: rotate(180deg);
}

.cg-accordion__icons {
    display: flex;
    gap: 10px;
}

.cg-accordion__icons span {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .12);
    font-size: 18px;
}

.cg-accordion__body {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height .35s ease, padding .35s ease;
}

.cg-accordion__item.active .cg-accordion__body {
    max-height: 500px;
    padding: 0 24px 28px;
}

.cg-course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 700px;
}

.cg-course-box {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
}

.cg-course-box__title {
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
}

.cg-course-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: .25s ease;
}

.cg-course-link:hover {
    background: #f8fafc;
}

@media (max-width:768px) {

    .cg-accordion__header {
        padding: 18px;
    }

    .cg-accordion__title {
        font-size: 18px;
    }

    .cg-course-grid {
        grid-template-columns: 1fr;
    }

}


/* ===== FEATURES ===== */
.cg-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cg-feature {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    background: #fff;
    display: flex;
    gap: 20px;
    transition: box-shadow .2s, transform .2s;
}

.cg-feature:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.cg-feature:first-child {
    grid-column: span 2;
    flex-direction: row;
}

.cg-feature__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.cg-feature__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cg-feature__desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.cg-feature__pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.cg-feature__pill {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--muted);
}

/* ===== HOW IT WORKS ===== */
.cg-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cg-step {
    text-align: center;
    padding: 32px 20px;
}

.cg-step__num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-family: '__Manrope_294701', '__Manrope_Fallback_294701', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.cg-step__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cg-step__desc {
    font-size: 14px;
    color: var(--muted);
}

.cg-steps-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    gap: 0;
}

/* ===== PRICING ===== */
.cg-plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
}

.cg-plan {
    position: relative;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, .98) 0%,
            rgba(248, 250, 252, .96) 100%);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 28px;
    padding: 34px 26px;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, .04),
        0 22px 60px rgba(15, 23, 42, .08);
    transition: all .35s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cg-plan::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #60a5fa, #93c5fd);
}

.cg-plan:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 50px rgba(37, 99, 235, .10),
        0 35px 80px rgba(15, 23, 42, .12);
}

.cg-plan--pro {
    background: linear-gradient(180deg, #0b3b8c 0%, #06275e 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .10);
    transform: scale(1.045);
    box-shadow:
        0 25px 60px rgba(6, 47, 111, .30);
}

.cg-plan--pro::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fde68a);
}

.cg-plan--pro:hover {
    transform: scale(1.045) translateY(-8px);
}

.cg-plan__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #111827;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(245, 158, 11, .25);
}

.cg-plan__name {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 18px;
    color: #2563eb;
}

.cg-plan--pro .cg-plan__name {
    color: rgba(255, 255, 255, .75);
}

.cg-plan__price {
    font-size: 54px;
    line-height: .95;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #0f172a;
    margin-bottom: 10px;
}

.cg-plan--pro .cg-plan__price {
    color: #fff;
}

.cg-plan__period {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 28px;
}

.cg-plan--pro .cg-plan__period {
    color: rgba(255, 255, 255, .68);
}

.cg-plan__list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.cg-plan__list li {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    display: flex;
    gap: 10px;
}

.cg-plan__list li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.cg-plan--pro .cg-plan__list li {
    color: rgba(255, 255, 255, .88);
}

.cg-plan--pro .cg-plan__list li::before {
    background: rgba(110, 231, 183, .18);
    color: #6ee7b7;
}

.cg-plan__cta {
    display: block;
    text-align: center;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(241, 245, 249, .95);
    border: 1px solid rgba(255, 255, 255, .75);
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all .25s ease;
    margin-top: auto;
}

.cg-plan__cta:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
}

.cg-plan--pro .cg-plan__cta {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #111827;
    box-shadow: 0 10px 25px rgba(245, 158, 11, .25);
}

.cg-plan--pro .cg-plan__cta:hover {
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: #111827;
}

/* Responsive */
@media (max-width: 1100px) {
    .cg-plans {
        grid-template-columns: repeat(2, 1fr);
    }

    .cg-plan--pro {
        transform: none;
    }

    .cg-plan--pro:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 575px) {
    .cg-plans {
        grid-template-columns: 1fr;
    }

    .cg-plan {
        padding: 30px 22px;
        border-radius: 24px;
    }

    .cg-plan__price {
        font-size: 48px;
    }
}

/* ===== TESTIMONIALS ===== */
.cg-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cg-testimonial {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.cg-testimonial__stars {
    color: var(--amber);
    font-size: 14px;
    margin-bottom: 14px;
}

.cg-testimonial__text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 18px;
    font-style: italic;
}

.cg-testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cg-testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--blue);
    font-size: 14px;
}

.cg-testimonial__name {
    font-size: 14px;
    font-weight: 600;
}

.cg-testimonial__role {
    font-size: 12px;
    color: var(--muted);
}

/* ===== CTA BANNER ===== */
.cg-cta-banner {
    background: linear-gradient(135deg, #1a3faa, #1e4fd8);
    border-radius: 20px;
    padding: 64px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cg-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, .15), transparent 60%);
}

.cg-cta-banner__title {
    font-family: '__Manrope_294701', '__Manrope_Fallback_294701', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 16px;
    position: relative;
}

.cg-cta-banner__desc {
    font-size: 16px;
    opacity: .8;
    margin-bottom: 32px;
    position: relative;
}

.cg-cta-banner__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ===== FOOTER ===== */
.cg-footer {
    background: #0f172a;
    color: #fff;
    padding: 64px 24px 32px;
}

.cg-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cg-footer__top {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 32px;
}

.cg-footer__tagline {
    font-size: 13px;
    color: #64748b;
    margin-top: 14px;
    line-height: 1.6;
}

.cg-footer__socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.cg-footer__socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    color: #cbd5e1;
    text-decoration: none;
    transition: .25s;
}

.cg-footer__socials a:hover {
    background: #f59e0b;
    color: #111827;
}

.cg-footer__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.cg-footer__col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    margin-bottom: 16px;
}

.cg-footer__col a {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
    transition: color .15s;
}

.cg-footer__col a:hover {
    color: #fff;
}

.cg-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
}

.cg-footer__bottom a {
    color: var(--blue);
}



/* ===== MATH UPDATES CAROUSEL ===== */

.cg-math-updates {
    background: #fff;
}

.cg-math-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: center;
}

.cg-math-tabs {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-left: 36px;
}

.cg-math-tabs:before {
    content: "";
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e5e7eb;
}

.cg-math-tabs button {
    position: relative;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}

.cg-math-tabs button:before {
    content: "";
    position: absolute;
    left: -34px;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #cbd5e1;
}

.cg-math-tabs button.active {
    color: #2563eb;
}

.cg-math-tabs button.active:before {
    background: #2563eb;
    border-color: #2563eb;
}

.cg-math-carousel-wrap {
    position: relative;
}

.cg-math-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cg-math-card {
    min-height: 430px;
    border-radius: 20px;
    padding: 42px 38px;
    position: relative;
    overflow: hidden;
    border: 1.5px solid;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .06);
}

.cg-math-card:after {
    content: "π";
    position: absolute;
    right: 42px;
    bottom: 34px;
    font-size: 72px;
    color: rgba(15, 23, 42, .04);
    font-weight: 700;
}

.cg-math-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 28px;
    margin-bottom: 42px;
}

.cg-math-card h3 {
    margin: 0;
    font-size: 38px;
    font-weight: 800;
}

.cg-math-card span {
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 20px;
    margin: 28px 0;
}

.cg-math-card p {
    margin: 0;
    font-size: 21px;
    color: #111827;
    line-height: 1.5;
}

.cg-math-card a {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.cg-math-card--blue {
    background: linear-gradient(145deg, #f8fbff, #eef6ff);
    border-color: #93c5fd;
}

.cg-math-card--blue h3,
.cg-math-card--blue a {
    color: #2563eb;
}

.cg-math-card--blue span,
.cg-math-card--blue .cg-math-icon {
    background: #dbeafe;
}

.cg-math-card--pink {
    background: linear-gradient(145deg, #fff7fb, #fff1f5);
    border-color: #f9a8d4;
}

.cg-math-card--pink h3,
.cg-math-card--pink a {
    color: #ec4899;
}

.cg-math-card--pink span,
.cg-math-card--pink .cg-math-icon {
    background: #fce7f3;
}

.cg-math-card--red {
    background: linear-gradient(145deg, #fffaf8, #fff1ed);
    border-color: #fca5a5;
}

.cg-math-card--red h3,
.cg-math-card--red a {
    color: #ef4444;
}

.cg-math-card--red span,
.cg-math-card--red .cg-math-icon {
    background: #fee2e2;
}

.cg-math-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .1);
    font-size: 34px;
    cursor: pointer;
    z-index: 2;
}

.cg-math-prev {
    left: -24px;
}

.cg-math-next {
    right: -24px;
}

.cg-math-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.cg-math-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0;
    background: #cbd5e1;
}

.cg-math-dots button.active {
    background: #2563eb;
}

@media(max-width:992px) {
    .cg-math-layout {
        grid-template-columns: 1fr;
    }

    .cg-math-tabs {
        flex-direction: row;
        gap: 16px;
        overflow-x: auto;
        padding-left: 0;
    }

    .cg-math-tabs:before,
    .cg-math-tabs button:before {
        display: none;
    }

    .cg-math-tabs button {
        white-space: nowrap;
        background: #f1f5f9;
        padding: 10px 16px;
        border-radius: 999px;
    }

    .cg-math-tabs button.active {
        background: #2563eb;
        color: #fff;
    }

    .cg-math-carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }

    .cg-math-card {
        min-width: 82%;
        scroll-snap-align: start;
    }
}

@media(max-width:576px) {
    .cg-math-card {
        min-width: 90%;
        min-height: 360px;
        padding: 32px 26px;
    }

    .cg-math-card h3 {
        font-size: 32px;
    }

    .cg-math-card p {
        font-size: 18px;
    }

    .cg-math-nav {
        display: none;
    }
}

/* ===== MATH UPDATES PREMIUM EDUCATION DESIGN ===== */
.math-area {
    padding: 70px 0;
    background: #f4f8ff;
    overflow: hidden;
}

.math-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.math-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 45px;
}

.math-heading span {
    display: inline-block;
    margin-bottom: 10px;
    color: #2563eb;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
}

.math-heading h2 {
    margin: 0 0 14px;
    font-size: 38px;
    line-height: 1.2;
    color: #0f172a;
    font-weight: 900;
}

.math-heading p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

.math-row {
    margin-bottom: 48px;
}

.math-row-title {
    margin-bottom: 18px;
}

.math-row-title h3 {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
    font-weight: 900;
}

.math-slider-wrap {
    position: relative;
    padding: 0 58px;
}

.math-slider {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 8px 0 18px;
}

.math-slider::-webkit-scrollbar {
    display: none;
}

.math-card {
    flex: 0 0 calc((100% - 66px) / 4);
    min-width: calc((100% - 66px) / 4);
    min-height: 245px;
    border-radius: 26px;
    padding: 28px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
    transition: .3s ease;
}

.math-card:nth-child(2n) {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
}

.math-card:nth-child(3n) {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.math-card:nth-child(4n) {
    background: linear-gradient(135deg, #c2410c, #f97316);
}

.math-card:hover {
    transform: translateY(-7px);
}

.math-card::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -55px;
    top: -55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}

.math-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.math-card h4 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    position: relative;
    z-index: 2;
}

.math-card p {
    margin: 0 0 26px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .92);
    position: relative;
    z-index: 2;
}

.math-card a {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.math-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    font-size: 34px;
    font-weight: 700;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.math-arrow:hover {
    background: #2563eb;
    color: #ffffff;
}

.math-prev {
    left: 0;
}

.math-next {
    right: 0;
}

@media (max-width: 1199px) {
    .math-card {
        flex: 0 0 calc((100% - 44px) / 3);
        min-width: calc((100% - 44px) / 3);
    }
}

@media (max-width: 991px) {
    .math-card {
        flex: 0 0 calc((100% - 22px) / 2);
        min-width: calc((100% - 22px) / 2);
    }

    .math-heading h2 {
        font-size: 30px;
    }
}

@media (max-width: 575px) {
    .math-area {
        padding: 50px 0;
    }

    .math-slider-wrap {
        padding: 0;
    }

    .math-arrow {
        display: none;
    }

    .math-card {
        flex: 0 0 255px;
        min-width: 255px;
        min-height: 225px;
        padding: 24px;
    }

    .math-card h4 {
        font-size: 24px;
    }
}

/* ========================================= */
/* EXAM SECTION */
/* ========================================= */

.cg-exam-section {
    background: #dceef8;
    padding: 90px 20px;
    position: relative;
    overflow: hidden;
}

.cg-exam-container {
    max-width: 1180px;
    margin: auto;
}

/* heading */

.cg-exam-heading {
    text-align: center;
    max-width: 760px;
    margin: auto auto 35px;
}

.cg-exam-heading h2 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
    color: #0b2e63;
    margin-bottom: 14px;
}

.cg-exam-heading p {
    color: #46627d;
    font-size: 15px;
    line-height: 1.8;
}

/* tabs */

.cg-exam-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.cg-exam-tabs button {
    border: none;
    background: #edf5fa;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #35506b;
    cursor: pointer;
    transition: .3s;
}

.cg-exam-tabs button.active {
    background: #0f82c8;
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 130, 200, .25);
}

/* MAIN BOX */

.cg-exam-box {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 210px;
    box-shadow:
        0 25px 60px rgba(15, 50, 90, .10),
        0 4px 10px rgba(15, 50, 90, .05);
}

/* LEFT */

.cg-exam-left {
    padding: 24px 28px 30px;
    border-right: 1px solid #edf2f6;
}

.cg-exam-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.cg-exam-badge {
    background: #d9efff;
    color: #1684cb;
    font-size: 10px;
    font-weight: 800;
    padding: 7px 10px;
    border-radius: 5px;
    letter-spacing: .5px;
}

.cg-exam-level {
    font-size: 12px;
    font-weight: 700;
    color: #f59e0b;
}

.cg-exam-level span {
    margin-left: 5px;
    letter-spacing: 2px;
}

/* question */

.cg-exam-question p {
    font-size: 15px;
    line-height: 1.9;
    color: #123456;
    font-weight: 500;
    margin-bottom: 28px;
}

/* image */

.cg-question-image {
    text-align: center;
    margin-bottom: 32px;
}

.cg-question-image img {
    max-width: 420px;
    width: 100%;
    object-fit: contain;
}

/* options */

.cg-options {
    display: grid;
    gap: 16px;
}

.cg-option {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #0b2e63;
}

.cg-option span {
    width: 30px;
}

/* RIGHT */

.cg-exam-right {
    background: #fbfdff;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cg-exam-right button {
    border: none;
    background: #eef5fa;
    border-radius: 8px;
    padding: 14px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #24425f;
    cursor: pointer;
    transition: .3s;

    display: flex;
    align-items: center;
    gap: 10px;
}

.cg-exam-right button:hover {
    background: #e3eef7;
}

.cg-exam-right button.active {
    background: #0f82c8;
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 130, 200, .18);
}

.cg-exam-right button span {
    margin-left: auto;
    background: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #5f7184;
}

.cg-exam-right button.active span {
    color: #0f82c8;
}

.cg-exam-right a {
    margin-top: 18px;
    font-size: 13px;
    font-weight: 700;
    color: #486480;
    text-decoration: none;
}

.cg-exam-hint {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f4f9fd;
    border: 1px solid #e3eef7;
    font-size: 14px;
    font-weight: 700;
    color: #46627d;
}

body.cg-modal-open {
    overflow: hidden;
}

.cg-exam-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cg-exam-modal.is-open {
    display: flex;
}

.cg-exam-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 28, 50, .58);
    backdrop-filter: blur(8px);
}

.cg-exam-modal__dialog {
    position: relative;
    width: min(620px, 100%);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(8, 28, 50, .30);
    overflow: hidden;
    animation: cgModalIn .22s ease-out;
}

.cg-exam-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #eef5fa;
    color: #24425f;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.cg-exam-modal__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 30px 72px 24px 30px;
    background: linear-gradient(135deg, #f2f9ff 0%, #ffffff 100%);
    border-bottom: 1px solid #e8f1f8;
}

.cg-exam-modal__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #0f82c8;
    color: #fff;
    font-size: 22px;
    flex: 0 0 auto;
}

.cg-exam-modal__eyebrow {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1684cb;
}

.cg-exam-modal__head h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    color: #0b2e63;
}

.cg-exam-modal__badge {
    margin-left: auto;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f59e0b;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.cg-exam-modal__body {
    padding: 28px 30px 34px;
}

.cg-exam-modal__body p {
    margin: 0;
    color: #344f6d;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-line;
}

@keyframes cgModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.qb-modal-open {
    overflow: hidden;
}

.qb-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.qb-modal.is-open {
    display: flex;
}

.qb-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 22, 42, .58);
    backdrop-filter: blur(8px);
}

.qb-modal__dialog {
    position: relative;
    width: min(680px, 100%);
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(8, 28, 50, .30);
    animation: cgModalIn .22s ease-out;
}

.qb-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #eef5fa;
    color: #24425f;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.qb-modal__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 30px 72px 24px 30px;
    background: linear-gradient(135deg, #f2f9ff 0%, #ffffff 100%);
    border-bottom: 1px solid #e8f1f8;
}

.qb-modal__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #0f82c8;
    color: #fff;
    font-size: 22px;
    flex: 0 0 auto;
}

.qb-modal__eyebrow {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1684cb;
}

.qb-modal__head h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    color: #0b2e63;
}

.qb-modal__body {
    padding: 28px 30px 34px;
}

.qb-modal__body p {
    margin: 0;
    color: #344f6d;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-line;
}

/* responsive */

@media(max-width:991px) {

    .cg-exam-box {
        grid-template-columns: 1fr;
    }

    .cg-exam-left {
        border-right: none;
        border-bottom: 1px solid #edf2f6;
    }

    .cg-exam-right {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cg-exam-right button {
        flex: 1 1 200px;
    }

}

@media(max-width:768px) {

    .cg-exam-heading h2 {
        font-size: 30px;
    }

    .cg-exam-section {
        padding: 70px 16px;
    }

}

@media(max-width:575px) {

    .cg-exam-heading h2 {
        font-size: 24px;
    }

    .cg-exam-left {
        padding: 20px 18px 24px;
    }

    .cg-exam-tabs {
        gap: 10px;
    }

    .cg-exam-tabs button {
        width: 100%;
    }

    .cg-exam-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

}

/* Responsive */
@media (max-width: 768px) {
    .ib-practice-head h2 {
        font-size: 24px;
    }

    .ib-question-card {
        grid-template-columns: 1fr;
    }

    .ib-question-main {
        border-right: 0;
        border-bottom: 1px solid #e7edf3;
    }

    .ib-question-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ib-question-side button {
        flex: 1 1 140px;
    }

    .ib-question-side a {
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .ib-practice-section {
        padding: 40px 12px;
    }

    .ib-subject-tabs button {
        width: 100%;
    }

    .ib-question-main {
        padding: 16px;
    }

    .ib-question-top {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .cg-hero__inner {
        grid-template-columns: 1fr;
    }

    .cg-hero__visual {
        display: none;
    }

    .cg-subjects {
        grid-template-columns: 1fr 1fr;
    }

    .cg-features {
        grid-template-columns: 1fr;
    }

    .cg-feature:first-child {
        grid-column: span 1;
    }

    .cg-steps {
        grid-template-columns: 1fr 1fr;
    }

    .cg-testimonials {
        grid-template-columns: 1fr;
    }

    .cg-plans {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .cg-footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cg-footer__cols {
        grid-template-columns: 1fr 1fr;
    }

    .cg-topbar__left {
        display: none;
    }
}

@media (max-width: 640px) {
    .cg-nav {
        display: none;
    }

    .cg-burger {
        display: flex;
    }

    .cg-header__cta {
        display: none;
    }

    .cg-subjects {
        grid-template-columns: 1fr;
    }

    .cg-steps {
        grid-template-columns: 1fr;
    }

    .cg-cta-banner {
        padding: 40px 24px;
    }

    .cg-footer__cols {
        grid-template-columns: 1fr 1fr;
    }
}


/* ===== TOOLS TABS ===== */
/* ===== COMPACT VERSION ===== */

.cg-tools-section {
    padding: 80px 20px;
    background: #f8fafc;
}

.cg-tools-wrap {
    max-width: 1150px;
    margin: auto;
}

.cg-tools-tabs input {
    display: none;
}

.cg-tools-tabs {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    margin-top: 40px;
    align-items: start;
}

/* ===== LEFT MENU ===== */

.cg-tools-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cg-tool-nav {
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: .25s ease;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.cg-tool-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.cg-tool-nav__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b3478;
    font-size: 16px;
    flex-shrink: 0;
}

.cg-tool-nav__arrow {
    margin-left: auto;
    font-size: 13px;
}

/* ===== RIGHT CONTENT ===== */

.cg-tools-content {
    position: relative;
}

.cg-tool-panel {
    display: none;
}

.cg-tool-card {
    background: linear-gradient(180deg,
            #dff0ff 0%,
            #cfe7ff 100%);
    border-radius: 22px;
    overflow: hidden;
    padding: 18px;
}

.cg-tool-card__image {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 18px;
}

.cg-tool-card__image img {
    width: 100%;
    display: block;
}

.cg-tool-card__body h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
    color: #0f172a;
}

.cg-tool-card__body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
}

/* ===== ACTIVE ===== */

#tab-questionbank:checked~.cg-tools-menu label[for="tab-questionbank"],
#tab-papers:checked~.cg-tools-menu label[for="tab-papers"],
#tab-practice:checked~.cg-tools-menu label[for="tab-practice"],
#tab-concepts:checked~.cg-tools-menu label[for="tab-concepts"],
#tab-prediction:checked~.cg-tools-menu label[for="tab-prediction"],
#tab-flashcards:checked~.cg-tools-menu label[for="tab-flashcards"],
#tab-bootcamps:checked~.cg-tools-menu label[for="tab-bootcamps"],
#tab-ai:checked~.cg-tools-menu label[for="tab-ai"] {
    border-color: #0b3478;
    background: #f8fbff;
}

#tab-questionbank:checked~.cg-tools-content .panel-questionbank,
#tab-papers:checked~.cg-tools-content .panel-papers,
#tab-practice:checked~.cg-tools-content .panel-practice,
#tab-concepts:checked~.cg-tools-content .panel-concepts,
#tab-prediction:checked~.cg-tools-content .panel-prediction,
#tab-flashcards:checked~.cg-tools-content .panel-flashcards,
#tab-bootcamps:checked~.cg-tools-content .panel-bootcamps,
#tab-ai:checked~.cg-tools-content .panel-ai {
    display: block;
}

/* ===== MOBILE ===== */

@media(max-width:992px) {

    .cg-tools-tabs {
        grid-template-columns: 1fr;
    }

}

@media(max-width:768px) {

    .cg-tools-section {
        padding: 60px 16px;
    }

    .cg-tools-tabs {
        gap: 20px;
    }

    .cg-tool-nav {
        padding: 10px 12px;
        font-size: 13px;
    }

    .cg-tool-nav__icon {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .cg-tool-card {
        padding: 14px;
    }

    .cg-tool-card__body h3 {
        font-size: 20px;
    }

    .cg-tool-card__body p {
        font-size: 13px;
    }

}

/* ==========subject grid=========== */

.cg-subject-area {
    padding: 40px 16px;
}

.cg-subject-box {
    max-width: 1120px;
    margin: 0 auto;
    background: #f5f5f6;
    border-radius: 22px;
    padding: 28px 26px;
}

.cg-subject-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.cg-subject-card {
    min-height: 160px;
    padding: 8px 28px 18px 28px;
    border-right: 1px solid #dddddf;
}

.cg-subject-card:nth-child(6n) {
    border-right: 0;
}

.cg-subject-card:nth-child(n + 7) {
    padding-top: 30px;
}

.cg-subject-icon {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 14px;
    color: #17365d;
    opacity: .85;
}

.cg-subject-title {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    color: #002b5c;
}

.cg-subject-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cg-subject-list li {
    font-size: 12px;
    line-height: 1.8;
    color: #00376d;
    font-weight: 500;
}

/* Hover */
.cg-subject-card {
    transition: all .25s ease;
    border-radius: 14px;
}

.cg-subject-card:hover {
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(0, 43, 92, .08);
    transform: translateY(-3px);
}

.cg-subject-box {
    max-width: 1120px;
    margin: 0 auto;
    background: linear-gradient(180deg, #f8f8f9 0%, #f1f2f4 100%);
    border-radius: 22px;
    padding: 28px 26px;
    box-shadow: 0 18px 45px rgba(0, 31, 84, 0.06);
    border: 1px solid rgba(0, 43, 92, 0.06);
}

.cg-subject-card:hover {
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(0, 43, 92, .08);
    transform: translateY(-3px);
    border-radius: 16px;
}

.cg-subject-title {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
    color: #002b5c;
}

.cg-subject-list li a {
    display: inline-flex;
    align-items: center;
    color: #00376d;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
}

.cg-subject-list li a:hover {
    color: #0b63ce;
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 991px) {
    .cg-subject-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .cg-subject-card:nth-child(6n) {
        border-right: 1px solid #dddddf;
    }

    .cg-subject-card:nth-child(3n) {
        border-right: 0;
    }
}

@media (max-width: 575px) {
    .cg-subject-box {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .cg-subject-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cg-subject-card {
        padding: 18px 16px;
        min-height: 145px;
    }

    .cg-subject-card:nth-child(3n) {
        border-right: 1px solid #dddddf;
    }

    .cg-subject-card:nth-child(2n) {
        border-right: 0;
    }

    .cg-subject-card:nth-child(n + 7) {
        padding-top: 18px;
    }
}
