/* Shared institutional language for every frontend page. */
.frontend-site {
    --page-hero-bg: linear-gradient(135deg, #04142d 0%, #082a57 54%, #031126 100%);
    --page-hero-border: rgba(255, 255, 255, .14);
    --page-hero-muted: rgba(255, 255, 255, .72);
}

.frontend-site.is-subpage main {
    min-height: 55vh;
}

.frontend-site.is-subpage main h2,
.frontend-site.is-subpage main h3 {
    letter-spacing: -.018em;
    text-wrap: balance;
}

.frontend-site.is-subpage main :is(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    input[type="date"],
    select,
    textarea
) {
    border-radius:12px;
    border-color: #dce3ec;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.frontend-site.is-subpage main :is(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    input[type="date"],
    select,
    textarea
):focus {
    border-color: var(--color-gold-500);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(245, 180, 0, .13);
}

.frontend-site.is-subpage main :is(
    .back-list-btn,
    .section-more-btn,
    .page-back-btn,
    .download-btn
) {
    border-radius: var(--radius-control) !important;
    font-weight: 850;
}

.frontend-site.is-subpage main :is(
    .news-pagination,
    .announcement-pagination,
    .gallery-pagination,
    .video-pagination,
    .documents-pagination
) {
    margin-top: 36px;
}

.frontend-site :is(
    .f-page-hero,
    .activity-page-hero,
    .activity-detail-hero,
    .announcement-page-hero,
    .announcement-detail-hero,
    .champion-page-hero,
    .champion-detail-hero,
    .committees-hero,
    .committee-detail-hero,
    .competition-hero,
    .results-hero-card,
    .contact-hero,
    .documents-hero,
    .document-detail-hero,
    .minister-hero,
    .president-hero,
    .teams-page-hero,
    .team-detail-hero,
    .news-page-hero,
    .news-detail-hero,
    .page-hero,
    .penalized-hero-card,
    .gallery-page-hero,
    .gallery-detail-hero,
    .search-page-hero,
    .video-page-hero,
    .video-detail-hero
) {
    position: relative;
    isolation: isolate;
    min-height: 238px;
    margin: 0 0 38px;
    padding: clamp(30px, 4vw, 52px) !important;
    overflow: hidden;
    border: 1px solid var(--page-hero-border) !important;
    border-radius: 12px !important;
    color: #fff;
    background: var(--page-hero-bg) !important;
    box-shadow: var(--shadow-panel) !important;
}

.frontend-site :is(
    .f-page-hero,
    .activity-page-hero,
    .activity-detail-hero,
    .announcement-page-hero,
    .announcement-detail-hero,
    .champion-page-hero,
    .champion-detail-hero,
    .committees-hero,
    .committee-detail-hero,
    .competition-hero,
    .results-hero-card,
    .contact-hero,
    .documents-hero,
    .document-detail-hero,
    .minister-hero,
    .president-hero,
    .teams-page-hero,
    .team-detail-hero,
    .news-page-hero,
    .news-detail-hero,
    .page-hero,
    .penalized-hero-card,
    .gallery-page-hero,
    .gallery-detail-hero,
    .search-page-hero,
    .video-page-hero,
    .video-detail-hero
)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -2 !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    background:
        radial-gradient(circle at 88% 12%, rgba(245, 180, 0, .2), transparent 27%),
        radial-gradient(circle at 8% 100%, rgba(42, 104, 184, .25), transparent 30%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 16px) !important;
    pointer-events: none;
}

.frontend-site :is(
    .f-page-hero,
    .activity-page-hero,
    .announcement-page-hero,
    .champion-page-hero,
    .committees-hero,
    .competition-hero,
    .results-hero-card,
    .contact-hero,
    .documents-hero,
    .minister-hero,
    .president-hero,
    .teams-page-hero,
    .news-page-hero,
    .page-hero,
    .penalized-hero-card,
    .gallery-page-hero,
    .search-page-hero,
    .video-page-hero
)::after {
    content: "TGF" !important;
    position: absolute !important;
    top: 50% !important;
    right: clamp(22px, 5vw, 72px) !important;
    bottom: auto !important;
    left: auto !important;
    z-index: -1 !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    color: rgba(255, 255, 255, .035) !important;
    background: none !important;
    font-size: clamp(80px, 11vw, 160px) !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: -.08em !important;
    opacity: 1 !important;
    transform: translateY(-50%) !important;
    pointer-events: none;
}

.frontend-site :is(
    .f-page-hero,
    .activity-page-hero,
    .activity-detail-hero,
    .announcement-page-hero,
    .announcement-detail-hero,
    .champion-page-hero,
    .champion-detail-hero,
    .committees-hero,
    .committee-detail-hero,
    .competition-hero,
    .results-hero-card,
    .contact-hero,
    .documents-hero,
    .document-detail-hero,
    .minister-hero,
    .president-hero,
    .teams-page-hero,
    .team-detail-hero,
    .news-page-hero,
    .news-detail-hero,
    .page-hero,
    .penalized-hero-card,
    .gallery-page-hero,
    .gallery-detail-hero,
    .search-page-hero,
    .video-page-hero,
    .video-detail-hero
) h1 {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(32px, 4vw, 54px) !important;
    line-height: 1.08 !important;
    font-weight: 900 !important;
    letter-spacing: -.035em !important;
    text-wrap: balance;
}

