/* --- Base Styles for the Hamburger Button --- */
.hamburger {
    display: none; /* Hidden by default on large screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #2C1810; /* Match your Silicute brand color */
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* --- Mobile Breakpoint --- */
@media screen and (max-width: 768px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative; /* So the dropdown positions relative to the nav */
    }

    .hamburger {
        display: flex; /* Show the button on mobile */
    }

    .nav-links {
        display: none; /* Hide the standard horizontal links */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Drop down right below the navbar */
        left: 0;
        background-color: #FBF7F0; /* Match your background */
        border-bottom: 1px solid #E8DFD2;
        padding: 10px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        z-index: 99;
    }

    /* Class added via JavaScript to show the menu */
    .nav-links.active-mobile {
        display: flex;
    }

    .nav-links a {
        padding: 12px 24px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(229, 221, 208, 0.5); /* Subtle separator */
    }

    /* Animation for the hamburger turning into an 'X' (Optional but nice) */
    .hamburger.open .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.open .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}
/* --- Mobile Breakpoint for Footer --- */
@media screen and (max-width: 768px) {
    .footer-grid {
        display: flex;
        flex-direction: column; /* Stack columns vertically */
        gap: 24px; /* Add space between the stacked columns */
        text-align: center; /* Center-align text for a cleaner mobile look */
        padding: 0 20px;
    }

    /* Hide the empty first and last columns on mobile to save space */
    .footer-col:first-child,
    .footer-col:last-child {
        display: none;
    }

    /* Remove default list padding and center them */
    .footer-col ul {
        padding-left: 0;
        margin: 0;
        list-style: none;
    }

    /* Increase touch targets for mobile users */
    .footer-col li {
        margin-bottom: 8px;
    }

    .footer-col a {
        display: inline-block;
        padding: 8px 12px; /* Makes the tap area larger than just the text */
    }

    /* Center the copyright text and add a bit of padding */
    .footer p {
        text-align: center;
        padding: 0 20px;
        font-size: 13px; /* Slightly smaller copyright text on mobile */
    }
}
/* Active button style */
.filter-btn.active {
    background: var(--text-espresso);
    color: var(--bg-cream);
    border-color: var(--text-espresso);
}

/* Optional: Add a simple fade-in animation for filtered items */
.blog-card {
    transition: opacity 0.3s ease;
    animation: fadeIn 0.4s ease forwards;
}
.blog-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10; /* Keeps all images uniformly sized */
    overflow: hidden;
    background: var(--sand, #FBF7F0);
    position: relative;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the space without stretching */
    object-position: 80% 25%;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image-wrapper img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}