css
/* =========================================================
   CCSAFC WEBSITE
   MAIN SITE CSS
   CONSOLIDATED VERSION
========================================================= */


/* =========================================================
   1. ROOT VARIABLES
========================================================= */

:root {
    --ccsafc-red: #c8102e;
    --ccsafc-red-dark: #9f0d24;

    --ccsafc-black: #111111;
    --ccsafc-dark: #171717;

    --ccsafc-grey: #666666;
    --ccsafc-light-grey: #f5f5f5;

    --ccsafc-border: #e5e5e5;

    --ccsafc-white: #ffffff;

    --ccsafc-container: 1320px;

    --ccsafc-transition: all 0.25s ease;
}


/* =========================================================
   2. GLOBAL STYLES
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 82px 0 0;

    background-color: var(--ccsafc-white);
    color: var(--ccsafc-black);

    font-family:
        'Open Sans',
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.7;

    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--ccsafc-transition);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    color: var(--ccsafc-white);
    background-color: var(--ccsafc-red);
}


/* =========================================================
   3. BOOTSTRAP CONTAINER
========================================================= */

.container {
    width: 100%;
    max-width: var(--ccsafc-container);
}


/* =========================================================
   4. ACCESSIBILITY
========================================================= */

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;

    padding: 10px 20px;

    color: var(--ccsafc-white);
    background-color: var(--ccsafc-black);

    font-weight: 700;
}

.skip-link:focus {
    top: 10px;
}


/* =========================================================
   5. GLOBAL HEADINGS
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color: var(--ccsafc-black);

    font-family:
        'Montserrat',
        Arial,
        sans-serif;

    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
    font-size: 1.5rem;
}


/* =========================================================
   6. FIXED SITE HEADER
========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1050;

    background-color: var(--ccsafc-white);
}


/* =========================================================
   7. MAIN NAVIGATION
========================================================= */

.site-navbar {
    position: relative;
    z-index: 1051;

    min-height: 82px;
    padding: 8px 0;

    background-color:
        rgba(255, 255, 255, 0.98);

    border-bottom:
        1px solid
        var(--ccsafc-border);

    box-shadow:
        0 3px 20px
        rgba(0, 0, 0, 0.06);
}


/* =========================================================
   8. CLUB BRAND
========================================================= */

.club-brand {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    margin: 0;
    padding: 0 !important;
}

.club-logo {
    display: block;

    width: 62px;
    height: 62px;

    margin-right: 16px;

    object-fit: contain;
}

.club-name {
    color: var(--ccsafc-black);

    font-family:
        'Montserrat',
        Arial,
        sans-serif;

    font-size: 2.1rem;
    font-weight: 800;

    letter-spacing: 2px;
    line-height: 1;

    white-space: nowrap;

    transition:
        var(--ccsafc-transition);
}

.club-brand:hover .club-name {
    color: var(--ccsafc-red);
}


/* =========================================================
   9. DESKTOP NAVIGATION LINKS
========================================================= */

.site-nav-link {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 66px;

    padding:
        0 17px !important;

    color:
        var(--ccsafc-black) !important;

    font-family:
        'Open Sans',
        Arial,
        sans-serif;

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;
}

.site-nav-link:hover {
    color:
        var(--ccsafc-red) !important;
}

.site-nav-link.active {
    color:
        var(--ccsafc-red) !important;
}

.site-nav-link.active::after {
    position: absolute;

    right: 17px;
    bottom: 8px;
    left: 17px;

    height: 3px;

    content: "";

    background-color:
        var(--ccsafc-red);

    border-radius: 3px;
}


/* =========================================================
   10. DESKTOP DROPDOWN
========================================================= */

.navbar-nav .dropdown {
    position: relative;
}

.site-dropdown {
    min-width: 220px;

    margin-top: 8px !important;
    padding: 8px;

    background-color:
        var(--ccsafc-white) !important;

    border:
        1px solid
        var(--ccsafc-border) !important;

    border-radius: 8px;

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.12);
}

.site-dropdown .dropdown-item {
    padding:
        11px 15px;

    color:
        var(--ccsafc-black);

    font-size: 14px;
    font-weight: 600;

    border-radius: 5px;
}

.site-dropdown .dropdown-item:hover,
.site-dropdown .dropdown-item:focus {
    color:
        var(--ccsafc-red);

    background-color:
        var(--ccsafc-light-grey);
}


