/* =========================================================
   CAMPUSNOTES - RESOURCES PAGE
   ========================================================= */


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

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

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}


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

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

/* ================= 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 {
    margin-right: -17px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

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

/* ================= NAV LINKS ================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 16px;
    color: #17203d;
}

.nav-links a {
    padding: 27px 0;
    color: #17203d;
    transition: color 0.3s ease;
}

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

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

.menu-btn {
    display: none;
}

/* Hide mobile menu button by default */

.menu-btn {
    display: none;
}


/* =========================================================
   RESOURCES HERO
   ========================================================= */

.resources-hero {
    width: 100%;

    padding: 65px 4.5% 55px;

    background:
        radial-gradient(circle at 75% 45%,
            #e7e1ff 0%,
            rgba(231, 225, 255, 0.55) 25%,
            transparent 42%),
        linear-gradient(135deg,
            #faf9ff 0%,
            #ffffff 60%,
            #f8f7ff 100%);
}

.resources-hero-container {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto;

    display: grid;

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

    align-items: center;

    gap: 55px;
}


/* ================= HERO CONTENT ================= */

.resources-hero-content {
    width: 100%;
    max-width: 600px;
}

.hero-badge {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 20px;

    padding: 7px 12px;

    border-radius: 20px;

    background: #efedff;

    color: #6542f5;

    font-size: 11px;
    font-weight: 600;
}

.badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
}

.resources-hero h1 {
    margin-bottom: 20px;

    color: #101a3a;

    font-size: clamp(44px, 4.8vw, 62px);

    line-height: 1.02;

    letter-spacing: -2.2px;

    font-weight: 700;
}

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

.resources-hero-content .hero-description {
    max-width: 560px;

    margin: 0 0 25px;

    color: #66789b;

    font-size: 16px;

    line-height: 1.65;
}


/* =========================================================
   HERO FEATURES
   ========================================================= */

.hero-features {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 30px;
    margin-top: 4px;
}

.hero-feature {
    flex: 1 1 0;

    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px 0;

    border: none;
}


.hero-feature:first-child {
    padding-left: 0;
}


.hero-feature:last-child {
    border-right: none;
}


/* ================= FEATURE ICON ================= */

.hero-feature-icon {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

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

    border-radius: 11px;

    background: #efedff;

    overflow: hidden;
}


.hero-feature-icon img {
    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    display: block;

    object-fit: contain;
}


/* ================= FEATURE CONTENT ================= */

.hero-feature-content {
    flex: 1;

    min-width: 0;
}


.hero-feature strong {
    display: block;

    margin-bottom: 5px;

    color: #40577f;

    font-size: 16px;

    font-weight: 700;

    white-space: nowrap;
}

.hero-feature small {
    display: block;

    color: #71819e;

    font-size: 13px;

    line-height: 1.4;

    white-space: nowrap;
}
/* =========================================================
   HERO IMAGE
   ========================================================= */

.resources-hero-image {
    width: 100%;
    height: 300px;

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

    overflow: hidden;
}

.resources-hero-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


/* =========================================================
   RESOURCE SECTION
   ========================================================= */

.resource-section {
    width: 100%;

    padding: 35px 4.5% 60px;

    background: #ffffff;
}

.resource-grid {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto;

    display: grid;

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

    gap: 24px;
}


/* =========================================================
   RESOURCE CARD
   ========================================================= */

.resource-card {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 196px;

    padding: 25px;

    display: flex;
    align-items: flex-start;

    gap: 22px;

    background: #ffffff;

    border: 1px solid #e1e3f1;

    border-radius: 13px;

    overflow: hidden;

    box-shadow:
        0 2px 8px rgba(40, 45, 90, 0.02);

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

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

    border-color: #d9d5ff;

    box-shadow:
        0 12px 28px rgba(60, 55, 120, 0.08);
}


/* =========================================================
   RESOURCE CARD ICON
   ========================================================= */

.feature-icon {
    width: 84px;
    height: 84px;

    flex: 0 0 84px;

    min-width: 0;

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

    overflow: hidden;

    border-radius: 18px;
}

.feature-icon img {
    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    display: block;

    object-fit: contain;
}


/* =========================================================
   RESOURCE CONTENT
   ========================================================= */

.resource-content {
    flex: 1 1 auto;

    min-width: 0;

    padding-top: 5px;
}

