:root {
    --brand-deep: #0f172a;
    --brand-primary: #2563eb;
    --brand-success: #059669;
    --surface-bg: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--surface-bg);
    color: #1e293b;
    overflow-x: hidden;
}

/* --- LUXURY NAVBAR --- */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--brand-deep) !important;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: black !important;
    padding: 0.5rem 1.2rem !important;
}

.navbar-nav .nav-link {
    font-weight: 700;
    /* or 'bold' */
}

.btn-auth {
    background: var(--brand-deep);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 24px;
    border: none;
    transition: 0.3s;
}

.btn-auth:hover {
    background: var(--brand-primary);
    transform: translateY(-2px);
}

/* --- HERO --- */
.hero-section {

    padding: 60px 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Speed up the transition to 0.3 seconds */
.carousel-item {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
}

/* Ensure smooth rendering during fast movement */
.carousel-inner {
    will-change: transform;
}

/* Optimized image sizing to prevent layout shift */
.carousel-item img {
    height: 60vh;
    /* Adjust height as per your design */
    object-fit: cover;
    width: 100%;
}

/* --- TRENDING COURSES (Enhanced Animation) --- */
.course-slider-wrap {
    overflow: hidden;
    white-space: nowrap;
    padding: 15px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.course-track {
    display: flex;
    animation: scrollCourses 40s linear infinite;
    gap: 15px;
    width: max-content;
}

.course-card-mini {
    background: white;
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--brand-deep);
    transition: 0.3s;
    cursor: pointer;
}

.course-card-mini:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: #f0f7ff;
}

@keyframes scrollCourses {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- COLLEGE CARD --- */
.college-card-elite {
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: 0.4s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.college-card-elite:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.img-header {
    height: 170px;
    overflow: hidden;
    position: relative;
}

.img-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-ranking {
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- BUTTONS --- */
.btn-main-action {
    background: var(--brand-blue);
    color: white;
    border-radius: 12px;
    width: 100%;
    padding: 10px;
    font-weight: 700;
    border: none;
    transition: 0.3s;
}

.btn-main-action:hover {
    background: var(--brand-primary);
}

.btn-brochure-glass {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 12px;
    padding: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: 0.3s;
}

.btn-apply-now {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #059669;
    border-radius: 12px;
    padding: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    transition: 0.3s;
}

.btn-apply-now:hover {
    background: #059669;
    color: white;
}

/* --- CAROUSEL FIX --- */
.btn-nav {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--brand-deep);
    transition: 0.3s;
}

.btn-nav:hover {
    background: var(--brand-deep);
    color: white;
}

/* Fix for icon button alignment */
.carousel-btn-group .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* University section styling */
:root {
    --brand-blue: #003366;
    --accent-orange: #ff7b00;
    --text-main: #1a202c;
    --text-muted: #718096;
    --bg-body: #f8fafc;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;

    /* padding-top: 50px; */
}

/* --- SLIDER CORE --- */
.slider-wrapper {
    position: relative;
    padding: 0 10px;
}

.custom-slider {
    display: flex;
    gap: 20px;
    padding: 25px 5px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
}

.custom-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.slider-card-container {
    flex: 0 0 85%;
    /* Mobile: Show 1.5 cards approx */
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .slider-card-container {
        flex: 0 0 calc(45%);
    }
}

/* Tablet */
@media (min-width: 1200px) {
    .slider-card-container {
        flex: 0 0 calc(25% - 15px);
    }
}

/* Desktop */

/* --- NAV BUTTONS --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-btn:hover {
    background: var(--brand-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.btn-prev {
    left: -20px;
}

.btn-next {
    right: -20px;
}

@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }
}

/* Swipe on mobile */

/* --- CARD UI --- */
.u-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.u-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

.u-banner {
    height: 160px;
    position: relative;
    background: #eee;
}

.u-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.u-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.u-logo {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 10px;
    padding: 4px;
    position: absolute;
    bottom: -25px;
    left: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.u-body {
    padding: 35px 18px 18px;
    flex-grow: 1;
}

.u-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 4px;
    line-height: 1.3;
}

.u-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.u-course-box {
    margin-top: 15px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
}

.u-course-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-orange);
}

.u-fee {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin-top: 2px;
}

