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

/* =========================================================
   ROOT VARIABLES
========================================================= */
:root {
    /*--dodger-blue: #36a3f7;*/
    --dodger-blue: #2b82bf; /* Bright Nautical */
    --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.2rem; 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 {
    margin-left: 0;
    margin-bottom: 0.5em;
}

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;
}

.nav ul,
.menu,
.submenu {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

ul {
    font-size: 0.9rem;
    list-style-type: square;
    margin-bottom: 0.5em;
    padding-left: 25px;
}

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

/* CONTENT ALIGNMENT SYSTEM */
/* Base alignment for all content */
.section p,
.section table,
.section .gallery-row {
    margin-left: 0;
}

/* Headings slightly left of body text */
.section h2,
.section h3,
.section h4 {
    margin-left: -0.5rem;  /* adjust: -0.25rem to -0.75rem */
}

/* 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(4, 1fr);
    gap: 0.75rem;
    justify-items: center;
    align-items: start;
    width: 100%;
    padding-left: 0;
}

.gallerywrapper {
    display: flex;
    flex-direction: column;
}

.gallery-row img.gallery {
    width: 100%;
    height: auto;
    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(--dodger-blue);
    padding: 0.5rem;
    text-align: left; /* ensures text aligns to the left */
}

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

/* Database tables*/
.data-table {
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 1.5px 6px;
    line-height: 1;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.data-table th {
    background-color: var(--dodger-blue);
    color: #fff;
}

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

@media (max-width: 768px) {
    p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .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;
    }
    .gallery-row {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   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; }

    .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-row {
        grid-template-columns: repeat(3, 1fr);
    }

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

}


/* =========================================================
   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; }

    .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 {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Database tables*/
    .data-table {
        font-size: 1rem;
    }

}




/* =========================================================
   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);
}

.footer__bottom {
    padding: 10px 0; /* optional, reduce height */
    background: var(--dodger-blue);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    /*gap: 20px;*/

    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;
}

.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 */
}

/* MEDAL STYLES*/
.medal {
    display:inline-block;
    padding:2px 8px;
    margin-right:4px;
    border-radius:4px;
    color:#000;
}

/* Gold */
.medal.gold {
    background:#d4af37;
}

/* Silver */
.medal.silver {
    background:#c0c0c0;
}

/* Bronze */
.medal.bronze {
    background:#cd7f32;
}



/* =========================
   WRAPPER (horizontal scroll)
   ========================= */
.table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* =========================
   BASE TABLE (shared)
   ========================= */
.data-table {
    border-collapse: collapse;
}

