:root {
    --primary-bg: #F9FAFB;
    --primary-color: #2563EB;
    --primary-blue: #1A73eb;
    --dark-blue: #0b1f3a;
    --light-bg: #ffffff;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-light: #e6edf5;
    --search-border: #bfc4cd;
    --border-dark: #1e3a5f;
    --success-green: #0a8f4d;
    --badge-bg: #FBBF24;
    --badge-text: #7b5808;
    --orange-color: #F59E0B;

    --page-padding: 150px;
    --page-body-padding: 50px;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --font-main: 'Nunito', sans-serif;
    --primary-orange: #f28c38;
    --text-gray: #555;
    --border-color: #ccc;
    --blue-link: #0056b3;
}
/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

/* Header styling */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    display: flex;
    justify-content: flex-start; /* logo + nav + buttons from left */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    gap: 30px; /* space between logo, nav, buttons */
}

/* Logo */
.logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Optional subtitle below logo */
.logo .subtitle {
    display: block;
    font-size: 0.9rem;
    color: #777;
    text-align: center;
    margin-top: 2px;
}

/* Flex container for logo */
.logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

/* Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #007BFF;
}


/* Auth Buttons (Login / Signup) */
.auth-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto; /* push to right on desktop */
}

.auth-buttons .btn {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

/* Login Button */
.auth-buttons .login {
    background: transparent;
    color: #333;
    border: 1px solid #333;
}

.auth-buttons .login:hover {
    background: #333;
    color: #fff;
}

/* Signup Button */
.auth-buttons .signup {
    background: #007BFF;
    color: #fff;
    border: 1px solid #007BFF;
}

.auth-buttons .signup:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Shrink logo on mobile */
    .logo img {
        height: 40px;
    }

    .logo .subtitle {
        font-size: 0.75rem;
    }

    /* Nav menu */
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transform: translateY(-500px);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    /* Auth buttons in mobile menu */
    .auth-buttons {
        position: absolute;
        top: calc(70px + 100%); /* below nav menu */
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        background: #fff;
        transform: translateY(-500px);
        transition: transform 0.3s ease-in-out;
        margin-left: 0; /* reset desktop margin */
    }

    /* Show auth buttons when menu is open */
    .nav-links.open ~ .auth-buttons {
        transform: translateY(0);
    }

    .auth-buttons .btn {
        width: 80%;
        text-align: center;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Flex adjustment */
    .container {
        justify-content: space-between;
        gap: 10px;
    }
}



ul{
    list-style: none;
}

a{
    text-decoration: none;
    color: #000;
}

.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 2;
}

.navbar, .buttons{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}

.brand{
    font-weight: bolder;
    font-size: 1.5em;
}

.brand:hover{
    font-weight: bolder;
    color: #428aff;
}

button{
    border: none;
    transition: 0.3s;
    cursor: pointer;
}

.btn{
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    background: #428aff;
    padding: 0.5em 1.3em;
    border-radius: 16px;
    color: #fff;
}

.btn:hover{
    background: #3877db;
}

.menu-btn{
    margin-left: 1em;
    background: none;
    display: inline-block;
}

.menu-btn span{
    font-size: 2.3em;
}

.dropdown > div, .sub-dropdown > div {
    cursor: pointer;
}

.dropdown .menu a:hover{
    color: #9b9b9b;
}

@media screen and (min-width: 800px) {
    .navbar{
        padding: 0 1.5em;
    }
    .dropdown > div{
        padding: 1.5em 1em;
    }
    .mega-menu{
        display: flex;
        justify-content: center;
    }
    .menu-btn{
        display: none;
    }
    .menu{
        background: #fff;
        position: absolute;
        top: 4.65em;
        left: 0;
        width: 100%;
        padding: 0 2em;
        overflow-y: scroll;
        transition: 0.4s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 2em;
    }

    .menu > li:first-child{
        font-size: 1.1em;
        font-weight: bold;
        margin: 0;
    }

    .sub-dropdown > div span:first-child{
        font-weight: bold;
    }
    
    .dropdown > div{
        border-bottom: 3px #fff solid;
        transition: 0.3s;
    }

    .dropdown:hover > div{
        border-color: #000;
    }

    .dropdown li{
        margin-bottom: 1em;
    }

    .dropdown > div span:last-child, 
    .sub-dropdown > div{
        display: none;
    }

    /* Width */
    .menu::-webkit-scrollbar{
        width: 8px;
    }
    /* Track */
    .menu::-webkit-scrollbar-track{
        background: #f1f1f1;
    }
    /* Handle */
    .menu::-webkit-scrollbar-thumb{
        background: #888;
    }

    /* Handle on hover */
    .menu::-webkit-scrollbar-thumb:hover{
        background: #555;
    }

    /* Hide menu */
    .menu{
        height: 0;
    }
    .dropdown:hover .menu{
        height: 50vh;
        padding: 2em;
    }
}

