/* Course Detail Redesign Styles */

@import 'variables.css';

/* ==========================================================================
   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: 640px) {
    .student-lesson-wrapper {
        grid-template-columns: 1fr 400px !important;
        padding: 4rem 0 !important;
        gap: 1.5rem !important;
    }

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

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

.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 {
    border-radius: 1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !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: 1.5rem 0.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) {
    .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
   ========================================================================== */
@media (max-width: 639px) {
    .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;
    }
}