

/* === Category Filter === */
.category-filter-wrapper {
  padding: 1.5rem 0;
}

.category-filter-container {
  background: #f9f5ef;                     /* warm parchment surface */
  border: 1.5px solid #e8c87a;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}

.filter-heading {
  font-size: 13px;
  font-weight: 500;
  color: #7A5C20;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 0.85rem;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-btn {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  border: 1.5px solid #C8832A;
  color: #7A4D0A;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s,
              transform 0.13s, box-shadow 0.18s;
}

.category-btn:hover {
  background: #FAC775;
  border-color: #BA7517;
  color: #412402;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(186, 117, 23, 0.18);
}

.category-btn:active {
  transform: translateY(0) scale(0.97);
}

/* Active state — amber-to-indigo gradient pill */
.category-btn.active {
  background: linear-gradient(135deg, #BA7517 0%, #533B89 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 12px rgba(83, 74, 183, 0.22);
}

.category-btn.active:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 480px) {
  .category-filter-container {
    padding: 1rem;
  }
  .category-btn {
    font-size: 12px;
    padding: 5px 11px;
  }
}

.blog-bg-panels {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bg-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.45);
}

.blog-header-hero {
    position: relative;
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}


.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2.5rem 1.5rem;
    max-width: 820px;
}

.blog-hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.75rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a78bfa, transparent);
    margin: 0.85rem auto 1rem;
}

