/* 20th Anniversary Page Base Styles */
/* This file only contains template-level styles. Block-specific CSS is loaded via wp_enqueue_block_style_assets */

body.page-template-templates20th-anniversary-banesco-php,
body.page-template-templates20th-anniversary-banesco-stories-php,
body.page-template-templates20th-anniversary-banesco-moments-php {
    background-color: var(--color-pure-black);
}

body.page-template-templates20th-anniversary-banesco-php .cpm-anniversary-page,
body.page-template-templates20th-anniversary-banesco-stories-php .cpm-anniversary-page,
body.page-template-templates20th-anniversary-banesco-moments-php .cpm-anniversary-page {
    background-color: var(--color-pure-black);
    color: var(--color-white);
}

/* Header override for anniversary template */
.page-template-templates20th-anniversary-banesco-php .site-header,
.page-template-templates20th-anniversary-banesco-php header.site-header,
.page-template-templates20th-anniverszry-banescophp .site-header,
.page-template-templates20th-anniverszry-banescophp header.site-header,
.page-template-templates20th-anniversary-banesco .site-header,
.page-template-templates20th-anniversary-banesco header.site-header {
    display: none;
}

header.header {
    display: none;
}

body.page-template-templates20th-anniversary-banesco-php .cpm-anniversary-footer,
body.page-template-templates20th-anniversary-banesco-stories-php .cpm-anniversary-footer,
body.page-template-templates20th-anniversary-banesco-moments-php .cpm-anniversary-footer {
    background-color: var(--color-pure-black);
    color: var(--color-white);
    padding: 48px 24px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

body.page-template-templates20th-anniversary-banesco-php .cpm-anniversary-footer__logo img,
body.page-template-templates20th-anniversary-banesco-stories-php .cpm-anniversary-footer__logo img,
body.page-template-templates20th-anniversary-banesco-moments-php .cpm-anniversary-footer__logo img {
    filter: brightness(0) invert(1);
}

.cpm-anniversary-footer a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
}

.cpm-anniversary-footer__row {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cpm-anniversary-footer__row--legal {
    gap: 4px;
    align-items: flex-end;
    p {
        position: relative;
        bottom: -5px;
    }
}

.cpm-anniversary-footer__row--brand {
    justify-content: center;
    text-align: left;
}

.cpm-anniversary-footer__logo {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 16px;
}
.cpm-anniversary-footer__logo img {
    height: 30px;
    width: auto;
}

.cpm-anniversary-footer__social {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.cpm-anniversary-footer__social-item img {
    width: 21px;
    height: 21px;
}

.cpm-anniversary-footer__menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.cpm-anniversary-footer__menu-item {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.cpm-anniversary-footer__menu-item:not(:first-child)::before {
    content: '|';
    display: inline-block;
    margin-right: 24px;
    color: #5F5F5F;

}

.cpm-anniversary-footer__row--badge img {
    height: 48px;
    width: auto;
}

.cpm-anniversary-footer__copy {
    margin: 0;
    color: var(--color-white);
    text-align: center;
    font-family: var(--font-family-primary);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px; /* Figma: 216.667% */
}

.cpm-anniversary-hero__logo-picture {
    display: inline-block;
}

.cpm-anniversary-hero__logo {
    display: block;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .cpm-anniversary-footer {
        padding: 40px 16px 48px;
    }

    .cpm-anniversary-footer__row {
        max-width: 100%;
    }

    .cpm-anniversary-footer__menu {
        flex-direction: column;
        gap: 12px;
    }

    .cpm-anniversary-footer__menu-item:not(:first-child)::before {
        display: none;
    }
}

/* ==========================================================================
   Pixel pass — body sections vs Figma 20th Anniversary Rebranding 107-122.
   Targeted visual matches only. Black background between sections is the
   default (per Figma — no decorative frames around body content). Only the
   hero gets the green collage frame; body sections sit on black.
   ========================================================================== */

/* Photos / videos across body sections: rounded corners per Figma.
   Targets <img> AND <video> elements (leadership tiles use HTML5 video). */
.cpm-anniversary-page .cpm-stories-carousel-container img,
.cpm-anniversary-page .cpm-leadership-hero__video,
.cpm-anniversary-page .cpm-leadership-hero img {
    border-radius: 24px; /* Figma: photo card radius */
    overflow: hidden;
}

/* Leadership-card media + moments-block img — tighter radius per Figma. */
.cpm-anniversary-page .cpm-leadership-card img,
.cpm-anniversary-page .cpm-leadership-card video,
.cpm-anniversary-page .cpm-moments-block img {
    border-radius: 10px;
    overflow: hidden;
}

/* Section + name headings: white per Figma (theme default is green
   --color-heading #007953, but on this dark template Figma shows white). */
.cpm-anniversary-page .cpm-leadership-intro-heading,
.cpm-anniversary-page .cpm-leadership-block h4,
.cpm-anniversary-page .cpm-anniversary-stories__heading {
    color: #fff; /* Figma: white headlines on black */
}

/* Stories CTA — ghost button (transparent bg, white border, white text).
   Overrides the cpm-btn-primary green-pill styling that's also on the same anchor. */
.cpm-anniversary-page .cpm-anniversary-stories__cta,
.cpm-anniversary-page .cpm-anniversary-stories__cta.cpm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 25px;
    border-radius: 6px;
    border: 1px solid var(--color-white);
    background: transparent;
    color: var(--color-white);
    font-weight: 500;
    font-size: 16px;
    line-height: normal;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cpm-anniversary-page .cpm-anniversary-stories__cta:hover,
.cpm-anniversary-page .cpm-anniversary-stories__cta:focus-visible,
.cpm-anniversary-page .cpm-anniversary-stories__cta.cpm-btn-primary:hover,
.cpm-anniversary-page .cpm-anniversary-stories__cta.cpm-btn-primary:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border-color: var(--color-white);
}

/* Hide the stories-background variant of cpm-moments-block */
.cpm-moments-block.stories-background {
    display: none;
}