:root {
    --primary: #104782;
    --primary-dark: #FF800A;
    --text: #152747;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
}

/* Top bar */
.top-bar {
    background: linear-gradient(100deg, #FF800A, #e27f21);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 10px 0;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    transition: opacity .2s ease;
}

.top-bar a:hover {
    opacity: .75;
}

.top-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.top-contact a,
.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 17px;
}

.social-links a {
    justify-content: center;
    color: var(--primary);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #fff;
    font-size: 12px;
}

@media (max-width: 768px) {
    /* Overrides Bootstrap's justify-content-between to center everything */
    .top-bar .justify-content-between {
        justify-content: center !important;
        flex-direction: column; /* Stacks contact info and social links */
        gap: 12px !important;
    }

    /* Centers the phone and email group */
    .top-contact {
        justify-content: center;
        gap: 15px; /* Slightly tighter gap on mobile */
    }

    /* Centers the social icons */
    .social-links {
        justify-content: center;
    }
}

/* ========================================== */
/* 1. TOP BAR */
/* ========================================== */
.top-bar {
    background: linear-gradient(100deg, var(--primary-dark), #e27f21);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 10px 0;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    transition: opacity .2s ease;
}

.top-bar a:hover {
    opacity: .75;
}

.top-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.top-contact a,
.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 17px;
}

.social-links a {
    justify-content: center;
    color: var(--primary);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #fff;
    font-size: 12px;
}

/* ========================================== */
/* 2. MAIN NAVBAR */
/* ========================================== */
.main-navbar {
    background: #fff;
    padding: 13px 0;
    box-shadow: 0 3px 14px rgba(15, 40, 75, .06);
    position: relative;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* Logo */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.brand-icon {
    color: var(--primary);
    font-size: 39px;
}

.brand-name {
    display: block;
    font-size: 23px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.8px;
}

.brand-tagline {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1px;
}

/* Navigation Links */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.navbar-menu .nav-link {
    position: relative;
    padding: 10px 0;
    color: #172641;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .25s ease;
}

.navbar-menu .nav-link:hover,
.navbar-menu .nav-link.active {
    color: var(--primary);
}

.navbar-menu .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 3px;
}

.navbar-menu .dropdown-item {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    color: #263852;
}

.navbar-menu .dropdown-item:hover {
    color: var(--primary);
    background: #eef5ff;
}

/* Apply button */
.apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-dark);
    color: #fff;
    border: 1px solid var(--primary-dark);
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all .25s ease;
}

.apply-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(7, 85, 217, .22);
    border: 1px solid var(--primary);
}

/* Mobile menu Toggler */
.navbar-toggler {
    border: 1px solid #dce5f2;
    padding: 8px 11px;
    border-radius: 8px;
    color: var(--primary);
    box-shadow: none !important;
}

.navbar-toggler i {
    font-size: 21px;
}

/* ========================================== */
/* 3. RESPONSIVE DESIGN & MEDIA QUERIES */
/* ========================================== */

@media (max-width: 1199.98px) {
    .navbar-menu { gap: 15px; }
    .navbar-container { gap: 15px; }
    .navbar-menu .nav-link { font-size: 11px; }
    .brand-name { font-size: 21px; }
}

/* Desktop: Dropdown Hover & Scroll Setup */
@media (min-width: 992px) {
    .mobile-apply { display: none; }
    
    .navbar-menu .dropdown {
        position: relative;
    }

    .navbar-menu .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        
        /* Positioning & Box */
        top: 100%;
        left: -12px;
        margin-top: 0;
        padding: 9px;
        min-width: 250px; /* Slightly wider to fit all course names */
        border: 1px solid #edf1f7;
        border-radius: 10px;
        box-shadow: 0 12px 30px rgba(15, 40, 75, .12);
        
        /* Desktop Scroll Integration */
        max-height: 400px;
        overflow-y: auto;
    }

    .navbar-menu .dropdown:hover > .dropdown-menu,
    .navbar-menu .dropdown:focus-within > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    /* Custom Desktop Scrollbar */
    .navbar-menu .dropdown-menu::-webkit-scrollbar {
        width: 6px;
    }
    .navbar-menu .dropdown-menu::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }
    .navbar-menu .dropdown-menu::-webkit-scrollbar-track {
        background: transparent;
    }
}

/* Mobile/Tablet: Overlay Menu over Hero */
@media (max-width: 991.98px) {
    .navbar-container { flex-wrap: wrap; }
    
    .navbar-top-row {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Forces menu to float over the hero section */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 1050;
        box-shadow: 0 15px 30px rgba(15, 40, 75, 0.1);
        border-top: 1px solid #edf1f7;
        padding: 0 20px 20px 20px;
    }

    .navbar-menu {
        align-items: stretch;
        gap: 3px;
        padding: 15px 0 5px;
    }

    .navbar-menu .nav-link {
        display: block;
        padding: 12px 10px;
        font-size: 14px;
        border-radius: 6px;
    }

    .navbar-menu .nav-link:hover {
        background: #f1f6ff;
    }

    .navbar-menu .nav-link.active::after {
        display: none;
    }

    .navbar-menu .dropdown-menu {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        margin-top: 0;
        box-shadow: none;
        border-radius: 8px;
        border: 1px solid #edf1f7;
        padding: 10px;
    }

    .navbar-menu .dropdown-menu.show {
        display: block;
    }

    .mobile-apply {
        display: inline-flex;
        align-self: flex-start;
        margin-top: 8px;
    }
}

