/* Heart of England Pétanque
   Joomla 6 / Helix Ultimate
   Starter visual refresh
*/

/* Brand colours */
:root {
    --hoe-green: #173F32;
    --hoe-green-light: #39745B;
    --hoe-ivory: #F5F3ED;
    --hoe-gold: #D9B76C;
    --hoe-text: #292F2B;
}

/* General typography */
body {
    color: var(--hoe-text);
    font-size: 16px;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--hoe-green);
    line-height: 1.25;
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* Links */
a {
    text-underline-offset: 0.2em;
}

a:hover {
    text-decoration-thickness: 2px;
}

/* Main content spacing */
#sp-main-body {
    padding-top: 36px;
    padding-bottom: 48px;
}

/* Article text width */
.com-content.view-article #sp-component .article-details,
.com-content.view-article #sp-component .com-content-article {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Article images */
.com-content-article img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Module titles */
.sp-module .sp-module-title {
    color: var(--hoe-green);
    font-weight: 600;
    line-height: 1.3;
}

/* Buttons */
.btn-primary,
.sppb-btn-primary {
    background-color: var(--hoe-green);
    border-color: var(--hoe-green);
}

.btn-primary:hover,
.btn-primary:focus,
.sppb-btn-primary:hover,
.sppb-btn-primary:focus {
    background-color: var(--hoe-green-light);
    border-color: var(--hoe-green-light);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    #sp-main-body {
        padding-top: 24px;
        padding-bottom: 32px;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =============================================================
   HOE CUSTOMISATION: Two-row header height split
   The back-end "Header Height" setting controls --header_height.
   Row 1 (logo + title) = 60%, Row 2 (menu) = 40% of that total.
   ============================================================= */

/* Let the header grow to fit both rows instead of using a fixed height */
#sp-header {
    height: auto !important;
}

/* Row 1: logo + site title — full-width band, fills remaining height after row 2 */
#sp-header .header-row-1 {
    height: calc(var(--header_height) - 50px);
    display: flex;
    align-items: center;
}

/* Row 2: menu bar — fixed 50px on large screens, smaller on tablet/mobile */
#sp-header .header-row-2 {
    height: 50px;
    display: flex;
    align-items: center;
}

/* Remove the framework's side padding so row bands reach the full viewport width */
#sp-header.full-header {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Make container-fluid fill the full width of its row band */
#sp-header .header-row-1 .container-fluid,
#sp-header .header-row-2 .container-fluid {
    width: 100%;
    padding-left: 45px;
    padding-right: 45px;
}

/* Vertically centre menu text within row 2 only (overrides the
   framework default which uses the full --header_height value) */
#sp-header .header-row-2 .sp-megamenu-parent > li > a,
#sp-header .header-row-2 .sp-megamenu-parent > li > span {
    line-height: 50px;
}

@media (max-width: 991px) {
    #sp-header .header-row-1 {
        height: calc(var(--header_height) - 36px);
    }
    #sp-header .header-row-2 {
        height: 36px;
    }
    #sp-header .header-row-2 .sp-megamenu-parent > li > a,
    #sp-header .header-row-2 .sp-megamenu-parent > li > span {
        line-height: 36px;
    }
}

@media (max-width: 575px) {
    #sp-header .header-row-1 {
        height: calc(var(--header_height) - 28px);
    }
    #sp-header .header-row-2 {
        height: 28px;
    }
    #sp-header .header-row-2 .sp-megamenu-parent > li > a,
    #sp-header .header-row-2 .sp-megamenu-parent > li > span {
        line-height: 28px;
    }
}

/* ============================================================= */

/* Selected menu item */
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.active:hover > a {
    color: #ffffff !important;
    background-color: #d6b45a !important;
    border-radius: 4px;
}

/* Remove gold background from hover on other items */
.sp-megamenu-parent > li:hover > a {
    color: #f0d58a !important;
}

/* Keep selected item white with gold background when hovered */
.sp-megamenu-parent > li.active:hover > a {
    color: #ffffff !important;
    background-color: #d6b45a !important;
}

/* Gold underline */
.sp-megamenu-parent > li.active > a::after {
    background-color: #d6b45a !important;
}

