@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&display=swap');

:root {
    --amb-congress-blue: #013963;
    --amb-congress-blue-dark: #012a49;
    --amb-congress-blue-light: #0f74ad;
    --amb-congress-teal: #008f8f;
    --amb-congress-surface: #f4f4f4;
    --amb-congress-surface-light: #f7fafc;
    --amb-congress-border: #d8e3ea;
    --amb-congress-text: #767676;
    --amb-congress-font: 'Poppins', sans-serif;
}

/* ==========================================================================
   Cabeçalho interno
   ========================================================================== */

.amb-congress-page-header {
    position: relative;
    overflow: hidden;
    background: var(--amb-congress-blue);
    color: #fff;
}

.amb-congress-page-header::after {
    content: "";
    position: absolute;
    right: 25%;
    bottom: -18px;
    width: 200px;
    height: 34px;
    transform: skewX(-36deg);
    background: rgba(255, 255, 255, 0.88);
}

.amb-congress-page-header__inner {
    display: flex;
    width: min(100% - 2rem, 1150px);
    min-height: 92px;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.amb-congress-page-header h1 {
    font-family: var(--amb-congress-font);
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
}

.amb-congress-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
    font-family: var(--amb-congress-font);
    font-size: 0.78rem;
    font-weight: 700;
}

.amb-congress-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.45rem;
    opacity: 0.65;
}

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

/* ==========================================================================
   Área principal e layout com menu vertical
   ========================================================================== */

.amb-congress-page {
    background: #fff;
    padding: 2.8rem 1rem 5rem;
}

.amb-congress-page__inner {
    width: min(100%, 1150px);
    margin-inline: auto;
}

.amb-congress-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.amb-congress-layout__sidebar {
    min-width: 0;
}

.amb-congress-layout__content {
    min-width: 0;
}

/* ==========================================================================
   Navegação vertical das edições
   ========================================================================== */

.amb-congress-edition-navigation {
    display: grid;
    gap: 0.65rem;
}