/* Mobile: Center the Top Bar */
@media (max-width: 768px) {
    .top-bar .justify-content-between,
    .top-bar .justify-content-md-between {
        justify-content: center !important;
        flex-direction: column;
        gap: 12px !important;
    }
    .top-contact {
        justify-content: center;
        gap: 15px;
    }
    .social-links {
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .top-bar { padding: 9px 0; }
    .top-contact { gap: 8px 15px; font-size: 11px; }
    .social-links { gap: 8px; }
    .social-links a { width: 20px; height: 20px; font-size: 10px; }
    .brand-logo { gap: 7px; }
    .brand-icon { font-size: 32px; }
    .brand-name { font-size: 19px; }
    .brand-tagline { font-size: 8px; }
    .main-navbar { padding: 12px 0; }
}


/* --- Hero Section with Background Image & Overlay --- */
.hero-section-alt {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Dark overlay to make white text readable over the background image */
.hero-section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    opacity: 0.85;
    /* Adjust between 0.5 and 0.9 for darkness */
    z-index: 1;
}

/* Ensure content sits above the overlay */
.hero-section-alt .container {
    position: relative;
    z-index: 2;
}

/* --- Typography & Badges --- */
.badge-custom {
    background: rgba(255, 128, 10, 0.15);
    color: var(--primary-dark);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    border: 1px solid rgba(255, 128, 10, 0.3);
}

.hero-title-alt {
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.text-highlight {
    color: var(--primary-dark);
}

.hero-subtitle-alt {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 90%;
}

/* --- Unified Pill Search Bar (Desktop & Mobile) --- */
.search-box-unified {
    background-color: var(--white);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 650px;
}

.search-box-unified .search-icon {
    color: #1a5c38;
    /* Green from reference */
    font-size: 1.2rem;
    margin-right: 12px;
}

.search-box-unified .search-input {
    border: none;
    outline: none;
    flex-grow: 1;
    background: transparent;
    color: var(--text);
    font-size: 1.05rem;
    min-width: 0;
    /* Crucial: Prevents input from breaking flex layout on small screens */
}

.search-box-unified .search-input::placeholder {
    color: #8fa0b4;
}

.search-box-unified .search-btn {
    background-color: var(--primary-dark);
    color: var(--white);
    border-radius: 40px;
    padding: 12px 30px;
    border: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.search-box-unified .search-btn:hover {
    background-color: #134629;
    color: var(--white);
}

/* --- Popular Tags --- */
.popular-searches {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.popular-searches .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

.popular-searches .tag-alt {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.3s ease;
}

.popular-searches .tag-alt:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* --- Right Side Visuals --- */
.hero-visual-wrapper {
    position: relative;
    padding-left: 20px;
}

.hero-visual-wrapper .main-img {
    border: 6px solid rgba(255, 255, 255, 0.05);
}

.floating-card {
    position: absolute;
    bottom: -30px;
    left: -20px;
    background: var(--white);
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 15px;
}

.floating-card .icon-box {
    background: rgba(16, 71, 130, 0.1);
    color: var(--primary);
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.floating-card .stats strong {
    display: block;
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.floating-card .stats span {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.slide-up-anim {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .hero-subtitle-alt {
        max-width: 100%;
        margin: 0 auto;
    }

    .popular-searches {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section-alt {
        padding: 40px 0;
        min-height: 60vh;
    }

    .search-box-unified {
        padding: 5px 5px 5px 15px;
    }

    .search-box-unified .search-icon {
        font-size: 1rem;
        margin-right: 8px;
    }

    .search-box-unified .search-input {
        font-size: 0.9rem;
    }

    .search-box-unified .search-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}




/*---------- Category---------- */
.bg-light {
    background-color: #f8f9fa !important;
}

/* --- Section Header Styling --- */
.section-title-wrapper {
    position: relative;
}

.title-line {
    width: 40px;
    height: 4px;
    background-color: var(--primary-dark);
    margin-bottom: 12px;
    border-radius: 2px;
}

.section-title {
    color: var(--text);
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.view-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--primary-dark);
}

.view-all-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.view-all-link:hover i {
    transform: translateX(4px);
}

/* --- Category Card Styling --- */
.category-card {
    display: block;
    background-color: var(--white);
    padding: 20px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(16, 71, 130, 0.08);
    /* Soft primary shadow */
    border-color: rgba(16, 71, 130, 0.1);
}

/* Icon Box */
.cat-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: rgba(16, 71, 130, 0.06);
    /* Very light --primary */
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.category-card:hover .cat-icon-box {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

/* Text Content */
.cat-title {
    color: var(--text);
    font-size: 1.15rem;
    transition: color 0.3s ease;
}

.category-card:hover .cat-title {
    color: var(--primary);
}

.cat-count {
    color: #6c757d;
    font-size: 0.9rem;
    display: block;
}

/* Arrow Animation */
.cat-arrow {
    color: #ced4da;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    transform: translateX(0);
    opacity: 0.5;
}

.category-card:hover .cat-arrow {
    color: var(--primary-dark);
    transform: translateX(5px);
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
    }

    .category-card {
        padding: 15px;
    }

    .cat-icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .cat-title {
        font-size: 1.05rem;
    }
}






/* Updates the heading to make room for the border */
.section-heading {
    color: var(--primary);
    font-size: 2rem;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

/* Creates a centered, stylish bottom border using your orange variable */
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--primary-dark);
    border-radius: 2px;
}

.section-subheading {
    color: #5c6c7f;
    font-size: 1.05rem;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Base Section Styling */
.top-colleges-section {
    background-color: var(--white);
}

.section-heading {
    color: var(--primary);
    font-size: 2rem;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-subheading {
    color: #5c6c7f;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* Update these specific classes in your CSS */

.colleges-track {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth;
    padding: 10px 0;
    scroll-snap-type: x mandatory; /* Makes the slider snap neatly */
}

.colleges-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.college-card {
    min-width: 220px; /* Slightly wider for better appearance */
    background: var(--white);
    border: 1px solid rgba(16, 71, 130, 0.08);
    border-radius: 12px;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    text-decoration: none;
    transition: all 0.3s ease;
    scroll-snap-align: start; /* Aligns the card when snapped */
    flex-shrink: 0; /* Prevents cards from shrinking */
}

.college-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(16, 71, 130, 0.08);
    border-color: rgba(16, 71, 130, 0.2);
}

.college-logo {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* If you replace the icons with actual images later, use this */
.college-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.college-name {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    transition: color 0.3s ease;
}

.college-card:hover .college-name {
    color: var(--primary-dark);
}

/* Navigation Buttons (Left/Right Arrows) */
.nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1.5px solid rgba(16, 71, 130, 0.3);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.nav-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.05);
}

.btn-left {
    left: -20px;
}

.btn-right {
    right: -20px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .section-heading {
        font-size: 1.6rem;
    }
    .college-card {
        min-width: 160px;
        padding: 20px 10px;
    }
    .college-logo {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .college-name {
        font-size: 0.9rem;
    }
}






/* --- new-section --- */
.bg-light {
    background-color: #f8f9fa !important;
}

/* --- Header Styling --- */
.title-line {
    width: 40px;
    height: 4px;
    background-color: var(--primary-dark);
    margin-bottom: 12px;
    border-radius: 2px;
}

.section-title {
    color: var(--text);
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.view-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--primary-dark);
}

.view-all-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.view-all-link:hover i {
    transform: translateX(4px);
}

/* --- Card Styling --- */
.inst-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(16, 71, 130, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

/* Accent Line on Top of Card */
.inst-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.inst-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(16, 71, 130, 0.1);
    border-color: rgba(16, 71, 130, 0.15);
}

.inst-card:hover::before {
    transform: scaleX(1);
    background-color: var(--primary-dark);
}

/* Logo Circular Avatar */
.inst-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #1a63b5);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Badges */
.inst-badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.badge-univ { background-color: rgba(16, 71, 130, 0.1); color: var(--primary); }
.badge-med { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; }
.badge-eng { background-color: rgba(255, 128, 10, 0.15); color: #e67300; }
.badge-gov { background-color: rgba(25, 135, 84, 0.1); color: #198754; }

/* Content Typography */
.inst-title {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.inst-card:hover .inst-title {
    color: var(--primary);
}

.inst-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inst-info-list li {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.inst-info-list li:last-child {
    margin-bottom: 0;
}

.inst-info-list li i {
    color: #94a3b8;
    margin-right: 10px;
    font-size: 1rem;
    margin-top: 2px;
}

/* Ghost to Solid Button */
.inst-btn {
    background-color: transparent;
    color: var(--primary);
    border: 1.5px solid rgba(16, 71, 130, 0.2);
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.inst-card:hover .inst-btn {
    background-color: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

.inst-btn i {
    transition: transform 0.3s ease;
}

.inst-card:hover .inst-btn i {
    transform: translateX(4px);
}



/* --- Variables --- */

/* --- Section Styling --- */
.stats-section {
    background: linear-gradient(135deg, var(--primary), #0a2d52);
    color: var(--white);
    position: relative;
    overflow: hidden;
    /* Reduced from 4px to 2px for a sleeker transition */
    border-top: 2px solid var(--primary-dark); 
}

.relative-z {
    position: relative;
    z-index: 2;
}

.stats-bg-overlay {
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 128, 10, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
}

/* --- Stat Card Styling --- */
.stat-card {
    padding: 20px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 128, 10, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 15px;
    transition: color 0.4s ease, transform 0.4s ease;
}

.stat-card:hover .stat-icon {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.stat-value-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: -1px;
}

.stat-suffix {
    font-size: 2.5rem;
    font-weight: 700;
    margin-left: 4px;
}

.text-highlight {
    color: var(--primary-dark);
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
    .stat-suffix {
        font-size: 1.8rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }
    .stat-card {
        padding: 15px 10px;
    }
}



/* --- Specialization Tags Styling --- */
.spec-tag {
    background-color: var(--white);
    border: 1px solid #e0e4e8;
    color: #495057;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.spec-tag i {
    color: #a0aec0;
    margin-left: 10px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

/* Hover Effects using your brand colors */
.spec-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(16, 71, 130, 0.1);
    transform: translateY(-2px);
}

.spec-tag:hover i {
    color: var(--primary-dark);
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .spec-tag {
        font-size: 0.9rem;
        padding: 6px 14px;
    }
}

/* --- Specialization Heading Border --- */
.spec-heading {
    color: var(--text);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: inline-block;
}

.spec-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--primary-dark); /* Uses your orange color */
    border-radius: 2px;
}




/*--Bottom to top arrow---*/
/* ========================================== */
/* Permanently Visible Chat Button */
/* ========================================== */
.support-btn-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1040;
}

.support-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #1a62b3);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(26, 98, 179, 0.4);
    background: linear-gradient(135deg, #0d3866, var(--primary));
}

.support-btn::after {
    display: none; /* Hides Bootstrap dropdown arrow */
}

.support-btn-container .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}




/* ========================================== */
/* Scroll-triggered Back to Top Button */
/* ========================================== */


/* ==========================================
   PROFESSIONAL BACK TO TOP BUTTON
   BookMyFares
========================================== */

.custom-back-to-top {
    position: fixed;
    right: 28px;
    bottom: 105px;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    background: var(--primary);
    border: 1px solid #e8edf3;
    border-radius: 50%;

    text-decoration: none !important;

    box-shadow: 0 4px 16px rgba(16, 71, 130, 0.13);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(12px);

    transition: all 0.3s ease;

    z-index: 1039;
}

/* Visible after scrolling */
.custom-back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}

/* Inner circle */
.custom-back-to-top .btt-inner-circle {
    width: 100%;
    height: 100%;
    stroke: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffff;
    background: var(--primary);
    border-radius: 50%;

    margin: 0;
    padding: 0;

    box-shadow: none;

    transition: background 0.3s ease;
}

/* Arrow */
.custom-back-to-top svg {
    display: block;
    width: 21px;
    height: 25px;

    flex-shrink: 0;
    overflow: visible;
}

/* White Arrow */
.custom-back-to-top svg path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: stroke 0.3s ease;
}

/* Hover */
.custom-back-to-top:hover {
    background: #104782;
    border-color: #104782;

    transform: translateY(-4px);

    box-shadow: 0 7px 18px rgba(16, 71, 130, 0.22);
}

.custom-back-to-top:hover .btt-inner-circle {
    background: #104782;
}

.custom-back-to-top:hover svg path {
    stroke: #ffffff;
}

/* Keyboard focus */
.custom-back-to-top:focus-visible {
    outline: 2px solid #ff800a;
    outline-offset: 3px;
}

/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 576px) {

    .custom-back-to-top {
        width: 44px;
        height: 44px;

        right: 20px;
        bottom: 90px;
    }

    .custom-back-to-top svg {
        width: 19px;
        height: 23px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .custom-back-to-top,
    .custom-back-to-top .btt-inner-circle,
    .custom-back-to-top svg path {
        transition: none !important;
    }
}


/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 576px) {

    .custom-back-to-top {
        right: 20px;
        bottom: 90px;

        width: 54px;
        height: 54px;
    }

    .custom-back-to-top::before {
        width: 60px;
        height: 60px;
    }

    .custom-back-to-top .btt-inner-circle {
        width: 46px;
        height: 46px;
    }

    .custom-back-to-top svg {
        width: 20px;
        height: 24px;
    }
}

/* Reduce animation for accessibility */
@media (prefers-reduced-motion: reduce) {
    .custom-back-to-top,
    .custom-back-to-top .btt-inner-circle {
        transition: none;
    }
}


/* ========================================== */
/* Mobile Adjustments */
/* ========================================== */
@media (max-width: 576px) {
    .support-btn-container {
        bottom: 20px;
        right: 20px;
    }
    .support-btn { 
        width: 55px; 
        height: 55px; 
        font-size: 1.5rem; 
    }
}


/* ========================================== */
/* Permanently Visible Chat Button */
/* ========================================== */
.support-btn-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1040;
}

.support-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #104782, #1a62b3);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(26, 98, 179, 0.4);
}

.support-btn::after { display: none; }
.support-btn-container .dropdown-menu .dropdown-item:hover { background-color: #f8f9fa; color: #104782; }

/* ========================================== */
/* Scroll-triggered Back to Top Button */
/* ========================================== */


/* ========================================== */
/* AI Chat Widget UI */
/* ========================================== */
.ai-chat-widget {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 350px;
    height: 480px;
    background: #fff;
    border-radius: 16px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.ai-chat-widget.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.ai-chat-widget .chat-body {
    flex: 1;
    overflow-y: auto;
}

.ai-chat-widget .chat-body::-webkit-scrollbar { width: 5px; }
.ai-chat-widget .chat-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px; }

/* ========================================== */
/* Mobile Adjustments */
/* ========================================== */
@media (max-width: 576px) {
    .support-btn-container { bottom: 20px; right: 20px; }
    .support-btn { width: 55px; height: 55px; font-size: 1.5rem; }
    
    .custom-back-to-top { bottom: 90px; right: 24px; width: 42px; height: 42px; }
    .custom-back-to-top .btt-inner-circle { width: 32px; height: 32px; margin-right: -1px; margin-bottom: -1px;}
    
    .ai-chat-widget {
        right: 15px; left: 15px; bottom: 90px; width: auto; height: 450px;
    }
}




/* --- Section Background --- */
.cta-listing-section {
    background: linear-gradient(145deg, var(--primary), #0c3663);
    position: relative;
    overflow: hidden;
    margin: 0;
}

/* Subtle background accent glow */
.cta-listing-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 128, 10, 0.1) 0%, rgba(16, 71, 130, 0) 70%);
    z-index: 0;
}

.cta-listing-section .container {
    position: relative;
    z-index: 1;
}

/* --- Left Side Content --- */
.cta-accent-line {
    width: 50px;
    height: 4px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    margin-bottom: 20px;
}

.cta-heading {
    line-height: 1.2;
    letter-spacing: -1px;
}

.text-highlight {
    color: var(--primary-dark);
}

.cta-subtext {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Button */
.btn-cta {
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50px;
    padding: 14px 35px;
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-cta i {
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(4px);
}

.cta-disclaimer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* --- Right Side Cards (Glassmorphism) --- */
.listing-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 25px 20px;
    height: 100%;
    transition: all 0.3s ease;
    text-align: left;
}

.listing-stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 128, 10, 0.4);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.listing-stat-card:hover .card-icon {
    color: var(--primary-dark);
}

.card-number {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.card-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 0;
    font-weight: 500;
}

/* --- Mobile Adjustments --- */
@media (max-width: 991px) {
    .cta-heading {
        font-size: 2.2rem;
    }
    .cta-listing-section {
        border-radius: 0;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .listing-stat-card {
        padding: 20px 15px;
    }
    .card-number {
        font-size: 1.6rem;
    }
    .card-label {
        font-size: 0.85rem;
    }
}




/* ---------------Footer Styles--------------------- */
.site-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0 0 0;
    font-size: 0.95rem;
}

.site-footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-dark);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-dark);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 0.75rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
    color: var(--white);
}





/* --- Section Styling --- */
.study-places-section {
    background-color: #fafbfc; /* Very light gray to make white cards stand out */
}

/* Track and Scrollbar Hiding */
.places-track {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.places-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* --- Square Place Cards --- */
.place-card {
    min-width: 160px;
    height: 160px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    scroll-snap-align: start;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.place-card:hover {
    border-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(16, 71, 130, 0.1);
}

/* Thin Line-Art Style Icons */
.place-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    opacity: 0.85;
}

.place-card:hover .place-icon {
    color: var(--primary-dark);
    opacity: 1;
    transform: scale(1.05);
}

.place-name {
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    padding: 0 10px;
    transition: color 0.3s ease;
}

.place-card:hover .place-name {
    color: var(--primary);
}

/* --- Navigation Buttons --- */
.place-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.place-nav-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .place-card {
        min-width: 140px;
        height: 140px;
    }
    .place-icon {
        font-size: 2.2rem;
    }
    .place-name {
        font-size: 0.9rem;
    }
}



/* --- Newsletter Section Styles --- */
.newsletter-section {
    background-color: var(--white);
}

/* Custom Input Wrapper */
.form-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0 12px;
    background-color: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: 48px; /* Consistent height for inputs */
}

