/*
Theme Name: Kadence Child
Template: kadence
Version: 6.4.4 TEST
Description: GTF website v6.2 component layer. Unified cards with shared buttons, section headings, and date formatting.
*/

/* ============================================================
   01. FONT IMPORTS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=EB+Garamond:wght@500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');


/* ============================================================
   02. GLOBAL VARIABLES
   ============================================================ */

:root {
  --global-content-width: 1500px;
  --global-content-edge-padding: 0px;
  --global-boxed-width: 1500px;
  --global-content-narrow-width: 1500px;
  --gtf-site-width: 1500px;
  --gtf-content-width: 1500px;
  --gtf-inner-width: 1340px;
  --gtf-text-width: 1500px;
  --gtf-navy: #0d1f3c;
  --gtf-navy-dark: #071426;
  --gtf-navy-mid: #1a3a6b;
  --gtf-blue: #1a4e8a;
  --gtf-blue-light: #2e6cb5;
  --gtf-gold: #c9a84c;
  --gtf-gold-light: #e8c96e;
  --gtf-white: #ffffff;
  --gtf-off-white: #f7f8fa;
  --gtf-page-bg: #eef5fb;
  --gtf-text: #1a1a1a;
  --gtf-text-mid: #444444;
  --gtf-text-light: #666666;
  --gtf-border: #e0e4ea;
  --gtf-card-bg: #f7f9fc;
  --gtf-card-surface: #ffffff;
  --gtf-card-media-bg: #edf2f7;
  --gtf-card-radius: 12px;
  --gtf-card-padding: 1.35rem;
  --gtf-card-gap: 0.75rem;
  --gtf-card-shadow: 0 8px 22px rgba(0,0,0,0.05);
  --gtf-card-shadow-hover: 0 12px 30px rgba(0,0,0,0.08);
}


/* ============================================================
   03. GLOBAL BASE
   ============================================================ */

html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: var(--gtf-text);
  background: var(--gtf-page-bg);
}

h1, h2, h3, h4 {
  font-family: 'EB Garamond', Georgia, serif;
  letter-spacing: -0.01em;
}

a {
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.wp-site-blocks,
.site {
  background: transparent;
}


/* ============================================================
   04. HEADER + NAVIGATION
   Default site header. Homepage-specific header rules are in
   section 16.
   ============================================================ */

.site-header .site-logo img,
.kadence-header .site-logo img,
header .custom-logo {
  max-height: 72px !important;
  width: auto !important;
}

.site-branding .site-title,
.site-title {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.main-navigation a,
.kadence-header nav a,
.nav-menu > li > a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
}

.main-navigation .sub-menu,
ul.sub-menu,
.nav-menu .sub-menu,
.kadence-header .sub-menu {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
  border-radius: 6px !important;
}


/* ============================================================
   05. HOMEPAGE HERO + GATEWAY CARDS
   Uses isolated classes beginning with .gtfh-
   ============================================================ */

.gtfh-gateway-wrap {
  max-width: 1340px;
  margin: -52px auto 70px;
  padding: 0 28px;
  position: relative;
  z-index: 20;
  box-sizing: border-box;
}

.gtfh-gateway {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gtfh-gateway-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 145px;
  padding: 28px 28px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  transition: all .25s ease;
}

.gtfh-gateway-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0,0,0,.16);
  text-decoration: none;
}

.gtfh-gateway-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  background: var(--gtf-navy-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gtfh-gateway-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

.gtfh-gateway-text h3 {
  margin: 0 0 8px;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--gtf-navy-dark);
}

.gtfh-gateway-text p {
  margin: 0;
  color: #3f4b5a;
  font-size: .96rem;
  line-height: 1.45;
}

.gtfh-gateway-line {
  width: 44px;
  height: 3px;
  background: var(--gtf-gold);
  margin: 16px 0 0;
}


/* ============================================================
   06. HOMEPAGE CONTENT WIDTH / SPACING
   ============================================================ */

.home h2 {
  color: var(--gtf-navy);
}


/* ============================================================
   07. HOMEPAGE STATIC BLOCK CLEANUP
   Old Media/Text event and Query Loop news rules removed.
   Current homepage event/news output is shortcode-based.
   ============================================================ */


/* ==========================================
   FEATURED PUBLICATION
========================================== */

.gtf-publication-section {
  max-width: 1340px;
  margin: 70px auto;
  padding: 58px 70px;
  background: #f7f9fc;
  border: 1px solid #e2e7ee;
  border-radius: 12px;
  box-sizing: border-box;
}

.gtf-publication-section .gtf-section-header {
  text-align: center;
  margin-bottom: 42px;
}

.gtf-publication-section .gtf-section-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gtf-gold);
  margin-bottom: 14px;
}

.gtf-publication-section .gtf-section-header h2 {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--gtf-navy);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  line-height: 1.2;
}

.gtf-publication-button {
  text-align: center;
  margin-top: 38px;
}

.gtf-publication-button a,
.gtf-publication-button .wp-block-button__link,
.gtf-publication-button .kb-button,
.gtf-publication-button .kt-button,
.gtf-publication-button .kadence-btn {
  display: inline-block !important;
  width: fit-content !important;
  background: var(--gtf-navy-dark) !important;
  color: #ffffff !important;
  border: 1px solid var(--gtf-navy-dark) !important;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.gtf-publication-button a:hover,
.gtf-publication-button .wp-block-button__link:hover,
.gtf-publication-button .kb-button:hover,
.gtf-publication-button .kt-button:hover,
.gtf-publication-button .kadence-btn:hover {
  background: var(--gtf-gold) !important;
  color: var(--gtf-navy-dark) !important;
  border-color: var(--gtf-gold) !important;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .gtf-publication-section {
    padding: 48px 28px;
  }

}

@media (max-width: 600px) {
  .gtf-publication-section {
    margin: 56px auto;
    padding: 42px 20px;
  }
}

/* ============================================================
   10. HOMEPAGE FIND GTF WORLDWIDE
   Used by custom HTML block.
   ============================================================ */

.gtf-worldwide-section {
  margin: 50px auto;
}

.gtf-worldwide-heading {
  text-align: center;
  margin-bottom: 32px;
}

.gtf-worldwide-heading h2 {
  margin: 0;
  color: #162847;
}

.gtf-worldwide-line {
  width: 30px;
  height: 2px;
  background: #d9b45a;
  margin: 12px auto 0;
}

.gtf-worldwide-cards {
  display: flex;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.gtf-worldwide-card {
  flex: 1;
  text-decoration: none;
  color: inherit;
  padding: 42px 34px;
  text-align: center;
  transition: all .25s ease;
}

.gtf-worldwide-card:not(:last-child) {
  border-right: 1px solid #e5e5e5;
}

.gtf-worldwide-card:hover {
  background: #f8f9fb;
  transform: translateY(-3px);
}

.gtf-worldwide-card h3 {
  margin: 0;
  color: #162847;
  font-size: 28px;
  line-height: 1.25;
}

.gtf-worldwide-card-line {
  width: 24px;
  height: 2px;
  background: #d9b45a;
  margin: 12px auto 18px;
}

.gtf-worldwide-card p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}


/* ============================================================
   11. EVENTS PAGE QUERY LOOPS
   Add class to Post Template block:
   - Upcoming: gtf-upcoming-events
   - Past: gtf-past-events
   ============================================================ */

.gtf-upcoming-events .wp-block-post {
  padding: 20px;
}

.gtf-past-events .wp-block-post {
  padding: 18px;
}

.gtf-upcoming-events .wp-block-post-featured-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.gtf-past-events .wp-block-post-featured-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gtf-upcoming-events .wp-block-post-title,
.gtf-past-events .wp-block-post-title {
  margin-top: 18px;
}

.gtf-upcoming-events .wp-block-post-title a,
.gtf-past-events .wp-block-post-title a {
  text-decoration: none;
  color: #162847;
}


/* ============================================================
   12. MASTERS DIRECTORY
   ============================================================ */

.gtf-masters-directory {
  max-width: var(--gtf-site-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.gtf-masters-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.gtf-masters-label,
.gtf-country-label,
.gtf-page-header-label,
.gtf-section-eyebrow,
.gtf-profile-section-title,
.gtf-country-profile-label,
.gtf-country-profile-section-title,
.gtf-gm-section-title {
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gtf-gold);
}

.gtf-masters-title,
.gtf-country-title,
.gtf-page-header-title,
.gtf-country-profile-title,
.gtf-gm-name {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gtf-navy);
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.gtf-masters-intro,
.gtf-country-intro,
.gtf-page-header-sub,
.gtf-country-profile-intro {
  font-size: 1rem;
  color: #666;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.85;
}

.gtf-rank-group,
.gtf-country-region {
  margin-bottom: 4rem;
}

.gtf-rank-divider::before,
.gtf-rank-divider::after,
.gtf-country-divider::before,
.gtf-country-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,.35);
}

.gtf-rank-label,
.gtf-country-region-label {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gtf-gold);
  white-space: nowrap;
}

.gtf-master-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #8fa8c4;
  letter-spacing: 0.05em;
  z-index: 0;
}

.gtf-master-photo-wrap img.gtf-master-photo {
  position: relative;
  z-index: 1;
}

.gtf-master-card:hover .gtf-master-arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ============================================================
   13. MASTER PROFILE
   ============================================================ */

.gtf-master-profile,
.gtf-country-profile,
.gtf-about-page,
.gtf-gm-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.gtf-profile-hero,
.gtf-gm-hero {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gtf-border);
}

.gtf-profile-photo-wrap,
.gtf-gm-photo-frame {
  width: 285px;
  min-width: 285px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #e8edf3;
  position: relative;
}

.gtf-profile-photo,
.gtf-gm-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative;
  z-index: 1;
}

.gtf-profile-rank-badge,
.gtf-gm-rank-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #123f72;
  background: #eef3fa;
  border: 1px solid #aebfda;
  border-radius: 4px;
  padding: 0.38rem 0.85rem;
  margin: 0 0 1rem;
}

.gtf-profile-name {
  font-size: 2.3rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.gtf-profile-meta,
.gtf-gm-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.gtf-profile-meta-item,
.gtf-gm-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #666;
}

.gtf-country-large-flag {
  width: 95px;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform .25s ease, box-shadow .25s ease;
  display: block;
}

.gtf-country-large-flag:hover {
  transform: scale(1.04);
  box-shadow: 0 5px 14px rgba(0,0,0,0.16);
}

.gtf-profile-section,
.gtf-gm-section,
.gtf-country-profile-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gtf-border);
}