/* =========================================================
   11. MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: flex;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    flex-shrink: 0;

    width: 48px;
    height: 44px;

    margin-left: auto;
    padding: 8px;

    background-color:
        var(--ccsafc-white) !important;

    border:
        1px solid
        var(--ccsafc-border) !important;

    border-radius: 6px;

    box-shadow: none !important;
}

.menu-toggle:focus {
    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(200, 16, 46, 0.15) !important;
}

.menu-toggle-line {
    display: block;

    width: 24px;
    height: 3px;

    margin: 3px 0;

    background-color:
        var(--ccsafc-black) !important;

    opacity: 1 !important;
    visibility: visible !important;

    transition:
        var(--ccsafc-transition);
}

.menu-toggle:hover {
    border-color:
        var(--ccsafc-red) !important;
}

.menu-toggle:hover .menu-toggle-line {
    background-color:
        var(--ccsafc-red) !important;
}

.navbar-toggler-icon {
    display: none !important;
}


/* =========================================================
   12. GENERAL PAGE SECTIONS
========================================================= */

.page-section {
    padding:
        90px 0;
}

.page-header {
    max-width:
        800px;

    margin:
        0 auto;

    text-align:
        center;
}

.section-label {
    display:
        inline-block;

    margin-bottom:
        15px;

    color:
        var(--ccsafc-red);

    font-size:
        13px;

    font-weight:
        700;

    letter-spacing:
        2px;

    text-transform:
        uppercase;
}

.page-header h1 {
    margin-bottom:
        20px;
}

.page-header p {
    margin-bottom:
        0;

    color:
        var(--ccsafc-grey);
}


/* =========================================================
   13. GENERAL BUTTONS
========================================================= */

.btn-ccsafc {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        48px;

    padding:
        12px 28px;

    color:
        var(--ccsafc-white);

    background-color:
        var(--ccsafc-red);

    border:
        2px solid
        var(--ccsafc-red);

    border-radius:
        4px;

    font-weight:
        700;

    transition:
        var(--ccsafc-transition);
}

.btn-ccsafc:hover {
    color:
        var(--ccsafc-white);

    background-color:
        var(--ccsafc-red-dark);

    border-color:
        var(--ccsafc-red-dark);

    transform:
        translateY(-2px);
}


/* =========================================================
   14. HOMEPAGE REGION CONTAINER
========================================================= */

.home-region {
    width:
        calc(100% - 40px);

    max-width:
        1400px;

    margin:
        40px auto;

    padding:
        80px 40px;

    background-color:
        var(--ccsafc-white);

    border:
        1px solid
        var(--ccsafc-border);

    border-radius:
        12px;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.05);
}


/* =========================================================
   15. HERO SECTION
========================================================= */

.home-hero {
    padding-top: 100px;
    padding-bottom: 30px;
}

    background-color:
        var(--ccsafc-light-grey);

    overflow:
        hidden;
}

.home-hero .container {
    max-width:
        var(--ccsafc-container);
}

.hero-content {
    padding-right:
        50px;
}

.hero-content h1 {
    margin-bottom:
        15px;

    font-family:
        'Montserrat',
        Arial,
        sans-serif;

    font-size:
        clamp(2.8rem, 5vw, 4.5rem);

    font-weight:
        800;

    line-height:
        1.05;
}

.hero-content h1 span {
    display:
        block;
}

.hero-content p {
    max-width:
        620px;

    margin-bottom:
        30px;

    color:
        var(--ccsafc-grey);

    font-size:
        16px;

    line-height:
        1.8;
}

.hero-button {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        25px;

    padding:
        16px 25px;

    color:
        var(--ccsafc-white);

    background-color:
        var(--ccsafc-black);

    font-size:
        13px;

    font-weight:
        700;

    letter-spacing:
        1px;

    text-transform:
        uppercase;
}

.hero-button:hover {
    color:
        var(--ccsafc-white);

    background-color:
        #444444;

    transform:
        translateY(-3px);
}

.hero-images {
    position:
        relative;

    min-height:
        600px;
}

.hero-image-main {
    width:
        100%;

    height:
        600px;

    overflow:
        hidden;
}

.hero-image-main img {
    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    object-position:
        center;
}


/* =========================================================
   16. OUR TEAMS
========================================================= */

.teams-region {
    background-color:
        var(--ccsafc-white);
}

.teams-region .region-heading {
    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 0.75fr);

    align-items:
        end;

    gap:
        60px;

    margin-bottom:
        50px;
}

.teams-region .region-heading-title {
    max-width:
        600px;
}

.teams-region .region-heading-title .section-label {
    display:
        block;

    margin-bottom:
        10px;
}

