/* =========================================================
   TEACHER ED LEARNING HUB
   TEACHER TOOLS
   ========================================================= */


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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f6f8fc;
    color: #14213d;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
}


/* =========================
   VARIABLES
   ========================= */

:root {

    --primary: #315bea;
    --primary-dark: #123d8d;

    --gold: #f5b700;

    --text: #14213d;
    --muted: #667085;

    --background: #f6f8fc;
    --white: #ffffff;

    --border: #e5e9f2;

    --shadow:
        0 10px 30px rgba(18, 61, 141, 0.07);

    --radius: 18px;

}


/* =========================
   CONTAINER
   ========================= */

.container {

    width: min(
        1120px,
        calc(100% - 40px)
    );

    margin: 0 auto;

}


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

.site-header {

    background: #ffffff;

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

    position: sticky;

    top: 0;

    z-index: 100;

}


.header-inner {

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


/* BRAND */

.brand {

    display: flex;

    align-items: center;

    gap: 12px;

}


.brand-logo {

    width: 50px;

    height: 50px;

    object-fit: contain;

}


.brand-text strong {

    display: block;

    color: var(--primary-dark);

    font-size: 17px;

    font-weight: 800;

}


.brand-text span {

    display: block;

    color: var(--muted);

    font-size: 12px;

    font-weight: 600;

}


/* =========================
   NAVIGATION
   ========================= */

.main-navigation {

    display: flex;

    align-items: center;

}


.nav-home {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 16px;

    border-radius: 10px;

    color: var(--primary-dark);

    font-size: 14px;

    font-weight: 700;

    transition: 0.2s ease;

}


.nav-home:hover {

    background: #eef3ff;

    color: var(--primary);

}


.nav-home svg {

    width: 18px;

    height: 18px;

}


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

.tools-hero {

    padding: 55px 0 35px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f6f8fc 100%
        );

}


.tools-hero-content {

    display: flex;

    align-items: center;

    gap: 25px;

    padding: 38px;

    background: #ffffff;

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

    border-radius: 22px;

    box-shadow: var(--shadow);

}


/* HERO LOGO */

.hero-logo {

    width: 95px;

    height: 95px;

    flex: 0 0 95px;

    display: grid;

    place-items: center;

}


.hero-logo img {

    width: 95px;

    height: 95px;

    object-fit: contain;

}


/* EYEBROW */

.eyebrow {

    display: inline-block;

    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.12em;

}


/* HERO TITLE */

.tools-hero h1 {

    margin-top: 5px;

    color: var(--primary-dark);

    font-size:
        clamp(32px, 5vw, 48px);

    line-height: 1.1;

}


.tools-hero p {

    margin-top: 10px;

    color: var(--muted);

    font-size: 16px;

}


/* =========================
   TOOLS SECTION
   ========================= */

.tools-section {

    padding: 30px 0 80px;

}


/* SECTION HEADING */

.section-heading {

    text-align: center;

    max-width: 700px;

    margin:
        0 auto 35px;

}


.section-heading h2 {

    margin-top: 6px;

    color: var(--primary-dark);

    font-size: 32px;

    line-height: 1.2;

}


.section-heading p {

    margin-top: 10px;

    color: var(--muted);

    font-size: 15px;

}


/* =========================
   TOOL GRID
   ========================= */

.tools-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;

}


/* =========================
   TOOL CARD
   ========================= */

.tool-card {

    display: flex;

    flex-direction: column;

    min-height: 285px;

    background: #ffffff;

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

    border-radius: var(--radius);

    padding: 23px;

    box-shadow: var(--shadow);

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

}


.tool-card:hover {

    transform:
        translateY(-5px);

    border-color:
        rgba(49, 91, 234, 0.25);

    box-shadow:
        0 16px 38px
        rgba(18, 61, 141, 0.12);

}


/* =========================
   CARD TOP
   ========================= */

.tool-card-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

}


/* ICON */

.tool-icon {

    width: 54px;

    height: 54px;

    display: grid;

    place-items: center;

    border-radius: 14px;

    background: #eef3ff;

    color: var(--primary);

}


.tool-icon svg {

    width: 26px;

    height: 26px;

}


/* STATUS */

