/* ------------------------------
   Global Layout Shell (site.css)
   ONLY for _Layout.cshtml
   ------------------------------ */

/* Base */
html {
    font-size: 16px;
}

body {
    font-family: system-ui, sans-serif;
    background: #fdfdfd;
    color: #333;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #dfe9f3 0%, #ffffff 100%);
    min-height: 100vh;
    background-attachment: fixed;
}

/* ------------------------------
   Header (modern + polished)
   ------------------------------ */

.site-header {
    background: linear-gradient(90deg, #ffffff 0%, #f7f9fc 100%);
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a90e2;
    text-decoration: none;
    letter-spacing: -0.6px;
    transition: color 0.2s ease;
}

    .header-brand:hover {
        color: #4a90e2;
    }

.header-nav-list {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.header-nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.2s ease;
}

    .header-nav-link:hover {
        color: #4a90e2;
    }

    /* Underline animation */
    .header-nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: 0%;
        background: #4a90e2;
        transition: width 0.25s ease;
    }

    .header-nav-link:hover::after {
        width: 100%;
    }


/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.page-main {
    width: 100%;
}

/* ------------------------------
   Footer (centered + clean)
   ------------------------------ */

.site-footer {
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center; /* Center the text */
    color: #666;
    font-size: 0.9rem;
}

    .footer-inner a {
        color: #4a90e2; /* highlight color */
        text-decoration: none;
    }

/* ------------------------------
   Mobile Menu Base
------------------------------ */

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

    .menu-icon span {
        width: 28px;
        height: 3px;
        background: #2c3e50;
        border-radius: 3px;
        transition: 0.3s ease;
    }

/* ------------------------------
   Mobile Breakpoint
------------------------------ */

@media (max-width: 768px) {

    /* Show hamburger */
    .menu-icon {
        display: flex;
    }

    /* Hide desktop nav by default */
    .header-nav {
        display: none;
        width: 100%;
    }

    /* When checkbox is checked → show menu */
    .menu-toggle:checked ~ .header-nav {
        display: block;
    }

    /* Stack nav items */
    .header-nav-list {
        flex-direction: column;
        gap: 12px;
        padding: 15px 0;
        text-align: center;
    }

    .header-nav-link {
        display: block;
        padding: 12px 0;
        font-size: 1.2rem;
    }

    /* Hamburger animation */
    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