.teams-region .region-heading-title h2 {
    margin:
        0;

    font-size:
        clamp(2.2rem, 4vw, 3.2rem);

    font-weight:
        800;
}

.teams-region .region-heading-description {
    max-width:
        500px;
}

.teams-region .region-heading-description p {
    margin:
        0;

    color:
        var(--ccsafc-grey);

    font-size:
        16px;

    line-height:
        1.8;
}


/* =========================================================
   17. TEAM CARD GRID
========================================================= */

.team-cards-row {
    display:
        grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap:
        20px;

    width:
        100%;
}

.team-card-wrapper {
    min-width:
        0;
}

.team-card {
    display:
        block;

    height:
        100%;

    color:
        var(--ccsafc-black);

    background:
        var(--ccsafc-white);

    border:
        1px solid
        var(--ccsafc-border);

    border-radius:
        8px;

    overflow:
        hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.team-card:hover {
    color:
        var(--ccsafc-black);

    transform:
        translateY(-6px);

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.12);
}


/* =========================================================
   18. TEAM IMAGE
========================================================= */

.team-image {
    position:
        relative;

    width:
        100%;

    aspect-ratio:
        4 / 5;

    overflow:
        hidden;

    background-color:
        var(--ccsafc-light-grey);
}

.team-image img {
    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    object-position:
        center;

    transition:
        transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform:
        scale(1.05);
}


/* =========================================================
   19. TEAM NUMBER
========================================================= */

.team-number {
    position:
        absolute;

    top:
        12px;

    right:
        12px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        38px;

    height:
        38px;

    color:
        var(--ccsafc-white);

    background:
        rgba(0, 0, 0, 0.65);

    border-radius:
        50%;

    font-size:
        12px;

    font-weight:
        700;
}


/* =========================================================
   20. TEAM CARD CONTENT
========================================================= */

.team-card-content {
    padding:
        18px 18px 20px;
}

.team-card-content h3 {
    margin:
        0 0 8px;

    font-family:
        'Montserrat',
        Arial,
        sans-serif;

    font-size:
        20px;

    font-weight:
        700;
}

.team-card-content span {
    color:
        var(--ccsafc-grey);

    font-size:
        11px;

    font-weight:
        700;

    letter-spacing:
        1px;

    text-transform:
        uppercase;
}


/* =========================================================
   21. NEWS REGION
========================================================= */

.news-region {
    background-color:
        var(--ccsafc-light-grey);
}

.news-region .row {
    align-items:
        center;
}

.news-region .feature-image {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        100%;

    height:
        500px;

    overflow:
        hidden;

    background-color:
        var(--ccsafc-white);

    border-radius:
        8px;
}

.news-region .feature-image img {
    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        contain;

    object-position:
        center;
}

.news-region .feature-content {
    padding-left:
        60px;
}

.news-region .feature-content h2 {
    margin-bottom:
        25px;

    font-size:
        clamp(2.2rem, 4vw, 3.2rem);

    font-weight:
        800;
}

.news-region .feature-content p {
    max-width:
        550px;

    margin:
        0;

    color:
        var(--ccsafc-grey);

    font-size:
        16px;

    line-height:
        1.8;
}


/* =========================================================
   22. COMMUNITY / SOCIAL MEDIA REGION
========================================================= */

.community-region {
    background-color:
        #111111 !important;

    color:
        var(--ccsafc-white) !important;

    border:
        none !important;

    box-shadow:
        none !important;
}

.home-region.community-region {
    background-color:
        #111111 !important;
}

.community-region h2 {
    margin-bottom:
        25px;

    color:
        var(--ccsafc-white) !important;

    font-size:
        clamp(2.2rem, 4vw, 3.2rem);

    font-weight:
        800;
}

.community-region p {
    max-width:
        550px;

    margin:
        0;

    color:
        rgba(255, 255, 255, 0.85) !important;

    font-size:
        16px;

    line-height:
        1.8;
}

.community-region .section-label {
    color:
        var(--ccsafc-red) !important;
}


/* =========================================================
   23. SOCIAL MEDIA PANEL
========================================================= */

.social-media-panel {
    padding:
        35px;

    background-color:
        #000000;

    border-radius:
        12px;
}

.social-media-images {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-around;

    width:
        100%;

    gap:
        30px;
}

.social-media-images a {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex:
        1;
}

.social-media-images img {
    display:
        block;

    width:
        120px;

    height:
        120px;

    max-width:
        100%;

    object-fit:
        contain;

    background-color:
        #000000;

    border-radius:
        8px;

    transition:
        transform 0.3s ease;
}

