/* Global */
html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0f0f0f;
    color: white;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.wrapper {
    width: 100%;
    height: 100vh;
    text-align: center;
}

/* Hero Section */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 67vh;
    background: url('../images/Chicago_BG_02.jpg') center/cover no-repeat,
        linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(80, 0, 0, 0.7));
    color: white;
    padding: 0 20px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0;
}

/* Position nav in top-right corner inside header */
.header-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    /* semi-transparent background */
    border-radius: 8px;
    padding: 8px 12px;
    backdrop-filter: blur(6px);
}

.header-nav .nav-links {
    display: flex;
    gap: 20px;
}

.header-nav .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.header-nav .nav-links a:hover {
    color: #cc0000;
}

.header-nav .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.header-nav .hamburger div {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* Section Styling */
section {
    padding: 60px 20px;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

section p {
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.6;
    max-width: 700px;
    margin: auto;
}

/* Blog Page */
.blog-index {
    max-width: 900px;
    margin: auto;
    text-align: center;
    padding: 40px 20px;
}

.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.blog-card h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.blog-card h3 a {
    color: #cc0000;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: #ff0000;
}

.blog-card .date {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.blog-card .excerpt {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 15px;
}

/* Blog Post Page */
.blog-post {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    color: white;
    text-align: left;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.7;
}

.blog-post h2 {
    color: #cc0000;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.blog-post .date {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 25px;
    font-style: italic;
    color: #7b7b7b;
}

.blog-post p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Logo */
.logo {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    margin-bottom: 0px;
}

/* Button */
.btn {
    display: inline-block;
    margin-top: 25px;
    background: #cc0000;
    padding: 12px 28px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn:hover {
    background: #e60000;
}

/* Footer */
footer {
    color: #fff;
    font-size: 0.85rem;
    padding: 40px 20px;
    background: #111;
    text-align: center;
}

footer p {
    margin: 5px 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ffffff;
    opacity: 0.85;
    text-align: center;
}

footer p.copyright {
    font-size: 0.75rem;
    opacity: 0.7;
}

footer a.footer-link {
    color: #cc0000;
    text-decoration: none;
    transition: color 0.3s;
}

footer a.footer-link:hover {
    color: #ff0000;
}

footer .social-links {
    margin-top: 10px;
}

/* Responsive - mobile menu toggle */
@media (max-width: 700px) {
    .header-nav {
        flex-direction: column;
        align-items: flex-end;
    }

    .header-nav .nav-links {
        position: absolute;
        top: 60px;
        /* directly below the hamburger button */
        right: 20px;
        background: rgba(20, 20, 20, 0.95);
        flex-direction: column;
        width: 160px;
        padding: 10px 15px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.25s ease-out;
    }

    .header-nav .nav-links.active {
        transform: scaleY(1);
    }

    .header-nav .nav-links a {
        padding: 10px 0;
        font-size: 1rem;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-nav .nav-links a:last-child {
        border-bottom: none;
    }

    .header-nav .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        padding: 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
        transition: background 0.2s ease;
    }

    .header-nav .hamburger:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .header-nav .hamburger div {
        width: 24px;
        height: 3px;
        background: white;
        margin: 3px 0;
        border-radius: 2px;
    }
}

/* Responsive for mobile */
@media (max-width: 480px) {

    header,
    section {
        padding: 0 10px;
    }

    header p {
        font-size: 1rem;
        max-width: 90%;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section p {
        font-size: 1rem;
        max-width: 95%;
    }
}

/* Responsive blog cards */
@media (min-width: 700px) {
    .blog-list {
        grid-template-columns: 1fr 1fr;
    }
}