#sp-header .header-row-1 { background-color: var(--hoe-green-light); }
#sp-header .header-row-2 { background-color: var(--hoe-green); }


/* =============================================================
   HOE CUSTOMISATION: Add custom fonts and styling for main
   title
   ============================================================= */
/* 

/* Locally hosted Montserrat fonts
 downloaded from  http://www.ffonts.net and installed in templates/shaper_helixultimate/fonts/
  https://fonts.google.com only had them in Alternates
*/

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-ExtraBold.ttf.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

.hoe-title .hoe-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-top: 8px;
    margin-botom: 0px;
    color: white;
}

.hoe-title .subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--hoe-gold);
    margin-top: 0;
    margin-bottom: 0;
}

/* Tablet */
@media (max-width: 991px) {
    .hoe-title .hoe-heading {
        font-size: 24px;
        letter-spacing: 0.01em;
        margin-top: 4px;
        margin-bottom: 0;
        line-height: 1.15;
    }

    .hoe-title .subtitle {
        font-size: 12px;
        letter-spacing: 0.06em;
        line-height: 1.3;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .hoe-title .hoe-heading {
        font-size: 17px;
        letter-spacing: 0;
        margin-top: 0;
        margin-bottom: 0;
        line-height: 1.15;
    }

    .hoe-title .subtitle {
        font-size: 9px;
        letter-spacing: 0.03em;
        line-height: 1.2;
    }
}
/* ============================================================= */

/* ==========================================
   FOOTER MENU - HOE customisation
   ========================================== */


/* Left align the footer */
#sp-footer {
    text-align: left;
}

/* Horizontal footer menu */
#sp-footer ul.menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Menu items */
#sp-footer ul.menu li {
    margin: 0;
    padding: 0;
}

/* Menu links */
#sp-footer ul.menu li a {
    display: block;
    padding: 0;
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
}

/* Copyright and organisation title */
#sp-footer .sp-copyright {
    text-align: left;
    margin-top: 15px;
    line-height: 1.6;
}

/* MOBILE */
@media (max-width: 767px) {

    #sp-footer ul.menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    #sp-footer .sp-copyright {
        margin-top: 18px;
    }
}

#sp-footer .footer-organisation {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

#sp-footer .footer-smallprint {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.8;
}

/* Footer menu dot separators */
#sp-footer ul.menu li:not(:last-child)::after {
    content: ".";
    color: #ffffff;
    margin-left: 12px;
}

/* Keep menu items and separators together */
#sp-footer ul.menu li {
    display: inline-flex;
    align-items: center;
}

/* Adjust spacing between menu items */
#sp-footer ul.menu {
    column-gap: 12px;
}

/* Hide separators on mobile */
@media (max-width: 767px) {
    #sp-footer ul.menu li::after {
        display: none;
    }
}

/* ==========================================
   FOOTER MENU - GOLD HOVER AND ACTIVE STATE
   ========================================== */

/* Normal footer menu links */
#sp-footer ul.menu li a {
    color: #ffffff;
    background-color: transparent;
    border-radius: 4px;
    padding: 4px 8px;
    transition: color 0.2s ease,
                background-color 0.2s ease;
}

/* Gold text on hover */
#sp-footer ul.menu li:not(.active) > a:hover {
    color: #f0d58a !important;
    background-color: transparent;
}

/* Selected / active menu item */
#sp-footer ul.menu li.active > a,
#sp-footer ul.menu li.current > a,
#sp-footer ul.menu li > a[aria-current="page"] {
    color: #ffffff !important;
    background-color: #d6b45a !important;
    border-radius: 4px;
}

/* Keep selected item gold when hovered */
#sp-footer ul.menu li.active > a:hover,
#sp-footer ul.menu li.current > a:hover,
#sp-footer ul.menu li > a[aria-current="page"]:hover {
    color: #ffffff !important;
    background-color: #d6b45a !important;
}
/* end of footer customisation */

/* Start of customisation for find a club pages */

/* Club directory: two-column layout */
.grid-container-2cols {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  grid-template-areas: "club-image club-text";
  max-width: 980px;
  margin: 0 auto;
}

