/* =========================================
   OUR CLASSES PAGE – DEDICATED STYLES
   ========================================= */

/* --- Hero / Page Header --- */
.cls-hero {
    background: linear-gradient(-45deg, #0d47a1, #002171, #1a237e, #0d47a1);
    background-size: 400% 400%;
    animation: clsGradient 15s ease infinite;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}
.cls-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.08;
    pointer-events: none;
}
@keyframes clsGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cls-hero .container { position: relative; z-index: 2; }

.cls-breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    gap: 8px;
    justify-content: center;
}
.cls-breadcrumb li { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.cls-breadcrumb li a { color: rgba(255,255,255,0.9); text-decoration: none; transition: .2s; }
.cls-breadcrumb li a:hover { color: #ffca28; }
.cls-breadcrumb li + li::before { content: '›'; margin-right: 8px; color: rgba(255,255,255,0.5); }

/* Search / Filter Bar */
.cls-search-bar {
    max-width: 750px;
    margin: 30px auto 0;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 60px;
    padding: 6px 6px 6px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: .3s;
}
.cls-search-bar:focus-within {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.cls-search-bar i { color: rgba(255,255,255,0.7); font-size: 1.1rem; }
.cls-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}
.cls-search-bar input::placeholder { color: rgba(255,255,255,0.5); }
.cls-search-btn {
    background: #ffca28;
    color: #002171;
    border: none;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: .3s;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}
.cls-search-btn:hover {
    background: #ffd54f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,202,40,0.5);
}

/* --- Category Navigation Tabs --- */
.cls-category-nav {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    padding: 0;
    position: sticky;
    top: 68px;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.cls-tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    gap: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cls-tab-list::-webkit-scrollbar { display: none; }
.cls-tab-link {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 16px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: .3s;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cls-tab-link:hover { color: #0d47a1; background: #f0f7ff; }
.cls-tab-link.active {
    color: #0d47a1;
    border-bottom-color: #0d47a1;
    background: #f0f7ff;
}
.cls-tab-link .tab-emoji { font-size: 1rem; }

/* --- Category Sections --- */
.cls-category-section {
    padding: 60px 0;
    scroll-margin-top: 140px;
}
.cls-category-section:nth-child(even) { background: #f8fafd; }
.cls-category-section:nth-child(odd) { background: #ffffff; }

.cls-section-header {
    text-align: center;
    margin-bottom: 45px;
}
.cls-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.cls-section-header h2 {
    font-weight: 800;
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 10px;
}
.cls-section-header p {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* --- Sub-category Cards --- */
.cls-sub-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eef2f7;
    overflow: hidden;
    transition: all .4s cubic-bezier(.175,.885,.32,1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.cls-sub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13,71,161,0.1);
    border-color: rgba(13,71,161,0.2);
}

.cls-sub-header {
    padding: 24px 24px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.cls-sub-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: .3s;
}
.cls-sub-card:hover .cls-sub-icon { transform: rotate(8deg) scale(1.1); }

.cls-sub-header h5 { font-weight: 700; font-size: 1.05rem; margin: 0; color: #1e293b; }
.cls-sub-header .cls-sub-tag {
    font-size: 0.7rem;
    color: #94a3b8;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

.cls-sub-body {
    padding: 18px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.cls-subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.cls-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #f0f7ff;
    color: #0d47a1;
    border: 1px solid #dbeafe;
    transition: .2s;
}
.cls-tag:hover { background: #0d47a1; color: #fff; border-color: #0d47a1; }

.cls-sub-features {
    list-style: none;
    padding: 0;
    margin: 0 0 0;
}
.cls-sub-features li {
    padding: 5px 0;
    font-size: 0.82rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cls-sub-features li i { color: #22c55e; font-size: 0.7rem; }

/* Color Variants */
.cls-green .cls-sub-icon { background: #dcfce7; color: #16a34a; }
.cls-blue .cls-sub-icon { background: #dbeafe; color: #2563eb; }
.cls-orange .cls-sub-icon { background: #ffedd5; color: #ea580c; }
.cls-red .cls-sub-icon { background: #fce7f3; color: #db2777; }
.cls-purple .cls-sub-icon { background: #ede9fe; color: #7c3aed; }
.cls-teal .cls-sub-icon { background: #ccfbf1; color: #0d9488; }
.cls-indigo .cls-sub-icon { background: #e0e7ff; color: #4f46e5; }
.cls-rose .cls-sub-icon { background: #ffe4e6; color: #e11d48; }
.cls-amber .cls-sub-icon { background: #fef3c7; color: #d97706; }
.cls-cyan .cls-sub-icon { background: #cffafe; color: #0891b2; }
.cls-lime .cls-sub-icon { background: #ecfccb; color: #65a30d; }
.cls-sky .cls-sub-icon { background: #e0f2fe; color: #0284c7; }
.cls-fuchsia .cls-sub-icon { background: #fae8ff; color: #a21caf; }
.cls-emerald .cls-sub-icon { background: #d1fae5; color: #059669; }
.cls-slate .cls-sub-icon { background: #f1f5f9; color: #475569; }

/* Badge colors */
.badge-school { background: #dbeafe; color: #1e40af; }
.badge-ug { background: #dcfce7; color: #166534; }
.badge-pg { background: #ede9fe; color: #5b21b6; }
.badge-entrance { background: #fef3c7; color: #92400e; }
.badge-govt { background: #fce7f3; color: #9d174d; }
.badge-skill { background: #ccfbf1; color: #134e4a; }
.badge-pro { background: #ffedd5; color: #9a3412; }
.badge-special { background: #e0e7ff; color: #3730a3; }
.badge-online { background: #cffafe; color: #155e75; }

/* --- Collapsible Sub-sections (used for large categories) --- */
.cls-expand-btn {
    background: none;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px 24px;
    color: #0d47a1;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}
.cls-expand-btn:hover {
    background: #f0f7ff;
    border-color: #0d47a1;
}

/* --- Stream Tabs (for Senior Secondary) --- */
.cls-stream-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.cls-stream-tab {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: .3s;
    font-family: 'Poppins', sans-serif;
}
.cls-stream-tab:hover { border-color: #0d47a1; color: #0d47a1; }
.cls-stream-tab.active {
    background: #0d47a1;
    color: #fff;
    border-color: #0d47a1;
    box-shadow: 0 4px 12px rgba(13,71,161,0.3);
}

/* --- Why Choose Academia Section --- */
.cls-why-section {
    background: linear-gradient(-45deg, #0d47a1, #002171, #1a237e, #0d47a1);
    background-size: 400% 400%;
    animation: clsGradient 15s ease infinite;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cls-why-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.06;
    pointer-events: none;
}
.cls-why-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    transition: all .3s;
    height: 100%;
}
.cls-why-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.cls-why-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,202,40,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: #ffca28;
    transition: .4s;
}
.cls-why-card:hover .cls-why-icon { transform: rotateY(180deg); }
.cls-why-card h6 { color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.cls-why-card p { color: rgba(255,255,255,0.7); font-size: 0.78rem; margin: 0; }

/* --- Stats / Counters --- */
.cls-stats {
    background: #fff;
    padding: 50px 0;
    border-bottom: 1px solid #f1f5f9;
}
.cls-stat-item {
    text-align: center;
    padding: 20px;
}
.cls-stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0d47a1;
    line-height: 1;
    margin-bottom: 8px;
}
.cls-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}

/* --- Upcoming Batches Table --- */
.cls-batch-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.cls-batch-table thead th {
    background: #0d47a1;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 16px 20px;
    border: none;
}
.cls-batch-table tbody td {
    padding: 14px 20px;
    font-size: 0.88rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.cls-batch-table tbody tr:hover td { background: #f8fafd; }
.cls-batch-table .batch-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}
.batch-open { background: #dcfce7; color: #166534; }
.batch-filling { background: #fef3c7; color: #92400e; }
.batch-closed { background: #fce7f3; color: #9d174d; }

/* --- Testimonial Carousel --- */
.cls-testimonial-section {
    padding: 70px 0;
    background: #f8fafd;
}
.cls-testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: .3s;
    height: 100%;
}
.cls-testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.cls-testimonial-avatar {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d47a1, #1a237e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    font-weight: 700;
}
.cls-testimonial-card .stars { color: #ffca28; margin-bottom: 12px; }
.cls-testimonial-card blockquote {
    font-size: 0.88rem;
    color: #475569;
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.6;
}
.cls-testimonial-card .t-name { font-weight: 700; color: #1e293b; font-size: 0.9rem; }
.cls-testimonial-card .t-course { font-size: 0.78rem; color: #94a3b8; }

/* --- FAQ Accordion --- */
.cls-faq-section { padding: 70px 0; background: #fff; }
.cls-faq-item {
    border: 1px solid #eef2f7;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: .3s;
}
.cls-faq-item.active { border-color: #0d47a1; box-shadow: 0 4px 16px rgba(13,71,161,0.08); }
.cls-faq-question {
    width: 100%;
    background: #fff;
    border: none;
    text-align: left;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Poppins', sans-serif;
    transition: .2s;
}
.cls-faq-question:hover { background: #f8fafd; }
.cls-faq-question i {
    color: #0d47a1;
    transition: transform .3s;
}
.cls-faq-item.active .cls-faq-question i { transform: rotate(180deg); }
.cls-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
    padding: 0 24px;
}
.cls-faq-item.active .cls-faq-answer {
    max-height: 300px;
    padding: 0 24px 18px;
}
.cls-faq-answer p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.7;
}

/* --- CTA / Enrollment Form --- */
.cls-cta-section {
    background: linear-gradient(135deg, #0d47a1 0%, #1a237e 50%, #002171 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cls-cta-section::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: rgba(255,202,40,0.08);
    border-radius: 50%;
    top: -100px; right: -100px;
}
.cls-cta-section::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    bottom: -80px; left: -80px;
}

.cls-enroll-form {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 40px;
}
.cls-enroll-form label {
    color: rgba(255,255,255,0.8);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 6px;
}
.cls-enroll-form input,
.cls-enroll-form select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: .3s;
}
.cls-enroll-form input::placeholder { color: rgba(255,255,255,0.4); }
.cls-enroll-form input:focus,
.cls-enroll-form select:focus {
    background: rgba(255,255,255,0.18);
    border-color: #ffca28;
    box-shadow: 0 0 0 3px rgba(255,202,40,0.2);
    outline: none;
    color: #fff;
}
.cls-enroll-form select option { color: #1e293b; background: #fff; }
.cls-cta-btn {
    background: #ffca28;
    color: #002171;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .3s;
    font-family: 'Poppins', sans-serif;
    width: 100%;
}
.cls-cta-btn:hover {
    background: #ffd54f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,202,40,0.4);
}

.cls-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cls-action-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 16px 20px;
    color: #fff;
    text-decoration: none;
    transition: .3s;
}
.cls-action-btn:hover {
    background: rgba(255,255,255,0.12);
    transform: translateX(6px);
    color: #fff;
}
.cls-action-btn .icon-wrap {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255,202,40,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffca28;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cls-action-btn .text h6 { margin: 0; font-size: 0.85rem; font-weight: 700; }
.cls-action-btn .text p { margin: 0; font-size: 0.72rem; color: rgba(255,255,255,0.6); }

/* --- Online Learning Features --- */
.cls-feature-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 16px;
    padding: 18px 22px;
    border: 1px solid #eef2f7;
    transition: .3s;
    height: 100%;
}
.cls-feature-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border-color: #0d47a1;
}
.cls-feature-pill .pill-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.cls-feature-pill h6 { font-size: 0.85rem; font-weight: 700; margin: 0; color: #1e293b; }
.cls-feature-pill p { font-size: 0.75rem; margin: 0; color: #94a3b8; }

/* --- Responsive --- */
@media (max-width: 991px) {
    .cls-hero { padding: 120px 0 60px; }
    .cls-hero h1 { font-size: 2rem !important; }
    .cls-category-nav { top: 56px; }
    .cls-section-header h2 { font-size: 1.6rem; }
    .cls-enroll-form { padding: 24px; }
    .cls-stat-number { font-size: 2rem; }
}
@media (max-width: 767px) {
    .cls-hero h1 { font-size: 1.6rem !important; }
    .cls-search-bar { flex-direction: column; border-radius: 16px; padding: 12px; }
    .cls-search-btn { width: 100%; }
    .cls-tab-link { padding: 12px 14px; font-size: 0.72rem; }
    .cls-why-card { padding: 20px 16px; }
}

/* --- No results state --- */
.cls-no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}
.cls-no-results i { font-size: 3rem; color: #cbd5e1; }
.cls-no-results h5 { color: #64748b; margin-top: 16px; }
.cls-no-results p { color: #94a3b8; }

/* Highlight matching results */
.cls-highlight { background: #fef3c7; border-radius: 3px; padding: 0 2px; }

/* Scroll animations */
.cls-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease;
}
.cls-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
