/* =========================================================
   VIDHYA SETU FOUNDATION - COLLEGE FINDER
   Brand-aligned responsive UI
========================================================= */

:root {

    /* BRAND COLORS */
    --vs-primary: #c9b927;
    --vs-primary-dark: #08044f;
    --vs-primary-soft: #fff1f1;

    --vs-secondary: #17345b;
    --vs-secondary-dark: #102744;
    --vs-secondary-soft: #f2f6fb;

    --vs-accent: #d4c629;

    /* TEXT */
    --vs-dark: #14243a;
    --vs-text: #425466;
    --vs-muted: #758195;

    /* SURFACES */
    --vs-border: #e3e8ef;
    --vs-border-soft: #edf1f5;

    --vs-bg: #f7f9fc;
    --vs-white: #ffffff;

    --vs-radius-sm: 12px;
    --vs-radius: 18px;
    --vs-radius-lg: 30px;
}


/* =========================================================
   GLOBAL
========================================================= */

.vs-college-search-section,
.vs-college-search-section *,
.vs-college-search-section *::before,
.vs-college-search-section *::after {
    box-sizing: border-box;
}

.vs-college-search-section img {
    display: block;
    max-width: 100%;
}

.vs-college-search-section input,
.vs-college-search-section select,
.vs-college-search-section button {
    font: inherit;
}


/* =========================================================
   SECTION
========================================================= */

.vs-college-search-section {

    width: 100%;

    padding: 55px 0 72px;

    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(201, 39, 44, .045),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            #fbfcfe 0%,
            #ffffff 55%,
            #f8fafc 100%
        );
}


/* =========================================================
   HEADING
========================================================= */

.vs-finder-heading {

    max-width: 760px;

    margin: 0 auto 28px;

    text-align: center;
}

.vs-finder-kicker {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 8px;

    padding: 6px 11px;

    border-radius: 999px;

    background: var(--vs-primary-soft);

    color: var(--vs-primary);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .9px;
}

.vs-finder-heading h2 {

    margin: 0 0 8px;

    color: var(--vs-secondary);

    font-size: clamp(30px, 3.7vw, 44px);

    line-height: 1.14;

    letter-spacing: -.4px;
}

.vs-finder-heading p {

    margin: 0;

    color: var(--vs-muted);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   MAIN SEARCH BOX
========================================================= */

.vs-premium-finder {

    width: 100%;

    padding: 30px 34px;

    border: 1px solid var(--vs-border);

    border-radius: 32px;

    background: rgba(255,255,255,.98);

    box-shadow:
        0 18px 46px rgba(20,36,58,.09);
}


/* =========================================================
   MAIN ROW
========================================================= */

.vs-finder-main-row {

    display: grid;

    grid-template-columns:
        minmax(280px, 2fr)
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        minmax(180px, .95fr);

    gap: 15px;

    align-items: stretch;
}


/* =========================================================
   CONTROLS
========================================================= */

.vs-premium-control {

    position: relative;

    min-width: 0;

    min-height: 72px;

    display: flex;

    align-items: center;

    border: 1px solid #dfe6ee;

    border-radius: 22px;

    background: #f8fafc;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.vs-premium-control:hover {

    background: #ffffff;

    border-color: #cad4df;
}

.vs-premium-control:focus-within {

    background: #ffffff;

    border-color: var(--vs-secondary);

    box-shadow:
        0 0 0 4px rgba(23,52,91,.08);
}


/* ICON */

.vs-control-icon {

    width: 62px;

    flex: 0 0 62px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--vs-secondary);

    font-size: 23px;
}


/* =========================================================
   INPUT
========================================================= */

.vs-premium-control input {

    width: 100%;

    min-width: 0;

    height: 70px;

    padding:
        0
        18px
        0
        0;

    border: 0;

    outline: none;

    background: transparent;

    color: var(--vs-dark);

    font-size: 16px;
}

.vs-premium-control input::placeholder {

    color: #77869a;

    opacity: 1;
}


/* =========================================================
   SELECT
========================================================= */

.vs-premium-control select {

    width: 100%;

    min-width: 0;

    height: 70px;

    padding:
        0
        42px
        0
        0;

    border: 0;

    outline: none;

    background: transparent;

    color: var(--vs-dark);

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;
}


/* =========================================================
   FIND NOW BUTTON
========================================================= */