/* Responsive Design */
@media screen and (max-width: 800px) {
    .navbar{
        padding: 1em 1.5em;
    }
    .menu-container{
        background: #fff;
        position: absolute;
        top: 4.4em;
        left: 0;
        width: 100%;
        overflow-y: hidden;
        transition: 0.3s ease-in-out;
    }

    /* Width */
    .mega-menu::-webkit-scrollbar{
        width: 8px;
    }
    /* Track */
    .mega-menu::-webkit-scrollbar-track{
        background: #f1f1f1;
    }
    /* Handle */
    .mega-menu::-webkit-scrollbar-thumb{
        background: #888;
    }
    /* Handle on hover */
    .mega-menu::-webkit-scrollbar-thumb:hover{
        background: #555;
    }
    .mega-menu{
        padding: 0 1em 1em 1em;
        height: 100%;
        overflow-y: scroll;
    }
    .mega-menu li{
        font-weight: bold;
        font-size: 1.1em;
    }
    .mega-menu li > div{
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5em;
    }
    .menu li{
        padding: 0 1em;
        font-size: 1em;
        font-weight: 400;
    }
    .menu a{
        display: block;
        margin: 0.8em 0;
    }
    .menu{
        display: none;
    }
    /* Toggle class for Javascript */
    .menu-show{
        display: block;
    }
    .material-symbols-outlined{
        transition: 0.3s;
    }
    /* Toggle class for javascript */
    .icon-rotated{
        transform: rotate(90deg);
    }
    .dropdown>div, .sub-dropdown > div{
        cursor: pointer;
        padding: 0.5em;
    }
    .sub-menu{
        font-size: 0.9em;
        display: none;
    }
    /* Toggle class for Javascript */
    .sub-menu-show{
        display: block;
    }
    .dropdown:hover>div, .sub-dropdown:hover>div{
        background: #dbdbdb;
    }
    /* Hide menu */
    .menu-container{
        height: 0;
    }
    /* Toggle class for javascript */
    .mega-menu-show{
        height: 50vh;
    }
}


.section-wrapper {
    padding: 20px var(--page-padding);
}

@media (max-width: 768px) {
    .section-wrapper {
        padding: 16px 12px;
        /* tighter padding for mobile */
    }
}

/* MOBILE OVERRIDE */
@media (max-width: 768px) {
    :root {
        --page-padding: 16px;
        --page-body-padding: 16px;
    }
}


@media (max-width: 480px) {
    .section-wrapper {
        padding: 14px 10px;
    }
}




/* Banner Container */
.banner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
    /* slightly reduced */
    gap: 12px;

    position: relative;
    /* ✅ keeps normal document flow */
    /* margin-bottom: 24px; */
    /* ✅ space for college list */
    box-sizing: border-box;
}


/* Image Container */
.banner-content {
    flex: 1;
}

/* Responsive Image */
.banner-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Button */
.banner-btn button {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    border: none;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

/* 🔥 Mobile Responsive */

/* ======================
   TABLET VIEW
====================== */
@media (max-width: 1024px) {
    .banner-btn img {
        max-width: 150px;
    }
}

/* ======================
   MOBILE VIEW
====================== */



@media (max-width: 768px) {
    .banner {
        flex-direction: column;
        padding: 20px 16px;
        /* mobile friendly */
        gap: 16px;
    }

    .banner-content img {
        border-radius: 10px;
        height: 100%;
    }

    .banner-btn {
        width: 100%;
        text-align: center;
    }

    .banner-btn img {
        max-width: 220px;
        margin: 0 auto;
    }
}

/* ======================
   SMALL MOBILE
====================== */
@media (max-width: 480px) {
    .banner {
        padding: 10px;
    }

    .banner-btn img {
        max-width: 200px;
    }
}

.apply-btn {
    padding: 14px 30px;
    align-self: center;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(to bottom,
            #3f4f7a,
            #1e2a4a);
    border: none;
    border-radius: 30px;
    cursor: pointer;

    transition: all 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.4),
        0 10px 18px rgba(0, 0, 0, 0.5);
}

.apply-btn:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 4px 6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .apply-btn {
        width: 100%;
        /* full-width for easy tap */
        padding: 14px 20px;
        /* balanced padding */
        font-size: 12px;
        border-radius: 24px;
    }

    .apply-btn,
    .brochure-btn {
        width: 100%;
        font-size: 12px;

    }
}


