:root {
            --bg: #f7f7f5;
            --surface: #ffffff;
            --card: #faf8f5;
            --muted: #6b6b6b;
            --text: #1a1a1a;
            --text-secondary: #71717a;
            --accent: #9a7b4f;
            --accent-light: #c4a265;
            --ring: #b8935a;
            --ok: #22c55e;
            --bad: #ef4444;
            --border: #e4e4e0;
            --radius: 16px;
            --shadow: 0 10px 30px rgba(154, 123, 79, .08);
            --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            
        }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 90px; /* Offset for fixed header */
        }

        html, body {
            overflow-x: hidden;
        }

        body {
            margin: 0;
            font-family: var(--font);
            background: var(--bg);
            color: var(--text);
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        a {
            text-decoration: none;
            transition: color 0.3s ease;
        }

        a:hover {
            color: var(--accent);
        }

        /* ========== HEADER STYLES - START ========== */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            background: rgba(247, 247, 245, 0.9);
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            border-bottom: 1px solid var(--border);
            transition: background 0.3s ease, box-shadow 0.3s ease;
        }

        header.scrolled {
            background: rgba(247, 247, 245, 0.95);
            box-shadow: 0 2px 20px rgba(154, 123, 79, 0.08);
        }

        .header-container {
            max-width: 1080px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 64px;
            position: relative;
        }

        .brand {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text);
            text-decoration: none;
            letter-spacing: -0.02em;
            transition: opacity 0.2s;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .brand span {
            color: var(--accent);
        }

        .brand:hover {
            opacity: 0.7;
        }

        /* Desktop Navigation */
        .desktop-nav {
            display: flex;
            gap: 28px;
            align-items: center;
            list-style: none;
        }

        .desktop-nav a {
            color: var(--muted);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            letter-spacing: 0.03em;
            text-transform: uppercase;
            transition: color 0.3s;
            position: relative;
        }

        .desktop-nav a:hover {
            color: var(--text);
        }

        .desktop-nav a[aria-current="page"] {
            color: var(--text);
            font-weight: 600;
        }

        .desktop-nav a[aria-current="page"]::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--accent);
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from {
                transform: scaleX(0);
            }
            to {
                transform: scaleX(1);
            }
        }

        /* Mobile Menu Toggle */
        .menu-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            z-index: 101;
            position: relative;
        }

        .menu-toggle span {
            display: block;
            width: 22px;
            height: 2px;
            background: var(--text);
            border-radius: 2px;
            transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
            transform-origin: center;
        }

        .menu-toggle:hover span {
            background: var(--accent);
        }

        .menu-toggle.active span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
            transform: scale(0);
        }

        .menu-toggle.active span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        nav {
            display: none;
            position: fixed;
            top: 64px;
            right: 24px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(154, 123, 79, 0.15);
            min-width: 220px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            z-index: 100;
        }

        nav.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        nav::before {
            content: '';
            position: absolute;
            top: -6px;
            right: 20px;
            width: 12px;
            height: 12px;
            background: white;
            transform: rotate(45deg);
            box-shadow: -2px -2px 4px rgba(154, 123, 79, 0.05);
        }

        .nav-link {
            display: block;
            padding: 14px 20px;
            color: var(--text);
            font-size: 0.85rem;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s ease;
            letter-spacing: 0.02em;
            border-bottom: 1px solid rgba(228, 228, 224, 0.5);
        }

        .nav-link:last-child {
            border-bottom: none;
        }

        .nav-link:hover {
            background: linear-gradient(90deg, rgba(154, 123, 79, 0.08), transparent);
            color: var(--accent);
            padding-left: 28px;
        }

        .nav-link[aria-current="page"] {
            color: var(--accent);
            font-weight: 600;
            background: rgba(154, 123, 79, 0.06);
        }

        .menu-toggle span {
            display: block;
            width: 22px;
            height: 2px;
            background: var(--text);
            border-radius: 2px;
            transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
            transform-origin: center;
        }

        .menu-toggle.active span:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
            transform: scale(0);
        }

        .menu-toggle.active span:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

        .menu-toggle:hover span {
            background: var(--accent);
        }

        .menu-overlay {
            display: none;
            position: fixed;
            inset: 64px 0 0 0;
            background: rgba(26, 26, 26, 0);
            backdrop-filter: blur(0px);
            z-index: 99;
            transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                       backdrop-filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .menu-overlay.active {
            display: block;
            background: rgba(26, 26, 26, 0.4);
            backdrop-filter: blur(4px);
        }

        /* ========== MOBILE RESPONSIVE FOR HEADER - START ========== */
        @media (max-width: 768px) {
            .desktop-nav {
                display: none;
            }

            .header-container {
                height: 64px;
                padding: 0 24px;
            }

            .brand {
                font-size: 1.0625rem;
            }

            .menu-toggle {
                display: flex;
            }

            nav {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 8px;
                position: fixed;
                top: 64px;
                left: 0;
                right: 0;
                width: 100%;
                height: calc(100vh - 64px);
                background: rgba(247, 247, 245, 0.98);
                backdrop-filter: blur(10px);
                padding: 60px 24px;
                box-shadow: none;
                overflow-y: auto;
                opacity: 0;
                visibility: hidden;
                transform: translateY(-30px) scale(0.95);
                transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                            visibility 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                            transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                            backdrop-filter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
            }

            nav.active {
                opacity: 1;
                visibility: visible;
                transform: translateY(0) scale(1);
            }

            nav::before {
                display: none;
            }

            .nav-link {
                padding: 16px 24px;
                font-size: 1.25rem;
                text-align: center;
                border-bottom: none;
                width: 100%;
                max-width: 300px;
                border-radius: 12px;
                opacity: 0;
                transform: translateY(20px);
                transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
                letter-spacing: 0;
            }

            nav.active .nav-link {
                opacity: 1;
                transform: translateY(0);
            }

            nav.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
            nav.active .nav-link:nth-child(2) { transition-delay: 0.15s; }
            nav.active .nav-link:nth-child(3) { transition-delay: 0.2s; }
            nav.active .nav-link:nth-child(4) { transition-delay: 0.25s; }
            nav.active .nav-link:nth-child(5) { transition-delay: 0.3s; }
            nav.active .nav-link:nth-child(6) { transition-delay: 0.35s; }
            nav.active .nav-link:nth-child(7) { transition-delay: 0.4s; }

            .nav-link:hover {
                background: rgba(154, 123, 79, 0.1);
                padding-left: 24px;
                transform: scale(1.05) translateY(0);
                color: var(--accent);
            }

            .nav-link[aria-current="page"] {
                background: var(--accent);
                color: white;
            }

            .menu-overlay {
                inset: 64px 0 0 0;
            }
        }

        @media (min-width: 769px) {
            .menu-overlay {
                display: none !important;
            }
        }
        /* ========== MOBILE RESPONSIVE FOR HEADER - END ========== */
        /* ========== HEADER STYLES - END ========== */

        main {
            max-width: 1080px;
            margin: 0 auto;
            padding: 84px 24px 80px;
            min-height: calc(100vh - 300px);
        }

        /* ========== HERO SECTION STYLES - START ========== */
        .hero-section {
            max-width: 800px;
            margin: 0 auto 60px;
            text-align: center;
            padding-top: 20px;
        }

        .hero-section h1 {
            font-size: clamp(2rem, 5vw, 2.75rem);
            font-weight: 700;
            line-height: 1.15;
            letter-spacing: -0.03em;
            margin-bottom: 16px;
            color: var(--text);
            animation: heroIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        .hero-section .subheading {
            font-size: 1.08rem;
            color: var(--muted);
            line-height: 1.75;
            margin-bottom: 40px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            animation: heroIn 0.45s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        /* Fast GPU-only entrance: opacity + transform only (no layout cost) */
        @keyframes heroIn {
            from { opacity: 0; transform: translateY(12px); }
            to   { opacity: 1; transform: translateY(0);    }
        }
        /* ========== HERO SECTION STYLES - END ========== */

        /* ========== CALCULATOR DESIGNS STYLES - START ========== */
        .calculator-design {
            margin-bottom: 35vh;
            animation: heroIn 0.45s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        /* AdSense Ad Container */
        .ad-container {
            margin: 40px auto;
            text-align: center;
            min-height: 280px;
            display: none; /* Hidden until AdSense approval - change to 'flex' when ready */
            align-items: center;
            justify-content: center;
        }

        .ad-container.horizontal {
            min-height: 90px;
        }

        .ad-placeholder {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            color: var(--muted);
            font-size: 0.85rem;
        }

        /* Design 7: Split Panel */
        .calc-card-7 {
            max-width: 750px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            background: var(--surface);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(154, 123, 79, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
            border: 1px solid var(--border);
            transition: transform 0.4s, box-shadow 0.4s;
        }

        .calc-card-7:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 48px rgba(154, 123, 79, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
        }

        .left-panel-7 {
            padding: 40px;
            background: linear-gradient(135deg, #faf8f5 0%, #f5f0e8 100%);
        }

        .left-panel-7 h3 {
            margin: 0 0 20px 0;
            color: var(--text);
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: -0.01em;
        }

        .left-panel-7 label {
            display: block;
            margin-bottom: 8px;
            color: var(--muted);
            font-weight: 500;
            font-size: 0.85rem;
        }

        .input-7 {
            width: 100%;
            padding: 16px 18px;
            border: 1.5px solid var(--border);
            border-radius: 14px;
            font-size: 1.25rem;
            margin-bottom: 10px;
            font-family: var(--font);
            background: white;
            color: var(--text);
            transition: border-color 0.3s, box-shadow 0.3s;
            outline: none;
        }

        .input-7::placeholder {
            color: rgba(154, 123, 79, 0.35);
            opacity: 1;
        }

        .input-7:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 4px rgba(154, 123, 79, 0.10);
        }

        /* Input error state */
        .input-7.error {
            border-color: #ef4444;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }

        /* Remove number input spinner arrows */
        .input-7::-webkit-outer-spin-button,
        .input-7::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .input-7[type=number] {
            -moz-appearance: textfield;
            appearance: textfield;
        }

        .calc-btn-7 {
            width: 100%;
            padding: 14px;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 14px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 12px;
            font-family: var(--font);
        }

        .calc-btn-7:hover:not(:disabled) {
            background: var(--accent-light);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(154, 123, 79, 0.25);
        }

        .calc-btn-7:active:not(:disabled) {
            transform: translateY(0);
        }

        .calc-btn-7:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: var(--muted);
        }

        .hint-7 {
            color: var(--muted);
            font-size: 0.78rem;
            margin: 0;
            letter-spacing: 0.02em;
        }

        .error-message-7 {
            color: #d2284a;
            font-size: 0.78rem;
            display: none;
            animation: fadeIn 0.3s ease;
            position: relative;
        }


        .error-message-7.show {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-4px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .right-panel-7 {
            padding: 40px;
            background: linear-gradient(135deg, #9a7b4f 0%, #8b6d45 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .right-panel-7::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            animation: pulse 8s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.1);
                opacity: 0.8;
            }
        }

        .right-panel-7 h3 {
            margin: 0 0 20px 0;
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.1rem;
            font-weight: 600;
            position: relative;
            z-index: 1;
        }

        .big-result-7 {
            font-size: 3.5rem;
            font-weight: 800;
            color: white;
            margin-bottom: 20px;
            letter-spacing: -0.03em;
            position: relative;
            z-index: 1;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .big-result-7.pop {
            animation: resultPop 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        @keyframes resultPop {
            0%   { transform: scale(0.88); opacity: 0.6; }
            100% { transform: scale(1);    opacity: 1;   }
        }

        .formula-7 {
            color: rgba(255, 255, 255, 0.75);
            font-size: 0.82rem;
            margin: 0;
            position: relative;
            z-index: 1;
            letter-spacing: 0.02em;
        }

        /* Mobile Responsive for Calculators */
        @media (max-width: 768px) {
            .hero-section {
                padding-top: 10px;
                margin-bottom: 40px;
            }

            .hero-section h1 {
                font-size: 1.75rem;
            }

            .hero-section .subheading {
                font-size: 1rem;
                margin-bottom: 32px;
            }

            .calculator-design {
                margin-bottom: 40px;
            }

            .calc-card-7 {
                grid-template-columns: 1fr;
            }

            .left-panel-7,
            .right-panel-7 {
                padding: 32px 24px;
            }

            .big-result-7 {
                font-size: 2.5rem;
            }
        }

        @media (max-width: 480px) {
            .left-panel-7,
            .right-panel-7 {
                padding: 28px 20px;
            }

            .big-result-7 {
                font-size: 2rem;
            }
        }
        /* ========== CALCULATOR DESIGNS STYLES - END ========== */

        /* ========== CONTENT SECTIONS STYLES - START ========== */
        /* Trust Stats Bar */
        .trust-bar {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-bottom: 32px;
            text-align: center;
        }

        .trust-item {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 20px 12px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        }

        .trust-number {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--accent);
            letter-spacing: -0.02em;
            line-height: 1.2;
        }

        .trust-label {
            font-size: 0.72rem;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-top: 4px;
        }

        /* Content Cards */
        .content-card {
            background: white;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 36px 32px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
            margin-bottom: 24px;
        }

        .content-card h2 {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 12px;
            letter-spacing: -0.02em;
        }

        .content-card h3 {
            font-size: 1.05rem;
            font-weight: 600;
            margin-top: 20px;
            margin-bottom: 8px;
        }

        .content-card p {
            font-size: 0.92rem;
            color: var(--muted);
            line-height: 1.7;
        }

        .content-card ul {
            padding-left: 20px;
            margin-top: 8px;
        }

        .content-card ul li {
            font-size: 0.92rem;
            color: var(--muted);
            margin-bottom: 6px;
        }

        .content-card ul li strong {
            color: var(--text);
        }

        .content-card code {
            background: rgba(14, 165, 233, 0.08);
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.85rem;
            color: var(--text);
        }

        /* Info Alert */
        .info-alert {
            margin-top: 14px;
            padding: 14px 16px;
            border-radius: 12px;
            border-left: 4px solid var(--accent);
            background: rgba(14, 165, 233, 0.06);
            font-size: 0.88rem;
            color: var(--muted);
        }

        .info-alert strong {
            color: var(--text);
        }

        /* Side Grid */
        .side-grid {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 24px;
        }

        /* Quick Reference List */
        .quick-ref {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .quick-ref li {
            padding: 10px 0;
            border-bottom: 1px solid var(--border);
            font-size: 0.92rem;
            color: var(--muted);
        }

        .quick-ref li:last-child {
            border-bottom: none;
        }

        /* Formula Table */
        .formula-tbl {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.85rem;
            margin-top: 12px;
        }

        .formula-tbl th,
        .formula-tbl td {
            padding: 10px 12px;
            text-align: left;
            border-bottom: 1px solid var(--border);
        }

        .formula-tbl th {
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--muted);
            font-weight: 600;
            background: var(--card);
        }

        .formula-tbl td {
            color: var(--text);
        }

        /* University Grid */
        .uni-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
            margin-top: 16px;
        }

        .uni-card {
            padding: 18px;
            border: 1px solid var(--border);
            border-radius: 12px;
            text-align: center;
            transition: border-color 0.3s, transform 0.3s;
            background: white;
            text-decoration: none;
            color: var(--text);
        }

        .uni-card:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
        }

        .uni-card strong {
            font-size: 0.95rem;
            display: block;
            margin-bottom: 4px;
        }

        .uni-card span {
            font-size: 0.72rem;
            color: var(--muted);
            letter-spacing: 0.04em;
        }

        /* Steps Grid */
        .steps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
            margin-top: 16px;
            counter-reset: step;
        }

        .step-card {
            background: white;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 24px 20px;
            position: relative;
            counter-increment: step;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        }

        .step-card::before {
            content: counter(step);
            position: absolute;
            top: -12px;
            left: 20px;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--accent);
            color: #fff;
            font-size: 0.78rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .step-card h4 {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 6px;
            margin-top: 4px;
        }

        .step-card p {
            font-size: 0.85rem;
            color: var(--muted);
            margin: 0;
        }

        /* SGPA Aggregator */
        .agg-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 12px;
        }

        .agg-table th,
        .agg-table td {
            padding: 10px 8px;
            text-align: center;
            border-bottom: 1px solid var(--border);
            font-size: 0.88rem;
        }

        .agg-table th {
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--muted);
            font-weight: 600;
            background: var(--card);
        }

        .agg-table input {
            width: 80px;
            padding: 8px;
            text-align: center;
            border-radius: 8px;
            border: 1px solid var(--border);
            font-family: inherit;
            font-size: 0.88rem;
            background: var(--card);
            color: var(--text);
            outline: none;
        }

        .agg-table input:focus {
            border-color: var(--accent);
        }

        .agg-remove {
            background: none;
            border: none;
            color: var(--muted);
            cursor: pointer;
            font-size: 1rem;
            padding: 4px 8px;
            border-radius: 6px;
            transition: all 0.2s;
        }

        .agg-remove:hover {
            color: #c0392b;
            background: rgba(192, 57, 43, 0.06);
        }

        .agg-actions {
            display: flex;
            gap: 10px;
            margin-top: 14px;
            flex-wrap: wrap;
        }

        .agg-actions button {
            padding: 10px 20px;
            border-radius: 100px;
            font-size: 0.82rem;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid var(--border);
            background: white;
            color: var(--text);
        }

        .agg-actions button:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .agg-actions button.agg-primary {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }

        .agg-actions button.agg-primary:hover {
            filter: brightness(1.12);
        }

        .agg-result {
            margin-top: 14px;
            padding: 16px 20px;
            background: var(--card);
            border-radius: 12px;
            border: 1px solid var(--border);
            font-weight: 600;
        }

        .agg-result .big {
            font-size: 1.4rem;
            color: var(--text);
            letter-spacing: -0.02em;
        }

        .agg-result .sub {
            font-size: 0.78rem;
            color: var(--muted);
            margin-top: 4px;
        }

        /* Scale Block (Collapsible) */
        .scale-block {
            margin-top: 14px;
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 16px;
            background: white;
        }

        .scale-block[open] {
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        }

        .scale-block summary {
            cursor: pointer;
            font-weight: 600;
            outline: none;
            font-size: 0.95rem;
        }

        .scale-block .hint {
            font-size: 0.78rem;
            color: var(--muted);
            margin-top: 6px;
        }

        .table-scroll {
            max-height: 360px;
            overflow: auto;
            border: 1px solid var(--border);
            background: white;
            border-radius: 12px;
            margin-top: 12px;
        }

        /* FAQ Accordion */
        .faq-item {
            border-bottom: 1px solid var(--border);
            padding: 0;
        }

        .faq-item summary {
            cursor: pointer;
            font-weight: 600;
            font-size: 0.95rem;
            padding: 16px 0;
            list-style: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: var(--text);
        }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary::after {
            content: '+';
            font-size: 1.2rem;
            color: var(--accent);
            font-weight: 300;
            transition: transform 0.3s;
        }

        .faq-item[open] summary::after {
            content: '-';
        }

        .faq-item p {
            padding-bottom: 16px;
            font-size: 0.88rem;
            color: var(--muted);
            line-height: 1.7;
        }

        /* Related Tools Grid */
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 16px;
            margin-top: 16px;
        }

        .tool-card {
            padding: 24px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: white;
            text-decoration: none;
            color: var(--text);
            transition: border-color 0.3s, transform 0.3s;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        }

        .tool-card:hover {
            border-color: var(--accent);
            transform: translateY(-3px);
        }

        .tool-card strong {
            font-size: 1.05rem;
            display: block;
            margin-bottom: 6px;
        }

        .tool-card p {
            font-size: 0.85rem;
            color: var(--muted);
            margin: 0;
        }

        /* Fade-in Animation */
        .fade-in {
            opacity: 0;
            transform: translateY(14px);
            transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
            will-change: opacity, transform;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Mobile Responsive for Content */
        @media (max-width: 768px) {
            .trust-bar {
                grid-template-columns: repeat(2, 1fr);
            }

            .side-grid {
                grid-template-columns: 1fr;
            }

            .uni-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .tools-grid {
                grid-template-columns: 1fr;
            }

            .content-card {
                padding: 28px 22px;
            }
        }
.cgpa-table {
            width: 100%;
            border-collapse: collapse;
        }

        .cgpa-table th,
        .cgpa-table td {
            padding: 10px;
            border: 1px solid #ddd;
            text-align: center;
        }

        .cgpa-table th {
            background: #9a7b4f;
            color: white;
            cursor: pointer;
        }

        .cgpa-table tr:nth-child(even) {
            background: #f7f7f7;
        }

        .cgpa-table tr:hover {
            background: #eee;
        }



        @media (max-width: 480px) {
            .trust-number {
                font-size: 1.4rem;
            }

            .trust-item {
                padding: 14px 8px;
            }

            .uni-grid {
                grid-template-columns: 1fr;
            }

            .content-card {
                padding: 24px 18px;
            }

            .formula-tbl {
                font-size: 0.78rem;
            }

            .formula-tbl th,
            .formula-tbl td {
                padding: 8px 6px;
            }
        }
        /* ========== CONTENT SECTIONS STYLES - END ========== */

        /* ========== FOOTER STYLES - START ========== */
        footer {
            max-width: 1200px;
            margin: 80px auto 0;
            padding: 40px 24px;
            border-top: 1px solid var(--border);
            text-align: center;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 16px;
        }

        .footer-links a {
            color: var(--muted);
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 500;
            transition: color 0.3s;
            letter-spacing: 0.02em;
        }

        .footer-links a:hover {
            color: var(--accent);
        }

        footer p {
            color: var(--muted);
            font-size: 0.78rem;
            margin: 0;
            line-height: 1.6;
        }

        @media (max-width: 480px) {
            footer {
                margin: 60px auto 0;
                padding: 28px 16px;
            }

            .footer-links {
                gap: 16px;
            }

            .footer-links a {
                font-size: 0.75rem;
            }

            footer p {
                font-size: 0.72rem;
            }
        }

        /* ========== FOOTER STYLES - END ========== */
        /* Info Card */
        .info-card {
            max-width: 750px;
            margin: 40px auto;
            padding: 32px;
            background: white;
            border-radius: var(--radius);
            border: 1px solid var(--border);
        }


        .info-card h2 {
            font-size: 1.25rem;
            margin-bottom: 16px;
        }


        .info-card p {
            color: var(--muted);
            font-size: 0.92rem;
            margin-bottom: 12px;
        }


        .info-card ul {
            padding-left: 20px;
            margin-top: 12px;
        }


        .info-card li {
            color: var(--muted);
            margin-bottom: 8px;
            font-size: 0.92rem;
        }