/* General Styles */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: rgb(73, 70, 70); /* Dark background */
    color: #333;
    overflow-x: hidden;
}

header {
    background: linear-gradient(to bottom, black, transparent); /* Dark gradient background */
    color: #fff; /* Light text */
    text-align: center;
    padding: 20px;
    font-size: 1.5rem;
    position: sticky; /* Sticky header on scroll */
    top: 0;
    z-index: 1000; 
    display: flex;
    flex-direction: column; /* Align items vertically */
    align-items: center; /* Center horizontally */
    gap: 10px; /* Add spacing between logo and title */
}

/* Container for the logo */
.logo {
    width: 100%;
    max-width: 450px;
    min-width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    height: auto;
}

/* Image styling inside the logo */
.logo img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

header h1 {
    font-size: 1.5rem;
}

/* Archive Container */
.archive-container {
    background: transparent;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping of items */
    gap: 20px;
    justify-content: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Archive Items */
.archive-item {
    background: transparent; /* Make the white box fully transparent */
    border: none; /* Remove border */
    border-radius: 8px;
    padding: 15px;
    width: 300px;
    text-align: center;
    box-shadow: none; /* Remove any shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-item img {
    width: 100%; /* Responsive image */
    border-radius: 8px;
    margin-bottom: 15px;
    height: auto;
}

/* Text inside archive item */
.archive-item h2 {
    font-size: 1.4rem;
    color: #fff; /* Light text to contrast dark background */
    margin-bottom: 10px;
}

.archive-item p {
    font-size: 1rem;
    color: #ccc; /* Light grey text */
    margin-bottom: 10px;
}

.archive-item a {
    text-decoration: none;
    color: #007bff; /* Blue link */
    font-weight: bold;
    transition: color 0.3s ease;
}

.archive-item a:hover {
    color: #0056b3; /* Darker blue on hover */
}

/* Hover Effect for Archive Items */
.archive-item:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}

/* Responsive Design for Small Screens */
@media (max-width: 768px) {
    .archive-container {
        padding: 10px;
    }

    .archive-item {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header img {
        max-width: 80px;
    }
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-family: Arial, sans-serif;
}

footer p {
    margin: 5px 0;
}

footer .crafted {
    font-size: 0.9em;
    margin-top: 10px;
    color: #bbb;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ================= LANDSCAPE PHONE FIXES ================= */
@media screen and (max-height: 450px) and (orientation: landscape) {

    /* Header: reduce height & spacing */
    header {
        padding: 8px;
        gap: 6px;
    }

    header h1 {
        font-size: 1.2rem;
    }

    /* Logo image: prevent vertical overflow */
    .logo img {
        max-height: 50px;
        width: auto;
    }

    /* Navigation text (if present) */
    header nav ul {
        font-size: 0.8rem;
    }

    /* Hero section: avoid overlap */
    #hero {
        margin-top: 8vh;
    }

    /* Archive container spacing */
    .archive-container {
        padding: 10px;
        gap: 15px;
    }

    /* Archive cards: compact layout */
    .archive-item {
        padding: 10px;
    }

    /* Archive images: limit height */
    .archive-item img {
        max-height: 180px;
        object-fit:scale-down;
    }
}
