        :root {
            --bg-color: #ffffff;
            --text-primary: #1f1f1f;
            --text-secondary: #444746;
            --card-bg: #f8fafc;
            --card-hover: #eff6ff;
            --accent-blue: #0b57d0;
            --border-color: #e2e8f0;
            --font-main: 'Outfit', sans-serif;
            /* fallback monospace font used by the top logo */
            --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Segoe UI Mono", monospace;
        }

        * { box-sizing: border-box; }
        body { margin: 0; font-family: var(--font-main); background: var(--bg-color); color: var(--text-primary); }

        /*Logo */
        .top-logo {
            position: absolute;
            top: 24px;
            right: 32px;
            font-family: var(--font-mono);
            font-size: 27px;
            font-weight: 700;
            color: var(--text-primary);
            text-decoration: none;
            z-index: 100;
            letter-spacing: -0.5px;
        }

        .logo-accent { color: var(--accent-blue); }

        .logo{
            display: flex;
            text-align: center;
            justify-content: right;
            align-items: center;
            padding: 2vh 3vw 2vh 0;
        }

        /* Container */
        .main-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 24px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* Hero Section */
        .hero {
            text-align: center;
            margin-bottom: 80px;
            animation: fadeIn 0.8s ease-out;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .hero-badge {
            display: inline-block;
            background: #eff6ff;
            color: #1d4ed8;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 6px 12px;
            border-radius: 50px;
            margin-bottom: 24px;
            border: 1px solid #bfdbfe;
        }

        .hero h1 {
            font-size: 56px;
            font-weight: 600;
            margin: 0 0 24px 0;
            line-height: 1.2; /* Increased line-height slightly for better readability */
            letter-spacing: -1.5px;
            color: #1f1f1f;
        }
        
        /* Gradient Text Effect */
        .highlight-text {
            background: linear-gradient(135deg, #0b57d0 0%, #9333ea 50%, #db2777 100%);
            background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline-block;
            padding-bottom: 10px; /* Added to prevent descender clipping */
        }

        .hero p {
            font-size: 20px;
            color: var(--text-secondary);
            line-height: 1.6;
            margin: 0 auto;
            font-weight: 300;
        }

        /* Grid */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 24px;
            padding: 20px 0;
        }

        /* Cards */
        .card {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 32px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            text-decoration: none;
            color: inherit;
            position: relative;
            overflow: hidden;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.06);
            border-color: #bfdbfe;
        }

        .card-icon {
            width: 64px;
            height: 64px;
            background: var(--card-bg);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            color: var(--text-secondary);
            transition: all 0.3s ease;
        }

        .card:hover .card-icon {
            background: #dbeafe;
            color: var(--accent-blue);
            transform: scale(1.1);
        }

        .card h3 {
            margin: 0 0 8px 0;
            font-size: 20px;
            font-weight: 600;
        }

        .card p {
            margin: 0;
            font-size: 14px;
            color: #64748b;
            line-height: 1.5;
        }

        /* Special UPSC Card Styling */
        .card.upsc-card {
            background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
            border: 2px solid #bfdbfe;
            grid-column: span 3; /* Make it wider on large screens */
        }
        
        .premium-card{
            background: linear-gradient(135deg, rgb(255, 230, 88) 0%, #ffffff 100%);
            border: 2px solid gold;
            grid-column: span 1; /* Make it wider on large screens */
            /* background: #fff; */
            border: 1px solid gold;
            border-radius: 24px;
            padding: 32px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            text-decoration: none;
            color: inherit;
            position: relative;
            overflow: hidden;
        }

        .premium-card:hover {
            background: linear-gradient(135deg, rgb(255, 230, 88) 0%, #ffffff 100%);
            transform: translateY(-5px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.06);
            border-color: gold;
        }

        .premium-card .card-icon {
            background: #ffd700;
            color: white;
        }

        .premium-card .card-icon svg {
            filter: drop-shadow(0 0 2px rgba(0,0,0,0.2));
        }

        .premium-card:hover .card-icon {
            background: #ffd700;
            color: white;
            border-color: #ffd700; 
        }
        .premium-card h3 {
            margin: 0 0 8px 0;
            font-size: 20px;
            font-weight: 600;
        }

        .premium-card p {
            margin: 0;
            font-size: 14px;
            color: #64748b;
            line-height: 1.5;
        }

        .category-heading{
            font-size: 24px;
            font-weight: 600;
            margin: 40px 0 20px 0;
            color: #1f1f1f;
            text-align: center;
            grid-column: span 4;
        }

        .important-card {
            border: 2px solid var(--accent-blue);
            grid-column: span 2 !important;
        }
        
        @media (max-width: 768px) {
            .card { grid-column: span 4; width: 90vw; }
            .upsc-card { grid-column: span 4; width: 90vw; }
            .important-card { grid-column: span 4 !important; width: 90vw; }
            .premium-card { grid-column: span 4; width: 90vw; }
            .category-heading { grid-column: span 4; width: 90vw; }
            .hero h1 { font-size: 36px; }
        }

        .card.upsc-card .card-icon {
            background: #bfdbfe;
            color: #1e40af;
        }
        
        .card.upsc-card:hover {
            box-shadow: 0 12px 30px rgba(11, 87, 208, 0.15);
            border-color: var(--accent-blue);
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .card { animation: fadeIn 0.6s ease-out backwards; }
        .premium-card { animation: fadeIn 0.6s ease-out backwards; }
        .category-heading { animation: fadeIn 0.6s ease-out backwards; }
        /* Staggered delay for cards */
        .category-heading:nth-child(1) { animation-delay: 0s; }
        .card:nth-child(2) { animation-delay: 0.05s; }
        .premium-card { animation-delay: 0.1s; }
        .category-heading:nth-child(4) { animation-delay: 0.15s; }
        .card:nth-child(5) { animation-delay: 0.2s; }
        .card:nth-child(6) { animation-delay: 0.25s; }
        .card:nth-child(7) { animation-delay: 0.3s; }
        .card:nth-child(8) { animation-delay: 0.35s; }
        .card:nth-child(9) { animation-delay: 0.4s; }
        .card:nth-child(10) { animation-delay: 0.45s; }
        .category-heading:nth-child(11) { animation-delay: 0.5s; }
        .card:nth-child(12) { animation-delay: 0.55s; }
        .card:nth-child(13) { animation-delay: 0.6s; }
        .card:nth-child(14) { animation-delay: 0.65s; }
        .card:nth-child(15) { animation-delay: 0.7s; }
        .card:nth-child(16) { animation-delay: 0.75s; }
        .card:nth-child(17) { animation-delay: 0.8s; }
        .card:nth-child(18) { animation-delay: 0.85s; }
        .card:nth-child(19) { animation-delay: 0.9s; }
        .card:nth-child(20) { animation-delay: 0.95s; }
        .card:nth-child(21) { animation-delay: 1.0s; }





