/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Lexend", sans-serif;
    color: #101a3a;
    background: #ffffff;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeff;
}

.navbar-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 3%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.logo-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    margin-right: -17px;
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #101a3a;
}

.brand-name span {
    color: #6542f5;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 36px;

    font-size: 16px;
}

.nav-links a {
    padding: 27px 0;

    color: #17203d;

    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #6542f5;
}

.menu-btn {
    display: none;

    border: none;
    background: transparent;

    color: #101a3a;

    font-size: 25px;

    cursor: pointer;
}


/* =========================================================
   UNIVERSITIES HERO
   ========================================================= */

.universities-hero {
    min-height: 315px;

    padding: 45px 5% 35px;

    background:
        radial-gradient(
            circle at 75% 45%,
            #e7e1ff 0%,
            transparent 32%
        ),
        linear-gradient(
            120deg,
            #fafaff,
            #f2f1ff
        );

    overflow: hidden;
}

.universities-hero-container {
    width: 100%;
    max-width: 1350px;

    min-height: 235px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 0.9fr);

    align-items: center;

    gap: 45px;
}

.universities-hero-content {
    max-width: 650px;

    min-width: 0;
}

.universities-label {
    margin-bottom: 12px;

    color: #6542f5;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
}

.universities-hero h1 {
    margin-bottom: 15px;

    font-family: "Lexend", sans-serif;

    font-size: clamp(
        42px,
        4.5vw,
        60px
    );

    line-height: 1.05;

    letter-spacing: -1.8px;

    color: #101a3a;
}

.universities-hero h1 span {
    color: #6542f5;
}

.universities-hero-content p {
    max-width: 570px;

    color: #536589;

    font-size: 15px;

    line-height: 1.6;
}


/* =========================================================
   HERO IMAGE SPACE
   ========================================================= */

.universities-hero-image {
    width: 100%;

    min-height: 235px;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;

    min-width: 0;
}

.universities-hero-image img {
    width: 100%;

    max-width: 560px;

    height: auto;

    object-fit: contain;
}


/* =========================================================
   ALL UNIVERSITIES
   ========================================================= */

.universities-section {
    width: 100%;

    padding: 35px 5% 55px;

    background: #ffffff;
}

.universities-container {
    width: 100%;

    max-width: 1350px;

    margin: 0 auto;
}


/* =========================================================
   UNIVERSITIES HEADING
   ========================================================= */

.universities-heading {
    width: 100%;

    margin-bottom: 20px;

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;
}

.universities-heading-content {
    min-width: 0;
}

.universities-heading h2 {
    margin-bottom: 4px;

    font-family: "Lexend", sans-serif;

    font-size: 28px;

    letter-spacing: -0.5px;

    color: #101a3a;
}

.universities-heading p {
    max-width: 600px;

    color: #71819e;

    font-size: 13px;

    line-height: 1.55;
}


/* =========================================================
   VIEW ALL
   ========================================================= */

.view-all {
    flex-shrink: 0;

    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 10px;

    color: #6542f5;

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.view-all span {
    font-size: 17px;

    line-height: 1;
}

.view-all:hover {
    color: #5232d9;

    transform: translateX(2px);
}


/* =========================================================
   UNIVERSITY GRID
   ========================================================= */

.university-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   UNIVERSITY CARD
   ========================================================= */

.university-card {
    width: 100%;

    min-width: 0;

    min-height: 145px;

    padding: 16px;

    display: flex;

    align-items: center;

    gap: 15px;

    border: 1px solid #e0e1f0;

    border-radius: 10px;

    background: #ffffff;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.university-card:hover {
    transform: translateY(-3px);

    border-color: #d6d0ff;

    box-shadow:
        0 10px 25px rgba(80, 70, 130, 0.08);
}


/* =========================================================
   UNIVERSITY LOGO
   ========================================================= */

.university-logo {
    width: 82px;
    height: 82px;

    min-width: 82px;

    flex: 0 0 82px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.university-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   UNIVERSITY INFO
   ========================================================= */

.university-info {
    width: 100%;

    min-width: 0;

    flex: 1;

    overflow: hidden;
}

.university-info h3 {
    margin-bottom: 6px;

    color: #101a3a;

    font-family: "Lexend", sans-serif;

    font-size: 13px;

    line-height: 1.25;
}

.location {
    margin-bottom: 9px;

    color: #7b88a3;

    font-size: 9px;
}


/* =========================================================
   UNIVERSITY STATS
   ========================================================= */

.university-stats {
    width: 100%;

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 6px;
}

.university-stats span {
    max-width: 100%;

    padding: 4px 6px;

    border-radius: 10px;

    background: #f5f3ff;

    color: #6542f5;

    font-size: 7px;

    white-space: nowrap;
}

.university-stats .card-arrow {
    width: 27px;
    height: 27px;

    min-width: 27px;

    padding: 0;

    margin-left: auto;

    flex: 0 0 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #efedff;

    color: #6542f5;

    font-size: 14px;

    font-weight: 700;
}


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

footer {
    width: 100%;

    margin-top: 0;

    padding: 0 4.5%;

    background: #fafaff;

    border-top: 1px solid #ededf6;
}

.footer-container {
    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        2fr
        1.1fr
        1.1fr
        1fr;

    gap: 70px;

    padding: 58px 0 20px;
}


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

.footer-brand {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.footer-logo {
    display: flex;

    align-items: center;

    gap: 11px;
}

.footer-logo img {
    width: 32px;
    height: 32px;

    margin-right: -10px;

    object-fit: contain;

    display: block;
}

.footer-logo > span {
    color: #101a3a;

    font-size: 25px;

    font-weight: 600;

    letter-spacing: -0.4px;
}

.footer-logo .purple {
    color: #6542f5;
}

.footer-description {
    margin: 22px 0 0;

    color: #66789b;

    font-size: 15px;

    line-height: 1.75;
}


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

.footer-links {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.footer-links h3,
.footer-right h3 {
    margin: 3px 0 23px;

    color: #40577f;

    font-size: 17px;

    font-weight: 600;
}

.footer-links a {
    margin-bottom: 14px;

    color: #60769a;

    font-size: 15px;

    line-height: 1.5;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-links a:hover {
    color: #6542f5;

    transform: translateX(2px);
}


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

.footer-right {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.footer-right h3 {
    margin-bottom: 24px;
}

.social {
    display: flex;

    align-items: center;

    gap: 22px;
}

.social a {
    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.social a:hover {
    transform: translateY(-2px);

    opacity: 0.75;
}

.insta-logo {
    width: 24px;
    height: 24px;

    object-fit: contain;

    display: block;
}

.telegram-logo {
    width: 28px;
    height: 28px;

    object-fit: contain;

    display: block;
}

.email-logo {
    width: 28px;
    height: 28px;

    object-fit: contain;

    display: block;
}


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

.footer-bottom {
    width: 100%;

    max-width: 1400px;

    min-height: 76px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-top: 1px solid #e1e2f2;
}

.copyright {
    margin: 0;

    color: #7a86a1;

    font-size: 13px;
}

.made-for-students {
    margin: 0;

    display: flex;

    align-items: center;

    gap: 6px;

    color: #7a86a1;

    font-size: 13px;
}

.made-for-students span {
    color: #6542f5;

    font-size: 17px;
}