body {
    margin: 0;
    padding-top: 105px;

    text-align: center;
    overflow-x: visible;

    background-image: linear-gradient(to bottom right, navy, white);

    color: white;

    font-family: "Quote", sans-serif;
}

img {
    border-radius: 10px;
}

h1 {
    font-size: 50px;
    font-weight: bold;
}

h2 {
    font-size: 50px;
    font-weight: bold;
    color: black;
}

h3 {
    font-size: 30px;
    font-weight: bold;
}

p {
    font-size: 15px;
    font-weight: bold;
}


/* =====================================================
   HEADER
   ===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 50px;

    background: #061a40;

    z-index: 5000;

    box-sizing: border-box;
}


/* SMALL OVAL LOGO */

.header-logo-link {
    position: absolute;

    left: 50vw;
    top: 52%;

    transform: translate(-50%, -50%);

    text-decoration: none;

    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo {
    width: 40px;
    height: 40px;

    object-fit: cover;

    border-radius: 50%;

    display: block;
}

.footer {
    width: 100%;
    background: #061a40;

    text-align: center;

    padding: 20px 30px;

    box-sizing: border-box;

    margin-top: 40px;
}

.footer-text {
    margin: 8px auto;

    max-width: 1000px;

    color: white;

    font-family: Arial, Helvetica, Verdana, sans-serif;
    font-size: 11px;
    font-weight: normal;
    font-style: normal;

    line-height: 1.4;
}

.footer-text strong {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    color: gold;

}


/* =====================================================
   NAVBAR
   ===================================================== */

.navbar {
    position: fixed;

    top: 50px;
    left: 0;

    width: 100%;
    height: 55px;

    z-index: 4999;

    display: flex;
    align-items: center;

    gap: 10px;

    overflow-x: auto;
    overflow-y: visible;

    white-space: nowrap;

    padding: 5px 10px;

    background: #061a40;

    box-sizing: border-box;
}


/* Scrollbar */

.navbar::-webkit-scrollbar {
    height: 8px;
}

.navbar::-webkit-scrollbar-thumb {
    background: #d9d1d1;
    border-radius: 10px;
}


/* =====================================================
   DROPDOWN
   ===================================================== */

.dropdown {
    position: static;
    flex-shrink: 0;
}


/* Buttons */

.dropbtn {
    background: transparent;
    border: none;

    color: white;

    display: flex;
    align-items: center;

    gap: 6px;

    font-size: 14px;
    font-weight: bold;
    font-style: italic;

    cursor: pointer;

    padding: 5px 13px;

    border-radius: 8px;

    transition: 0.3s ease;
}

.dropbtn:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* Flags */

.dropbtn img {
    width: 30px;
    height: 14px;
    border-radius: 4px;
}


/* =====================================================
   DROPDOWN MENUS
   ===================================================== */

.dropdown-content {
    display: none;

    position: fixed;

    top: 105px;
    left: auto;

    min-width: 230px;

    background: #102a63;

    border-radius: 10px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);

    z-index: 999999999;

    padding: 10px 0;
}


/* Show Menu */

.dropdown.active .dropdown-content {
    display: block;

    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Team Links */

.dropdown-content a {
    display: block;

    padding: 12px 15px;

    color: white;

    text-decoration: none;

    transition: 0.25s ease;
}

.dropdown-content a:hover {
    background: #1f4aa8;
}


/* Club crests beside team names in navbar dropdowns */
.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 11px;
}