.u-fee span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.u-footer {
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-link-view {
    text-align: center;
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px;
}

.btn-apply-now {
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.2s;
}

.btn-apply-now:hover {
    background: var(--accent-orange);
}

.btn-brochure {
    background: white;
    border: 1px solid #d1d5db;
    color: #4b5563;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Select Your Study Goal */
:root {
    --brand-blue: #1a73e8;
    /* Aapka primary brand color */
    --brand-yellow: #ffca28;
    /* Hover color */
    --text-dark: #202124;
    --bg-light: #f8f9fa;
}

body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
}

.section-header {
    margin-bottom: 40px;
    border-left: 5px solid var(--brand-blue);
    padding-left: 15px;
}

/* Slider Wrapper */
.slider-container {
    position: relative;
    padding: 10px 0;
}

.cards-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 20px 10px;
    scrollbar-width: none;
    /* Hide for Firefox */
}

.cards-wrapper::-webkit-scrollbar {
    display: none;
}

/* Hide for Chrome */

/* Card Styling */
.goal-card {
    min-width: 300px;
    flex: 0 0 auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.goal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-blue);
}

.icon-holder {
    width: 60px;
    height: 60px;
    background: #e8f0fe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--brand-blue);
}

/* Course List UX */
.course-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: #5f6368;
    text-decoration: none;
    font-size: 15px;
    border-top: 1px solid #f1f3f4;
    transition: 0.2s;
}

.course-item:hover {
    color: var(--brand-blue);
    padding-left: 8px;
}

