/* =========================================================
   COLLECTION DETAIL PAGE
   VIDHYA SETU FOUNDATION
========================================================= */

:root {

    --vc-primary: #03163e;
    --vc-primary-dark: #02102e;
    --vc-primary-mid: #0b2f68;
    --vc-primary-soft: #eef4ff;

    --vc-accent: #c9272c;
    --vc-accent-dark: #a91f23;
    --vc-accent-soft: #fff1f1;

    --vc-dark: #101828;
    --vc-text: #475467;
    --vc-muted: #667085;

    --vc-border: #e4e7ec;
    --vc-border-soft: #eef1f5;

    --vc-light: #f7f9fc;
    --vc-white: #ffffff;

    --vc-radius-sm: 10px;
    --vc-radius: 18px;
    --vc-radius-lg: 24px;
}


/* =========================================================
   GLOBAL
========================================================= */

.vs-collection-page,
.vs-collection-page *,
.vs-collection-page *::before,
.vs-collection-page *::after {
    box-sizing: border-box;
}


.vs-collection-page {
    width: 100%;

    padding: 55px 0 75px;

    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(3, 22, 62, .045),
            transparent 26%
        ),
        linear-gradient(
            180deg,
            #f8faff 0%,
            #ffffff 42%,
            #f8fafc 100%
        );
}


/* =========================================================
   HERO
========================================================= */

.vs-collection-hero {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(260px, .55fr);

    gap: 35px;

    align-items: center;

    margin-bottom: 30px;

    padding: 44px;

    overflow: hidden;

    border-radius: var(--vc-radius-lg);

    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(255,255,255,.13),
            transparent 26%
        ),
        linear-gradient(
            135deg,
            #03163e 0%,
            #08275f 58%,
            #103d82 100%
        );

    box-shadow:
        0 18px 50px rgba(3,22,62,.16);
}


.vs-collection-hero::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -90px;
    bottom: -135px;

    border-radius: 50%;

    background: rgba(255,255,255,.07);
}


.vs-collection-hero::after {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    top: -70px;
    right: 22%;

    border-radius: 50%;

    background: rgba(255,255,255,.04);
}


.vs-collection-hero-content {
    position: relative;

    z-index: 2;

    min-width: 0;
}


.vs-collection-label {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 14px;

    padding: 7px 11px;

    border: 1px solid rgba(255,255,255,.25);

    border-radius: 999px;

    background: rgba(255,255,255,.12);

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .65px;

    backdrop-filter: blur(6px);
}


.vs-collection-hero h1 {
    max-width: 820px;

    margin: 0 0 14px;

    color: #ffffff;

    font-size: clamp(
        32px,
        4vw,
        52px
    );

    line-height: 1.12;

    letter-spacing: -.6px;

    overflow-wrap: anywhere;
}


.vs-collection-hero p {
    max-width: 750px;

    margin: 0;

    color: rgba(255,255,255,.84);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   HERO META
========================================================= */

.vs-collection-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 22px;
}


.vs-collection-meta span {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 7px 10px;

    border: 1px solid rgba(255,255,255,.14);

    border-radius: 8px;

    background: rgba(255,255,255,.11);

    color: #ffffff;

    font-size: 10px;

    font-weight: 600;

    backdrop-filter: blur(5px);
}


/* =========================================================
   HERO IMAGE
========================================================= */

.vs-collection-hero-image {
    position: relative;

    z-index: 2;

    min-width: 0;
}


.vs-collection-hero-image img {
    width: 100%;
    height: 220px;

    display: block;

    object-fit: cover;

    border: 5px solid rgba(255,255,255,.16);

    border-radius: 18px;

    box-shadow:
        0 16px 35px rgba(0,0,0,.18);
}


/* =========================================================
   COLLECTION CONTENT BLOCK
========================================================= */

.vs-collection-content {
    width: 100%;

    margin: 30px 0;

    padding: 30px;

    overflow: hidden;

    border: 1px solid var(--vc-border);

    border-radius: 18px;

    background: var(--vc-white);

    color: var(--vc-text);

    box-shadow:
        0 8px 28px rgba(16,24,40,.045);
}