/* default cell behaviour */
.data-table th,
.data-table td {
    padding: 6px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   SERIES TABLE (LEADERBOARD)
   ========================= */
/*.series-table {
    width: 100%;
    table-layout: auto;
}*/
.series-table {
    width: auto;              /* critical fix */
    display: inline-table;    /* prevents full-width stretching */
    table-layout: auto;
}

/* event column (series only) */
.series-table td.event-col,
.series-table th.event-col {
    min-width: 160px;
    width: 260px;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ensure links wrap */
.series-table td.event-col a {
    display: block;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* =========================
   EVENTS TABLE (FIXED WIDTH BEHAVIOUR)
   ========================= */
.events-table {
    width: auto;              /* critical fix */
    display: inline-table;    /* prevents full-width stretching */
    table-layout: auto;
}

/* event column (events table) */
.events-table td.event-col,
.events-table th.event-col {
    min-width: 120px !important;
    width: 260px !important;
    max-width: 260px;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* =========================
   STICKY COLUMN 1
   ========================= */
.sticky-col {
    position: sticky;
    left: 0;

    width: 60px;
    min-width: 60px;
    max-width: 60px;

    background: #fff;
    z-index: 3;

    white-space: nowrap;
    text-align: center;
}

/* =========================
   STICKY COLUMN 2
   ========================= */
.sticky-col-2 {
    position: sticky;
    left: 60px;

    width: 140px;
    min-width: 140px;
    max-width: 140px;

    background: #fff;
    z-index: 2;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   HEADER FIX
   ========================= */
.data-table th.sticky-col {
    z-index: 5;
}

.data-table th.sticky-col-2 {
    z-index: 4;
}

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

    .data-table th,
    .data-table td {
        padding: 4px 6px;
        font-size: clamp(14px, 1.2vw, 16px);
    }

    .sticky-col-2 {
        white-space: normal;
        line-height: 1.2;
    }
}

/* =========================
   ZEBRA STRIPING
   ========================= */
.data-table tbody tr:nth-child(even) td {
    background-color: #f5f5f5;
}

/* =========================
   FIX STICKY COLUMNS ZEBRA ISSUE
   ========================= */
.data-table tbody tr:nth-child(even) td.sticky-col,
.data-table tbody tr:nth-child(even) td.sticky-col-2 {
    background-color: #f5f5f5;
}

.data-table tbody tr:nth-child(odd) td.sticky-col,
.data-table tbody tr:nth-child(odd) td.sticky-col-2 {
    background-color: #ffffff;
}


/* -------------------------
   CONTAINER
--------------------------*/
.library-container {
    width: 100%;
    max-width: 1200px;   /* or your previous value */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* -------------------------
   TITLE
--------------------------*/
.library-title {
    margin: 0 0 5px 0;
}

.library-subtitle {
    margin: 0 0 20px 0;
    color: #666;
}

/* -------------------------
   FILTER BAR
--------------------------*/
.filter-bar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-bar input,
.filter-bar select,
.filter-bar button {
    padding: 6px;
    font-size: 14px;
}

/* -------------------------
   GRID (2 columns stable)
--------------------------*/
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    width: 100%;
}

/* -------------------------
   CARD (fixed 2-column behaviour)
--------------------------*/
.card {
    flex: 0 0 calc(50% - 7.5px);
    display: flex;
    gap: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

/* hover effect */
.card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

/* -------------------------
   TEXT AREA
--------------------------*/
.card-content {
    flex: 1;
    min-width: 0;
    padding: 10px;
}

.card-title {
    font-size: 18px;
    line-height: 1.2;
    margin: 0 0 6px 0;
}

.card-title a {
    text-decoration: none;
    color: inherit;
}

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

.card-meta {
    font-size: 14px;
    line-height: 1.2;
    opacity: 0.75;
    margin-bottom: 6px;
}

.card-summary {
    font-size: 14px;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.read-more {
    margin-top: 10px;
}

/* -------------------------
   BADGE
--------------------------*/
.badge {
    background: #0073aa;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 6px;
}

/* -------------------------
   IMAGE
--------------------------*/
.card-image {
    width: 150px;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
}

.no-image {
    width: 100%;
    height: 110px;
    background: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #777;
}

/* -------------------------
   RESPONSIVE (tablet/mobile)
--------------------------*/
@media (max-width: 700px) {
    .card {
        flex: 0 0 100%;
    }
}

/* Thinner, grey divider line */
hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.news-date {
    font-size: 0.7rem;
    color: #999;
    margin-top: 4px;
}

.table-footnote {
    margin-top: 0.25rem; /* small, controlled gap */
    font-size: 13px;
    opacity: 0.75;
}

.published_at {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.55);
}

/* =========================================================
   CARD MOBILE OPTIMISATION
========================================================= */
@media (max-width: 768px) {

    .card-grid {
        gap: 12px;
    }

    .card {
        padding: 8px;
        gap: 10px;
        border-radius: 8px;
    }

    .card-content {
        padding: 6px;
    }

    .card-title {
        font-size: 15px;
        line-height: 1.15;
        margin: 0 0 4px 0;
    }

    .card-meta {
        font-size: 12px;
        line-height: 1.1;
        margin-bottom: 4px;
    }

    .card-summary {
        font-size: 13px;
        line-height: 1.25;
        margin: 0 0 6px 0;
    }

    .read-more {
        margin-top: 6px;
        font-size: 13px;
    }

    .card-image {
        width: 110px;
    }

    .card-image img,
    .no-image {
        height: 85px;
    }
}


/* =========================
   AWARDS BLOCK
========================= */
.event-awards {
    margin-top: 8px;
}

.event-award-item {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.3;
}

.event-award-item a {
    font-size: 17px;
}

.event-award-desc {
    opacity: 0.6;
    font-size: 17px;
}

/* =========================
   MOBILE TIGHTENING
========================= */
@media (max-width: 768px) {

    .event-award-item {
        font-size: 14px;
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .event-award-item a {
        font-size: 14px;
    }

    .event-award-desc {
        font-size: 14px;
    }
}

/* =========================
   GLOBAL SECTION SPACING
========================= */
.section {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .section {
        margin-bottom: 1.25rem;
    }
}

/* =========================
   MAIN COLUMN SPACING
========================= */
.section-main p {
    margin: 0;
}

.section-main > * {
    margin-bottom: 1rem;
}

.section-main > *:last-child {
    margin-bottom: 1.5rem;
}

/* =========================
   SIDEBAR SPACING
========================= */
.section-sidebar > * {
    margin-bottom: 1.5rem;
}

.section-sidebar > *:last-child {
    margin-bottom: 0;
}

/* =========================
   COMPONENT BLOCK SPACING
========================= */
.card-grid {
    margin-bottom: 1.5rem;
}

.table-wrapper {
    margin-bottom: 0rem;
}

.gallery-row {
    margin-bottom: 1.5rem;
}

.calendar-list {
    margin-bottom: 1.5rem;
}

/* =========================
   GRID GAP BELOW (optional polish)
========================= */
.section-grid {
    margin-bottom: 1.5rem;
}

/* =========================
   SECTION COLUMN GAP
========================= */

.section-grid {
    gap: 0.75rem;
}

@media (min-width: 48rem) {
    .section-grid {
        gap:1.0rem;
    }
}


.footer__top {
    min-height: 40px; /* adjust as needed */
    padding: 10px 0;
}

/* Make the top footer a flex row */
.footer__inner {
    display: flex;
    gap: 0.25rem; /* spacing between columns */
    align-items: flex-start; /* top-align other columns */
}

/* Make right column a column flex container */
.footer__right {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* pushes heading to top, icons to bottom */
    height: 100%; /* make it fill the parent column */
}

/* Social icons layout */
.footer__right .social {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__bottom {
    padding: 10px 0; /* reduce bottom bar height */
}

.footer__heading {
    color: #ffffff; /* or another visible color */
    font-size: 16px; /* optional: adjust size */
    margin-bottom: 2px; /* optional: space below heading */
}

/* Columns in top footer */
.footer__col, .footer__right {
    text-align: left; /* left-align headings and links */
    margin-bottom: 0;
}

/* Lists inside columns */
.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: 0.25rem; /* optional spacing between links */
}

/* Right column layout */
.footer__right {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* pushes copyright to bottom */
    align-items: flex-end;           /* right-align by default */
    text-align: right;
}

/* Social icons layout */
.footer__top-right .social {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Narrow view / stacked columns */
@media (max-width: 767px) {
    /* Footer columns stacked vertically */
    .footer__inner {
        flex-direction: column;
        align-items: flex-start; /* all columns left-aligned */
        gap: 1rem;
    }

    /* Right column adjusts to left for stacked view */
    .footer__right {
        align-items: flex-start; /* move entire column content to left */
        text-align: left;
    }

    .footer__top-right .social {
        justify-content: flex-start; /* social icons left */
    }
}

.filter-form {
    margin: 0.75rem 0;
}


@media (max-width: 768px) {
    table {
        font-size: 0.9rem;
    }
}

/* LOGIN */

.login-wrap {
    max-width: 420px;
    margin: 60px auto;
    padding: 20px;
}

.login-box {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.login-box h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

/* UPDATED: uses WebCollect button styling */
.login-form button.webcollect-btn {
    width: 100%;
    padding: 12px;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 15px;
    border-radius: 6px;
}

.error {
    color: #b00020;
    font-size: 13px;
    margin-bottom: 10px;
}

.login-links {
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
}

.login-links a {
    color: #2d6cdf;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .results-image a {
        font-size: 14px;
    }
}