/*
Theme Name: Gymnastics Club Theme
Theme URI: http://gymnastics-club-theme.local
Author: Usman
Author URI: http://yourwebsite.com
Description: A clean, responsive WordPress theme for gymnastics clubs, focusing on red, white, and light grey branding.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gymnastics-club-theme
Tags: responsive, clean, gymnastics, club
*/

/* Layout container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Make images scale down on small screens */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    background-color: #ffffff; /* white */
    color: #333;
}

header {
    background-color: #ffffff; /* white */
    color: #fff;
    /* padding and text-align handled by .site-header-inner now */
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
    max-width: 800px;
    margin: auto;
    background: #fff;
    border-radius: 4px;
}

/* Widen page content safely (pages only) */
body.page main {
  max-width: 1000px;  /* try 1100–1200px to taste */
}

/* Extra spacing between hero section and page content */
.page-hero + .site-main .entry-content > *:first-child {
  margin-top: 30px; /* adjust the value as needed */
}

/* Add space between headings and first bullet points */
.entry-content h2,
.entry-content h3 {
  margin-bottom: 20px; /* increase value for more space */
}

/* Universal body text tone */
.entry-content,
.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content li,
.entry-content .wp-block-list li {
  color: #555;
}

/* Keep headings and emphasized labels darker */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #333;
}
.entry-content li strong {
  color: #333;
}

/* (optional) a touch more space after headings before lists */
.entry-content h2 { margin-bottom: 20px; }
.entry-content h2 + ul,
.entry-content h2 + ol { margin-top: 8px; }

.hero-subtext,
.page-subtitle,
.section-subtitle {
    color: #333 !important;
}

footer {
    background: #ffffff;
    color: #333;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}

.site-navigation {
    background: #ffffff;
    padding: 10px 0;
    text-align: center;
}

.primary-menu {
    list-style: none;
}

.primary-menu li {
    display: inline-block;
    margin: 0 15px;
}

.primary-menu a {
    color: #747474;
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.primary-menu a:hover {
    border-bottom: 2px solid #d62828; /* subtle red accent */
}

/* Navigation bar */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 10px 15px;
    color: #000;
    font-weight: 500;
}

nav ul li a:hover {
    border-bottom: 2px solid #d62828; /* subtle red underline on hover */
    color: #d62828; /* red hover colour */
}

/* Dropdown menu styling */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 1000;
    padding: 0;
}

nav ul li:hover > ul {
    display: block;
}

nav ul li ul li {
    width: 100%;
}

nav ul li ul li a {
    padding: 10px 15px;
    color: #000;
    font-weight: 400;
}

nav ul li ul li a:hover {
    background: #f8f8f8; /* light grey on hover */
    color: #d62828;
}

/* Ensure nav is positioned */
.site-navigation {
    position: relative;
    text-align: center;
}

.primary-menu li {
    position: relative;
    display: inline-block;
    margin: 0 15px;
}

.primary-menu li a {
    display: block;
    padding: 10px 30px;
    transition: color 0.3s, border-bottom 0.3s;
}

.primary-menu li a:hover {
    color: #d62828; /* subtle red hover */
    border-bottom: 2px solid #d62828;
}

/* Dropdown styling */
.primary-menu li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 0;
    min-width: 180px;
    text-align: left;
    z-index: 999;
}

.primary-menu li:hover ul.sub-menu {
    display: block;
}

.primary-menu li ul.sub-menu li {
    display: block;
    margin: 0;
}

.primary-menu li ul.sub-menu li a {
    padding: 10px 15px;
    white-space: nowrap;
}

.primary-menu li ul.sub-menu li a:hover {
    background: #f8f8f8;
    border-bottom: none;
    color: #d62828;
}