.social-media-images a:hover img {
    transform:
        scale(1.08);
}


/* =========================================================
   24. SOCIAL MEDIA LINK / ICON AREA
========================================================= */

.social-media-link > a:first-child {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        100%;

    height:
        160px;

    margin-bottom:
        20px;

    overflow:
        hidden;
}

.social-media-link > a:first-child img {
    display:
        block;

    width:
        140px;

    height:
        140px;

    max-width:
        100%;

    max-height:
        100%;

    object-fit:
        contain;

    object-position:
        center;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.social-media-link > a:first-child:hover img {
    opacity:
        0.85;

    transform:
        scale(1.05);
}

/* =========================================================
   25 TEAM SPONSORS
========================================================= */

.team-sponsors-section {
    padding: 30px 0;
}


/* =========================================================
   SPONSOR CARD
========================================================= */

.team-sponsorship-card {
    display: flex;
    flex-direction: column;
    height: 100%;

    padding: 25px;

    background: var(--ccsafc-white);

    border: 1px solid var(--ccsafc-border);
}


/* =========================================================
   LOGO AREA
========================================================= */
.team-sponsorship-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  overflow: hidden;
}

.team-sponsorship-logo img {
  height: 100px;      /* every logo renders at this height, full stop */
  width: auto;
  max-width: 100%;     /* safety net so a very wide banner logo doesn't overflow the card */
  object-fit: contain;
}
/* =========================================================
   CONTENT
========================================================= */

.team-sponsorship-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    text-align: center;
}

/* =========================================================
   SPONSOR NAME
========================================================= */

.team-sponsorship-content h3 {
    height: 64px;

    margin: 0 0 12px;

    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;

    overflow: hidden;
}


/* =========================================================
   SPONSOR ROLE
========================================================= */

.team-sponsor-role {
    height: 48px;

    margin: 0 0 15px;

    line-height: 1.5;

    overflow: hidden;
	 color: #cd1719;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.team-sponsor-description {
    min-height: 75px;

    margin: 0;

    color: var(--ccsafc-grey);

    line-height: 1.6;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width:767px) {

    .team-sponsorship-card {
        padding:20px;
    }

    .team-sponsorship-logo {
        height:200px;
        padding:15px;
    }

   .team-sponsorship-logo img {
    width: 100%;
    height: 100%;
}

    .team-sponsorship-content h3,
    .team-sponsor-role {
        height:auto;
        overflow:visible;
    }

    .team-sponsor-description {
        min-height:0;
    }

}
/* =========================================================
   MANAGEMENT INTRO
========================================================= */

.management-intro {
    margin-bottom:
        50px !important;
}


/* =========================================================
   26. WEEKLY PROGRAMME
========================================================= */

.programme-page-section {
    padding:
        70px 0;
}

.general-contact-box {
    padding:
        40px;

    background:
        var(--ccsafc-white);

    border:
        1px solid
        var(--ccsafc-border);
}

.latest-programme {
    padding:
        30px;

    background:
        var(--ccsafc-light-grey);

    border:
        1px solid
        var(--ccsafc-border);

    border-radius:
        8px;
}

.latest-programme-cover {
    display:
        block;

    width:
        100%;

    max-width:
        280px;

    height:
        auto;

    margin:
        0 auto;

    border-radius:
        5px;

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.15);
}

.programme-archive {
    margin-top:
        40px;

    padding-top:
        20px;
}

.programme-card {
    display:
        flex;

    flex-direction:
        column;

    height:
        100%;

    padding:
        0;

    background:
        var(--ccsafc-white);

    border:
        1px solid
        var(--ccsafc-border);

    border-radius:
        8px;

    overflow:
        hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.programme-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.12);
}

.programme-card-cover {
    display:
        block;

    width:
        100%;

    height:
        300px;

    padding:
        15px;

    background:
        var(--ccsafc-light-grey);

    object-fit:
        contain;
}

.programme-card-content {
    display:
        flex;

    flex-direction:
        column;

    flex-grow:
        1;

    justify-content:
        space-between;

    padding:
        25px;

    text-align:
        center;
}

.programme-card-content h4 {
    margin-bottom:
        20px;

    font-size:
        1.1rem;
}

.programme-card-content .btn {
    align-self:
        center;
}


/* =========================================================
   27. TEAM FEATURE MATCHDAY
   REDUCE GAP BEFORE SPONSORS
========================================================= */

