
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #18202a;
    line-height: 1.6;

    opacity: 0;
    animation: pageEnter 0.45s ease forwards;
}


a {
    text-decoration: none;
    color: inherit;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


button {
    font-family: inherit;
}


/* =====================================================
   PAGE TRANSITION
===================================================== */

body.page-leaving {
    animation: pageLeave 0.25s ease forwards;
}


@keyframes pageEnter {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


@keyframes pageLeave {

    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-8px);
    }

}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 6%;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #e5e8ed;

    backdrop-filter: blur(12px);
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 20px;
    font-weight: 800;

    white-space: nowrap;
}


.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 10px;

    background: #172b4d;
    color: white;

    font-size: 13px;
    font-weight: 800;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}


.nav-link {
    padding: 8px 9px;

    border-radius: 8px;

    color: #505a66;

    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.nav-link:hover {
    background: #eef2f7;
    color: #172b4d;
}


.nav-link.active {
    background: #172b4d;
    color: white;
}


.menu-button {
    display: none;

    border: none;
    background: transparent;

    font-size: 25px;

    cursor: pointer;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;

    background-image:
        url("../assets/backgrounds/bg1.jpg");

    background-size: cover;
    background-position: center;

    transition:
        background-image 1s ease-in-out,
        background-position 0.5s ease;
}


.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(9, 20, 38, 0.88),
            rgba(9, 20, 38, 0.55),
            rgba(9, 20, 38, 0.20)
        );
}


.hero-content {
    position: relative;
    z-index: 2;

    width: min(900px, 88%);

    margin: auto;
}


.hero-small-text {
    margin-bottom: 15px;

    color: #d9e6ff;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
}


.hero h1 {
    max-width: 800px;

    color: white;

    font-size: clamp(42px, 7vw, 78px);

    line-height: 1.05;

    margin-bottom: 25px;
}


.hero h1 span {
    color: #8db8ff;
}


.hero-description {
    max-width: 680px;

    color: #edf2f8;

    font-size: 18px;

    margin-bottom: 35px;
}


.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* =====================================================
   BUTTONS
===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    border-radius: 8px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.btn:hover {
    transform: translateY(-2px);
}


.btn-primary {
    background: #172b4d;
    color: white;

    box-shadow: 0 7px 20px rgba(23, 43, 77, 0.18);
}


.btn-primary:hover {
    background: #203d6b;
}


.btn-secondary {
    background: white;
    color: #172b4d;
}


.btn-secondary:hover {
    background: #edf2f8;
}


.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =====================================================
   GENERAL SECTIONS
===================================================== */

.section {
    width: min(1180px, 90%);

    margin: auto;

    padding: 80px 0;
}


.section-heading {
    max-width: 700px;

    margin-bottom: 45px;
}


.section-label {
    margin-bottom: 10px;

    color: #4169a1;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
}


.section-heading h2 {
    margin-bottom: 12px;

    font-size: clamp(28px, 4vw, 42px);

    line-height: 1.15;
}


.section-heading p {
    color: #697482;
}


/* =====================================================
   FEATURE CARDS
===================================================== */

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


.feature-card {
    display: block;

    padding: 28px;

    background: white;

    border: 1px solid #e5e9ef;

    border-radius: 14px;

    box-shadow:
        0 8px 25px rgba(20, 35, 55, 0.05);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.feature-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 35px rgba(20, 35, 55, 0.10);
}


.feature-icon {
    margin-bottom: 18px;

    font-size: 35px;
}


.feature-card h3 {
    margin-bottom: 10px;

    font-size: 20px;
}


.feature-card p {
    margin-bottom: 20px;

    color: #697482;

    font-size: 14px;
}


.card-link {
    color: #315a96;

    font-size: 13px;
    font-weight: 800;
}


/* =====================================================
   ABOUT
===================================================== */

.about-section {
    padding: 100px 8%;

    background: #172b4d;

    color: white;
}


.about-content {
    max-width: 850px;

    margin: auto;

    text-align: center;
}


.about-section .section-label {
    color: #9dbcf0;
}


.about-section h2 {
    margin-bottom: 20px;

    font-size: clamp(32px, 5vw, 52px);
}