.vs-premium-find-btn {

    min-width: 0;

    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 15px 28px;

    border: 0;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            var(--vs-primary),
            #e13a3f
        );

    color: #ffffff;

    font-size: 18px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 10px 24px rgba(201,39,44,.22);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.vs-premium-find-btn:hover {

    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            var(--vs-primary-dark),
            var(--vs-primary)
        );

    box-shadow:
        0 14px 30px rgba(201,39,44,.28);
}

.vs-premium-find-btn i {

    display: none;
}


/* =========================================================
   SECONDARY FILTERS
========================================================= */

.vs-more-filter-row {

    display: flex;

    align-items: flex-end;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px solid var(--vs-border-soft);
}

.vs-secondary-filter {

    flex: 1 1 180px;

    min-width: 160px;
}

.vs-secondary-filter label {

    display: flex;

    align-items: center;

    gap: 6px;

    margin: 0 0 6px 3px;

    color: var(--vs-text);

    font-size: 10px;

    font-weight: 700;
}

.vs-secondary-filter label i {

    color: var(--vs-primary);
}

.vs-secondary-filter select {

    width: 100%;

    min-height: 45px;

    padding: 9px 12px;

    border: 1px solid #dce3eb;

    border-radius: 11px;

    outline: none;

    background: #fbfcfe;

    color: var(--vs-dark);

    font-size: 12px;
}

.vs-secondary-filter select:focus {

    border-color: var(--vs-secondary);

    background: white;

    box-shadow:
        0 0 0 3px rgba(23,52,91,.07);
}


/* =========================================================
   RESET
========================================================= */

.vs-secondary-reset {

    flex: 0 0 auto;
}

