
        :root {
            --primary-blue: #0066ff;
            --dark-blue: #003366;
            --light-blue: #f0f7ff;
            --accent-blue: #eef5ff;
            --text-slate: #334155;
            --text-light: #64748b;
            --success-green: #198754;
            --urgency-red: #dc3545;
            --bg-gray: #f1f5f9; 
            --section-alt: #eef6ff; 
            --upsc-color: #0066ff;
            --pcs-color: #8b5cf6;
            --ca-color: #f59e0b;
            --header-bg: #1c4c88;
            --enroll-red: #ec1f28;
            --enroll-red-dark: #c81a22;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            color: var(--text-slate);
            background-color: #ffffff;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        /* --- Pattern Utilities --- */
        .bg-pattern-a { background-color: #ffffff !important; }
        .bg-pattern-b { background-color: var(--bg-gray) !important; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
        .bg-pattern-c { background : var(--header-bg); }
        .bg-accent-light { background-color: var(--accent-blue) !important; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }

        /* --- Global Components --- */
        .btn-primary { background-color: var(--enroll-red); border-color: var(--enroll-red); font-weight: 700; border-radius: 10px; transition: 0.3s; }
        .btn-primary:hover { background-color: var(--enroll-red-dark); border-color: var(--enroll-red-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(236, 31, 40, 0.2); }
        .section-title { font-weight: 800; color: #1e293b; margin-bottom: 1.25rem; font-size: 1.75rem; }
        .card { border-radius: 16px; border: 1px solid #e2e8f0; }

        /* --- Navbar --- */
        .navbar { background: var(--header-bg); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 6px 0; }
        .navbar-brand img { height: 46px; transition: height 0.3s ease; } 

        /* Header Action Items */
        .header-actions { display: flex; gap: 12px; align-items: center; }
        
        .header-icon-box {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.2);
            color: #ffffff;
            text-decoration: none !important;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            background: var(--enroll-red);
            font-size: 1.4rem;
            position: relative;
            overflow: hidden;
        }
        
        .header-brochure-btn {
            height: 48px;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.2);
            color: #ffffff;
            text-decoration: none !important;
            font-weight: 700;
            font-size: 0.95rem;
            letter-spacing: 0.5px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            background: rgba(255, 255, 255, 0.15);
            white-space: nowrap;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            text-align: center;
            line-height: 1.2;
        }

        .header-icon-box::before, .header-brochure-btn::before {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: 0.6s;
        }

        .header-icon-box:hover::before, .header-brochure-btn:hover::before {
            left: 100%;
        }

        .header-icon-box:hover, .header-brochure-btn:hover {
            transform: scale(1.08) translateY(-3px);
            background: #ffffff;
            border-color: #ffffff;
            box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        }

        .header-icon-box.whatsapp:hover { color: #25D366; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); }
        .header-icon-box.phone:hover { color: #1c4c88; }
        
        .header-brochure-btn:hover {
            color: var(--ca-color);
            box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
        }

        /* --- Hero Section --- */
        .course-hero { 
            padding: 60px 0 70px; 
            border-bottom: 1px solid #e2e8f0; 
        }
        .course-title { font-size: 3rem; font-weight: 800; color: #0f172a; margin-bottom: 12px; line-height: 1.1; letter-spacing: -1px; }
        
        .hero-price-box { display: flex; align-items: baseline; gap: 15px; margin-bottom: 20px; }
        .hero-price-main { font-size: 2.5rem; font-weight: 900; color: var(--dark-blue); }

        .course-subtitle { font-size: 1.25rem; color: #64748b; max-width: 900px; margin-bottom: 30px; line-height: 1.5; }
        
        .stats-bar { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 30px; }
        .stat-item { display: flex; align-items: center; font-size: 1rem; color: #64748b; font-weight: 600; }
        .stat-item i { color: #f59e0b; margin-right: 10px; font-size: 1.1rem; }
        .stat-item.validity i { color: #1c4c88; }

        /* --- Standard Bar & Content Design --- */
        .design-bar {
            background-color: #fff;
            border: 2px dashed #cbd5e1;
            border-radius: 20px;
            padding: 24px 30px;
            cursor: pointer;
            transition: 0.3s;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 5;
        }
        .design-bar:hover { border-color: #1c4c88; background: var(--accent-blue); }
        .design-bar.active { border-color: #1c4c88; background: var(--accent-blue); }
        
        .design-content {
            background: #fcfcfc; 
            border: 1px solid #e2e8f0;
            border-radius: 24px;
            margin-top: 30px; /* Space for the pipe */
            padding: 35px;
            display: none;
            box-shadow: 0 15px 35px rgba(0,0,0,0.06);
            position: relative;
        }
        .design-content.show { display: block; }

        /* Pipe line connector */
        .course-bar.active + .design-content::before {
            content: '';
            position: absolute;
            top: -30px;
            left: 50%;
            transform: translateX(-50%);
            width: 3px;
            height: 30px;
            background: var(--header-bg);
            display: block;
            z-index: 1;
        }
        
        /* Specific tweaks for UPSC */
        .about-exam-bar { margin-top: 20px; }
        
        .exam-info-pill {
            display: inline-block;
            background: var(--light-blue);
            color: #1c4c88;
            padding: 6px 16px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 700;
            margin-bottom: 15px;
        }

        /* --- Why Students Fail Section --- */
        .fail-section { padding: 100px 0; text-align: center; }
        .fail-title { font-size: 2.6rem; font-weight: 800; color: #1c4c88; margin-bottom: 15px; letter-spacing: -1px; }
        .bg-pattern-b .fail-title { color: #0f172a; } 
        .fail-title span { position: relative; display: inline-block; color: #d97706; }
        .fail-subtitle { color: #64748b; font-size: 1.15rem; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
        .fail-card {
            background: #fffafa;
            border: 1px solid #ffeded;
            border-radius: 28px;
            padding: 40px 24px;
            height: 100%;
            text-align: center;
            transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .fail-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(220, 53, 69, 0.1); border-color: rgba(220, 53, 69, 0.2); }
        .fail-card i { color: #d32f2f; font-size: 2.5rem; margin-bottom: 25px; display: block; }
        .fail-card h5 { color: #b71c1c; font-weight: 800; margin-bottom: 15px; font-size: 1.25rem; line-height: 1.3; }
        .fail-card p { color: #555; font-size: 1rem; line-height: 1.6; margin: 0; }

        /* --- Problem-Solution Sections --- */
        .solve-section { padding: 100px 0; text-align: center; }
        
        .solution-pill-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 30px;
            padding: 35px;
            text-align: center;
            transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            position: relative;
            height: 100%;
        }
        .solution-pill-card:hover {
            transform: translateY(-8px);
            border-color: #1c4c88;
            box-shadow: 0 20px 40px rgba(0, 102, 255, 0.08);
        }
        .solution-icon-wrap {
            width: 60px;
            height: 60px;
            background: var(--light-blue);
            color: #1c4c88;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
        }
        .solution-pill-card h5 {
            font-weight: 800;
            color: #0f172a;
            margin: 0;
            font-size: 1.2rem;
            line-height: 1.4;
        }
        .solution-pill-card p {
            color: #64748b;
            font-size: 1rem;
            margin: 0;
            line-height: 1.5;
        }

        /* --- Video Section Styling --- */
        .video-preview-section { padding: 100px 0; }
        .portrait-video-container {
            max-width: 380px;
            margin: 0 auto;
            width: 100%;
            position: relative;
        }
        .video-wrapper {
            position: relative;
            width: 100%;
            aspect-ratio: 9 / 16;
            background: #000;
            border-radius: 28px;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            border: 8px solid #ffffff;
        }
        .video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        /* --- Faculty Slider Section --- */
        .faculty-section {
            padding: 80px 0;
            overflow: hidden;
        }
        .faculty-slider-wrapper {
            position: relative;
            padding: 20px 0;
        }
        .faculty-slider {
            display: flex;
            overflow-x: auto;
            gap: 25px;
            padding: 10px 20px 40px;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -ms-overflow-style: none;
            scroll-snap-type: x mandatory;
        }
        .faculty-slider::-webkit-scrollbar {
            display: none;
        }
        .faculty-profile-card {
            flex: 0 0 320px;
            scroll-snap-align: start;
            background: #ffffff;
            border-radius: 30px;
            border: 1px solid #f1f5f9;
            padding: 25px;
            text-align: center;
            transition: 0.3s;
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
        }
        .faculty-profile-card:hover {
            border-color: #1c4c88;
            box-shadow: 0 20px 40px rgba(0, 102, 255, 0.08);
            transform: translateY(-5px);
        }
        .faculty-img-container {
            width: 120px;
            height: 120px;
            margin: 0 auto 20px;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid var(--accent-blue);
        }
        .faculty-img-container img {
            width: 100%;
            height: 120%;
            object-fit: cover;
        }
        .faculty-name { font-weight: 800; font-size: 1.25rem; color: #0f172a; margin-bottom: 5px; }
        .faculty-exp { font-size: 0.85rem; font-weight: 700; color: #1c4c88; background: var(--light-blue); padding: 4px 12px; border-radius: 50px; display: inline-block; margin-bottom: 15px; }
        .faculty-philosophy { font-size: 0.95rem; color: #64748b; line-height: 1.5; margin-bottom: 15px; }
        .faculty-achievement { font-size: 0.9rem; font-weight: 700; color: #334155; display: flex; align-items: center; justify-content: center; gap: 8px; }
        .faculty-achievement i { color: #f59e0b; }

        /* --- Our Courses Section --- */
        .courses-section { padding: 100px 0; }
        .course-item { margin-bottom: 24px; }
        
        .course-bar {
            flex-direction: column;
            align-items: stretch;
            padding: 24px 30px 15px;
        }
        .course-bar h4 { margin: 0; font-weight: 800; font-size: 1.4rem; color: #0f172a; letter-spacing: -0.5px; text-align: left; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
        .course-bar i.chevron { transition: 0.4s; color: #1c4c88; font-size: 1.25rem; }
        .course-bar.active i.chevron { transform: rotate(180deg); }

        .header-meta-item { text-align: right; }
        .header-meta-label { display: block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-bottom: 2px; }
        .header-meta-value { display: block; font-weight: 800; color: var(--text-slate); font-size: 1.1rem; }
        .header-meta-value.price { color: #1c4c88;}

        .popular-badge {
            background-color: #f59e0b;
            color: #fff;
            font-size: 0.65rem;
            font-weight: 800;
            padding: 2px 10px;
            border-radius: 50px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
            line-height: 1.2;
        }
        
        .course-info-box {
            background-color: transparent;
            border: none;
            border-radius: 0;
            padding: 0;
            margin-top: 10px;
            font-size: 0.95rem;
            color: #64748b;
            line-height: 1.5;
            text-align: left;
            display: flex;
            align-items: flex-start;
            gap: 1.25rem;
        }
        .course-info-box i {
            color: #1c4c88;
            font-size: 1.3rem;
            margin-top: 0px;
            width: 32px;
            flex-shrink: 0;
            text-align: center;
        }
        .course-info-box h5 {
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 4px;
            font-size: 1.1rem;
        }
        .course-info-box .expandable-text {
                text-align: justify;
        }


        /* Read More Styles */
        .read-more-btn {
            color: var(--enroll-red);
            cursor: pointer;
            font-weight: 700;
            font-size: 0.85rem;
            border: none;
            background: none;
            padding: 0;
            margin-left: 5px;
            transition: 0.2s;
            text-decoration: underline;
        }
        .read-more-btn:hover {
            color: var(--enroll-red-dark);
            text-decoration: none;
        }

        /* --- Enquiry Form Section --- */
        .enquiry-section {
            padding: 100px 0;
            background: #ffffff;
            color: var(--text-slate);
            position: relative;
            overflow: hidden;
            border-top: 1px solid #f1f5f9;
        }
        .enquiry-card {
            background: var(--header-bg);
            border-radius: 30px;
            padding: 40px;
            color: white;
            box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08); 
            border: 1px solid #f1f5f9;
        }
        .enquiry-title { 
            font-weight: 800; 
            font-size: 2.5rem; 
            margin-bottom: 20px; 
            color: var(--dark-blue); 
            line-height: 1.2; 
        }
        .enquiry-subtitle { 
            font-size: 1.1rem; 
            color: var(--text-light); 
            margin-bottom: 40px; 
        }
        
        .form-label { font-weight: 700; font-size: 0.9rem; color: white; margin-bottom: 8px; }
        .form-control, .form-select {
            border-radius: 12px;
            padding: 12px 20px;
            border: 2px solid #e2e8f0;
            font-weight: 500;
            transition: 0.3s;
        }
        .form-control:focus, .form-select:focus {
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
        }
        .btn-enquiry {
            width: 100%;
            padding: 15px;
            font-weight: 800;
            border-radius: 12px;
            background: var(--ca-color);
            border: none;
            color: white;
            transition: 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 10px;
        }
        .btn-enquiry:hover {
            background: #d97706;
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
        }

        /* --- Stylish Lightweight Popup Modal --- */
        .custom-modal-backdrop {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(5px);
            z-index: 1050;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .custom-modal-backdrop.show {
            display: flex;
            opacity: 1;
        }
        .checkout-modal {
            background: #ffffff;
            width: 95%;
            max-width: 500px;
            border-radius: 28px;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
            transform: scale(0.9);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
        }
        .custom-modal-backdrop.show .checkout-modal {
            transform: scale(1);
        }
        .checkout-header {
            background: var(--header-bg);
            padding: 22px 30px;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .checkout-header h4 { margin: 0; font-weight: 800; font-size: 1.25rem; }
        .close-modal { cursor: pointer; font-size: 1.5rem; opacity: 0.8; transition: 0.3s; }
        .close-modal:hover { opacity: 1; transform: rotate(90deg); }

        .order-details-pane {
            padding: 30px;
            background: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
        }
        .order-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 0.95rem;
            color: var(--text-slate);
        }
        .order-label { font-weight: 600; }
        .order-value { font-weight: 700; color: #0f172a; }
        .order-value.discount { color: #15803d; }
        .order-total-row {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1.5px dashed #cbd5e1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .order-total-label { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
        .order-total-value { font-size: 1.5rem; font-weight: 900; color: var(--header-bg); }

        /* Coupon Section Styles */
        .coupon-wrapper {
            margin-top: 20px;
            padding: 15px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
        }
        .coupon-input-group {
            display: flex;
            gap: 10px;
        }
        .coupon-input {
            flex-grow: 1;
            padding: 8px 15px;
            border-radius: 8px;
            border: 1.5px solid #cbd5e1;
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
        }
        .coupon-input.is-invalid {
            border-color: #b91c1c !important;
            background-color: #fffafb;
        }
        .btn-apply-coupon {
            padding: 8px 15px;
            border-radius: 8px;
            background: var(--header-bg);
            color: white;
            border: none;
            font-weight: 700;
            font-size: 0.85rem;
            transition: 0.3s;
        }
        .btn-apply-coupon:hover { background: var(--dark-blue); }
        .coupon-msg {
            font-size: 0.75rem;
            margin-top: 5px;
            font-weight: 600;
            display: none;
        }
        .coupon-msg.success { color: #15803d; display: block; }
        .coupon-msg.error { color: #b91c1c; display: block; }

        .checkout-form-pane { padding: 30px; }
        .checkout-form-pane .form-label { color: var(--text-slate); margin-bottom: 6px; }
        .checkout-form-pane .form-control { background: #f1f5f9; border-color: transparent; }
        .checkout-form-pane .form-control:focus { background: white; border-color: var(--primary-blue); }

        /* Custom Captcha Styles */
        .captcha-box {
            background: rgba(255, 255, 255, 0.1);
            border: 1.5px dashed rgba(255, 255, 255, 0.3);
            border-radius: 12px;
            padding: 10px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .captcha-question {
            font-weight: 800;
            font-size: 1.1rem;
            letter-spacing: 2px;
            color: #fff;
            user-select: none;
        }
        .cursor-pointer { cursor: pointer; }
        .captcha-box i:hover { color: var(--ca-color); transform: rotate(180deg); transition: 0.4s; }

        @media (max-width: 768px) {
            .design-bar { 
                padding: 25px; 
                flex-direction: column; 
                align-items: flex-start; 
                text-align: left; 
                gap: 20px; 
                background-color: #fff;
            }
            .course-bar .d-flex.align-items-center.gap-4 {
                flex-direction: column;
                align-items: flex-start !important;
                gap: 10px !important;
            }
            .course-bar .d-flex.align-items-center.gap-md-5.gap-3 {
                width: 100%;
                justify-content: flex-start !important;
                gap: 15px !important;
            }
            .course-bar .header-meta-item:nth-child(2) {
                margin-left: auto;
                text-align: right;
            }
            
            .design-content { padding: 25px; }
            .header-meta-item { text-align: left; } 
            
            .solution-pill-card {
                padding: 25px;
                border-radius: 24px;
            }
            .solution-icon-wrap {
                width: 50px;
                height: 50px;
                font-size: 1.3rem;
            }

            .enquiry-section { padding: 60px 0; }
            .enquiry-title { font-size: 2rem; }
            .enquiry-card { padding: 25px; }
        }
        
        @media (max-width: 576px) {
            .header-brochure-btn {
                padding: 0 10px;
                font-size: 0.75rem;
                height: 42px;
                border-radius: 10px;
            }
            .header-icon-box {
                width: 42px;
                height: 42px;
                font-size: 1.1rem;
                border-radius: 10px;
            }
            .header-actions {
                gap: 8px;
            }
            .navbar-brand img {
                height: 38px;
            }
            .course-title {
                font-size: 2.2rem;
            }
            .fail-title {
                font-size: 2rem;
            }
        }

        #backToTop {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: #1c4c88;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1001;
            border: none;
            box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
        }
        #backToTop.show { opacity: 1; visibility: visible; }

        .toast-container {
            position: fixed;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            pointer-events: none;
        }
        .custom-toast {
            background: rgba(15, 23, 42, 0.95);
            color: white;
            padding: 12px 24px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .custom-toast.show {
            opacity: 1;
            transform: translateY(0);
        }
        .custom-toast i {
            color: var(--ca-color);
            font-size: 1.1rem;
        }

        .loader-placeholder {
            padding: 50px;
            text-align: center;
            color: rgba(255,255,255,0.6);
            font-weight: 600;
        }
        .loader-spinner {
            border: 4px solid rgba(255, 255, 255, 0.1);
            border-left-color: #fff;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        /* Modal body scroll fix */
        .pdf-modal-body {
            height: calc(100vh - 56px); /* header height */
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        /* PDF iframe full height */
        .pdf-iframe {
            width: 100%;
            height: 100%;
            border: none;
        }