.about-section p {
    margin-bottom: 15px;

    color: #d9e2ef;
}


.about-section .btn {
    margin-top: 20px;

    background: white;
    color: #172b4d;
}


/* =====================================================
   PAGE HERO
===================================================== */

.page-hero {
    position: relative;

    min-height: 330px;

    display: flex;
    align-items: center;

    background-image:
        url("../assets/backgrounds/bg2.jpg");

    background-size: cover;
    background-position: center;
}


.page-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(9, 20, 38, 0.88),
            rgba(9, 20, 38, 0.55)
        );
}


.page-hero-content {
    position: relative;

    width: min(1180px, 90%);

    margin: auto;

    color: white;
}


.page-hero .section-label {
    color: #a9c5ef;
}


.page-hero h1 {
    margin-bottom: 15px;

    font-size: clamp(38px, 6vw, 60px);
}


.page-hero p:last-child {
    max-width: 650px;

    color: #e0e7f0;

    font-size: 17px;
}


/* =====================================================
   RESOURCE CARDS
===================================================== */

.resource-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.resource-card {
    padding: 28px;

    background: white;

    border: 1px solid #e4e8ee;

    border-radius: 14px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.resource-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 30px rgba(20, 35, 55, 0.08);
}


.resource-icon {
    display: block;

    margin-bottom: 15px;

    font-size: 32px;
}


.resource-card h3 {
    margin-bottom: 10px;
}


.resource-card p {
    min-height: 70px;

    margin-bottom: 20px;

    color: #697482;

    font-size: 14px;
}


.outline-button {
    padding: 9px 15px;

    border: 1px solid #b9c5d4;

    border-radius: 7px;

    background: white;

    color: #31445f;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.outline-button:hover {
    background: #172b4d;
    color: white;
}


/* =====================================================
   PROJECT CARDS
===================================================== */

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.project-card {
    padding: 28px;

    background: white;

    border: 1px solid #e4e8ee;

    border-radius: 14px;
}


.project-status {
    display: inline-block;

    margin-bottom: 15px;

    padding: 5px 9px;

    border-radius: 20px;

    background: #edf3fb;

    color: #315a96;

    font-size: 11px;
    font-weight: 800;
}


.project-card h3 {
    margin-bottom: 12px;
}


.project-card p {
    margin-bottom: 20px;

    color: #697482;
}


.tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 22px;
}


.tags span {
    padding: 5px 9px;

    border-radius: 5px;

    background: #f0f2f5;

    color: #596572;

    font-size: 11px;
    font-weight: 700;
}


/* =====================================================
   OPPORTUNITIES
===================================================== */

.opportunity-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.opportunity-card {
    padding: 28px;

    background: white;

    border: 1px solid #e4e8ee;

    border-radius: 14px;
}


.opportunity-category {
    display: inline-block;

    margin-bottom: 15px;

    color: #4169a1;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
}


.opportunity-card h3 {
    margin-bottom: 12px;
}


.opportunity-card p {
    margin-bottom: 20px;

    color: #697482;
}


.opportunity-details {
    display: flex;
    flex-direction: column;

    gap: 7px;

    margin-bottom: 22px;

    color: #596572;

    font-size: 13px;
}


/* =====================================================
   ANNOUNCEMENTS
===================================================== */

.announcement-list {
    max-width: 900px;

    margin: auto;

    display: flex;
    flex-direction: column;

    gap: 18px;
}


.announcement-card {
    display: flex;
    gap: 22px;

    padding: 25px;

    background: white;

    border: 1px solid #e4e8ee;

    border-radius: 14px;
}


.announcement-date {
    min-width: 65px;
    height: 65px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #172b4d;
    color: white;
}


.announcement-date strong {
    font-size: 23px;
    line-height: 1;
}


.announcement-date span {
    font-size: 10px;
    font-weight: 800;
}


