/* Styles for templates/super_category.html (moved out of the template) */
    .category-page {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    /* Hero section styling */
    .category-hero {
        position: relative;
        height: 280px;
        background-size: cover;
        background-position: center;
        border-radius: 12px;
        margin-bottom: 40px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

    .category-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: linear-gradient(135deg, 
                                         rgba(120, 69, 39, 0.7), 
                                         rgba(224, 122, 95, 0.6));
        z-index: 1;
    }

    .category-header-content {
        position: relative;
        z-index: 2;
        text-align: center;
        color: white;
        padding: 2rem;
        max-width: 800px;
    }

    .category-title {
        font-size: 3.5rem;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
        letter-spacing: 1px;
    }

    .category-description {
        font-size: 1.2rem;
        max-width: 700px;
        margin: 0 auto;
        line-height: 1.6;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }

    .rustic-divider {
        position: relative;
        height: 30px;
        margin: 20px auto 0;
        text-align: center;
    }

    .rustic-divider::before, 
    .rustic-divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 100px;
        height: 2px;
        background: rgba(255, 255, 255, 0.6);
    }

    .rustic-divider::before {
        left: calc(50% - 120px);
    }

    .rustic-divider::after {
        right: calc(50% - 120px);
    }

    .category-icon {
        display: inline-block;
        font-size: 1.5rem;
        background-color: rgba(255, 255, 255, 0.2);
        width: 40px;
        height: 40px;
        line-height: 40px;
        border-radius: 50%;
        text-align: center;
    }

    /* Category intro styling */
    .category-intro {
        text-align: center;
        margin-bottom: 30px;
        font-size: 1.1rem;
        line-height: 1.6;
        color: #665e53;
        max-width: 800px;
        margin: 0 auto 40px;
        padding: 20px;
        background-color: #f9f7f5;
        border-radius: 8px;
        border-left: 4px solid var(--accent-warm);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .category-intro .highlight {
        color: var(--accent-warm);
        font-weight: 600;
    }

    /* Pagination styling */
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 50px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .page-link {
        text-decoration: none;
        padding: 8px 15px;
        border: 1px solid #e0d9cf;
        border-radius: 30px;
        color: #665e53;
        background-color: white;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .page-link:hover {
        background-color: var(--accent-warm);
        color: white;
        border-color: var(--accent-warm);
        transform: translateY(-2px);
    }

    .page-indicator {
        display: flex;
        align-items: center;
        background-color: #f9f7f5;
        padding: 8px 15px;
        border-radius: 30px;
        font-weight: 600;
        color: #665e53;
    }

    .current-page {
        color: var(--accent-warm);
        font-size: 1.2rem;
        margin: 0 5px;
    }

    .total-pages {
        color: #665e53;
        font-size: 1.2rem;
        margin: 0 5px;
    }

    .page-separator {
        margin: 0 5px;
        color: #b3a99a;
    }

    /* No posts styling */
    .no-posts-container {
        text-align: center;
        padding: 60px 20px;
        background-color: #f9f7f5;
        border-radius: 10px;
        margin: 30px 0;
    }

    .no-posts-content {
        max-width: 500px;
        margin: 0 auto;
    }

    .no-posts-content i {
        font-size: 3rem;
        color: #ccc;
        margin-bottom: 20px;
    }

    .no-posts {
        font-size: 1.5rem;
        color: #665e53;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .no-posts-subtext {
        color: #888;
        margin-bottom: 30px;
    }

    .browse-categories-btn {
        display: inline-block;
        padding: 12px 25px;
        background-color: var(--accent-warm);
        color: white;
        text-decoration: none;
        border-radius: 30px;
        font-weight: 600;
        transition: background-color 0.3s, transform 0.3s;
    }

    .browse-categories-btn:hover {
        background-color: var(--highlight);
        transform: translateY(-3px);
    }

    /* Related categories section */
    .related-categories {
        margin-top: 50px;
        padding: 30px;
        background-color: #f9f7f5;
        border-radius: 10px;
        border: 1px solid #e0d9cf;
    }

    .related-title {
        text-align: center;
        margin-bottom: 25px;
        color: var(--accent-warm);
        font-size: 1.5rem;
        position: relative;
    }

    .related-title::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 2px;
        background: linear-gradient(to right, transparent, var(--accent-warm), transparent);
    }

    .category-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .category-button {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 15px;
        background-color: white;
        color: #665e53;
        text-decoration: none;
        border-radius: 30px;
        font-size: 0.9rem;
        transition: all 0.3s;
        border: 1px solid #e0d9cf;
    }

    .category-button i {
        color: var(--accent-warm);
    }

    .category-button:hover {
        background-color: var(--accent-warm);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .category-button:hover i {
        color: white;
    }

/* ============================================
   MOBILE RESPONSIVE STYLES FOR BLOG CARDS
   ============================================ */

/* Tablet and Mobile (768px and below) */
@media screen and (max-width: 768px) {
    
    /* Category page container */
    .category-page {
        padding: 10px;
    }
    
    /* Category hero section */
    .category-hero {
        height: 200px;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .category-header-content {
        padding: 1rem;
    }
    
    .category-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .rustic-divider::before,
    .rustic-divider::after {
        width: 60px;
    }
    
    .rustic-divider::before {
        left: calc(50% - 80px);
    }
    
    .rustic-divider::after {
        right: calc(50% - 80px);
    }
    
    .category-icon {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
    
    /* Category intro */
    .category-intro {
        font-size: 1rem;
        padding: 15px;
        margin: 0 auto 30px;
    }

    /* Pagination */
    .pagination {
        margin-top: 30px;
        gap: 8px;
    }
    
    .page-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .page-indicator {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .current-page,
    .total-pages {
        font-size: 1rem;
    }
    
    /* Related categories */
    .related-categories {
        margin-top: 40px;
    }
    
    .related-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .category-buttons {
        gap: 10px;
    }
    
    .category-button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* No posts container */
    .no-posts-container {
        padding: 40px 15px;
    }
    
    .no-posts-content i {
        font-size: 2.5rem;
    }
    
    .no-posts {
        font-size: 1.3rem;
    }

}

/* Small Mobile (480px and below) */
@media screen and (max-width: 480px) {
    
    .category-page {
        padding: 5px;
    }
    
    .category-hero {
        height: 180px;
        margin-bottom: 15px;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .category-description {
        font-size: 0.9rem;
    }
    
    .category-intro {
        font-size: 0.95rem;
        padding: 12px;
    }

    .pagination {
        margin-top: 25px;
        gap: 6px;
    }
    
    .page-link {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    .related-title {
        font-size: 1.2rem;
    }
    
    .category-button {
        padding: 7px 10px;
        font-size: 0.8rem;
    }
    
    .no-posts {
        font-size: 1.2rem;
    }
}

/* Tablet styles (768px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    
    .category-page {
        padding: 15px;
    }

    .category-title {
        font-size: 3rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    
    /* Larger tap targets */
    .page-link {
        min-height: 44px;
    }

}

/* Landscape Mobile Orientation */
@media screen and (max-height: 600px) and (orientation: landscape) {
    
    .category-hero {
        height: 150px;
    }
    
    .category-title {
        font-size: 1.8rem;
    }

}

/* Category name on the wood photo: light cream with a dark shadow so it stands
   out (the global heading colour made it brown on brown) */
.category-hero .category-title {
    color: #fff8ee;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.35);
}

.category-hero .category-title::after {
    display: none;   /* the box already has its own divider below the name */
}