/* Club image */
.club-image {
  grid-area: club-image;
  width: 100%;
}

.club-image img {
  display: block;
  width: 100%;
  height: 238px;
  object-fit: cover;
}

/* Club information */
.club-text {
  grid-area: club-text;
  height: 238px;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Remove excess spacing from list */
.club-text ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.club-text li {
  margin: 0;
  padding: 0;
  line-height: 1.25;
}

/* Club name */
.club-text li:first-child {
  margin-bottom: 3px;
}

/* Directions, website and contact links */
.club-text .image-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 0;
  padding: 0;
  max-width: 100%;
}

/* Link icons */
.club-text .image-container img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Link descriptions */
.club-text .image-description {
  padding: 0 !important;
  margin: 0;
  min-width: 0;
}

.club-text .image-description p {
  margin: 0;
  padding: 0;
}

/* Remove hover zoom from small icons */
.club-text .image-container img:hover {
  transform: none;
}

/* Hover zoom for main club images */
.club-image img:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}

/* Mobile layout */
@media (max-width: 767px) {
  .grid-container-2cols {
    grid-template-columns: 1fr;
    grid-template-areas:
      "club-image"
      "club-text";
    gap: 12px;
  }

  .club-image img {
    height: auto;
    max-width: 100%;
  }

  .club-text {
    height: auto;
    overflow: visible;
  }
}



.no-bullets {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
/* end of find a club customisation */

/* Start of customisation for the home page welcome article */
/* Featured article container */
.featured-article {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Featured image */
.featured-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.3 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

/* Text underneath image */
.featured-content {
    padding-top: 10px;
    text-align: left;
}

.featured-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px;
}

.featured-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Tablet */
@media (max-width: 768px) {
    .featured-image {
        aspect-ratio: 16 / 9;
        border-radius: 10px;
    }

    .featured-content h2 {
        font-size: 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .featured-image {
        aspect-ratio: 4 / 3;
        border-radius: 10px;
    }

    .featured-content h2 {
        font-size: 18px;
    }

    .featured-content p {
        font-size: 14px;
    }
}
/* Button container */
.featured-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}

/* Shared button styling */
.featured-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 7px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

/* Primary button - Find a club */
.featured-btn.btn-primary {
    background-color: #245b47;
    color: #ffffff;
    border-color: #245b47;
}

.featured-btn.btn-primary:hover {
    background-color: #194333;
    border-color: #194333;
}

/* Secondary button - Latest events */
.featured-btn.btn-secondary {
    background-color: #f8f8f8;
    color: #222222;
    border-color: #dddddd;
}

.featured-btn.btn-secondary:hover {
    background-color: #eeeeee;
    border-color: #cccccc;
}

/* Keyboard accessibility */
.featured-btn:focus-visible {
    outline: 3px solid #6ca58c;
    outline-offset: 3px;
}

/* Mobile */
@media (max-width: 480px) {
    .featured-buttons {
        gap: 8px;
    }

    .featured-btn {
        font-size: 13px;
        padding: 9px 12px;
    }
}
/* End of customisation for the home page welcome article */

/* Start of customisation for the home page latest news and events article */
/* Latest News Section */
.latest-news {
    width: 100%;
    margin: 35px 0 20px;
}

/* Section heading */
.latest-news-heading {
    font-size: 20px;
    font-weight: 600;
    color: #161616;
    margin: 0 0 15px;
}

/* Two-column layout */
.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* News card */
.news-card {
    min-width: 0;
    margin: 0;
}

/* Entire card clickable */
.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* News images */
.news-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 9px;
}

/* Text underneath image */
.news-card-content {
    padding-top: 10px;
    text-align: left;
}

/* Article title */
.news-card-content h3 {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: #222222;
    margin: 0 0 3px;
}

/* Article description */
.news-card-content p {
    font-size: 13px;
    line-height: 1.4;
    color: #777777;
    margin: 0;
}

/* Hover effect */
.news-card-link:hover h3 {
    color: #245b47;
}

/* Keyboard accessibility */
.news-card-link:focus-visible {
    outline: 3px solid #245b47;
    outline-offset: 4px;
    border-radius: 9px;
}