.gtf-profile-section:last-of-type,
.gtf-gm-section:last-of-type,
.gtf-country-profile-section:last-of-type {
  border-bottom: none;
}

.gtf-profile-body p,
.gtf-gm-body p,
.gtf-about-body,
.gtf-country-info-value {
  font-size: 1rem;
  color: #333;
  line-height: 1.85;
}

.gtf-profile-list {
  padding-left: 1.3rem;
  margin: 0;
}

.gtf-profile-list li {
  font-size: 1rem;
  color: #333;
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

.gtf-credentials-grid,
.gtf-country-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--gtf-border);
  border: 1px solid var(--gtf-border);
  border-radius: 10px;
  overflow: hidden;
}

.gtf-credential-item,
.gtf-country-info-card {
  background: #fff;
  padding: 1.15rem 1.3rem;
}

.gtf-credential-label,
.gtf-country-info-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #9aa1aa;
  margin-bottom: .35rem;
}

.gtf-credential-value {
  font-size: 0.94rem;
  font-weight: 600;
  color: #1a1a1a;
}

.gtf-back-link,
.gtf-country-profile-back a,
.gtf-about-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gtf-blue);
  text-decoration: none;
}

.gtf-back-link:hover,
.gtf-country-profile-back a:hover,
.gtf-about-link:hover {
  text-decoration: underline;
}


/* ============================================================
   14. COUNTRY DIRECTORY + COUNTRY PROFILES
   ============================================================ */

.gtf-country-directory {
  max-width: var(--gtf-site-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.gtf-country-header,
.gtf-page-header,
.gtf-country-profile-header {
  text-align: center;
  margin-bottom: 4.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--gtf-border);
}

.gtf-country-profile-flag {
  width: 170px;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  margin: 0 auto 1.5rem;
  display: block;
}

.gtf-country-info-card {
  border: 1px solid #e2e7ee;
  border-radius: 12px;
  padding: 2rem;
}

.gtf-country-org-people {
  margin-top: 1.75rem;
}

.gtf-country-org-people-title {
  margin: 0 0 1rem;
  color: var(--gtf-navy);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ==========================================================
   GTF GALLERY v2.0
   ========================================================== */

/* Museum-style frame. Kadence continues to control all gallery layout. */
.wp-block-kadence-advancedgallery .kadence-blocks-gallery-item-inner {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--gtf-border);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(7,20,38,.07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.wp-block-kadence-advancedgallery
  .kadence-blocks-gallery-item:hover
  .kadence-blocks-gallery-item-inner {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(7,20,38,.11);
}

/* Preserve Kadence image sizing while preventing theme-level zoom effects. */
.wp-block-kadence-advancedgallery .kb-gallery-image-contain img {
  display: block;
  transform: none;
  transition: none;
}

.wp-block-kadence-advancedgallery
  .kadence-blocks-gallery-item:hover
  .kb-gallery-image-contain img {
  transform: none;
}

/* Kadence controls caption placement and visibility. */
.wp-block-kadence-advancedgallery .kadence-blocks-gallery-item__caption {
  color: var(--gtf-text-light);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .82rem;
  line-height: 1.45;
  text-align: center;
}

/* Scale images inside Kadence's built-in GLightbox without affecting thumbnails or PhotoSwipe. */
#glightbox-body.glightbox-container.glightbox-kadence-dark .gslide,
#glightbox-body.glightbox-container.glightbox-kadence-light .gslide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
}

#glightbox-body.glightbox-container.glightbox-kadence-dark .gslide-inner-content,
#glightbox-body.glightbox-container.glightbox-kadence-light .gslide-inner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
}

#glightbox-body.glightbox-container.glightbox-kadence-dark .ginner-container,
#glightbox-body.glightbox-container.glightbox-kadence-light .ginner-container {
  align-items: center;
  justify-content: center;
  width: 90vw !important;
  height: 90vh !important;
  max-width: 90vw !important;
  max-height: 90vh !important;
  margin: auto;
}

#glightbox-body.glightbox-container.glightbox-kadence-dark .gslide-media.gslide-image,
#glightbox-body.glightbox-container.glightbox-kadence-light .gslide-media.gslide-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw !important;
  height: 90vh !important;
  max-width: 90vw !important;
  max-height: 90vh !important;
  margin: auto;
}

#glightbox-body.glightbox-container.glightbox-kadence-dark .gslide-image img,
#glightbox-body.glightbox-container.glightbox-kadence-light .gslide-image img {
  display: block;
  width: 90vw !important;
  height: 90vh !important;
  max-width: 90vw !important;
  max-height: 90vh !important;
  margin: auto;
  object-fit: contain !important;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .wp-block-kadence-advancedgallery .kadence-blocks-gallery-item-inner {
    transition: none;
  }

  .wp-block-kadence-advancedgallery
    .kadence-blocks-gallery-item:hover
    .kadence-blocks-gallery-item-inner {
    transform: none;
  }
}

/* ============================================================
   15. ABOUT + FOUNDER LEGACY PAGE
   ============================================================ */

.gtf-about-page,
.gtf-gm-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.gtf-about-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gtf-navy);
  margin: 0 0 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.gtf-about-mission {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--gtf-border);
}

.gtf-about-image-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e8edf3;
}

.gtf-about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.gtf-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--gtf-navy);
  border-radius: 12px;
  padding: 3rem 2rem;
  margin-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.gtf-stats-bar::before,
.gtf-about-leadership::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gtf-gold);
  border-radius: 0 0 2px 2px;
}

.gtf-stat-item {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
}

.gtf-stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.gtf-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.gtf-stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.gtf-about-federation {
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--gtf-border);
}

.gtf-about-leadership {
  background: linear-gradient(135deg, var(--gtf-navy) 0%, var(--gtf-navy-mid) 100%);
  border-radius: 12px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gtf-about-leadership-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gtf-gm-dates {
  font-size: 1rem;
  color: #888;
  margin: 0 0 1.25rem;
  font-style: italic;
}

.gtf-gm-tagline {
  font-size: 1.05rem;
  color: #555;
  font-style: italic;
  line-height: 1.7;
  border-left: 3px solid var(--gtf-gold);
  padding-left: 1.25rem;
  margin: 0 0 1.5rem;
  font-family: 'EB Garamond', Georgia, serif;
}

.gtf-timeline {
  border-left: 2px solid var(--gtf-border);
  padding-left: 2rem;
  margin-left: 1rem;
}

.gtf-timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.gtf-timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gtf-blue);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--gtf-blue);
}

.gtf-timeline-final::before {
  background: var(--gtf-gold);
  box-shadow: 0 0 0 2px var(--gtf-gold);
}

.gtf-timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gtf-blue);
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 80px;
}

/* ============================================================
   16. GLOBAL WIDTH + HEADER SYSTEM
   Header background is full browser width.
   Header content remains controlled by the site width.
   Interior content remains readable and constrained.
   ============================================================ */

/* Remove diagnostic outlines if left from testing. */
.entry-content,
.gtfh-shell,
#masthead {
  outline: none !important;
}

/* Full-width dark header background. */
#masthead,
.site-header,
.kadence-header,
.kadence-header-wrap,
.site-header-wrap,
.site-header-row-container,
.site-main-header-wrap {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: var(--gtf-navy-dark) !important;
  border: none !important;
  box-shadow: none !important;
}

/* Header content stays aligned with the controlled site width. */
.site-header-row-container-inner,
.site-main-header-inner-wrap {
  max-width: var(--gtf-site-width) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: transparent !important;
}

/* Homepage desktop header composition mirrors the hero gutter system. */
@media (min-width: 1025px) {
  .home .site-header-row-container-inner {
    --gtf-header-composition-gutter: 72px;
    --gtf-header-composition-end: 50px;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: var(--gtf-header-composition-gutter);
    padding-right: var(--gtf-header-composition-end);
    box-sizing: border-box;
  }

  .home .site-main-header-inner-wrap {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    grid-template-columns: minmax(max-content, 1fr) max-content;
  }

  .home .site-header-main-section-left,
  .home .site-header-main-section-right,
  .home .main-navigation {
    min-width: 0;
  }

  .home .site-header-main-section-right {
    justify-content: flex-end;
  }

  .home .site-branding {
    flex: 0 0 auto;
  }
}

@media (min-width: 1600px) {
  .home .site-header-row-container-inner {
    --gtf-header-composition-gutter: calc((100vw - var(--gtf-site-width)) / 2 + 25px);
    --gtf-header-composition-end: calc((100vw - var(--gtf-site-width)) / 2);
  }
}

#masthead,
.site-header {
  position: relative;
  z-index: 80;
}

/* Header text/nav colour across the whole site. */
.site-title,
.site-title a,
.site-description,
.brand,
.site-branding,
.main-navigation a,
.kadence-header nav a,
.nav-menu > li > a,
.menu-item > a {
  color: #ffffff !important;
}

.main-navigation a:hover,
.kadence-header nav a:hover,
.nav-menu > li > a:hover,
.menu-item > a:hover {
  color: var(--gtf-gold-light) !important;
}

/* Keep dropdown menus readable against the dark header. */
.main-navigation .sub-menu,
ul.sub-menu,
.nav-menu .sub-menu,
.kadence-header .sub-menu {
  background: #ffffff !important;
  border: 1px solid var(--gtf-border) !important;
}

.main-navigation .sub-menu a,
ul.sub-menu li a,
.nav-menu .sub-menu a,
.kadence-header .sub-menu a {
  color: var(--gtf-text) !important;
  background: transparent !important;
}

.main-navigation .sub-menu a:hover,
ul.sub-menu li a:hover,
.kadence-header .sub-menu a:hover {
  color: var(--gtf-blue) !important;
  background-color: var(--gtf-off-white) !important;
}

