/* Blog Visual Upgrade Styles */

/* Blog Grid Card Images */
.blog-card .blog-image {
    padding: 0 !important;
    /* Remove padding to let image fill */
    overflow: hidden;
    position: relative;
    /* Maintain height from previous design or set new one */
    height: 200px;
}

.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
    /* Zoom effect on hover */
}

/* Article Page Featured Image */
.article-featured-image {
    width: 100%;
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--light-bg);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Dark mode adjustments */
[data-theme="dark"] .article-featured-image {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: var(--dark-card-bg);
}

/* ===========================
   MOBILE NAVIGATION FIX
   =========================== */

/* Burger Menu Button (Hidden on Desktop) */
.burger-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

@media (max-width: 768px) {

    /* Show Burger Button */
    .burger-menu {
        display: block;
    }

    /* Hide Desktop Menu by Default */
    .nav-menu {
        position: absolute;
        top: 100%;
        /* Attach exactly to bottom of header */
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        padding: 1rem 2rem;
        transform: translateY(-150%);
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        z-index: 999;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }

    /* Show Menu when Active */
    .nav-menu.active {
        transform: translateY(0);
    }

    /* Stack Links Vertically */
    .nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a,
    .nav-menu button {
        display: block;
        width: 100%;
        padding: 0.75rem;
        font-size: 1.1rem;
    }

    /* Dropdown Handling on Mobile */
    .dropdown-content {
        position: static;
        width: 100%;
        transform: none;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        border: none;
        padding: 0;
        display: none;
        /* Hidden unless toggled */
    }

    .dropdown.active .dropdown-content {
        display: grid;
        /* Or flex */
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dropdown-content a {
        padding-left: 1rem;
    }
}