/* Estilos exclusivos da página inicial. */

.home-section {
    padding: 72px 0;
}

.home-hero {
    padding: 90px 0;
    background: #fff;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: center;
    gap: 50px;
}

.home-hero h1 {
    max-width: 780px;
    margin: 12px 0 20px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.04;
}

.home-hero p,
.section-heading p {
    max-width: 760px;
    line-height: 1.7;
}

.eyebrow {
    color: var(--mh-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.hero-mascot {
    display: flex;
    justify-content: center;
}

.hero-mascot img {
    width: min(100%, 360px);
    height: auto;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 8px 0 10px;
    font-size: clamp(28px, 4vw, 44px);
}

.blog-search {
    display: flex;
    gap: 12px;
    max-width: 900px;
}

.blog-search input {
    flex: 1;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    font-size: 16px;
}

.blog-search button {
    border: 0;
    border-radius: 10px;
    padding: 0 24px;
    background: var(--mh-red);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.category-card {
    min-height: 130px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 14px;
}

.category-card:hover {
    border-color: var(--mh-red);
    transform: translateY(-2px);
}

.category-code {
    color: var(--mh-red);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
}

.featured-placeholder,
.article-placeholder,
.acervo-placeholder {
    min-height: 260px;
    display: grid;
    place-items: center;
    padding: 30px;
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 16px;
    color: #777;
    text-align: center;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 950px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .home-hero-grid { grid-template-columns: 1fr; }
    .category-grid,
    .article-grid { grid-template-columns: 1fr; }
    .blog-search { flex-direction: column; }
    .blog-search button { min-height: 50px; }
}