/* Tablet */
@media (max-width: 768px) {
    .latest-news-heading {
        font-size: 18px;
    }

    .news-card-content h3 {
        font-size: 14px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .latest-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card-image {
        aspect-ratio: 16 / 9;
    }

    .news-card-content h3 {
        font-size: 15px;
    }

    .news-card-content p {
        font-size: 13px;
    }
}
/* End of customisation for the home page latest news and events article */

/* Start of customisation for the home page explore petanque article */
/* Explore Pétanque Section */
.explore-petanque {
    width: 100%;
    margin: 20px 0;
}

/* Section heading */
.explore-heading {
    font-size: 20px;
    font-weight: 600;
    color: #161616;
    margin: 0 0 15px;
}

/* Two-column grid */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

/* Individual card */
.explore-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 12px 10px;
    background-color: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 11px;
    text-decoration: none !important;
    color: #222222;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

/* Green icons */
.explore-icon {
    width: 19px;
    height: 19px;
    color: #39735d;
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* Card heading */
.explore-card h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #222222;
    margin: 0 0 4px;
}

/* Card description */
.explore-card p {
    font-size: 12px;
    line-height: 1.4;
    color: #777777;
    margin: 0;
}

/* Hover effect */
.explore-card:hover {
    background-color: #f0f6f2;
    border-color: #39735d;
    text-decoration: none;
}

.explore-card:hover h3 {
    color: #245b47;
}

/* Keyboard accessibility */
.explore-card:focus-visible {
    outline: 3px solid #39735d;
    outline-offset: 3px;
}

/* Tablet */
@media (max-width: 768px) {
    .explore-heading {
        font-size: 18px;
    }

    .explore-card {
        padding: 12px 10px;
    }

    .explore-card h3 {
        font-size: 14px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .explore-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .explore-card {
        padding: 14px 12px;
    }

    .explore-card h3 {
        font-size: 15px;
    }
}
/* Explore Pétanque icons */
.explore-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-bottom: 8px;
    background-color: #39735d;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

/* Find a club - Map pin */
.icon-club {
    -webkit-mask: url("https://cdn.jsdelivr.net/npm/lucide-static@latest/icons/map-pin.svg") center / contain no-repeat;
    mask: url("https://cdn.jsdelivr.net/npm/lucide-static@latest/icons/map-pin.svg") center / contain no-repeat;
}

/* Competitions - Trophy */
.icon-competition {
    -webkit-mask: url("https://cdn.jsdelivr.net/npm/lucide-static@latest/icons/trophy.svg") center / contain no-repeat;
    mask: url("https://cdn.jsdelivr.net/npm/lucide-static@latest/icons/trophy.svg") center / contain no-repeat;
}

/* Rules and guidance - Book */
.icon-rules {
    -webkit-mask: url("https://cdn.jsdelivr.net/npm/lucide-static@latest/icons/book-open.svg") center / contain no-repeat;
    mask: url("https://cdn.jsdelivr.net/npm/lucide-static@latest/icons/book-open.svg") center / contain no-repeat;
}

/* Documents - Files */
.icon-documents {
    -webkit-mask: url("https://cdn.jsdelivr.net/npm/lucide-static@latest/icons/files.svg") center / contain no-repeat;
    mask: url("https://cdn.jsdelivr.net/npm/lucide-static@latest/icons/files.svg") center / contain no-repeat;
}
/* End of customisation for the home page explore petanque article */

/* Start of CSS for the customisation of the find a club page */
/* =====================================
   HEART OF ENGLAND - CLUBS PAGE
   ===================================== */

.hoe-clubs {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: #222222;
}

/* PAGE INTRODUCTION */

.hoe-clubs-intro {
    margin-bottom: 30px;
}

.hoe-clubs-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.hoe-clubs-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
}

.hoe-clubs-heading h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #173f32;
    margin: 0 0 5px;
}

.hoe-clubs-subtitle {
    font-size: 14px;
    color: #777777;
    margin: 0;
}

.hoe-clubs-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
    max-width: 850px;
    margin: 0;
}

/* SECTION HEADINGS */

.hoe-clubs h2 {
    font-size: 22px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 12px;
}

