
        :root {
            --bg: #f6eded;
            --card: #ffffff;
            --border: #e5e7eb;
            --accent: #198754;
            --text: #0f172a;
            --muted: #64748b;
            --shadow: 0 10px 30px rgba(0,0,0,.08);
        }

        * { box-sizing: border-box; }

        body {
            font-family: 'Poppins', Arial, sans-serif;
            /*background: var(--bg);*/
            color: var(--text);
            line-height: 1.6;
            margin: 0;
        }

        .navbar-brand { font-weight: 600; font-size: 1.5rem; }

        .tab {
            padding: 12px 28px;
            border-radius: 50px;
            border: 2px solid var(--border);
            background: #f8fafc;
            cursor: pointer;
            font-weight: 500;
            transition: all .3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            color: var(--text);
        }

        .tab:hover {
            transform: translateY(-2px);
            border-color: var(--accent);
            box-shadow: 0 5px 15px rgba(25, 135, 84, 0.2);
        }

        .tab.active {
            background: var(--accent) !important;
            color: #fff !important;
            border-color: var(--accent);
            box-shadow: 0 5px 20px rgba(25, 135, 84, 0.3);
        }

        .custom-card {
            background: var(--card);
            border: 1px solid var(--border);
            padding: 30px;
            border-radius: 20px;
            height: 100%;
            box-shadow: var(--shadow);
            transition: all .3s ease;
            text-align: center;
        }

        .custom-card:hover {
            transform: translateY(-8px);
            border-color: var(--accent);
            box-shadow: 0 20px 40px rgba(25, 135, 84, 0.15);
        }

        .icon {
            font-size: 2.5rem;
            color: var(--accent);
            margin-bottom: 16px;
            display: block;
        }

        .custom-card h5 {
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--text);
        }

        .custom-card p {
            font-size: 14.5px;
            color: var(--muted);
            line-height: 1.5;
        }

        .grid { display: none !important; }
        .grid.active { display: flex !important; }

        .page-header h1 {
            font-weight: 700;
            font-size: clamp(2rem, 5vw, 3.5rem);
            margin-bottom: 12px;
            background: linear-gradient(135deg, var(--text), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .page-header p { font-size: 1.1rem; color: var(--muted); }

        @media (max-width: 768px) {
            .tab { padding: 10px 20px; font-size: 0.9rem; }
            .custom-card { padding: 20px; }
        }
/* RESPONSIVE MEDIA QUERIES - Add this at the end of your <style> section */

/* Extra Large Screens (1200px and up) - Default styles already work */
@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

/* Large Screens (992px - 1199px) */
@media (max-width: 1199px) {
    .cbse-section-title { font-size: 2.4rem; }
    .custom-card { padding: 2rem 1.5rem; }
}

/* Medium Screens (768px - 991px) - Tablets */
@media (max-width: 991px) {
    .cbse-section-title { font-size: 2.2rem; }
    .cbse-section-subtitle { font-size: 1.1rem; }
    
    /* Tabs Stack Vertically */
    .d-flex.justify-content-center.gap-3 {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .tab {
        justify-content: center;
        padding: 14px 24px;
        width: 280px;
        max-width: 100%;
    }
    
    /* Cards take full width */
    .col-lg-4.col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Reduce icon size */
    .icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Small Screens (576px - 767px) - Small Tablets */
@media (max-width: 767px) {
    .container.py-5 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .page-header h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .page-header .text-muted {
        font-size: 1rem;
    }
    
    /* Cards full width */
    .col-lg-4.col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .custom-card {
        padding: 1.75rem 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .cbse-section-title {
        font-size: 1.9rem;
    }
    
    .cbse-section-subtitle {
        font-size: 1rem;
    }
    
    /* Smaller icons and text */
    .icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-bottom: 16px;
    }
    
    .custom-card h5 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .custom-card p {
        font-size: 0.92rem;
        margin-bottom: 20px;
    }
    
    /* Badge positioning */
    .cbse-badge {
        top: 15px;
        right: 15px;
        padding: 5px 12px;
        font-size: 11px;
    }
    
    /* Meta info - 2 columns instead of 3 */
    .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .d-flex.justify-content-between span {
        flex: 1 1 48%;
        font-size: 0.85rem;
    }
    
    /* Finance cards adjustments */
    .finance-course-block {
        padding: 1.75rem 1.25rem;
    }
    
    .finance-course-heading {
        font-size: 1.3rem;
    }
}

/* Extra Small Screens (under 576px) - Mobile Phones */
@media (max-width: 575px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .page-header {
        padding-top: 20px !important;
    }
    
    .page-header h1 {
        font-size: 1.7rem;
    }
    
    .page-header .text-muted {
        font-size: 0.95rem;
        padding: 0 10px 20px;
    }
    
    /* Tabs full width */
    .tab {
        width: 100%;
        max-width: 320px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* Cards even more compact */
    .custom-card,
    .finance-course-block {
        padding: 1.5rem 1rem;
    }
    
    .icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .custom-card h5,
    .finance-course-heading {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    .custom-card p,
    .finance-course-subheading,
    .finance-course-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* List items smaller */
    .custom-card ul li,
    .finance-course-feature-point span {
        font-size: 0.88rem;
        margin-bottom: 6px;
    }
    
    /* Buttons full width */
    .btn-primary.w-100,
    .finance-course-cta-btn {
        font-size: 0.95rem;
        padding: 12px 20px;
    }
    
    /* Meta info single column */
    .d-flex.justify-content-between,
    .finance-course-meta-info {
        flex-direction: column;
        gap: 6px;
    }
    
    .d-flex.justify-content-between span,
    .finance-meta-point {
        flex: none;
        font-size: 0.82rem;
        justify-content: flex-start;
    }
    
    /* Top border adjustment */
    .custom-card::before {
        height: 3px;
    }
    
    /* Badges smaller */
    .cbse-badge,
    .finance-course-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* Landscape Mobile (width < height) */
@media (max-width: 575px) and (orientation: landscape) {
    .custom-card,
    .finance-course-block {
        padding: 1.25rem 1rem;
    }
    
    .icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .custom-card {
        box-shadow: 0 16px 48px rgba(0,0,0,0.06);
    }
    
    .custom-card:hover {
        box-shadow: 0 24px 64px rgba(0,0,0,0.12);
    }
}
