/* Packages Hero */
.packages-hero {
    padding: 160px 0 60px;
    color: var(--lighter);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 20px 20px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}
.packages-hero .video-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.packages-hero .video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(1.3);
    animation: subtleMove 20s linear infinite;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--lighter);
}
.page-subtitle {
    color: var(--lighter);
}
.notice {
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.notice i {
    font-size: 1.5rem;
}

.notice p {
    margin: 0;
    text-align: left;
    font-size: 1.1rem;
}

/* Hindi Text Styling */
.hindi-text {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    color: var(--primary);
    font-weight: 600;
}

/* Class Selector (Before Rachna) */
.class-selector {
    margin-bottom: 80px;
    text-align: center;
    margin-top: 2rem;
}

.class-selector h2 {
    font-size: 2.2rem;
    color: var(--lighter);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.class-selector h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.class-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.class-card {
    position: relative;
    padding: 22px 15px;
    background: var(--lighter);
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--darker);
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-light);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Top & Bottom Gradient Lines */
.class-card::before,
.class-card::after {
    content: '';
    position: absolute;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.class-card::before {
    top: 0;
}

.class-card::after {
    bottom: 0;
}

.class-card:hover::before,
.class-card:hover::after {
    transform: scaleX(1);
}

.class-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--primary);
}

.class-card:focus-visible {
    outline: none;
    border-color: var(--primary);
}

@media (max-width: 1200px) {
    .class-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .class-selector h2 {
        font-size: 1.9rem;
    }

    .class-links {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .class-card {
        font-size: 1rem;
        padding: 18px 12px;
    }
}

/* Packages Section */
.packages-section {
    padding: 60px 0 100px;
    background: var(--lighter);
}

.package-category {
    margin-bottom: 80px;
    scroll-margin-top: 150px;
    transition: all 0.3s ease;
}

.package-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 2.3rem;
    color: var(--darker);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
}

.category-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
    font-weight: 500;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.package-card {
    background: var(--lighter);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--gray-light);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.package-card.featured {
    border-color: var(--primary);
    transform: scale(1.02);
    animation: featuredGlow 2s infinite alternate;
}

@keyframes featuredGlow {
    from {
        box-shadow: 0 10px 30px rgba(255, 107, 0, 0.15);
    }
    to {
        box-shadow: 0 10px 40px rgba(255, 107, 0, 0.25);
    }
}

.package-card.featured:hover {
    transform: translateY(-10px) scale(1.02);
}

.package-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: var(--lighter);
    padding: 8px 35px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.package-header {
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid var(--gray-light);
}

.package-header h3 {
    font-size: 1.6rem;
    color: var(--darker);
    margin-bottom: 1rem;
    font-weight: 700;
}

.price-section {
    margin: 1rem 0;
}

.price-mode {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-new {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.value-indicator {
    background: var(--light);
    border-radius: 20px;
    height: 8px;
    position: relative;
    margin: 1rem 0;
    overflow: hidden;
}

.value-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gray-light) 0%, var(--primary) 100%);
    border-radius: 20px;
    transition: width 1s ease;
}

.value-text {
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.package-duration {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.package-features {
    padding: 2rem;
    flex-grow: 1;
}

.package-features ul {
    list-style: none;
}

.package-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--gray);
}

.package-features i {
    color: var(--primary);
    margin-top: 3px;
    font-size: 0.85rem;
}

.package-features i.fa-times {
    color: var(--danger);
}

.package-features strong {
    color: var(--darker);
    font-weight: 600;
}

.package-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 2px solid var(--gray-light);
    text-align: center;
}

.installment {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

/* Payment Options */
.payment-options {
    padding: 100px 0;
    background: var(--light);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.option-card {
    background: var(--lighter);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.option-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.option-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--darker);
}

.option-card ul {
    list-style: none;
    text-align: left;
}

.option-card li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.option-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}


/* Contact CTA */
/* Contact CTA */
.contact-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--lighter);
    text-align: center;
    position: relative;       /* Needed for pseudo-element */
    overflow: hidden;         /* Needed for animation */
    z-index: 2;
}

/* Rotating Radial Animation Layer for Contact CTA */
.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    animation: ctaPulse 6s linear infinite;
    pointer-events: none; /* Keeps buttons clickable */
    z-index: -1;
}

/* CTA Content Styling */
.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--lighter);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animation Keyframes */
@keyframes ctaPulse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Responsive */
@media (max-width: 1200px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .packages-hero {
        padding: 140px 0 80px;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .price-new {
        font-size: 1.6rem;
    }
    
    .filters-section {
        padding: 1rem 0;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .package-badge {
        top: 15px;
        right: -40px;
        padding: 6px 30px;
        font-size: 0.7rem;
    }
    
    .category-title {
        font-size: 1.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .coming-features {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 140px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .package-header,
    .package-features,
    .package-footer {
        padding: 1.5rem;
    }
    
    .price-new {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .coming-soon-card {
        padding: 3rem 1.5rem;
    }
}