.amb-congress-edition-navigation__link {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background: var(--amb-congress-surface);
    color: var(--amb-congress-blue);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.amb-congress-edition-navigation__link > i {
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        width 180ms ease,
        opacity 180ms ease,
        transform 180ms ease;
}

.amb-congress-edition-navigation__link:hover {
    transform: translateY(-1px);
    border-color: rgba(1, 57, 99, 0.22);
    background: #e4eef5;
    color: var(--amb-congress-blue);
    box-shadow: 0 8px 22px rgba(1, 57, 99, 0.08);
}

.amb-congress-edition-navigation__link[data-active="true"] {
    transform: translateX(3px);
    border-color: var(--amb-congress-blue);
    background: var(--amb-congress-blue);
    color: #fff;
    box-shadow: 0 10px 23px rgba(1, 57, 99, 0.17);
}

.amb-congress-edition-navigation__link:hover > i,
.amb-congress-edition-navigation__link[data-active="true"] > i {
    width: 0.9rem;
    opacity: 1;
}

.amb-congress-edition-navigation__link:hover .bi-chevron-right {
    transform: translateX(2px);
}

.amb-congress-edition-navigation__link.is-disabled {
    color: #9ca8b1;
    cursor: not-allowed;
}

.amb-congress-edition-navigation__link.is-disabled:hover {
    transform: none;
    border-color: transparent;
    background: var(--amb-congress-surface);
    color: #9ca8b1;
    box-shadow: none;
}

.amb-congress-edition-navigation__empty {
    display: flex;
    min-height: 120px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px dashed #cbd9e2;
    border-radius: 12px;
    padding: 1rem;
    color: #8a98a2;
    font-size: 0.75rem;
    text-align: center;
}

.amb-congress-edition-navigation__empty i {
    color: #9db8ca;
    font-size: 1.5rem;
}

/* ==========================================================================
   Hero da edição
   ========================================================================== */

.amb-congress-hero {
    min-width: 0;
}

.amb-congress-hero__header {
    margin-bottom: 1.1rem;
}

.amb-congress-hero__eyebrow,
.amb-congress-section-heading > span {
    color: var(--amb-congress-teal);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.amb-congress-hero__header h2 {
    margin-top: 0.35rem;
    color: var(--amb-congress-blue);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 700;
    line-height: 1.14;
    text-transform: uppercase;
}

.amb-congress-hero__lead {
    max-width: 760px;
    margin-top: 0.65rem;
    color: #425768;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.55;
}

.amb-congress-hero__visual {
    overflow: hidden;
    border-radius: 0;
    background: #e8f0f5;
    box-shadow: none;
}

.amb-congress-hero__visual img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7.2;
    object-fit: cover;
}

.amb-congress-hero__fallback {
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 7.2;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 76% 20%,
            rgba(0, 143, 143, 0.48),
            transparent 31%
        ),
        linear-gradient(145deg, #07517e, #032f4a);
    color: #fff;
}

.amb-congress-hero__fallback i {
    font-size: 4rem;
}

.amb-congress-hero__fallback strong {
    margin-top: 0.65rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.amb-congress-hero__fallback span {
    margin-top: 0.1rem;
    font-size: 2rem;
    font-weight: 700;
}

.amb-congress-hero__details {
    display: grid;
    gap: 1.3rem;
    margin-top: 1.4rem;
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: start;
}

.amb-congress-hero__description {
    color: #767676;
    font-family: var(--amb-congress-font);
    font-size: 0.87rem;
    line-height: 1.7;
}

.amb-congress-hero__description p + p {
    margin-top: 0.7rem;
}

.amb-congress-hero__meta {
    display: grid;
    gap: 0.65rem;
}

.amb-congress-hero__meta div {
    border: 1px solid #dce6ec;
    border-radius: 11px;
    padding: 0.85rem;
    background: #f4f7f9;
}

.amb-congress-hero__meta dt {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #82919d;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
}

.amb-congress-hero__meta dd {
    margin-top: 0.3rem;
    color: var(--amb-congress-blue);
    font-size: 0.78rem;
    font-weight: 800;
}

/* ==========================================================================
   Estatísticas
   ========================================================================== */

.amb-congress-stat-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.6rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.amb-congress-stat-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    border: 1px solid #dae5eb;
    border-radius: 12px;
    padding: 0.85rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(1, 57, 99, 0.05);
}

.amb-congress-stat-card i {
    display: flex;
    width: 44px;
    height: 44px;
    grid-row: span 2;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #e6f1f6;
    color: var(--amb-congress-blue-light);
    font-size: 1.15rem;
}

.amb-congress-stat-card strong {
    padding-left: 0.7rem;
    color: var(--amb-congress-blue);
    font-size: 1.12rem;
    font-weight: 700;
}

.amb-congress-stat-card span {
    padding-left: 0.7rem;
    color: #7e8c97;
    font-size: 0.68rem;
}

/* ==========================================================================
   Seções
   ========================================================================== */

.amb-congress-section {
    margin-top: 3.2rem;
}

.amb-congress-section-heading {
    max-width: 720px;
    margin-bottom: 1.15rem;
}

.amb-congress-section-heading h2 {
    margin-top: 0.3rem;
    color: var(--amb-congress-blue);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
}

.amb-congress-section-heading p {
    margin-top: 0.4rem;
    color: var(--amb-congress-text);
    font-size: 0.8rem;
    line-height: 1.55;
}

/* ==========================================================================
   Ações
   ========================================================================== */

.amb-congress-action-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amb-congress-action-card {
    display: grid;
    min-height: 78px;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    gap: 0.8rem;
    align-items: center;
    border: 1px solid #d8e4eb;
    border-radius: 13px;
    padding: 0.85rem;
    background: #fff;
    color: var(--amb-congress-blue);
    box-shadow: 0 6px 18px rgba(1, 57, 99, 0.06);
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.amb-congress-action-card:hover {
    transform: translateY(-2px);
    border-color: var(--amb-congress-blue);
    background: var(--amb-congress-blue);
    color: #fff;
    box-shadow: 0 12px 26px rgba(1, 57, 99, 0.17);
}

.amb-congress-action-card.is-disabled {
    color: #8c99a3;
    cursor: not-allowed;
}

.amb-congress-action-card.is-disabled:hover {
    transform: none;
    border-color: #d8e4eb;
    background: #fff;
    color: #8c99a3;
    box-shadow: 0 6px 18px rgba(1, 57, 99, 0.06);
}

.amb-congress-action-card__icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #e6f1f6;
    color: var(--amb-congress-blue-light);
    font-size: 1.25rem;
}

.amb-congress-action-card:hover .amb-congress-action-card__icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.amb-congress-action-card__content strong,
.amb-congress-action-card__content small {
    display: block;
}

.amb-congress-action-card__content strong {
    font-size: 0.8rem;
    font-weight: 700;
}

.amb-congress-action-card__content small {
    margin-top: 0.25rem;
    color: #7f8e99;
    font-size: 0.67rem;
    line-height: 1.35;
}

.amb-congress-action-card:hover .amb-congress-action-card__content small {
    color: rgba(255, 255, 255, 0.78);
}

.amb-congress-action-card.is-disabled:hover
    .amb-congress-action-card__content small {
    color: #7f8e99;
}

/* ==========================================================================
   Galerias, vídeos e notícias
   ========================================================================== */

.amb-congress-media-grid,
.amb-congress-news-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.amb-congress-media-card,
.amb-congress-news-card {
    overflow: hidden;
    border: 1px solid var(--amb-congress-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(1, 57, 99, 0.07);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.amb-congress-media-card:hover,
.amb-congress-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(1, 57, 99, 0.13);
}

.amb-congress-media-card__visual,
.amb-congress-news-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8f0f5;
}

.amb-congress-media-card__visual img,
.amb-congress-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amb-congress-media-card__fallback,
.amb-congress-news-card__fallback {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(0, 143, 143, 0.42),
            transparent 30%
        ),
        linear-gradient(145deg, #07517e, #032f4a);
    color: #fff;
}

.amb-congress-media-card__fallback i,
.amb-congress-news-card__fallback i {
    font-size: 2.4rem;
}

.amb-congress-news-card__fallback span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.amb-congress-media-card__visual > span {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.94);
    color: var(--amb-congress-blue);
    font-size: 0.62rem;
    font-weight: 700;
}

