.team-card-flex {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
}

.team-list {
    flex: 1;
    text-align: center;
}

.team-list h2 {
    margin: 0 0 1rem 0;
}
/* ===== BRAND COLOUR VARIABLES ===== */
:root {
    --color-primary: darkblue;
    --color-primary-dark: #002b5f;
    --color-accent: #FFD41D;
    --color-bg: whitesmoke;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    overflow-x: hidden;
    width: 100%;
}

html {
    width: 100%;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Enhanced focus indicators for accessibility */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

a:focus,
button:focus,
.nav-link:focus,
.dropdown-link:focus,
.btn-link:focus,
.carousel-btn:focus,
.fixtures-btn:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.sponsor-link:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 16px;
}

/* Page transition overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 139, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.page-transition.active {
    opacity: 1;
}

/* Fade-in on scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 1;
    transform: none;
}

.fade-in-section.visible {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading skeleton shimmer */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.sponsor-logo {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 50%,
        #f0f0f0 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.sponsor-logo[src]:not([src=""]):not([src="#"]) {
    background: none;
    animation: none;
}

/* Home page background */
.home-page {
    position: relative;
}

.home-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/pavillion.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.65;
    z-index: -1;
    pointer-events: none;
}

.page-content {
    position: relative;
    z-index: 1;
    background-color: white;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 16px;
    width: calc(100% - 4rem);
    box-sizing: border-box;
}

hr {
    border: none;
    border-top: 3px solid var(--color-accent);
    margin: 2rem 0;
    opacity: 1;
}
h2 {
    text-align: center;
}
.about-us {
    text-align: left;
}
.logo {
    width: 160px;
    height: 160px;
}
/* Navbar styling */
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.5rem 4rem;
    background-color: var(--color-primary);
    min-height: 190px;
}

.navbar-brand {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
}

.navbar-brand img {
    margin-bottom: 0.5rem;
}

.brand-text {
    font-weight: bold;
    font-size: 2.5rem;
    text-align: center;
}

.navbar-nav {
    grid-column: 3;
    justify-self: end;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.bubble {
  float: left;
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  shape-outside: circle(50%);
  object-fit: cover;
  margin: 0 20px 20px 0;
}

.bubble:hover { 
    transform: translateY(-8px);
    transition: box-shadow 0.3s ease;
    box-shadow: #333 0px 2px 8px; 
}

.sponsor {
    text-align: center;
}

.main-sponsor-logo {
    width: min(40vw, 380px);
    height: auto;
    max-height: 320px;
    display: block;
    margin: 2rem auto 1.5rem auto;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    border-radius: 24px;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
}
.main-sponsor-logo:hover {
    transform: scale(1.04) rotate(-2deg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.main-sponsor-logo-wrap {
    text-align: center;
}

.main-sponsor-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.main-sponsor-link .main-sponsor-logo {
    display: block;
}

.main-sponsor-link img {
    display: block;
}


/* Footer styling */
footer {
    background-color: var(--color-primary);
    color: white;
    margin-top: 2rem;
    border-top: 4px solid var(--color-accent);
}

.footer-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-club-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0 0 0.4rem;
    letter-spacing: 0.02em;
}

.footer-tagline {
    font-size: 0.85rem;
    opacity: 0.75;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.footer-social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: transparent;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    opacity: 0.85;
}

.footer-social-icons a:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.footer-social-icons svg {
    width: 36px;
    height: 36px;
    overflow: hidden;
}

.footer-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-links ul a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-brand-contact {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
}

.footer-brand-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-brand-contact a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    background-color: var(--color-primary-dark);
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Dropdown menu styling */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-primary);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--color-bg);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-link:hover,
.dropdown-link.active {
    background-color: var(--color-primary-dark);
    color: var(--color-accent);
}