.team-feature-matchday {
    padding-bottom:
        10px;
}

.team-feature-matchday + .team-sponsors-section {
    padding-top:
        10px;
}


/* =========================================================
   28. FOOTER
========================================================= */

.site-footer {
    display:
        block !important;

    visibility:
        visible !important;

    position:
        relative !important;

    width:
        100% !important;

    min-height:
        250px;

    padding:
        65px 0 0 !important;

    margin:
        0 !important;

    clear:
        both !important;

    color:
        rgba(255, 255, 255, 0.75) !important;

    background-color:
        var(--ccsafc-dark) !important;
}

.footer-brand {
    display:
        flex;

    align-items:
        center;

    margin-bottom:
        20px;
}

.footer-brand img {
    width:
        55px;

    height:
        55px;

    margin-right:
        15px;

    object-fit:
        contain;
}

.footer-brand span {
    color:
        var(--ccsafc-white) !important;

    font-family:
        'Montserrat',
        Arial,
        sans-serif;

    font-size:
        1.8rem;

    font-weight:
        800;

    letter-spacing:
        2px;
}

.footer-description {
    max-width:
        500px;

    margin-bottom:
        0;

    color:
        rgba(255, 255, 255, 0.75) !important;
}

.footer-heading {
    margin-bottom:
        20px;

    color:
        var(--ccsafc-white) !important;

    font-size:
        1.1rem;

    font-weight:
        700;
}

.footer-links {
    margin:
        0;

    padding:
        0;

    list-style:
        none;
}

.footer-links li {
    margin-bottom:
        8px;
}

.footer-links a {
    color:
        rgba(255, 255, 255, 0.75) !important;
}

.footer-links a:hover {
    color:
        var(--ccsafc-white) !important;

    padding-left:
        4px;
}

.footer-bottom {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    margin-top:
        55px;

    padding:
        20px 0;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin:
        0;

    color:
        rgba(255, 255, 255, 0.6) !important;

    font-size:
        13px;
}


/* =========================================================
   29. LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {

    body {
        padding-top:
            88px;
    }

    .site-navbar {
        min-height:
            88px;
    }

    .club-logo {
        width:
            68px;

        height:
            68px;

        margin-right:
            18px;
    }

    .club-name {
        font-size:
            2.3rem;
    }

    .site-nav-link {
        padding:
            0 19px !important;

        font-size:
            16px;
    }

    .team-cards-row {
        gap:
            24px;
    }

}


/* =========================================================
   30. LAPTOP / SMALL DESKTOP
========================================================= */

@media (max-width: 1199px) {

    .home-region {
        width:
            calc(100% - 30px);

        padding:
            65px 30px;
    }

    .team-cards-row {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .teams-region .region-heading {
        gap:
            35px;
    }

    .social-media-images {
        padding-left:
            20px;
    }

}


/* =========================================================
   31. TABLET / MOBILE NAVIGATION
========================================================= */

@media (max-width: 991.98px) {

    body {
        padding-top:
            72px;
    }

    .site-navbar {
        min-height:
            72px;

        padding:
            6px 0;
    }

    .site-navbar > .container {
        min-height:
            60px;

        display:
            flex;

        align-items:
            center;

        flex-wrap:
            wrap;
    }

    .club-brand {
        max-width:
            calc(100% - 65px);

        min-width:
            0;

        margin-right:
            auto;
    }

    .club-logo {
        width:
            56px;

        height:
            56px;

        margin-right:
            12px;
    }

    .club-name {
        font-size:
            1.65rem;

        letter-spacing:
            1.5px;
    }

    .menu-toggle {
        order:
            2;
    }

    .navbar-collapse {
        order:
            3;

        flex-basis:
            100%;

        width:
            100%;

        margin-top:
            10px;

        padding:
            8px 0 15px;

        border-top:
            1px solid
            var(--ccsafc-border);
    }

    .site-nav-link {
        display:
            flex;

        align-items:
            center;

        justify-content:
            space-between;

        min-height:
            48px;

        padding:
            12px 10px !important;

        border-bottom:
            1px solid
            var(--ccsafc-border);

        font-size:
            16px;
    }

    .site-nav-link.active::after {
        display:
            none;
    }

    .site-nav-link.active {
        padding-left:
            7px !important;

        background-color:
            var(--ccsafc-light-grey);

        border-left:
            3px solid
            var(--ccsafc-red);
    }


    /* Mobile dropdown */

    .site-dropdown {
        position:
            static !important;

        width:
            100%;

        min-width:
            0;

        margin:
            0 !important;

        padding:
            5px 10px;

        background-color:
            #ffffff !important;

        border:
            0;

        border-left:
            3px solid
            var(--ccsafc-red);

        border-radius:
            0;

        box-shadow:
            none !important;
    }

    .site-dropdown .dropdown-item {
        padding:
            10px 15px;

        color:
            var(--ccsafc-black);

        font-size:
            15px;
    }

    .site-dropdown .dropdown-item:hover,
    .site-dropdown .dropdown-item:focus {
        color:
            var(--ccsafc-red);

        background-color:
            #eeeeee;
    }


    /* HERO */

    .home-hero {
        padding:
            70px 0;
    }

    .hero-content {
        padding-right:
            0;

        margin-bottom:
            50px;
    }

    .hero-images {
        min-height:
            500px;
    }

    .hero-image-main {
        height:
            500px;
    }


    /* TEAMS */

    .teams-region .region-heading {
        grid-template-columns:
            1fr 1fr;

        gap:
            30px;
    }

    .team-cards-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            25px;
    }


    /* NEWS */

    .news-region .feature-content {
        padding-left:
            0;

        padding-top:
            40px;
    }

    .news-region .feature-image {
        height:
            450px;
    }


    /* SOCIAL */

    .social-media-images {
        margin-top:
            40px;

        padding-left:
            0;

        gap:
            30px;
    }


    /* SPONSORS */

    .team-sponsorship-card {
        padding:
            20px;
    }

}