/* Focus state for the wrapper */
.form-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(16, 71, 130, 0.15);
}

.form-wrapper i {
    color: #6c757d;
    margin-right: 10px;
    font-size: 1.1rem;
}

.form-wrapper input,
.form-wrapper select {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    height: 100%;
    color: var(--text);
    font-size: 0.95rem;
}

.form-wrapper input::placeholder {
    color: #8fa0b4;
}

/* Submit Button */
.btn-newsletter {
    background-color: var(--primary-dark);
    color: var(--white);
    font-weight: 600;
    border-radius: 6px;
    height: 48px; /* Matches input height */
    border: none;
    transition: all 0.3s ease;
}

.btn-newsletter:hover {
    background-color: #e67300; /* Darker orange */
    color: var(--white);
}

/* Validation Text */
.validation-text {
    font-size: 0.8rem;
    padding-left: 2px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .btn-newsletter {
        margin-top: 10px;
    }
}



/* --- Generic Horizontal Track (Used for Exams & News) --- */
.horizontal-track {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.horizontal-track::-webkit-scrollbar {
    display: none;
}

/* Slider Navigation Buttons */
.slider-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid #e0e4e8;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    position: absolute;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.slider-nav-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.05);
}

.slider-nav-btn.btn-left { left: -15px; }
.slider-nav-btn.btn-right { right: -15px; }