.amb-congress-media-card__body,
.amb-congress-news-card__body {
    padding: 0.95rem;
}

.amb-congress-media-card__body h3,
.amb-congress-news-card__body h3 {
    color: var(--amb-congress-blue);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
}

.amb-congress-media-card__body p,
.amb-congress-news-card__body p {
    margin-top: 0.4rem;
    color: #768591;
    font-size: 0.72rem;
    line-height: 1.5;
}

.amb-congress-media-card__body > a,
.amb-congress-news-card__body > a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    color: var(--amb-congress-blue-light);
    font-size: 0.72rem;
    font-weight: 700;
}

.amb-congress-media-card__pending,
.amb-congress-news-card__body > span {
    display: inline-flex;
    margin-top: 0.75rem;
    color: #9aa6af;
    font-size: 0.67rem;
    font-weight: 800;
}

.amb-congress-news-card__body time {
    display: block;
    margin-bottom: 0.4rem;
    color: #8d9aa4;
    font-size: 0.65rem;
}

/* ==========================================================================
   Redes sociais
   ========================================================================== */

.amb-congress-section--social {
    border-top: 1px solid #dce6ec;
    padding-top: 2rem;
}

.amb-congress-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.amb-congress-social-links a {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--amb-congress-blue);
    color: #fff;
    transition:
        transform 180ms ease,
        background-color 180ms ease;
}

.amb-congress-social-links a:hover {
    transform: translateY(-2px);
    background: var(--amb-congress-teal);
}

/* ==========================================================================
   Estado vazio
   ========================================================================== */

.amb-congress-empty-state {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #c9d7e1;
    border-radius: 14px;
    padding: 2rem 1.2rem;
    background: #fbfcfd;
    color: #7f8d98;
    text-align: center;
}

.amb-congress-empty-state > i {
    color: #9db8ca;
    font-size: 2.1rem;
}

.amb-congress-empty-state h3 {
    margin-top: 0.6rem;
    color: var(--amb-congress-blue);
    font-size: 0.95rem;
    font-weight: 700;
}

.amb-congress-empty-state p {
    max-width: 520px;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    line-height: 1.5;
}

/* ==========================================================================
   Divisor
   ========================================================================== */

.amb-congress-diagonal-divider {
    position: relative;
    height: 74px;
    overflow: hidden;
    background: #d7d7d7;
}

.amb-congress-diagonal-divider::before {
    content: "";
    position: absolute;
    inset: -37px -4% auto;
    height: 62px;
    transform: rotate(2.1deg);
    background: #fff;
    border-bottom: 8px solid var(--amb-congress-blue);
}

.amb-congress-diagonal-divider span {
    position: absolute;
    inset: 24px -5% auto;
    height: 48px;
    transform: rotate(-1.6deg);
    background: rgba(255, 255, 255, 0.47);
}

/* ==========================================================================
   Responsividade
   ========================================================================== */

@media (min-width: 1024px) {
    .amb-congress-layout__sidebar {
        position: sticky;
        top: 190px;
    }
}

@media (max-width: 900px) {
    .amb-congress-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 1.4rem;
    }

    .amb-congress-media-grid,
    .amb-congress-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .amb-congress-hero__details {
        grid-template-columns: 1fr;
    }

    .amb-congress-hero__meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .amb-congress-page-header__inner {
        min-height: 105px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.55rem;
    }

    .amb-congress-breadcrumb {
        justify-content: flex-start;
    }

    .amb-congress-layout {
        grid-template-columns: 1fr;
    }

    .amb-congress-edition-navigation {
        display: flex;
        overflow-x: auto;
        gap: 0.55rem;
        padding-bottom: 0.35rem;
        scroll-snap-type: x proximity;
    }

    .amb-congress-edition-navigation__link {
        min-width: 150px;
        width: auto;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .amb-congress-edition-navigation__link:hover,
    .amb-congress-edition-navigation__link[data-active="true"] {
        transform: translateY(-2px);
    }

    .amb-congress-action-grid {
        grid-template-columns: 1fr;
    }

    .amb-congress-hero__visual img,
    .amb-congress-hero__fallback {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 560px) {
    .amb-congress-stat-grid,
    .amb-congress-media-grid,
    .amb-congress-news-grid,
    .amb-congress-hero__meta {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .amb-congress-edition-navigation__link,
    .amb-congress-action-card,
    .amb-congress-media-card,
    .amb-congress-news-card,
    .amb-congress-social-links a {
        transition: none !important;
    }
}
