/* Layouts internos — Guarani Esporte Clube */

.page-breadcrumb {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.page-breadcrumb a {
    color: var(--guarani-red);
    text-decoration: none;
}

.page-breadcrumb a:hover {
    text-decoration: underline;
}

/* Breadcrumb sobre faixa vermelha (hero interno): contraste legível */
.page-hero .page-breadcrumb {
    color: rgba(255, 255, 255, 0.92);
}
.page-hero .page-breadcrumb a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.page-hero .page-breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.85);
}
.page-hero .page-breadcrumb span {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

/* Bloco explicando integração futura (CMS / API / PHP) */
.dynamic-feed-note {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(194, 39, 44, 0.08), rgba(198, 52, 56, 0.06));
    border: 1px solid rgba(194, 39, 44, 0.2);
    margin-bottom: 2rem;
}

.dynamic-feed-note i {
    font-size: 1.5rem;
    color: var(--guarani-red);
    flex-shrink: 0;
}

.dynamic-feed-note strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.dynamic-feed-note p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Listagens — notícias / galerias */
.listing-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.listing-toolbar .form-select,
.listing-toolbar .form-control {
    max-width: 220px;
    font-size: 0.875rem;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.listing-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.listing-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.listing-card-img {
    aspect-ratio: 16 / 10;
    background: #fff;
    position: relative;
}

.listing-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* preenche o espaço (pode cortar) */
    object-position: center;
    display: block;
    padding: 0;
    background: transparent;
}

.listing-card-img .placeholder-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.2);
    font-size: 2.5rem;
}

.listing-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-card-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--guarani-red);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.listing-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.listing-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    flex: 1;
}

.listing-card-more {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--guarani-red);
}

/* Eventos — data em destaque */
.event-card .listing-card-img {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--guarani-red), #8b1a1d);
}

.event-date-badge {
    text-align: center;
    color: var(--color-white);
}

.event-date-badge .day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.event-date-badge .mon {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* Paginação (visual) */
.pagination-guarani {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
}

.pagination-guarani .page-link {
    border-radius: 8px;
    border: 1px solid #ddd;
    color: var(--color-primary);
    min-width: 2.5rem;
    text-align: center;
}

.pagination-guarani .page-item.active .page-link {
    background: var(--guarani-red);
    border-color: var(--guarani-red);
    color: #fff;
}

.prose-block p {
    margin-bottom: 1rem;
    color: var(--color-text);
    line-height: 1.75;
}

.prose-block h2, .prose-block h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 700;
}

/* Atividades — blocos alternados */
.activity-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

@media (min-width: 768px) {
    .activity-block {
        grid-template-columns: minmax(200px, 320px) 1fr;
    }
}

.activity-block:last-child {
    border-bottom: none;
}

.activity-block h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.activity-media {
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-secondary);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.activity-body {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.activity-body strong {
    color: var(--color-primary);
}

/* Revista — iframe + edições */
.revista-stage {
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem;
}

.revista-stage iframe {
    width: 100%;
    min-height: 520px;
    border: 0;
}

.editions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.editions-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: var(--color-secondary);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.editions-list a:hover {
    background: var(--guarani-red);
    color: #fff;
}

/* Institucional — duas colunas */
.instit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .instit-grid {
        grid-template-columns: 240px 1fr;
    }
}

.instit-nav {
    position: sticky;
    top: 100px;
}

.instit-nav .list-group-item {
    border-radius: 8px !important;
    margin-bottom: 4px;
    border: 1px solid #eee;
    font-size: 0.9rem;
}

.instit-nav .list-group-item.active {
    background: var(--guarani-red);
    border-color: var(--guarani-red);
}

/* Home — últimos eventos (compacto) */
.home-event-compact {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fafafa;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-event-compact:hover {
    border-color: rgba(194, 39, 44, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.home-event-compact__date {
    flex-shrink: 0;
    width: 3.5rem;
    text-align: center;
    padding: 0.5rem 0.35rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--guarani-red), #8b1a1d);
    color: var(--color-white);
}

.home-event-compact__date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.home-event-compact__date .mon {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.92;
}

.home-event-compact__meta {
    display: block;
    font-size: 0.72rem;
    color: var(--guarani-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.home-event-compact__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.home-event-compact:hover .home-event-compact__title {
    color: var(--guarani-red);
}

.home-event-compact__excerpt {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.45;
}

/* Home — carrossel de atividades */
.section-home-carousel .carousel-indicators {
    margin-bottom: 0.5rem;
}

.home-activity-slide {
    min-height: 280px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .home-activity-slide {
        min-height: 320px;
        padding: 3rem 2.5rem;
    }
}

.home-activity-slide__icon {
    font-size: 3rem;
    color: var(--guarani-red);
    margin-bottom: 1rem;
    line-height: 1;
}

.home-activity-slide__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.home-activity-slide__text {
    max-width: 32rem;
    margin: 0 auto 1rem;
    color: var(--color-text-light);
    line-height: 1.65;
    font-size: 0.95rem;
}

.home-activity-slide__meta {
    font-size: 0.9rem;
    color: var(--color-text);
}