.frontend-site :is(
    .f-page-hero,
    .activity-page-hero,
    .activity-detail-hero,
    .announcement-page-hero,
    .announcement-detail-hero,
    .champion-page-hero,
    .committees-hero,
    .committee-detail-hero,
    .competition-hero,
    .results-hero-card,
    .contact-hero,
    .documents-hero,
    .document-detail-hero,
    .minister-hero,
    .president-hero,
    .teams-page-hero,
    .team-detail-hero,
    .news-page-hero,
    .news-detail-hero,
    .page-hero,
    .penalized-hero-card,
    .gallery-page-hero,
    .gallery-detail-hero,
    .search-page-hero,
    .video-page-hero,
    .video-detail-hero
) p {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 14px 0 0 !important;
    color: var(--page-hero-muted) !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
}

.frontend-site :is(
    .f-page-hero__eyebrow,
    .news-hero-eyebrow,
    .announcement-page-eyebrow,
    .activity-hero-eyebrow,
    .champion-page-eyebrow,
    .committees-eyebrow,
    .contact-hero-eyebrow,
    .gallery-page-eyebrow,
    .gallery-hero-eyebrow,
    .teams-hero-eyebrow,
    .team-hero-eyebrow,
    .video-page-eyebrow,
    .video-detail-eyebrow
) {
    position: relative;
    z-index: 3;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0 0 15px !important;
    padding: 7px 11px !important;
    border: 1px solid rgba(245, 180, 0, .25) !important;
    border-radius: 12px !important;
    color: #f7c83f !important;
    background: rgba(245, 180, 0, .12) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase;
}

.frontend-site :is(
    .news-hero-meta,
    .announcement-page-meta,
    .champion-page-meta,
    .contact-hero-meta,
    .teams-hero-meta,
    .results-hero-stats,
    .penalized-hero-stats
) {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px !important;
}

.frontend-site :is(
    .news-hero-meta,
    .announcement-page-meta,
    .champion-page-meta,
    .contact-hero-meta,
    .teams-hero-meta,
    .results-hero-stats,
    .penalized-hero-stats
) > * {
    border: 1px solid rgba(255, 255, 255, .13) !important;
    border-radius: var(--radius-control) !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .08) !important;
    box-shadow: none !important;
}

.f-page-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 980px;
}

.f-page-hero__eyebrow svg {
    width: 16px;
    height: 16px;
}

.frontend-site :is(
    .page-breadcrumb,
    .news-breadcrumb,
    .announcement-breadcrumb,
    .document-breadcrumb,
    .gallery-breadcrumb
) {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    font-weight: 750;
}

.frontend-site :is(
    .page-breadcrumb,
    .news-breadcrumb,
    .announcement-breadcrumb,
    .document-breadcrumb,
    .gallery-breadcrumb
) a {
    color: #f7c83f;
    text-decoration: none;
}

.frontend-site :is(
    .page-breadcrumb,
    .news-breadcrumb,
    .announcement-breadcrumb,
    .document-breadcrumb,
    .gallery-breadcrumb
) a:hover {
    text-decoration: underline;
}

.f-page-hero__meta,
.f-page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
}

.f-page-hero__meta > * {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--radius-control);
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: 11px;
    font-weight: 800;
}

.f-page-hero__meta svg {
    width: 15px;
    height: 15px;
}

.frontend-site .page-title-area {
    padding: 0;
    background: transparent;
}

.frontend-site .page-title-area .container {
    position: relative;
    isolation: isolate;
    margin-top: 30px;
    margin-bottom: 38px;
    padding: clamp(30px, 4vw, 52px) !important;
    overflow: hidden;
    border: 1px solid var(--page-hero-border);
    border-radius: 12px;
    color: #fff;
    background: var(--page-hero-bg);
    box-shadow: var(--shadow-panel);
}

.frontend-site .page-title-area .container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 88% 12%, rgba(245, 180, 0, .2), transparent 27%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 16px);
}

.frontend-site .page-title-area h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

@media (max-width: 768px) {
    .frontend-site :is(
        .f-page-hero,
        .activity-page-hero,
        .activity-detail-hero,
        .announcement-page-hero,
        .announcement-detail-hero,
        .champion-page-hero,
        .champion-detail-hero,
        .committees-hero,
        .committee-detail-hero,
        .competition-hero,
        .results-hero-card,
        .contact-hero,
        .documents-hero,
        .document-detail-hero,
        .minister-hero,
        .president-hero,
        .teams-page-hero,
        .team-detail-hero,
        .news-page-hero,
        .news-detail-hero,
        .page-hero,
        .penalized-hero-card,
        .gallery-page-hero,
        .gallery-detail-hero,
        .search-page-hero,
        .video-page-hero,
        .video-detail-hero
    ) {
        min-height: 205px;
        margin-bottom: 28px;
        padding: 28px 22px !important;
        border-radius: 18px !important;
    }

    .frontend-site :is(
        .f-page-hero,
        .activity-page-hero,
        .announcement-page-hero,
        .champion-page-hero,
        .committees-hero,
        .competition-hero,
        .results-hero-card,
        .contact-hero,
        .documents-hero,
        .minister-hero,
        .president-hero,
        .teams-page-hero,
        .news-page-hero,
        .page-hero,
        .penalized-hero-card,
        .gallery-page-hero,
        .search-page-hero,
        .video-page-hero
    )::after {
        right: 16px !important;
        font-size: 78px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .frontend-site *,
    .frontend-site *::before,
    .frontend-site *::after {
        scroll-behavior: auto !important;
    }
}