/* =========================================================
   32. MOBILE
========================================================= */

@media (max-width: 767px) {

    .home-region {
        width:
            calc(100% - 20px);

        margin:
            20px auto;

        padding:
            50px 20px;
    }


    /* TEAMS HEADING */

    .teams-region .region-heading {
        display:
            block;

        margin-bottom:
            35px;
    }

    .teams-region .region-heading-title {
        margin-bottom:
            20px;
    }

    .teams-region .region-heading-description {
        max-width:
            100%;
    }


    /* TEAM CARDS */

    .team-cards-row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            18px;
    }

    .team-card-content {
        padding:
            15px;
    }

    .team-card-content h3 {
        font-size:
            18px;
    }


    /* NEWS */

    .news-region .feature-image {
        height:
            400px;
    }


    /* SOCIAL */

    .social-media-panel {
        padding:
            25px 15px;
    }

    .social-media-images {
        gap:
            15px;
    }

    .social-media-images img {
        width:
            90px;

        height:
            90px;
    }


    /* FOOTER */

    .footer-bottom {
        flex-direction:
            column;

        align-items:
            flex-start;
    }


    /* PROGRAMMES */

    .programme-page-section {
        padding:
            50px 0;
    }

    .general-contact-box {
        padding:
            25px 20px;
    }

    .latest-programme {
        padding:
            25px 20px;
    }

    .latest-programme-cover {
        max-width:
            240px;
    }

    .programme-card-cover {
        height:
            auto;

        max-height:
            400px;
    }


    /* SPONSORS */

    .team-sponsorship-card {
        height:
            auto;

        padding:
            20px;
    }

    .team-sponsorship-logo {
        flex:
            0 0 160px;

        height:
            160px;

        margin-bottom:
            20px;
    }

    .team-sponsorship-logo img {
        max-height:
            120px;
    }

    /* On mobile cards stack, so allow natural text height */

    .team-sponsorship-content h3 {
        height:
            auto;

        min-height:
            0;

        max-height:
            none;

        overflow:
            visible;
    }

    .team-sponsor-role {
        height:
            auto;

        min-height:
            0;

        max-height:
            none;

        overflow:
            visible;
    }

    .team-sponsor-description {
        min-height:
            0;
    }

}


/* =========================================================
   33. SMALL MOBILE
========================================================= */