.hoe-clubs-map-section,
.hoe-clubs-directory,
.hoe-other-leagues {
    margin-bottom: 35px;
}

.hoe-clubs-map-section > p,
.hoe-clubs-section-intro {
    font-size: 14px;
    color: #777777;
    margin: 0 0 16px;
}

/* GOOGLE MAP */

.hoe-clubs-map {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f4f2;
}

.hoe-clubs-map iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
}

/* CLUB GRID */

.hoe-clubs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* CLUB CARDS */

.hoe-club-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 20px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    background: #fafafa;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hoe-club-card:hover {
    background: #ffffff;
    border-color: #39735d;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* LOCATION ICON */

.hoe-club-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #e7f0eb;
    color: #39735d;
    border-radius: 9px;
    font-size: 26px;
    line-height: 1;
    margin-bottom: 12px;
}

/* CLUB NAME */

.hoe-club-card h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #222222;
    margin: 0 0 8px;
}

/* CLUB ADDRESS */

.hoe-club-address {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0 0 18px;
}

/* CLUB LINKS */

.hoe-club-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.hoe-club-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 7px;
    border: 1px solid #d5dfd9;
    background: #ffffff;
    color: #245b47;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.hoe-club-links a:hover {
    background: #245b47;
    border-color: #245b47;
    color: #ffffff;
}

/* OTHER LEAGUES */

.hoe-leagues-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hoe-league-card {
    padding: 20px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    background: #fafafa;
}

.hoe-league-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #222222;
}

.hoe-league-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #777777;
    margin: 0;
}

/* ACCESSIBILITY */

.hoe-clubs a:focus-visible {
    outline: 3px solid #39735d;
    outline-offset: 3px;
}

/* TABLET */

@media (max-width: 768px) {

    .hoe-clubs-heading h1 {
        font-size: 26px;
    }

    .hoe-clubs-logo {
        width: 65px;
        height: 65px;
    }

    .hoe-club-card {
        padding: 16px;
    }

    .hoe-club-card h3 {
        font-size: 16px;
    }

    .hoe-clubs-map iframe {
        height: 300px;
    }
}

/* MOBILE */

@media (max-width: 600px) {

    .hoe-clubs-grid,
    .hoe-leagues-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hoe-clubs-heading {
        gap: 12px;
    }

    .hoe-clubs-logo {
        width: 58px;
        height: 58px;
    }

    .hoe-clubs-heading h1 {
        font-size: 23px;
    }

    .hoe-clubs-subtitle {
        font-size: 12px;
    }

    .hoe-clubs-description {
        font-size: 14px;
    }

    .hoe-clubs h2 {
        font-size: 19px;
    }

    .hoe-club-card {
        padding: 16px;
    }

    .hoe-clubs-map iframe {
        height: 260px;
    }
}

/* Other leagues - no icons */

.hoe-league-icon {
    display: none !important;
}

.hoe-league-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.hoe-league-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.hoe-league-card p {
    margin-bottom: 16px;
}

.hoe-league-link {
    margin-top: auto;
}

/* CLUB ADDITIONAL INFORMATION */

.hoe-club-info {
    width: 100%;
    margin: 8px 0 20px;
}

.hoe-club-info-section {
    margin-bottom: 14px;
}

.hoe-club-info-section:last-child {
    margin-bottom: 0;
}

.hoe-club-info-section h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #245b47;
    margin: 0 0 5px;
}

.hoe-club-info-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin: 0 0 8px;
}

.hoe-club-info-section p:last-child {
    margin-bottom: 0;
}

/* KEEP CLUB LINKS AT THE BOTTOM */

.hoe-club-card {
    box-sizing: border-box;
}

.hoe-club-links {
    width: 100%;
    margin-top: auto;
}
/* End of CSS for the customisation of the find a club page */

/* Start of customisation for the Marches club page */
/* ======================================
   MARCHES LEAGUE PAGE
   Additional styling
   ====================================== */

/* Introduction spacing */
.hoe-marches .hoe-clubs-intro {
    margin-bottom: 32px;
}

/* Introductory paragraphs */
.hoe-marches .hoe-clubs-description {
    margin-bottom: 14px;
}

