/* =============================================
   BLOG ARCHIVE PAGE - FIGMA EXACT MATCH
   UPDATED: Feedback Round 2 Changes Applied
   - Carousel overlay opacity increased (55%)
   - Read more links: Karla Normal
   - Blog card titles: Karla Semi Bold
   ============================================= */

/* =================================
   ARCHIVE HEADER (Title & Subtitle)
   ================================= */

.archive-header {
    padding: 6rem 0 0 0;
    background-color: #fff;
}

.archive-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.archive-title {
    font-family: 'Archia', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
    line-height: normal;
    color: #1e1e23;
    letter-spacing: -0.06em;
}

.archive-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
    max-width: 700px;
}

@media (max-width: 768px) {
    .archive-header {
        padding: 4rem 0 2rem 0;
    }
    
    .archive-title {
        font-size: 2.5rem;
    }
}

/* =================================
   HERO CAROUSEL SECTION
   UPDATED: Increased overlay opacity for better text readability
   ================================= */

.hero-carousel-section {
    padding: 3rem 0;
    background-color: #fff;
}

.hero-carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.hero-carousel-container {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.hero-carousel-slider {
    display: flex;
    transition: transform 0.6s ease;
}

.hero-slide {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}

/* Entire slide is clickable */
.hero-slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Unified hover effect - subtle shadow only */
.hero-slide-link:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 5;
    pointer-events: none;
    border-radius: 20px;
}

.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* UPDATED: Increased overlay opacity from 88.23% to 55% for better readability */
.hero-slide-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgb(0 0 0 / 45%) 45.92%, rgba(0, 0, 0, 0.55) 88.23%);
    z-index: 2;
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    padding: 2.5rem 3rem 2rem 3rem;
    width: 100%;
    color: #fff;
}

.hero-slide-date {
    font-family: 'Karla', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.875rem;
    color: #FAFAFA;
}

.hero-slide-title {
    font-family: 'Karla', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 1.25rem 0;
    line-height: 1.196;
    max-width: 900px;
    color: #fff;
}

.hero-slide-excerpt {
    font-family: 'Karla', sans-serif;
    font-size: 1.125rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: #fff;
    max-width: 900px;
    text-align: left;
}

.hero-slide-cta {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: #01e55f;
    color: #1e1e23;
    font-family: 'Archia', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -0.03em;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-slide-link:hover .hero-slide-cta {
    background-color: #00cc50;
    transform: translateY(-2px);
}

/* Carousel Controls - Dots inline with CTA on right side */
.hero-carousel-controls {
    position: absolute;
    bottom: 2.875rem !important;
    right: 3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 4;
}

.hero-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-carousel-dot.active {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.hero-carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Hide arrow navigation */
.hero-carousel-nav {
    display: none;
}

.hero-carousel-pagination {
    display: none;
}
.swiper-pagination {
    position: absolute;
    text-align: center;
    transition: .3s opacity;
    transform: translate3d(0, 0, 0) !important;
    z-index: 10;
    top: var(--swiper-pagination-top, auto) !important;
    width: fit-content !important;
    left: auto !important;
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 500px;
    }
    
    .hero-slide-content {
        padding: 2rem;
    }
    
    .hero-slide-title {
        font-size: 2rem;
    }
    
    .hero-slide-excerpt {
        font-size: 1rem;
    }
    
    .hero-carousel-controls {
        bottom: 2.875rem !important;
        right: 2rem;
    }
}

/* =================================
   BLOG FILTERS SECTION
   ================================= */

.blog-filters-section {
    padding: 2rem 0 1rem 0;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.blog-filters-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-filters-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.blog-filters-label {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1e1e23;
    flex-shrink: 0;
}

.blog-filters-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-filter-button {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: #f5f5f5;
    color: #1e1e23;
    font-family: 'Karla', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-filter-button:hover {
    background-color: #e5e5e5;
    transform: translateY(-2px);
}

.blog-filter-button.active {
    background-color: #01e55f;
    color: #1e1e23;
    border-color: #01e55f;
}

@media (max-width: 768px) {
    .blog-filters-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .blog-filters-buttons {
        width: 100%;
    }
}

/* =================================
   BLOG GRID SECTION
   UPDATED: Card titles now use Karla Semi Bold
   ================================= */

.blog-grid-section {
    padding: 3rem 0;
    background-color: #fff;
}

.blog-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}

.blog-post-card {
    background: #FAFAFA;
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Unified hover effect - subtle shadow and lift */
.blog-post-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Entire card is clickable */
.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
}

.post-card-image-inner {
    position: relative;
    padding-bottom: 78%; /* Aspect ratio from Figma */
    overflow: hidden;
}

.post-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tags Overlay on Image */
.post-card-tags-overlay {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: #1e1e23;
    font-family: 'Karla', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.post-card-link:hover .post-tag {
    background-color: #ffffff;
    transform: translateY(-2px);
}

/* Date + Read Time Meta Row */
.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.25rem 1.5rem 0 1.5rem;
    padding: 0 !important;
}

.post-card-date {
    font-family: 'Karla', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #4e4e4e;
}

.post-card-read-time {
    font-family: 'Karla', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #4e4e4e;
}

.post-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* UPDATED: Changed to Karla Semi Bold (was likely different before) */
.post-card-title {
    font-family: 'Karla', sans-serif;
    font-size: 1.375rem;
    font-weight: 600; /* Semi Bold */
    margin: 0.75rem 0 1rem 0;
    line-height: 1.3;
    color: #1e1e23;
}

/* UPDATED: Read More Link - Karla Normal */
.post-card-read-more {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    font-weight: 400; /* Normal - changed from 600 */
    color: #1e1e23;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
    transition: all 0.3s ease;
    position: relative;
}

.post-card-link:hover .post-card-read-more {
    color: #01e55f;
    transform: translateX(4px);
}

/* Remove old elements */
.post-card-excerpt,
.post-card-author,
.post-card-category,
.post-card-button {
    display: none;
}

.no-posts {
    text-align: center;
    font-size: 1rem;
    color: #666;
    padding: 2rem 0;
    grid-column: 1 / -1;
}

/* Tablet */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-card-title {
        font-size: 1.5rem;
    }
}

/* =================================
   LARGE FEATURED SECTION
   UPDATED: Read More Link - Karla Normal
   ================================= */

.large-featured-section {
    padding: 3rem 0;
    background-color: #fff;
}

.large-featured-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.large-featured-article {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    padding: 10px;
}

/* Unified hover effect - subtle shadow and lift */
.large-featured-article:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
	border-radius: 30px;
}