.vs-secondary-reset a {

    min-height: 45px;

    padding: 10px 16px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    border: 1px solid #dce3eb;

    border-radius: 11px;

    background: white;

    color: var(--vs-text);

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;

    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.vs-secondary-reset a:hover {

    border-color: var(--vs-primary);

    background: var(--vs-primary-soft);

    color: var(--vs-primary);
}


/* =========================================================
   RESULT HEADER
========================================================= */

.vs-result-section {

    margin-top: 42px;
}

.vs-result-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

.vs-result-eyebrow {

    display: block;

    margin-bottom: 5px;

    color: var(--vs-primary);

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .8px;
}

.vs-result-header h3 {

    margin: 0 0 5px;

    color: var(--vs-secondary);

    font-size: 25px;
}

.vs-result-header p {

    margin: 0;

    color: var(--vs-muted);

    font-size: 11px;
}


/* =========================================================
   RESULT COUNT
========================================================= */

.vs-result-count {

    min-width: 90px;

    padding: 12px 15px;

    display: flex;

    flex-direction: column;

    align-items: center;

    border: 1px solid #f0cccc;

    border-radius: 12px;

    background: var(--vs-primary-soft);
}

.vs-result-count strong {

    color: var(--vs-primary);

    font-size: 22px;
}

.vs-result-count span {

    color: var(--vs-muted);

    font-size: 8px;

    text-transform: uppercase;
}


/* =========================================================
   ACTIVE FILTERS
========================================================= */

.vs-active-filters {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 22px;
}

.vs-active-filter {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 7px 10px;

    border: 1px solid #f1cccc;

    border-radius: 999px;

    background: var(--vs-primary-soft);

    color: var(--vs-primary);

    font-size: 9px;

    font-weight: 600;
}


/* =========================================================
   COLLEGE GRID
========================================================= */

.vs-college-search-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   COLLEGE CARD
========================================================= */

.vs-search-college-card {

    min-width: 0;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--vs-border);

    border-radius: 17px;

    background: white;

    box-shadow:
        0 5px 18px rgba(20,36,58,.05);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.vs-search-college-card:hover {

    transform: translateY(-5px);

    border-color: #cbd6e2;

    box-shadow:
        0 16px 38px rgba(20,36,58,.10);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.vs-search-college-image {

    position: relative;

    width: 100%;

    height: 205px;

    display: block;

    overflow: hidden;

    background: #f2f5f9;
}

.vs-search-college-image > img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.vs-search-college-card:hover
.vs-search-college-image > img {

    transform: scale(1.045);
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.vs-college-image-placeholder {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background:
        linear-gradient(
            135deg,
            #f3f6fa,
            #ffffff
        );
}

.vs-college-image-placeholder img {

    width: 105px;

    height: 105px;

    object-fit: contain;
}

.vs-college-image-placeholder span {

    color: var(--vs-secondary);

    font-size: 58px;

    font-weight: 800;
}


/* =========================================================
   FEATURED BADGE
========================================================= */

.vs-featured-badge {

    position: absolute;

    top: 13px;

    left: 13px;

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(23,52,91,.9);

    color: white;

    font-size: 8px;

    font-weight: 700;

    text-transform: uppercase;
}


/* =========================================================
   CARD BODY
========================================================= */

.vs-search-college-body {

    flex: 1;

    display: flex;

    flex-direction: column;

    padding: 19px;
}

.vs-search-college-top {

    display: flex;

    align-items: flex-start;

    gap: 11px;
}


/* =========================================================
   LOGO
========================================================= */

.vs-search-college-logo {

    width: 50px;

    height: 50px;

    flex: 0 0 50px;

    padding: 5px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--vs-border);

    border-radius: 9px;

    background: white;
}

.vs-search-college-logo img {

    width: 100%;

    height: 100%;

    object-fit: contain;
}


/* =========================================================
   TITLE
========================================================= */

.vs-search-college-title {

    min-width: 0;
}

.vs-search-college-title h3 {

    margin: 0 0 5px;

    font-size: 16px;

    line-height: 1.4;
}

.vs-search-college-title h3 a {

    color: var(--vs-secondary);

    text-decoration: none;
}

.vs-search-college-title h3 a:hover {

    color: var(--vs-primary);
}


/* =========================================================
   LOCATION
========================================================= */

.vs-search-college-location {

    display: flex;

    align-items: flex-start;

    gap: 5px;

    margin: 0;

    color: var(--vs-muted);

    font-size: 10px;

    line-height: 1.5;
}

.vs-search-college-location i {

    flex: 0 0 auto;

    margin-top: 2px;

    color: var(--vs-primary);
}


/* =========================================================
   TAGS
========================================================= */

.vs-search-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 14px;
}

.vs-search-tags span {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    padding: 5px 8px;

    border-radius: 6px;

    background: var(--vs-secondary-soft);

    color: var(--vs-secondary);

    font-size: 8px;

    font-weight: 600;
}


/* =========================================================
   COURSES
========================================================= */

.vs-search-course-preview {

    margin-top: 14px;

    padding-top: 13px;

    border-top: 1px solid var(--vs-border-soft);
}

.vs-search-course-label {

    display: block;

    margin-bottom: 7px;

    color: var(--vs-muted);

    font-size: 8px;

    font-weight: 700;

    text-transform: uppercase;
}

.vs-search-course-list {

    display: flex;

    flex-wrap: wrap;

    gap: 5px;
}

.vs-search-course-list span {

    padding: 5px 8px;

    border-radius: 6px;

    background: var(--vs-primary-soft);

    color: var(--vs-primary);

    font-size: 8px;

    font-weight: 600;
}


/* =========================================================
   CARD ACTIONS
========================================================= */

.vs-search-college-actions {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 8px;

    margin-top: auto;

    padding-top: 18px;
}

.vs-search-college-actions a {

    min-height: 42px;

    padding: 9px 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 9px;

    font-weight: 700;
}

.vs-search-view-btn {

    border: 1px solid #ccd6e1;

    background: white;

    color: var(--vs-secondary);
}

.vs-search-view-btn:hover {

    border-color: var(--vs-secondary);

    background: var(--vs-secondary-soft);

    color: var(--vs-secondary);
}

.vs-search-enquire-btn {

    border: 1px solid var(--vs-primary);

    background: var(--vs-primary);

    color: white;
}

.vs-search-enquire-btn:hover {

    background: var(--vs-primary-dark);

    color: white;
}


/* =========================================================
   POPUP
========================================================= */

.vs-search-popup-overlay {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(16, 30, 48, .68);

    backdrop-filter: blur(5px);
}

.vs-search-popup {

    position: relative;

    width: 100%;

    max-width: 440px;

    padding: 38px 30px 30px;

    border-radius: 18px;

    background: white;

    text-align: center;

    box-shadow:
        0 26px 65px rgba(16,30,48,.25);
}

.vs-popup-icon {

    width: 68px;

    height: 68px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--vs-primary-soft);

    color: var(--vs-primary);

    font-size: 27px;
}

