/* Course Detail Redesign Styles */

:root {
    --ag-emerald: #065f46;
    --ag-emerald-light: #ecfdf5;
    --ag-yellow: #facc15;
    --ag-yellow-light: #fefce8;
    --ag-navy: #0f172a;
    --ag-slate-100: #f1f5f9;
    --ag-slate-200: #e2e8f0;
    --ag-slate-300: #cbd5e1;
    --ag-slate-700: #334155;
    --ag-slate-800: #1e293b;
}

.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-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;
    }
}



.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;
}

.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 */
}