.blog-hero-content p {
    font-size: clamp(0.82rem, 1.8vw, 1rem);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 600px) {
    .blog-bg-panels {
        grid-template-columns: repeat(3, 1fr);
    }
    .bg-panel:nth-child(4),
    .bg-panel:nth-child(5) {
        display: none;
    }
}

    .blog-section {
        font-family: 'Poppins', sans-serif;
        background: #f8f9fa;
        /* padding: 4rem 0; */
    }

    .blog-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 10px 1.5rem;
    }

    /* Blog Header */
    .blog-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .blog-header h2 {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 800;
        color: #1a1a1a;
        margin-bottom: 1rem;
    }

    .underline {
        width: 80px;
        height: 4px;
        background: #ffc107;
        margin: 0 auto;
        border-radius: 2px;
    }

    /* Blog Cards Wrapper */
    .blog-cards-wrapper {
        position: relative;
    }

    /* Blog Cards Container */
    .blog-cards-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Blog Card */
    .blog-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .blog-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }

    /* Blog Card Image */
    .blog-card-image {
        width: 100%;
        height: 160px;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .blog-card:hover .blog-card-image {
        transform: scale(1.1);
    }

    /* Blog Card Content */
    .blog-card-content {
        padding: 1.25rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    /* Blog Card Meta */
    .blog-card-meta {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.8rem;
        font-size: 0.8rem;
        color: #666;
    }

    .blog-card-date {
        font-weight: 400;
    }

    .blog-card-author {
        font-weight: 500;
        color: #333;
    }

    /* Blog Card Title */
    .blog-card-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: #d4a574;
        margin-bottom: 0.8rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 3em;
    }

    /* Blog Card Description */
    .blog-card-description {
        font-size: 0.85rem;
        line-height: 1.5;
        color: #777;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex-grow: 1;
    }

    /* Read More Button */
    .read-more {
        background: #ffc107;
        color: #1a1a1a;
        border: none;
        padding: 0.6rem 1.5rem;
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
        text-align: center;
        align-self: flex-start;
    }

    .read-more:hover {
        background: #ffb300;
        transform: translateX(4px);
        color: #1a1a1a;
    }

    /* Empty State */
    .text-center {
        text-align: center;
    }

    .py-5 {
        padding: 3rem 0;
    }

    .text-muted {
        color: #999;
        font-size: 1.1rem;
    }

    /* Color Variations for Different Blog Cards */
    .blog-card:nth-child(4n+1) .blog-card-title {
        color: #d4a574;
    }

    .blog-card:nth-child(4n+2) .blog-card-title {
        color: #c9a961;
    }

    .blog-card:nth-child(4n+3) .blog-card-title {
        color: #d4a574;
    }

    .blog-card:nth-child(4n+4) .blog-card-title {
        color: #b8935a;
    }

    /* Custom Pagination Styles */
    .pagination-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 3rem;
    }

    .pagination {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .pagination .page-item {
        display: inline-block;
    }

    .pagination .page-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 35px;
        height: 35px;
        padding: 0.4rem 0.6rem;
        background: white;
        border: 1px solid #e0e0e0;
        color: #333;
        border-radius: 6px;
        transition: all 0.3s ease;
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        line-height: 1;
    }

    .pagination .page-link:hover {
        background: #ffc107;
        border-color: #ffc107;
        color: #1a1a1a;
        transform: translateY(-2px);
        box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
    }

    .pagination .page-item.active .page-link {
        background: #ffc107;
        border-color: #ffc107;
        color: #1a1a1a;
        font-weight: 600;
        box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
    }

    .pagination .page-item.disabled .page-link {
        background: #f5f5f5;
        border-color: #e0e0e0;
        color: #999;
        cursor: not-allowed;
        pointer-events: none;
        opacity: 0.6;
    }

    /* Previous/Next Arrow Styles - SMALLER SIZE */
    .pagination .page-link[rel="prev"],
    .pagination .page-link[rel="next"] {
        font-weight: 600;
        padding: 0.4rem 0.8rem;
        font-size: 1.2rem;
        line-height: 1;
    }

    /* SVG icons inside pagination links */
    .pagination .page-link svg {
        width: 16px;
        height: 16px;
    }

    .pagination .page-link[rel="prev"]:hover,
    .pagination .page-link[rel="next"]:hover {
        background: #ffb300;
    }

    /* Dots for skipped pages */
    .pagination .page-item.disabled span {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 35px;
        height: 35px;
        padding: 0.4rem 0.6rem;
        background: transparent;
        border: none;
        color: #999;
        font-size: 0.875rem;
        line-height: 1;
    }

    /* Responsive Design */
    @media (max-width: 1400px) {
        .blog-cards-container {
            grid-template-columns: repeat(4, 1fr);
            gap: 1.25rem;
        }
    }

    @media (max-width: 1200px) {
        .blog-cards-container {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 992px) {
        .blog-cards-container {
            grid-template-columns: repeat(2, 1fr);
        }

        .blog-card-image {
            height: 180px;
        }
    }

    @media (max-width: 768px) {
        .blog-section {
            padding: 3rem 0;
        }

        .blog-container {
            padding: 0 1rem;
        }

        .blog-cards-container {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .blog-card-image {
            height: 200px;
        }

        .blog-card-content {
            padding: 1.5rem;
        }

        .blog-card-title {
            font-size: 1.15rem;
        }

        /* Responsive Pagination */
        .pagination {
            gap: 0.3rem;
        }

        .pagination .page-link {
            min-width: 32px;
            height: 32px;
            padding: 0.3rem 0.5rem;
            font-size: 0.8rem;
        }

        .pagination .page-link[rel="prev"],
        .pagination .page-link[rel="next"] {
            padding: 0.3rem 0.6rem;
            font-size: 1.1rem;
        }

        .pagination .page-link svg {
            width: 14px;
            height: 14px;
        }
    }

    @media (max-width: 480px) {
        .blog-header h2 {
            font-size: 1.75rem;
        }

        .blog-card {
            border-radius: 12px;
        }

        .blog-card-image {
            height: 180px;
        }

        .blog-card-meta {
            gap: 0.4rem;
        }

        .read-more {
            width: 100%;
        }

        /* Mobile Pagination */
        .pagination {
            flex-wrap: wrap;
            gap: 0.25rem;
        }

        .pagination .page-link {
            min-width: 30px;
            height: 30px;
            padding: 0.25rem 0.4rem;
            font-size: 0.75rem;
        }

        .pagination .page-link[rel="prev"],
        .pagination .page-link[rel="next"] {
            padding: 0.25rem 0.5rem;
            font-size: 1rem;
        }
    }
