/* Course Detail Redesign Styles */

@import 'variables.css';

/* Course identity: one concise, crawlable heading above the learning area. */
.ag-change-course-level {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0 auto;
    padding: .38rem .68rem;
    border: 1px solid rgba(8,116,87,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.58);
    color: #087457 !important;
    font-size: .76rem;
    font-weight: 750;
    text-decoration: none !important;
}
.ag-change-course-level:hover { background: #fff; border-color: rgba(8,116,87,.4); }
.ag-course-page-heading {
    grid-column: 1 / -1;
    padding: 0 .25rem .4rem;
}
.ag-course-page-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .42rem;
}
.ag-course-page-heading.is-offer-campaign-heading .ag-course-heading-row h1 { min-width: 0; margin: 0; }
.ag-recorded-current-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .55rem; margin-top: .5rem; }
.ag-recorded-current-selection { color: #5d736a; font-size: .75rem; font-weight: 650; line-height: 1.3; }
.ag-recorded-course-switcher { grid-column: 2; grid-row: 1; width: max-content; max-width: 100%; min-width: 0; justify-self: end; }
.ag-recorded-course-switcher[open] { grid-column: 1 / -1; grid-row: 2; width: 100%; }
.ag-recorded-course-switcher > summary { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: .35rem; padding: .4rem .7rem; border: 1px solid #c9dfd4; border-radius: 999px; background: #fff; color: #087457; font-size: .75rem; font-weight: 760; line-height: 1; list-style: none; cursor: pointer; box-shadow: 0 2px 7px rgba(18,61,46,.045); }
.ag-recorded-course-switcher > summary::-webkit-details-marker { display: none; }
.ag-recorded-course-switcher > summary::marker { content: ''; }
.ag-recorded-course-switcher > summary:hover,.ag-recorded-course-switcher[open] > summary { border-color: #82b99d; background: #f4fbf7; }
.ag-recorded-switcher-close-label { display: none; }
.ag-recorded-course-switcher[open] .ag-recorded-switcher-open-label { display: none; }
.ag-recorded-course-switcher[open] .ag-recorded-switcher-close-label { display: inline; }
.ag-recorded-course-switcher > summary:focus-visible,.ag-recorded-course-choice:focus-visible,.ag-recorded-course-switcher-close:focus-visible { outline: 3px solid #75cba6; outline-offset: 2px; }
.ag-recorded-course-switcher-panel { box-sizing: border-box; width: 100%; margin-top: .6rem; padding: 13px; border: 1px solid #d5e7de; border-radius: 14px; background: #fff; box-shadow: 0 3px 12px rgba(18,61,46,.07); }
.ag-recorded-course-switcher-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.ag-recorded-course-switcher-panel-heading > p { margin: 0; color: #5d736a; font-size: .78rem; font-weight: 700; line-height: 1.3; }
.ag-recorded-course-switcher-close { display: inline-flex; min-height: 36px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 5px; padding: 5px 9px; border: 1px solid #d5e7de; border-radius: 999px; background: #f7fbf8; color: #42685a; font: inherit; font-size: .7rem; font-weight: 700; cursor: pointer; }
.ag-recorded-course-switcher-close:hover { border-color: #91c4a9; background: #eef8f2; }
.ag-recorded-course-switcher-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.ag-recorded-course-switcher-groups section { min-width: 0; }
.ag-recorded-course-switcher-groups h2 { margin: 0 0 6px; color: #173d30; font-size: .78rem; font-weight: 800; }
.ag-recorded-course-choice { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 5px; margin-top: 5px; padding: 7px 9px; border: 1px solid #e1ece6; border-radius: 9px; background: #fbfdfb; color: #355c4d !important; font-size: .74rem; font-weight: 680; line-height: 1.2; text-decoration: none !important; }
.ag-recorded-course-choice:hover { border-color: #91c4a9; background: #f0faf4; }
.ag-recorded-course-choice.is-current { border-color: #acd6bf; background: #eaf7ef; color: #087457 !important; }
.ag-recorded-course-choice small { color: #087457; font-size: .55rem; font-weight: 850; letter-spacing: .025em; text-transform: uppercase; }
@media (max-width: 639px) {
    .ag-course-page-heading.is-offer-campaign-heading { padding-bottom: .35rem; }
    .ag-course-page-heading.is-offer-campaign-heading h1 { font-size: clamp(1.45rem, 7vw, 1.8rem); line-height: 1.12; }
    .ag-recorded-current-row { margin-top: .42rem; }
    .ag-recorded-current-selection { font-size: .67rem; }
    .ag-recorded-course-switcher > summary { min-height: 36px; padding: .35rem .52rem; font-size: .69rem; }
    .ag-recorded-course-switcher-panel { padding: 11px; }
    .ag-recorded-course-switcher-panel-heading > p { font-size: .72rem; }
    .ag-recorded-course-switcher-groups { gap: 9px; }
    .ag-recorded-course-choice { min-height: 40px; padding: 6px 7px; font-size: .68rem; }
}

/* Final course-detail polish: compact plan choice, clear state and calm tabs. */
.ag-purchase-selector-heading {
    margin: 0 0 1rem;
}

.ag-purchase-selector-heading h2 {
    margin: 0 0 .3rem;
    color: #10231c;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.ag-purchase-selector-heading p {
    margin: 0;
    color: #5b6d66;
    font-size: .9rem;
    line-height: 1.45;
}

.ag-card-title-wrap {
    flex: 1;
    flex-wrap: wrap;
}

.ag-plan-type {
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef7f2;
    color: #087a50;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.ag-plan-summary {
    margin: -.1rem 0 .65rem 1.9rem;
    color: #5b6d66;
    font-size: .78rem;
    line-height: 1.4;
}

.ag-purchase-card.selected {
    box-shadow: 0 10px 24px rgba(5,150,105,.11) !important;
}

.ag-purchase-card:focus-visible {
    outline: 3px solid rgba(5,150,105,.25);
    outline-offset: 3px;
}

.ag-course-tabs-wrapper {
    border-radius: 18px !important;
    border-color: #dce9e2 !important;
    box-shadow: 0 10px 28px rgba(18,61,46,.06) !important;
}

.ag-course-tabs-nav {
    gap: 4px;
    padding: 6px;
    overflow-x: auto;
    background: #f7faf8;
}

.ag-course-tabs-nav .ag-tab-btn {
    min-width: max-content;
    border-radius: 10px;
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
}

@media (max-width: 640px) {
    .ag-purchase-card { padding: 14px !important; }
    .ag-plan-summary { margin-left: 1.9rem; }
    .ag-course-tabs-nav .ag-tab-btn { font-size: .78rem !important; }
}

.ag-course-page-kicker {
    display: block;
    margin: 0;
    color: #087a50;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ag-course-page-heading h1 {
    margin: 0;
    color: #10231c;
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.ag-course-page-heading p {
    max-width: 720px;
    margin: .55rem 0 0;
    color: #52675f;
    font-size: .96rem;
    line-height: 1.55;
}

@media (max-width: 639px) {
    .ag-course-page-heading { padding: 0 0 .25rem; }
    .ag-course-page-heading h1 { font-size: clamp(1.55rem, 8vw, 2rem); }
    .ag-course-page-heading p { display: none; }
    .ag-course-page-meta { margin-bottom: .32rem; }
    .ag-course-page-kicker { font-size: .66rem; letter-spacing: .045em; }
    .ag-change-course-level { padding: .3rem .55rem; font-size: .68rem; white-space: nowrap; }
}

/* ==========================================================================
   Layout: Full-page background + clean container + column swap
   ========================================================================== */

/* Background on the full page, not the wrapper */
body.tax-ag_course_categories {
    background-color: #EDF4F9;
}

/* Clean container – no card look, no extra spacing */
.student-lesson-wrapper {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
    background-color: transparent !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    padding: 2rem 0 !important;
}

/* Desktop grid: content left, sidebar right */
@media (min-width: 1024px) {
    .student-lesson-wrapper {
        grid-template-columns: 1fr 400px !important;
        padding: 2rem 0 3rem !important;
        gap: 1.5rem !important;
    }

    .student-lesson-wrapper>.lesson-details {
        order: 1;
    }

    .student-lesson-wrapper>.lesson-sidebar {
        order: 2;
    }
}

/* Keep tablet/mobile focused on the active lesson. The compiled theme CSS
   switches to a two-column syllabus layout too early (640px), which crushes
   the lesson player and purchase cards on phones and portrait tablets. */
@media (max-width: 1023px) {
    body.tax-ag_course_categories .student-lesson-wrapper {
        display: block !important;
        max-width: 100% !important;
        padding: 1rem !important;
    }

    body.tax-ag_course_categories .student-lesson-wrapper > .lesson-sidebar {
        display: none !important;
    }

    body.tax-ag_course_categories .student-lesson-wrapper > .lesson-details {
        width: 100% !important;
        min-width: 0 !important;
    }
}

.pricing-section-new {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
}

@media (max-width: 640px) {
    .pricing-cards-wrapper {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    position: relative;
    border-radius: 2rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.basic {
    background-color: var(--ag-navy);
    color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pricing-card.subscription {
    background-color: var(--ag-yellow-light);
    color: var(--ag-navy);
    border: 2px solid var(--ag-yellow);
    box-shadow: 0 10px 15px -3px rgba(250, 204, 21, 0.2);
}

.pricing-card .recommended-badge {
    position: absolute;
    top: -12px;
    background-color: var(--ag-yellow);
    color: var(--ag-navy);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.25rem 1.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pricing-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pricing-card.basic .icon-wrapper {
    background-color: rgba(6, 213, 102, 0.2);
    color: #00d566;
}

.pricing-card.subscription .icon-wrapper {
    background-color: var(--ag-yellow);
    color: white;
}

.pricing-card .plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.pricing-card .plan-price {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1.75rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.pricing-card.subscription .plan-price {
    background-color: rgba(250, 204, 21, 0.3);
}

/* New Pricing Table Redesign */
.pricing-table-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-table {
    display: grid;
    grid-template-columns: 1.5fr 1.25fr 1.25fr;
    border-radius: 1rem;
    border: 1px solid var(--ag-slate-200);
}

@media (max-width: 640px) {
    .pricing-table {
        grid-template-columns: 1.3fr 1fr 1fr;
    }
}

.pt-cell {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid var(--ag-slate-200);
}

.pt-feature {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    background-color: transparent;
    border-right: none;
    border-bottom: 1px solid var(--ag-slate-200);
}

.pt-header-basic {
    background-color: #f0fdf4;
    color: var(--ag-navy);
    border-top-left-radius: 1rem;
    font-weight: 800;
    font-size: 1rem;
    padding: 1rem;
}

.pt-header-sub {
    background-color: var(--ag-yellow-light);
    color: var(--ag-navy);
    border-top-right-radius: 1rem;
    font-weight: 800;
    font-size: 1rem;
    padding: 1rem;
}

.pt-cell-basic {
    background-color: #f0fdf4;
    color: var(--ag-navy);
    border-bottom: 1px solid var(--ag-slate-200);
}

.pt-cell-sub {
    background-color: var(--ag-yellow-light);
    color: var(--ag-navy);
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
}

.pt-last-row .pt-cell-basic {
    border-bottom-left-radius: 1rem;
    border-bottom: none;
}

.pt-last-row .pt-cell-sub {
    border-bottom-right-radius: 1rem;
    border-bottom: none;
}

.pt-feature .feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pt-feature .feature-name {
    font-weight: 700;
    color: var(--ag-slate-800);
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .pt-feature .feature-name {
        font-size: 0.75rem;
    }

    .pt-feature .feature-icon {
        width: 28px;
        height: 28px;
    }

    .pt-feature .feature-icon svg {
        width: 16px;
        height: 16px;
    }
}

.pt-status-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.15rem;
}

.pt-status-icon.included {
    background-color: #22c55e;
    color: white;
}

.pt-status-icon.not-included {
    background-color: #ef4444;
    color: white;
}

.pt-status-icon.not-included svg {
    width: 10px;
    height: 10px;
    stroke-width: 3;
}

.pt-status-icon svg {
    width: 10px;
    height: 10px;
}

.pt-status-text {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.9;
}

.pt-action-row {
    display: grid;
    grid-template-columns: 1.5fr 1.25fr 1.25fr;
    margin-top: 1rem;
    gap: 0.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .pt-action-row {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 0 4px;
    }

    .pt-action-empty {
        display: none;
    }
}

.pt-btn-wrapper {
    padding: 0 0.25rem;
}

.pt-buy-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 1rem;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    text-align: center;
    width: 100%;
}

.pt-buy-btn:hover {
    transform: translateY(-4px);
}

.pt-buy-btn.basic {
    background: #046c4e;
    color: white;
    box-shadow: 0 4px 14px rgba(4, 108, 78, 0.3);
    border: 1px solid #046c4e;
}

.pt-buy-btn.sub {
    background: #facc15;
    color: var(--ag-navy);
    box-shadow: 0 4px 14px rgba(250, 204, 21, 0.4);
    border: 1px solid #facc15;
}

.pt-buy-btn.purchased {
    background: #ecfdf5 !important;
    border: 1px solid #10b981 !important;
    color: #065f46 !important;
    box-shadow: none !important;
    cursor: default;
}

.pt-buy-btn.purchased .pt-btn-title {
    color: #065f46 !important;
}

.pt-buy-btn.purchased .pt-btn-price {
    color: #047857 !important;
    opacity: 0.8;
}

.pt-btn-title {
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.pt-btn-price {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.9;
}

@media (max-width: 640px) {
    .pt-buy-btn {
        padding: 0.6rem 0.4rem;
        border-radius: 1rem;
    }

    .pt-btn-title {
        font-size: 0.7rem;
    }

    .pt-btn-price {
        font-size: 0.6rem;
    }

    .pt-header-basic,
    .pt-header-sub {
        font-size: 0.8rem;
        padding: 1rem 0.5rem;
    }

    .pt-cell {
        padding: 0.75rem 0.25rem;
    }

    .pt-feature {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
    }
}

/* Redesigning existing elements */
.lesson-content {
    border-radius: 2rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1) !important;
}

.ag-course-tabs-wrapper {
    margin-top: 2rem !important;
}

.ag-lesson-vid-wrapper {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.lesson-sidebar .ag-btn,
.lesson-details .ag-btn,
.ag-btn {
    border-radius: 9999px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    padding: 0.65rem 1.5rem !important;
    letter-spacing: normal !important;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .comparison-row {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .comparison-row .feature-name {
        padding: 1rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .comparison-row .feature-icon {
        width: 32px;
        height: 32px;
    }

    .comparison-row .status-cell {
        padding: 1rem 0.5rem;
        font-size: 0.65rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    /* Tighten wrapper padding on mobile */
    .student-lesson-wrapper {
        padding: 0 0.5rem 1.5rem !important;
    }

    .student-lesson-wrapper .lesson-content {
        padding: 0.75rem 0.5rem !important;
        border-radius: 1.25rem !important;
    }

    .student-lesson-wrapper .ag-lesson-vid-wrapper {
        border-radius: 0.8rem !important;
    }
}



.highlighted-course-points ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .highlighted-course-points ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

.highlighted-course-points li {
    background-color: #f0fdf4;
    /* emerald-50 */
    border: 1px solid #d1fae5;
    /* emerald-200 */
    color: #064e3b;
    /* emerald-900 */
    padding: 0.75rem 1rem;
    margin-bottom: 0 !important;
    border-radius: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.highlighted-course-points li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .ag-change-course-level { font-size: .68rem; }
    .highlighted-course-points ul {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 0.25rem !important;
        padding: 0 !important;
    }
    .highlighted-course-points li {
        padding: 0.4rem 0.3rem !important;
        font-size: 0.65rem !important; /* Compact font size */
        border-radius: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        flex: 1 1 auto !important;
    }
    .highlighted-course-points li::before {
        width: 14px !important;
        height: 14px !important;
        font-size: 8px !important;
        margin-right: 0.25rem !important;
        flex-shrink: 0 !important;
    }
}

.certificate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.certificate-card:hover {
    transform: translateY(-10px) !important;
    /* Lifts the card up */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.16), 0 10px 10px -5px rgba(0, 0, 0, 0.16) !important;
}

.certificate-card img {
    transition: transform 0.5s ease !important;
}

.certificate-card:hover img {
    transform: scale(1.05);
    /* Subtle zoom on the certificate image */
}

/* ==========================================================================
   AzanGuru Curriculum Redesign Styles
   ========================================================================== */

/* Curriculum sidebar list */
.ag-curriculum-list {
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 4px;
}

/* Scrollbar styles for curriculum list */
.ag-curriculum-list::-webkit-scrollbar {
    width: 6px;
}

.ag-curriculum-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 99px;
}

.ag-curriculum-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}

.ag-curriculum-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.student-lesson-wrapper .ag-curriculum-item {
    display: block;
    border: 1.5px solid #f1f5f9;
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    transition: all 0.25s ease;
    text-decoration: none !important;
    background-color: #ffffff !important;
}

.student-lesson-wrapper .ag-curriculum-item .ag-lesson-title {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.15rem;
    line-height: 1.3;
    color: #374151 !important;
}

.student-lesson-wrapper .ag-curriculum-item.active {
    background-color: #064E3B !important;
    border-color: #064E3B !important;
    box-shadow: 0 4px 6px -1px rgba(6, 78, 59, 0.15);
}

.student-lesson-wrapper .ag-curriculum-item.active .ag-lesson-title {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.student-lesson-wrapper .ag-curriculum-item.active i,
.student-lesson-wrapper .ag-curriculum-item.active span {
    color: #ffffff !important;
}

.student-lesson-wrapper .ag-curriculum-item:not(.active):hover {
    border-color: #cbd5e1 !important;
    background-color: #f8fafc !important;
    transform: translateX(3px);
}

.student-lesson-wrapper .ag-curriculum-item:not(.active):hover .ag-lesson-title {
    color: #0f172a !important;
}

.student-lesson-wrapper .ag-curriculum-item.active:hover {
    background-color: #053e2f !important;
    border-color: #053e2f !important;
}

.student-lesson-wrapper .ag-curriculum-item.active:hover .ag-lesson-title {
    color: #ffffff !important;
}

/* Active lesson sub-tabs */
.student-lesson-wrapper .ag-lesson-tabs {
    margin-top: 0.5rem;
    margin-left: 1rem;
    padding-left: 0.75rem;
    border-left: 2px solid #a7f3d0 !important;
}

.student-lesson-wrapper a.ag-lesson-tab-link.title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem !important;
    border-radius: 8px;
    color: #475569 !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    background-color: transparent !important;
    border-width: 0 !important;
}

.student-lesson-wrapper a.ag-lesson-tab-link.title i {
    color: #6b7280 !important;
}

.student-lesson-wrapper a.ag-lesson-tab-link.title:hover {
    color: #065f46 !important;
    background-color: #f0fdf4 !important;
}

.student-lesson-wrapper a.ag-lesson-tab-link.title:hover i {
    color: #059669 !important;
}

.student-lesson-wrapper a.ag-lesson-tab-link.title.active {
    color: #047857 !important;
    background-color: #ecfdf5 !important;
    font-weight: 800 !important;
}

.student-lesson-wrapper a.ag-lesson-tab-link.title.active i {
    color: #059669 !important;
}

/* Mobile Curriculum Accordion */
.ag-mobile-curriculum-accordion {
    border: 1.5px solid #f1f5f9;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.ag-mobile-curriculum-accordion .ag-accordion-trigger {
    background-color: #f8fafc;
    transition: background-color 0.2s ease;
}

.ag-mobile-curriculum-accordion .rotate-180 {
    transform: rotate(180deg);
}

/* Mobile active lesson override */
.ag-mobile-curriculum-accordion .ag-accordion-content a.active {
    background-color: #064E3B !important;
    border-color: #064E3B !important;
    color: #ffffff !important;
}

.ag-mobile-curriculum-accordion .ag-accordion-content a.active span,
.ag-mobile-curriculum-accordion .ag-accordion-content a.active i {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* Paywall styles */
.lesson-content.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

@media (min-width: 640px) {
    .lesson-content.text-center {
        padding: 5rem 2rem;
    }
}

/* ==========================================================================
   Lesson Content Card – Professional Redesign
   ========================================================================== */

.ag-lesson-content-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Header bar */
.ag-lesson-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #064E3B 0%, #065f46 100%);
    gap: 0.75rem;
}

.ag-lesson-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.ag-lesson-play-icon {
    flex-shrink: 0;
    font-size: 1.75rem;
    color: #34d399;
    line-height: 1;
}

.ag-lesson-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a7f3d0;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.ag-lesson-title-main {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ag-lesson-next-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ag-lesson-next-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    transform: scale(1.08);
}

/* Video container */
.ag-lesson-video-container {
    padding: 0.5rem;
    background: #fff;
}

.ag-lesson-video-container .ag-lesson-vid-wrapper {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ag-lesson-video-container video {
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* PDF resource bar */
.ag-lesson-pdf-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: #fff;
    border-top: 1px solid #d1fae5;
}

.ag-pdf-icon-wrapper {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 1.1rem;
}

.ag-pdf-info {
    flex: 1;
    min-width: 0;
}

.ag-pdf-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.ag-pdf-filename {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ag-pdf-download-btn,
.ag-pdf-unlock-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.ag-pdf-download-btn {
    background: #064E3B !important;
    color: #ffffff !important;
}

.ag-pdf-download-btn:hover {
    background: #053e2f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(6, 78, 59, 0.2);
}

.ag-pdf-unlock-btn {
    background: #facc15 !important;
    color: #064e3b !important;
}

.ag-pdf-unlock-btn:hover {
    background: #e49103 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(250, 204, 21, 0.3);
}

/* Mobile responsive adjustments */
@media (max-width: 639px) {
    .ag-lesson-header {
        padding: 0.85rem 1rem;
    }

    .ag-lesson-play-icon {
        font-size: 1.5rem;
    }

    .ag-lesson-title-main {
        font-size: 0.85rem !important;
    }

    .ag-lesson-pdf-bar {
        flex-wrap: nowrap;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .ag-pdf-info {
        flex: 1;
        min-width: 0;
    }

    .ag-pdf-download-btn,
    .ag-pdf-unlock-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
    }
}

/* Category Section Styles */
.category-section {
    padding: 60px 0;
    background: #f8fafc;
}
.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.courses-category-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.hero-title-courses {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-emerald, #064e3b);
    margin-bottom: 35px;
    text-align: center;
    display: block;
}
.hero-title-courses span {
    display: block !important;
    font-size: 22px;
    font-weight: 700;
    color: #d97706;
    margin-top: 10px;
    letter-spacing: 0.3px;
}
@media (max-width: 480px) {
    .hero-title-courses {
        font-size: 24px;
        margin-bottom: 35px;
    }
    .hero-title-courses span {
        font-size: 18px;
        margin-top: 5px;
    }
} 
@media (min-width: 1024px) {
    .courses-category-grid {
        flex-direction: row;
        align-items: flex-start;
        gap: 50px;
    }
    .category-column {
        flex: 1;
    }
}

/* ==========================================================================
   Course Guide CTA Section Redesign
   ========================================================================== */
.course-guide-section {
    padding: 60px 0;
}

body.tax-ag_course_categories #colophon {
    margin-top: 0 !important;
}

.course-guide-card {
    background: #064E3B;
    border: 1px solid #064E3B;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(6, 78, 59, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-guide-card:hover {
    background: #046c4e;
    border-color: #046c4e;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(6, 78, 59, 0.25);
}

.course-guide-content {
    position: relative;
    z-index: 2;
}

.guide-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff; 
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem 0;
    line-height: 1.25;
}

.guide-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: #a7f3d0;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}

.guide-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-gold, #facc15);
    color: #064e3b !important;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 18px rgba(250, 204, 21, 0.15);
    border: 2px solid var(--accent-gold, #facc15);
}

.guide-button:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #064e3b !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.guide-button-icon {
    transition: transform 0.2s ease;
}

.guide-button:hover .guide-button-icon {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .course-guide-section {
        padding: 60px 1rem;
    }
    .course-guide-card {
        padding: 2rem 1.5rem;
        border-radius: 1.25rem;
    }
    .guide-title {
        font-size: 1.5rem;
    }
    .guide-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }
    .guide-button {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }
}

/* Course Tab Navigation Mobile Responsiveness */
.ag-course-tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.ag-course-tabs-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}
@media (max-width: 640px) {
    .ag-tab-btn {
        min-width: max-content;
        flex: 1 0 auto !important;
        white-space: nowrap;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        font-size: 0.8rem !important; /* Smaller size on mobile */
    }
}

/* ==========================================================================
   Consolidated Mobile Learning Navigation Redesign
   ========================================================================== */
/* Made visible globally for both mobile and desktop/laptop */
    .ag-mobile-learning-nav {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Grid layout for Layer 1 buttons */
    .ag-mobile-learning-nav .grid-cols-2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    /* Two main buttons: Live Classes & With Teacher */
    .ag-mobile-learning-nav a.title.ag-mobile-nav-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.35rem !important;
        padding: 0.5rem 1rem !important; /* Proper premium padding */
        border-radius: 9999px !important; /* Fully rounded capsule shape */
        font-size: 0.72rem !important; /* Very small text */
        font-weight: 800 !important;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-decoration: none !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border: 1px solid #a7f3d0 !important; /* Soft emerald border */
        background-color: #f0fdf4 !important; /* Soft green bg */
        color: #064e3b !important; /* Dark green text */
        margin-bottom: 0 !important;
        width: auto !important;
    }

    .ag-mobile-learning-nav a.title.ag-mobile-nav-btn i {
        font-size: 0.85rem !important;
        color: #059669 !important; /* Emerald icon color */
        transition: color 0.25s ease !important;
    }

    /* Hover state for Live Classes / Exercise buttons */
    .ag-mobile-learning-nav a.title.ag-mobile-nav-btn:hover:not(.active) {
        background-color: #E49103 !important; /* Active gold bg on hover */
        border-color: #E49103 !important;
        color: #ffffff !important; /* White text on hover */
        box-shadow: 0 4px 10px rgba(228, 145, 3, 0.25) !important;
        transform: translateY(-1.5px) !important;
    }

    .ag-mobile-learning-nav a.title.ag-mobile-nav-btn:hover:not(.active) i {
        color: #ffffff !important; /* White icon on hover */
    }

    /* Active state for Live Classes / Exercise buttons */
    .ag-mobile-learning-nav a.title.ag-mobile-nav-btn.active {
        background-color: #E49103 !important; /* Active gold bg */
        border-color: #E49103 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 10px rgba(228, 145, 3, 0.3) !important;
        transform: none !important;
    }
    
    .ag-mobile-learning-nav a.title.ag-mobile-nav-btn.active i {
        color: #ffffff !important;
    }

    /* Override legacy a.title styles from app.css */
    .ag-mobile-learning-nav a.title {
        border-width: 0 !important;
        border-color: transparent !important;
        background-color: transparent !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        width: auto !important;
        line-height: inherit !important;
        text-align: center !important;
        display: flex !important;
        border-radius: 0 !important;
        cursor: pointer;
    }

    /* Circle navigation buttons in layer 2 */
    .ag-circle-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        text-decoration: none !important;
        flex: 1;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        cursor: pointer;
    }

    /* Small icons: 40px circle layout (Applied to all states: normal, hover, active, inactive) */
    .ag-circle-nav-btn .w-12 {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Small icons: 40px circle background (Normal state) */
    .ag-circle-nav-btn:not(.inactive) .w-12 {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
        background-color: #ecfdf5 !important; /* Green background normally */
        border: 1px solid #34d399 !important;  /* Green border normally */
        color: #059669 !important;            /* Green icon normally */
    }

    .ag-circle-nav-btn i {
        font-size: 0.9rem !important;
        color: inherit !important;
    }

    /* Circle hover state (turns gold) */
    .ag-circle-nav-btn:hover:not(.inactive) .w-12 {
        background-color: #E49103 !important; /* Gold on hover */
        border-color: #E49103 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 10px rgba(228, 145, 3, 0.3) !important;
        transform: translateY(-2px) scale(1.05) !important;
    }

    .ag-circle-nav-btn:hover:not(.inactive) span {
        color: #E49103 !important; /* Gold text on hover */
        font-weight: 900 !important;
    }

    /* Active state for circular tabs */
    .ag-circle-nav-btn.active .w-12 {
        background-color: #E49103 !important; /* Gold when active */
        border-color: #E49103 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 10px rgba(228, 145, 3, 0.3) !important;
        transform: scale(1.05) !important;
    }

    .ag-circle-nav-btn span {
        font-size: 9px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        color: #059669 !important; /* Green text normally */
        line-height: 1 !important;
        transition: color 0.25s ease !important;
    }

    .ag-circle-nav-btn.active span {
        color: #E49103 !important; /* Gold text when active */
        font-weight: 900 !important;
    }

    /* Individual circle designs when active but not selected */
    .ag-circle-nav-btn:not(.active) .w-12 {
        border-width: 1px !important;
    }

    /* Locked lesson custom styles */
    .ag-circle-nav-btn .w-12.unlock-circle {
        background-color: #fffbeb !important;
        border-color: #fde68a !important;
        color: #d97706 !important;
        box-shadow: 0 2px 4px rgba(217, 119, 6, 0.05) !important;
    }

    .ag-circle-nav-btn:has(.unlock-circle) span {
        color: #d97706 !important;
    }

    /* Locked lesson hover styles */
    .ag-circle-nav-btn:hover:not(.inactive) .w-12.unlock-circle {
        background-color: #E49103 !important; /* Turn gold on hover/active just like others */
        border-color: #E49103 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 10px rgba(228, 145, 3, 0.3) !important;
        transform: translateY(-2px) scale(1.05) !important;
    }

    .ag-circle-nav-btn:hover:not(.inactive):has(.unlock-circle) span {
        color: #E49103 !important;
        font-weight: 900 !important;
    }

    /* Inactive / Disabled state styles */
    .ag-circle-nav-btn.inactive {
        opacity: 0.65 !important; /* Standard disabled look, readable and crisp */
        pointer-events: none !important;
        cursor: default !important;
    }

    .ag-circle-nav-btn.inactive .w-12 {
        background-color: #f3f4f6 !important; /* Light grey background */
        border: 1px solid #d1d5db !important; /* Grey border matching normal style */
        color: #9ca3af !important;            /* Grey icon */
        box-shadow: none !important;
    }

    .ag-circle-nav-btn.inactive span {
        color: #9ca3af !important; /* Grey text */
        font-weight: 700 !important;
    }

    /* Hide active detail divs when they leak/are placed back into the main lesson details container on mobile */
    .lesson-details > #live-classes,
    .lesson-details > #exercise-with-teacher,
    .lesson-details > #quizzes-section,
    .lesson-details > #home-work-section {
        display: none !important;
    }

/* ==========================================================================
   Course FAQ Section Styles (Namespaced & Mobile Responsive)
   ========================================================================== */
.course-faq-section {
    padding: 2.5rem 1.5rem;
}

.course-faq-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #064e3b;
    text-align: center;
    margin-bottom: 2.5rem;
    margin-top: 1rem;
}

.course-faq-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #E49103; /* Branding Gold */
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.course-faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-faq-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01) !important;
}

.course-faq-item:hover {
    border-color: #a7f3d0 !important;
    box-shadow: 0 10px 15px -3px rgba(6, 78, 59, 0.05), 0 4px 6px -2px rgba(6, 78, 59, 0.02) !important;
    transform: translateY(-2px);
}

.course-faq-item.active {
    border-color: #059669 !important;
    background-color: #f0fdf4 !important; /* Light emerald highlight */
    box-shadow: 0 12px 20px -3px rgba(6, 78, 59, 0.08), 0 4px 6px -2px rgba(6, 78, 59, 0.04) !important;
}

.course-faq-question {
    padding: 1.25rem 1.5rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 1.05rem !important;
    gap: 1rem !important;
    user-select: none !important;
    transition: color 0.25s ease !important;
    background: transparent !important;
}

.course-faq-item.active .course-faq-question {
    color: #064e3b !important;
}

.course-faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    font-size: 0.85rem;
}

.course-faq-item:hover .course-faq-icon {
    background: #e6fbf2;
    color: #059669;
}

.course-faq-item.active .course-faq-icon {
    background: #059669;
    color: #ffffff;
    transform: rotate(180deg);
}

/* Accordion Smooth Height Transition */
.course-faq-answer-wrapper {
    display: grid !important;
    grid-template-rows: 0fr !important;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.course-faq-item.active .course-faq-answer-wrapper {
    grid-template-rows: 1fr !important;
}

.course-faq-answer-content {
    overflow: hidden !important;
}

#course-faqs .faq-answer {
    display: block !important;
    padding: 10px !important;
    background: transparent !important;
}

.course-faq-answer {
    padding: 0 1.5rem 1.25rem !important;
    color: #475569 !important;
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    background: transparent !important;
}

/* Mobile Responsiveness for FAQs */
@media (max-width: 640px) {
    .course-faq-section {
        padding: 1.5rem 0.5rem;
    }
    
    .course-faq-title {
        font-size: 1.4rem;
        margin-bottom: 1.75rem;
    }

    .course-faq-question {
        padding: 1rem 1.1rem !important;
        font-size: 0.9rem !important;
    }

    .course-faq-answer {
        padding: 0 1.1rem 1rem !important;
        font-size: 0.825rem !important;
        line-height: 1.55 !important;
    }

    .course-faq-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* Premium Mobile Course Title Card */
.ag-mobile-course-title-card {
    display: flex;
    align-items: center; 
    gap: 0.85rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    margin: 1rem 0 1.25rem 0; /* Align with layout padding bounds */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Subtle left border accent in gold to match branding */
.ag-mobile-course-title-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #E49103; /* Branding gold */
}

.ag-title-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    background-color: #ecfdf5; /* Light emerald */
    color: #059669; /* Emerald */
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(6, 78, 59, 0.04);
}

.ag-title-text-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ag-title-subtitle {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #059669; /* Emerald label */
    margin-bottom: 0.15rem;
}

.ag-title-main-text {
    font-size: 1rem;
    font-weight: 900;
    color: #0f172a; /* Slate 900 for modern dark grey text */
    margin: 0 !important;
    line-height: 1.2; 
    letter-spacing: -0.01em;
}

@media (min-width: 640px) {
    .ag-mobile-course-title-card {
        display: none !important;
    }
}

/* ==========================================================================
   Buy Now Button - In-Page & Mobile Sticky
   ========================================================================== */

/* In-Page Buy Now Button */
#buy-now-button {
    position: relative;
    width: 70%;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    z-index: 10;
}

#buy-now-button a,
.ag-buy-now-btn {
    background: #f59e0b !important;
    color: #111827 !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

#buy-now-button a:hover,
.ag-buy-now-btn:hover {
    background: #d97706 !important;
    color: #111827 !important;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4) !important;
}

@media (max-width: 640px) {
    #buy-now-button {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ==========================================================================
   AZANGURU RECORDED COURSE / TEACHER REPLY SELECTOR (PURE VANILLA CSS)
   ========================================================================== */

.ag-purchase-selector-container {
    width: 100%;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
    scroll-margin-top: 110px;
}

.ag-purchase-cards-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 12px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

/* When a learner arrives from the app-parity finder, keep their chosen plan
   visible on its own; reveal alternatives only on request. */
.ag-purchase-change-option {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    padding: 0 3px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #075b43;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}
.ag-purchase-change-option:hover { background: #eaf6ef; }
.ag-purchase-change-option:focus-visible { outline: 3px solid #75cba6; outline-offset: 3px; }
.ag-purchase-change-option span:last-child { font-size: 17px; line-height: 1; transition: transform .18s ease; }
.is-guided.is-expanded .ag-purchase-change-option span:last-child { transform: rotate(180deg); }
.is-guided:not(.is-expanded) .ag-purchase-card:not(.selected) { display: none; }
.is-guided .ag-purchase-card.selected { grid-column: 1 / -1; }
.is-guided .ag-purchase-cards-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.is-guided.is-expanded .ag-purchase-card.selected { grid-column: auto; }
.is-guided .ag-purchase-selector-heading h2 { color: #12352b; }
.is-guided .ag-purchase-card.selected { border-color: #07845e !important; background-color: #f3faf5 !important; }

/* Finder hand-off: one compact selected plan, with alternatives on demand. */
.ag-purchase-selector-container.is-guided {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: center;
    padding: 15px;
    border: 1px solid #dce9e2;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f3faf6 100%);
    box-shadow: 0 12px 30px rgba(18,61,46,.07);
}
.is-guided .ag-purchase-selector-heading { margin: 0; }
.is-guided .ag-purchase-selector-heading h2 { margin: 0; color:#07845e; font-size:11px; font-weight:850; line-height:1.2; letter-spacing:.09em; text-transform:uppercase; }
.is-guided .ag-purchase-selector-heading h2:before { display:none; content:none; }
.is-guided .ag-purchase-selector-heading p { margin: 0; color: #64766e; font-size: 13px; }
.is-guided .ag-purchase-change-option { grid-column: 2; grid-row: 1; justify-self:end; margin: 0; }
.is-guided .ag-purchase-cards-row { grid-column: 1 / -1; margin: 0; }
.is-guided .ag-purchase-card.selected { min-height: 86px; padding: 13px 15px !important; }
.is-guided:not(.is-expanded) .ag-purchase-card.selected { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.is-guided:not(.is-expanded) .ag-purchase-card.selected:before { display:none; content:none; }
.is-guided:not(.is-expanded) .ag-purchase-card.selected .ag-card-header { margin:0; }
.is-guided:not(.is-expanded) .ag-purchase-card.selected .ag-card-body { align-items: center; margin: 0; }
.is-guided:not(.is-expanded) .ag-purchase-card.selected .ag-card-features { display: none; }
.ag-guided-benefit { display:none; }
.is-guided:not(.is-expanded) .ag-purchase-card.selected .ag-guided-benefit { display:block; flex-basis:100%; margin:3px 0 0 21px; color:#5f746b; font-size:11px; font-weight:500; line-height:1.35; }
.is-guided:not(.is-expanded) .ag-purchase-card.selected .ag-recommended-badge { display:none; }
.is-guided:not(.is-expanded) .ag-purchase-card.selected .ag-title-text { overflow:visible; white-space:normal; text-overflow:clip; font-weight:750; }
.is-guided:not(.is-expanded) .ag-purchase-card.selected .ag-live-v2-options,
.is-guided:not(.is-expanded) .ag-purchase-card.selected .ag-live-v2-timing-copy { grid-column: 1 / -1; }
.is-guided .ag-purchase-cta-btn { grid-column: 1 / -1; margin-top: 2px; }

@media (max-width: 640px) {
    .ag-purchase-cards-row {
        flex-direction: column;
        gap: 10px;
    }
}

.ag-purchase-card {
    flex: 1 1 0%;
    min-width: 0;
    position: relative;
    border-radius: 16px;
    padding: 14px 16px;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ag-purchase-card.selected {
    border: 2px solid #059669 !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.08) !important;
}

.ag-purchase-card:not(.selected) {
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.ag-purchase-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.ag-live-v2-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.ag-live-v2-option {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 5px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    line-height: 1.15;
}

.ag-live-v2-option.selected {
    border-color: #059669;
    background: #dcfce7;
    box-shadow: 0 0 0 1px #059669;
}

.ag-live-v2-option span,.ag-live-v2-option strong { display:block; font-size:11px; }
.ag-live-v2-option small { display:block; margin:3px 0; color:#047857; font-size:8px; text-transform:uppercase; }
.ag-live-v2-option del { color:#94a3b8; font-weight:400; }
.ag-live-v2-timing-copy { margin:8px 0 0; color:#64748b; font-size:10px; line-height:1.3; }

/* Recommended Badge */
.ag-recommended-badge {
    position: absolute;
    top: -11px;
    right: 16px;
    background-color: #facc15 !important;
    color: #1f2937 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 9999px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    z-index: 10 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    pointer-events: none;
}

/* Header Row inside Card */
.ag-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.ag-radio-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ffffff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.ag-purchase-card.selected .ag-radio-indicator {
    border: 2px solid #059669 !important;
}

.ag-purchase-card:not(.selected) .ag-radio-indicator {
    border: 2px solid #cbd5e1 !important;
}

.ag-radio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #059669;
    flex-shrink: 0;
}

.ag-radio-dot.ag-dot-hidden {
    display: none !important;
}

.ag-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    line-height: 1.2;
}

.ag-title-icon {
    color: #059669 !important;
    font-size: 15px !important;
    flex-shrink: 0;
}

.ag-title-text {
    font-weight: 600;
    color: #1f2937;
}

/* Body / Features + Price Row */
.ag-card-body {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.ag-card-features {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #4b5563;
    font-weight: 400;
}

.ag-feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
    white-space: nowrap;
}

.ag-feature-icon {
    color: #9ca3af !important;
    font-size: 12px !important;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.ag-feature-icon-active {
    color: #059669 !important;
    font-size: 12px !important;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.ag-highlight-text {
    color: #1f2937;
    font-weight: 600;
}

/* Price Box */
.ag-card-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 4px;
}

.ag-price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    letter-spacing: -0.01em;
}

.ag-price-period {
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 3px;
    white-space: nowrap;
}

/* Main Yellow CTA Button */
.ag-purchase-cta-btn {
    display: block !important;
    width: 100% !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    background: #f59e0b !important;
    color: #1f2937 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    border: none !important;
}

.ag-purchase-cta-btn:hover {
    background: #d97706 !important;
    color: #111827 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4) !important;
}

/* Mobile Sticky Bottom Bar */
.ag-mobile-sticky-buy-bar {
    display: none;
}

@media (max-width: 767px) {
    body.tax-ag_course_categories {
        padding-bottom: 60px !important;
    }

    .ag-mobile-sticky-buy-bar {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 10px 12px max(10px, env(safe-area-inset-bottom)) 12px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.12) !important;
        z-index: 9999 !important;
        border-top: 1px solid rgba(130, 46, 224, 0.15) !important;
        border-radius: 0 !important;
        transform: translateY(120%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .ag-mobile-sticky-buy-bar.is-visible {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .ag-mobile-sticky-buy-bar .one-time-txt {
        position: absolute !important;
        top: -2px !important;
        right: 18px !important;
        background-color: #FA8A1D !important;
        color: #000000 !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        padding: 1px 6px !important;
        border-radius: 6px !important;
        z-index: 10 !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
        white-space: nowrap !important;
    }

    .ag-mobile-sticky-buy-bar a.ag-buy-now-btn,
    .ag-mobile-sticky-buy-bar a {
        background: #822EE0 !important;
        color: #ffffff !important;
        font-weight: 900 !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        padding-top: 1.1rem !important;
        padding-bottom: 1.1rem !important;
        font-size: 1.2rem !important;
        border-radius: 8px !important;
        line-height: 1.2 !important;
        text-decoration: none !important;
        box-shadow: 0 4px 10px rgba(130, 46, 224, 0.25) !important;
    }

    .ag-mobile-sticky-buy-bar a.ag-buy-now-btn:hover,
    .ag-mobile-sticky-buy-bar a:hover {
        background: #6e24bf !important;
    }
}

/* Cascade-safe final overrides for the refreshed selector and tabs. */
body.tax-ag_course_categories .ag-purchase-card.selected {
    box-shadow: 0 10px 24px rgba(5,150,105,.11) !important;
}

body.tax-ag_course_categories .ag-purchase-cards-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.tax-ag_course_categories .ag-purchase-selector-container.is-live-only .ag-purchase-cards-row {
    grid-template-columns: minmax(0, 1fr);
}

/* Single-offer campaigns reuse the shared course page without exposing competing plans. */
body.tax-ag_course_categories .ag-purchase-selector-container.is-single-offer {
    max-width: 760px;
    margin: 0 auto 1.5rem;
    padding: clamp(16px, 3vw, 26px);
    border: 1px solid #d7e8df;
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff 0%, #f5fbf7 100%);
    box-shadow: 0 14px 36px rgba(18, 61, 46, .08);
}
body.tax-ag_course_categories .is-single-offer .ag-purchase-selector-heading { margin-bottom: 14px; }
body.tax-ag_course_categories .is-single-offer .ag-purchase-selector-heading h2 { margin: 0 0 4px; color: #12352b; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.2; }
body.tax-ag_course_categories .is-single-offer .ag-purchase-selector-heading p { margin: 0; color: #64766e; font-size: .88rem; line-height: 1.5; }
body.tax-ag_course_categories .is-single-offer .ag-purchase-cards-row { grid-template-columns: minmax(0, 1fr); margin-bottom: 13px; }
body.tax-ag_course_categories .is-single-offer .ag-purchase-card { min-height: 0; padding: 18px 20px !important; border: 1px solid #b9ddcc !important; border-radius: 17px; background: #fff !important; cursor: default; box-shadow: none !important; }
body.tax-ag_course_categories .is-single-offer .ag-purchase-card:hover { transform: none; box-shadow: none !important; }
body.tax-ag_course_categories .is-single-offer .ag-recommended-badge { display: none; }
body.tax-ag_course_categories .is-single-offer .ag-recorded-only-kicker { display: block; margin: 0 0 10px; color: #07845e; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
body.tax-ag_course_categories .is-single-offer .ag-radio-indicator { display: none; }
body.tax-ag_course_categories .is-single-offer .ag-card-header { margin: 0 0 12px; }
body.tax-ag_course_categories .is-single-offer .ag-card-title-wrap { width: 100%; gap: 8px; }
body.tax-ag_course_categories .is-single-offer .ag-title-icon { display: grid; width: 34px; height: 34px; border-radius: 10px; background: #e6f6ed; font-size: 15px !important; place-items: center; }
body.tax-ag_course_categories .is-single-offer .ag-title-text { color: #12352b; font-size: 18px; font-weight: 800; }
body.tax-ag_course_categories .is-single-offer .ag-plan-type { margin-left: auto; padding: 5px 9px; border-radius: 999px; background: #fff1bd; color: #765300; font-size: 10px; font-weight: 850; text-transform: uppercase; }
body.tax-ag_course_categories .is-single-offer .ag-card-body { align-items: center; justify-content: space-between; margin: 0; }
body.tax-ag_course_categories .is-single-offer .ag-card-features { flex-flow: row wrap; gap: 8px 14px; }
body.tax-ag_course_categories .is-single-offer .ag-feature-item { display: flex; color: #50685f; font-size: 12px; }
body.tax-ag_course_categories .is-single-offer .ag-feature-icon { color: #07845e !important; }
body.tax-ag_course_categories .is-single-offer .ag-card-price-box { padding-left: 18px; }
body.tax-ag_course_categories .is-single-offer .ag-price-amount { color: #12352b; font-size: 25px; font-weight: 850; }
body.tax-ag_course_categories .is-single-offer .ag-price-period { color: #64766e; font-weight: 650; }
body.tax-ag_course_categories .is-single-offer .ag-purchase-cta-btn { min-height: 54px; display: flex !important; align-items: center; justify-content: center; border-radius: 14px !important; font-size: 17px !important; font-weight: 800 !important; }
body.tax-ag_course_categories .is-single-offer .ag-recorded-other-options { margin: 17px 0 1px; text-align: center; }
body.tax-ag_course_categories .is-single-offer .ag-recorded-other-options a { color: #60776f !important; font-size: 11px; font-weight: 680; text-decoration: none !important; }
body.tax-ag_course_categories .is-single-offer .ag-recorded-other-options a:hover { color: #075b43 !important; text-decoration: underline !important; }
body.tax-ag_course_categories .ag-mobile-learning-nav .ag-campaign-single-feature { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 640px) {
    body.tax-ag_course_categories .ag-purchase-selector-container.is-single-offer { padding: 15px; border-radius: 18px; }
    body.tax-ag_course_categories .is-single-offer .ag-purchase-selector-heading { margin-bottom: 12px; }
    body.tax-ag_course_categories .is-single-offer .ag-purchase-selector-heading h2 { font-size: 1.32rem; }
    body.tax-ag_course_categories .is-single-offer .ag-purchase-selector-heading p { font-size: .78rem; }
    body.tax-ag_course_categories .is-single-offer .ag-purchase-card { padding: 14px !important; border-radius: 14px; }
    body.tax-ag_course_categories .is-single-offer .ag-recorded-only-kicker { margin-bottom: 8px; font-size: 9px; }
    body.tax-ag_course_categories .is-single-offer .ag-card-title-wrap { flex-wrap: wrap; }
    body.tax-ag_course_categories .is-single-offer .ag-title-text { overflow: visible; white-space: normal; font-size: 16px; }
    body.tax-ag_course_categories .is-single-offer .ag-plan-type { order: 0; margin-left: auto; }
    body.tax-ag_course_categories .is-single-offer .ag-card-body { gap: 12px; padding-left: 0; }
    body.tax-ag_course_categories .is-single-offer .ag-card-features { gap: 6px 10px; }
    body.tax-ag_course_categories .is-single-offer .ag-feature-item { display: flex; font-size: 10px; }
    body.tax-ag_course_categories .is-single-offer .ag-card-price-box { padding-left: 8px; }
    body.tax-ag_course_categories .is-single-offer .ag-price-amount { font-size: 22px; }
    body.tax-ag_course_categories .is-single-offer .ag-purchase-cta-btn { min-height: 50px; font-size: 15px !important; }
    body.tax-ag_course_categories .is-single-offer .ag-recorded-other-options { margin-top: 16px; }
    body.tax-ag_course_categories .is-single-offer .ag-recorded-other-options a { font-size: 10px; }
}

body.tax-ag_course_categories .ag-card-title-wrap {
    flex-wrap: wrap;
}

body.tax-ag_course_categories .ag-course-tabs-wrapper {
    border-radius: 18px !important;
    border-color: #dce9e2 !important;
    box-shadow: 0 10px 28px rgba(18,61,46,.06) !important;
}

body.tax-ag_course_categories .ag-course-tabs-nav {
    gap: 4px;
    padding: 6px;
    overflow-x: auto;
    background: #f7faf8;
}

body.tax-ag_course_categories .ag-course-tabs-nav .ag-tab-btn {
    min-width: max-content;
    border-radius: 10px;
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
}

@media (max-width: 900px) {
    body.tax-ag_course_categories .ag-purchase-cards-row { grid-template-columns: 1fr; }
    body.tax-ag_course_categories .ag-purchase-card { padding: 14px !important; }
    body.tax-ag_course_categories .ag-course-tabs-nav .ag-tab-btn { font-size: .78rem !important; }
}

/* Mobile conversion layout: compact choices, one decisive benefit per plan. */
@media (max-width: 640px) {
    body.tax-ag_course_categories .ag-purchase-selector-container { margin-bottom: 1rem; }
    body.tax-ag_course_categories .ag-purchase-selector-heading { margin-bottom: .7rem; }
    body.tax-ag_course_categories .ag-purchase-selector-heading h2 { margin-bottom: .15rem; font-size: 1.22rem; line-height: 1.2; }
    body.tax-ag_course_categories .ag-purchase-selector-heading p { font-size: .76rem; line-height: 1.3; }
    body.tax-ag_course_categories .ag-purchase-cards-row { gap: 7px; margin-bottom: 9px; }
    body.tax-ag_course_categories .ag-purchase-card { min-height: 76px; padding: 10px 11px !important; border-radius: 13px; justify-content: flex-start; }
    body.tax-ag_course_categories .ag-purchase-card.selected { box-shadow: 0 5px 14px rgba(5,150,105,.09) !important; }
    body.tax-ag_course_categories .ag-card-header { gap: 7px; margin-bottom: 7px; }
    body.tax-ag_course_categories .ag-radio-indicator { width: 18px; height: 18px; }
    body.tax-ag_course_categories .ag-radio-dot { width: 8px; height: 8px; }
    body.tax-ag_course_categories .ag-card-title-wrap { flex-wrap: nowrap; gap: 5px; min-width: 0; font-size: 13px; }
    body.tax-ag_course_categories .ag-title-icon { font-size: 13px !important; }
    body.tax-ag_course_categories .ag-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    body.tax-ag_course_categories .ag-plan-type { margin-left: auto; padding: 2px 6px; font-size: .55rem; }
    body.tax-ag_course_categories .ag-plan-summary { display: none; }
    body.tax-ag_course_categories .ag-card-body { align-items: center; margin-top: 0; padding-left: 25px; }
    body.tax-ag_course_categories .ag-card-features { gap: 0; font-size: 11px; }
    body.tax-ag_course_categories .ag-feature-item { display: none; }
    body.tax-ag_course_categories .card-option-1 .ag-feature-item:first-child,
    body.tax-ag_course_categories .ag-feature-item.ag-feature-highlight { display: flex; }
    body.tax-ag_course_categories .ag-feature-icon,
    body.tax-ag_course_categories .ag-feature-icon-active { font-size: 11px !important; width: 12px; }
    body.tax-ag_course_categories .ag-price-amount { font-size: 18px; }
    body.tax-ag_course_categories .ag-price-period { margin-top: 1px; font-size: 9px; }
    body.tax-ag_course_categories .ag-recommended-badge { top: -7px; right: 12px; padding: 2px 7px !important; font-size: 8px !important; }
    body.tax-ag_course_categories .ag-purchase-cta-btn { padding: 12px 14px !important; border-radius: 11px !important; font-size: 15px !important; }

    body.tax-ag_course_categories .ag-purchase-selector-container.is-guided { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 10px; padding:12px; border-radius:16px; }
    body.tax-ag_course_categories .is-guided .ag-purchase-selector-heading h2 { font-size:9px; }
    body.tax-ag_course_categories .is-guided .ag-purchase-selector-heading p { max-width:240px; font-size:.7rem; }
    body.tax-ag_course_categories .is-guided .ag-purchase-change-option { grid-column:2; grid-row:1; width:max-content; min-height:32px; padding:0 3px; font-size:11px; }
    body.tax-ag_course_categories .is-guided .ag-purchase-change-option span:last-child { font-size:16px; }
    body.tax-ag_course_categories .is-guided:not(.is-expanded) .ag-purchase-card.selected { min-height:82px; grid-template-columns:minmax(0,1fr) auto; padding:11px !important; }
    body.tax-ag_course_categories .is-guided:not(.is-expanded) .ag-purchase-card.selected .ag-card-header { margin-top:0; }
    body.tax-ag_course_categories .is-guided:not(.is-expanded) .ag-purchase-card.selected .ag-card-body { padding-left:6px; }
    body.tax-ag_course_categories .is-guided:not(.is-expanded) .ag-purchase-card.selected .ag-card-title-wrap { flex-wrap:wrap; }
    body.tax-ag_course_categories .is-guided:not(.is-expanded) .ag-purchase-card.selected .ag-title-text { max-width:calc(100% - 22px); line-height:1.25; }
    body.tax-ag_course_categories .is-guided:not(.is-expanded) .ag-purchase-card.selected .ag-plan-type { order:3; margin:4px 0 0 21px; }
    body.tax-ag_course_categories .is-guided:not(.is-expanded) .ag-purchase-card.selected .ag-guided-benefit { order:4; margin-left:21px; font-size:10px; }
}

/* Compare Plans: conversion-focused three-plan matrix */
.ag-plan-compare{padding:clamp(18px,3vw,34px);background:linear-gradient(145deg,#f8fffc 0%,#fffdf6 100%)}
.ag-plan-compare__intro{max-width:720px;margin:0 auto 24px;text-align:center}.ag-plan-compare__intro>span{display:inline-block;margin-bottom:7px;color:#047857;font-size:.76rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.ag-plan-compare__intro h2{margin:0;color:#132238;font-size:clamp(1.45rem,3vw,2.15rem);line-height:1.15}.ag-plan-compare__intro p{margin:10px auto 0;color:#526070;line-height:1.6}
.ag-plan-compare__scroll{overflow-x:auto;border:1px solid #dbe7e1;border-radius:20px;background:#fff;box-shadow:0 18px 45px rgba(15,71,54,.08)}
.ag-plan-compare__grid{display:grid;grid-template-columns:minmax(190px,1.25fr) repeat(3,minmax(190px,1fr));min-width:780px}.ag-plan-compare__grid>*{border-right:1px solid #e3ebe7;border-bottom:1px solid #e3ebe7}.ag-plan-compare__grid>*:nth-child(4n){border-right:0}
.ag-plan-compare__corner{display:flex;align-items:flex-end;padding:22px;color:#526070;background:#f8faf9}.ag-plan-column{position:relative;padding:24px 18px 20px;text-align:center;background:#fff}.ag-plan-column--teacher{background:#f2fdf8}.ag-plan-column--live{background:#fffaf0}.ag-plan-column.is-current{box-shadow:inset 0 4px 0 #07875f}.ag-plan-current-badge{position:absolute;top:8px;left:50%;transform:translateX(-50%);padding:4px 9px;border-radius:999px;background:#087b55;color:#fff;font-size:.65rem;font-weight:800;white-space:nowrap}.ag-plan-column small{display:block;margin-top:8px;color:#64748b;font-weight:700}.ag-plan-column h3{margin:6px 0 12px;color:#132238;font-size:1rem;line-height:1.35}.ag-plan-price strong{display:block;color:#073f32;font-size:1.25rem}.ag-plan-price span{color:#64748b;font-size:.72rem}.ag-plan-frequency{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;margin-top:10px}.ag-plan-frequency span{padding:4px 7px;border:1px solid #f1d890;border-radius:999px;background:#fff;font-size:.64rem;font-weight:700;color:#72520a}
.ag-plan-feature-name{display:flex;align-items:center;padding:15px 20px;color:#243247;font-weight:750;background:#fff}.ag-plan-feature-value{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:68px;padding:10px;text-align:center;background:#fff}.ag-plan-feature-value:nth-child(4n+3){background:#f8fffb}.ag-plan-feature-value:nth-child(4n+4){background:#fffdf8}.ag-plan-feature-value span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-weight:900}.ag-plan-feature-value.has-feature span{background:#22c55e;color:#fff}.ag-plan-feature-value.no-feature span{background:#eef2f4;color:#87919d}.ag-plan-feature-value small{margin-top:4px;color:#64748b;font-size:.68rem}.ag-plan-feature-value strong{color:#087b55;font-size:.78rem}
.ag-plan-compare__corner--bottom{border-bottom:0}.ag-plan-action{display:flex;align-items:center;padding:16px 12px;border-bottom:0!important;background:#fff}.ag-plan-action--teacher{background:#f2fdf8}.ag-plan-action--live{background:#fffdf8}.ag-plan-cta,.ag-plan-owned{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:10px 12px;border-radius:13px;font-size:.78rem;font-weight:850;text-align:center}.ag-plan-cta{background:#087b55;color:#fff!important;text-decoration:none!important;box-shadow:0 8px 18px rgba(8,123,85,.2)}.ag-plan-action--live .ag-plan-cta{background:#f5b700;color:#17243a!important}.ag-plan-cta:hover{transform:translateY(-2px);filter:brightness(.98)}.ag-plan-owned{gap:6px;border:1px solid #34c68a;background:#effcf6;color:#087b55}.ag-plan-owned span{font-weight:900}.ag-plan-compare__note{margin:13px 4px 0;color:#65736d;font-size:.75rem;text-align:center}
@media(max-width:640px){.ag-plan-compare{padding:16px 10px}.ag-plan-compare__intro{padding:0 8px}.ag-plan-compare__intro p{font-size:.85rem}.ag-plan-compare__scroll:after{content:'Swipe to compare →';position:sticky;left:12px;display:inline-block;padding:7px 10px;color:#526070;font-size:.68rem;font-weight:750}.ag-plan-compare__grid{grid-template-columns:165px repeat(3,175px);min-width:690px}.ag-plan-column{padding:25px 12px 16px}.ag-plan-feature-name{padding:13px 12px;font-size:.78rem}}

/* Compare Plans mobile cards: no horizontal table or accidental default checkout. */
.ag-plan-mobile{display:none}
@media(max-width:760px){
  .ag-plan-compare__scroll{display:none}
  .ag-plan-mobile{display:grid;gap:14px}
  .ag-plan-mobile-card{position:relative;padding:18px;border:1px solid #dbe7e1;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(15,71,54,.07)}
  .ag-plan-mobile-card--teacher{background:#f3fdf8;border-color:#bfe9d6}
  .ag-plan-mobile-card--live{background:#fffaf0;border-color:#f1d58a}
  .ag-plan-mobile-card.is-current{border:2px solid #0b8b62}
  .ag-plan-mobile-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
  .ag-plan-mobile-card__top small{color:#66758a;font-size:.72rem;font-weight:750}
  .ag-plan-mobile-card__top h3{margin:3px 0 0;color:#14233a;font-size:1.08rem;line-height:1.3}
  .ag-plan-mobile-current{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#087b55;color:#fff;font-size:.68rem;font-weight:850}
  .ag-plan-mobile-price{display:flex;align-items:baseline;gap:7px;margin-top:13px}
  .ag-plan-mobile-price strong{color:#064c3a;font-size:1.45rem;line-height:1}
  .ag-plan-mobile-price span{color:#68758a;font-size:.74rem}
  .ag-plan-mobile-frequencies{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:14px 0 2px}
  .ag-plan-mobile-frequencies span{display:flex;flex-direction:column;gap:2px;padding:9px 5px;border:1px solid #ebce7d;border-radius:11px;background:#fff;text-align:center;color:#715409;font-size:.68rem}
  .ag-plan-mobile-frequencies b{color:#263349;font-size:.72rem}
  .ag-plan-mobile-benefits{display:grid;gap:7px;margin:15px 0;padding:0;list-style:none}
  .ag-plan-mobile-benefits li{position:relative;padding-left:22px;color:#344258;font-size:.78rem;line-height:1.4}
  .ag-plan-mobile-benefits li:before{content:'✓';position:absolute;left:0;top:0;color:#0a9a67;font-weight:900}
  .ag-plan-mobile-card .ag-plan-cta,.ag-plan-mobile-card .ag-plan-owned{min-height:46px;margin-top:14px}
  .ag-plan-mobile-card--live .ag-plan-cta{background:#f5b700;color:#17243a!important}
  .ag-plan-compare__note{line-height:1.45}
}