.section-box {
    border: 1px solid #d0d7e2;
    border-radius: 10px;
    padding: 22px 26px;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

}

/* LEFT should take remaining space */
.section-left {
    flex: 1;
}

.section-left h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.section-left p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* 👈 key line */
    gap: 16px;
}




.search-box input {
    width: 100%;
    padding: 10px 40px 10px 38px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.search-box input:focus {
    border-color: #2563eb;
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .section-box {
        flex-direction: column;
        align-items: flex-start;
        font-size: 12px;
        gap: 10px;
    }

    .search-box {
        width: 100%;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .section-box {
        flex-direction: column;
        align-items: flex-start;
        font-size: 12px;
    }

    .section-left h2 {
        font-size: 18px;
        /* smaller heading */
    }

    .section-left p {
        font-size: 12px;
        /* smaller paragraph */
    }


    .search-box {
        width: 100%;
        margin-top: 8px !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .section-left h2 {
        font-size: 16px;
    }

    .section-left p {
        font-size: 11px;
    }
}

/* College listing CSS */

.college-wrapper {
    background: var(--primary-bg) !important;
    padding: 0px 20px;
    border-radius: 10px;
    border: 1px solid #d0d7e2;
    padding-top: 20px;
}

.college-wrapper h4{
    margin: 10px 0px;
}
.page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    padding: 20px 0px;
}

/* Filters */
.filters {
    background: var(--primary-bg);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;

}

.filter-group {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;

}

/* Remove divider from last group */
.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-group h4 {
    margin: 10px 0;
    font-size: 14px;
}

.filter-group label {
    display: block;
    margin-bottom: 0px;
    /* Increase this value to add more vertical gap */
    cursor: pointer;
    /* font-size: 14px; */
}

/* Optional: smaller gap for the last one */
.filter-group label:last-child {
    margin-bottom: 0;
}


/* College Card */
.college-card {
    background: #fff;
    border-radius: 12px;
    display: flex;
    gap: 18px;
    padding: 14px;
    margin-bottom: 18px;
    align-items: stretch;
    border: 2px solid var(--border-light);
    /* IMPORTANT */
}


/* Each checkbox row */
.filter-option {
    display: block;
    position: relative;
    padding-right: 35px;
    /* Space so text doesn't overlap count */
    margin-bottom: 14px !important;
    /* 👈 Strong visible vertical gap */
    font-size: 14px;
    cursor: pointer;
}

/* Count on extreme right */
.filter-count {
    position: absolute;
    right: 0;
    top: 0;
    color: #888;
    font-size: 13px;
}

/* Image section */
.college-img {
    position: relative;
    width: 260px;
    min-width: 260px;
    overflow: hidden;
    border-radius: 10px;
    height: 230px;
}

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

.guide-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    /* moved to right */
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 6px;
    text-align: center;
}

.guide-badge {
    backdrop-filter: blur(2px);
}


/* Right Content */
.college-content {
    flex: 1;
    position: relative;
}

/* Top Row */
.college-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.college-top h3 {
    margin: 0;
    font-size: 18px;
    color: #111827;
}

.rating-box {
    background: #fff4cc;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 25%;
    /* NEW: shifts left from right edge */
}

.rating-box a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
}

/* Location */
.location {
    margin: 6px 0;
    color: #6b7280;
}

/* Tags */
.tags span {
    background: #eef2f7;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-right: 6px;
}

/* NIRF */
.nirf {
    margin: 8px 0;
    background: #e8f0ff;
    color: #2563eb;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
}

/* Course Box */
.course-box {
    border: 1px solid #d6dbe3;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 12px;
}

.course-box small {
    color: #6b7280;
}

/* Bottom Row */
.college-bottom {
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
}