.announcement-label {
    color: #4169a1;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}


.announcement-content h2 {
    margin: 5px 0 8px;

    font-size: 21px;
}


.announcement-content p {
    color: #697482;
}


/* =====================================================
   PROFILE
===================================================== */

.profile-preview {
    max-width: 700px;

    margin: auto;

    padding: 45px;

    text-align: center;

    background: white;

    border: 1px solid #e4e8ee;

    border-radius: 16px;

    box-shadow:
        0 12px 35px rgba(20, 35, 55, 0.06);
}


.profile-avatar {
    width: 90px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #172b4d;
    color: white;

    font-size: 20px;
    font-weight: 800;
}


.profile-preview > p {
    margin: 10px auto 30px;

    max-width: 500px;

    color: #697482;
}


.profile-info {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;

    margin-bottom: 30px;

    text-align: left;
}


.profile-info div {
    padding: 15px;

    border-radius: 8px;

    background: #f5f7fa;
}


.profile-info span {
    display: block;

    margin-bottom: 4px;

    color: #7a8591;

    font-size: 11px;
    font-weight: 700;
}


.profile-info strong {
    font-size: 14px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    padding: 45px 7% 20px;

    background: #101c2f;

    color: white;
}


.footer-content {
    display: flex;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;
}


.footer h3 {
    margin-bottom: 8px;
}


.footer p {
    color: #aeb9c8;
}


.footer-links {
    display: flex;
    flex-wrap: wrap;

    gap: 18px;
}


.footer-links a {
    color: #cbd4df;

    font-size: 13px;
}


.footer-links a:hover {
    color: white;
}


.copyright {
    padding-top: 18px;

    border-top: 1px solid rgba(255,255,255,0.12);

    text-align: center;

    font-size: 12px;
}


/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

@media (max-width: 1000px) {

    .nav-links {
        gap: 0;
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 7px 6px;
        font-size: 12px;
    }

    .feature-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .resource-grid,
    .project-grid,
    .opportunity-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 760px) {

    .navbar {
        padding: 12px 5%;
    }


    .menu-button {
        display: block;
    }


    .nav-links {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        padding: 10px;

        background: white;

        border-bottom: 1px solid #e5e8ed;

        box-shadow:
            0 12px 25px rgba(0,0,0,0.08);
    }


    .nav-links.show {
        display: flex;
    }


    .nav-link {
        padding: 13px;
    }


    .hero {
        min-height: 580px;
    }


    .hero-content {
        width: 88%;
    }


    .hero h1 {
        font-size: 48px;
    }


    .feature-grid,
    .resource-grid,
    .project-grid,
    .opportunity-grid {
        grid-template-columns: 1fr;
    }


    .profile-info {
        grid-template-columns: 1fr;
    }


    .footer-content {
        flex-direction: column;
    }

}


@media (max-width: 480px) {

    .hero h1 {
        font-size: 39px;
    }


    .hero-description {
        font-size: 16px;
    }


    .hero-buttons {
        flex-direction: column;
    }


    .hero-buttons .btn {
        width: 100%;
    }


    .section {
        padding: 60px 0;
    }


    .announcement-card {
        flex-direction: column;
    }


    .announcement-date {
        width: 65px;
    }


    .profile-preview {
        padding: 28px 20px;
    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

}
/* =========================
   PROFILE FORM
========================= */

.profile-form-container {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}


/* PROFILE HEADER */

.profile-form-header {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.profile-form-header .profile-avatar {
    flex-shrink: 0;
}

.profile-form-header h2 {
    margin-bottom: 8px;
}

.profile-form-header p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}


/* FORM SECTIONS */

.form-section {
    padding: 25px 0;
    border-bottom: 1px solid #e5e7eb;
}

.form-section-title {
    margin-bottom: 22px;
}

.form-section-title h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.form-section-title p {
    margin: 0;
    color: #777;
    font-size: 14px;
}


/* FORM ROW */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


/* FORM GROUP */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 9px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 12px;
}


/* SAVE BUTTON */

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 28px;
}

.profile-form-actions button {
    padding: 13px 28px;
    border: none;
    border-radius: 9px;
    font-weight: 600;
    cursor: pointer;
}
.profile-form-actions button {
    background: #333;
    color: white;
    transition: background 0.2s, transform 0.2s;
}

.profile-form-actions button:hover {
    background: #555;
    transform: translateY(-1px);
}