.resource-content h2 {
    margin: 0 0 11px;

    color: #101a3a;

    font-size: 21px;

    line-height: 1.25;

    font-weight: 700;
}

.resource-content p {
    max-width: 360px;

    margin: 0 0 17px;

    color: #66789b;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   RESOURCE BUTTON
   ========================================================= */

.resource-btn,
.special-btn {
    width: fit-content;

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

    gap: 8px;

    padding: 9px 14px;

    border-radius: 8px;

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

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

.resource-btn {
    background: #f0efff;

    color: #5540c9;
}

.resource-btn:hover {
    background: #e7e4ff;

    transform: translateX(2px);
}

.resource-btn span,
.special-btn span {
    font-size: 16px;

    line-height: 1;
}


/* =========================================================
   SPECIAL CARD
   ========================================================= */

.special-card {
    background: linear-gradient(135deg, #eee9ff 0%, #e7e0ff 100%);

    border-color: #ddd6ff;
}

.special-badge {
    position: absolute;

    top: 15px;
    right: 18px;

    padding: 5px 9px;

    border-radius: 20px;

    background: #eeeaff;

    color: #6542f5;

    font-size: 9px;

    font-weight: 600;
}

.special-card .feature-icon {
    margin-top: 7px;
}

.special-btn {
    background: #6542f5;

    color: #ffffff;
}

.special-btn:hover {
    background: #5735e5;

    transform: translateX(2px);
}

.moon-decoration {
    position: absolute;

    right: 20px;
    bottom: 14px;

    color: #d8d0ff;

    font-size: 22px;

    pointer-events: none;
}


/* =========================================================
   UNIVERSITY RESOURCES
   ========================================================= */

.university-resources {
    width: 100%;

    padding: 0 4.5% 60px;

    background: #ffffff;
}

.university-resource-container {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto;

    padding: 35px 30px 30px;

    background:
        linear-gradient(135deg,
            #fafaff,
            #f8f7ff);

    border: 1px solid #e5e3f4;

    border-radius: 15px;
}


/* =========================================================
   UNIVERSITY HEADING
   ========================================================= */

.university-heading {
    width: 100%;

    margin-bottom: 22px;
}

.university-heading-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 12px;
}

.university-badge {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 7px 11px;

    border-radius: 20px;

    background: #eeecff;

    color: #6542f5;

    font-size: 11px;

    font-weight: 600;
}

.university-badge span {
    font-size: 13px;
}

.view-all {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #5547bf;

    font-size: 12px;

    font-weight: 600;

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

.view-all:hover {
    color: #6542f5;

    transform: translateX(2px);
}

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

    line-height: 1;
}

.university-heading h2 {
    margin-bottom: 8px;

    color: #101a3a;

    font-size: 27px;

    line-height: 1.2;

    font-weight: 700;
}

.university-heading p {
    margin-bottom: 0;

    color: #71819e;

    font-size: 13px;

    line-height: 1.55;
}


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

.university-resource-grid {
    display: grid;

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

    gap: 14px;
}


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

.university-resource-card {
    position: relative;

    min-width: 0;
    min-height: 150px;

    padding: 17px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e2e2f0;

    border-radius: 12px;

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

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

    border-color: #d7d2ff;

    box-shadow:
        0 8px 20px rgba(60, 55, 120, 0.07);
}


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

.university-resource-logo {
    width: 52px;
    height: 52px;

    margin: 0 auto 9px;

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

    overflow: hidden;
}

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

    display: block;

    object-fit: contain;
}


/* =========================================================
   UNIVERSITY INFORMATION
   ========================================================= */

.university-resource-info {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.university-resource-info h3 {
    margin-bottom: 4px;

    color: #101a3a;

    font-size: 14px;

    line-height: 1.3;

    font-weight: 700;
}

.university-resource-info p {
    max-width: 175px;

    margin-left: auto;
    margin-right: auto;

    color: #71819e;

    font-size: 10px;

    line-height: 1.45;

    text-align: center;
}


/* =========================================================
   UNIVERSITY ARROW
   ========================================================= */

.university-arrow {
    position: absolute;

    right: 17px;
    bottom: 16px;

    color: #4c55b9;

    font-size: 21px;

    line-height: 1;

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

.university-resource-card:hover .university-arrow {
    color: #6542f5;

    transform: translateX(3px);
}


/* =========================================================
   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;
}