:root {

    --primary: #1F4296;
    --primary-dark: #23306C;

    --background: #EEF3FF;
    --surface: #FFFFFF;

    --text: #24324B;
    --muted: #7B8798;

    --border: #E1E7F0;

}


* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    min-height: 100vh;

    display: flex;
    flex-direction: column;

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

    background: var(--background);

    color: var(--text);

    line-height: 1.6;

}


/* =========================
   HEADER
========================= */

header {

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    box-shadow:
        0 4px 20px rgba(0,0,0,.08);

}


.header-container {

    max-width: 1100px;

    margin: auto;

    padding: 18px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


.header-brand {

    display: flex;

    align-items: center;

    gap: 18px;

    min-width: 0;

}


.logo-top {

    width: 64px;
    height: 64px;

    object-fit: contain;

    flex-shrink: 0;

}


.header-title {

    min-width: 0;

}


.header-title h2 {

    color: white;

    font-size: 1.15rem;

    font-weight: 700;

}


.header-title p {

    color: rgba(255,255,255,.82);

    font-size: .9rem;

    margin-top: 2px;

}


/* =========================
   BACK
========================= */

.back-button {

    display: inline-flex;

    align-items: center;

    flex-shrink: 0;

    padding: 9px 15px;

    background: rgba(255,255,255,.08);

    border: 1px solid rgba(255,255,255,.35);

    border-radius: 10px;

    color: white;

    text-decoration: none;

    font-size: .9rem;

    font-weight: 600;

    transition: .2s ease;

}


.back-button:hover {

    background: rgba(255,255,255,.16);

    transform: translateX(-2px);

}


/* =========================
   MAIN
========================= */

.container {

    width: 100%;

    max-width: 1100px;

    margin: auto;

    padding: 50px 20px 70px;

    flex: 1;

}


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

.page-heading {

    margin-bottom: 22px;

}


.page-heading h1 {

    color: var(--primary-dark);

    font-size: 2rem;

    font-weight: 700;

}


/* =========================
   TABS
========================= */

.research-tabs {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-bottom: 25px;

}


.research-tab {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 9px 17px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

    color: var(--muted);

    text-decoration: none;

    font-size: .9rem;

    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;

}


.research-tab:hover {

    border-color:
        rgba(31,66,150,.3);

    color: var(--primary);

    transform: translateY(-1px);

}


.research-tab.active {

    background: var(--primary);

    border-color: var(--primary);

    color: white;

}


/* =========================
   RESEARCH LIST
========================= */

.research-list {

    display: grid;

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

    gap: 20px;

}


/* =========================
   RESEARCH CARD
========================= */

.research-card {

    display: block;

    padding: 22px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 16px;

    color: var(--text);

    text-decoration: none;

    box-shadow:
        0 5px 18px rgba(35,48,108,.05);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;

}


.research-card:hover {

    transform: translateY(-4px);

    border-color:
        rgba(31,66,150,.3);

    box-shadow:
        0 12px 28px rgba(35,48,108,.12);

}


.research-card:active {

    transform: translateY(-1px);

}


/* =========================
   CARD CONTENT
========================= */

.research-student {

    display: block;

    margin-bottom: 8px;

    color: var(--primary);

    font-size: .78rem;

    font-weight: 600;

}


.research-card h2 {

    margin-bottom: 8px;

    color: var(--primary-dark);

    font-size: 1.1rem;

    line-height: 1.4;

}


.research-card p {

    margin-bottom: 16px;

    color: var(--muted);

    font-size: .88rem;

}


.research-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 8px 18px;

    color: var(--muted);

    font-size: .78rem;

    font-weight: 500;

}


/* =========================
   ERROR
========================= */

.load-error {

    grid-column: 1 / -1;

    padding: 40px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 16px;

    text-align: center;

}


.load-error h2 {

    color: var(--primary-dark);

    font-size: 1.2rem;

    margin-bottom: 8px;

}


.load-error p {

    color: var(--muted);

    font-size: .9rem;

}


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

footer {

    width: 100%;

    margin-top: auto;

    padding: 45px 20px;

    background: var(--surface);

    border-top: 1px solid var(--border);

    text-align: center;

}


.footer-logo {

    width: 230px;

    max-width: 80%;

    height: auto;

    margin-bottom: 18px;

}


footer p {

    color: #6B7280;

    font-size: .9rem;

    line-height: 1.8;

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .header-container {

        padding: 16px;

        gap: 14px;

    }


    .logo-top {

        width: 54px;
        height: 54px;

    }


    .header-title h2 {

        font-size: 1rem;

    }


    .header-title p {

        font-size: .8rem;

    }


    .back-button {

        padding: 8px 12px;

        font-size: .82rem;

    }


    .container {

        padding:
            35px 16px 55px;

    }


    .page-heading h1 {

        font-size: 1.6rem;

    }


    .research-tabs {

        gap: 8px;

    }


    .research-tab {

        padding: 8px 14px;

        font-size: .82rem;

    }


    .research-list {

        grid-template-columns: 1fr;

        gap: 14px;

    }


    .research-card {

        padding: 18px;

        border-radius: 14px;

    }


    .research-card h2 {

        font-size: 1rem;

    }


    .footer-logo {

        width: 190px;

    }

}