.dropdown-team-logo {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
    box-sizing: border-box;
    padding: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.dropdown-content a span {
    line-height: 1.2;
}


/* =====================================================
   BACKGROUNDS
   ===================================================== */

.homebackground {
    background-image: linear-gradient(to bottom right, #000033, grey);
}

.redbackground {
    background-image: linear-gradient(to bottom right, red, white);
}

.redblackbackground {
    background-image: linear-gradient(to bottom right, red, black);
}

.rednavybackground {
    background-image: linear-gradient(to bottom right, red, navy);
}

.navyredbackground {
    background-image: linear-gradient(to bottom right, navy, red);
}

.yellowbackground {
    background-image: linear-gradient(to bottom right, yellow, black);
}

.orangebackground {
    background-image: linear-gradient(to bottom right, black, orange);
}

.purplebackground {
    background-image: linear-gradient(to bottom right, purple, white);
}

.yellowgreenbackground {
    background-image: linear-gradient(to bottom right, yellow, lightgreen);
}

.greenbackground {
    background-image: linear-gradient(to bottom right, green, white);
}

.skybluebackground {
    background-image: linear-gradient(to bottom right, skyblue, white);
}

.navybackground {
    background-image: linear-gradient(to bottom right, white, navy);
}

.navyyellowbackground {
    background-image: linear-gradient(to bottom right, navy, yellow);
}

.whiteorangeblackbackground {
    background-image: linear-gradient(to bottom right, black, white, orange);
}

.whitegreybackground {
    background-image: linear-gradient(to bottom right, white, lightgrey);
}

.whiteblackbackground {
    background-image: linear-gradient(to bottom right, black, white);
}

.whiteskybluebackground {
    background-image: linear-gradient(to bottom right, white, skyblue);
}

.whitebluebackground {
    background-image: linear-gradient(to bottom right, white, blue);
}

.whiteredbackground {
    background-image: linear-gradient(to bottom right, white, red);
}

.bluebackground {
    background-image: linear-gradient(to bottom right, blue, white);
}

.blueblackbackground {
    background-image: linear-gradient(to bottom right, blue, black);
}

.blackbluebackground {
    background-image: linear-gradient(to bottom right, black, blue);
}

.blueredbackground {
    background-image: linear-gradient(to bottom right, red, #000033);
}


/* =====================================================
   INDEX LOGO
   ===================================================== */

.indexlogo {
    width: 400px;
    height: 280px;

    border-radius: 90%;

    object-fit: cover;
}


/* =====================================================
   SLIDESHOW
   ===================================================== */

.slideshow-container {
    max-width: 1000px;

    position: relative;

    margin: auto;
}


/* =====================================================
   SLIDES
   ===================================================== */

/* Hide slides */

.mySlides1,
.mySlides2 {
    display: none;

    position: relative;
}


/* Show first slide */

.mySlides1:first-child,
.mySlides2:first-child {
    display: block;
}

.mySlides:first-child {
    display: block;
}


/* Make sure the image stays inside the slide */

.mySlides1 img,
.mySlides2 img {
    display: block;

    margin: auto;

    border-radius: 10px;
}


/* =====================================================
   NUMBER TEXT
   ===================================================== */

.numbertext {
    color: white;

    font-size: 12px;
    font-weight: bold;

    padding: 8px 12px;

    position: absolute;

    top: 0;
    left: 0;

    z-index: 10;

    background-color: rgba(0, 0, 0, 0.5);

    border-radius: 10px 0 10px 0;

    box-sizing: border-box;
}


/* =====================================================
   NEXT & PREVIOUS BUTTONS
   ===================================================== */

.prev,
.next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 65px;
    height: 85px;

    background-color: rgba(0, 0, 0, 0.5);

    border-radius: 999px;

    display: block;

    text-align: center;

    line-height: 85px;

    font-size: 40px;
    font-weight: bold;

    color: white;

    text-decoration: none;

    cursor: pointer;

    user-select: none;

    z-index: 20;
}


/* LEFT */

.prev {
    left: 15px;
}


/* RIGHT */

.next {
    right: 15px;
}


/* Hover */

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* =====================================================
   CAPTION
   ===================================================== */

.text {
    color: #f2f2f2;

    font-size: 15px;

    padding: 8px 12px;

    position: absolute;

    bottom: 8px;

    width: 100%;

    text-align: center;
}


/* =====================================================
   DOTS
   ===================================================== */

/* Dots are disabled/hidden */

.dot {
    display: none;
}


/* =====================================================
   FADING ANIMATION
   ===================================================== */

.fade {
    animation-name: fade;

    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4;
    }

    to {
        opacity: 1;
    }
}



.video-container {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 25px auto;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* =====================================================
   ACCOUNT / AUTHENTICATION
   ===================================================== */

.account-controls {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.header-welcome {
    color: white;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    background: transparent;
    color: white;
    font: inherit;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.header-action:hover,
.header-action:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

.header-forum {
    color: gold;
    border-color: gold;
}

.logout-form {
    margin: 0;
    display: inline-flex;
}

.header-logout {
    appearance: none;
}

.auth-page,
.forum-page {
    width: min(920px, calc(100% - 30px));
    margin: 45px auto 0;
}

.auth-card,
.forum-compose,
.forum-feed,
.forum-heading {
    background: rgba(6, 26, 64, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
}

.auth-card {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 28px;
    text-align: left;
}

.auth-card h1,
.forum-heading h1 {
    margin: 0 0 10px;
    color: gold;
    font-size: 38px;
}

.auth-card > p {
    line-height: 1.5;
}

.auth-form {
    display: grid;
    gap: 9px;
    margin-top: 22px;
}

.auth-form label {
    font-size: 14px;
    font-weight: bold;
}

.auth-form input,
.forum-form textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #aab5c9;
    border-radius: 9px;
    background: white;
    color: #111;
    font: inherit;
    box-sizing: border-box;
}

.auth-form input:focus,
.forum-form textarea:focus {
    outline: 3px solid rgba(255, 215, 0, 0.35);
    border-color: gold;
}

.primary-button {
    border: 0;
    border-radius: 9px;
    padding: 12px 18px;
    background: gold;
    color: #061a40;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.primary-button:hover,
.primary-button:focus-visible {
    filter: brightness(0.95);
}

.auth-form .primary-button {
    margin-top: 9px;
}

.auth-switch a {
    color: gold;
    font-weight: bold;
}

.alert {
    padding: 11px 13px;
    margin: 12px 0;
    border-radius: 9px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
}

.alert-error {
    background: #7d1d25;
    color: white;
    border: 1px solid #ffb3b8;
}

.alert-success {
    background: #155b35;
    color: white;
    border: 1px solid #aee8c6;
}

/* =====================================================
   CHAT FORUM
   ===================================================== */

.forum-page {
    text-align: left;
}

.forum-heading,
.forum-compose,
.forum-feed {
    padding: 24px;
    margin-bottom: 20px;
}

.forum-heading p {
    margin-bottom: 0;
}

.forum-compose h2,
.forum-feed h2 {
    margin: 0 0 16px;
    color: gold;
    font-size: 27px;
}

.forum-form textarea {
    min-height: 125px;
    resize: vertical;
}

.forum-form-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.forum-form-footer span {
    font-size: 12px;
    opacity: 0.82;
}

.forum-post {
    padding: 17px;
    margin: 0 0 12px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 11px;
}

.forum-post:last-child {
    margin-bottom: 0;
}

.forum-post-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.forum-post-meta strong {
    color: gold;
}

.forum-post-meta time {
    font-size: 12px;
    opacity: 0.8;
}

.forum-post p {
    margin: 12px 0 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.forum-empty {
    padding: 22px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 11px;
}

.forum-alert {
    width: 100%;
    box-sizing: border-box;
}

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

@media (max-width: 700px) {
    .header-logo-link {
        left: 28px;
    }

    .account-controls {
        right: 7px;
        gap: 5px;
    }

    .header-welcome {
        display: none;
    }

    .header-action {
        padding: 0 7px;
        font-size: 10px;
    }

    .auth-page,
    .forum-page {
        width: min(100% - 18px, 920px);
        margin-top: 28px;
    }

    .auth-card,
    .forum-heading,
    .forum-compose,
    .forum-feed {
        padding: 18px;
    }

    .auth-card h1,
    .forum-heading h1 {
        font-size: 31px;
    }

    .forum-form-footer,
    .forum-post-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =====================================================
   RESPONSIVE LAYOUT
   Breakpoints: large desktop, tablet/small laptop,
   mobile, and small mobile.
   ===================================================== */

/* Keep media inside the viewport at every screen size. */
img,
video,
iframe {
    max-width: 100%;
}

/* Team-page stadium photos are intentionally uniform.
   Preserve the original 250 x 150 presentation even when source images
   have different native aspect ratios. */
body > img[width="250"][height="150"] {
    width: 250px;
    height: 150px;
    object-fit: cover;
}

.mySlides1 img,
.mySlides2 img {
    max-width: 100%;
    height: auto !important;
}

/* Large desktop */
@media (min-width: 1280px) {
    .slideshow-container {
        max-width: 1100px;
    }

    .auth-page,
    .forum-page {
        max-width: 1000px;
    }
}

/* Tablet and small laptop */
@media (max-width: 1024px) {
    h1,
    h2 {
        font-size: 42px;
    }

    h3 {
        font-size: 27px;
    }

    .slideshow-container {
        width: calc(100% - 32px);
        max-width: 900px;
    }

    .prev,
    .next {
        width: 56px;
        height: 74px;
        line-height: 74px;
        font-size: 34px;
    }

    .video-container {
        width: calc(100% - 32px);
    }

    .footer {
        padding-left: 22px;
        padding-right: 22px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    h1,
    h2 {
        font-size: 34px;
        line-height: 1.15;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    h3 {
        font-size: 24px;
        line-height: 1.2;
    }

    p {
        line-height: 1.5;
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
    }

    .indexlogo {
        width: min(400px, calc(100% - 32px));
        height: auto;
        aspect-ratio: 10 / 7;
    }

    /* Fixed-size content photos can shrink instead of overflowing. */
    body > img:not(.indexlogo),
    body > a > img {
        max-width: calc(100% - 24px);
    }

    .navbar {
        gap: 5px;
        padding-left: 6px;
        padding-right: 6px;
        scrollbar-width: thin;
    }

    .dropbtn {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 12px;
    }

    .dropbtn img {
        width: 26px;
        height: 13px;
    }

    .dropdown-content {
        max-width: calc(100vw - 16px);
        min-width: min(230px, calc(100vw - 16px));
    }

    .dropdown-content a {
        gap: 9px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .dropdown-team-logo {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .slideshow-container {
        width: calc(100% - 20px);
    }

    .prev,
    .next {
        width: 44px;
        height: 60px;
        line-height: 60px;
        font-size: 28px;
    }

    .prev {
        left: 7px;
    }

    .next {
        right: 7px;
    }

    .numbertext {
        font-size: 10px;
        padding: 6px 9px;
    }

    .video-container {
        width: calc(100% - 20px);
        margin-bottom: 18px;
    }

    .footer {
        padding: 18px 14px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    h1,
    h2 {
        font-size: 29px;
    }

    h3 {
        font-size: 21px;
    }

    p {
        font-size: 14px;
    }

    .header-logo {
        width: 36px;
        height: 36px;
    }

    .account-controls {
        right: 5px;
        gap: 4px;
    }

    .header-action {
        min-height: 28px;
        padding: 0 6px;
        font-size: 9px;
    }

    .dropbtn {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 11px;
        gap: 4px;
    }

    .dropbtn img {
        width: 23px;
        height: 12px;
    }

    .slideshow-container {
        width: calc(100% - 12px);
    }

    .prev,
    .next {
        width: 36px;
        height: 50px;
        line-height: 50px;
        font-size: 24px;
    }

    .prev {
        left: 4px;
    }

    .next {
        right: 4px;
    }

    .auth-card,
    .forum-heading,
    .forum-compose,
    .forum-feed {
        padding: 15px;
    }

    .auth-card h1,
    .forum-heading h1 {
        font-size: 27px;
    }

    .forum-compose h2,
    .forum-feed h2 {
        font-size: 23px;
    }

    .footer-text {
        font-size: 10px;
    }

    .footer-text strong {
        font-size: 14px;
    }
}

/* Official club website buttons */
.official-site-button {
    --club-primary: #222;
    --club-secondary: #555;
    --club-text: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    max-width: calc(100% - 32px);
    padding: 12px 24px;
    margin: 8px 16px 32px;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--club-primary) 0 58%, var(--club-secondary) 58% 100%);
    color: var(--club-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.official-site-button::after {
    content: "↗";
    font-size: 20px;
    line-height: 1;
}

.official-site-button:hover,
.official-site-button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 9px 18px rgba(0, 0, 0, 0.34);
    filter: brightness(1.08);
}

.official-site-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Club colour combinations */
.team-arsenal     { --club-primary:#ef0107; --club-secondary:#063672; --club-text:#fff; }
.team-chelsea     { --club-primary:#034694; --club-secondary:#fff; --club-text:#111; }
.team-porto       { --club-primary:#004a98; --club-secondary:#fff; --club-text:#111; }
.team-benfica     { --club-primary:#e30613; --club-secondary:#fff; --club-text:#111; }
.team-ac          { --club-primary:#c8102e; --club-secondary:#111; --club-text:#fff; }
.team-ajax        { --club-primary:#d2122e; --club-secondary:#fff; --club-text:#111; }
.team-atletico    { --club-primary:#cb3524; --club-secondary:#1b2a57; --club-text:#fff; }
.team-barca       { --club-primary:#004d98; --club-secondary:#a50044; --club-text:#ffd700; }
.team-bologna     { --club-primary:#1a2f5f; --club-secondary:#9b1c31; --club-text:#fff; }
.team-celtic      { --club-primary:#018749; --club-secondary:#fff; --club-text:#111; }
.team-clubbrugge  { --club-primary:#0057b8; --club-secondary:#111; --club-text:#fff; }
.team-copenhagen  { --club-primary:#fff; --club-secondary:#1f4e9e; --club-text:#111; }
.team-dortmund    { --club-primary:#fdeb00; --club-secondary:#111; --club-text:#fff; }
.team-fiorentina  { --club-primary:#5b2c83; --club-secondary:#fff; --club-text:#111; }
.team-inter       { --club-primary:#0057a8; --club-secondary:#111; --club-text:#fff; }
.team-juve        { --club-primary:#111; --club-secondary:#fff; --club-text:gold; }
.team-lazio       { --club-primary:#8bc6e8; --club-secondary:#fff; --club-text:#111; }
.team-malmo       { --club-primary:#6bbbe9; --club-secondary:#fff; --club-text:#111; }
.team-mancity     { --club-primary:#6cabdd; --club-secondary:#fff; --club-text:#111; }
.team-manutd      { --club-primary:#da291c; --club-secondary:#fff; --club-text:#111; }
.team-munich      { --club-primary:#dc052d; --club-secondary:#0066b2; --club-text:#fff; }
.team-nantes      { --club-primary:#f6e500; --club-secondary:#178a45; --club-text:#111; }
.team-pisa        { --club-primary:#111; --club-secondary:#1666a8; --club-text:#fff; }
.team-psg         { --club-primary:#004170; --club-secondary:#da291c; --club-text:#fff; }
.team-psv         { --club-primary:#e30613; --club-secondary:#fff; --club-text:#111; }
.team-rangers     { --club-primary:#005eb8; --club-secondary:#d71920; --club-text:#fff; }
.team-real        { --club-primary:#fff; --club-secondary:#c9a227; --club-text:#111; }
.team-salford     { --club-primary:#d71920; --club-secondary:#111; --club-text:#fff; }
.team-sporting    { --club-primary:#00843d; --club-secondary:#fff; --club-text:#111; }
.team-spurs       { --club-primary:#132257; --club-secondary:#fff; --club-text:gold; }
.team-valencia    { --club-primary:#f47b20; --club-secondary:#111; --club-text:#fff; }
.team-venezia     { --club-primary:#f36c21; --club-secondary:#111; --club-text:#fff; }
.team-verona      { --club-primary:#132a4f; --club-secondary:#f4d019; --club-text:#fff; }
.team-zaragoza    { --club-primary:#fff; --club-secondary:#7ec8e3; --club-text:#111; }

@media (max-width: 768px) {
    .official-site-button {
        width: calc(100% - 32px);
        font-size: 17px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .official-site-button {
        min-height: 48px;
        font-size: 15px;
        border-radius: 11px;
    }
}

/* Club crest integrated into official website buttons */
.official-site-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
    object-position: center;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.22);
}

@media (max-width: 480px) {
    .official-site-logo {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        padding: 2px;
    }
}

/* =====================================================
   PROFESSIONAL VISUAL POLISH
   Typography, content rhythm and presentation.
   ===================================================== */

/* A cleaner native font stack keeps the site fast and consistent across devices. */
body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Main page titles: stronger hierarchy with a restrained gold accent. */
body > h1 {
    width: fit-content;
    max-width: calc(100% - 32px);
    margin: 30px auto 24px;
    padding: 0 8px;
    font-size: clamp(2.2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

body > h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f4c430, #fff3a6, #f4c430);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
}

/* Homepage title has the same visual hierarchy even though it sits in a wrapper. */
.homebackground h1 {
    max-width: 900px;
    margin: 10px auto 28px;
    padding: 0 18px;
    font-size: clamp(2.2rem, 4.5vw, 3.35rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

/* Secondary headings and gallery labels. */
body > h2 {
    max-width: 900px;
    margin: 42px auto 18px;
    padding: 0 18px;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

body > h3 {
    width: fit-content;
    max-width: calc(100% - 32px);
    margin: 46px auto 22px;
    padding: 0 12px 10px;
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: 0.025em;
    text-wrap: balance;
    border-bottom: 2px solid rgba(255, 215, 0, 0.72);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
}

/* Comfortable reading width and spacing instead of long, heavy lines of text. */
body > p {
    width: min(780px, calc(100% - 36px));
    margin: 0 auto 13px;
    padding: 0;
    box-sizing: border-box;
    font-size: clamp(0.98rem, 1.2vw, 1.06rem);
    font-weight: 500;
    line-height: 1.72;
    letter-spacing: 0.005em;
    text-wrap: pretty;
}

/* Give groups of page images a more finished photographic presentation. */
body > img:not(.indexlogo),
body > a > img {
    margin: 5px 4px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* The main club crest should feel deliberately separated from the content below. */
body > h1 + img {
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* Galleries get a consistent frame without changing image dimensions. */
.slideshow-container {
    margin-top: 12px;
    margin-bottom: 30px;
}

.mySlides1 img,
.mySlides2 img {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

/* Slightly refine standard interactive elements. */
.dropbtn,
.header-action,
.primary-button,
.official-site-button {
    letter-spacing: 0.01em;
}

.dropdown-content {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
}

.dropdown-content a {
    font-weight: 600;
}

.footer {
    margin-top: 52px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (hover: hover) and (pointer: fine) {
    body > img:not(.indexlogo):hover,
    body > a > img:hover {
        transform: translateY(-2px);
        box-shadow: 0 11px 28px rgba(0, 0, 0, 0.27);
    }
}

@media (max-width: 768px) {
    body > h1 {
        margin-top: 24px;
        margin-bottom: 20px;
    }

    body > h1::after {
        width: 58px;
        height: 3px;
        margin-top: 11px;
    }

    body > h3 {
        margin-top: 36px;
        margin-bottom: 18px;
    }

    body > p {
        width: min(720px, calc(100% - 30px));
        padding: 0;
        line-height: 1.68;
    }

    body > img:not(.indexlogo),
    body > a > img {
        margin-left: 3px;
        margin-right: 3px;
    }
}

@media (max-width: 480px) {
    body > h1 {
        max-width: calc(100% - 24px);
    }

    body > h3 {
        max-width: calc(100% - 24px);
        padding-left: 6px;
        padding-right: 6px;
    }

    body > p {
        width: calc(100% - 26px);
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .footer {
        margin-top: 42px;
    }
}


/* Temporary gallery placeholder for team pages awaiting Cloudinary carousel images */
.carousel-placeholder {
    width: min(80%, 900px);
    min-height: 180px;
    margin: 18px auto 30px;
    padding: 28px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed rgba(255, 255, 255, 0.58);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
}
.carousel-placeholder p {
    margin: 0;
}
@media (max-width: 768px) {
    .carousel-placeholder {
        width: calc(100% - 32px);
        min-height: 140px;
        padding: 20px;
    }
}