/* Back to clubs link */
.hoe-marches-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #39735d;
    text-decoration: none;
}

.hoe-marches-back:hover {
    color: #173f32;
    text-decoration: underline;
}

/* Links beneath introduction */
.hoe-marches-intro-links {
    margin-top: 16px;
}

/* Club cards */
.hoe-marches .hoe-club-card {
    min-height: 190px;
}

/* Club address */
.hoe-marches .hoe-club-address {
    line-height: 1.7;
}

/* Additional club information */
.hoe-marches .hoe-club-address small {
    display: inline-block;
    margin-top: 5px;
    color: #39735d;
    font-size: 12px;
    font-weight: 500;
}

/* Club links at bottom of cards */
.hoe-marches .hoe-club-links {
    margin-top: auto;
}

/* Footer navigation */
.hoe-marches-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dddddd;
}

/* Tablet */
@media (max-width: 768px) {

    .hoe-marches .hoe-club-card {
        min-height: 175px;
    }
}

/* Mobile */
@media (max-width: 600px) {

    .hoe-marches .hoe-club-card {
        min-height: 0;
    }

    .hoe-marches .hoe-clubs-intro {
        margin-bottom: 25px;
    }

    .hoe-marches-footer {
        margin-top: 20px;
    }
}
/* End of customisation for the Marches club page */

/* ======================================
   SEVERN VALLEY PETANQUE LEAGUE
   ====================================== */

/* Introductory section */
.hoe-svpl .hoe-clubs-intro {
    margin-bottom: 32px;
}

/* Introduction paragraphs */
.hoe-svpl .hoe-clubs-description {
    margin-bottom: 14px;
}

/* Back to clubs link */
.hoe-svpl-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #39735d;
    text-decoration: none;
}

.hoe-svpl-back:hover {
    color: #173f32;
    text-decoration: underline;
}

/* Introduction links */
.hoe-svpl-intro-links {
    margin-top: 16px;
}

/* Club cards */
.hoe-svpl .hoe-club-card {
    min-height: 190px;
}

/* Address text */
.hoe-svpl .hoe-club-address {
    line-height: 1.7;
}

/* Buttons aligned at bottom */
.hoe-svpl .hoe-club-links {
    margin-top: auto;
}

/* Footer navigation */
.hoe-svpl-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dddddd;
}

/* Tablet */
@media (max-width: 768px) {

    .hoe-svpl .hoe-club-card {
        min-height: 175px;
    }
}

/* Mobile */
@media (max-width: 600px) {

    .hoe-svpl .hoe-club-card {
        min-height: 0;
    }

    .hoe-svpl .hoe-clubs-intro {
        margin-bottom: 25px;
    }

    .hoe-svpl-footer {
        margin-top: 20px;
    }
}
/* end of find an SVPL club customisation */

/* start of customisation for the play petanque article */
.hoe-play-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
}

.hoe-play-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================
   PLAY PETANQUE PAGE
   ===================================== */

/* MAIN PAGE */
.hoe-play {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* CONTENT SECTIONS */
.hoe-play-section {
    margin-bottom: 38px;
}

.hoe-play-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 16px;
}

/* PARAGRAPHS */
.hoe-play-section p {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin: 0 0 14px;
}

.hoe-play-section-intro {
    max-width: 850px;
    margin-bottom: 20px !important;
}

/* FEATURED PHOTOGRAPH */
.hoe-play-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.3 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* LEARNING RESOURCES GRID */
.hoe-play-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* LEARNING RESOURCE CARDS */
.hoe-play-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 12px;
    color: #222222;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* CARD TITLES */
.hoe-play-card h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #222222;
    margin: 0 0 10px;
}

/* CARD DESCRIPTIONS */
.hoe-play-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #777777;
    margin: 0 0 18px;
}

/* CARD LINKS */
.hoe-play-card-link {
    display: inline-block;
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: #39735d;
}

/* CARD HOVER */
.hoe-play-card:hover {
    background: #f0f6f2;
    border-color: #39735d;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.hoe-play-card:hover h3 {
    color: #245b47;
}

/* VIDEO */
.hoe-play-video {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #173f32;
}

