* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Navy, Gold, White Theme */
    --primary: #B99253;
    --primary-light: #7B3900;
    --accent: #7B3900;
    --accent-dark: #263b66;
    --background: hsl(0, 0%, 100%);
    --secondary: hsl(220, 30%, 98%);
    --text: hsl(220, 20%, 20%);
    --text-muted: hsl(220, 10%, 50%);
    --border: hsl(220, 15%, 90%);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 10px 40px -10px rgba(212, 175, 55, 0.4);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}



/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;

    background:
        linear-gradient(
            135deg,
            rgba(38, 59, 102, 0.75),
            rgba(123, 57, 0, 0.65)
        ),
        url("../assets/bg4.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ================= Content ================= */

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    padding: 4rem 1rem;
}

/* ================= Typography ================= */

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Search Bar */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-gold);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.search-btn {
    padding: 1rem 2rem;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-light);
}

/* Blog Section */
.blog-section {
    padding: 5rem 0;
    background: var(--secondary);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* Categories Filter */
.categories-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
}

.blog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-category {
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    border-radius: 20px;
    color: var(--primary);
    font-weight: 500;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.75rem;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.load-more-btn {
    padding: 1rem 3rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 10px;
}

.popular-post:hover {
    background: var(--secondary);
}

.popular-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.popular-post-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.popular-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sidebar Categories */
.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--secondary);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.sidebar-category:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.category-count {
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Newsletter */
.newsletter-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.newsletter-card .sidebar-title {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.newsletter-text {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    outline: none;
    font-family: var(--font-primary);
}

.newsletter-btn {
    padding: 0.75rem 1rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--secondary);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.875rem;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    text-align: center;
    color: white;
}

.cta-content {
    animation: fadeInUp 0.8s ease;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===============================
   📌 Large Tablets & Small Laptops
   Max Width: 1024px
=============================== */
@media (max-width: 1024px) {

    html, body {
        overflow-x: hidden;
    }

    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-sidebar {
        position: static;
        width: 100%;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}


/* ===============================
   📌 Tablets Medium
   Max Width: 900px
=============================== */
@media (max-width: 900px) {

    html, body {
        overflow-x: hidden;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}


/* ===============================
   📌 Tablets & Mobiles Landscape
   Max Width: 768px
=============================== */
@media (max-width: 768px) {

    html, body {
        overflow-x: hidden;
    }


    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .categories-filter {
        display: flex;
        flex-direction: column !important;
        gap: 0.75rem;
        overflow: visible !important;
        padding-bottom: 0;
    }

    .category-btn {
        width: 100%;
        white-space: normal !important;
        text-align: center;
    }

    /* CTA */
    .cta-title {
        font-size: 1.7rem;
    }
}


/* ===============================
   📌 Mobiles
   Max Width: 576px
=============================== */
@media (max-width: 576px) {

    html, body {
        overflow-x: hidden;
    }

    .hero {
        min-height: 360px;
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .search-bar {
        flex-direction: column;
        border-radius: 15px;
    }

    .search-btn {
        width: 100%;
        border-radius: 0;
    }

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

    .blog-image {
        height: 180px;
    }
}


/* ===============================
   📌 Extra Small Mobiles
   Max Width: 400px
=============================== */
@media (max-width: 400px) {

    html, body {
        overflow-x: hidden;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .blog-image {
        height: 150px;
    }

    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .cta-title {
        font-size: 1.4rem;
    }
}

