/* ===========================
   ThriftMaal Blog - Complete Styles
   Color Palette:
   Primary: #FF6F00
   Secondary: #0B1727
   Accent: #FFFFFF
   =========================== */





/* Font Performance Optimization */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: local('Poppins');
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}









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

:root {
    --primary-color: #FF6F00;
    --secondary-color: #0B1727;
    --accent-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 20px rgba(255, 111, 0, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===========================
   HEADER STYLES
   =========================== */
.header {
    background: var(--secondary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--accent-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===========================
   BLOG HERO SECTION
   =========================== */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8F3D 100%);
    padding: 4rem 0;
    text-align: center;
    color: var(--accent-color);
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease;
}

.blog-hero p {
    font-size: 1.2rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease;
}

/* ===========================
   SEARCH & FILTER SECTION
   =========================== */
.search-filter-section {
    background: var(--accent-color);
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

.search-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box {
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 50px;
    outline: none;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
    background: #FFE8D6;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--accent-color);
    border-color: var(--primary-color);
}

/* ===========================
   BLOG CARDS SECTION
   =========================== */
.blog-section {
    padding: 3rem 0;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    padding: 3rem;
}

.blog-card {
    background: var(--accent-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.1);
}

.blog-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), #FF8F3D);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    align-self: flex-start;
}

.blog-card h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    line-height: 1.4;
    margin: 0.5rem 0;
}

.blog-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid #E0E0E0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--accent-color);
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn:hover {
    background: #FF8F3D;
    transform: scale(1.05);
}

.no-results {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ===========================
   FOOTER STYLES
   =========================== */
.footer {
    background: var(--secondary-color);
    color: var(--accent-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #B0B0B0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #B0B0B0;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: #B0B0B0;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #B0B0B0;
    font-size: 0.9rem;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

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

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.5rem;
    }

    .blog-card h3 {
        font-size: 1.1rem;
    }
}
