/* Scoped adaptations of existing institutional/course styles. */
.community-page { color: #070c26; }
.community-page *, .community-page *::before, .community-page *::after { box-sizing: border-box; }
.community-page .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.community-page .community-section { padding: 50px 0; }
.community-page .community-hero { padding: 40px 0; background-color: #151740; background-size: cover; background-position: center; color: #fff; }
.community-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
.community-page .community-hero-heading { padding: 0; }
.community-page .community-eyebrow { line-height: 1.2; margin: 0 0 16px; }
.community-page .hero-title { margin-bottom: 12px; }
.community-page .community-hero-copy p { margin-bottom: 12px; }
.community-page .community-hero-cta { margin-top: 20px; color: #1f2428; text-decoration: none; }
.community-page #formulario { scroll-margin-top: 104px; }
.community-page .community-copy, .community-page .community-media { min-width: 0; }
.community-page .community-media { margin: 0; }
.community-video { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; background: #070c26; border-radius: 12px; overflow: hidden; }
.community-video iframe, .community-video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.community-video--poster img, .community-video-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.community-video-play { cursor: pointer; padding: 0; background: transparent; }
.community-play-symbol { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e1de37; color: #151740; font-size: 26px; }
.community-page figcaption { font-size: 1rem; line-height: 1.6; margin-top: 16px; }
.community-editorial { display: grid; gap: 40px; align-items: center; }
.community-editorial--split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.community-editorial--image-left .community-image { grid-column: 1; grid-row: 1; }
.community-editorial--image-left .community-copy { grid-column: 2; grid-row: 1; }
.community-image img { display: block; width: 100%; height: auto; border-radius: 12px; }
.community-page p:last-child { margin-bottom: 0; }
.community-page .title-center { line-height: 1.25; margin-bottom: 24px; }
.community-nova_fase, .community-territorio, .community-futuro, .community-form { background: #f1f3fc; }
.community-centered .community-editorial { max-width: 900px; margin: 0 auto; text-align: center; }
.community-section-intro { max-width: 900px; margin: 0 auto 32px; text-align: center; }
.community-page .community-secondary { margin-top: 24px; background: #44408c; color: #fff; }
.community-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.community-card-icon { display: inline-block; font-size: 28px; color: #44408c; margin-bottom: 16px; }
.community-page .three-steps-left, .community-page .three-steps-right, .community-page .faq-info, .community-page .faq-items { min-width: 0; }
.community-page .community-steps { padding: 0; margin: 0; list-style: none; }
.community-step-number { color: #44408c; }
.community-form-inner { max-width: 800px; margin: 0 auto; }
.community-page .community-form .community-section-intro { margin-bottom: 40px; }
.community-form-card { max-width: 550px; margin: 0 auto; padding: 30px; background: #fff; border: 1px solid #ccc; border-radius: 12px; }
.community-form-support { margin-bottom: 24px; }
.community-form-embed { width: 100%; min-width: 0; }
.community-page .community-form-embed form._form { width: 100%; max-width: 100%; min-width: 0; margin: 0 !important; padding: 0 !important; }
.community-page .community-form-embed form._form ._submit { max-width: 100%; white-space: normal; font-weight: 600 !important; }
/* The inherited global form styles hide labels; restore them only in this block. */
.community-page .community-form-embed form._form ._form-label { display: block !important; }
#formulario .community-form-embed form._form input[type="text"],
#formulario .community-form-embed form._form input[type="email"],
#formulario .community-form-embed form._form input[type="tel"],
#formulario .community-form-embed form._form select { min-height: 44px; font-size: 16px; padding: 10px; }
#formulario .community-form-embed form._form input::placeholder { color: #626b74 !important; opacity: 1; }
.community-page .community-form-embed form._form input:focus-visible,
.community-page .community-form-embed form._form select:focus-visible { outline: 2px solid #44408c; outline-offset: 2px; }
.community-form-embed > iframe { max-width: 100%; border: 0; }
.community-form-embed:empty { display: none; }
.community-page .community-privacy { margin-top: 20px; font-size: 1rem; text-align: center; }
.community-page .community-privacy a { text-decoration: underline; }
.community-page .community-faq-heading { margin: 0; }
.community-page .panel { display: block; }
.community-page .panel[hidden] { display: none; }
.community-page .panel > :first-child { margin-top: 16px; }
.community-page .panel > :last-child { margin-bottom: 16px; }
.community-page .accordion, .community-page .btn-cta { overflow-wrap: anywhere; }
.community-page button:focus-visible, .community-page a:focus-visible { outline: 3px solid #b58000; outline-offset: 3px; }
.community-page .community-video-play:focus-visible { outline-offset: -4px; }
@media (max-width: 1024px) {
    .community-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .community-form-card { padding: 20px; }
    .community-page .container { padding: 0 20px; }
    .community-page .community-hero { padding: 28px 0; background-position: left center; }
    .community-page #formulario { scroll-margin-top: 128px; }
    .community-page .community-section { padding: 40px 0; }
    .community-hero-grid, .community-editorial--split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .community-hero-grid > .community-media { order: -1; }
    .community-hero-grid > .community-copy { display: flex; flex-direction: column-reverse; }
    .community-page .community-hero-cta { margin-top: 0; margin-bottom: 20px; }
    .community-editorial--image-left .community-image, .community-editorial--image-left .community-copy { grid-column: auto; grid-row: auto; }
    .community-page .three-steps-left, .community-page .three-steps-right, .community-page .faq-info, .community-page .faq-items { width: 100%; }
    .community-page .btn-cta { margin-left: 0; margin-right: 0; width: 100%; }
}
@media (max-width: 767px) {
    .community-cards { grid-template-columns: minmax(0, 1fr); }
}
/* Retain all global navigation items; prevent the inherited tablet row overflow. */
@media (min-width: 768px) and (max-width: 1279px) {
    .community-page #formulario { scroll-margin-top: 176px; }
    .page-template-page-community .navigation__container { flex-wrap: wrap; }
    .page-template-page-community .navigation__menu { order: 3; flex: 0 0 100%; justify-content: center; }
    .page-template-page-community .navigation__menu > .navigation__menu-item { width: auto; }
}
/* Same global logo assets, resolved locally rather than through a fixed host. */
.page-template-page-community .navigation__logo__image { background-image: url('../img/svg/logo_guardiansofhumanity_hz.svg'); }
.page-template-page-community .navigation__logo__image.navigation--is-open { background-image: url('../img/svg/logo_guardiansofhumanity_hz_w.svg'); }
.page-template-page-community .navigation__logo__icon { background-image: url('../img/svg/logo_gh.svg'); }
.community-form--wide .community-form-inner { max-width: 960px; }
.community-preview-placeholder { padding: 40px 24px; border: 1px dashed #757d83; border-radius: 12px; background: #fff; text-align: center; }
/* Reuse the bundled Icomoon file without the inherited production-host URL. */
@font-face {
    font-family: 'gh-community-icons';
    src: url('../fonts/icomoon.woff2') format('woff2');
    font-display: swap;
}
.community-page .community-card-icon {
    font-family: 'gh-community-icons' !important;
    font-style: normal;
    font-weight: normal;
    width: 32px;
    height: 32px;
    line-height: 32px;
}
/* History reuses the course introduction/details layouts, scoped to this section. */
.community-page .community-historia { padding: 50px 0; background: #fff; }
.community-history-intro { margin-bottom: 20px; }
.community-history-intro > .pq-col { min-width: 0; }
.community-page .community-history-heading .subtitle { margin-bottom: 20px; }
.community-history-image { flex: 1; min-width: 0; width: 100%; max-width: 560px; margin: 0; }
.community-history-image img { display: block; width: 100%; height: auto; aspect-ratio: 35 / 37; object-fit: cover; border-radius: 12px; }
.community-history-body { flex: 1; min-width: 0; width: 100%; }
.community-history-body p { margin-bottom: 20px; }
@media (max-width: 768px) {
    .community-page .community-historia { padding: 50px 0 20px; }
}

/* New phase follows the course transformation section, without global overrides. */
.community-page .community-nova_fase { padding: 50px 0; }
.community-nova_fase .transf-header .title-center { line-height: 1; margin-bottom: 10px; }
.community-nova_fase .transf-blocos, .community-nova_fase .transf-img { min-width: 0; }
.community-nova_fase .community-phase-image { width: 100%; max-width: 554px; margin: 0; }
.community-phase-image img { display: block; width: 100%; height: auto; aspect-ratio: 554 / 586; object-fit: cover; }
.community-nova_fase .bloco p + p { margin-top: 12px; }
@media (max-width: 768px) {
    .community-nova_fase .transf-blocos { width: 100%; }
    .community-nova_fase .transf-img { flex: none; }
}

/* Belonging combines the wide course image and learning intro in one section. */
.community-page .community-belonging { padding: 50px 0; background: #fff; }
.community-belonging-heading { text-align: center; margin-bottom: 40px; }
.community-belonging-heading .title-center { line-height: 1; margin-bottom: 10px; }
.community-belonging-image { margin: 0 0 50px; }
.community-belonging-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.community-belonging-intro .col { min-width: 0; }
.community-page .community-belonging-intro .subtitle { margin-bottom: 20px; }

/* Future follows the ethics layout, with a belonging-sized mosaic below. */
.community-page .community-futuro { padding: 50px 0; }
.community-page .community-futuro .title-center { line-height: 1; margin-bottom: 40px; }
.community-future-columns { display: flex; gap: 40px; }
.community-future-column { flex: 1 1 0; min-width: 0; text-align: left; }
.community-future-image { margin: 40px 0 0; }
.community-future-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
@media (max-width: 768px) {
    .community-future-columns { flex-direction: column; gap: 10px; }
}

/* Closing invitation retains readable text and the full Belonging image width. */
.community-reinforcement-copy { max-width: 800px; margin: 0 auto; text-align: center; }
.community-reinforcement-image { margin: 40px 0 0; }
.community-reinforcement-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }

/* Possibilities reuses the learning intro without changing shared intros/cards. */
.community-possibilities-intro { margin-bottom: 40px; }
.community-possibilities-intro .col { min-width: 0; }

/* Impact follows the alternating course rows within the Community template. */
.community-page .community-impact-heading { text-align: center; margin-bottom: 40px; }
.community-impact-content .learn-block { flex-wrap: nowrap; }
.community-impact-content .block-image, .community-impact-content .block-content { flex: 1 1 0; min-width: 0; }
.community-impact-content .block-image { margin: 0; max-width: 560px; }
.community-impact-content .block-image img { display: block; width: 100%; height: auto; aspect-ratio: 56 / 31; object-fit: cover; }
.community-impact-content .question { margin-bottom: 1rem; }
.community-impact-cta { text-align: center; }
.community-page .community-impact-cta .community-secondary { margin-top: 0; }
@media (max-width: 768px) {
    .community-impact-content .block-image, .community-impact-content .block-content { flex: none; width: 100%; }
    .community-impact-cta { margin-top: 30px; }
}