.hoe-play-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* FIND A CLUB SECTION */
.hoe-play-cta {
    padding: 26px;
    margin: 35px 0 20px;
    background: #f0f6f2;
    border: 1px solid #d5e5db;
    border-radius: 12px;
}

.hoe-play-cta h2 {
    font-size: 22px;
    font-weight: 600;
    color: #173f32;
    margin: 0 0 12px;
}

.hoe-play-cta p {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    max-width: 750px;
    margin: 0 0 18px;
}

/* FIND A CLUB BUTTON */
.hoe-play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    background: #245b47;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.hoe-play-button:hover {
    background: #173f32;
    color: #ffffff !important;
}

/* KEYBOARD ACCESSIBILITY */
.hoe-play a:focus-visible {
    outline: 3px solid #39735d;
    outline-offset: 3px;
}

/* TABLET */
@media (max-width: 768px) {

    .hoe-play-image {
        aspect-ratio: 16 / 9;
    }

    .hoe-play-section h2 {
        font-size: 20px;
    }

    .hoe-play-card {
        padding: 16px;
    }

    .hoe-play-card h3 {
        font-size: 16px;
    }

    .hoe-play-cta {
        padding: 22px;
    }
}

/* MOBILE */
@media (max-width: 600px) {

    .hoe-play-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hoe-play-image {
        aspect-ratio: 4 / 3;
        border-radius: 10px;
    }

    .hoe-play-section {
        margin-bottom: 28px;
    }

    .hoe-play-section h2 {
        font-size: 19px;
    }

    .hoe-play-section p {
        font-size: 14px;
    }

    .hoe-play-card {
        padding: 16px;
    }

    .hoe-play-card h3 {
        font-size: 16px;
    }

    .hoe-play-cta {
        padding: 20px;
    }

    .hoe-play-cta h2 {
        font-size: 19px;
    }

    .hoe-play-cta p {
        font-size: 14px;
    }

    .hoe-play-video {
        border-radius: 10px;
    }
}
/* end of customisation for the play petanque article */

/* Start of customisation for the About article */
/* =====================================
   ABOUT US PAGE
   ===================================== */

/* Main sections */
.hoe-about-section {
    margin-bottom: 35px;
}

.hoe-about-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 15px;
}

.hoe-about-section > p {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin: 0 0 14px;
}

/* Region panel */
.hoe-about-region {
    padding: 22px;
    background: #f0f6f2;
    border: 1px solid #d5e5db;
    border-radius: 12px;
}

.hoe-about-region h3 {
    font-size: 17px;
    font-weight: 600;
    color: #173f32;
    margin: 0 0 16px;
}

.hoe-about-counties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hoe-about-counties span {
    font-size: 14px;
    color: #444444;
}

/* Information card grid */
.hoe-about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* Clickable cards */
.hoe-about-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 12px;
    text-decoration: none !important;
    color: #222222;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hoe-about-card h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #222222;
    margin: 0 0 10px;
}

.hoe-about-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #777777;
    margin: 0 0 18px;
}

.hoe-about-card-link {
    display: inline-block;
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: #39735d;
}

.hoe-about-card:hover {
    background: #f0f6f2;
    border-color: #39735d;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.hoe-about-card:hover h3 {
    color: #245b47;
}

/* Membership link */
.hoe-about-text-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #39735d;
    text-decoration: none;
}

.hoe-about-text-link:hover {
    color: #173f32;
    text-decoration: underline;
}

/* Coaching panel */
.hoe-about-coaching {
    padding: 24px;
    background: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 12px;
}

.hoe-about-coaching h3 {
    font-size: 17px;
    font-weight: 600;
    color: #173f32;
    margin: 0 0 12px;
}

.hoe-about-coaching h3:not(:first-child) {
    margin-top: 24px;
}

.hoe-about-coaching p {
    font-size: 14px;
    line-height: 1.7;
    color: #555555;
    margin: 0 0 12px;
}

/* Find a club CTA */
.hoe-about-cta {
    padding: 26px;
    margin: 35px 0 20px;
    background: #f0f6f2;
    border: 1px solid #d5e5db;
    border-radius: 12px;
}