.profile-form-actions button:active {
    transform: translateY(0);
}


/* MOBILE */

@media (max-width: 700px) {

    .profile-form-container {
        padding: 25px 20px;
    }

    .profile-form-header {
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .profile-form-actions {
        justify-content: stretch;
    }

    .profile-form-actions button {
        width: 100%;
    }

}
/* GOOGLE SIGN-IN BUTTON */

.google-signin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-left: auto;
    padding: 12px 20px;

    background: #4285F4;
    color: white;

    border: none;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;

    transition: background 0.2s, transform 0.2s;
}

.google-signin-button:hover {
    background: #3367D6;
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .profile-form-header {
        flex-wrap: wrap;
    }

    .google-signin-button {
        margin-left: 0;
        width: 100%;
    }
};
.google-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    background: white;
    color: #4285F4;

    border-radius: 50%;

    font-size: 17px;
    font-weight: 700;
}
/* =========================
   AUTH STATUS
========================= */

.auth-status {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 12px;
    border-radius: 20px;
    background: #f1f1f1;
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

.auth-status.signed-in {
    background: #e8f7ee;
    color: #16803c;
}

/* =====================================================
   PROJECT DETAILS MODAL
===================================================== */

.project-modal {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.6);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 9999;
}

.project-modal-content {
    position: relative;

    width: 100%;
    max-width: 600px;

    max-height: 85vh;
    overflow-y: auto;

    background: white;

    border-radius: 16px;

    padding: 30px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.project-modal-content h2 {
    margin-top: 15px;
    margin-bottom: 15px;
}

.project-modal-description {
    line-height: 1.7;
}

.project-modal-content h4 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.project-modal-close {
    position: absolute;

    top: 12px;
    right: 15px;

    border: none;
    background: none;

    font-size: 30px;

    cursor: pointer;

    line-height: 1;
}

.project-no-link {
    margin-top: 15px;
    opacity: 0.7;
}

.resource-search {
    margin: 20px 0;
}

.resource-search input {
    width: 100%;
    max-width: 500px;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

/* ==========================================
   HOME DASHBOARD
========================================== */

.home-dashboard-section {
    margin-top: 60px;
}


.home-dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}


.home-dashboard-heading h2 {
    margin: 5px 0 0;
}


.home-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


.home-preview-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}


.home-preview-icon {
    font-size: 28px;
    flex-shrink: 0;
}


.home-preview-card h3 {
    margin: 0 0 8px;
}


.home-preview-card p {
    margin: 0 0 8px;
    line-height: 1.6;
}


.home-preview-card small {
    opacity: 0.7;
}


.home-empty-state {
    padding: 25px;
    text-align: center;
    background: white;
    border-radius: 12px;
}