.details-btn {
    background: #f59e0b;
    color: #fff;
    border: none;
    padding: 10px 22px;
    /* increased horizontal padding */
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    width: 160px;
}

/* Right side action buttons */
.action-buttons {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.apply-btn {
    background: #1d6ce5;
    color: #fff;
    border: none;
    padding: 0px 22px;
    /* increased horizontal padding */
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    width: 160px;
    height: 30px;
    text-align: center;
    /* NEW: fixed width like reference */
}

.brochure-btn {
    background: #fff;
    border: 1px solid #1d6ce5;
    color: #1d6ce5;
    /* padding: 10px 22px; */
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    width: 160px;
    height: 30px;
    text-align: center;
    /* same width */
}

/* Responsive */
@media(max-width:900px) {
    .college-card {
        flex-direction: column;
    }

    .college-img {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }

    .action-buttons {
        position: static;
        flex-direction: row;
        margin-top: 10px;
    }

    .course-box {
        flex-direction: column;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 25px 0;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.pagination button.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination button:hover {
    background: #eef2ff;
}

/* Mobile View filter  */
/* ========== MOBILE FILTER SYSTEM ========== */


.apply-filter-btn {
    width: 100%;
    margin-top: 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
}

/* ===== Responsive Rules ===== */
@media(max-width: 900px) {

    /* Hide desktop sidebar filters */
    .filters {
        display: none;
    }

    /* Show mobile filter button */
    .mobile-filter-btn {
        display: block;
    }

    /* Make layout single column */
    .page {
        grid-template-columns: 1fr;
    }

    .college-wrapper {
        padding: 10px;
    }
}

/* ===============================
   FINAL MOBILE FIXES
================================ */

/* Tablet */
@media (max-width: 900px) {

    /* Layout becomes single column */
    .page {
        grid-template-columns: 1fr;
        padding: 10px 0;
    }

    .college-wrapper {
        padding: 10px;
    }

    /* College Card Stack */
    .college-card {
        flex-direction: column;
        gap: 12px;
        border: 2px solid var(--border-light);
    }

    .college-img {
        width: 100%;
        min-width: 100%;
        height: 190px;
    }

    /* Remove absolute positioned buttons */
    .action-buttons {
        position: static;
        flex-direction: row;
        gap: 10px;
        margin-top: 10px;
    }

    .apply-btn,
    .brochure-btn {
        width: 100%;
        font-size: 12px;
    }

    /* Fix rating box alignment */
    .rating-box {
        margin-right: 0;
    }

    .college-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* Course box stacks */
    .course-box {
        flex-direction: column;
        gap: 8px;
    }
}


/* Mobile */
@media (max-width: 600px) {

    /* Title size */
    .college-top h3 {
        font-size: 17px;
        line-height: 1.3;
    }

    .location {
        font-size: 13px;
    }

    /* Tags wrap cleanly */
    .tags span {
        font-size: 11px;
        display: inline-block;
        margin-bottom: 5px;
    }

    .nirf {
        font-size: 12px;
    }

    /* Course box full width */
    .course-box {
        font-size: 13px;
    }

    /* Bottom row stacks */
    .college-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .details-btn {
        width: 100%;
        text-align: center;
    }

    .links {
        font-size: 12px;
    }

    /* Pagination center */
    .pagination {
        margin-bottom: 80px;
    }
}

/* ================= QUICK CTA ================= */

.cta-section {
    /* light grey border */
    border-radius: 14px;
    /* LEFT & RIGHT padding */
    background: #fff;
    box-sizing: border-box;
    padding: 20px var(--page-padding);
}

/* HEADER */
.cta-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
   /* / padding: 40px var(--page-body-padding) */
}

.cta-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.cta-header p {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cta-btn {
    background: #2563eb;
    color: #fff;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.cta-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

/* SCROLL ROW */
/* SCROLL ROW – DESKTOP */

.cta-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 20px;
}



/* TABLET – 2 CARDS */
@media (max-width: 768px) {
    .cta-scroll {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-header {
        flex-direction: column;
        gap: 12px;
    }
}


/* MOBILE – 1 CARD */
@media (max-width: 600px) {
    .cta-scroll {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding: 0px 16px;
        scroll-snap-type: x mandatory;
    }

    .cta-card {

        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .cta-scroll::-webkit-scrollbar {
        display: none;
    }
}


.cta-scroll::-webkit-scrollbar {
    display: none;
}


.cta-scroll::-webkit-scrollbar {
    display: none;
}

.cta-card {
    width: 100%;
    /* IMPORTANT */
    height: 300px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;

    display: flex;
    flex-direction: column;
}



/* IMAGE */
.cta-img {
    position: relative;
    height: 150px;
}

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

.cta-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 500;
}

/* CONTENT */
.cta-content {
    padding: 14px;
}

.cta-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cta-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.cta-rating {
    font-size: 15px;
    color: #f59e0b;
    margin-bottom: 4px;
}

.cta-rating span {
    color: #374151;
    margin-left: 4px;
}

.cta-sub {
    font-size: 13px;
    color: #6b7280;

}

.cta-view {
    font-size: 15px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 768px) {

    .cta-section {
        padding: 24px 16px;
    }

    /* HEADER STACK */
    .cta-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 16px;
    }

    .cta-header h2 {
        font-size: 18px;
        line-height: 1.3;
    }

    .cta-header p {
        font-size: 13px;
    }

    /* ACTION BUTTONS */
    .cta-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .cta-btn,
    .cta-link {
        width: 100%;
        text-align: center;
    }

    /* HORIZONTAL SCROLL */
    .cta-scroll {
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
    }

    .cta-scroll::-webkit-scrollbar {
        display: none;
    }

    .cta-card {

        scroll-snap-align: start;
    }
}

/* Base */
.cta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
}

/* Left stack */
.cta-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Mobile only */
@media (max-width: 768px) {

    .cta-rating {
        font-size: 13px;
        line-height: 1.2;
    }

    .cta-sub {
        font-size: 13px;
        margin: 0;
        color: #555;
    }

    .cta-apply {
        padding: 6px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {

    .cta-scroll {
        padding-left: 20px;
        padding-right: 20px;
    }

}

.guide-section {
    padding: 20px var(--page-padding);
    font-family: sans-serif;
}

/* CARD */
.guide-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    background: #fff;
}

.guide-card h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

/* STEPS */
.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step {
    text-align: center;
}

.icon {
    width: 52px;
    height: 52px;
    border: 1px solid #D1D9E6;
    /* light amber border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;

    color: #f59e0b;
    /* AMBER icon */
    /* very light amber bg */
    font-size: 20px;
}

.step:hover .icon {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
    transition: 0.3s ease;
}


.step h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.step p {
    font-size: 13px;
    color: #6b7280;
}

/* CTA wrapper */
.guide-cta {
    margin-top: 30px;
    padding: 20px;
}

/* Tablet */
@media (max-width: 992px) {
    .guide-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
/* MOBILE ONLY */
@media (max-width: 576px) {

    /* Section padding */
    .guide-section {
        padding: 12px;
    }

    /* Card spacing */
    .guide-card {
        padding: 16px;
    }

    /* Steps → single column */
    .guide-steps {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Center step content */
    .step {
        text-align: center;
    }

    /* Icons size */
    .icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    /* CTA */
    .guide-cta {
        padding: 16px;
        text-align: center;
    }

    /* FORM stack */
    .cta-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .input-wrap {
        width: 100%;
    }

    .cta-form button {
        width: 100%;
    }

    /* Text sizes */
    .guide-card h2 {
        font-size: 16px;
    }

    .step h4 {
        font-size: 14px;
    }

    .step p {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .guide-steps {
        grid-template-columns: 1fr;
    }

    .cta-form {
        flex-direction: column;
        align-items: center;
    }

    .input-wrap input {
        width: 100%;
        max-width: 320px;
    }

    .cta-form button {
        width: 100%;
        max-width: 320px;
    }
}

/* 🔹 MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .guide-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .cta-form {
        flex-direction: column;
        width: 100%;
    }

    .input-wrap {
        width: 100%;
        min-width: unset;
    }

    .cta-form button {
        width: 100%;
    }
}


@media (max-width: 480px) {
    .guide-steps {
        grid-template-columns: 1fr;
    }
}

/* ================= FOOTER ================= */
/* ================= FOOTER ================= */

.g-footer {
    background: var(--dark-blue);
    color: #cbd5e1;
    padding: 60px var(--page-padding);
}

/* TOP GRID */
.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 14px;
    font-size: 15px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-col a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-col a:hover {
    color: #ffffff;
}

/* BOTTOM */
.footer-bottom {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid var(--border-dark);
    text-align: center;
    font-size: 13px;
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media (max-width: 1024px) {
    .g-footer {
        padding: 50px 40px 20px;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        text-align: start;
    }

    /* Brand section full width */
    .footer-top .footer-col:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding-top: 30px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
        max-width: 100%;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .footer-top {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        text-align: justify;
        gap: 20px;
    }

    /* First column (brand/info) takes full width */
    .footer-col:first-child {
        grid-column: 1 / -1;
    }

    .footer-col {
        width: 100%;
    }

    .footer-col h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .footer-col a,
    .footer-col p {
        font-size: 14px;
    }

    .footer-bottom {
        margin-top: 24px;
        font-size: 12px;
    }
}

/* Large screens */
@media (max-width: 1366px) {
    :root {
        --page-padding: 60px;
        --page-body-padding: 60px;
    }
}

/* Small laptops / tablets */
@media (max-width: 1200px) {
    :root {
        --page-padding: 40px;
        --page-body-padding: 40px;
    }
}

/* Tablets / large mobiles */
@media (max-width: 992px) {
    :root {
        --page-padding: 20px;
        --page-body-padding: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --page-padding: 12px;
        --page-body-padding: 12px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    :root {
        --page-padding: 10px;
        --page-body-padding: 10px;
    }
}



.search-icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

/* BREADCRUMB */
.breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.home-icon {
    margin-right: 4px;
}

/* UPDATED INFO */
.updated-info {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 5px;
}

/* AUTHOR */
.author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.author-row img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.author-row h4 {
    font-size: 14px;
    margin: 0;
}

.author-row p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.verified {
    color: #22c55e;
    font-size: 12px;
}

/* TITLE */
.article-title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #111827;
}

/* DESCRIPTION */
.article-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 24px;
}

/* LATEST UPDATE */
.latest-update {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 16px;
    margin-bottom: 24px;
}

.latest-update h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #c2410c;
}

.latest-update ul {
    padding-left: 18px;
    margin: 0;
}

.latest-update li {
    font-size: 14px;
    color: #374151;
}

.latest-update a {
    color: #2563eb;
    text-decoration: none;
}

.read-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
}

/* SHARE ROW */
.share-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: #374151;
}

.share-row i {
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease;
}

.share-row i:hover {
    color: #2563eb;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .search-box {
        position: static;
        width: 100%;
        margin-bottom: 16px;
    }

    .article-title {
        font-size: 22px;
    }
}

.share-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: #374151;
}

.share-row span {
    font-weight: 600;
    margin-right: 6px;
}

/* Common icon style */
.share-row i {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-size: 14px;
}

/* Individual colors */
.share-row .fa-facebook-f {
    background: #1877f2;
}

.share-row .fa-twitter {
    background: #1da1f2;
}

.share-row .fa-linkedin-in {
    background: #0a66c2;
}

.share-row .fa-envelope {
    background: #f97316;
}

/* Hover effect */
.share-row i:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.college-rating {
    font-size: 14px;
    color: #374151;
    margin: 4px 0 10px;
}

.college-rating strong {
    color: #111827;
}

.review-link {
    color: #2563eb;
    cursor: pointer;
    margin-left: 6px;
    font-size: 13px;
}

.review-link:hover {
    text-decoration: underline;
}

/* Remove link underline */
.cta-img-link {
    text-decoration: none;
    color: inherit;
}

/* Action row */
.cta-action {
    display: flex;
    justify-content: flex-end;

}

/* Apply button */
.cta-apply {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 16px;
    margin-left: auto; /* pushes button to right */
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: background-color 0.3s;
    border: none;
}

.cta-apply:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* Mobile view */
@media (max-width: 768px) {
    .cta-action {
        justify-content: flex-end;
    }

    .cta-apply {
        width: auto;
    }
}

/* Modal Logo */
.modal-logo {
    max-width: 160px;   /* 👈 control logo size */
    width: 100%;
    height: auto;       /* keeps aspect ratio */
    object-fit: contain;
  }
  /* Arrow next to dropdown link */
  .arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 5px;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(-45deg);
    transition: transform 0.3s;
  }
  
  /* Rotate arrow when dropdown is active */
  .menu-item.active .arrow {
    transform: rotate(135deg);
  }