@media (max-width: 576px) {

    body {
        padding-top:
            68px;
    }

    .site-navbar {
        min-height:
            68px;

        padding:
            5px 0;
    }

    .club-brand {
        max-width:
            calc(100% - 58px);
    }

    .club-logo {
        width:
            50px;

        height:
            50px;

        margin-right:
            10px;
    }

    .club-name {
        font-size:
            1.4rem;

        letter-spacing:
            1px;
    }

    .menu-toggle {
        width:
            44px;

        height:
            40px;

        margin-left:
            auto;
    }

    .menu-toggle-line {
        width:
            22px;
    }

    .home-region {
        width:
            calc(100% - 16px);

        margin:
            16px auto;

        padding:
            40px 16px;

        border-radius:
            10px;
    }


    /* TEAM CARDS */

    .team-cards-row {
        grid-template-columns:
            1fr;

        gap:
            20px;
    }

    .team-image {
        aspect-ratio:
            16 / 10;
    }

    .team-card-content {
        padding:
            18px;
    }


    /* NEWS */

    .news-region .feature-image {
        height:
            350px;
    }


    /* SOCIAL */

    .social-media-images {
        justify-content:
            center;

        gap:
            15px;
    }

    .social-media-images img {
        width:
            80px;

        height:
            80px;
    }


    /* SPONSORS */

    .team-sponsorship-logo {
        flex-basis:
            140px;

        height:
            140px;
    }

    .team-sponsorship-logo img {
        max-height:
            110px;
    }


    /* PAGE SECTIONS */

    .page-section {
        padding:
            60px 0;
    }

}


/* =========================================================
   34. VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .club-logo {
        width:
            46px;

        height:
            46px;

        margin-right:
            8px;
    }

    .club-name {
        font-size:
            1.2rem;

        letter-spacing:
            0.5px;
    }

    .menu-toggle {
        width:
            42px;

        height:
            38px;

        margin-left:
            auto;
    }

    .menu-toggle-line {
        width:
            20px;
    }

    .social-media-images img {
        width:
            70px;

        height:
            70px;
    }

}


/* =========================================================
   35. DESKTOP DROPDOWN FINAL OVERRIDE
========================================================= */

@media (min-width: 992px) {

    .navbar-nav .dropdown {
        position:
            relative;
    }

    .site-dropdown {
        position:
            absolute !important;

        top:
            100%;

        left:
            0;

        min-width:
            220px;

        margin-top:
            8px !important;

        padding:
            8px;

        background-color:
            #ffffff !important;

        opacity:
            1 !important;

        visibility:
            visible !important;

        z-index:
            9999 !important;

        border:
            1px solid
            #e5e5e5 !important;

        box-shadow:
            0 10px 30px
            rgba(0, 0, 0, 0.2) !important;
    }

    .site-dropdown .dropdown-item {
        background-color:
            #ffffff !important;

        color:
            #111111 !important;
    }

    .site-dropdown .dropdown-item:hover,
    .site-dropdown .dropdown-item:focus {
        background-color:
            #f5f5f5 !important;

        color:
            #c8102e !important;
    }

}


/* =========================================================
   36. MOBILE DROPDOWN FINAL OVERRIDE
========================================================= */

@media (max-width: 991.98px) {

    .site-dropdown {
        position:
            static !important;

        width:
            100%;

        background-color:
            #ffffff !important;

        opacity:
            1 !important;

        visibility:
            visible !important;

        border-left:
            3px solid
            #c8102e !important;

        box-shadow:
            none !important;
    }

}


/* =========================================================
   37. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior:
            auto;
    }

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}

/* =========================================================
   FINAL GLOBAL LAYOUT + FOOTER FIX
========================================================= */

/* Ensure the document can fill the viewport */
html,
body {
    min-height: 100%;
}


/* Page layout */
body {
    display: flex;
    flex-direction: column;
}


/* Main content expands naturally */
main {
    flex: 1 0 auto;
}


/* Footer always remains visible */
.site-footer {
    flex-shrink: 0;
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
}


/* Prevent sections forcing hidden overflow */
.page-section,
.home-region,
main {
    overflow: visible;
}


/* Ensure footer text remains visible */
.site-footer,
.site-footer * {
    visibility: visible !important;
}


/* Mobile footer spacing */
@media (max-width: 767px) {

    .site-footer {
        padding-top: 45px !important;
    }

}

/* =========================================================
   SPONSOR LOGO SIZE CONSISTENCY
========================================================= */

.sponsor-area img,
.sponsors img,
.sponsor-logo img {
    width: 160px !important;
    height: 80px !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
}


/* Keep sponsor boxes aligned */
.sponsor-area,
.sponsors,
.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Mobile sizing */
@media (max-width: 767px) {

    .sponsor-area img,
    .sponsors img,
    .sponsor-logo img {
        width: 120px !important;
        height: 60px !important;
    }

}

/* =========================================================
   CLUB SPONSOR GRID
========================================================= */

.sponsors-region {
    padding: 60px 0;
}


/* Three sponsor boxes per row on larger screens */

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 40px;
}


/* Individual sponsor boxes */