.vs-collection-intro {
    position: relative;

    border-left: 4px solid var(--vc-primary);
}


.vs-seo-content {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fafbfc
        );
}


/* =========================================================
   CKEDITOR BASE
========================================================= */

.vs-ck-content {
    width: 100%;
    max-width: 100%;

    color: var(--vc-text);

    font-size: 15px;

    line-height: 1.8;

    overflow-wrap: anywhere;
}


/* =========================================================
   CKEDITOR HEADINGS
========================================================= */

.vs-ck-content h1,
.vs-ck-content h2,
.vs-ck-content h3,
.vs-ck-content h4,
.vs-ck-content h5,
.vs-ck-content h6 {
    color: var(--vc-dark);

    font-weight: 700;

    line-height: 1.3;

    overflow-wrap: anywhere;
}


.vs-ck-content h1 {
    margin:
        0
        0
        20px;

    font-size: 32px;
}


.vs-ck-content h2 {
    margin:
        36px
        0
        16px;

    padding-bottom: 10px;

    border-bottom: 1px solid var(--vc-border-soft);

    font-size: 27px;
}


.vs-ck-content h2:first-child {
    margin-top: 0;
}


.vs-ck-content h3 {
    margin:
        28px
        0
        12px;

    font-size: 21px;
}


.vs-ck-content h4 {
    margin:
        22px
        0
        10px;

    font-size: 18px;
}


.vs-ck-content h5 {
    margin:
        20px
        0
        10px;

    font-size: 16px;
}


/* =========================================================
   CKEDITOR PARAGRAPHS
========================================================= */

.vs-ck-content p {
    margin:
        0
        0
        16px;

    color: var(--vc-text);

    font-size: 15px;

    line-height: 1.8;
}


.vs-ck-content strong {
    color: #253142;

    font-weight: 700;
}


/* =========================================================
   CKEDITOR LINKS
========================================================= */

.vs-ck-content a {
    color: var(--vc-primary-mid);

    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 3px;
}


.vs-ck-content a:hover {
    color: var(--vc-accent);
}


/* =========================================================
   CKEDITOR LISTS
========================================================= */

.vs-ck-content ul,
.vs-ck-content ol {
    margin:
        12px
        0
        22px;

    padding-left: 24px;
}


.vs-ck-content li {
    margin-bottom: 8px;

    color: var(--vc-text);

    line-height: 1.7;
}


.vs-ck-content li::marker {
    color: var(--vc-primary-mid);

    font-weight: 700;
}


/* =========================================================
   BLOCKQUOTE
========================================================= */

.vs-ck-content blockquote {
    margin:
        24px
        0;

    padding:
        18px
        20px;

    border-left: 4px solid var(--vc-primary);

    border-radius:
        0
        10px
        10px
        0;

    background: var(--vc-primary-soft);

    color: var(--vc-text);

    font-style: normal;
}


.vs-ck-content blockquote p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CKEDITOR TABLE WRAPPER
========================================================= */

.vs-ck-content figure.table {
    position: relative;

    width: 100%;

    max-width: 100%;

    margin:
        22px
        0
        30px;

    overflow-x: auto;

    border: 1px solid var(--vc-border);

    border-radius: 12px;

    background: #ffffff;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
}


.vs-ck-content figure.table::-webkit-scrollbar {
    height: 7px;
}


.vs-ck-content figure.table::-webkit-scrollbar-track {
    background: #f4f6f8;
}


.vs-ck-content figure.table::-webkit-scrollbar-thumb {
    border-radius: 10px;

    background: #c7ced8;
}


/* =========================================================
   CKEDITOR TABLE
========================================================= */

.vs-ck-content table {
    width: 100%;

    min-width: 620px;

    margin: 0;

    border-collapse: collapse;

    table-layout: auto;

    background: #ffffff;
}


.vs-ck-content table th,
.vs-ck-content table td {
    padding:
        13px
        15px;

    border: 1px solid var(--vc-border);

    color: var(--vc-text);

    text-align: left;

    vertical-align: top;

    font-size: 13px;

    line-height: 1.55;

    overflow-wrap: break-word;
}


