/*
 Theme Name:   GCG Theme Child
 Theme URI:    https://staging.global-collaborations.uk
 Description:  Clean child theme for Global Collaborations Group
 Author:       Global Collaborations
 Author URI:   https://staging.global-collaborations.uk
 Template:     gcg-theme
 Version:      2.1.0811
 Text Domain:  gcg-theme-child
 Domain Path:  /languages
*/

/* Import parent theme styles */
@import url('../gcg-theme/style.css');

/* ===== CUSTOM STYLES ===== */

:root {
  --color-primary: #003d7a;
  --color-accent-red: #EC0424;
  --color-accent-orange: #FF6A00;
  --color-accent-purple: #600ACB;
  --color-light-bg: #f9f9f9;
  --color-text: #333;
  --color-text-light: #666;
  --spacing-unit: 1rem;
  --border-radius: 8px;
}

/* ===== HERO SECTION ===== */
.hero, section.hero {
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.hero h2, section.hero h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin: 20px 0;
  font-weight: 700;
}

.hero p, section.hero p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 30px;
}

/* ===== CTA BUTTONS ===== */
.btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.btn, a.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
}

.btn-primary, a.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.btn-primary:hover, a.btn-primary:hover {
  background-color: #002a5c;
  border-color: #002a5c;
}

.btn-secondary {
  background-color: transparent;
  border-color: currentColor;
}

.btn-secondary:hover {
  background-color: var(--color-light-bg);
}

/* ===== DIVISION CARDS ===== */
.stick-bottom-btn {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 0;
}

.stick-bottom-btn .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 30px;
  border-radius: var(--border-radius);
  background: var(--color-light-bg);
  flex: 1 1 300px;
  max-width: 400px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-top: 4px solid var(--color-accent-orange);
}