.hoe-about-cta h2 {
    font-size: 22px;
    font-weight: 600;
    color: #173f32;
    margin: 0 0 12px;
}

.hoe-about-cta p {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    max-width: 750px;
    margin: 0 0 18px;
}

.hoe-about-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    background: #245b47;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}

.hoe-about-button:hover {
    background: #173f32;
    color: #ffffff !important;
}

/* Accessibility */
.hoe-about a:focus-visible {
    outline: 3px solid #39735d;
    outline-offset: 3px;
}

/* Tablet */
@media (max-width: 768px) {
    .hoe-about-section h2 {
        font-size: 20px;
    }

    .hoe-about-card {
        padding: 16px;
    }
}

/* Mobile */
@media (max-width: 600px) {

    .hoe-about-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hoe-about-section h2 {
        font-size: 19px;
    }

    .hoe-about-section > p {
        font-size: 14px;
    }

    .hoe-about-region,
    .hoe-about-coaching,
    .hoe-about-cta {
        padding: 18px;
    }

    .hoe-about-counties {
        gap: 10px;
    }

    .hoe-about-counties span {
        font-size: 13px;
    }

    .hoe-about-card {
        padding: 16px;
    }

    .hoe-about-cta h2 {
        font-size: 19px;
    }
}
/* End of customisation for the About article */

/* Start of customisation for Downloads page */

/* =====================================
   HEART OF ENGLAND - DOWNLOADS PAGE
   ===================================== */

/* Main page */
.hoe-downloads {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Category navigation */
.hoe-downloads-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 35px;
    padding: 0;
}

/* Category links */
.hoe-downloads-nav a {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    background: #f0f6f2;
    border: 1px solid #d5e5db;
    border-radius: 8px;
    color: #245b47;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.hoe-downloads-nav a:hover {
    background: #e0ede5;
    border-color: #39735d;
    color: #173f32;
}

/* Download sections */
.hoe-downloads-section {
    margin-bottom: 38px;
    scroll-margin-top: 110px;
}

/* Section headings */
.hoe-downloads-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 10px;
}

/* Section introduction */
.hoe-downloads-intro {
    font-size: 14px;
    line-height: 1.6;
    color: #777777;
    margin: 0 0 16px;
}

/* Document list */
.hoe-downloads-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual document card */
.hoe-download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    background: #fafafa;
    border: 1px solid #dddddd;
    border-radius: 12px;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

/* Card hover */
.hoe-download-card:hover {
    background: #ffffff;
    border-color: #39735d;
}

/* Document information */
.hoe-download-info {
    flex: 1;
    min-width: 0;
}

/* Document title */
.hoe-download-info h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #222222;
    margin: 0 0 6px;
}

/* Document description */
.hoe-download-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0 0 7px;
}

/* File type label */
.hoe-download-type {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #777777;
}

/* Download button */
.hoe-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px 16px;
    background: #245b47;
    border: 1px solid #245b47;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

/* Download button hover */
.hoe-download-button:hover {
    background: #173f32;
    border-color: #173f32;
    color: #ffffff !important;
}

/* Keyboard accessibility */
.hoe-downloads a:focus-visible {
    outline: 3px solid #39735d;
    outline-offset: 3px;
}

/* Optional smooth scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* TABLET */
@media (max-width: 768px) {

    .hoe-downloads-section h2 {
        font-size: 20px;
    }

    .hoe-download-card {
        padding: 16px;
        gap: 14px;
    }

    .hoe-download-info h3 {
        font-size: 15px;
    }
}

/* MOBILE */
@media (max-width: 600px) {

    .hoe-downloads-nav {
        gap: 7px;
        margin-bottom: 28px;
    }

    .hoe-downloads-nav a {
        font-size: 12px;
        padding: 8px 10px;
    }

    .hoe-downloads-section {
        margin-bottom: 30px;
    }

    .hoe-downloads-section h2 {
        font-size: 19px;
    }

    .hoe-download-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }

    .hoe-download-info h3 {
        font-size: 15px;
    }

    .hoe-download-info p {
        font-size: 13px;
    }

    .hoe-download-button {
        width: 100%;
        padding: 11px 16px;
    }
}
/* End of customisation for Downloads page */