/* ============================================
   Blogs Page - Pixel-Perfect CSS
   Based on Figma Design
   ============================================ */

/* ============================================
   Blogs Page - Specific Styles
   ============================================ */

/* Note: Base styles, Header, and Footer are inherited from css/styles.css */

/* ============================================
   HERO SECTION STYLES - Pixel Perfect Match
   ============================================ */
/* Inheriting layout (margin/border-radius) from styles.css */

/* Hero Section */
.hero-section {
    position: relative;
    width: calc(100% - 40px);
    margin: 20px auto 0;
    border-radius: 24px;
    overflow: hidden;
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 24px;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(100%) !important;
}


/* Override Global Wrapper to Center Content */
.hero-content-wrapper {
    width: 100%;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    color: var(--text-white);
    position: relative;
    z-index: 1;
    padding: 0;
}

.hero-title {
    font-size: 64px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: white;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    font-weight: var(--font-weight-normal);
    padding: 0 20px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-purple);
    padding: 10px 26px;
    border-radius: 10px;
    font-weight: var(--font-weight-semibold);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-purple);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-cta:hover {
    background-color: rgba(255, 255, 255, 0.98);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-cta span {
    font-size: 18px;
    line-height: 1;
    margin-left: 4px;
}

/* ============================================
   MAIN CONTENT & BLOG SECTION
   ============================================ */
.main-content {
    width: 100%;
    background-color: var(--bg-white);
}

.blog-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}



.blog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.blog-section-title {
    font-size: 48px;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin: 0;
}

.blog-see-all {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid gray;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-see-all:hover {
    background-color: var(--text-dark);
    color: var(--text-white);
}

/* Blog Grid - 4 rows x 2 columns */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    will-change: opacity, transform;
}

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

.blog-card-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 16px;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.blog-card-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.blog-card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
    max-width: 95%;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-light);
}

.blog-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-author {
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
}

.blog-read-time {
    color: var(--text-light);
}

/* Post-Footer Styles Removed - Inherited from styles.css */

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet Breakpoint (~768px) */
@media screen and (max-width: 768px) {

    .blog-section,
    .footer-newsletter-content,
    .footer-content-wrapper,
    .footer-bottom {
        padding-left: 24px;
        padding-right: 24px;
    }

    .header-bar {
        padding: 8px 0;
        gap: 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .blog-section {
        padding: 60px 24px;
    }

    .blog-section-title {
        font-size: 36px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        justify-items: center;
    }

    .blog-card-image {
        height: 220px;
        border-radius: 20px;
    }

    .blog-card-title {
        font-size: 1.5rem;
    }

    .footer-newsletter-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-newsletter-form {
        width: 100%;
        flex-direction: column;
    }

    .footer-newsletter-input {
        width: 100%;
    }

    .footer-content-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* Single column for very small screens - Moved outside of 768px media query */
@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-image {
        height: 280px;
    }

    .blog-card-title {
        font-size: 1.75rem;
    }
}

/* Mobile Breakpoint (~375px) */
@media screen and (max-width: 375px) {

    .header-container,
    .blog-section,
    .footer-newsletter-content,
    .footer-content-wrapper,
    .footer-bottom {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-section {
        padding: 60px 16px;
        min-height: 400px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 14px;
    }

    .blog-section {
        padding: 40px 16px;
    }

    .blog-section-title {
        font-size: 28px;
    }

    .blog-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .blog-see-all {
        width: 100%;
        justify-content: center;
    }

    .blog-card-image {
        height: 220px;
        border-radius: 16px;
    }

    .blog-card-title {
        font-size: 18px;
    }

    .blog-author-avatar {
        width: 32px;
        height: 32px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }
}