.vs-ck-content table th {
    background:
        linear-gradient(
            180deg,
            #f8fafc,
            #f3f6f9
        );

    color: var(--vc-dark);

    font-weight: 700;
}


.vs-ck-content table tr:nth-child(even) td {
    background: #fcfcfd;
}


.vs-ck-content table tr:hover td {
    background: #f8fafc;
}


.vs-ck-content table td:first-child {
    color: #344054;

    font-weight: 600;
}


/* =========================================================
   CKEDITOR IMAGES
========================================================= */

.vs-ck-content figure.image {
    max-width: 100%;

    margin:
        25px
        auto;
}


.vs-ck-content figure.image img,
.vs-ck-content > img {
    width: auto;

    max-width: 100%;

    height: auto;

    display: block;

    margin: auto;

    border-radius: 12px;
}


.vs-ck-content figcaption {
    margin-top: 8px;

    color: var(--vc-muted);

    text-align: center;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   CKEDITOR HORIZONTAL RULE
========================================================= */

.vs-ck-content hr {
    margin:
        30px
        0;

    border: 0;

    border-top: 1px solid #e7eaf0;
}


/* =========================================================
   DIRECTORY HEADER
========================================================= */

.vs-collection-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 25px;

    margin:
        42px
        0
        20px;
}


.vs-collection-header > div:first-child {
    min-width: 0;
}


.vs-collection-header > div:first-child > span {
    display: block;

    margin-bottom: 6px;

    color: var(--vc-accent);

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .7px;
}


.vs-collection-header h2 {
    margin:
        0
        0
        5px;

    color: var(--vc-dark);

    font-size: clamp(
        25px,
        3vw,
        34px
    );

    line-height: 1.2;
}


.vs-collection-header p {
    margin: 0;

    color: var(--vc-muted);

    font-size: 12px;
}


/* =========================================================
   COLLECTION COUNT
========================================================= */

.vs-collection-count {
    min-width: 105px;

    padding:
        13px
        17px;

    display: flex;

    flex-direction: column;

    align-items: center;

    border: 1px solid #d6dfef;

    border-radius: 12px;

    background: var(--vc-primary-soft);
}


.vs-collection-count strong {
    color: var(--vc-primary);

    font-size: 23px;

    line-height: 1;
}


.vs-collection-count span {
    margin-top: 4px;

    color: var(--vc-text);

    font-size: 10px;
}


/* =========================================================
   COLLEGE GRID
========================================================= */

.vs-collection-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   COLLEGE CARD
========================================================= */

.vs-collection-college {
    min-width: 0;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--vc-border);

    border-radius: var(--vc-radius);

    background: #ffffff;

    box-shadow:
        0 5px 20px rgba(16,24,40,.045);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.vs-collection-college:hover {
    transform: translateY(-5px);

    border-color: #c7d2e4;

    box-shadow:
        0 16px 38px rgba(16,24,40,.09);
}


/* =========================================================
   COLLEGE IMAGE
========================================================= */

.vs-collection-image {
    position: relative;

    width: 100%;

    height: 215px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background: #f5f7fa;
}


.vs-collection-image > img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .35s ease;
}


.vs-collection-college:hover
.vs-collection-image > img {
    transform: scale(1.045);
}


/* =========================================================
   LOGO IMAGE
========================================================= */

.vs-logo-image-wrap {
    width: 100%;

    height: 100%;

    padding: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #f8faff,
            #ffffff
        );
}


.vs-logo-image-wrap img {
    max-width: 150px;

    max-height: 130px;

    object-fit: contain;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.vs-college-placeholder {
    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #eef4ff,
            #f8faff
        );

    color: var(--vc-primary);

    font-size: 44px;
}


/* =========================================================
   FEATURED BADGE
========================================================= */

.vs-featured-badge {
    position: absolute;

    top: 13px;

    left: 13px;

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding:
        6px
        9px;

    border-radius: 999px;

    background: rgba(3,22,62,.88);

    color: #ffffff;

    font-size: 9px;

    font-weight: 700;

    backdrop-filter: blur(6px);
}