/* --- Top Exams Styling --- */
.exam-card {
    min-width: 320px;
    max-width: 320px;
    background: var(--white);
    border: 1px solid #e0e4e8;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.exam-card:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.exam-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 1px solid #e0e4e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.exam-mode {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.exam-title {
    color: var(--text);
    font-size: 1.2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text);
}

.detail-label {
    color: #6c757d;
}

.exam-actions {
    margin-top: auto;
}

.action-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    padding: 12px 5px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: var(--primary-dark);
}

/* --- News Filter Tabs --- */
.filter-tabs-container {
    scrollbar-width: none;
}
.filter-tabs-container::-webkit-scrollbar { display: none; }

.filter-tab {
    background-color: #ffffff;
    border: 1px solid #6c757d;
    color: #495057;
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tab.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* --- News & Stories Card --- */
.news-card {
    min-width: 300px;
    max-width: 300px;
    background: var(--white);
    border: 1px solid #e0e4e8;
    border-radius: 12px;
    padding: 20px;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

.news-title {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.news-date {
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 20px;
}

.read-more-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    border-top: 1px solid #e0e4e8;
    padding-top: 12px;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: var(--primary-dark);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .exam-card { min-width: 280px; max-width: 280px; }
    .news-card { min-width: 280px; max-width: 280px; }
}



/* --- Top Colleges Table Section --- */

/* Tab Navigation Adjustments */
.table-tabs-container {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.table-tab-nav {
    background-color: var(--white);
    border: 1px solid #e0e4e8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.table-tab-nav.left-nav { left: -20px; }
.table-tab-nav.right-nav { right: -20px; }

/* Table Wrapper */
.college-table-wrapper {
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    background-color: var(--white);
}

/* Custom Table Styling */
.custom-college-table {
    font-size: 0.95rem;
    color: var(--text);
}

.custom-college-table thead th {
    background-color: #f8f9fa;
    color: var(--text);
    font-weight: 700;
    padding: 15px;
    border-bottom: 2px solid #e0e4e8;
    white-space: nowrap;
}

.custom-college-table tbody td {
    padding: 20px 15px;
    border-bottom: 1px solid #e0e4e8;
    vertical-align: middle;
}

.custom-college-table tbody tr:last-child td {
    border-bottom: none;
}

.custom-college-table tbody tr:hover {
    background-color: #fdfdfd;
}

.rank-col {
    width: 60px;
    font-size: 1.1rem;
}

/* College Name & Logo Column */
.table-college-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #e0e4e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background-color: #fafbfc;
    flex-shrink: 0;
}

.table-college-name {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 2px;
}

.table-college-name:hover {
    color: var(--primary);
}

.table-college-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.rating-badge {
    color: #eab308; /* Star Yellow */
    font-weight: 600;
}

.rating-badge i {
    font-size: 0.9rem;
}

/* Other Columns */
.ranking-info {
    font-size: 0.9rem;
    line-height: 1.4;
}

.cutoff-text {
    font-size: 0.9rem;
    color: #495057;
}

/* Responsive Table Adjustments */
@media (max-width: 991px) {
    .custom-college-table {
        min-width: 900px; /* Forces horizontal scroll on mobile to keep layout intact */
    }
}



/*---Colleges--/
/* --- Colleges Hero & Search --- */
.colleges-hero {
    background: url('https://images.unsplash.com/photo-1498243691581-b145c3f54a5a?q=80&w=2070&auto=format&fit=crop') center/cover fixed;
    border-bottom: 4px solid var(--primary-dark);
}

/* 1. Ensure the overlay stays in the back */
.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(16, 71, 130, 0.9) 0%, rgba(10, 45, 82, 0.95) 100%);
    z-index: 1;
}

/* 2. Force the content container to the front */
.colleges-hero .container {
    position: relative;
    z-index: 5 !important; /* Pushes content above the overlay */
}

/* 3. Fix the search bar background so it isn't transparent */
.college-search-box .input-group {
    background-color: #ffffff; /* Forces white background */
    border-radius: 50px;
    overflow: hidden;
}

.college-search-box .form-control, 
.college-search-box .input-group-text {
    background-color: #ffffff !important; /* Ensures the input is solid white */
    color: var(--text) !important;
}

.college-search-box .form-control::placeholder {
    color: #6c757d !important;
}

.college-search-box {
    max-width: 750px;
    width: 100%;
}

.college-search-box .input-group {
    border-radius: 50px;
    overflow: hidden;
}

.college-search-box .form-control {
    height: 60px;
    box-shadow: none !important;
    font-size: 1.05rem;
}

.college-search-box .input-group-text {
    background: #fff;
    font-size: 1.3rem;
}

.btn-search {
    background-color: var(--primary-dark);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: #e67300;
    color: #fff;
}

/* --- Premium Filter Tabs --- */
.filter-tab-premium {
    background-color: #fff;
    border: 2px solid #e0e4e8;
    color: #495057;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-tab-premium:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tab-premium.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(16, 71, 130, 0.2);
}

/* --- Premium College Cards --- */
.premium-college-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.premium-college-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(16, 71, 130, 0.1);
    border-color: rgba(16, 71, 130, 0.15);
}