.header-icons {
    position: absolute;
    top: 30px;
    right: 125px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.header-icons a {
    color: #747474;
    display: flex;
    align-items: center;
    font-size: 14.5px;
    font-family: sans-serif;
    font-weight: 500; /* Add this line to match menu weight */
    transition: color 0.3s ease;
}

.header-icons a:hover {
    color: #d62828; /* Your red accent */
}

.header-icons i {
    font-size: 1.2rem;
    margin-right: 6px;
}

.login-text {
    display: inline-block;
}

.hero-section {
    margin-top: 0; /* remove extra spacing */
    padding: 0;    /* remove internal padding */
    text-align: center;
    background: #ffffff;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%; /* ensures no cropping */
    border-radius: 0; /* removes rounded corners for full-width flush */
    margin: 0;        /* removes default margins */
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 500;
    font-family: "Futura", Sans-serif;
    font-style: normal;
    color: #fff;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: "Futura", Sans-serif;
    font-size: large;
    transition: background 0.3s, color 0.3s;
}

.btn-primary {
    border: 2px solid #d62828;
    background: #d62828;
    color: #fff;
}

.btn-primary:hover {
    background: #b71c1c;
}

.btn-secondary {
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: #d62828;
    color: #fff;
    border-color: #d62828;
}

/* Make secondary button red only inside Latest News cards */
.latest-news-section .news-item .btn-secondary {
    background: #d62828;
    border-color: #d62828;
    color: #fff;
}

.latest-news-section .news-item .btn-secondary:hover {
    background: #b71c1c;
    border-color: #b71c1c;
    color: #fff;
}

/* --- News Archive Cards – Read More button --- */
.news-archive .news-item a.btn,
.news-archive .news-item a.btn-secondary {
    display: block;
    margin: 15px;
    padding: 12px 25px;
    border-radius: 4px;
    background-color: #d62828;
    border: 2px solid #d62828;
    color: #fff;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
}

.news-archive .news-item a.btn:hover,
.news-archive .news-item a.btn-secondary:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
    color: #fff;
}

/* --- News Archive – Date styling --- */
.news-archive .news-date {
    font-weight: 700;
    color: #555;
    margin: 10px 15px 5px;
    text-align: center;
}

.news-archive .news-item {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    max-width: 350px;
    margin: 0 auto;
    text-align: left;
    padding-bottom: 20px;
}

.news-archive {
  padding: 40px 0 60px;
}

.news-archive .news-excerpt {
    margin: 0 15px 15px;
    color: #555;
    text-align: center;
}

/* Center post titles on the News archive page */
.news-archive .news-item h3,
.news-archive .news-item h3 a {
    text-align: center;
    display: block;
}

.hero-section {
    position: relative;
    background: url('https://severngtc.org/wp-content/uploads/2025/12/PHOTO-2025-11-15-18-10-47.jpg') center center/cover no-repeat;
    height: 80vh; /* adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white; /* ensure text is visible */
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); /* optional dark overlay for readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-buttons a {
    display: inline-block;
    margin: 10px;
}

.site-logo {
    height: 120px; /* default desktop height, overridden in mobile */
    width: auto;
    display: block;
}

/* basic .site-header styling; layout handled later in responsive section */
.site-header {
    background: #ffffff;
}

.site-navigation {
    margin-left: auto; /* only effective in flex contexts */
}

/* Base arrow for ALL devices – static ▼ */
.primary-menu li.menu-item-has-children > a::after {
    content: " ▼";
    font-size: 0.6em;
    margin-left: 4px;
    color: #747474;
    vertical-align: middle;
    display: inline-block;
}

/* Club Intro Section */
.club-intro-section {
    background: #f8f8f8; /* subtle light grey background */
    padding: 60px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.intro-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.intro-text {
    flex: 1 1 500px;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #d62828; /* brand red for emphasis */
}

.intro-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
}

.intro-text .btn {
    margin-top: 15px;
}

/* More space above the "Meet Our Coaches" button */
.intro-text p:last-of-type {
  margin-bottom: 40px; /* adjust to taste */
}

.intro-image {
    flex: 1 1 400px;
    text-align: center;
}

.intro-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .intro-content {
        flex-direction: column;
        text-align: center;
    }
    .intro-text h2 {
        font-size: 2rem;
    }
}