.home-course-banner {
    margin-top: 60px;
    padding: 35px;
    border-radius: 16px;
    background: #f5f7fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}


.home-course-banner h2 {
    margin: 5px 0 10px;
}


.home-course-banner p {
    margin-bottom: 0;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .home-preview-grid {
        grid-template-columns: 1fr;
    }


    .home-dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }


    .home-course-banner {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* =====================================================
   GLOBAL SEARCH
===================================================== */

.global-search {
    display: flex;
    align-items: center;
    width: 220px;
    height: 40px;

    margin-left: 15px;

    background: #f5f7fb;
    border: 1px solid #dfe4eb;
    border-radius: 9px;

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        width 0.2s ease;
}


.global-search:focus-within {
    border-color: #4169a1;

    box-shadow:
        0 0 0 3px rgba(65, 105, 161, 0.10);
}


.global-search input {
    width: 100%;
    height: 100%;

    padding: 0 10px;

    border: none;
    outline: none;

    background: transparent;

    color: #18202a;

    font-family: inherit;
    font-size: 13px;
}


.global-search input::placeholder {
    color: #8993a0;
}


.global-search button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 100%;

    flex-shrink: 0;

    border: none;

    background: transparent;

    cursor: pointer;

    font-size: 16px;

    transition:
        background 0.2s ease;
}


.global-search button:hover {
    background: #e9eef5;
}


/* =====================================================
   SEARCH RESPONSIVENESS
===================================================== */

@media (max-width: 1200px) {

    .global-search {
        width: 190px;
    }

}


@media (max-width: 1000px) {

    .global-search {
        width: 170px;
        margin-left: 8px;
    }

    .global-search input {
        font-size: 12px;
    }

}


/* =====================================================
   MOBILE NAVBAR + SEARCH
===================================================== */

@media (max-width: 760px) {

    .navbar {
        position: sticky;
        padding: 12px 5%;
    }


    .logo {
        flex-shrink: 0;
    }


    .global-search {
        width: auto;
        flex: 1;

        margin-left: 12px;
        margin-right: 10px;

        max-width: 260px;
    }


    .global-search input {
        font-size: 13px;
    }


    .menu-button {
        flex-shrink: 0;
    }


    .nav-links {
        z-index: 1001;
    }

}


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 480px) {

    .navbar {
        padding: 10px 4%;
    }


    .logo {
        gap: 7px;
        font-size: 17px;
    }


    .logo-icon {
        width: 36px;
        height: 36px;

        border-radius: 8px;

        font-size: 11px;
    }


    .global-search {
        height: 36px;

        margin-left: 8px;
        margin-right: 7px;
    }


    .global-search input {
        padding: 0 8px;

        font-size: 12px;
    }


    .global-search button {
        width: 35px;

        font-size: 14px;
    }


    .menu-button {
        font-size: 23px;
    }

}


/* =====================================================
   VERY SMALL PHONES
===================================================== */

@media (max-width: 360px) {

    .logo > span:last-child {
        display: none;
    }


    .global-search {
        margin-left: 8px;
    }

}

/* =====================================================
   SEARCH PAGE
===================================================== */

.search-page-section {
    margin-top: 35px;
}

.search-page-box {
    display: flex;
    gap: 12px;
    max-width: 850px;
    margin: 0 auto;
}

.search-page-box input {
    flex: 1;

    min-width: 0;

    padding: 15px 17px;

    border: 1px solid #dfe4eb;
    border-radius: 9px;

    outline: none;

    background: white;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.search-page-box input:focus {
    border-color: #4169a1;

    box-shadow:
        0 0 0 3px rgba(65, 105, 161, 0.10);
}

.search-results-section {
    max-width: 1100px;

    margin: 45px auto 80px;
}

.search-status {
    margin-bottom: 30px;

    color: #687281;

    font-size: 14px;
}

.search-result-group {
    margin-bottom: 45px;
}

.search-group-heading {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;
}

.search-group-heading span {
    font-size: 24px;
}

.search-group-heading h2 {
    margin: 0;
}

.search-result-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.search-result-card {
    display: flex;
    gap: 16px;

    padding: 22px;

    background: white;

    border: 1px solid #e7ebf0;

    border-radius: 12px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.05);
}

.search-result-icon {
    flex-shrink: 0;

    font-size: 28px;
}

.search-result-card h3 {
    margin:
        0 0 8px;
}

.search-result-card p {
    margin:
        0 0 10px;

    line-height: 1.6;

    color: #5f6875;
}

.search-result-card small {
    display: block;

    margin-bottom: 12px;

    color: #7b8490;
}

.search-result-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.search-empty-state {
    padding: 55px 25px;

    text-align: center;

    background: white;

    border-radius: 12px;

    border: 1px solid #e7ebf0;
}

.search-empty-icon {
    margin-bottom: 12px;

    font-size: 40px;
}

.search-empty-state h3 {
    margin-bottom: 8px;
}

.search-empty-state p {
    margin: 0;

    color: #687281;
}


/* =====================================================
   SEARCH MOBILE
===================================================== */

@media (max-width: 760px) {

    .search-page-box {
        flex-direction: column;
    }

    .search-page-box button {
        width: 100%;
    }

    .search-result-grid {
        grid-template-columns: 1fr;
    }

    .search-result-card {
        padding: 18px;
    }

}


@media (max-width: 480px) {

    .search-results-section {
        margin-top: 30px;
    }

    .search-result-card {
        flex-direction: column;
    }

}