/* Image Header */
.card-img-top-wrapper {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.card-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-college-card:hover .card-img-bg {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Badges */
.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.badge-gov { background-color: #198754; color: #fff; }
.badge-pvt { background-color: var(--primary-dark); color: #fff; }

/* Content & Logo Overlap */
.card-body-content {
    padding: 25px 20px 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 180px);
}

.college-logo-overlap {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: absolute;
    top: -30px;
    left: 20px;
    border: 1px solid #f1f3f5;
    z-index: 2;
}

/* Buttons */
.btn-outline-primary {
    color: var(--primary);
    border-color: rgba(16, 71, 130, 0.3);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: #0c3663;
    border-color: #0c3663;
}



/*---University---*/
/* --- Universities Hero --- */
.uni-hero {
    background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?q=80&w=2070&auto=format&fit=crop') center/cover fixed;
    border-bottom: 4px solid var(--primary-dark);
}

.z-index-5 {
    z-index: 5 !important;
}

/* Ensure Search Box is solid white */
.uni-search-box {
    max-width: 750px;
    width: 100%;
}
.uni-search-box .input-group {
    background-color: #ffffff;
    border-radius: 50px;
    overflow: hidden;
}
.uni-search-box .form-control, 
.uni-search-box .input-group-text {
    background-color: #ffffff !important;
    color: var(--text) !important;
    height: 60px;
    box-shadow: none !important;
    font-size: 1.05rem;
}
.uni-search-box .form-control::placeholder {
    color: #6c757d !important;
}

/* --- University Specific Badges --- */
.badge-state { background-color: #104782; color: #fff; }    /* Primary Blue */
.badge-central { background-color: #FF800A; color: #fff; }  /* Primary Orange */
.badge-private { background-color: #dc3545; color: #fff; }  /* Red */




/*--Course---*/
/* --- Dynamic Course Page --- */
.course-hero {
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 400px;
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--primary-dark);
}

.custom-program-list li {
    font-size: 1.05rem;
    font-weight: 500;
    color: #495057;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e0e4e8;
}

.custom-program-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.custom-program-list i {
    font-size: 1.2rem;
    vertical-align: middle;
}


/*---Apply--*/
/* --- Apply Now Hero --- */
.apply-hero {
    background: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?q=80&w=2070&auto=format&fit=crop') center/cover fixed;
    border-bottom: 4px solid var(--primary-dark);
}
.z-index-5 { z-index: 5 !important; }

/* --- Left Column Benefits & Contact --- */
.benefit-icon-sm {
    width: 45px;
    height: 45px;
    background: rgba(16, 71, 130, 0.08);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-info-card a:hover {
    color: var(--primary-dark) !important;
}

/* --- Premium Application Form --- */
.application-form-card {
    border: 1px solid rgba(0,0,0,0.05);
}

.custom-input {
    background-color: #f8f9fa;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    color: var(--text);
    transition: all 0.3s ease;
}

.custom-input:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(16, 71, 130, 0.15);
}

.form-floating > label {
    color: #6c757d;
    font-size: 0.95rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--primary);
    font-weight: 600;
}

/* Submit Button */
.btn-submit-form {
    background: linear-gradient(100deg, var(--primary-dark), #e27f21);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 128, 10, 0.3);
}

.btn-submit-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 128, 10, 0.4);
    color: #fff;
}
.text-white-75{
    color: white;
}


.cdb-contact {
    --cdb-navy: #103b68;
    --cdb-blue: #174f84;
    --cdb-orange: #ff8517;
    --cdb-ink: #182d43;
    --cdb-muted: #69798a;
    --cdb-bg: #f5f7fa;
    --cdb-line: #e3e9ef;
    color: var(--cdb-ink);
    overflow: hidden;
}
.cdb-contact .container { max-width: 1180px; }
.cdb-contact p { text-align: justify; line-height: 1.8; }
.cdb-contact a { text-decoration: none; }
.cdb-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    color: var(--cdb-blue); font-size: 11px; font-weight: 800;
    letter-spacing: .15em; text-transform: uppercase; margin-bottom: 17px;
}
.cdb-eyebrow:before { content: ""; width: 24px; height: 3px; background: var(--cdb-orange); }
.cdb-contact-hero {
    min-height: 400px; position: relative; display: flex; align-items: center;
    background: var(--cdb-navy); overflow: hidden;
}
.cdb-contact-hero__image {
    position: absolute; inset: 0;
    background: url('https://banglaruchchashiksha.wb.gov.in/assets/readwrite/photo_gallery/img/0bc0346941f5b2052feb5c1e01002ec0.JPG') center 40% / cover no-repeat;
}
.cdb-contact-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(7,35,65,.94), rgba(11,55,94,.83) 52%, rgba(11,55,94,.45));
}
.cdb-contact-hero__content { position: relative; z-index: 2; padding: 75px 0; color: #fff; }
.cdb-contact-hero h1 {
    color: #fff; font-size: clamp(2.7rem, 5.5vw, 4.7rem);
    line-height: 1.06; letter-spacing: -.045em; margin: 0 0 20px; font-weight: 800;
}
.cdb-contact-hero h1 em { font-family: Georgia,serif; color: #ffc078; font-weight: 400; }
.cdb-contact-hero p { max-width: 650px; color: rgba(255,255,255,.82); font-size: 16px; margin: 0; }
.cdb-contact-hero .cdb-eyebrow { color: #fff; }
.cdb-contact-hero .cdb-eyebrow:before { background: var(--cdb-orange); }
.cdb-contact-breadcrumb { font-size: 12px; color: rgba(255,255,255,.72); margin-top: 28px; }
.cdb-contact-breadcrumb a { color: #fff; }
.cdb-contact-main { background: var(--cdb-bg); padding: 75px 0 90px; }
.cdb-contact-heading { margin-bottom: 30px; }
.cdb-contact-heading h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15; letter-spacing: -.04em; margin: 0 0 15px; font-weight: 800; }
.cdb-contact-heading h2 em { font-family: Georgia,serif; color: var(--cdb-blue); font-weight: 400; }
.cdb-contact-heading p { color: var(--cdb-muted); max-width: 660px; margin: 0; }
.cdb-contact-layout { align-items: stretch; }
.cdb-contact-form-card, .cdb-contact-info-card {
    background: #fff; border: 1px solid var(--cdb-line); border-radius: 12px;
    box-shadow: 0 12px 35px rgba(20,45,70,.045); height: 100%;
}
.cdb-contact-form-card { padding: clamp(22px, 4vw, 38px); }
.cdb-contact-form-card h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.cdb-contact-form-card .intro { color: var(--cdb-muted); font-size: 13px; margin-bottom: 25px; }
.cdb-form-label { display: block; font-size: 12px; font-weight: 800; margin: 0 0 8px; color: #263d54; }
.cdb-contact input, .cdb-contact select, .cdb-contact textarea {
    width: 100%; border: 1px solid #dce4ec; border-radius: 6px;
    padding: 12px 13px; background: #fbfcfe; color: var(--cdb-ink);
    font: inherit; font-size: 13px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.cdb-contact input:focus, .cdb-contact select:focus, .cdb-contact textarea:focus {
    border-color: var(--cdb-blue); box-shadow: 0 0 0 3px rgba(23,79,132,.1); background: #fff;
}
.cdb-contact textarea { min-height: 145px; resize: vertical; }
.cdb-field { margin-bottom: 18px; }
.cdb-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 20px;
    border: 0; border-radius: 5px; background: var(--cdb-orange); color: #fff;
    font-size: 13px; font-weight: 800; padding: 14px 21px; cursor: pointer; transition: .2s;
}
.cdb-submit:hover { background: #e97106; transform: translateY(-2px); }
.cdb-form-note { color: #8290a0; font-size: 11px; margin-top: 15px; text-align: left !important; }
.cdb-alert { border-radius: 7px; padding: 13px 15px; font-size: 13px; margin-bottom: 20px; }
.cdb-alert-success { color: #17643c; background: #eaf8ef; border: 1px solid #c8ead4; }
.cdb-alert-error { color: #922c2c; background: #fff0f0; border: 1px solid #f2cece; }
.cdb-contact-info-card { padding: clamp(22px, 3vw, 32px); position: relative; overflow: hidden; }
.cdb-contact-info-card h3 { font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.cdb-contact-info-card > p { color: var(--cdb-muted); font-size: 13px; margin-bottom: 28px; }
.cdb-contact-detail { display: flex; gap: 14px; padding: 17px 0; border-top: 1px solid var(--cdb-line); }
.cdb-contact-detail__icon {
    flex: 0 0 43px; width: 43px; height: 43px; display: grid; place-items: center;
    border-radius: 8px; background: #edf4fb; color: var(--cdb-blue); font-size: 19px;
}
.cdb-contact-detail strong { display: block; font-size: 13px; margin: 2px 0 5px; }
.cdb-contact-detail span, .cdb-contact-detail a { display: block; color: var(--cdb-muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.cdb-contact-detail a:hover { color: var(--cdb-orange); }
.cdb-contact-photo {
    width: 100%; height: 190px; object-fit: cover; border-radius: 8px; margin-top: 23px;
}
.cdb-contact-note {
    background: var(--cdb-navy); color: #fff; padding: 24px; border-radius: 10px;
    margin-top: 25px; display: flex; gap: 15px; align-items: flex-start;
}
.cdb-contact-note i { color: #ffc078; font-size: 24px; }
.cdb-contact-note strong { display: block; font-size: 14px; margin-bottom: 7px; }
.cdb-contact-note p { color: rgba(255,255,255,.75); font-size: 12px; margin: 0; }
.cdb-contact-bottom { padding: 0 0 85px; background: var(--cdb-bg); }
.cdb-contact-bottom__inner {
    position: relative; overflow: hidden; background: var(--cdb-navy); color: #fff;
    padding: clamp(28px, 5vw, 55px); border-radius: 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.cdb-contact-bottom h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.15; margin: 0 0 12px; font-weight: 800; }
.cdb-contact-bottom h2 em { color: #ffc078; font-family: Georgia,serif; font-weight: 400; }
.cdb-contact-bottom p { color: rgba(255,255,255,.76); font-size: 13px; margin: 0; max-width: 580px; }
.cdb-contact-bottom .cdb-submit { position: relative; z-index: 2; flex-shrink: 0; }
.cdb-contact-bottom .cdb-submit a { color: white; }
.cdb-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media(max-width: 991px) {
    .cdb-contact-main { padding: 60px 0; }
    .cdb-contact-bottom__inner { align-items: flex-start; flex-direction: column; }
}
@media(max-width: 575px) {
    .cdb-contact-hero { min-height: 350px; }
    .cdb-contact-hero__content { padding: 60px 0; }
    .cdb-contact-hero p { font-size: 14px; }
    .cdb-contact-main { padding: 45px 0 55px; }
    .cdb-contact-form-card, .cdb-contact-info-card { padding: 22px 18px; }
    .cdb-contact-bottom { padding-bottom: 55px; }
}

/* RESPONSIVE FIXES — prevent mobile overflow and awkward justified spacing */
.cdb-contact, .cdb-contact * { box-sizing: border-box; }
.cdb-contact { width: 100%; max-width: 100%; }
.cdb-contact img { max-width: 100%; }
.cdb-contact p { overflow-wrap: break-word; word-spacing: normal; }
@media (max-width: 767px) {
    .cdb-contact .container { width: 100%; max-width: 100%; padding-left: 20px; padding-right: 20px; }
    .cdb-contact p { text-align: left !important; text-justify: auto; word-spacing: normal; }
    .cdb-contact-hero { min-height: 0; }
    .cdb-contact-hero__content { padding: 58px 0 48px; }
    .cdb-contact-hero h1 { font-size: clamp(2.35rem, 10vw, 3.7rem); line-height: 1.07; letter-spacing: -.045em; }
    .cdb-contact-hero p { max-width: 100%; font-size: 15px; line-height: 1.75; }
    .cdb-contact-breadcrumb { margin-top: 22px; }
    .cdb-contact-main { padding: 48px 0 58px; }
    .cdb-contact-heading h2 { font-size: clamp(2rem, 8vw, 2.7rem); }
    .cdb-contact-form-card, .cdb-contact-info-card { min-width: 0; }
    .cdb-contact-form-card { padding: 22px 18px; }
    .cdb-contact-info-card { padding: 22px 18px; }
    .cdb-contact input, .cdb-contact select, .cdb-contact textarea { min-width: 0; }
    .cdb-contact-photo { height: 180px; }
    .cdb-contact-note { padding: 18px; }
    .cdb-contact-bottom { padding: 0 0 55px; }
    .cdb-contact-bottom__inner { padding: 30px 22px; gap: 24px; }
    .cdb-contact-bottom h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
    .cdb-contact-bottom .cdb-submit { max-width: 100%; white-space: normal; }
}
@media (max-width: 380px) {
    .cdb-contact .container { padding-left: 16px; padding-right: 16px; }
    .cdb-contact-hero__content { padding: 48px 0 42px; }
    .cdb-contact-hero h1 { font-size: 2.25rem; }
    .cdb-contact-form-card, .cdb-contact-info-card { padding: 18px 15px; }
}



/* Custom Dark Modal Styling */
/* --- Premium Dark Glass Modal --- */
.premium-glass-modal {
    background: rgba(16, 24, 40, 0.98); /* Sleek dark navy/slate */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* --- Floating Input Fixes --- */
.custom-floating-input .form-control,
.custom-floating-input .form-select {
    background-color: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #fff !important;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.custom-floating-input .form-control:focus,
.custom-floating-input .form-select:focus {
    border-color: var(--primary-dark); /* Uses your brand orange */
    box-shadow: 0 0 0 4px rgba(255, 128, 10, 0.1);
}

/* Base Label state */
.custom-floating-input > label {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Ensure the label itself uses the exact modal background color */
.custom-floating-input .form-control:focus ~ label,
.custom-floating-input .form-control:not(:placeholder-shown) ~ label,
.custom-floating-input .form-select ~ label {
    color: #fff !important;
    background-color: #101828 !important; /* Matches your dark navy modal */
    padding: 0 6px;
    margin-left: 10px;
    height: auto;
    transform: scale(0.85) translateY(-0.8rem) translateX(0);
    border-radius: 4px;
}

/* Dropdown text visibility */
.custom-floating-input select option {
    color: #101828; 
}

/* --- Seamless Mobile Input Group --- */
.seamless-input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: transparent;
    transition: all 0.3s ease;
    height: 58px; /* Matches Bootstrap floating label height */
}

.seamless-input-group:focus-within {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 4px rgba(255, 128, 10, 0.1);
}

.seamless-input-group .input-prefix {
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.7);
    border-right: 1.5px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

.seamless-input-group .form-control {
    border: none;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    height: 100%;
}

.seamless-input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* --- Premium Submit Button --- */
.btn-premium-submit {
    background: linear-gradient(100deg, var(--primary-dark), #e27f21);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.btn-premium-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 128, 10, 0.3);
    color: #fff;
}

/* --- Fix the White Background Artifact on Floating Labels --- */
.custom-floating-input > label::after {
    background-color: transparent !important; /* Removes Bootstrap's default white box */
}



/* ========================================== */
/* College Journey Section */
/* ========================================== */

/* --- Step Tracker Layout --- */
.journey-stepper-wrapper {
    width: 100%;
    overflow-x: auto; /* Allows swiping on small mobile screens */
    padding-bottom: 10px; /* Space for scrollbar */
}

/* Hide scrollbar for cleaner look */
.journey-stepper-wrapper::-webkit-scrollbar {
    height: 4px;
}
.journey-stepper-wrapper::-webkit-scrollbar-thumb {
    background: #e0e4e8;
    border-radius: 10px;
}

.journey-stepper {
    display: flex;
    align-items: center;
    min-width: 800px; /* Forces layout to stay horizontal on mobile */
    justify-content: space-between;
}

.step-item {
    position: relative;
    z-index: 2;
}

.step-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #dce5f2;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #a0aabf;
    white-space: nowrap;
    transition: all 0.4s ease;
}

/* Active Step Styling */
.step-item.active .step-pill {
    background-color: #e6f4ea; /* Light green */
    border-color: #e6f4ea;
    color: #1e8e3e;
}

/* The Connecting Lines */
.step-line {
    flex-grow: 1;
    height: 2px;
    background-color: #dce5f2;
    margin: 0 -10px; /* Pulls line under the rounded pills */
    z-index: 1;
}

/* --- Premium Blue Feature Cards --- */
.journey-feature-card {
    background-color: var(--primary); /* Premium trustworthy blue to match reference */
    color: #fff;
    border-radius: 4px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.journey-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(59, 89, 152, 0.25);
}

.card-icon-box {
    width: 65px;
    height: 65px;
    background-color: #fff;
    color: #333; /* Dark icon inside white box */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* --- Action Buttons --- */
.btn-action-orange {
    background-color: #f7a033; /* Brand Orange */
    color: #ffff; /* Dark text for contrast */
    border: 1px solid #f7a033;
    transition: all 0.3s ease;
}

.btn-action-orange:hover {
    background-color: #df8a21;
    border-color: #df8a21;
    color: #111;
}

.btn-action-outline {
    background-color: #fff;
    color: #333;
    border: 1px solid #dce5f2;
    transition: all 0.3s ease;
}

.btn-action-outline:hover {
    border-color: #a0aabf;
    background-color: #f8f9fa;
    color: #111;
}


/* ========================================== */
/* SEARCH BAR & LIVE AUTOCOMPLETE STYLING     */
/* ========================================== */

/* Hero container and search wrapper container overrides */
.colleges-hero, 
.college-search-box, 
.position-relative,
.hero-section-alt, 
.hero-section-alt .container, 
.hero-section-alt .row, 
.hero-section-alt [class*="col-"] {
    overflow: visible !important;
    position: relative;
    z-index: 999;
}

/* Unified Search Bar Box Styling */
.search-box-unified {
    background: #ffffff;
    border-radius: 50rem;
    padding: 6px 12px;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    width: 100%;
}

.search-box-unified .search-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 1rem;
    color: #333;
    width: 100%;
    padding: 8px 12px;
}

.search-box-unified .search-input:focus {
    box-shadow: none !important;
}

.search-box-unified .search-btn {
    background-color: #ff7f00;
    border: none;
    border-radius: 50rem;
    padding: 10px 28px;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-box-unified .search-btn:hover {
    background-color: #e06d00;
    color: #ffffff;
}

/* Force Live Search Results Dropdown to float cleanly with high z-index */
#searchDropdownResults {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.2) !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 1rem !important;
    
    /* Strict height limit to prevent section overlapping */
    max-height: 280px !important; 
    overflow-y: auto !important;
    display: none;
}

#searchDropdownResults.show-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Individual dropdown result items styling & spacing */
#searchDropdownResults .dropdown-item {
    transition: background-color 0.15s ease;
    padding: 10px 12px !important;
}

#searchDropdownResults .dropdown-item:hover {
    background-color: #f8f9fa;
}