/* Main wrappers must not create a second, narrower page width. */
#inner-wrap,
#primary,
.content-area,
.site-main {
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Kadence page canvas: force the visible white panel to match the header. */
.content-width-normal .content-container.site-container,
.content-width-narrow .content-container.site-container,
.content-width-fullwidth .content-container.site-container,
.content-container,
.content-container.site-container,
.site-container {
  width: 100% !important;
  max-width: var(--gtf-site-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Kadence boxed-content wrappers. These control the visible white panel. */
body:not(.home) .content-bg,
body:not(.home) article.entry,
body:not(.home) .entry,
body:not(.home) .entry-content-wrap,
body:not(.home) .entry-content.single-content {
  width: 100% !important;
  max-width: var(--gtf-site-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Remove the floating gap above interior content panels. The white panel begins under the header. */
body:not(.home) .content-area,
body:not(.home) .site-main,
body:not(.home) .content-container,
body:not(.home) .content-container.site-container,
body:not(.home) .content-bg,
body:not(.home) article.entry,
body:not(.home) .entry,
body:not(.home) .entry-content-wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Interior page content uses the same visible width as the header.
   Page-specific classes can still apply internal padding/layout. */
.entry-content,
.single-content {
  width: 100% !important;
  max-width: var(--gtf-site-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.entry-content > * {
  max-width: var(--gtf-site-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.entry-content > .alignfull {
  max-width: none !important;
}

/* Directory, profile, about, founder and country pages all share the same outer width. */
.gtf-masters-directory,
.gtf-country-directory,
.gtf-master-profile,
.gtf-country-profile,
.gtf-about-page,
.gtf-gm-page {
  width: 100% !important;
  max-width: var(--gtf-site-width) !important;
  box-sizing: border-box !important;
}

/* Inner text readability is handled at paragraph level only, not by shrinking the page panel. */
.gtf-profile-body,
.gtf-gm-body,
.gtf-about-body,
.gtf-country-info-value,
.gtf-profile-section > p,
.gtf-gm-section > p,
.gtf-about-page p,
.gtf-gm-page p {
  max-width: 1180px;
}

/* ============================================================
   17. HOMEPAGE WIDTH + HERO SYSTEM
   Homepage hero background is full browser width.
   Hero text/card internals remain controlled for readability.
   ============================================================ */

.home #inner-wrap,
.home #primary,
.home .content-area,
.home .site-main,
.home .content-container,
.home .content-container.site-container,
.home .entry,
.home article,
.home .entry-content-wrap,
.home .content-bg {
  max-width: none !important;
  width: 100% !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.home .entry-content {
  max-width: var(--gtf-site-width) !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-top: 0 !important;
}

.home .gtfh-gateway-wrap,
.home .gtf-publications-section,
.home .gtf-worldwide-section {
  max-width: var(--gtf-inner-width) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.home .entry-content > *:not(.gtfh-shell):not(.gtfh-gateway-wrap) {
  max-width: var(--gtf-site-width) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.home .entry-content > .alignwide {
  max-width: var(--gtf-site-width) !important;
}

.home .gtfh-gateway-wrap {
  margin-top: -52px !important;
  margin-bottom: 70px !important;
}

/* ============================================================
   18. RESPONSIVE FINAL
   One mobile/tablet system. Avoids stacked override conflicts.
   ============================================================ */

@media (max-width: 1100px) {
  .gtfh-hero {
    background-position: 72% center;
  }

  .gtfh-title {
    max-width: 590px;
  }

  .gtfh-gateway {
    gap: 18px;
  }

  .gtfh-gateway-card {
    padding: 26px 22px;
    gap: 15px;
  }
}

/* Tablet/mobile layout reset. */
@media (max-width: 1024px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  /* Header should be full device width on mobile/tablet. */
  #masthead,
  .site-header,
  .kadence-header,
  .kadence-header-wrap,
  .site-header-wrap,
  .site-header-row-container,
  .site-header-row-container-inner,
  .site-main-header-wrap,
  .site-main-header-inner-wrap {
    max-width: none !important;
    width: 100% !important;
    background: var(--gtf-navy-dark) !important;
  }

  /* Keep Kadence's mobile header rows inside the homepage viewport.
     The global full-bleed offsets are only needed by the desktop shell. */
  .home #masthead,
  .home .site-header,
  .home .kadence-header,
  .home .kadence-header-wrap,
  .home .site-header-wrap,
  .home .site-header-row-container,
  .home .site-main-header-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .home .site-mobile-header-wrap .site-header-row-container-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  .home .site-mobile-header-wrap .site-main-header-inner-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Remove Kadence mobile side gutters only on the homepage hero stack. */
  .home #inner-wrap,
  .home #primary,
  .home .content-area,
  .home .site-main,
  .home .content-container,
  .home .content-container.site-container,
  .home .entry,
  .home article,
  .home .entry-content-wrap,
  .home .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Full-bleed mobile hero while keeping inner text padded. */
  .home .entry-content > .gtfh-shell,
  .home .gtfh-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .home .gtfh-hero {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 620px !important;
    background-position: 68% center !important;
    background-size: cover !important;
    overflow: hidden !important;
  }

  .home .gtfh-inner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 70px 28px 125px !important;
  }

  .home .gtfh-title {
    font-size: clamp(3rem, 11vw, 5rem) !important;
    max-width: 620px !important;
  }

  .home .gtfh-subtitle {
    max-width: 560px !important;
    font-size: 1.05rem !important;
  }

  .home .gtfh-gateway-wrap {
    max-width: 100% !important;
    width: 100% !important;
    margin-top: -42px !important;
    margin-bottom: 44px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    box-sizing: border-box !important;
  }

  .home .gtfh-gateway {
    grid-template-columns: 1fr !important;
  }

  .home .gtfh-gateway-card {
    min-height: auto;
  }

  /* Non-home pages keep readable mobile gutters. */
  body:not(.home) .content-container,
  body:not(.home) .content-container.site-container,
  body:not(.home) .site-container {
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .home .wp-block-query .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }

  .home .wp-block-query .wp-block-post-featured-image img {
    height: 240px;
  }

  .gtf-worldwide-cards {
    flex-direction: column;
  }

  .gtf-worldwide-card:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
  }

  .gtf-publications-section {
    padding: 40px 25px;
  }

  .gtf-publications-image {
    max-width: 240px;
  }

  .gtf-country-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .gtf-country-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 700px) {
  .gtf-profile-photo-wrap,
  .gtf-gm-photo-frame {
    width: 220px;
    min-width: 220px;
  }

  .gtf-profile-name {
    font-size: 1.8rem;
  }

  .gtf-masters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .home .gtfh-hero {
    min-height: 580px !important;
    background-position: 72% center !important;
  }

  .home .gtfh-inner {
    padding: 58px 20px 115px !important;
  }

  .home .gtfh-title {
    font-size: clamp(2.65rem, 14vw, 4rem) !important;
    max-width: 100% !important;
  }

  .home .gtfh-buttons {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .home .gtfh-btn {
    width: 100% !important;
    max-width: 300px !important;
  }

  .home .gtfh-gateway-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .home .gtfh-gateway-line {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gtf-master-profile,
  .gtf-country-profile,
  .gtf-about-page,
  .gtf-gm-page,
  .gtf-masters-directory,
  .gtf-country-directory {
    padding: 3rem 1.25rem;
  }

  .gtf-timeline {
    padding-left: 1.5rem;
  }

  .gtf-timeline-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .gtf-timeline-year {
    min-width: unset;
  }

  .gtf-about-leadership-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .gtf-masters-grid,
  .gtf-country-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   GLOBAL FEDERATION MAP SECTION
   ============================================================ */

.gtf-global-map-section {
  max-width: 1500px;
  margin: 80px auto;
  padding: 64px 70px;
  background: #f7f9fc;
  border: 1px solid #e2e7ee;
  border-radius: 12px;
  box-sizing: border-box;
}

.gtf-global-map-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 52px;
}

.gtf-global-map-label {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gtf-gold);
}

.gtf-global-map-header h2 {
  margin: 0 0 16px;
  color: var(--gtf-navy);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.15;
}

.gtf-global-map-header p {
  margin: 0 auto;
  max-width: 820px;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.75;
}

.gtf-global-map-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 44px;
  align-items: center;
}

.gtf-global-map-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gtf-global-map-image img {
  width: 100%;
  max-width: 1040px;
  height: auto;
  display: block;
}

.gtf-global-map-stats {
  display: grid;
  gap: 16px;
}

.gtf-global-stat {
  background: #ffffff;
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
}

.gtf-global-number {
  display: block;
  color: var(--gtf-navy);
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.gtf-global-label {
  display: block;
  color: #667080;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.45;
}

.gtf-global-map-cta {
  text-align: center;
  margin-top: 42px;
}

@media (max-width: 900px) {
  .gtf-global-map-section {
    padding: 50px 28px;
  }

  .gtf-global-map-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .gtf-global-map-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gtf-global-map-section {
    margin: 56px auto;
    padding: 42px 20px;
  }

  .gtf-global-map-stats {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   19. DYNAMIC EVENTS SYSTEM
   Used by:
   - Events page shortcode: [gtf_events]
   - Homepage shortcode: [gtf_next_event]
   ============================================================ */

/* ---------- Events Page ---------- */

/* ---------- Homepage Featured Event ---------- */

.gtf-home-event-section {
  background: #f7f9fc;
  border: 1px solid #e2e7ee;
  border-radius: 12px;
  padding: 42px 60px 50px;
  max-width: 1340px;
  margin: 0 auto 60px;
}

.gtf-home-event-header {
  text-align: center;
  margin-bottom: 20px;
}

.gtf-home-event-header .gtf-section-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gtf-gold);
  margin: 0;
}

@media (max-width: 768px) {
  .gtf-home-event-section {
    padding: 36px 24px;
  }
}
/* ============================================================
   20. HOMEPAGE LATEST UPDATES
   Shortcode panel/card styling.
   ============================================================ */

.gtf-latest-updates-section {
  max-width: 1340px;
  margin: 70px auto;
  padding: 58px 70px;
  background: #f7f9fc;
  border: 1px solid #e2e7ee;
  border-radius: 12px;
  box-sizing: border-box;
}

.gtf-latest-updates-header {
  text-align: center;
  margin-bottom: 42px;
}

.gtf-latest-updates-header .gtf-section-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gtf-gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.gtf-latest-updates-header h2 {
  margin: 0;
  color: var(--gtf-navy);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  line-height: 1.2;
}

.gtf-latest-updates-button {
  text-align: center;
  margin-top: 38px;
}

.gtf-latest-updates-button a,
.gtf-latest-updates-button .gtf-event-button,
.gtf-latest-updates-button .wp-block-button__link,
.gtf-latest-updates-button .kb-button,
.gtf-latest-updates-button .kt-button,
.gtf-latest-updates-button .kadence-btn {
  display: inline-block !important;
  width: fit-content !important;
  background: var(--gtf-navy-dark) !important;
  color: #ffffff !important;
  border: 1px solid var(--gtf-navy-dark) !important;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.gtf-latest-updates-button a:hover,
.gtf-latest-updates-button .gtf-event-button:hover,
.gtf-latest-updates-button .wp-block-button__link:hover,
.gtf-latest-updates-button .kb-button:hover,
.gtf-latest-updates-button .kt-button:hover,
.gtf-latest-updates-button .kadence-btn:hover {
  background: var(--gtf-gold) !important;
  color: var(--gtf-navy-dark) !important;
  border-color: var(--gtf-gold) !important;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .gtf-latest-updates-section {
    padding: 48px 28px;
  }

  .gtf-latest-updates-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .gtf-latest-updates-section {
    margin: 56px auto;
    padding: 42px 20px;
  }
}
@media (max-width: 768px) {
  .gtfh-title-group {
    transform: scale(1) !important;
    margin-left: 0 !important;
  }

  .gtfh-supporting {
    left: 0 !important;
    margin-top: 24px !important;
  }

  .home .gtfh-title {
    font-size: clamp(2.8rem, 13vw, 4.25rem) !important;
    max-width: 100% !important;
    line-height: 0.9 !important;
  }

  .home .gtfh-inner {
    padding: 56px 24px 110px !important;
  }

  .home .gtfh-hero {
    background-position: 72% center !important;
  }
}
/* MOBILE HEADER ALIGNMENT FIX */

@media (max-width: 768px) {
  .site-header-row-container-inner,
  .site-main-header-inner-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  .site-branding,
  .site-branding a.brand {
    max-width: calc(100vw - 80px) !important;
  }

  .site-title,
  .site-title a {
    font-size: 1.35rem !important;
    line-height: 1.05 !important;
  }

  .site-header .site-logo img,
  .kadence-header .site-logo img,
  header .custom-logo {
    max-height: 54px !important;
  }
}
/* ============================================================
   REUSABLE INTERIOR PAGE HERO - FINAL
   ============================================================ */

body:not(.home) .gtf-page-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: var(--gtf-navy-dark) !important;
  padding: 36px 0 40px !important;
  position: relative !important;
  overflow: hidden !important;
}

body:not(.home) .gtf-page-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 18%;
  width: 320px;
  height: 320px;
  transform: translateY(-50%);
  background-image: url("https://globaltaekwondofederation.org/wp-content/uploads/2026/07/gtf-watermark-three-globes-v2.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.28;
  pointer-events: none;
  z-index: 1;
}

body:not(.home) .gtf-page-hero__inner {
  max-width: var(--gtf-inner-width);
  margin: 0 auto;
  padding: 0 80px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

body:not(.home) .gtf-page-hero__eyebrow {
  color: var(--gtf-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

body:not(.home) .gtf-page-hero h1 {
  margin: 0;
  color: #fff;
  font-family: 'Barlow Condensed', 'Source Sans 3', sans-serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .95;
}

body:not(.home) .gtf-page-hero__line {
  width: 70px;
  height: 3px;
  background: var(--gtf-gold);
  margin: 14px 0;
}

body:not(.home) .gtf-page-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: .95rem;
  line-height: 1.6;
}
/* ============================================================
   FOOTER TEXT + ICON VISIBILITY FIX
   ============================================================ */

.site-footer,
.site-footer * {
  color: rgba(255,255,255,.86) !important;
  opacity: 1 !important;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer strong {
  color: #ffffff !important;
}

.site-footer p,
.site-footer span,
.site-footer div {
  color: rgba(255,255,255,.82) !important;
}

.site-footer a {
  color: #ffffff !important;
}

.site-footer a:hover {
  color: var(--gtf-gold-light) !important;
}

.site-footer {
  background: var(--gtf-navy-dark) !important;
}

.site-footer h2,
.site-footer h3,
.site-footer .widget-title {
  color: #ffffff !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
}

.site-footer p {
  color: rgba(255,255,255,.82) !important;
  font-size: .9rem !important;
  line-height: 1.55 !important;
}

.site-footer a {
  color: #ffffff !important;
  font-size: .88rem !important;
  text-decoration: none !important;
}

.site-footer a:hover {
  color: var(--gtf-gold-light) !important;
}

.site-footer .footer-social-inner-wrap,
.site-footer .social-links {
  justify-content: center !important;
  gap: 8px !important;
}
/* ============================================================
   21. NEWS ARCHIVE SHORTCODE
   Used by: [gtf_news]
   ============================================================ */

.gtf-news-empty {
  max-width: var(--gtf-inner-width);
  margin: 54px auto 72px;
  padding: 36px;
  background: #f7f9fc;
  border: 1px solid #e2e7ee;
  border-radius: 12px;
  text-align: center;
}

@media (max-width: 980px) {
  .gtf-news-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gtf-news-archive-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
}

html, body { overflow-x: hidden; }
body { font-family: 'Source Sans 3', system-ui, sans-serif; color: var(--gtf-text); background: var(--gtf-page-bg); }
h1, h2, h3, h4 { font-family: 'EB Garamond', Georgia, serif; letter-spacing: -0.01em; }
a { transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.wp-site-blocks, .site { background: transparent; }

/* HOMEPAGE LAYOUT */
.home .entry-content > *:not(.gtfh-shell):not(.gtfh-gateway-wrap), .home .entry-content > .alignwide { max-width: var(--gtf-site-width) !important; width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
.home .entry-content > .alignfull { max-width: none !important; }
.home h2 { color: var(--gtf-navy); }

/* HOMEPAGE HERO — AUTHORITATIVE DESKTOP */
.home .gtfh-shell, .home .entry-content > .gtfh-shell { width: 100vw !important; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; background: var(--gtf-navy-dark) !important; position: relative; overflow: hidden !important; border-radius: 0; padding: 0 !important; }
.home .gtfh-shell::before, .home .gtfh-shell::after, .home .gtfh-hero::before { content: none !important; display: none !important; }
.home .gtfh-hero { min-height: 720px !important; position: relative; display: flex !important; align-items: center !important; overflow: hidden !important; background: linear-gradient(90deg, rgba(7,20,38,.98) 0%, rgba(7,20,38,.94) 34%, rgba(7,20,38,.64) 62%, rgba(7,20,38,.22) 100%), url("https://blanchedalmond-skunk-831419.hostingersite.com/wp-content/uploads/2026/06/ChatGPT-Image-Jun-8-2026-06_47_33-PM.png") !important; background-size: auto 104% !important; background-position: right center !important; background-repeat: no-repeat !important; }
.home .gtfh-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 32% 38%, rgba(255,255,255,.05) 0 1px, transparent 1px), radial-gradient(circle at 42% 54%, rgba(255,255,255,.04) 0 1px, transparent 1px); background-size: 18px 18px, 22px 22px; opacity: .25; pointer-events: none; }
.home .gtfh-inner { width: 100%; max-width: var(--gtf-inner-width) !important; margin: 0 auto !important; padding: 82px 80px 128px !important; position: relative; z-index: 3; box-sizing: border-box; }
.home .gtfh-label, .home .gtfh-acronym { display: none !important; }
.home .gtfh-supporting { margin-top: 25px; }
.home .gtfh-title { margin: 0 0 24px; max-width: 1131px; font-family: 'Barlow Condensed', 'Source Sans 3', system-ui, sans-serif; font-size: 11.3825rem; font-weight: 900; line-height: .88; letter-spacing: -.005em; text-transform: uppercase; color: #fff; }
.home .gtfh-title span { display: block; white-space: nowrap; }
.home .gtfh-gold, .home .gtfh-title mark { color: var(--gtf-gold) !important; background: transparent !important; padding: 0 !important; margin: 0 !important; }
.home .gtfh-accent { width: 68px; height: 3px; background: var(--gtf-gold); margin: 0 0 28px; }
.home .gtfh-subtitle { max-width: 560px; margin: 0 0 34px; color: rgba(255,255,255,.88); font-family: 'Source Sans 3', system-ui, sans-serif; font-size: 1.13rem; line-height: 1.55; }
.home .gtfh-subtitle strong { color: #fff; font-weight: 700; }
.home .gtfh-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.home .gtfh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; border-radius: 5px; padding: 13px 23px; font-family: 'Source Sans 3', system-ui, sans-serif; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: all .25s ease; }
.home .gtfh-btn svg { width: 18px; height: 18px; stroke: currentColor; }
.home .gtfh-btn-primary { background: var(--gtf-gold); color: var(--gtf-navy-dark); }
.home .gtfh-btn-primary:hover { background: var(--gtf-gold-light); color: var(--gtf-navy-dark); transform: translateY(-2px); text-decoration: none; }
.home .gtfh-btn-secondary { background: rgba(255,255,255,.06); color: #fff; border: 2px solid var(--gtf-gold); }
.home .gtfh-btn-secondary:hover { background: rgba(255,255,255,.14); color: #fff; transform: translateY(-2px); text-decoration: none; }

@media (min-width: 1025px) {
  .home .gtfh-inner {
    --gtfh-composition-gutter: 72px;
    display: grid;
    grid-template-columns: minmax(891px, 2fr) minmax(0, 1fr);
    grid-template-areas:
      "copy media"
      "support media";
    grid-template-rows: auto auto;
    align-content: start;
    max-width: none !important;
    padding: 8px 25px 128px var(--gtfh-composition-gutter) !important;
  }

  .home .gtfh-title-group {
    grid-area: copy;
    min-width: 0;
  }

  .home .gtfh-supporting {
    grid-area: support;
    min-width: 0;
  }

  .home .gtfh-inner::after {
    content: "";
    grid-area: media;
    min-width: 0;
    pointer-events: none;
  }
}

@media (min-width: 1600px) {
  .home .gtfh-inner {
    --gtfh-composition-gutter: calc((100vw - var(--gtf-site-width)) / 2 + 25px);
  }
}

/* HOMEPAGE GATEWAY */
.home .gtfh-gateway-wrap { max-width: var(--gtf-inner-width) !important; margin: -52px auto 70px !important; padding: 0 28px; position: relative; z-index: 20; box-sizing: border-box; }
.home .gtfh-gateway { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home .gtfh-gateway-card { display: flex; align-items: flex-start; gap: 18px; min-height: 145px; padding: 28px; background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 10px; color: inherit; text-decoration: none; box-shadow: 0 12px 30px rgba(0,0,0,.12); transition: all .25s ease; }
.home .gtfh-gateway-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(0,0,0,.16); text-decoration: none; }
.home .gtfh-gateway-icon { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; background: var(--gtf-navy-dark); color: #fff; display: flex; align-items: center; justify-content: center; }
.home .gtfh-gateway-icon svg { width: 28px; height: 28px; stroke: currentColor; }
.home .gtfh-gateway-text h3 { margin: 0 0 8px; font-family: 'Source Sans 3', system-ui, sans-serif; font-size: 1.25rem; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; color: var(--gtf-navy-dark); }
.home .gtfh-gateway-text p { margin: 0; color: #3f4b5a; font-size: .96rem; line-height: 1.45; }
.home .gtfh-gateway-line { width: 44px; height: 3px; background: var(--gtf-gold); margin: 16px 0 0; }

/* SHARED BUTTONS + LABELS */
.gtf-section-label, .gtf-global-map-label, .gtf-masters-label, .gtf-country-label, .gtf-page-header-label, .gtf-section-eyebrow, .gtf-profile-section-title, .gtf-country-profile-label, .gtf-country-profile-section-title, .gtf-gm-section-title { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gtf-blue); }
.gtf-event-button, .gtf-map-button, .gtf-about-btn-primary, .gtf-about-btn-secondary { display: inline-block; width: fit-content; text-decoration: none; font-family: 'Source Sans 3', sans-serif; font-weight: 800; line-height: 1.2; transition: all .25s ease; }
.gtf-event-button { align-self: flex-start; background: var(--gtf-navy-dark); color: #fff !important; padding: 11px 18px; border-radius: 999px; font-size: .88rem; }
.gtf-event-button:hover { background: var(--gtf-gold); color: var(--gtf-navy-dark) !important; text-decoration: none; }
.gtf-event-button.secondary { background: var(--gtf-gold); color: var(--gtf-navy-dark) !important; }
.gtf-event-button.secondary:hover { background: var(--gtf-navy-dark); color: #fff !important; }

/* EVENTS + NEWS SHORTCODES */
.gtf-home-event-section, .gtf-latest-updates-section, .gtf-publication-section, .gtf-global-map-section { max-width: var(--gtf-inner-width); margin-left: auto; margin-right: auto; background: var(--gtf-card-bg); border: 1px solid #e2e7ee; border-radius: 12px; box-sizing: border-box; }
.gtf-home-event-section { padding: 42px 60px 50px; margin-bottom: 60px; }
.gtf-home-event-header, .gtf-latest-updates-header { text-align: center; margin-bottom: 20px; }
.gtf-home-event-header .gtf-section-label, .gtf-latest-updates-header .gtf-section-label, .gtf-publication-section .gtf-section-label { display: block; color: var(--gtf-gold); margin-bottom: 14px; }
.gtf-events-list { max-width: var(--gtf-inner-width); margin: 54px auto 72px; padding: 0 40px; display: grid; gap: 28px; box-sizing: border-box; }
.gtf-event-empty, .gtf-news-empty { background: var(--gtf-card-bg); border: 1px solid #e2e7ee; border-radius: 20px; padding: 32px; text-align: center; }
.gtf-latest-updates-section { margin-top: 70px; margin-bottom: 70px; padding: 58px 70px; }
.gtf-latest-updates-header { margin-bottom: 42px; }
.gtf-latest-updates-header h2 { margin: 0; color: var(--gtf-navy); font-size: clamp(1.75rem, 2.6vw, 2.35rem); line-height: 1.2; }
.gtf-latest-updates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1040px; margin: 0 auto; }
.gtf-news-archive-grid { max-width: var(--gtf-inner-width); margin: 54px auto 72px; padding: 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; box-sizing: border-box; }

/* PUBLICATION + MAP */
.gtf-publication-section { margin-top: 70px; margin-bottom: 70px; padding: 58px 70px; }
.gtf-publication-section .gtf-section-header { text-align: center; margin-bottom: 42px; }
.gtf-publication-section .gtf-section-header h2 { max-width: 760px; margin: 0 auto; text-align: center; color: var(--gtf-navy); font-size: clamp(1.75rem, 2.6vw, 2.35rem); line-height: 1.2; }
.gtf-global-map-section { margin-top: 80px; margin-bottom: 80px; padding: 64px 70px; }
.gtf-global-map-header { text-align: center; max-width: 920px; margin: 0 auto 52px; }
.gtf-global-map-label { margin: 0 0 12px; color: var(--gtf-gold); }
.gtf-global-map-header h2 { margin: 0 0 16px; color: var(--gtf-navy); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.15; }
.gtf-global-map-header p { margin: 0 auto; max-width: 820px; color: #555; font-size: 1.05rem; line-height: 1.75; }
.gtf-global-map-content { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 44px; align-items: center; }
.gtf-global-map-image { display: flex; align-items: center; justify-content: center; }
.gtf-global-map-image img { width: 100%; max-width: 1040px; height: auto; display: block; }
.gtf-global-map-stats { display: grid; gap: 16px; }
.gtf-global-stat { background: #fff; border: 1px solid #e0e4ea; border-radius: 8px; padding: 18px; text-align: center; box-shadow: 0 8px 18px rgba(0,0,0,.04); }
.gtf-global-number { display: block; color: var(--gtf-navy); font-size: 2.45rem; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.gtf-global-label { display: block; color: #667080; font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; line-height: 1.45; }
.gtf-global-map-cta { text-align: center; margin-top: 42px; }
.gtf-map-button { background: var(--gtf-navy); color: #fff; padding: 14px 32px; border-radius: 4px; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.gtf-map-button:hover { background: var(--gtf-gold); color: var(--gtf-navy); text-decoration: none; }

/* DIRECTORIES + PROFILES */
.gtf-masters-directory, .gtf-country-directory { width: 100%; max-width: var(--gtf-inner-width); margin: 0 auto; padding: 4rem 2rem; box-sizing: border-box; }
.gtf-masters-header, .gtf-country-header, .gtf-page-header, .gtf-country-profile-header { text-align: center; margin-bottom: 4.5rem; }
.gtf-country-header, .gtf-page-header, .gtf-country-profile-header { padding-bottom: 3.5rem; border-bottom: 1px solid var(--gtf-border); }
.gtf-masters-title, .gtf-country-title, .gtf-page-header-title, .gtf-country-profile-title, .gtf-gm-name { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--gtf-navy); margin: 0 0 1rem; letter-spacing: -.03em; line-height: 1.1; }
.gtf-masters-intro, .gtf-country-intro, .gtf-page-header-sub, .gtf-country-profile-intro { font-size: 1rem; color: #666; max-width: 720px; margin: 0 auto; line-height: 1.85; }
.gtf-rank-group, .gtf-country-region { margin-bottom: 4rem; }
.gtf-rank-divider, .gtf-country-divider { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.gtf-rank-divider::before, .gtf-rank-divider::after, .gtf-country-divider::before, .gtf-country-divider::after { content: ''; flex: 1; height: 1px; background: #d9dfe6; }
.gtf-rank-label, .gtf-country-region-label { font-size: .88rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; color: var(--gtf-gold); white-space: nowrap; }
.gtf-masters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px,1fr)); gap: 1.1rem; }
.gtf-master-arrow { position: absolute; top: .9rem; right: 1rem; font-size: 1rem; color: var(--gtf-blue); opacity: 0; transform: translateX(-4px); transition: opacity .25s ease, transform .25s ease; }
.gtf-country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 1.25rem; }
.gtf-country-profile, .gtf-master-profile, .gtf-about-page, .gtf-gm-page { width: 100%; max-width: var(--gtf-text-width); margin: 0 auto; padding: 4rem 2rem; box-sizing: border-box; }
.gtf-profile-hero, .gtf-gm-hero { display: flex; gap: 3.5rem; align-items: center; margin-bottom: 3.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--gtf-border); }
.gtf-profile-photo-wrap, .gtf-gm-photo-frame { width: 285px; min-width: 285px; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: #e8edf3; position: relative; }
.gtf-profile-photo, .gtf-gm-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; position: relative; z-index: 1; }
.gtf-profile-rank-badge, .gtf-gm-rank-badge { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #123f72; background: #eef3fa; border: 1px solid #aebfda; border-radius: 4px; padding: .38rem .85rem; margin: 0 0 1rem; }
.gtf-profile-name { font-size: 2.3rem; font-weight: 700; color: #111; margin: 0 0 1.25rem; letter-spacing: -.03em; line-height: 1.12; }
.gtf-profile-meta, .gtf-gm-hero-meta { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.gtf-profile-meta-item, .gtf-gm-meta-item { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: #666; }
.gtf-profile-section, .gtf-gm-section, .gtf-country-profile-section { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--gtf-border); }
.gtf-profile-section:last-of-type, .gtf-gm-section:last-of-type, .gtf-country-profile-section:last-of-type { border-bottom: none; }
.gtf-profile-body p, .gtf-gm-body p, .gtf-about-body, .gtf-profile-section > p, .gtf-gm-section > p, .gtf-about-page p, .gtf-gm-page p { max-width: var(--gtf-text-width); font-size: 1rem; color: #333; line-height: 1.85; }
.gtf-profile-list { padding-left: 1.3rem; margin: 0; }
.gtf-profile-list li { font-size: 1rem; color: #333; line-height: 1.75; margin-bottom: .4rem; }
.gtf-credentials-grid, .gtf-country-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1px; background: var(--gtf-border); border: 1px solid var(--gtf-border); border-radius: 10px; overflow: hidden; }
.gtf-credential-item, .gtf-country-info-card { background: #fff; padding: 1.15rem 1.3rem; }
.gtf-credential-label, .gtf-country-info-label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: #9aa1aa; margin-bottom: .35rem; }
.gtf-credential-value { font-size: .94rem; font-weight: 600; color: #1a1a1a; }
.gtf-country-info-value { font-size: 1rem; color: #333; line-height: 1.85; }
.gtf-country-profile-flag, .gtf-country-large-flag { max-width: 100%; height: auto; border-radius: 5px; box-shadow: 0 2px 10px rgba(0,0,0,.12); display: block; }
.gtf-country-profile-flag { width: 170px; margin: 0 auto 1.5rem; }
.gtf-country-large-flag { width: 95px; }
.gtf-country-leadership-grid { display: grid; grid-template-columns: repeat(auto-fill,180px); justify-content: start; gap: 1rem; }
/* ABOUT + FOUNDER */
.gtf-about-section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--gtf-navy); margin: 0 0 1.5rem; letter-spacing: -.025em; line-height: 1.2; }
.gtf-about-mission { display: grid; grid-template-columns: 1fr 380px; gap: 5rem; align-items: center; margin-bottom: 5rem; padding-bottom: 5rem; border-bottom: 1px solid var(--gtf-border); }
.gtf-about-image-frame { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; background: #e8edf3; }
.gtf-about-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.gtf-stats-bar { display: flex; align-items: center; justify-content: center; gap: 0; background: var(--gtf-navy); border-radius: 12px; padding: 3rem 2rem; margin-bottom: 5rem; position: relative; overflow: hidden; }
.gtf-stats-bar::before, .gtf-about-leadership::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--gtf-gold); border-radius: 0 0 2px 2px; }
.gtf-stat-item { flex: 1; text-align: center; padding: 0 2rem; }
.gtf-stat-number { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #fff; font-family: 'EB Garamond', Georgia, serif; line-height: 1; margin-bottom: .6rem; letter-spacing: -.02em; }
.gtf-stat-label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.gtf-stat-divider { width: 1px; height: 60px; background: rgba(255,255,255,.1); flex-shrink: 0; }
.gtf-about-federation { margin-bottom: 5rem; padding-bottom: 5rem; border-bottom: 1px solid var(--gtf-border); }
.gtf-about-leadership { background: linear-gradient(135deg, var(--gtf-navy) 0%, var(--gtf-navy-mid) 100%); border-radius: 12px; padding: 4rem 2rem; text-align: center; position: relative; overflow: hidden; }
.gtf-about-btn-primary, .gtf-about-btn-secondary { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .75rem 1.75rem; border-radius: 4px; }
.gtf-about-btn-primary { background: var(--gtf-gold); color: var(--gtf-navy); }
.gtf-about-btn-primary:hover { background: var(--gtf-gold-light); transform: translateY(-1px); }
.gtf-about-btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.gtf-about-btn-secondary:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.05); }
.gtf-gm-dates { font-size: 1rem; color: #888; margin: 0 0 1.25rem; font-style: italic; }
.gtf-gm-tagline { font-size: 1.05rem; color: #555; font-style: italic; line-height: 1.7; border-left: 3px solid var(--gtf-gold); padding-left: 1.25rem; margin: 0 0 1.5rem; font-family: 'EB Garamond', Georgia, serif; }
.gtf-timeline { border-left: 2px solid var(--gtf-border); padding-left: 2rem; margin-left: 1rem; }
.gtf-timeline-item { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; position: relative; }
.gtf-timeline-item::before { content: ''; position: absolute; left: -2.45rem; top: .4rem; width: 8px; height: 8px; border-radius: 50%; background: var(--gtf-blue); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--gtf-blue); }
.gtf-timeline-final::before { background: var(--gtf-gold); box-shadow: 0 0 0 2px var(--gtf-gold); }
.gtf-timeline-year { font-size: .78rem; font-weight: 700; color: var(--gtf-blue); letter-spacing: .05em; white-space: nowrap; min-width: 80px; }

/* CONTACT */
.gtf-content-shell { width: 100%; max-width: var(--gtf-inner-width); margin: 0 auto; padding: 64px 40px 80px; box-sizing: border-box; }
.gtf-contact-section, .gtf-contact-form-section { background: #fff; border: 1px solid #e2e7ee; border-radius: 12px; box-shadow: var(--gtf-shadow-soft); padding: 36px 40px; margin-bottom: 32px; }
.gtf-contact-section h2, .gtf-contact-card h3 { color: var(--gtf-navy-dark); }
.gtf-contact-email a { color: var(--gtf-blue); font-weight: 700; }

/* FOOTER */
.site-footer { background: var(--gtf-navy-dark) !important; }
.site-footer, .site-footer * { color: rgba(255,255,255,.86) !important; opacity: 1 !important; }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6, .site-footer strong, .site-footer .widget-title { color: #fff !important; }
.site-footer h2, .site-footer h3, .site-footer .widget-title { font-size: 1rem !important; line-height: 1.35 !important; }
.site-footer p { color: rgba(255,255,255,.82) !important; font-size: .9rem !important; line-height: 1.55 !important; }
.site-footer a { color: #fff !important; font-size: .88rem !important; text-decoration: none !important; }
.site-footer a:hover { color: var(--gtf-gold-light) !important; }
.site-footer .footer-social-inner-wrap, .site-footer .social-links { justify-content: center !important; gap: 8px !important; }

/* UTILITY */
.gtf-back-link, .gtf-country-profile-back a, .gtf-about-link { font-size: .875rem; font-weight: 600; color: var(--gtf-blue); text-decoration: none; }
.gtf-back-link:hover, .gtf-country-profile-back a:hover, .gtf-about-link:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .home .gtfh-hero { background-position: 72% center !important; }
  .home .gtfh-title { max-width: 590px; }
  .home .gtfh-gateway { gap: 18px; }
  .home .gtfh-gateway-card { padding: 26px 22px; gap: 15px; }
}
@media (max-width: 1024px) {
  html, body { overflow-x: hidden !important; }
  .home .gtfh-hero { width: 100% !important; max-width: 100% !important; min-height: 620px !important; background-position: 68% center !important; background-size: cover !important; }
  .home .gtfh-title-group { transform: scale(1) !important; margin-left: 0 !important; }
  .home .gtfh-supporting { left: 0 !important; margin-top: 24px !important; }
  .home .gtfh-title { font-size: clamp(3rem, 11vw, 5rem) !important; max-width: 620px !important; }
  .home .gtfh-subtitle { max-width: 560px !important; font-size: 1.05rem !important; }
  .home .gtfh-gateway { grid-template-columns: 1fr !important; }
}
@media (max-width: 900px) {
  .gtf-publication-section, .gtf-latest-updates-section, .gtf-global-map-section { padding: 48px 28px; }
  .gtf-global-map-content { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .gtf-latest-updates-grid { grid-template-columns: 1fr; }
  .gtf-global-map-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  body:not(.home) .gtf-page-hero__inner { padding: 0 24px; }
  body:not(.home) .gtf-page-hero::before { width: 260px; height: 260px; right: -20px; opacity: .12; }
  body:not(.home) .gtf-page-hero h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .gtf-about-mission { grid-template-columns: 1fr; gap: 24px; }
  .gtf-home-event-section { padding: 36px 24px; }
  .gtf-news-archive-grid { grid-template-columns: repeat(2,1fr); }
  .gtf-country-grid { grid-template-columns: repeat(2,1fr); gap: 1rem; }
  .gtf-profile-hero, .gtf-gm-hero { flex-direction: column; align-items: flex-start; }
  .gtf-profile-photo-wrap, .gtf-gm-photo-frame { width: 220px; min-width: 220px; }
  .gtf-profile-name { font-size: 1.8rem; }
  .gtf-masters-grid { grid-template-columns: repeat(2,1fr); gap: 1rem; }
  .gtf-stats-bar { flex-direction: column; gap: 24px; }
  .gtf-stat-divider { width: 100%; height: 1px; }
}
@media (max-width: 640px) {
  .gtf-news-archive-grid { grid-template-columns: 1fr; padding: 0 24px; }
}
@media (max-width: 600px) {
  .home .gtfh-hero { min-height: 580px !important; background-position: 72% center !important; }
  .home .gtfh-inner { padding: 58px 20px 115px !important; }
  .home .gtfh-title { font-size: clamp(2.65rem, 14vw, 4rem) !important; max-width: 100% !important; line-height: .9 !important; }
  .home .gtfh-gateway-card { flex-direction: column !important; align-items: center !important; text-align: center !important; }
  .home .gtfh-gateway-line { margin-left: auto !important; margin-right: auto !important; }
  .gtf-master-profile, .gtf-country-profile, .gtf-about-page, .gtf-gm-page, .gtf-masters-directory, .gtf-country-directory, .gtf-content-shell { padding: 3rem 1.25rem; }
  .gtf-timeline { padding-left: 1.5rem; }
  .gtf-timeline-item { flex-direction: column; gap: .25rem; }
  .gtf-timeline-year { min-width: unset; }
  .gtf-publication-section, .gtf-latest-updates-section, .gtf-global-map-section { margin: 56px auto; padding: 42px 20px; }
  .gtf-global-map-stats { grid-template-columns: 1fr; }
  .gtf-contact-section, .gtf-contact-form-section { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .gtf-masters-grid, .gtf-country-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   21. GLOBAL GOLD SECTION LABEL STRENGTHENING
   Keeps small gold section labels consistent and more visible
   across Leadership, Masters, Countries, profiles, and Founder pages.
   ============================================================ */

.gtf-masters-label,
.gtf-country-label,
.gtf-page-header-label,
.gtf-section-eyebrow,
.gtf-profile-section-title,
.gtf-country-profile-label,
.gtf-country-profile-section-title,
.gtf-gm-section-title,
.gtf-rank-label,
.gtf-country-region-label {
  font-size: 0.88rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--gtf-gold) !important;
}

body .gtf-leadership-directory .gtf-rank-divider .gtf-rank-label {
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.22em !important;
  color: var(--gtf-gold) !important;
}

/* ============================================================
   COUNTRY PROFILE — MEMBER ORGANIZATION TEMPLATE
   ============================================================ */

.gtf-country-page-hero {
  padding-top: 3.25rem !important;
  padding-bottom: 3.25rem !important;
}

.gtf-country-page-hero .gtf-country-hero-flag {
  display: block;
  width: 110px;
  max-width: 100%;
  height: auto;
  margin: 0 0 1.25rem 0;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,.20);
}

.gtf-member-org-grid {
  display: grid;
  gap: 1.25rem;
}

/* Organization sections: remove the legacy outer card surface and inset. */
.gtf-member-org-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Country pages:
   Organization sections own their galleries, so remove the shared
   section divider. Separation between organizations is handled
   by the gold divider. */
.gtf-country-profile >
  .gtf-country-profile-section:has(.gtf-member-org-grid) {
  border-bottom: none;
}

/* Organization sections: divide each organization after the first.
   :has() identifies the outer organization section, while the general-sibling
   combinator skips intervening headings and Kadence Gallery blocks. */
.gtf-country-profile >
  .gtf-country-profile-section:has(.gtf-member-org-grid) ~
  .gtf-country-profile-section:has(.gtf-member-org-grid) {
  margin-top: 2.25rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(201,168,76,.45);
}

.gtf-member-org-name {
  margin: 0 0 1.25rem;
  color: var(--gtf-navy);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
}

.gtf-member-org-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--gtf-border);
  border: 1px solid var(--gtf-border);
  border-radius: 10px;
  overflow: hidden;
}

.gtf-member-org-field {
  background: #ffffff;
  padding: 1.15rem 1.3rem;
}

.gtf-member-org-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9aa1aa;
  margin-bottom: 0.35rem;
}

.gtf-member-org-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.55;
}

.gtf-member-org-value a {
  color: var(--gtf-blue);
  text-decoration: none;
}

.gtf-member-org-value a:hover {
  text-decoration: underline;
}

.gtf-country-note {
  margin-top: 1.25rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .gtf-country-page-hero {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .gtf-country-page-hero .gtf-country-hero-flag {
    width: 95px;
    margin: 0 0 1rem 0;
  }

  .gtf-member-org-fields {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   CLICKABLE MASTER POSTERS
   ============================================================ */

.gtf-poster-lightbox {
    display: inline-block;
    cursor: zoom-in;
}

.gtf-poster-lightbox img {
    display: block;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gtf-poster-lightbox:hover img {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

/* ============================================================
   99. GTF NEWS + EVENT PUBLICATION SYSTEM
   Custom single-post presentation for federation News and Events.
   ============================================================ */

/* Hide Kadence default single-post elements now replaced by GTF layout. */
.single-post .entry-header,
.single-post .entry-hero-container,
.single-post .post-thumbnail,
.single-post .entry-meta,
.single-post .entry-taxonomies,
.single-post .entry-footer,
.single-post .entry-related,
.single-post .related-posts,
.single-post .post-navigation,
.single-post .navigation.post-navigation {
  display: none !important;
}

.single-post .entry-content-wrap,
.single-post .entry,
.single-post article.entry {
  width: 100% !important;
  max-width: var(--gtf-site-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 0 !important;
  box-sizing: border-box !important;
}

.single-post .entry-content,
.single-post .single-content {
  width: 100% !important;
  max-width: var(--gtf-site-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 2rem 4rem !important;
  box-sizing: border-box !important;
}

/* Single publication shell: title/header can be wider than the reading body. */
.gtf-single-publication {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 3.75rem;
  box-sizing: border-box;
}

/* Keep long-form article text readable. */
.gtf-single-publication-body {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.gtf-single-publication-header {
  text-align: center;
  margin-bottom: 2rem;
}

.gtf-single-publication-label {
  margin-bottom: 0.85rem;
  color: var(--gtf-gold);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gtf-single-publication-title {
  max-width: 1120px;
  margin: 0 auto 1rem;
  color: var(--gtf-navy-dark);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2.15rem, 4.2vw, 3.7rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.gtf-single-publication-meta {
  color: #697386;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.gtf-single-publication-line {
  width: 76px;
  height: 3px;
  margin: 1.55rem auto 0;
  background: var(--gtf-gold);
  border-radius: 999px;
}

/* News images are submitted publication images. Do not crop them. */
.gtf-single-news-image {
  max-width: 1120px;
  margin: 2rem auto 2.5rem;
  text-align: center;
  border-radius: 14px;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.gtf-single-news-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 680px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid #e2e7ee;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(6,21,40,0.12);
}

/* Event posters are submitted artwork. Never crop them. */
.gtf-single-event-poster {
  max-width: 760px;
  margin: 2.25rem auto 2.75rem;
  text-align: center;
}

.gtf-single-event-poster a {
  display: inline-block;
  max-width: 100%;
  cursor: zoom-in;
  text-decoration: none;
}

.gtf-single-event-poster img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 940px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #dfe5ee;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(6,21,40,0.16);
}

.gtf-single-event-poster figcaption {
  margin-top: 0.85rem;
  color: #7b8494;
  font-size: 0.86rem;
  font-style: italic;
}

/* Event information panel automatically inserted by functions.php. */
.gtf-single-event-info {
  margin: 2rem auto 2.25rem;
  padding: 1.75rem;
  background: #f4f7fb;
  border: 1px solid rgba(6,21,40,0.10);
  border-radius: 14px;
  box-sizing: border-box;
}

.gtf-single-event-info h2 {
  margin: 0 0 1.25rem !important;
  color: var(--gtf-navy);
  font-size: 1.35rem !important;
  line-height: 1.2;
  text-align: center;
}

.gtf-single-event-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gtf-single-event-info-item {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(6,21,40,0.08);
  border-radius: 10px;
}

.gtf-single-event-info-item span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gtf-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gtf-single-event-info-item strong {
  display: block;
  color: var(--gtf-navy-dark);
  font-size: 0.98rem;
  line-height: 1.35;
}

.gtf-single-event-info-item a {
  color: var(--gtf-blue);
  text-decoration: none;
}

.gtf-single-event-info-item a:hover {
  color: var(--gtf-navy);
  text-decoration: underline;
}

/* Article typography */
.gtf-single-publication-body p,
.single-post .entry-content p,
.single-post .single-content p {
  font-size: 1.05rem;
  line-height: 1.84;
  color: #2f3742;
}

.gtf-single-publication-body h2,
.gtf-single-publication-body h3,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .single-content h2,
.single-post .single-content h3 {
  color: var(--gtf-navy);
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
}

.gtf-single-publication-body h2,
.single-post .entry-content h2,
.single-post .single-content h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.gtf-single-publication-body h3,
.single-post .entry-content h3,
.single-post .single-content h3 {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gtf-single-publication-body ul,
.gtf-single-publication-body ol {
  margin: 1rem 0 1.5rem 1.4rem;
}

.gtf-single-publication-body li {
  margin-bottom: 0.45rem;
  line-height: 1.7;
}

/* Mobile */
@media (max-width: 900px) {
  .single-post .entry-content,
  .single-post .single-content {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .gtf-single-publication {
    padding-top: 2.6rem;
  }

  .gtf-single-publication-header {
    margin-bottom: 1.6rem;
  }

  .gtf-single-news-image img {
    height: 300px;
  }

  .gtf-single-event-info-grid {
    grid-template-columns: 1fr;
  }

  .gtf-single-event-poster img {
    max-height: none;
  }
}

@media (max-width: 520px) {
  .gtf-single-publication-title {
    font-size: clamp(1.85rem, 11vw, 2.6rem);
  }

  .gtf-single-news-image img {
    height: 240px;
  }

  .gtf-single-event-info {
    padding: 1.25rem;
  }
}

/* ============================================================
   CUSTOM GTF FOOTER — HORIZONTAL VERSION
   ============================================================ */

.gtf-custom-footer--horizontal {
  background: #061626;
  color: #ffffff;
  padding: 34px 24px 20px;
}

.gtf-footer-horizontal-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.75fr 1.35fr;
  gap: 36px;
  align-items: center;
}

.gtf-footer-brand-horizontal,
.gtf-footer-legacy-horizontal {
  display: flex;
  align-items: center;
  gap: 18px;
}

.gtf-footer-horizontal-logo {
  width: 86px;
  height: auto;
  flex: 0 0 auto;
}

.gtf-footer-horizontal-jookam {
  width: 118px;
  height: auto;
  flex: 0 0 auto;
}

.gtf-footer-jookam-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.gtf-footer-jookam-link:hover {
  opacity: 0.85;
}

.gtf-footer-brand-horizontal h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.28rem;
  line-height: 1.15;
}

.gtf-footer-brand-horizontal p,
.gtf-footer-legacy-horizontal p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.45;
}

.gtf-footer-legacy-horizontal span {
  display: block;
  margin-bottom: 6px;
  color: #d6b247;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gtf-footer-legacy-horizontal a {
  display: inline-block;
  margin-top: 8px;
  color: #d6b247;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.gtf-footer-legacy-horizontal a:hover {
  color: #ffffff;
}

.gtf-footer-nav-horizontal {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 22px;
  justify-content: center;
}

.gtf-footer-nav-horizontal a {
  color: #ffffff;
  font-size: 0.8rem;
  text-decoration: none;
}

.gtf-footer-nav-horizontal a:hover {
  color: #d6b247;
}

.gtf-footer-bottom-horizontal {
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  text-align: center;
}

.gtf-footer-social-horizontal {
  display: none;
}

/* Mobile */
@media (max-width: 900px) {
  .gtf-footer-horizontal-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .gtf-footer-brand-horizontal,
  .gtf-footer-legacy-horizontal {
    justify-content: center;
    flex-direction: column;
  }

  .gtf-footer-nav-horizontal {
    grid-template-columns: repeat(3, auto);
  }
}

@media (max-width: 520px) {
  .gtf-footer-nav-horizontal {
    grid-template-columns: repeat(2, auto);
  }

  .gtf-footer-custom--horizontal {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ============================================================
   100. GTF UNIFIED CARD SYSTEM — PHASE 1
   Base regions: media, body, metadata, title, content, footer.
   Legacy public classes remain as compatibility aliases while generated
   News and Event markup now uses the reusable .gtf-card API directly.
   ============================================================ */

/* ---------- Card container ---------- */

.gtf-card,
.gtf-update-card,
.gtf-news-archive-card,
.gtf-event-card,
.gtf-home-event-card,
.gtf-master-card,
.gtf-country-card,
.gtf-country-leader-card,
.gtf-upcoming-events .wp-block-post,
.gtf-past-events .wp-block-post {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  color: inherit;
  text-decoration: none;
  background: var(--gtf-card-surface);
  border: 1px solid var(--gtf-border);
  border-radius: var(--gtf-card-radius);
  box-shadow: var(--gtf-card-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.gtf-card:hover,
.gtf-update-card:hover,
.gtf-news-archive-card:hover,
.gtf-event-card:hover,
.gtf-home-event-card:hover,
.gtf-master-card:hover,
.gtf-country-card:hover,
.gtf-country-leader-card:hover,
.gtf-upcoming-events .wp-block-post:hover,
.gtf-past-events .wp-block-post:hover {
  transform: translateY(-3px);
  border-color: #c3d0e2;
  box-shadow: var(--gtf-card-shadow-hover);
  text-decoration: none;
}

.gtf-card:focus-within,
.gtf-event-card:focus-within,
.gtf-home-event-card:focus-within,
.gtf-master-card:focus-visible,
.gtf-country-card:focus-visible,
.gtf-country-leader-card:focus-visible,
.gtf-upcoming-events .wp-block-post:focus-within,
.gtf-past-events .wp-block-post:focus-within {
  outline: 3px solid rgba(46,108,181,.28);
  outline-offset: 3px;
}

/* ---------- Image area ---------- */

.gtf-card__media,
.gtf-update-image,
.gtf-news-archive-image,
.gtf-master-photo-wrap,
.gtf-country-flag-wrap,
.gtf-country-leader-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--gtf-card-media-bg), #f7f9fc);
  border-bottom: 1px solid var(--gtf-border);
}

.gtf-card__media > a,
.gtf-event-image > a,
.gtf-home-event-image > a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.gtf-card__image,
.gtf-update-image img,
.gtf-news-archive-image img,
.gtf-event-image img,
.gtf-home-event-image img,
.gtf-master-photo,
.gtf-country-flag,
.gtf-country-leader-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  box-sizing: border-box;
  transition: transform .4s ease, filter .4s ease;
}

.gtf-card__media--portrait {
  background: linear-gradient(145deg, #e3eaf2, #f7f9fc);
}

.gtf-card__media--portrait .gtf-card__image {
  object-fit: contain;
  padding: .55rem;
}

.gtf-card__media--square .gtf-card__image {
  object-fit: contain;
  padding: .35rem;
}

.gtf-card__media--landscape .gtf-card__image {
  object-fit: cover;
}

/* Portrait people use a stable head-and-shoulders frame. */
.gtf-master-photo-wrap,
.gtf-country-leader-photo-wrap {
  aspect-ratio: 4 / 5;
  background: #e8edf3;
}

.gtf-master-photo,
.gtf-country-leader-photo {
  object-position: top center;
  filter: grayscale(100%);
}

.gtf-master-card:hover .gtf-master-photo,
.gtf-country-leader-card:hover .gtf-country-leader-photo {
  transform: scale(1.03);
  filter: grayscale(85%);
}

/* Flags and logos remain complete instead of being edge-cropped. */
.gtf-country-flag-wrap {
  aspect-ratio: 4 / 3;
  padding: .75rem;
  background: linear-gradient(135deg, #eef2f6, #ffffff);
}

.gtf-country-flag {
  object-fit: contain;
}

.gtf-country-card:hover .gtf-country-flag {
  transform: scale(1.025);
}

/* ---------- Body regions ---------- */

.gtf-card__body,
.gtf-update-content,
.gtf-update-card-content,
.gtf-news-archive-content,
.gtf-master-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: var(--gtf-card-gap);
  min-width: 0;
  padding: var(--gtf-card-padding);
  box-sizing: border-box;
}

.gtf-card__meta,
.gtf-update-date,
.gtf-news-archive-date,
.gtf-master-rank {
  display: block;
  min-height: 1.4em;
  margin: 0;
  color: #667080;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gtf-card__title,
.gtf-update-title,
.gtf-news-archive-title,
.gtf-master-name,
.gtf-country-name {
  margin: 0;
  color: var(--gtf-navy-dark);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.gtf-card__title a,
.gtf-update-title a,
.gtf-news-archive-title a,
.gtf-event-title a,
.gtf-home-event-title a {
  color: inherit;
  text-decoration: none;
}

.gtf-card__title a:hover,
.gtf-update-title a:hover,
.gtf-news-archive-title a:hover,
.gtf-event-title a:hover,
.gtf-home-event-title a:hover {
  color: var(--gtf-gold);
  text-decoration: none;
}

.gtf-card__content,
.gtf-news-archive-excerpt,
.gtf-event-excerpt {
  flex: 1 1 auto;
  margin: 0;
  color: #435469;
  font-size: .95rem;
  line-height: 1.6;
}

.gtf-card__footer,
.gtf-event-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: .35rem;
}

/* ---------- News cards ---------- */

.gtf-latest-updates-grid,
.gtf-news-archive-grid,
.gtf-masters-grid,
.gtf-country-grid,
.gtf-country-leadership-grid {
  align-items: stretch;
}

.gtf-card--news .gtf-card__title,
.gtf-update-title,
.gtf-news-archive-title {
  min-height: 2.6em;
}

.gtf-card--news-compact .gtf-card__body,
.gtf-update-content,
.gtf-update-card-content {
  padding: 1.25rem 1.375rem 1.5rem;
}

.gtf-news-archive-content {
  padding: 1.375rem 1.5rem 1.625rem;
}

/* ---------- Horizontal Event cards ---------- */

.gtf-card--horizontal,
.gtf-event-card,
.gtf-home-event-card {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
  height: auto;
  padding: 1.75rem;
  background: #f7f9fc;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.gtf-card--horizontal .gtf-card__media,
.gtf-event-image,
.gtf-home-event-image {
  aspect-ratio: 34 / 23;
  align-self: stretch;
  border: 0;
  border-radius: 14px;
}

.gtf-card--horizontal .gtf-card__body,
.gtf-event-content,
.gtf-home-event-content {
  justify-content: center;
  padding: 0;
}

.gtf-event-meta {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.gtf-event-date {
  margin: 0;
  color: var(--gtf-gold);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.gtf-event-location {
  margin: 0;
  color: #435469;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
}

.gtf-event-title,
.gtf-home-event-title {
  min-height: auto;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.gtf-card--featured,
.gtf-home-event-card {
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 3rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.gtf-card--featured:hover,
.gtf-home-event-card:hover {
  transform: none;
  box-shadow: none;
}

.gtf-card--featured .gtf-card__media,
.gtf-home-event-image {
  aspect-ratio: 23 / 15;
}

.gtf-card--featured .gtf-card__title,
.gtf-home-event-title {
  font-size: 2.25rem;
}

.gtf-card--no-media.gtf-card--horizontal,
.gtf-card--no-media.gtf-event-card,
.gtf-card--no-media.gtf-home-event-card {
  grid-template-columns: 1fr;
}

/* ---------- People and Country cards ---------- */

.gtf-master-info {
  padding: 1rem 1.1rem 1.1rem;
}

.gtf-master-rank {
  min-height: 2.8em;
  color: var(--gtf-blue);
  font-size: .62rem;
  letter-spacing: .11em;
}

.gtf-master-name {
  min-height: 2.5em;
  font-size: .95rem;
  line-height: 1.25;
}

.gtf-master-country {
  margin-top: auto;
  color: #777;
  font-size: .75rem;
  line-height: 1.5;
}

.gtf-country-name {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 3.7em;
  padding: 1rem;
  text-align: center;
}

/* ---------- Leadership cards ---------- */

.gtf-leadership-directory .gtf-masters-grid {
  align-items: stretch;
}

.gtf-card--leadership .gtf-card__body {
  gap: var(--gtf-card-gap);
}

.gtf-card--leadership .gtf-card__role {
  display: flex;
  flex-direction: column;
  min-block-size: 2.8em;
  margin: 0;
  color: var(--gtf-gold);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.gtf-card--leadership .gtf-card__role-line,
.gtf-card--leadership .gtf-card__rank,
.gtf-card--leadership .gtf-card__country {
  display: block;
}

.gtf-card--leadership .gtf-card__rank {
  min-block-size: 1.4em;
  margin: 0;
  color: var(--gtf-blue);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
}

.gtf-card--leadership .gtf-card__name {
  min-block-size: 2.5em;
  margin: 0;
  color: var(--gtf-navy-dark);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.gtf-card--leadership .gtf-card__country {
  min-block-size: 3em;
  margin-top: auto;
  color: #777;
  font-size: .75rem;
  line-height: 1.5;
}

/* ---------- Country-person cards ---------- */

.gtf-card--country-person .gtf-card__body {
  gap: var(--gtf-card-gap);
}

.gtf-card--country-person .gtf-card__role {
  display: -webkit-box;
  block-size: 2.8em;
  overflow: hidden;
  margin: 0;
  color: var(--gtf-blue);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .11em;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gtf-card--country-person .gtf-card__rank,
.gtf-card--country-person .gtf-card__credential {
  display: block;
  margin: 0;
  font-size: .75rem;
  line-height: 1.4;
}

.gtf-card--country-person .gtf-card__rank {
  block-size: 1.4em;
  overflow: hidden;
  color: var(--gtf-blue);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gtf-card--country-person .gtf-card__name {
  display: -webkit-box;
  block-size: 2.5em;
  overflow: hidden;
  margin: 0;
  color: var(--gtf-navy-dark);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gtf-card--country-person .gtf-card__credential {
  block-size: 1.4em;
  overflow: hidden;
  margin-top: auto;
  color: #777;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Featured Publication composition ---------- */

.gtf-publication-content {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 3.875rem;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}

.gtf-publication-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 1rem;
  box-sizing: border-box;
  background: linear-gradient(145deg, var(--gtf-card-media-bg), #ffffff);
  border-radius: var(--gtf-card-radius);
}

.gtf-publication-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 330px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.14));
}

.gtf-publication-text {
  display: flex;
  flex-direction: column;
  gap: var(--gtf-card-gap);
  max-width: 600px;
}

.gtf-publication-text p {
  margin: 0;
  color: #4c5563;
  font-size: 1rem;
  line-height: 1.75;
}

/* ---------- Responsive card variants ---------- */

@media (max-width: 900px) {
  .gtf-publication-content {
    grid-template-columns: 1fr;
    gap: 2.125rem;
    text-align: center;
  }

  .gtf-publication-image {
    min-height: 300px;
  }

  .gtf-publication-image img {
    max-height: 270px;
  }
}

@media (max-width: 768px) {
  .gtf-card--horizontal,
  .gtf-event-card,
  .gtf-home-event-card,
  .gtf-card--featured {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gtf-card--horizontal,
  .gtf-event-card {
    padding: 1.375rem;
  }

  .gtf-card--featured,
  .gtf-home-event-card {
    padding: 0;
  }

  .gtf-card--horizontal .gtf-card__media,
  .gtf-event-image,
  .gtf-home-event-image {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 600px) {
  :root {
    --gtf-card-padding: 1.15rem;
  }

  .gtf-publication-image {
    min-height: 250px;
    padding: .75rem;
  }

  .gtf-publication-image img {
    max-height: 225px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gtf-card,
  .gtf-card *,
  .gtf-master-card,
  .gtf-country-card,
  .gtf-country-leader-card,
  .gtf-update-card,
  .gtf-news-archive-card {
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   COUNTRY LEADER CARD — UNIVERSAL LEGACY COMPONENT REPAIR
   Applies to Country Leader cards on every Member Country page.
   ============================================================ */

.gtf-country-leader-info {
  display: block;
  grid-template-rows: repeat(5, auto);
  gap: 0;
  padding: .65rem .9rem .7rem;
}

.gtf-country-leader-role {
  display: block;
  grid-row: 1;
  min-block-size: 2lh;
  margin: 0;
  color: var(--gtf-blue);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.gtf-country-leader-title {
  display: block;
  grid-row: 3;
  min-block-size: 1lh;
  margin: 0;
  color: #667080;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.gtf-country-leader-name {
  display: block;
  grid-row: 4;
  align-self: start;
  min-block-size: 2lh;
  margin: 0;
  color: var(--gtf-navy-dark);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.gtf-country-leader-region {
  display: block;
  grid-row: 2;
  min-block-size: 2lh;
  margin: 0;
  color: var(--gtf-gold);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
}

.gtf-country-leader-rank {
  display: block;
  grid-row: 5;
  min-block-size: 1lh;
  margin: 0;
  color: #777;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: .70rem;
  line-height: 1.2;
}