.vs-popup-search-again {

    width: 100%;

    min-height: 46px;

    border: 0;

    border-radius: 9px;

    background: var(--vs-primary);

    color: white;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;
}

.vs-popup-search-again:hover {

    background: var(--vs-primary-dark);
}


/* =========================================================
   RESPONSIVE - 1199
========================================================= */

@media (max-width: 1199px) {

    .vs-premium-finder {
        padding: 24px;
    }

    .vs-finder-main-row {

        grid-template-columns:
            minmax(250px, 1.7fr)
            minmax(165px, 1fr)
            minmax(165px, 1fr)
            minmax(155px, .9fr);

        gap: 12px;
    }

    .vs-premium-control,
    .vs-premium-find-btn {

        min-height: 66px;

        border-radius: 19px;
    }

    .vs-premium-control input,
    .vs-premium-control select {

        height: 64px;
    }

    .vs-control-icon {

        width: 54px;

        flex-basis: 54px;

        font-size: 20px;
    }

    .vs-premium-control input {

        font-size: 15px;
    }

    .vs-premium-control select {

        font-size: 14px;
    }

    .vs-premium-find-btn {

        font-size: 16px;
    }

    .vs-college-search-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   RESPONSIVE - 991
========================================================= */

@media (max-width: 991px) {

    .vs-college-search-section {

        padding: 44px 0 58px;
    }

    .vs-premium-finder {

        padding: 21px;

        border-radius: 26px;
    }

    .vs-finder-main-row {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .vs-premium-search {

        grid-column: 1 / -1;
    }

    .vs-premium-find-btn i {

        display: inline-block;
    }

}


/* =========================================================
   RESPONSIVE - 767
========================================================= */

@media (max-width: 767px) {

    .vs-college-search-section {

        padding: 32px 0 45px;
    }

    .vs-finder-heading {

        margin-bottom: 20px;
    }

    .vs-finder-heading h2 {

        font-size: 28px;
    }

    .vs-finder-heading p {

        font-size: 12px;
    }

    .vs-premium-finder {

        padding: 16px;

        border-radius: 21px;
    }

    .vs-finder-main-row {

        grid-template-columns: 1fr;

        gap: 10px;
    }

    .vs-premium-search {

        grid-column: auto;
    }

    .vs-premium-control,
    .vs-premium-find-btn {

        min-height: 58px;

        border-radius: 15px;
    }

    .vs-premium-control input,
    .vs-premium-control select {

        height: 56px;

        font-size: 14px;
    }

    .vs-control-icon {

        width: 48px;

        flex-basis: 48px;

        font-size: 18px;
    }

    .vs-premium-find-btn {

        width: 100%;

        font-size: 15px;
    }

    .vs-more-filter-row {

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;

        margin-top: 15px;

        padding-top: 15px;
    }

    .vs-secondary-filter {

        min-width: 0;
    }

    .vs-secondary-reset {

        grid-column: 1 / -1;
    }

    .vs-secondary-reset a {

        width: 100%;
    }

    .vs-result-header {

        flex-direction: column;

        align-items: flex-start;
    }

    .vs-college-search-grid {

        grid-template-columns: 1fr;
    }

    .vs-search-college-image {

        height: 225px;
    }

}


/* =========================================================
   RESPONSIVE - 575
========================================================= */

@media (max-width: 575px) {

    .vs-finder-heading h2 {

        font-size: 25px;
    }

    .vs-premium-finder {

        padding: 13px;

        border-radius: 17px;
    }

    .vs-more-filter-row {

        grid-template-columns: 1fr;
    }

    .vs-secondary-reset {

        grid-column: auto;
    }

    .vs-search-college-image {

        height: 195px;
    }

}


/* =========================================================
   RESPONSIVE - 400
========================================================= */

@media (max-width: 400px) {

    .vs-finder-heading h2 {

        font-size: 23px;
    }

    .vs-control-icon {

        width: 44px;

        flex-basis: 44px;
    }

    .vs-premium-control input,
    .vs-premium-control select {

        font-size: 13px;
    }

    .vs-premium-find-btn {

        min-height: 54px;

        font-size: 14px;
    }

    .vs-search-college-actions {

        grid-template-columns: 1fr;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .vs-premium-control,
    .vs-premium-find-btn,
    .vs-search-college-card {

        transition: none;
    }

    .vs-premium-find-btn:hover,
    .vs-search-college-card:hover {

        transform: none;
    }

}