/* =========================================================
   COLLEGE CONTENT
========================================================= */

.vs-collection-college-content {
    flex: 1;

    padding: 20px;

    display: flex;

    flex-direction: column;
}


/* =========================================================
   COLLEGE TYPE
========================================================= */

.vs-college-type {
    width: fit-content;

    display: inline-block;

    margin-bottom: 9px;

    padding:
        5px
        8px;

    border-radius: 6px;

    background: var(--vc-accent-soft);

    color: var(--vc-accent);

    font-size: 9px;

    font-weight: 700;
}


/* =========================================================
   COLLEGE TITLE
========================================================= */

.vs-collection-college-content h3 {
    margin:
        0
        0
        9px;

    font-size: 18px;

    line-height: 1.4;
}


.vs-collection-college-content h3 a {
    color: var(--vc-dark);

    text-decoration: none;

    transition: color .2s ease;
}


.vs-collection-college-content h3 a:hover {
    color: var(--vc-accent);
}


/* =========================================================
   LOCATION
========================================================= */

.vs-college-location {
    display: flex;

    align-items: flex-start;

    gap: 6px;

    margin-bottom: 8px;

    color: var(--vc-muted);

    font-size: 11px;

    line-height: 1.5;
}


.vs-college-location i {
    flex: 0 0 auto;

    margin-top: 2px;

    color: var(--vc-accent);
}


/* =========================================================
   ESTABLISHED
========================================================= */

.vs-college-established {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 13px;

    color: var(--vc-muted);

    font-size: 10px;
}


.vs-college-established i {
    color: var(--vc-primary-mid);
}


/* =========================================================
   RANKING
========================================================= */

.vs-rank-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 7px;

    margin:
        10px
        0
        17px;
}


.vs-rank-card {
    min-width: 0;

    padding:
        9px
        6px;

    border: 1px solid #e6ebf5;

    border-radius: 8px;

    background: #fafbfe;

    text-align: center;
}


.vs-rank-card span {
    display: block;

    margin-bottom: 2px;

    color: var(--vc-muted);

    font-size: 8px;
}


.vs-rank-card strong {
    display: block;

    color: var(--vc-primary);

    font-size: 12px;
}


/* =========================================================
   VIEW BUTTON
========================================================= */

.vs-college-view-btn {
    min-height: 44px;

    margin-top: auto;

    padding:
        10px
        13px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    border-radius: 8px;

    background: var(--vc-primary);

    color: #ffffff;

    text-decoration: none;

    font-size: 11px;

    font-weight: 700;

    transition:
        background .2s ease,
        transform .2s ease;
}


.vs-college-view-btn:hover {
    background: var(--vc-primary-mid);

    color: #ffffff;
}


.vs-college-view-btn i {
    transition: transform .2s ease;
}


.vs-college-view-btn:hover i {
    transform: translateX(3px);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.vs-collection-empty {
    grid-column: 1 / -1;

    padding:
        60px
        25px;

    border: 1px dashed #cfd7e6;

    border-radius: 16px;

    background: #ffffff;

    text-align: center;
}


.vs-collection-empty-icon {
    width: 66px;

    height: 66px;

    margin:
        0
        auto
        16px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--vc-primary-soft);

    color: var(--vc-primary);

    font-size: 26px;
}


.vs-collection-empty h3 {
    margin:
        0
        0
        6px;

    color: var(--vc-dark);

    font-size: 21px;
}


.vs-collection-empty p {
    max-width: 480px;

    margin:
        0
        auto
        17px;

    color: var(--vc-muted);

    font-size: 12px;
}