@media (max-width: 991px) {
      .navbar {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .navbar-brand {
        flex-grow: 1;
    }

    .navbar-nav {
        margin-top: 1rem;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: var(--color-primary-dark);
        margin-top: 0.5rem;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Media query for tablets and small devices (max-width: 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .logo {
        width: 120px;
        height: 120px;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .brand-text {
        font-size: 1.5rem;
    }

    .bubble {
        width: 100%;
        max-width: 300px;
        margin: 0 10px 10px 0;
    }

    .page-content {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .navbar-nav {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    .team-section {
        padding: 2.5rem 1.5rem;
    }

    .fixtures-section {
        padding: 2.5rem 1.5rem;
    }

    .contact-container {
        margin: 1.5rem;
        padding: 1.5rem;
        width: calc(100% - 3rem);
    }

    .carousel-wrapper {
        padding: 1.5rem;
        margin: 0 1rem 2.5rem;
        width: calc(100% - 2rem);
    }
}

/* Media query for mobile devices (max-width: 576px) */
@media (max-width: 576px) {
    body {
        font-size: 13px;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .bubble {
        float: none;
        width: 100%;
        max-width: 250px;
        margin: 0 auto 1rem;
        display: block;
    }

    .page-content {
        padding: 1rem;
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }

    .navbar-brand img {
        margin-right: 0.25rem;
    }

    .navbar-nav {
        position: static;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }

    .fixtures-content {
        padding: 1rem;
    }

    .team-section {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }

    .fixtures-section {
        padding: 2rem 1rem;
    }

    .contact-container {
        margin: 1rem;
        padding: 1rem;
        width: calc(100% - 2rem);
    }

    .carousel-wrapper {
        padding: 1rem;
        margin: 0 0.5rem 2rem;
        width: calc(100% - 1rem);
    }

    .fixtures-link-card {
        padding: 1.5rem;
    }

    .fixtures-link-card h3 {
        font-size: 1.3rem;
    }

    .fixtures-icon {
        width: 50px;
        height: 50px;
    }

    .fixtures-icon svg {
        width: 28px;
        height: 28px;
    }

    .fixtures-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .fixtures-info {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
}

/* Team Sections Styling */
.team-section {
    padding: 3rem 2rem;
    background-color: #f0f0f0;
    margin: 2rem 0;
    border-left: 5px solid var(--color-primary);
}

.team-section:nth-child(odd) {
    background-color: var(--color-bg);
}

.team-container {
    max-width: 1000px;
    margin: 0 auto;
}

.team-section h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.team-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
}

.team-card {
    background-color: white;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 16px;
    box-shadow: #333 0px 2px 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.team-card p {
    margin-bottom: 0;
}

.junior-image {
    border-radius: 16px;
    box-shadow: #333 0px 2px 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 320px;
    width: 100%;
    flex-shrink: 0;
}

.junior-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-link:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Fixtures Page Styling */
.fixtures-section {
    padding: 3rem 2rem;
    background-color: var(--color-bg);
}

.fixtures-container {
    max-width: 1200px;
    margin: 0 auto;
}

.fixtures-section h1 {
    color: black;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 4px solid var(--color-accent);
    padding-bottom: 0.5rem;
}

.fixtures-section > div > p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Fixtures Content Area */
.fixtures-content {
    background-color: #f0f0f0;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: #333 0px 2px 8px;
}

.fixtures-content h2 {
    color: var(--color-primary);
    margin-top: 0;
}

.fixtures-content p {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.fixtures-link-card {
    display: block;
    background: linear-gradient(135deg, var(--color-primary) 0%, #003d82 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: #333 0px 2px 8px;
    margin: 2rem 0;
}

.fixtures-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.fixtures-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixtures-icon svg {
    width: 45px;
    height: 45px;
    color: var(--color-primary);
}

.fixtures-link-card h3 {
    color: var(--color-accent);
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
}

.fixtures-link-card p {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.fixtures-btn {
    display: inline-block;
    background-color: white;
    color: var(--color-primary);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.fixtures-link-card:hover .fixtures-btn {
    background-color: var(--color-accent);
    transform: scale(1.05);
}

.fixtures-info {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 128, 0.05);
    border-radius: 16px;
    font-size: 0.9rem;
    color: #666;
}

.fixtures-info strong {
    color: var(--color-primary);
}

/* Sponsors Page Styling */
.sponsors-page {
    color: black;
    font-size: 2.5rem;
    margin: 2rem auto 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 4px solid var(--color-accent);
    max-width: 1200px;
}

.sponsors-intro {
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    text-align: center;
}

.sponsor-description {
    margin: 0 auto 3rem;
    padding: 0 2rem;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    text-align: center;
}

/* Sponsors grid container */
.carousel-wrapper,
.sponsors-grid-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: calc(100% - 4rem);
    box-sizing: border-box;
}

.sponsors-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 2rem 0 0;
    list-style: none;
    margin: 0;
}

/* Sponsor Cards */
.sponsor-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.sponsor-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.sponsor-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Staggered entrance for carousel cards */
.sponsors-carousel .sponsor-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.sponsors-carousel .sponsor-card:nth-child(1) {
    animation-delay: 0.1s;
}

.sponsors-carousel .sponsor-card:nth-child(2) {
    animation-delay: 0.2s;
}

.sponsors-carousel .sponsor-card:nth-child(3) {
    animation-delay: 0.3s;
}

.sponsors-carousel .sponsor-card:nth-child(4) {
    animation-delay: 0.4s;
}

.sponsors-carousel .sponsor-card:nth-child(5) {
    animation-delay: 0.5s;
}

.sponsors-carousel .sponsor-card:nth-child(6) {
    animation-delay: 0.6s;
}

.sponsor-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 16px;
}

.sponsor-name {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.sponsor-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Navigation Buttons */
@media (max-width: 640px) {
    .carousel-wrapper,
    .sponsors-grid-section {
        width: calc(100% - 2rem);
        padding: 1.5rem;
    }

    .sponsors-carousel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sponsor-card {
        padding: 1.5rem;
    }
}

/* Future Sponsors Section */
.future-sponsors {
    text-align: center;
    color: var(--color-primary);
    font-size: 2rem;
    margin: 3rem 0 1rem;
}

.future-sponsors + p {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 3rem;
}

.future-sponsors + p a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--color-accent);
    transition: color 0.3s ease;
}

.future-sponsors + p a:hover {
    color: var(--color-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .fixtures-section h1 {
        font-size: 2rem;
    }

    .fixtures-content {
        padding: 1.5rem;
    }

    .fixtures-link-card {
        padding: 2rem;
    }

    .fixtures-link-card h3 {
        font-size: 1.5rem;
    }

    .fixtures-icon {
        width: 60px;
        height: 60px;
    }

    .fixtures-icon svg {
        width: 35px;
        height: 35px;
    }

    /* Sponsors - Tablet */
    .sponsors-page {
        font-size: 2rem;
    }

    .carousel-wrapper {
        padding: 1.5rem 3rem;
    }

    .sponsor-card {
        flex: 0 0 calc(50% - 1rem);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .team-card-flex {
        flex-direction: column;
        align-items: center;
    }

    .team-list {
        width: 100%;
    }

}

@media (max-width: 576px) {
    /* Sponsors - Mobile */
    .sponsors-page {
        font-size: 1.75rem;
        margin: 1.5rem 1rem;
    }

    .sponsors-intro,
    .future-sponsors + p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .sponsors-intro {
        margin-bottom: 2rem;
    }

    .carousel-wrapper {
        padding: 1rem 2.5rem;
    }

    .sponsors-carousel {
        padding: 1rem 0;
        gap: 1rem;
    }

    .sponsor-card {
        flex: 0 0 85%;
        padding: 1.5rem;
    }

    .sponsor-logo {
        width: 100px;
        height: 100px;
    }

    .sponsor-name {
        font-size: 1.3rem;
    }

    .sponsor-description {
        font-size: 0.9rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .future-sponsors {
        font-size: 1.5rem;
        padding: 0 1rem;
    }
}

/* Contact Page Styles */
.contact-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: calc(100% - 4rem);
    box-sizing: border-box;
}

.contact-container h1 {
    margin-bottom: 0.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.officials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.official-card {
    background-color: #f0f0f0;
    border-left: 5px solid var(--color-primary);
    border-radius: 16px;
    padding: 1.5rem;
}

.official-card h3 {
    color: var(--color-primary);
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.official-card p {
    margin: 0 0 1rem;
    color: #333;
}

.official-card p:last-child {
    margin-bottom: 0;
}

.officials-list {
    max-width: 800px;
    margin: 0 auto;
}

.official-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

.official-item dt {
    font-weight: 600;
    color: var(--color-primary);
}

.official-item dd {
    margin: 0;
    color: #555;
}

.map-container h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.contact-info strong {
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

.info {
    display: block;
    margin-bottom: 1.0rem;
}

.info-item {
    margin-bottom: 1rem;
}

.info-item strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    margin: 0;
    color: #666;
}

.map-container {
    display: flex;
    flex-direction: column;
}

.google-map {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
}

.map-container small {
    margin-top: 0.5rem;
    text-align: center;
}

.map-container small a {
    color: var(--color-primary);
    text-decoration: none;
}

.map-container small a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .google-map {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .footer-links ul a:hover {
        padding-left: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
        padding: 0.9rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-sponsor-logo {
        width: min(60vw, 220px);
        max-height: 160px;
        margin: 1.5rem auto 1rem;
    }
}

@media (max-width: 576px) {
    .main-sponsor-logo {
        width: min(80vw, 140px);
        max-height: 100px;
        margin: 1rem auto 0.5rem;
    }
}

/* Accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in-section {
        opacity: 1;
        transform: none;
    }

    .fade-in-section.visible {
        animation: none;
    }
}