/* Nav Buttons Styling - As per your request */
.nav-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--brand-blue);
    /* Default Brand Blue */
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-control:hover {
    background-color: var(--brand-yellow);
    /* Yellow on Hover */
    color: #000;
    /* Black icon for better visibility on yellow */
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

@media (max-width: 768px) {
    .nav-control {
        display: none;
    }

    /* Hide arrows on mobile for touch scroll */
    .cards-wrapper {
        padding-left: 20px;
    }
}

/* Top Collage in Delhi NCR Styling css */
:root {
    --brand-blue: #1a73e8;
    --brand-yellow: #ffca28;
}

/* Original UI Buttons preserved */
.btn-brand-primary {
    background-color: var(--brand-blue);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-brand-primary:hover {
    background-color: var(--brand-yellow);
    color: #000;
    transform: translateY(-2px);
}

.btn-brand-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 8px 25px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-brand-outline:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.college-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-right: 4px solid var(--brand-blue) !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Find Near BY PG And Hostel */
:root {
    --brand-blue: #1a73e8;
    --brand-yellow: #ffca28;
}

/* Professional Room Buttons */
.btn-room {
    border: 2px solid #f1f5f9;
    background: #fff;
    color: #64748b;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
}

.btn-room:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.btn-room.active {
    border-color: var(--brand-blue);
    background: #eff6ff;
    color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
}

/* Brand Buttons */
.btn-brand-primary {
    background-color: var(--brand-blue);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-brand-primary:hover {
    background-color: var(--brand-yellow);
    color: #000;
    transform: translateY(-2px);
}

.btn-visit {
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #475569;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-visit:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.shadow-blue {
    box-shadow: 0 10px 15px -3px rgba(26, 115, 232, 0.3);
}

/* Price Animation */
#displayPrice.price-pop {
    transform: scale(1.1);
    color: #059669 !important;
}

@media (max-width: 768px) {
    #roomSelector {
        flex-direction: column;
    }

    .mt-auto {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .d-flex.gap-2 {
        width: 100%;
    }

    .btn-brand-primary,
    .btn-visit {
        width: 100%;
    }
}

.search-box-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.search-box-container:focus-within {
    border-color: #1a73e8;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1) !important;
}

.search-box-container input::placeholder {
    font-size: 14px;
    color: #94a3b8;
}

/* Animation for search icon when typing */
#hostelSearch:focus+.input-group-text i {
    transform: scale(1.1);
    color: var(--brand-blue);
}

/* Carer Path Styling  */
:root {
    --bg-pure: #ffffff;
    --bg-subtle: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --accent-gold: #ffc107;
    /* The Yellow for interaction */
    --border-light: #f1f5f9;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-pure);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.sora {
    font-family: 'Sora', sans-serif;
}

/* Top Navigation Decor */
.nav-minimal {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 60px;
}

/* Hero Layout */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.highlight-slate {
    color: #94a3b8;
    font-weight: 400;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* The Premium Button - Changes to Yellow on Action */
.btn-action {
    background-color: var(--text-dark);
    color: white;
    padding: 20px 40px;
    border-radius: 16px;
    font-weight: 600;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.btn-action:hover,
.btn-action:active {
    background-color: var(--accent-gold);
    /* Yellow on click/hover */
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.3);
}

/* Feature Bento Grid */
.feature-item {
    padding: 32px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-item:hover {
    background: white;
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.icon-circle {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    color: var(--text-dark);
}

/* Right Side Illustration Card */
.card-visual {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.card-visual::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.step-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f8fafc;
}

@media (max-width: 991px) {
    .hero-section {
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 40px auto;
    }

    .card-visual {
        margin-top: 60px;
    }
}

/* Ask our expert section */
/* Custom CSS for Expert Section */
:root {
    --brand-blue: #0052cc;
    /* Your Brand Blue */
    --hover-yellow: #facc15;
    /* Your Hover Yellow */
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
}

.expert-container {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--white) 0%, #f0f7ff 100%);
    border-top: 1px solid var(--border-color);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.text-brand {
    color: var(--brand-blue);
}

/* UI COMPONENT: Responsive Input Group */
.input-group-custom {
    background: var(--white);
    border-radius: 20px;
    padding: 10px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.input-group-custom:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 10px 30px rgba(0, 82, 204, 0.1);
}

.expert-field {
    border: none;
    padding: 12px 15px;
    width: 100%;
    outline: none;
    font-size: 1rem;
    color: var(--text-dark);
}

.expert-field::placeholder {
    color: var(--text-muted);
}

/* UI COMPONENT: Premium Button */
.btn-brand {
    background-color: var(--brand-blue);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Hover Cursor Logic: Blue to Yellow */
.btn-brand:hover {
    background-color: var(--hover-yellow);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.4);
}

/* Responsive Logic for All Devices */
@media (max-width: 991px) {
    .expert-container {
        padding: 60px 0;
    }

    .input-group-custom {
        flex-direction: column;
        padding: 15px;
        gap: 12px;
    }

    .btn-brand {
        width: 100%;
        justify-content: center;
    }

    .expert-field {
        text-align: center;
    }
}

/* --- Footer Fixes --- */
/* Custom Footer Styling */
:root {
    --primary-blue: #0056b3;
    --accent-yellow: #ffcc00;
    /* Vibrant modern yellow */
    --text-dark: #2d3436;
    --text-muted: #6c757d;
    --border-color: #eeeeee;
}

/* 1. Base Social Icon Styling */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: var(--primary-blue);
    color: white !important;
    /* Ensure icons stay white initially */
    border-radius: 12px;
    margin-right: 10px;
    text-decoration: none !important;
    /* Removes any underline */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* 2. Hover State: Change to Yellow */
.social-icon:hover {
    background-color: var(--accent-yellow);
    color: #1a1a1a !important;
    /* Darker icon color for contrast against yellow */
    transform: translateY(-5px) rotate(8deg);
    /* Adds a little "pop" with a tilt */
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.3);
    text-decoration: none !important;
    /* Ensures no underline on hover */
}

/* 3. Footer Links Underline Removal */
.footer-link {
    text-decoration: none !important;
    /* Removes default link underline */
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-blue);
    padding-left: 8px;
    text-decoration: none !important;
}

/* 4. Bottom Privacy Link Fix */
.bottom-links a {
    text-decoration: none !important;
    color: var(--text-muted);
}

.bottom-links a:hover {
    color: var(--primary-blue);
}

/* Collage Section CSS Styling  */
:root {
    --primary-indigo: #4f46e5;
    --accent-yellow: #fbbf24;
    --dark-navy: #0f172a;
}

.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0 150px 0;
    color: white;
    text-align: center;
}

.hero-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-top: -80px;
    /* Pulls search bar into the hero section */
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
}