/* Entire card is clickable */
.large-featured-link {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    text-decoration: none;
    color: inherit;
}

/* REVERSED: Content on LEFT, Image on RIGHT */
.large-featured-content {
    order: 1;
    background: #FAFAFA;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.large-featured-image {
    order: 2;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.large-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.large-featured-date {
    font-family: 'Karla', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #4e4e4e;
    margin-bottom: 1rem;
}

.large-featured-title {
    font-family: 'Karla', sans-serif;
    font-size: 1.625rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    color: #1e1e23;
}

.large-featured-excerpt {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1e1e23;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* UPDATED: Read More Link - Karla Normal */
.large-featured-read-more {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    font-weight: 400; /* Normal - changed from 600 */
    color: #1e1e23;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
    transition: all 0.3s ease;
}

.large-featured-link:hover .large-featured-read-more {
    color: #01e55f;
    transform: translateX(4px);
}

.large-featured-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: auto;
}

.large-featured-author .author-name {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #1e1e23;
}

/* Remove button from large featured */
.large-featured-button {
    display: none;
}

/* Tablet */
@media (max-width: 1200px) {
    .large-featured-link {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .large-featured-content {
        order: 2;
    }
    
    .large-featured-image {
        order: 1;
        margin-left: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .large-featured-section {
        padding: 2.5rem 0;
    }
    
    .large-featured-content {
        padding: 2rem;
    }
    
    .large-featured-title {
        font-size: 1.5rem;
    }
    
    .large-featured-excerpt {
        font-size: 1rem;
    }
}

/* =================================
   PAGINATION SECTION
   ================================= */

.blog-pagination-section {
    padding: 3rem 0 6rem 0;
    background-color: #fff;
}

.blog-pagination-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.blog-pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 5px 10px !important;
    margin: 3px !important;
}

.blog-pagination-wrapper .page-numbers a,
.blog-pagination-wrapper .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 1rem;
    background-color: #f5f5f5;
    color: #1e1e23;
    font-family: 'Karla', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.blog-pagination-wrapper .page-numbers a:hover {
    background-color: #01e55f;
    color: #1e1e23;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(1, 229, 95, 0.3);
}

.blog-pagination-wrapper .page-numbers .current {
    background-color: #1e1e23;
    color: #fff;
}
span.page-numbers.current {
    padding: 5px 10px;
    border: 1px solid;
    background: #1e1e23;
    color: #fff;
}

.blog-pagination-wrapper .page-numbers .dots {
    background: transparent;
    color: #999;
    cursor: default;
}

.blog-pagination-wrapper .page-numbers .dots:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Load More Button */
.load-more-section {
    padding: 2rem 0 4rem 0;
    text-align: center;
}

.load-more-button {
    display: inline-block;
    padding: 1.75rem 4rem;
    background-color: #000;
    color: #fff;
    font-family: 'Archia', sans-serif;
    font-size: 1.5625rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: -0.05em;
}

.load-more-button:hover {
    background-color: #01e55f;
    color: #1e1e23;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .blog-pagination-section {
        padding: 2rem 0 4rem 0;
    }
}

/* =================================
   GENERAL UTILITIES
   ================================= */

.blog-archive-page {
    background-color: #fff;
}

/* Focus states for accessibility */
.hero-slide-cta:focus,
.hero-carousel-dot:focus,
.blog-pagination-wrapper .page-numbers a:focus,
.load-more-button:focus {
    outline: 3px solid #01e55f;
    outline-offset: 3px;
}
/* =================================
   TOPIC FILTER — DROPDOWN + PILL
   ================================= */

.topic-filter-control {
    position: relative;
    display: inline-block;
}

.topic-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%231e1e23' stroke-width='2'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    font-family: 'Karla', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e1e23;
    cursor: pointer;
    min-width: 220px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.topic-filter-select:hover {
    border-color: #1e1e23;
}

.topic-filter-select:focus {
    outline: none;
    border-color: #01e55f;
    box-shadow: 0 0 0 3px rgba(1, 229, 95, 0.2);
}

.topic-filter-pills {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.topic-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem 0.5rem 1rem;
    background-color: #01e55f;
    color: #1e1e23;
    font-family: 'Karla', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.topic-filter-pill:hover {
    background-color: #00cc50;
    transform: translateY(-1px);
}

.topic-filter-pill-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(30, 30, 35, 0.15);
    font-size: 1rem;
    line-height: 1;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.topic-filter-pill:hover .topic-filter-pill-remove {
    background-color: rgba(30, 30, 35, 0.3);
}

@media (max-width: 768px) {
    .topic-filter-select {
        width: 100%;
        min-width: 0;
    }
}