.stick-bottom-btn .card h3 {
  margin: 0 0 15px 0;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.stick-bottom-btn .card p {
  flex-grow: 1;
  margin: 0 0 20px 0;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.stick-bottom-btn .card p:last-of-type {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.stick-bottom-btn .card a.btn {
  align-self: flex-start;
  margin-top: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h2, section.hero h2 {
    font-size: 1.8rem;
  }

  .hero p, section.hero p {
    font-size: 1rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  .stick-bottom-btn {
    gap: 20px;
  }

  .stick-bottom-btn .card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}



/* ===== STATS SECTION - HORIZONTAL ===== */
.wrap.stats {
  display: flex !important;
  justify-content: center !important;
  gap: 60px !important;
  flex-wrap: wrap !important;
  padding: 60px 20px !important;
}

.wrap.stats > div {
  flex: 0 1 auto;
  text-align: center;
  min-width: 120px;
}

.wrap.stats .num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.wrap.stats .label {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-top: 10px;
}

/* ===== TRUSTED BY SECTION - CARD GRID ===== */
.partner-grid {
  display: flex !important;
  justify-content: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
  padding: 40px 0 !important;
}

.partner-tile {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 200px !important;
  height: 200px !important;
  background-color: #003d7a !important;
  border-radius: var(--border-radius) !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.partner-tile:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

.partner-tile img {
  width: 160px !important;
  height: 160px !important;
  object-fit: contain !important;
  padding: 20px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .wrap.stats {
    gap: 40px !important;
  }
  
  .partner-tile {
    width: 160px !important;
    height: 160px !important;
  }
  
  .partner-tile img {
    width: 120px !important;
    height: 120px !important;
  }
}

@media (max-width: 768px) {
  .wrap.stats {
    gap: 30px !important;
    flex-direction: column !important;
  }
  
  .partner-tile {
    width: 140px !important;
    height: 140px !important;
  }
  
  .partner-tile img {
    width: 100px !important;
    height: 100px !important;
  }
}



/* ===== PARTNER CARDS - BLUE BACKGROUND ===== */
.partner-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.partner-grid br {
  display: none;
}

.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  background-color: #003d7a;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.partner-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.partner-tile img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

/* ===== STATS HORIZONTAL ===== */
.stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  padding: 60px 20px;
}

.stats > div {
  text-align: center;
}

.num {
  font-size: 3rem;
  font-weight: 700;
  color: #003d7a;
  margin: 0;
}

.label {
  font-size: 0.95rem;
  color: #666;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .partner-tile {
    width: 140px;
    height: 140px;
  }
  
  .partner-tile img {
    width: 100px;
    height: 100px;
  }
  
  .stats {
    gap: 40px;
    flex-direction: column;
  }
}





/* ===== FOOTER - FORCE 5 COLUMNS ===== */
.site-footer .wrap {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 40px !important;
  margin-bottom: 40px !important;
}

.site-footer .wrap > * {
  grid-column: auto !important;
}

.site-footer .wrap > div:nth-child(n) {
  grid-column: span 1 !important;
}

/* Override display:contents if present */
.site-footer .footer-content {
  display: block !important;
  grid-column: auto !important;
}

.site-footer .footer-content > div {
  grid-column: auto !important;
  display: block !important;
}

.site-footer h3,
.site-footer h4 {
  color: white !important;
  margin-top: 0 !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

.site-footer p,
.site-footer div {
  color: white !important;
}

.site-footer a {
  color: white !important;
  text-decoration: none !important;
}

.site-footer a:hover {
  text-decoration: underline !important;
}

/* Copyright at bottom */
.site-footer .site-footer-copyright,
.site-footer .site-footer-bottom,
.site-footer .copyright {
  grid-column: 1 / -1 !important;
  border-top: 1px solid rgba(255,255,255,0.2) !important;
  padding-top: 20px !important;
  text-align: center !important;
  margin-top: 20px !important;
}

/* Responsive fallback */
@media (max-width: 768px) {
  .site-footer .wrap {
    grid-template-columns: 1fr !important;
  }
}/* CARDS - grid layout, equal height, button stuck to bottom */
.card-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
  padding: 1.5rem 0 !important;
  align-items: start !important;
}
.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
.card-grid .card {
  display: flex !important;
  flex-direction: column !important;
  padding: 1.75rem !important;
  border-radius: 8px !important;
  background: #f9f9f9 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  box-sizing: border-box !important;
  max-width: none !important;
}
.card-grid .card h3 {
  margin-top: 0 !important;
}
.card-grid .card p:first-of-type { flex-grow: 0 !important; }
.card-grid .card p:last-child {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 16px !important;
}
@media (max-width: 768px) {
  .card-grid, .card-grid.cols-3 {
    grid-template-columns: 1fr !important;
  }
}

/* STATS - compact horizontal, less padding */
.wrap.stats {
  display: flex !important;
  justify-content: center !important;
  gap: 60px !important;
  flex-wrap: wrap !important;
  padding: 20px !important;
}
.wrap.stats > div { text-align: center !important; }
.num { font-size: 2.5rem !important; font-weight: 700 !important; color: #003d7a !important; line-height: 1.2 !important; }
.label { font-size: 0.9rem !important; color: #666 !important; margin-top: 6px !important; }

/* TRUSTED BY - 200x220 cards, 160x160 logos */
.partner-grid {
  display: flex !important;
  justify-content: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
  padding: 30px 0 !important;
}
.partner-tile {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 200px !important;
  height: 220px !important;
  min-width: 200px !important;
  min-height: 220px !important;
  background-color: #003d7a !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.partner-tile img {
  width: 160px !important;
  height: 160px !important;
  object-fit: contain !important;
  display: block !important;
}

/* FOOTER - 5 columns */
.site-footer {
  background: #003d7a !important;
  color: #fff !important;
  padding: 50px 0 0 !important;
  margin-top: 0 !important;
}
.footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr 1.5fr !important;
  gap: 30px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 30px !important;
}
.footer-col h4 {
  color: #fff !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin: 0 0 12px !important;
  border-bottom: 1px solid rgba(255,255,255,0.2) !important;
  padding-bottom: 8px !important;
  font-weight: 600 !important;
}
.footer-col p { color: rgba(255,255,255,0.82) !important; font-size: 0.84rem !important; line-height: 1.7 !important; margin: 0 0 4px !important; }
.footer-col a { color: rgba(255,255,255,0.82) !important; font-size: 0.84rem !important; text-decoration: none !important; display: block !important; line-height: 1.9 !important; }
.footer-col a:hover { color: #fff !important; }
.footer-brand-name { font-size: 1.05rem !important; font-weight: 700 !important; color: #fff !important; margin: 0 0 6px !important; line-height: 1.3 !important; }
.footer-brand-motto { font-size: 0.84rem !important; color: rgba(255,255,255,0.65) !important; font-style: italic !important; margin: 0 !important; }
.footer-logo { max-width: 150px !important; height: auto !important; margin-bottom: 14px !important; display: block !important; }
.footer-copyright {
  text-align: center !important;
  border-top: 1px solid rgba(255,255,255,0.15) !important;
  margin-top: 40px !important;
  padding: 16px 30px !important;
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.5) !important;
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr !important; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .card-grid .card { max-width: 100% !important; }
  .partner-tile { width: 160px !important; height: 180px !important; min-width: 160px !important; min-height: 180px !important; }
  .partner-tile img { width: 120px !important; height: 120px !important; }
}

/* ===== END GCG OVERRIDE v3 ===== */


/* ============================================================
   GCG FINAL STYLES
   ============================================================ */

/* Division Cards */
.card-grid {
  display: flex !important;
  gap: 30px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  padding: 40px 0 !important;
}
/* stale card min-height block removed */
.card-grid .card h3 { margin-top: 0 !important; }
.card-grid .card p:first-of-type { margin-top: 12px !important; }
/* stale p:last-child block removed */

/* Stats */
.wrap.stats {
  display: flex !important;
  justify-content: center !important;
  gap: 60px !important;
  flex-wrap: wrap !important;
  padding: 20px !important;
}
.wrap.stats > div { text-align: center !important; }
.num { font-size: 2.5rem !important; font-weight: 700 !important; color: #003d7a !important; line-height: 1.2 !important; }
.label { font-size: 0.9rem !important; color: #666 !important; margin-top: 6px !important; }

/* Trusted By - 180x180 tiles */
.partner-grid {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  padding: 30px 0 !important;
}
a.partner-tile,
.partner-tile {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 180px !important;
  height: 180px !important;
  min-width: 180px !important;
  min-height: 180px !important;
  max-width: 180px !important;
  max-height: 180px !important;
  background-color: #003d7a !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
a.partner-tile img,
.partner-tile img {
  width: 140px !important;
  height: 140px !important;
  max-width: 140px !important;
  max-height: 140px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

/* Professional Memberships */
.membership-logos {
  display: flex !important;
  justify-content: center !important;
  gap: 30px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  padding: 30px 0 !important;
}
.membership-logos img { max-width: 100px !important; height: auto !important; }

/* Footer */
.site-footer {
  background: #003d7a !important;
  color: #fff !important;
  padding: 50px 0 0 !important;
}
.footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr 1.5fr !important;
  gap: 30px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 30px !important;
}
.footer-col h4 {
  color: #fff !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin: 0 0 12px !important;
  border-bottom: 1px solid rgba(255,255,255,0.2) !important;
  padding-bottom: 8px !important;
}
.footer-col p { color: rgba(255,255,255,0.82) !important; font-size: 0.84rem !important; line-height: 1.7 !important; margin: 0 0 4px !important; }
.footer-col a { color: rgba(255,255,255,0.82) !important; font-size: 0.84rem !important; text-decoration: none !important; display: block !important; line-height: 1.9 !important; }
.footer-col a:hover { color: #fff !important; }
.footer-brand-name { font-size: 1.05rem !important; font-weight: 700 !important; color: #fff !important; }
.footer-brand-motto { font-size: 0.84rem !important; color: rgba(255,255,255,0.65) !important; font-style: italic !important; }
.footer-logo { max-width: 100px !important; height: auto !important; margin-bottom: 10px !important; display: block !important; }
.footer-copyright {
  text-align: center !important;
  border-top: 1px solid rgba(255,255,255,0.15) !important;
  margin-top: 40px !important;
  padding: 16px 30px !important;
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.5) !important;
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr !important; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .card-grid .card { max-width: 100% !important; }
  a.partner-tile, .partner-tile { width: 140px !important; height: 140px !important; min-width: 140px !important; min-height: 140px !important; max-width: 140px !important; max-height: 140px !important; }
  a.partner-tile img, .partner-tile img { width: 110px !important; height: 110px !important; max-width: 110px !important; max-height: 110px !important; }
}

/* ============================================================
   END GCG FINAL STYLES
   ============================================================ */


/* ===== PATCH v5 - 2026-08-09 ===== */

/* Break partner-grid out of .wrap so all 6 tiles fit at 180px */
.section-trusted .wrap {
  max-width: 1400px !important;
  padding: 0 20px !important;
}

/* Professional Memberships logos - keep styles consistent */
.section .wrap .membership-logos img {
  max-width: 100px !important;
  height: auto !important;
}

/* ===== END PATCH v5 ===== */


/* PATCH v5b: widen .wrap globally so 6 partner tiles fit */
.wrap {
  max-width: 1280px !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
}


/* ===== PATCH v6 - 2026-08-09 ===== */

/* Parent theme sets .wrap { display:flex; justify-content:space-between }
   This stacks children side-by-side. For content sections we need column. */
.section .wrap {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* Stats row stays horizontal */
.section .wrap.stats {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Partner grid full width inside column wrap */
.partner-grid {
  width: 100% !important;
}

/* ===== END PATCH v6 ===== */


/* ===== NEW HOME SECTIONS ===== */

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
  margin-top: 40px;
}
.news-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-card h3 { color: #003d7a; margin: 0; font-size: 1rem; }
.news-card p { color: #555; font-size: 0.9rem; line-height: 1.6; flex-grow: 1; margin: 0; }
.news-tag {
  display: inline-block;
  background: #003d7a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  margin-top: 40px;
}
.testimonial-card {
  background: #f9f9f9;
  border-left: 4px solid #003d7a;
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-quote {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}
.testimonial-author {
  color: #003d7a;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Feature bullets */
.feature-bullets ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.feature-bullets ul li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: #444;
  font-size: 0.95rem;
}
.feature-bullets ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #003d7a;
  font-weight: 700;
}
.two-col-feature { max-width: 600px; margin: 0 auto; }

/* Contact trio */
.contact-trio {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.contact-trio a {
  color: #003d7a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-trio a:hover { text-decoration: underline; }

/* ===== END NEW HOME SECTIONS ===== */

.testimonial-source a {
  color: #003d7a;
  font-size: 0.78rem;
  text-decoration: none;
  opacity: 0.7;
}
.testimonial-source a:hover { opacity: 1; text-decoration: underline; }
.testimonial-author a { color: #003d7a; text-decoration: none; font-weight: 700; }
.testimonial-author a:hover { text-decoration: underline; }


/* ===== PATCH: widen Just Getting Started / Trade / Not Sure blocks ===== */
.two-col-feature {
  max-width: 860px !important;
  margin: 0 auto !important;
  width: 100% !important;
}
.feature-bullets ul li {
  font-size: 1rem !important;
}
.section .wrap > p[style*="max-width: 700px"] {
  max-width: 860px !important;
}
/* Not Sure - widen contact block */
.contact-trio {
  gap: 40px !important;
}
/* ===== END PATCH ===== */


/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonials-carousel-outer {
  position: relative;
  width: 100%;
  padding: 0 52px;
  box-sizing: border-box;
  margin-top: 40px;
}
.testimonials-carousel {
  overflow: hidden;
  width: 100%;
}
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  align-items: stretch;
}
.testimonial-card {
  flex: 0 0 calc(25% - 15px);
  display: grid !important;
  grid-template-rows: 1fr auto !important;
  background: #f9f9f9 !important;
  border-left: 4px solid #003d7a !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 24px 22px !important;
  box-sizing: border-box !important;
  min-height: 220px !important;
}
.testimonial-quote {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
  align-self: start;
}
.testimonial-footer {
  align-self: end;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}
.testimonial-author a {
  color: #003d7a !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
}
.testimonial-author a:hover { text-decoration: underline !important; }
.testimonial-source a {
  color: #666 !important;
  font-size: 0.78rem !important;
  text-decoration: none !important;
  display: inline-block !important;
  margin-top: 4px !important;
}
.testimonial-source a:hover { color: #003d7a !important; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #003d7a;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}
.carousel-btn:hover { background: #002a54; }
.carousel-btn:disabled { opacity: 0.25; cursor: default; }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
/* ===== END TESTIMONIALS CAROUSEL ===== */


/* =============================================================
   GCG CARD DEFAULT RULE
   ALL card types must use CSS Grid with 1fr on the body text
   so CTA buttons always stick to the card bottom.
   Pattern: grid-template-rows: auto [auto...] 1fr auto
   - auto  = tag / badge / heading (natural height)
   - 1fr   = body paragraph (expands to fill space)
   - auto  = button / link (pinned to bottom)
   Apply this to every new card class you create.
   ============================================================= */

/* News cards - tag / h3 / p(1fr) / btn */
.news-card {
  display: grid !important;
  grid-template-rows: auto auto 1fr auto !important;
  gap: 0 !important;
}
.news-card .news-tag  { align-self: start; margin-bottom: 10px; }
.news-card h3         { align-self: start; margin: 0 0 12px; }
.news-card p          { align-self: start; margin: 0 0 20px; }
.news-card .btn       { align-self: end; justify-self: start; margin-top: auto; }

/* Division cards already use grid-template-rows: auto 1fr auto */
/* Testimonial cards already use grid-template-rows: 1fr auto */

/* Future card classes: copy this pattern
.your-new-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: Xpx;
}
.your-new-card p:last-of-type { align-self: start; }
.your-new-card .btn           { align-self: end; justify-self: start; }
*/

































/* ===== END DIVISION CARDS ===== */


/* ===== HERO BUTTONS - keep side by side ===== */
.hero .wrap p:has(.btn) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
}
.hero .wrap p .btn {
  display: inline-flex !important;
  width: auto !important;
}
/* ===== END HERO BUTTONS ===== */


/* ===== HERO BUTTONS - centered ===== */
.hero .wrap p:has(.btn) {
  justify-content: center !important;
}
/* ===== END HERO BUTTONS CENTERED ===== */

/* CTA section button centering - all section .wrap p:has(.btn) */
.section .wrap p:has(.btn),
section.section .wrap > p:has(.btn) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: center !important;
}
.section .wrap p .btn,
section.section .wrap > p .btn {
    display: inline-flex !important;
    width: auto !important;
}

/* Sales CTA section: primary button red not blue */
main.accent-sales [style*="003d7a"] .btn.btn-primary {
    background-color: #EC0424 !important;
    border-color: #EC0424 !important;
    color: #fff !important;
}


/* Exhibitions & AI CTA section: primary button red not blue */
main.accent-exhibitions [style*="003d7a"] .btn.btn-primary,
main.accent-ai [style*="003d7a"] .btn.btn-primary {
    background-color: #EC0424 !important;
    border-color: #EC0424 !important;
    color: #fff !important;
}



/* ── Stats row (single continuous card) ──────────────────────────────────── */
.stats-row {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1.5rem;
}
.stats-row .stat {
    flex: 1;
    text-align: center;
    padding: 2rem 1rem;
    border-right: 1px solid #ddd;
}
.stats-row .stat:last-child {
    border-right: none;
}
.stat-num {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}
.stat-label {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.4;
}
@media (max-width: 640px) {
    .stats-row {
        flex-direction: column;
    }
    .stats-row .stat {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    .stats-row .stat:last-child {
        border-bottom: none;
    }
}

.card-grid .card p { font-size: 1rem !important; line-height: 1.6 !important; }