/* ===== BLOGS CSS - Hero & Page Styles ===== */

/* --- GLOBAL VARIABLES --- */
:root {
    --primary-orange: #EF7D32;
    --dark-brown: #431407;
    --gold: #FFC107;
    --text-gray: #666;
    --bg-light: #FFF9F2;
    --cream: #FFEDD4;
}

body {
    overflow-x: hidden;
}

/* --- 1. BLOG HERO SECTION --- */
.blog-hero {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--dark-brown);
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    transition: transform 0.1s linear;
}

.blog-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 2;
    opacity: 0.6;
    transition: transform 0.1s linear;
    pointer-events: none;
}

.shape-1 {
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: #EF7D32;
}

.shape-2 {
    bottom: -50px;
    right: 10%;
    width: 250px;
    height: 250px;
    background: #FFC107;
}

.blog-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 800px;
}

.blog-hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
}

.blog-hero-content .section-subtitle {
    display: block;
    font-family: 'Barlow', sans-serif;
    letter-spacing: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
    font-weight: 700;
}

.blog-hero-content .hero-description {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 20px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Text Effects */
.pop-out-text {
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(to right, #EF7D32 0%, #FFC107 50%, #EF7D32 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* --- 2. BLOG CONTAINER --- */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    padding: 60px 0;
}

/* --- 3. BLOG GRID --- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- 4. BLOG CARD --- */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(67, 20, 7, 0.08);
    border: 1px solid var(--cream);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(67, 20, 7, 0.12);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    font-size: 12px;
    color: #EF7D32;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    color: #431407;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card p {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* --- 5. READ MORE BUTTON --- */
.btn-read-more {
    display: inline-block;
    background-color: #EF7D32;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background-color: #d66a22;
    transform: translateY(-2px);
}

.btn-read-more i {
    margin-left: 6px;
}

/* --- 6. NO POSTS MESSAGE --- */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

.no-posts h3 {
    font-family: 'Fredoka', sans-serif;
    color: #431407;
    font-size: 24px;
}

/* ============================================= */
/* --- RESPONSIVE STYLES --- */
/* ============================================= */

/* --- TABLET (max-width: 1024px) --- */
@media (max-width: 1024px) {

    /* Hero Section */
    .blog-hero {
        height: 400px;
    }

    .blog-hero-content h1 {
        font-size: 42px;
    }

    .blog-hero-content .section-subtitle {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .blog-hero-content .hero-description {
        font-size: 15px;
        margin-top: 18px;
    }

    /* Floating Shapes */
    .shape-1 {
        width: 250px;
        height: 250px;
    }

    .shape-2 {
        width: 200px;
        height: 200px;
    }

    /* Container */
    .blog-container {
        width: 92%;
        padding: 50px 0;
    }

    /* Grid */
    .blog-grid {
        gap: 25px;
        margin-top: 35px;
    }

    /* Cards */
    .blog-card {
        border-radius: 14px;
    }

    .blog-card img {
        height: 180px;
    }

    .blog-card-content {
        padding: 22px;
    }

    .blog-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .blog-card p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    /* Button */
    .btn-read-more {
        padding: 9px 18px;
        font-size: 13px;
    }
}

/* --- MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Hero Section */
    .blog-hero {
        height: 350px;
    }

    .blog-hero-content {
        padding: 0 15px;
        max-width: 100%;
    }

    .blog-hero-content h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .blog-hero-content .section-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .blog-hero-content .hero-description {
        font-size: 14px;
        margin-top: 15px;
        line-height: 1.6;
    }

    /* Floating Shapes */
    .floating-shape {
        filter: blur(40px);
    }

    .shape-1 {
        width: 200px;
        height: 200px;
        top: -30px;
        left: -30px;
    }

    .shape-2 {
        width: 150px;
        height: 150px;
        bottom: -30px;
    }

    /* Container */
    .blog-container {
        width: 94%;
        padding: 40px 0;
    }

    /* Grid - Single Column */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    /* Cards */
    .blog-card {
        border-radius: 12px;
    }

    .blog-card img {
        height: 200px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-meta {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .blog-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .blog-card p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    /* Button */
    .btn-read-more {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* No Posts */
    .no-posts {
        padding: 60px 15px;
    }

    .no-posts h3 {
        font-size: 20px;
    }
}

/* --- SMALL MOBILE (max-width: 480px) --- */
@media (max-width: 480px) {

    /* Hero Section */
    .blog-hero {
        height: 300px;
    }

    .blog-hero-content {
        padding: 0 12px;
    }

    .blog-hero-content h1 {
        font-size: 26px;
    }

    .blog-hero-content .section-subtitle {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .blog-hero-content .hero-description {
        font-size: 13px;
        margin-top: 12px;
    }

    /* Floating Shapes */
    .floating-shape {
        filter: blur(30px);
    }

    .shape-1 {
        width: 150px;
        height: 150px;
        top: -20px;
        left: -20px;
    }

    .shape-2 {
        width: 120px;
        height: 120px;
        bottom: -20px;
        right: 5%;
    }

    /* Container */
    .blog-container {
        width: 100%;
        padding: 30px 12px;
    }

    /* Grid */
    .blog-grid {
        gap: 16px;
        margin-top: 25px;
    }

    /* Cards */
    .blog-card {
        border-radius: 10px;
    }

    .blog-card img {
        height: 180px;
    }

    .blog-card-content {
        padding: 16px;
    }

    .blog-card-meta {
        font-size: 10px;
        gap: 4px;
    }

    .blog-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .blog-card p {
        font-size: 12px;
        margin-bottom: 12px;
    }

    /* Button */
    .btn-read-more {
        padding: 9px 16px;
        font-size: 12px;
    }

    .btn-read-more i {
        margin-left: 4px;
    }

    /* No Posts */
    .no-posts {
        padding: 50px 12px;
    }

    .no-posts h3 {
        font-size: 18px;
    }
}

/* --- EXTRA SMALL MOBILE (max-width: 360px) --- */
@media (max-width: 360px) {
    .blog-hero {
        height: 260px;
    }

    .blog-hero-content h1 {
        font-size: 22px;
    }

    .blog-hero-content .section-subtitle {
        font-size: 9px;
    }

    .blog-hero-content .hero-description {
        font-size: 12px;
    }

    .blog-card img {
        height: 160px;
    }

    .blog-card-content {
        padding: 14px;
    }

    .blog-card h3 {
        font-size: 15px;
    }

    .blog-card p {
        font-size: 11px;
    }

    .btn-read-more {
        padding: 8px 14px;
        font-size: 11px;
    }
}