/* =========================================================
   RESET
========================================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================================
   ROOT VARIABLES
========================================================= */
:root {
    --dodger-blue: #36a3f7;
    --blue-ribbon: #3642f7;
    --electric-violet: #8a36f7;
    --bright-turquoise: #36f7eb;
    --spring-green: #36f78a;
    --elephant: #103246;
    --mine-shaft: #333;
}


/* =========================================================
   BASE / MOBILE-FIRST STYLES
========================================================= */
html {
    font-size: 16px;
}

body {
    width: 100%;
    /*font-family: Verdana, Arial, "Trebuchet MS", Helvetica, sans-serif;*/
    font-family: "DM Sans", system-ui, sans-serif;
    color: #000;
    line-height: 1.5;
    overflow-x: hidden;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main.page-container {
    flex: 1;
}

/* Typography */
h1 { font-size: 2.2rem; line-height: 1.1; text-align: center; color: var(--dodger-blue); }
h2 { font-size: 1.3rem; color: var(--dodger-blue); }
h3 { font-size: 1.15rem; color: var(--dodger-blue); }
h4, h5 { font-size: 1rem; color: var(--dodger-blue); }
h6 { font-size: 1rem; color: #000;}

.header-title {
    font-family: "DM Sans", system-ui, sans-serif;
    font-weight: 400; /* normal, not bold */
    position: absolute;
    inset: 0;
    z-index: 10;               /* ensure on top */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* bottom */
    align-items: center;
    text-align: center;
    padding: 0.5rem;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.left-title {
    text-align: left;
}

.subtitle {
    display: inline-block; /* default visible */
    margin-block: 0.25rem;
}

p {
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

p.published_at {
  margin: 0em 0 0 0;
  font-size: 11px;
  color: #aaa;
  margin-left: 0.5rem;
}

a {
    color: #0000ee;
    text-decoration: none;
}

a:hover { 
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* CONTAINERS (WP-STYLE) */
.container,
.page-container,
.section {
    width: 100%;
    max-width: 75rem; /* 1200px */
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* Full-width header */
header {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: 0;
}

.container--medium { max-width: 64rem; }
.container--trim   { max-width: 50rem; }
.container--tight  { max-width: 40rem; }

/* HEADER & BANNER */
header {
    text-align: center;
    padding-top: 0rem;
}

.banner-container {
    position: relative;
    overflow: hidden;
    display: block;
}

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

.banner-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}


/* GENERIC GRID */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* PROGRAMME SECTION */
.section-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.section-header h4 {
    background: var(--dodger-blue);
    color: #fff;
    padding: 0.75rem;
    text-align: center;
    border-radius: 10px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.section-title {
    background: var(--dodger-blue);
    color: #fff;
    padding: 0.25rem 0rem;
    border-radius: 5px;
    text-align: center;
    margin: 0;
    margin-bottom: 16px; /* gap below title boxes */
}

/* MAIN RESULTS PAGE */
.main-event {
  display: block;        /* stack title + results vertically */
  margin-bottom: 0.5rem;   /* spacing between events */
}

.main-event .event-title {
  margin: 0 0 0.25rem 0; /* small gap below title */
}

/* Reset result link styling */
.main-event .event-results {
  margin-left: 2rem;            /* tab the result links slightly */
  margin-top: 0.25rem;          /* optional small space below title */
}

.main-event .event-results a {
  display: block;        /* each link on a new line */
  margin: 2px 0;         /* small spacing between links */
  line-height: 1;
}

/* SIDEBAR CALENDAR EVENTS */
.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1rem;
}

.cal-event {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.date-box {
  width: 50px;       /* fixed width */
  height: 45px;      /* fixed height */
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  flex-shrink: 0;
}

.date-box .month {
  background: #c00;  /* red background */
  color: #fff;
  font-weight: bold;
  font-size: 0.7rem;
  padding: 1px 0;
}

.date-box .day {
  background: #fff;  /* white background */
  color: #000;
  font-weight: bold;
  font-size: 0.9rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-event .info h3 {
  margin: 0;
  font-size: 0.9rem;
}

.cal-event .info p {
  margin: 0.25rem 0 0 0;
  font-size: 0.85rem;
  color: #555;
}

details {
  margin-bottom: 0.5px; /* adjust as needed */
}

/* IMAGES */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* GALLERY */
.gallery-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    justify-items: flex-start;
    align-items: start; /* TOP-align grid items */
    width: 100%;
}

.gallerywrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* caption stays at bottom */
    position: relative;
    width: 100%;
    min-width: 150px;
}

.gallery-row img.gallery {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-content {
    font-size: 0.65rem;
    padding: 0.25rem 0rem;
    text-align: left;
    box-sizing: border-box;
    width: 100%;
}

/* BUTTONS */
.webcollect-btn {
    display: inline-block;
    background-color: #0072c6;
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0.75em 1.5em;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
}

.webcollect-btn:hover {
    background-color: #005999;
    transform: scale(1.05);
}

/* ALERTS */
.alerts-wrapper {
    max-width: 75rem;
    margin: 1rem auto;
    padding-inline: 1rem;
}

.alert-block {
    background: var(--dodger-blue);
    color: #fff;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

/* FOOTER */
.footer {
    text-align: center;
    color: #fff;
    font-size: 4.85rem;
}

.footer__top {
    background: var(--dodger-blue);
    padding: 1.25rem;
}

.footer__bottom {
    background: var(--blue-ribbon);
    padding: 1.25rem;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


/* =========================================================
   MOBILE ONLY (≥ 768px)
========================================================= */

@media (max-width: 768px) {
    .page-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .subtitle {
        display: none;
    }

    .banner-container {
        height: 25vh; /* set a visible taller height for mobile */
    }

    .banner-img {
        width: auto;        /* allow image to scale horizontally */
        min-width: 100%;    /* ensures it covers container width */
        height: 100%;       /* fill container height */
        object-fit: cover;  /* crop nicely */
        object-position: center;
    }

}


/* =========================================================
   TABLET (≥ 768px)
========================================================= */

@media (min-width: 48rem) {

    /* TYPOGRAPHY */
    html {
        font-size: 16px;
    }

    body {
        width: 100%;
        /*font-family: Verdana, Arial, "Trebuchet MS", Helvetica, sans-serif;*/
        font-family: "DM Sans", system-ui, sans-serif;
        color: #000;
        line-height: 1.5;
        overflow-x: hidden;
    }

    h1 { font-size: 2.1rem; text-align: center; color: var(--dodger-blue); }
    h2, h3 { font-size: 1.3rem; color: var(--dodger-blue); }
    h4, h5 { font-size: 1rem; color: var(--dodger-blue); }
    h6 { font-size: 1rem; color: #000;}

    .subtitle {
        font-size: 0.7rem;
    }

    p {
        font-size: 0.9rem;
        /*margin-bottom: 1rem;*/
    }

    a {
        color: #0000ee;
        text-decoration: none;
    }
    a:hover { text-decoration: underline; }

    ul {
        list-style: none;
    }


    .grid {
        grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    }

    /* Layout */
    .section-header {
        grid-template-columns: 1fr 1fr;
    }

    .section-grid {
        grid-template-columns:  3fr 2fr;
    }

    .footer__inner {
        flex-direction: row;
        justify-content: center;
    }

    /* GALLERY */
    .gallery-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-row img.gallery {
        max-height: 200px;
    }

}


/* =========================================================
   DESKTOP (≥ 1024px)
========================================================= */

@media (min-width: 64rem) {

    /* Typography */
    html {
        font-size: 16px;
    }

    body {
        width: 100%;
        /*font-family: Verdana, Arial, "Trebuchet MS", Helvetica, sans-serif;*/
        font-family: "DM Sans", system-ui, sans-serif;
        color: #000;
        line-height: 1.5;
        overflow-x: hidden;
    }

    h1 { font-size: 2.8rem; text-align: center; color: var(--dodger-blue); }
    h2 { font-size: 1.8rem; color: var(--dodger-blue); }
    h3 { font-size: 1.3rem; color: var(--dodger-blue); margin-top: 0.75rem;}
    h4, h5 { font-size: 1rem; color: var(--dodger-blue); }
    h6 { font-size: 1rem; color: #000;}

    .subtitle {
        display: block; /* or block depending on your design */
        font-size: 1rem;
    }

    p {
        font-size: 1rem;
        /*margin-bottom: 1rem;*/
    }

    a {
        color: #0000ee;
        text-decoration: none;
    }

    a:hover { text-decoration: underline; }

    ul {
        list-style: none;
    }

    .banner-container {
        height: 45vh; /* adjust to taste */
    }

    .banner-img {
        width: auto;       /* allow horizontal scaling */
        min-width: 100%;   /* cover container */
        height: 100%;      /* fill container height */
        object-fit: cover; /* crop nicely */
        object-position: bottom;
    }
    
    /* Layout */
    .footer__inner {
        justify-content: space-between;
    }


    /* GALLERY */
    .gallery-row {
        grid-template-columns: repeat(4, 1fr);
    }
    .gallery-row img.gallery {
        max-height: 250px;
    }

}

/* =========================================================
   PRINT
========================================================= */
@media print {
    body {
        color: #000;
    }

    .noprint {
        display: none;
    }
}

/* =========================================================
   icons
========================================================= */
@font-face {
    font-family: 'icomoon';
    src: url('../fonts/icomoonbd12.eot?t2zp2k');
    src: url('../fonts/icomoonbd12.eot?t2zp2k#iefix') format('embedded-opentype'),
        url('../fonts/icomoonbd12.ttf?t2zp2k') format('truetype'),
        url('../fonts/icomoonbd12.woff?t2zp2k') format('woff'),
        url('../fonts/icomoonbd12.svg?t2zp2k#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    /* speak: never; obsolete and not part of current CSS */
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-home:before {
    content: "\e900";
}

.icon-home3:before {
    content: "\e902";
}

.icon-camera:before {
    content: "\e90f";
}

.icon-contacts:before {
    content: "\e972";
}

.icon-binoculars:before {
    content: "\e985";
}

.icon-search:before {
    content: "\e986";
}

.icon-cog:before {
    content: "\e994";
}

.icon-link:before {
    content: "\e9cb";
}

.icon-circleright:before {
    content: "\ea42";
}

.icon-circleleft:before {
    content: "\ea44";
}

.icon-paragraphjustify:before {
    content: "\ea7a";
}

.icon-facebook:before {
    content: "\1f300";
}

.icon-instagram:before {
    content: "\ea92";
}

.icon-whatsapp:before {
    content: "\ea93";
}

.icon-twitter:before {
    content: "\ea96";
}

.icon-google:before {
    content: "\ea88";
}

.icon-appleinc:before {
    content: "\eabe";
}

.icon-android:before {
    content: "\eac0";
}

.icon-filepdf:before {
    content: "\eadf";
}

.icon-filewordpdf:before {
    content: "\eae1";
}

.icon-fileexcel:before {
    content: "\eae2";
}

/* button */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.social__link {
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    border: 1px solid #fff;
    /*    display: block; */
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    align-items: center;
    display: flex;
    justify-content: center;
    transition: background .2s, color .2s;
}

.social__link:hover,
.social__link:active {
    background: #fff;
    color: var(--electric-violet);
    /* elephant */
}

/* footer */

.footer {
    text-align: center;
    color: #fff;
    font-size: .85rem;
}

.footer p {
    margin-bottom: 0;
    color: white;
}

.footer a {
    color: #ffffff;
}

.footer a:visited {
    color: #ffffff;
}

/* was var(--spring-green) until WG changed it 1.3.2023 */
.footer a:hover {
    color: var(--electric-violet);
}

.footer__top {
    padding: 20px;
    background: var(--dodger-blue);
    /* was elephant */
}

.footer__bottom {
    padding: 20px;
    background: #3642f7;
    /* was #111 */
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;

    border: 0px solid #000;
    /* debugging 22-Feb */
}

@media screen and (max-width: 768px) {
    .footer__inner {
        flex-direction: column;
    }
}

.footer__list {
    text-align: center;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px
}

.footer__item {
    position: relative;
}

.footer__item:not(:last-child):before {
    content: '';
    position: absolute;
    top: calc(50% - 3px);
    right: -24px;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    background: var(--blue-ribbon);
}

.footer__link {
    color: #fff;
    display: block;
    font-size: .9rem;
}

.footer__link:hover,
.footer__link:focus {
    text-decoration: none;
}

.footer__right .social {
    display: flex;
    gap: 0.5rem; /* space between icons */
    justify-content: flex-end; /* align to the right */
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer__right .social__item {
    margin: 0;
}

.float-logo {
    float: right;
    height: 50px;
    margin-left: 1rem;
}

.rollwrapper {
    background-color: white;
    /*border: 1px solid #888888;
    background-image: url('images/ST_line_drg_100h_68w.jpg'); */
    background-repeat: no-repeat;
    background-position: top center;
    margin: 10px auto; /* top/bottom 10px, left/right auto centers it */
    padding-top: 10pt;
    padding-left: 1em;
    padding-right: 1em;
    width: 24em;
    /*float: left;*/
    
}

.roll

/* used in SCOA committee roll of honour */
    {
    background-color: brown;
    background-image: url("../img/mahogany.jpg");
    border-top: 3px solid khaki;
    border-left: 3px solid DarkKhaki;
    border-right: 3px solid #000;
    border-bottom: 3px solid #000;
    width:
        /* 250pt*/
        20em;
    margin: 10px;
    padding: 10px;
}


.rollwrapperwide {
    background-color: white;
    border: 0px solid #888888;
    /* 	background-image: url('images/ST_line_drg_100h_68w.jpg'); */
    background-repeat: no-repeat;
    background-position: top center;
    margin: 5px auto;
    padding-top: 10pt;
    padding-left: 1em;
    padding-right: 1em;
    width: 48em;
    /*float: left;*/
    
}

.rollwide

/* used in national champions roll of honour */
    {
    background-color: brown;
    background-image: url("../img/mahogany.jpg");

    border-top: 3px solid khaki;
    border-left: 3px solid DarkKhaki;
    border-right: 3px solid #000;
    border-bottom: 3px solid #000;
    width:
        /* 250pt*/
        46em;
    margin: 10px;
    padding: 10px;
    /* remove shadow effects */
    /* -moz-box-shadow: 1px 1px 10px #00f; */
    /*  -webkit-box-shadow: 1px 1px 10px #000; */
    /*  box-shadow: 1px 1px 10px #00f; */

}

.roll H3 {
    font-family: Verdana, Arial, "Trebuchet MS", "Comic Sans MS", Helvetica, sans-serif;
    color: yellow;
    text-align: center;
}

.rollwide H3 {
    font-family: Verdana, Arial, "Trebuchet MS", "Comic Sans MS", Helvetica, sans-serif;
    color: yellow;
    text-align: center;
}

.roll p {
    font-family: Verdana, Arial, "Trebuchet MS", "Comic Sans MS", Helvetica, sans-serif;
    color: #ccccf9;
    font-weight: bold;
}

.rollwide p {
    font-family: Verdana, Arial, "Trebuchet MS", "Comic Sans MS", Helvetica, sans-serif;
    color: #ccccf9;
    font-weight: bold;
}

.responsive-map {
  width: 100%;
  max-width: 100%;
  height: 425px; /* or any preferred height */
  border: 0;
}

span[data-date] img {
  display: inline-block;       /* ensures it stays on the same line */
  vertical-align: middle;      /* aligns nicely with text */
  margin-left: 0.25em;         /* optional spacing after the text */
  max-height: 1em;             /* optional: scale icon to text size */
}