.sponsor-card {
    height: 140px;
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* Keep logos inside their boxes */

.sponsor-card img {
    max-width: 90%;
    max-height: 90px;
    width: auto;
    height: auto;

    object-fit: contain;
    display: block;
}


/* Tablet */

@media (max-width: 900px) {

    .sponsor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* Mobile */

@media (max-width: 600px) {

    .sponsor-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .sponsor-card {
        height: 120px;
    }


    .sponsor-card img {
        max-height: 80px;
    }

}
/* =========================================================
   FORCE FOOTER VISIBILITY FIX
========================================================= */

html,
body {
    min-height: 100vh;
    height: auto;
}


body {
    display: flex;
    flex-direction: column;
}


main {
    flex: 1 0 auto;
}


.site-footer {
    display: block !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 200px;
    width: 100% !important;
    z-index: 10;
}


/* Make sure no parent hides it */

footer,
.site-footer,
.site-footer-wrapper,
.page-wrapper,
.site-wrapper {
    overflow: visible !important;
}


/* Remove common hiding rules */

.site-footer * {
    visibility: visible !important;
    opacity: 1 !important;
}


/* Mobile spacing */

@media (max-width: 767px) {

    .site-footer {
        margin-top: 40px;
    }
	
	/* DEBUG FOOTER TEST */
.site-footer {
    background: red !important;
    min-height: 300px !important;
    display: block !important;
    position: relative !important;
}

}

/* =========================================================
   FINAL FOOTER DISPLAY FIX
========================================================= */

html {
    min-height: 100%;
}


body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


#main-content {
    flex: 1 0 auto;
    display: block;
}


.site-footer {
    flex: 0 0 auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    min-height: 250px;
    margin-top: 40px !important;
    background-color: #171717 !important;
    z-index: 20;
	
	
	
}
	
	/* =========================================================
   SOCIAL MEDIA REGION TEXT COLOUR FIX
========================================================= */

.community-region h2,
.community-region p {
    color: #ffffff !important;
}

.community-region .col-lg-5 {
    position: relative;
    z-index: 5;
}

.community-region h2 {
    color: #ffffff !important;
    background: transparent !important;
}

/* FINAL COMMUNITY SECTION LABEL FIX */
.home-region.community-region .section-label {
    display: inline-block !important;
    color: #c8102e !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* =========================================================
   grid for teams on home page
========================================================= */


.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;

    max-width: 1320px;
    margin: 20px auto 0;
    padding: 0 5px;   /* Creates space on the left and right */
}

.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
    text-decoration: none;
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.team-card:hover img {
    transform: scale(1.08);
}

.team-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.15)
    );
    color: white;
}

.team-overlay span {
    font-size: .9rem;
    opacity: .75;
    margin-bottom: 8px;
}

.team-overlay h3 {
    margin: 0;
    font-size: 1.6rem;
}


.home-region.sponsors-region {
    margin-top: 0px;
    padding-top: 20px;
}

/* =========================================================
   REGION 2 - OUR TEAMS
========================================================= */

.teams-section {
    background: #f7f7f7;
    padding: 70px 0;
    margin: 60px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    margin: 10px 0 15px;
}

.section-heading p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.team-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}
.team-card:hover {
    transform: translateY(-6px);
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: #fff;
    background: linear-gradient(to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.10));
}

.team-overlay span {
    font-size: .9rem;
    opacity: .8;
}

.team-overlay h3 {
    margin: 5px 0 0;
    font-size: 1.3rem;
}

@media (max-width: 1200px) {
    .teams-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   VETS SPONSOR SECTION ONLY
====================================================== */

.vets-sponsor-section{
    padding:80px 0;
    background:#f7f7f7;
}

.vets-sponsor-card{

    max-width:700px;
    margin:40px auto 0;

    padding:50px;

    text-align:center;

    background:#ffffff;

    border-radius:16px;

    box-shadow:0 12px 35px rgba(0,0,0,.10);

}

.vets-sponsor-logo{

    height:220px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin-bottom:30px;

}

.vets-sponsor-logo img{

    max-width:100%;

    max-height:180px;

    object-fit:contain;

}

.vets-sponsor-card h3{

    margin-bottom:10px;

}

.vets-sponsor-title{

    font-weight:700;

    color:#cd1719;

    text-transform:uppercase;

    letter-spacing:1px;

    margin-bottom:20px;

}

.vets-sponsor-card p:last-child{

    margin-bottom:0;

}

@media (max-width:768px){

    .vets-sponsor-card{

        padding:35px 25px;

    }

    .vets-sponsor-logo{

        height:170px;

    }

}