/* ========================================
   HOME PAGE STYLES
   ======================================== */

.home-page-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-bottom: 56px;
}

/* ----------------------------------------
   HERO SECTION
   ---------------------------------------- */
.home-hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    padding: 48px;
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.home-hero__inner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 380px);
    gap: 40px;
    align-items: center;
}

.home-hero__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    color: #60a5fa;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.home-hero__title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: 16px;
}

.home-hero__description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 28px;
    max-width: 58ch;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-hero--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-hero--primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-hero--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-hero--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

/* Stats inside Hero */
.home-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat__number {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.1;
}

.hero-stat__label {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Visual Column */
.home-hero__image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.home-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__card-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(8px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-card-quote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    color: #e2e8f0;
}

.hero-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #94a3b8;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ----------------------------------------
   BLCOS INFORMATIVOS (FEATURES)
   ---------------------------------------- */
.home-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    margin-bottom: 18px;
}

.feature-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark-secondary);
    margin-bottom: 8px;
}

.feature-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

/* ----------------------------------------
   DESTAQUE DE PÁGINA (PAGE HIGHLIGHT)
   ---------------------------------------- */
.page-highlight-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.page-highlight-card__media {
    width: 100%;
    height: 100%;
    min-height: 240px;
}

.page-highlight-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-highlight-card__content {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.page-highlight-card__badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.page-highlight-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.page-highlight-card__title a {
    color: var(--color-dark-secondary);
    text-decoration: none;
}

.page-highlight-card__title a:hover {
    color: var(--color-primary);
}

.page-highlight-card__excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.65;
    margin-bottom: 20px;
}

.btn-page-highlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

.btn-page-highlight:hover {
    color: var(--color-primary-dark);
}

/* ----------------------------------------
   SEÇÕES DE POSTS
   ---------------------------------------- */
.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-dark-secondary);
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 14px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.featured-grid,
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.featured-card,
.post-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}

.featured-card:hover,
.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.featured-card__image,
.post-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.featured-card__image img,
.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-card__image img,
.post-card:hover .post-card__image img {
    transform: scale(1.03);
}

.featured-card__body,
.post-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured-card__date,
.post-card__date {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.featured-card__title,
.post-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}

.featured-card__title a,
.post-card__title a {
    color: var(--color-dark-secondary);
    text-decoration: none;
}

.featured-card__title a:hover,
.post-card__title a:hover {
    color: var(--color-primary);
}

.featured-card__excerpt,
.post-card__excerpt {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.read-more {
    font-size: 0.88rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.read-more:hover {
    color: var(--color-primary-dark);
}

.no-posts-found {
    grid-column: 1 / -1;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ----------------------------------------
   BANNER CTA FINAL
   ---------------------------------------- */
.home-cta__card {
    background: var(--color-dark);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-cta__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}

.home-cta__desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 60ch;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition);
}

.btn-cta:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* ----------------------------------------
   RESPONSIVO
   ---------------------------------------- */
@media (max-width: 1024px) {
    .home-hero__inner {
        grid-template-columns: 1fr;
    }

    .home-hero__visual {
        max-width: 480px;
    }

    .featured-grid,
    .posts-grid,
    .home-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-highlight-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 32px 24px;
    }

    .home-hero__title {
        font-size: 1.75rem;
    }

    .home-hero__description {
        font-size: 0.95rem;
    }

    .home-cta__card {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }
}

@media (max-width: 640px) {
    .featured-grid,
    .posts-grid,
    .home-features__grid {
        grid-template-columns: 1fr;
    }

    .page-highlight-card__content {
        padding: 24px;
    }

    .section-title {
        font-size: 1.25rem;
    }
}