.vs-empty-btn {
    min-height: 42px;

    padding:
        9px
        15px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 7px;

    background: var(--vc-primary);

    color: #ffffff;

    text-decoration: none;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1199px) {

    .vs-collection-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .vs-collection-page {
        padding:
            42px
            0
            60px;
    }


    .vs-collection-hero {
        grid-template-columns: 1fr;

        padding: 36px;
    }


    .vs-collection-hero-image {
        max-width: 520px;
    }


    .vs-collection-hero-image img {
        height: 250px;
    }


    .vs-collection-content {
        padding: 25px;
    }


    .vs-ck-content {
        font-size: 14px;
    }


    .vs-ck-content h2 {
        font-size: 24px;
    }


    .vs-ck-content h3 {
        font-size: 20px;
    }


    .vs-ck-content table {
        min-width: 600px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .vs-collection-page {
        padding:
            28px
            0
            50px;
    }


    /* HERO */

    .vs-collection-hero {
        gap: 24px;

        padding:
            28px
            22px;

        border-radius: 18px;
    }


    .vs-collection-hero h1 {
        font-size: 30px;
    }


    .vs-collection-hero p {
        font-size: 12px;
    }


    .vs-collection-hero-image img {
        height: 210px;

        border-radius: 13px;
    }


    /* CONTENT */

    .vs-collection-content {
        margin:
            22px
            0;

        padding:
            20px
            17px;

        border-radius: 14px;
    }


    .vs-ck-content {
        font-size: 14px;

        line-height: 1.7;
    }


    .vs-ck-content p {
        margin-bottom: 14px;

        font-size: 14px;

        line-height: 1.7;
    }


    .vs-ck-content h2 {
        margin-top: 28px;

        padding-bottom: 8px;

        font-size: 22px;
    }


    .vs-ck-content h3 {
        margin-top: 23px;

        font-size: 18px;
    }


    .vs-ck-content h4 {
        font-size: 16px;
    }


    .vs-ck-content ul,
    .vs-ck-content ol {
        padding-left: 20px;
    }


    .vs-ck-content blockquote {
        padding:
            15px
            16px;
    }


    /* TABLE */

    .vs-ck-content figure.table {
        margin:
            18px
            0
            24px;

        border-radius: 10px;
    }


    .vs-ck-content table {
        min-width: 560px;
    }


    .vs-ck-content table th,
    .vs-ck-content table td {
        padding:
            10px
            11px;

        font-size: 12px;
    }


    /* HEADER */

    .vs-collection-header {
        flex-direction: column;

        align-items: flex-start;

        margin-top: 32px;
    }


    .vs-collection-count {
        flex-direction: row;

        gap: 5px;

        min-width: auto;
    }


    .vs-collection-count strong {
        font-size: 17px;
    }


    /* GRID */

    .vs-collection-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }


    .vs-collection-image {
        height: 240px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .vs-collection-hero h1 {
        font-size: 26px;
    }


    .vs-collection-meta {
        flex-direction: column;

        align-items: flex-start;
    }


    .vs-collection-meta span {
        width: 100%;
    }


    .vs-collection-content {
        padding:
            17px
            14px;
    }


    .vs-ck-content {
        font-size: 13px;
    }


    .vs-ck-content p {
        font-size: 13px;
    }


    .vs-ck-content h2 {
        font-size: 20px;
    }


    .vs-ck-content h3 {
        font-size: 17px;
    }


    .vs-ck-content table {
        min-width: 520px;
    }


    .vs-ck-content table th,
    .vs-ck-content table td {
        padding: 9px;

        font-size: 11px;
    }


    .vs-ck-content blockquote {
        padding:
            13px
            14px;
    }


    .vs-collection-image {
        height: 210px;
    }


    .vs-rank-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .vs-collection-college-content {
        padding: 17px;
    }


    .vs-collection-college-content h3 {
        font-size: 16px;
    }


    .vs-college-view-btn {
        width: 100%;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .vs-collection-page {
        padding-top: 22px;
    }


    .vs-collection-hero {
        padding:
            24px
            17px;
    }


    .vs-collection-hero h1 {
        font-size: 23px;
    }


    .vs-collection-hero-image img {
        height: 180px;
    }


    .vs-collection-image {
        height: 185px;
    }


    .vs-rank-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .vs-collection-college,
    .vs-collection-image > img,
    .vs-college-view-btn,
    .vs-college-view-btn i {
        transition: none;
    }


    .vs-collection-college:hover,
    .vs-collection-college:hover
    .vs-collection-image > img {
        transform: none;
    }

}