.tool-status {

    display: inline-flex;

    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

    background: #eaf8ef;

    color: #21864b;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.06em;

}


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

.tool-content {

    flex: 1;

    padding-top: 20px;

}


.tool-category {

    color: var(--primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.1em;

}


.tool-content h3 {

    margin-top: 6px;

    color: var(--text);

    font-size: 20px;

    line-height: 1.3;

}


.tool-content p {

    margin-top: 9px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.65;

}


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

.tool-card-footer {

    margin-top: 22px;

}


.tool-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    width: 100%;

    padding: 11px 16px;

    border-radius: 11px;

    background: var(--primary);

    color: #ffffff;

    font-size: 14px;

    font-weight: 750;

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

}


.tool-button:hover {

    background:
        var(--primary-dark);

    transform:
        translateY(-1px);

}


.tool-button svg {

    width: 17px;

    height: 17px;

}


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

.tools-empty,
.tools-error {

    grid-column:
        1 / -1;

    text-align: center;

    background: #ffffff;

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

    border-radius: 18px;

    padding: 55px 25px;

}


.empty-icon {

    width: 58px;

    height: 58px;

    margin:
        0 auto 15px;

    display: grid;

    place-items: center;

    border-radius: 15px;

    background: #eef3ff;

    color: var(--primary);

}


.empty-icon svg {

    width: 27px;

    height: 27px;

}


.tools-empty h3,
.tools-error h3 {

    color: var(--primary-dark);

    font-size: 20px;

}


.tools-empty p,
.tools-error p {

    margin-top: 6px;

    color: var(--muted);

    font-size: 14px;

}


/* =========================
   LOADING
   ========================= */

.tools-loading {

    grid-column:
        1 / -1;

    text-align: center;

    padding: 50px;

    color: var(--muted);

}


.loading-spinner {

    width: 34px;

    height: 34px;

    margin:
        0 auto 12px;

    border:
        3px solid #e7ecf7;

    border-top-color:
        var(--primary);

    border-radius: 50%;

    animation:
        spin 0.8s linear infinite;

}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


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

.site-footer {

    background:
        var(--primary-dark);

    color: #ffffff;

    padding: 30px 0;

}


.footer-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


.footer-brand {

    display: flex;

    align-items: center;

    gap: 12px;

}


.footer-logo {

    width: 52px;

    height: 52px;

    object-fit: contain;

    background: #ffffff;

    border-radius: 50%;

    padding: 3px;

}


.footer-brand strong {

    display: block;

    font-size: 15px;

}


.footer-brand p {

    margin-top: 3px;

    color:
        rgba(255,255,255,0.75);

    font-size: 13px;

}


.footer-right {

    text-align: right;

}


.footer-right p {

    color:
        rgba(255,255,255,0.85);

    font-size: 13px;

}


.footer-right small {

    display: block;

    margin-top: 5px;

    color:
        rgba(255,255,255,0.65);

    font-size: 12px;

}


/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {

    .tools-grid {

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

    }

}


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

@media (max-width: 650px) {

    .container {

        width:
            min(
                100% - 28px,
                560px
            );

    }


    .header-inner {

        min-height: 68px;

    }


    .brand-logo {

        width: 43px;

        height: 43px;

    }


    .brand-text strong {

        font-size: 15px;

    }


    .brand-text span {

        font-size: 11px;

    }


    .tools-hero {

        padding:
            28px 0;

    }


    .tools-hero-content {

        flex-direction: column;

        text-align: center;

        padding: 28px 20px;

    }


    .hero-logo {

        width: 80px;

        height: 80px;

    }


    .hero-logo img {

        width: 80px;

        height: 80px;

    }


    .tools-hero h1 {

        font-size: 34px;

    }


    .tools-grid {

        grid-template-columns: 1fr;

    }


    .section-heading h2 {

        font-size: 28px;

    }


    .footer-inner {

        flex-direction: column;

        align-items: flex-start;

    }


    .footer-right {

        text-align: left;

    }

}


/* =========================
   VERY SMALL DEVICES
   ========================= */

@media (max-width: 380px) {

    .brand-text {

        display: none;

    }


    .nav-home {

        padding:
            9px 11px;

    }


    .tools-hero h1 {

        font-size: 30px;

    }

}