body {
    background: linear-gradient(135deg, #f8fafc 0%, #f4f1e8 100%);
    font-family: Montserrat;
    min-height: 100vh;
    height: 100%;
    margin:0;
    background-size: 150% 150%;
}

p {
    font-family: Montserrat;
    color: #333;
}


footer {
    text-align: right;
  padding: 1rem;
  z-index: 1;
}

.main-content {
  flex: 1; /* take up all available space */
}

.container {
    width: 100%;
    max-width: 80%;
    margin: 1rem auto;
    background: #ffffff80;
    padding: 1rem;
    padding-left: 2rem;
    border-radius: .6rem;
    box-shadow: 0 .1rem .2rem rgba(60, 60, 90, 0.18), 0 .5rem .1rem rgba(120, 120, 160, 0.08);
    border: .1rem solid #ececec;
    display: flex;
    flex-direction: column;
    min-height: 70vh; /* full viewport height */
}

.container.dark-mode {
    background: #111;
    border: none;
}

.header-bar {
    display: flex;
    align-items: center;
    /* vertically center items */
    justify-content: flex-start;
    /* keep everything on one line */
    padding: 0.5rem 1rem;
    background: #fff;
    border-bottom: 2px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    gap: 2rem;
    height: 3rem;
    /* space between title and navbar */
}


.pdf-icon {
margin-left: auto;
}

.pdf-icon img {
    height: 4rem;
}

.pdf-icon.dark-mode img {
    filter: invert(100%);
}

.site-title {
    font-family: Montserrat;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: #111;
    text-transform: uppercase;
}

/* Navbar links in a row */
.navbar {
    display: flex;
    gap: 1rem;
    height:3rem;
    /* horizontal spacing between links */

}

.navbar ul {
    list-style: none;
    display: flex;
    /* horizontal row */
    gap: 1rem;
    /* optional spacing between links */
    margin: 0rem;
    padding: 0;
}

.navbar a {
    text-decoration: none;
    color: #444;
    font-size: 1.2rem;
    font-weight: 500;
    align-content:center;
    gap:1rem;
    padding-right: 1rem;
    padding-left: 1rem;
    border-radius: 1rem;
    transition: background 0.3s, color 0.3s;
}

.navbar a:hover,
.navbar a:focus {
    color: #fff;
    background-color: #9baa97;
    border-radius: 1rem;
    transition: background 0.3s, color 0.3s;
}

.nav-toggle {
    display: none; /* hidden on desktop */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #111;
}


/* Mobile responsiveness */
@media (max-width: 768px) {
    .site-title {
    font-family: Montserrat;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #111;
    text-transform: uppercase;
}
    .navbar {
        display: none;           /* hide links initially */
        flex-direction: column;  /* vertical dropdown */
        position: absolute;
        top: 70px;               /* below header bar */
        right: 0;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 1rem 2rem;
        border-radius: 4px;
        z-index: 100;
    }

    .navbar a {
        padding: 0.5rem 0;
    }

    .nav-toggle {
        display: block; /* show hamburger */
        margin-left: auto;
    }

    .navbar.active {
        display: flex; /* show menu when active */
        min-height: 10rem;
    }
}