/* Latest News Section */
.latest-news-section {
    background: #ffffff;
    padding: 40px 20px; /* reduced from 60px to tighten spacing */
    text-align: center;
    position: relative;
    border-top: 3px solid #f0f0f0; /* subtle divider line */
}

.latest-news-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px; /* tighter spacing */
    color: #d62828; /* brand red */
    position: relative;
}

.latest-news-section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #d62828; /* subtle underline */
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

/* Intro text under Latest From the Club heading */
.latest-news-intro {
    max-width: 750px;
    margin: 0 auto 18px;
    text-align: center;
    color: #555;
    font-size: 1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.news-item {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* reduced for softer feel */
    text-align: center;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.news-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.news-item h3 {
    font-size: 1.3rem;
    margin: 15px;
    color: #333;
}

.news-item p {
    font-size: 1rem;
    margin: 0 15px 15px 15px;
    color: #555;
}

.latest-news-section .news-item .news-date {
    font-weight: 600;
    margin: 10px 15px 6px 15px;
    color: #555;
}

.latest-news-section .news-item .news-excerpt {
    margin: 0 15px 15px 15px;
    color: #555;
}

.news-item .btn {
    margin: 0 15px 15px 15px;
    display: block;
    text-align: center;
}

.all-news-link {
    margin-top: 30px;
}

footer {
    font-family: sans-serif;
    color: #333;
    width: 100%;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px;
    background: #ffffff;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-divider {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    border-top: 1px solid #ddd;
}

.footer-contact,
.footer-social,
.footer-links {
    flex: 1 1 250px;
    max-width: 300px;
    text-align: center;
}

.footer-contact h4,
.footer-social h4,
.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #d62828;
    position: relative;
    display: inline-block;
}

.footer-contact h4::after,
.footer-social h4::after,
.footer-links h4::after {
    content: "";
    display: block;
    height: 3px;
    width: 40px;
    background: #d62828;
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

.footer-contact p {
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    margin-bottom: 8px;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.footer-contact p a {
    color: #555;
    text-decoration: none;
    margin-left: 0;
}

.footer-contact p a:hover {
    color: #d62828;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.footer-social-icons a {
    color: #555;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-social-icons a:hover {
    color: #d62828;
}

.footer-links a {
    color: #555;
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: #d62828;
}

.footer-contact i {
    color: #d62828;
    margin-right: 8px;
    width: 16px;
    flex-shrink: 0;
}

.footer-social-icons a {
    color: #555;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-social-icons a:hover {
    color: #d62828;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-bottom {
    background: #ffffff;
    text-align: center;
    padding: 15px 20px;
    font-size: 0.9rem;
    color: #777;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.footer-bottom p {
    margin: 0;
}

/* Ensure body has no bottom margin/padding and footer sticks to bottom */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Make sure the footer sticks to the bottom */
footer {
    margin-bottom: 0;
}

/* Remove any WordPress default margins that might be causing the gap */
body.wordpress {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Target WordPress admin bar spacing if present */
body.admin-bar {
    margin-bottom: 0 !important;
}

/* Alternative approach if the above doesn't work */
.footer-full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.footer-logos {
    background: #ffffff;
    text-align: center;
    padding: 20px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logos img {
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Keep the curve design but ensure no red line appears */
.app-download-section {
    position: relative;
    background: #d62828; /* club red */
    padding: 80px 20px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.app-download-section::after {
    content: "";
    position: absolute;
    bottom: -1px; /* Slight negative margin to prevent any gap */
    left: 0;
    width: 100%;
    height: 80px;
    background: #ffffff; /* White background to match footer */
    clip-path: polygon(0 100%, 100% 0%, 100% 100%);
    z-index: 0;
}

.app-download-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.app-download-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
}

.app-download-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #f0f0f0;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-buttons .app-badge {
    max-width: 160px;
    height: auto;
    transition: transform 0.3s;
}

.app-buttons .app-badge:hover {
    transform: scale(1.05);
}

.top-contact-bar {
  background-color: #d62828; /* Strong red */
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:8px 90px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.top-contact-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 700; /* Changed from 500 to 700 for bold */
}

.top-contact-bar a:hover {
  text-decoration: underline;
}

.top-contact-bar i {
  margin-right: 6px;
}

.top-contact-left,
.top-contact-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Make phone number specifically bold */
.top-contact-left {
  font-weight: 700; /* Bold for phone number */
}

.top-login-btn {
  background: transparent; /* No background - just text */
  color: #fff; /* White text on red background */
  padding: 0; /* Remove padding */
  border-radius: 0; /* Remove border radius */
  font-weight: 700; /* Bold text */
  text-decoration: none;
}

.top-login-btn:hover {
  text-decoration: underline; /* Simple underline on hover */
}

/* Center heading only for mobile & tablet on Women's Gymnastics page */
@media (max-width: 1024px) {
  .page-id-24 .entry-content h1 {
    text-align: center !important;
  }
}

/* Add extra space when an H2 follows a paragraph on all pages */
.entry-content p + h2 {
  margin-top: 2rem; /* ~32px */
}

/* === Global Page Hero === */
:root {
  --page-hero-bg: #f5f5f5;
  --page-hero-title: #333;
  --page-hero-text: #555;
}

.page-hero { background: var(--page-hero-bg); padding: 60px 20px; text-align: center; }
.page-hero__inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.page-hero__title { font-size: 2.5rem; line-height: 1.2; margin: 0 0 12px; color: var(--page-hero-title); }
.page-hero__desc { font-size: 1.1rem; color: var(--page-hero-text); margin: 0 auto; max-width: 800px; }

@media (max-width: 1024px){ .page-hero { padding: 50px 16px; } .page-hero__title { font-size: 2.1rem; } }
@media (max-width: 640px){ .page-hero { padding: 44px 16px; } .page-hero__title { font-size: 1.8rem; } .page-hero__desc { font-size: 1rem; } }

/* === Buttons – utilities & scope === */

/* Small button utility */
.btn--sm {
  padding: 10px 18px;
  font-size: 0.95rem;
  line-height: 1.1;
}

/* Keep hero button a bit bigger */
.page-hero_buttons .btn {
  padding: 12px 25px;
  font-size: 1rem;
}

/* Never underline buttons on hover, even with global a:hover */
.btn,
.btn:hover {
  text-decoration: none !important;
}

/* Optional: tidy spacing when buttons are in a row */
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}

/* --- Consistent spacing in page content --- */

/* Give paragraphs & lists a little breathing room */
.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 16px;
}

/* Add space before ANY heading that follows any element
   (covers p, ul/ol, tables, figures, etc.) */
.entry-content * + h2 { margin-top: 28px; }
.entry-content * + h3 { margin-top: 24px; }
.entry-content * + h4,
.entry-content * + h5,
.entry-content * + h6 { margin-top: 20px; }

/* If a heading is the very first child, don't add top space */
.entry-content > h2:first-child,
.entry-content > h3:first-child,
.entry-content > h4:first-child,
.entry-content > h5:first-child,
.entry-content > h6:first-child {
  margin-top: 0;
}

/* === About page styles === */
.about { padding: 50px 0; }
.about .container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Intro blurb */
.about-lead {
  max-width: 900px;
  margin: 0 auto 28px;
  text-align: center;
  font-size: 1.1rem;
  color: #555;
}

/* Icon band - UPDATED with fixes */
.about-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px auto 42px;
}

.about-icon {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

/* FIXED: Proper icon container styling */
.about-icon__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fde7e7;
    margin-bottom: 8px;
    color: #d62828;   /* ensure emoji/text icons show */
}

/* FIXED: SVG styling */
.about-icon__glyph svg {
    fill: #d62828;
    width: 28px;
    height: 28px;
}

.about-icon h3 { margin: 0 0 4px; font-size: 1.05rem; color: #333; }
.about-icon p { margin: 0; color: #555; font-size: 0.95rem; }

/* Updated structure for icon content */
.about-icon > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Split feature */
.about-split {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; margin: 44px 0;
}
.about-split__text { flex: 1 1 430px; }
.about-split__image { flex: 1 1 380px; text-align: center; }
.about-split__image img {
  width: 100%; max-width: 520px; height: auto;
  border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.about-split__text ul {
    padding-left: 0;
    margin-left: 0;
    list-style-position: inside;
}

/* Pillars / features grid */
.feature-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 24px 0 8px;
}
.feature {
  background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 18px;
}
.feature h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature p  { margin: 0; color: #555; }

/* Coaches section - FIXED LAYOUT */
.coaches { 
    padding: 50px 0 16px; 
}

.coaches h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

/* IMPORTANT: Make sure this targets the right element */
.coaches-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px 32px;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.coaches-grid > .coach-card--full {
    grid-column: 1 / -1 !important;
    margin-top: 60px !important;   /* guaranteed spacing */
}

/* Reduce image size ONLY for full-width coach cards */
.coach-card--full .coach-photo--placeholder,
.coach-card--full .coach-photo {
    max-width: 250px;     /* adjust this to your preferred size */
    margin: 0 auto;       /* centre the image nicely */
    display: block;
}

.coach-card--full {
  margin-top: 30px;
}

/* Mobile: 1 column only on smaller screens */
@media (max-width: 700px) {
    .coaches-grid { 
        grid-template-columns: 1fr !important; 
        gap: 24px;
    }
}

/* Coach card styling */
.coach-card {
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 14px; 
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,.04);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.coach-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 10px 18px rgba(0,0,0,.08); 
}

.coach-photo--placeholder { 
    aspect-ratio: 4 / 3; 
    object-fit: contain !important; 
    width: 100%; 
}

.coach-photo { 
    aspect-ratio: 4 / 3; 
    object-fit: cover;
    object-position: 50% 15%;  /* horizontal center, slightly higher in the frame */
    width: 100%; 
}

.coach-body { 
    padding: 20px; 
    flex: 1;
    display: flex;
    flex-direction: column;
}

.coach-name { 
    margin: 0 0 4px; 
    font-weight: 700; 
    color: #333;
}

.coach-role { 
    margin: 0 0 12px; 
    color: #d62828; 
    font-weight: 600; 
    font-size: 0.95rem;
}

.coach-body ul {
    padding-left: 20px;   /* moves bullets right */
    margin-top: 10px;     /* optional: space above list */
}

.badges { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-top: auto; /* This pushes badges to bottom */
}

.badge { 
    font-size: 0.8rem; 
    background: #f8f8f8; 
    border: 1px solid #eee; 
    border-radius: 50px; 
    padding: 4px 10px; 
    color: #555;
}

/* CTA row */
.about-cta { text-align: center; margin: 36px 0 0; }
.about-cta .btn { margin: 6px; }

/* Nice breathing room above any h2 after a paragraph */
.entry-content p + h2 { margin-top: 2rem; }

/* What We Stand For – responsive 4/2/1 grid, equal height cards */
.about-standfor { margin: 44px 0; }
.about-standfor h2 { margin: 0 0 16px; color: #333; }

.standfor-grid {
  display: grid;
  grid-template-columns: 1fr;           /* mobile */
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 700px) {
  .standfor-grid { grid-template-columns: repeat(2, 1fr); }  /* tablet */
}
@media (min-width: 1024px) {
  .standfor-grid { grid-template-columns: repeat(4, 1fr); }  /* desktop */
}

.standfor-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,.04);
  padding: 20px;
  display: flex;               /* equal height with grid stretch */
  flex-direction: column;
  height: 100%;
}

.standfor-card h3 { margin: 0 0 10px; color: #333; }
.standfor-card p  { margin: 0; color: #555; }

/* WPForms submit button — theme colors */
.wpforms-container .wpforms-form button.wpforms-submit,
.wpforms-container .wpforms-form input[type="submit"].wpforms-submit {
  background: #d62828 !important;
  border: 2px solid #d62828 !important;
  color: #fff !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background .2s ease;
}

.wpforms-container .wpforms-form button.wpforms-submit:hover,
.wpforms-container .wpforms-form input[type="submit"].wpforms-submit:hover {
  background: #b71c1c !important;
  border-color: #b71c1c !important;
}

.contact-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .contact-panel__grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  box-shadow: 0 6px 14px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(0,0,0,.07);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fde7e7;           /* soft red tint */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-card__icon svg {
  width: 26px;
  height: 26px;
  fill: #d62828;                  /* brand red */
}

.contact-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #333;
}

.contact-card p {
  margin: 0;
  color: #555;
  grid-column: 2;                 /* keep text aligned with heading */
}

.contact-card a {
  color: #d62828;
  font-weight: 700;
  text-decoration: none;
}

.contact-card a:hover { text-decoration: underline; }

/* === Single news / post layout === */

.single-hero {
  background: #f5f5f5;
  padding: 50px 20px 30px;
  text-align: center;
}

.single-title {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 8px;
  color: #333;
}

.single-meta {
  margin: 0;
  color: #777;
  font-size: 0.95rem;
}

.single-main {
  padding: 40px 0 60px;
}

.single-post-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.single-featured-image {
  margin-bottom: 24px;
}

.single-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Tidy typography inside posts */
.single-content p,
.single-content ul,
.single-content ol {
  margin-bottom: 16px;
  color: #555;
  line-height: 1.7;
}

.single-content h2 {
  margin: 28px 0 12px;
  color: #333;
}

.single-content h3 {
  margin: 22px 0 10px;
  color: #333;
}

/* Buttons inside post content reuse theme button styles */
.single-content .btn {
  margin-top: 10px;
}

/* === FAQ page layout (TABLE VERSION - GUARANTEED TO WORK) === */
.entry-content .faqs { padding: 36px 0 18px; }
.entry-content .faqs .faqs__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.entry-content .faqs .faqs__title { margin: 0 0 6px; }
.entry-content .faqs .faqs__lead  { margin: 0 0 22px; color:#555; }

/* TABLE LAYOUT */
.entry-content .faqs .faq-table {
  width: 100%;
  border-spacing: 20px 0;
  border-collapse: separate;
}

.entry-content .faqs .faq-column {
  width: 50%;
  vertical-align: top;
  padding: 0;
}

/* Mobile - stack vertically */
@media (max-width: 779px) {
  .entry-content .faqs .faq-table,
  .entry-content .faqs .faq-table tr,
  .entry-content .faqs .faq-column {
    display: block;
    width: 100%;
  }
  
  .entry-content .faqs .faq-table {
    border-spacing: 0;
  }
}

/* Cards - EQUAL HEIGHT BOXES */
.entry-content .faqs .faq-group {
  width: 100%;
  margin: 0 0 20px 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px 16px 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,.04);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

/* Make all FAQ groups same height in each row */
.entry-content .faqs .faq-column {
  display: flex;
  flex-direction: column;
}

/* Center the 5th box (Venue & Practicalities) */
.entry-content .faqs .faq-group:last-child {
  margin: 0 auto 20px auto;
  max-width: 400px;
}

.entry-content .faqs .faq-group__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #d62828;
}

/* Accordion items */
.entry-content .faqs details.faq { border-top: 1px dashed #e7e7e7; }
.entry-content .faqs details.faq:first-of-type { border-top: 0; }
.entry-content .faqs details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 10px;
  position: relative;
  font-weight: 600;
}
.entry-content .faqs details.faq summary::-webkit-details-marker { display: none; }

/* caret */
.entry-content .faqs details.faq summary::after {
  content: "▸";
  position: absolute;
  right: 8px; top: 12px;
  transition: transform .18s ease;
  color: #999;
}
.entry-content .faqs details.faq[open] summary::after {
  transform: rotate(90deg);
  color:#d62828;
}
.entry-content .faqs .faq__answer {
  padding: 0 10px 14px 10px;
  color:#555;
  line-height: 1.55;
}

/* Links inside answers */
.entry-content .faqs .faq__answer a { color:#d62828; text-decoration: none; }
.entry-content .faqs .faq__answer a:hover { text-decoration: underline; }

/* ========================================================= */
/* === Responsive header & navigation (desktop + mobile) === */
/* ========================================================= */

/* Inner wrapper for logo + nav */
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px;          /* a bit more breathing room like your local */
  display: flex;
  align-items: center;
  justify-content: space-between;  /* logo left, nav right */
  gap: 30px;
}

/* Logo default size (desktop) */
.site-logo {
  height: 120px;
  width: auto;
  display: block;
}

/* Hamburger button – hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
}

/* Hamburger lines */
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #d62828;
  border-radius: 2px;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hamburger turns into X when .is-open is on the button */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ----------- MOBILE & TABLET (≤ 900px) ----------- */
@media (max-width: 900px) {

  /* Header row can wrap into two lines */
  .site-header-inner {
    padding: 10px 15px;
    flex-wrap: wrap;
    align-items: center;
  }

  /* Logo on the left, top row */
  .site-header-inner > a {
    order: 0;
  }

  .site-logo {
    height: 70px;
    width: auto;
    display: block;
  }

  /* Hamburger on the right, same row as logo */
  .nav-toggle {
    display: flex;
    order: 1;
    margin-left: auto;
  }

  /* Menu drops to a new row underneath, full width, centred text */
  .site-navigation {
    order: 2;
    flex-basis: 100%;
    position: static;
    background: #ffffff;
    border-top: 1px solid #eee;
    display: none;              /* shown when .open is added */
    z-index: 999;
    padding: 10px 0 12px;
    text-align: center;
    width: 100%;
  }

  .site-navigation.open {
    display: block;
  }

  .site-navigation .primary-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 0 20px 10px;
  }

  .site-navigation .primary-menu li {
    display: block;
    width: 100%;
    margin: 0;
    border-top: 1px solid #f2f2f2;
  }

  .site-navigation .primary-menu a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    text-align: center;
  }

  /* Top red bar tighter and centred on mobile */
  .top-contact-bar {
    padding: 6px 16px;
    justify-content: center;
    gap: 6px;
  }

  /* --- Mobile sub-menus (e.g. Classes ▼) --- */

  /* Override desktop dropdown styles inside the mobile nav */
  .site-navigation .primary-menu li ul.sub-menu {
    position: static;            /* no absolute overlay */
    top: auto;
    left: auto;
    transform: none;
    box-shadow: none;
    background: #f8f8f8;         /* LIGHT GREY background on mobile dropdown */
    width: 100%;
    padding: 0;
    margin: 0;
    display: none;               /* hidden until parent has .submenu-open */
  }

  .site-navigation .primary-menu li ul.sub-menu li {
    border-top: 1px solid #f2f2f2;
  }

  .site-navigation .primary-menu li ul.sub-menu a {
    padding: 10px 0;
    font-size: 15px;
    text-align: center;
    width: 100%;
    display: block;
    background: #f8f8f8;         /* match dropdown panel colour */
  }

  /* When a parent item is open, show its submenu */
  .site-navigation .primary-menu li.submenu-open > ul.sub-menu {
    display: block;
  }

  /* MOBILE ONLY – arrow changes to ▲ when open */
  .primary-menu li.menu-item-has-children.submenu-open > a::after {
    content: " ▲";
  }
}

/* Add safe padding for hero text on mobile */
@media (max-width: 700px) {
    .hero-content h1 {
        padding: 0 20px;   /* left & right padding */
        font-size: 4.0rem; /* optional: slightly smaller for balance */
        line-height: 1.15;
    }

    .hero-buttons {
        padding: 0 20px;   /* keeps buttons aligned with the text */
    }
}

/* Reduce the big gap under the intro section on mobile */
@media (max-width: 700px) {

    /* Reduce padding of entire section */
    .club-intro-section {
        padding-bottom: 20px !important;
        padding-top: 30px !important;
    }

    /* Reduce margin under the intro image */
    .intro-image {
        margin-bottom: 15px !important;
    }

    /* Reduce spacing before Latest News section */
    .latest-news-section {
        padding-top: 20px !important;
    }
}

/* Tighten space between intro image and "Latest From the Club" on mobile */
@media (max-width: 900px) {
  .home .club-intro-section {
    padding-bottom: 20px;   /* was 60px */
  }

  .home .latest-news-section {
    padding-top: 30px;      /* was 60px */
  }
}

/* Mobile – tighten space between intro image and "Latest From the Club" */
@media (max-width: 700px) {

  /* squash the intro section */
  .club-intro-section {
    padding-top: 30px !important;
    padding-bottom: 10px !important;
  }

  /* remove any extra margin under the last element in the intro section
     (usually the image block / container) */
  .club-intro-section > *:last-child {
    margin-bottom: 0 !important;
  }

  /* pull the Latest News section up */
  .latest-news-section {
    margin-top: 0 !important;
    padding-top: 25px !important;
  }

  /* make sure the Latest News heading isn’t adding extra gap */
  .latest-news-section h2 {
    margin-top: 0 !important;
  }
}

/* Centre Contact Us details on mobile */
@media (max-width: 768px) {
  .footer-contact p {
    justify-content: center;   /* centre icon + text as a group */
    text-align: center;        /* centre multi-line text */
  }
}

/* Add mobile padding so bullet points don't touch screen edges */
@media (max-width: 768px) {

  body.page .entry-content ul,
  body.page .entry-content ol {
      padding-left: 22px !important;   /* safe spacing */
      margin-left: 0 !important;
  }

  body.page .entry-content li {
      padding-left: 4px !important;    /* slight extra breathing room */
  }
}

@media (max-width: 768px) {
  .enquiries-label {
    display: none !important;
  }
}

/* Mobile: left/right alignment for phone + login */
@media (max-width: 768px) {
  .top-contact-bar {
    display: flex;
    justify-content: space-between; /* left + right aligned */
    align-items: center;
    padding: 8px 24px; /* keeps it tidy */
  }

  .top-contact-left,
  .top-contact-right {
    width: auto;
  }

  /* Optional: prevent wrapping weirdness */
  .top-contact-left a,
  .top-contact-right a {
    white-space: nowrap;
  }
}

/* Facebook feed wrapper on home page */
.latest-from-club__feed {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto 20px;  /* tighter space above & below the box */
    width: 100%;
}

.latest-from-club__feed > * {
    margin: 0 auto;
}



/* === Tidy spacing for "Latest From the Club" on home === */
.home .latest-news-section {
    padding-top: 30px;
    padding-bottom: 30px;
}

.home .latest-news-section h2 {
    margin-bottom: 10px;
}

.home .latest-news-intro {
    margin-bottom: 4px;
}

.home .latest-from-club__feed {
    margin-top: 0;
    margin-bottom: 15px;
}




/* REPLACE THE PREVIOUS FIX WITH THIS - ADD TO END OF style.css */

/* Pull Facebook feed closer to intro text with negative margin */
.home .latest-news-intro {
    margin-bottom: 0 !important;
}

.home .latest-from-club__feed {
    margin-top: -80px !important;  /* Negative margin pulls it up */
    padding-top: 0 !important;
}

.latest-from-club__feed {
    margin: -80px auto 20px !important;
    padding-top: 0 !important;
}

/* Target all Smash Balloon Facebook feed elements */
#cff,
.cff-wrapper,
#cff .cff-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Target the iframe if Facebook uses one */
.latest-from-club__feed iframe {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any top spacing from first child inside feed */
.latest-from-club__feed > *:first-child,
#cff > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Adjust if -80px is too much or too little:
   Try values between -40px to -120px to get it perfect */



/* Add more space below the Facebook button */
.home .latest-news-section .all-news-link {
    margin-bottom: 30px !important;
}

/* Alternative: add padding to bottom of entire section */
.home .latest-news-section {
    padding-bottom: 40px !important;
  

  




  

  
 