.form-label {
    color: var(--dark-navy);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
    text-align: left;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-custom i {
    position: absolute;
    left: 15px;
    color: #94a3b8;
}

.form-control,
.form-select {
    padding: 12px 12px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-indigo);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.btn-search {
    background-color: var(--primary-indigo);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    width: 100%;
    transition: 0.3s;
}

.btn-search:hover {
    background-color: var(--accent-yellow);
    color: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.3);
}

h3.section-title {
    color: var(--dark-navy);
    font-weight: 800;
    margin-bottom: 25px;
    text-align: left;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .search-container {
        margin-top: -40px;
        padding: 20px;
    }
}

/* Carousel Styling */
.hero-slider {
    position: relative;
    height: 80vh;
    /* Fixed height for consistency */
    min-height: 500px;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    /* Matching your university theme */
}

.carousel-item {
    height: 80vh;
    min-height: 500px;
}


.hero-slider,
.carousel,
.carousel-inner,
.carousel-item {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}


/* This is the magic for mobile */
@media (max-width: 767px) {
    /* 1. Remove line-height gap */
    .carousel-inner, .carousel-item {
        line-height: 0 !important;
        font-size: 0 !important;
    }
    /* 2. Force the mobile image to be a block and remove margins */
    .flayer-mobile {
        display: block !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        height: auto !important;
        vertical-align: bottom !important;
    }
    /* 3. Ensure the carousel container doesn't have a minimum height */
    .carousel {
        min-height: auto !important;
    }
}

/* 1. White Space aur Height Control */
.hero-slider {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    overflow: hidden !important;
}

/* Desktop Image Height (Laptop ke liye) */
.desktop-banner {
    display: block !important;
    width: 100% !important;
    height: 400px !important;
    /* Aapne height zyada boli thi, isliye kam kar di */
    object-fit: cover !important;
}

/* Mobile Image Height (Pixel 7 aur baaki phones ke liye) */
.mobile-banner {
    display: none !important;
    width: 100% !important;
    height: 350px !important;
    /* Mobile ke liye sateek height */
    object-fit: cover !important;
}

/* 2. Media Query - Pixel 7 aur Sabhi Mobile ke liye Force Switch */
@media only screen and (max-width: 768px) {
    .desktop-banner {
        display: none !important;
    }

    .mobile-banner {
        display: block !important;
    }
}

/* Carousel internal gap fix */
.carousel-inner,
.carousel-item {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}


/* Responsive adjustments */
@media (max-width: 768px) {

    .hero-slider,
    .carousel-item {
        height: 0vh;
    }

    .hero-slider h1 {
        font-size: 1.8rem;
    }
}

/* College section in Card styling */
:root {
    --primary-indigo: #6366f1;
    --accent-yellow: #fbbf24;
    --soft-bg: #f8fafc;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--soft-bg);
    font-family: 'Inter', sans-serif;
}

/* Card Container */
.college-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.college-card:hover {
    transform: translateY(-5px);
}

/* Image Section */
.college-img-wrapper {
    position: relative;
    height: 100%;
    min-height: 250px;
}

.college-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-nirf {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #10b981;
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Content Section */
.stat-box {
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-box i {
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: block;
}

.stat-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.stat-sub {
    font-size: 0.7rem;
    color: #64748b;
}

/* Highlight Pills */
.pill-highlight {
    background: #eef2ff;
    color: #4338ca;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 5px;
    border: 1px solid #c7d2fe;
}

/* Buttons */
.btn-apply {
    background: var(--primary-indigo);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
    transition: 0.3s;
    border: none;
    width: 100%;
}

.btn-apply:hover {
    background: var(--accent-yellow);
    color: #0f172a;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-outline-custom {
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 10px;
    font-weight: 500;
    width: 100%;
}

.btn-outline-custom:hover {
    background: #f1f5f9;
    color: #1e293b;
}

@media (max-width: 768px) {
    .college-img-wrapper {
        min-height: 200px;
    }
}

/* university botton section css fixing  */
.slider {
    scroll-behavior: smooth;
    padding: 10px 40px;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slider-card {
    min-width: 250px;
    flex: 0 0 auto;
}

/* button positioning */

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border-radius: 50%;
    width: 45px;
    height: 45px;
}

.btn-prev {
    left: 0;
}

.btn-next {
    right: 0;
}