/* CSS for the rotating text animation */
    @keyframes heroSlideIn {
        0% {
            transform: translateY(100%);
            opacity: 0;
        }

        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes heroSlideOut {
        0% {
            transform: translateY(0);
            opacity: 1;
        }

        100% {
            transform: translateY(-100%);
            opacity: 0;
        }
    }

    .hero-word-in {
        animation: heroSlideIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .hero-word-out {
        animation: heroSlideOut 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    #hero-animated-text {
        display: inline-grid;
        overflow: hidden;
        vertical-align: bottom;
        height: 1.15em;
    }

    #hero-animated-text span {
        grid-area: 1 / 1;
        display: block;
    }

    /* Tagline styling */
    @keyframes taglineFadeSlide {
        0% {
            opacity: 0;
            transform: translateX(-12px);
        }

        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .hero-tagline {
        animation: taglineFadeSlide 0.8s ease-out forwards;
    }

    .hero-tagline-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #F28C28;
        margin: 0 10px;
        vertical-align: middle;
    }


    /* Explore Exam Categories Section */
    #available-courses {
        background-color: #fff;
        padding: 60px 0;
    }

    .section-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 32px;
        font-weight: 600;
        color: #2e353b;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 16px;
        color: #666;
    }

    /* Exam Grid */
    .exam-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }

    /* Exam Card */
    .exam-card {
        background: #fff;
        border-radius: 16px;
        padding: 35px 30px;
        width: 100%;
        max-width: 300px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .exam-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(249, 70, 40, 0.15);
    }

    /* Exam Name */
    .exam-card .exam-name {
        font-size: 1.3rem;
        font-weight: 800;
        color: #1a1a1a;
        margin: 0 0 10px 0;
    }

    /* Description */
    .exam-card .exam-description {
        font-size: 0.9rem;
        color: #666;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    /* Divider Line */
    .exam-card .card-divider {
        border: none;
        height: 1px;
        background-color: #d1d5db;
        /* Darker gray for visibility */
        margin: 0 0 20px 0;
        opacity: 1;
    }

    /* Features List */
    .exam-card .exam-features {
        list-style: none;
        padding: 0;
        margin: 0 0 25px 0;
        flex-grow: 1;
    }

    .exam-card .exam-features li {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 0.9rem;
        color: #444;
        padding: 6px 0;
        font-weight: 500;
    }

    .exam-card .exam-features .check-icon {
        color: #f94628;
        font-weight: 800;
        font-size: 0.8rem;
        background: #fff0eb;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    /* View Plans Button */
    .exam-card .view-plans-btn {
        display: block;
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, #f94628, #f09719);
        color: #fff;
        text-align: center;
        font-weight: 700;
        font-size: 1rem;
        border-radius: 50px;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 10px 20px rgba(249, 70, 40, 0.2);
    }

    .exam-card .view-plans-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(249, 70, 40, 0.3);
        color: #fff;
    }

    .exam-card .view-plans-btn.enrolled {
        background: linear-gradient(135deg, #10b981, #059669);
        box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .exam-grid {
            flex-direction: column;
            align-items: center;
        }

        .exam-card {
            max-width: 100%;
        }
    }

    /* Why Practice Matters Section */
    .practice-matters-section {
        padding: 60px 0;
        background-color: #fff;
        font-family: 'Lexend', 'Jost', sans-serif;
    }

    .practice-matters-title {
        font-size: 32px;
        font-weight: 800;
        color: #1a202c;
        margin-bottom: 20px;
        position: relative;
        display: inline-block;
    }

    .practice-matters-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 60px;
        height: 4px;
        background-color: #F28C28;
        border-radius: 2px;
    }

    .practice-cards-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
        margin-top: 50px;
    }

    .practice-card {
        background: #fff;
        border: 1px solid #edf2f7;
        border-radius: 12px;
        padding: 35px 25px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    }

    .practice-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        border-color: #F28C28;
    }

    .practice-icon {
        width: 50px;
        height: 50px;
        background-color: #fff5f0;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        color: #F28C28;
        margin-bottom: 25px;
    }

    .practice-card h4 {
        font-size: 20px;
        font-weight: 700;
        color: #2d3748;
        margin-bottom: 15px;
    }

    .practice-card p {
        font-size: 14.5px;
        color: #4a5568;
        line-height: 1.6;
        margin: 0;
    }


    /* Platform Features Section */
    .perspective-1000 {
        perspective: 1000px;
    }

    .feature-item {
        transition: opacity 0.5s ease;
        opacity: 0.4;
        cursor: pointer;
    }

    .feature-item.active {
        opacity: 1;
    }

    .feature-icon-box {
        transition: all 0.5s ease;
        border-color: #cbd5e1;
        background-color: #f1f5f9;
        color: #64748b;
    }

    .feature-item.active .feature-icon-box {
        background-color: #F28C28;
        border-color: #F28C28;
        color: white;
        transform: scale(1.15);
        box-shadow: 0 10px 15px -3px rgba(242, 140, 40, 0.4);
    }

    .feature-image {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(80px) rotateX(-15deg) scale(0.95);
        object-fit: cover;
        width: 100%;
        height: 100%;
        border-radius: 0.75rem;
    }

    .feature-image.active {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
        z-index: 10;
    }


        .journey-glow-path {
            filter: drop-shadow(0 0 8px rgba(242, 140, 40, 0.5));
        }

        .journey-node-glow {
            box-shadow: 0 0 20px rgba(242, 140, 40, 0.15);
        }

        /* Desktop horizontal timeline */
        .journey-wave-container {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 420px;
            width: 100%;
        }

        .journey-nodes-row {
            position: relative;
            z-index: 10;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 40px;
            width: 100%;
            max-width: 1200px;
        }

        .journey-node {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            transition: transform 0.3s ease;
            flex: 1;
        }

        .journey-node:hover {
            transform: scale(1.08);
        }

        /* Circle styles */
        .journey-node-circle {
            width: 96px;
            height: 96px;
            border-radius: 50%;
            background: #fff;
            border: 4px solid #F28C28;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            transition: all 0.5s ease;
            box-shadow: 0 10px 20px rgba(242, 140, 40, 0.2);
        }

        .journey-node-circle i {
            font-size: 34px;
            color: #F28C28;
            transition: all 0.5s ease;
        }

        /* Active/center node (Improve) */
        .journey-node-center .journey-node-circle {
            width: 100px;
            height: 100px;
            background: #F28C28;
            border: none;
            box-shadow: 0 8px 32px rgba(242, 140, 40, 0.35), 0 0 0 6px rgba(242, 140, 40, 0.15);
        }

        .journey-node-center .journey-node-circle i {
            color: #fff;
            font-size: 34px;
        }

        .journey-node-center h4 {
            color: #F28C28 !important;
            font-weight: 900 !important;
        }

        /* Scroll animation states */
        .journey-node-circle.animated {
            border-color: #F28C28;
            box-shadow: 0 0 20px rgba(242, 140, 40, 0.2);
        }

        .journey-node-center .journey-node-circle.animated {
            box-shadow: 0 8px 32px rgba(242, 140, 40, 0.45), 0 0 0 8px rgba(242, 140, 40, 0.2);
        }

        /* Node labels */
        .journey-node h4 {
            font-family: 'Lexend', 'Jost', sans-serif;
            font-size: 1.25rem;
            font-weight: 700;
            color: #1a202c;
            margin-bottom: 4px;
        }

        .journey-node .journey-stage {
            font-size: 0.75rem;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            font-weight: 600;
        }

        .journey-node p {
            font-size: 0.875rem;
            color: #718096;
            line-height: 1.5;
            max-width: 150px;
            text-align: center;
            margin-top: 8px;
        }



        /* Mobile vertical */
        .journey-mobile-list {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 28px;
            position: relative;
        }

        .journey-mobile-node {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
            z-index: 3;
        }

        .journey-mobile-node .journey-node-circle {
            width: 68px;
            height: 68px;
            margin-bottom: 10px;
        }

        .journey-mobile-node .journey-node-circle i {
            font-size: 22px;
        }

        .journey-mobile-node.journey-node-center .journey-node-circle {
            width: 84px;
            height: 84px;
        }

        .journey-mobile-node.journey-node-center .journey-node-circle i {
            font-size: 28px;
        }

        .journey-mobile-node h4 {
            font-family: 'Lexend', 'Jost', sans-serif;
            font-size: 0.95rem;
            font-weight: 700;
            color: #1a202c;
            margin-bottom: 2px;
        }

        .journey-mobile-node .journey-stage {
            font-size: 0.68rem;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            font-weight: 600;
        }

        .journey-mobile-node.journey-node-center h4 {
            color: #F28C28 !important;
            font-weight: 900 !important;
        }

        .journey-mobile-node p {
            font-size: 0.8rem;
            color: #64748b;
            line-height: 1.4;
            max-width: 200px;
            margin-top: 6px;
        }
    


    /* Explore Exam Categories Section - Testbook Style */
    #available-courses {
        background: #f8f9fc;
        padding: 50px 0 60px;
    }

    .section-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.75rem;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 8px;
    }

    .section-subtitle {
        color: #888;
        font-size: 0.95rem;
    }

    .exam-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    .exam-card {
        background: #ffffff;
        border-radius: 12px;
        padding: 24px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        transition: all 0.25s ease;
        border: 1px solid #e5e7eb;
        width: 100%;
        max-width: 340px;
        min-width: 280px;
    }

    .exam-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        border-color: #d1d5db;
    }

    .exam-card-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        margin-bottom: 16px;
    }

    .exam-icon {
        width: 48px;
        height: 48px;
    }

    .exam-icon svg {
        width: 100%;
        height: 100%;
    }

    .tests-badge {
        background: #fef3c7;
        color: #92400e;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .exam-name {
        font-size: 1.1rem;
        font-weight: 700;
        color: #1f2937;
        margin: 0 0 10px 0;
        line-height: 1.3;
    }

    .exam-description {
        color: #6b7280;
        font-size: 0.875rem;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .enrolled-indicator {
        display: block;
        color: #059669;
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .enrolled-indicator i {
        margin-right: 4px;
    }

    .view-plans-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #f97316;
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .view-plans-link:hover {
        color: #ea580c;
        text-decoration: none;
    }

    .view-plans-link i {
        transition: transform 0.2s ease;
        font-size: 0.8rem;
    }

    .view-plans-link:hover i {
        transform: translateX(4px);
    }

    .view-plans-link.enrolled-link {
        color: #059669;
    }

    .view-plans-link.enrolled-link:hover {
        color: #047857;
    }

    .exam-card.subscribed {
        border-color: #a7f3d0;
        background: #f0fdf4;
    }

    .no-exams-message {
        text-align: center;
        padding: 60px 20px;
        color: #666;
    }

    /* Responsive Design */
    @media (max-width: 992px) {
        .exam-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }
    }

    @media (max-width: 768px) {
        #available-courses {
            padding: 40px 0;
        }

        .section-header-left {
            text-align: center;
        }

        .section-title {
            font-size: 1.5rem;
        }

        .exam-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        .exam-card {
            padding: 20px;
        }

        .exam-icon {
            width: 40px;
            height: 40px;
        }

        .exam-name {
            font-size: 1rem;
        }

        .exam-description {
            font-size: 0.8rem;
        }
    }

    @media (max-width: 576px) {
        .exam-grid {
            grid-template-columns: 1fr;
        }

        .section-header {
            margin-bottom: 30px;
        }
    }


    /* Subscription Modal Styles */
    #subscriptionModal {
        z-index: 1060 !important;
    }

    #subscriptionModal .modal-backdrop {
        z-index: 1055 !important;
    }

    #subscriptionModal .modal-dialog {
        max-width: 900px;
        margin: 1.75rem auto;
    }

    #subscriptionModal .modal-content {
        border: none;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    }

    #subscriptionModal .modal-header {
        background: linear-gradient(135deg, #f94628, #ff7b5c);
        color: #fff;
        border-bottom: none;
        padding: 20px 30px;
    }

    #subscriptionModal .modal-header .modal-title {
        font-weight: 600;
        font-size: 1.25rem;
    }

    #subscriptionModal .modal-header .btn-close {
        filter: invert(1);
        opacity: 0.8;
    }

    #subscriptionModal .modal-header .btn-close:hover {
        opacity: 1;
    }

    #subscriptionModal .modal-body {
        padding: 25px 20px;
        background: #f8f9fa;
    }

    .exam-info {
        margin-bottom: 20px !important;
    }

    .exam-info h4 {
        color: #f94628;
        font-weight: 700;
        font-size: 1.3rem;
        margin-bottom: 5px;
    }

    .exam-info p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    /* Plan Cards Container */
    .pricing-cards {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: nowrap;
    }

    /* Plan Cards - Compact Version */
    .plan-card {
        background: #fff;
        border: 2px solid #e0e0e0;
        border-radius: 16px;
        padding: 20px 15px;
        text-align: center;
        transition: all 0.3s ease;
        position: relative;
        width: calc(33.33% - 10px);
        max-width: 260px;
        min-width: 180px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .plan-card:hover {
        border-color: #f94628;
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(249, 70, 40, 0.2);
    }

    .plan-card.popular {
        border-color: #f94628;
        background: linear-gradient(180deg, #fff 0%, #fff5f3 100%);
    }

    .plan-card.best-value {
        border-color: #28a745;
        background: linear-gradient(180deg, #fff 0%, #f0fff4 100%);
    }

    .plan-badge {
        position: absolute;
        top: -14px;
        left: 50%;
        transform: translateX(-50%);
        padding: 6px 20px;
        border-radius: 25px;
        font-size: 0.75rem;
        font-weight: 700;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    .plan-badge.popular {
        background: linear-gradient(135deg, #f94628, #ff7b5c);
        box-shadow: 0 4px 15px rgba(249, 70, 40, 0.4);
    }

    .plan-badge.best-value {
        background: linear-gradient(135deg, #28a745, #20c997);
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    }

    .plan-name {
        font-size: 1.3rem;
        font-weight: 700;
        color: #333;
        margin-bottom: 12px;
        margin-top: 10px;
    }

    .plan-price {
        margin-bottom: 5px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .plan-price .currency {
        font-size: 1.2rem;
        font-weight: 700;
        color: #f94628;
        margin-top: 5px;
    }

    .plan-price .amount {
        font-size: 2.5rem;
        font-weight: 800;
        color: #333;
        line-height: 1;
    }

    .plan-duration {
        color: #888;
        font-size: 0.85rem;
        margin-bottom: 15px;
        font-weight: 500;
    }

    .plan-features {
        list-style: none;
        padding: 0;
        margin: 0 0 15px 0;
        text-align: left;
    }

    .plan-features li {
        padding: 6px 0;
        color: #555;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .plan-features li:last-child {
        border-bottom: none;
    }

    .plan-features li i {
        color: #28a745;
        margin-right: 8px;
        font-size: 0.85rem;
        width: 16px;
    }

    .btn-subscribe {
        background: linear-gradient(135deg, #f94628, #ff7b5c);
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
        box-shadow: 0 4px 15px rgba(249, 70, 40, 0.3);
    }

    .btn-subscribe:hover:not(:disabled) {
        background: linear-gradient(135deg, #e03a1f, #f94628);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(249, 70, 40, 0.4);
    }

    .btn-subscribe:disabled {
        background: #ccc;
        cursor: not-allowed;
        box-shadow: none;
    }

    /* Responsive Plan Cards */
    @media (max-width: 992px) {
        #subscriptionModal .modal-dialog {
            max-width: 95%;
        }

        .plan-card {
            min-width: 150px;
            padding: 15px 12px;
        }

        .plan-name {
            font-size: 1.1rem;
        }

        .plan-price .amount {
            font-size: 2rem;
        }

        .plan-features li {
            font-size: 0.75rem;
            padding: 4px 0;
        }
    }

    @media (max-width: 600px) {
        #subscriptionModal .modal-dialog {
            max-width: 98%;
            margin: 0.5rem auto;
        }

        #subscriptionModal .modal-body {
            padding: 15px 10px;
        }

        .pricing-cards {
            flex-wrap: wrap;
        }

        .plan-card {
            width: 100%;
            min-width: unset;
            margin-bottom: 15px;
        }

        .plan-price .amount {
            font-size: 2.5rem;
        }
    }

    /* Success Modal */
    #paymentSuccessModal .modal-content {
        border: none;
        border-radius: 20px;
    }

    .success-checkmark i {
        animation: scaleIn 0.5s ease;
    }

    @keyframes scaleIn {
        0% {
            transform: scale(0);
        }

        50% {
            transform: scale(1.2);
        }

        100% {
            transform: scale(1);
        }
    }

    .subscription-details {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 12px;
        text-align: left;
    }

    .subscription-details p {
        margin: 8px 0;
        color: #555;
    }

    /* Fix for modal backdrop stuck issue */
    .modal-backdrop.show {
        opacity: 0.5;
    }

    body.modal-open {
        overflow: hidden;
        padding-right: 0 !important;
    }