/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


/* Custom Cursor */
body {
    cursor: url('Images/cursor.svg'), auto;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgb(255, 255, 255);
    color: white;
    z-index: 1000;
}

/* Navbar Container */
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo left, lang right */
    padding: 0 1em;
    position: relative; /* For absolute children */
}

/* Logo */
.navbar-logo {
    flex-shrink: 0; /* Prevent shrinking */
    margin-left: 1em;
}

.navbar-logo img {
    height: 44px;
    cursor: pointer;
}

/* Français Link */
.navbar-lang {
    flex-shrink: 0;
    text-decoration: none;
    color: rgb(5, 6, 41);
    font-weight: bold;
    padding: 1.8em;
    transition: color 0.3s;
    white-space: nowrap; /* Prevent wrapping */
}

.navbar-lang:hover {
    color: rgba(0, 123, 255, 0.85);
}

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    justify-content: center; /* Center nav links between logo and lang */
}

.nav-links a {
    text-decoration: none;
    color: rgb(5, 6, 41);
    font-weight: bold;
    padding: 1.8em;
    transition: background-color 0.3s;
    display: block;
    text-align: center;
}

.nav-links a:hover {
    background-color: rgba(0, 123, 255, 0.85);
    color: white;
}

.nav-links a.is-active {
    background-color: rgba(0, 123, 255, 0.85);
    color: white;
}

.nav-links a {
  transition: color 0.2s ease;
}



/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.5em;
    background: none;
    border: none;
    cursor: pointer;

    position: absolute;
    left: 50%;       /* Horizontally center */
    top: 50%;        /* Vertically center */
    transform: translate(-50%, -50%);  /* Shift by half its own size */
}


.hamburger span {
    width: 25px;
    height: 3px;
    background-color: rgb(5, 6, 41);
    transition: transform 0.3s;
}

/* Responsive Styles for Small Screens */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide nav links initially */
        flex-direction: column;
        background-color: rgb(255, 255, 255);
        position: absolute;
        top: 100%; /* Below navbar */
        left: 0;
        width: 100%;
        padding: 1em 0;
        gap: 1em;
        box-shadow: 0px 4px 6px rgba(1, 0, 43, 0.1);
        z-index: 999;
    }

    .nav-links.show {
        display: flex;
    }

    .hamburger {
        display: flex; /* Show hamburger */
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}


/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* full viewport height */
    background-image: url('Images/bg.jpg'); /* make sure path is correct */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* THIS creates the parallax fixed background effect */
  }
  

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1200px; /* Current maximum size for large screens */
    height: auto; /* Maintain aspect ratio */
    width: 100%; /* Make it responsive */
    transition: max-width 0.3s ease, width 0.3s ease;
}

/* Responsive Logo Sizes */
@media (max-width: 1024px) {
    .hero-logo {
        max-width: 600px; /* Adjust size for medium screens */
    }
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 400px; /* Adjust size for small screens */
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 250px; /* Adjust size for very small screens */
    }
}


/* News Section */
.news-section {
    padding: 4em 1em;
    /*background-color: #f1f1f1;*/
    text-align: center;
    margin-top: -6em; /* pulls the entire section 80px up over the hero background */
    /*padding-bottom: 10em; /* optional, since we pulled it up */
}

.news-section h2 {
    font-size: 2.5em;
    margin-bottom: 2em;
    color: #00123c;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Container for news posts: flex for desktop */
.news-posts-container {
    display: flex;
    justify-content: center;
    gap: 2em; /* space between posts horizontally */
    max-width: 1200px;
    margin: 0 auto;
}

/* Each news post box */
.news-post {
    flex: 1; /* make posts equally sized */
    min-width: 250px; /* prevent too small */
    max-width: 350px; /* optional max width */
    padding: 4em;
    background-color: rgb(241, 241, 241);
    border-radius: 2em;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(1, 0, 43, 0.2);
}

.news-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #222;
    margin-bottom: 0.8em;
}

.news-content {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
}

 /* Allow news-section to show overflow */
.news-section {
    position: relative;   /* create a stacking context */
    z-index: 10;          /* bring it above the hero bg */
    overflow: visible;    /* allow children to overflow visibly */
}

/* Also check your parent elements - the body or the hero section */
.hero {
    overflow: visible; /* Make sure hero doesn't clip */
}


/* Responsive: stack vertically on small screens */
@media (max-width: 768px) {
    .news-section {
        margin-top: -6em;     /* soften desktop overlap on mobile */
        padding: 2.5em 1em;     /* reduce side padding */
    }

    .news-posts-container {
        flex-direction: column;
        gap: 1.5em;
        max-width: 520px;       /* better visual centering than 90% */
        margin: 0 auto;
    }

    .news-post {
        max-width: 100%;
        padding: 1.6em;         /* override desktop 4em padding */
        border-radius: 1.4em;
        text-align: left;       /* optional but usually nicer on mobile */
    }

    .news-title {
        font-size: 1.5em;
    }

    .news-content {
        font-size: 1em;
    }
}



/* Memberships Section */
.memberships-section {
  background-color: rgb(241, 241, 241); /* Background for readability */
  display: flex;
  min-height: 80vh;
  height: auto;
  overflow: hidden;
  align-items: stretch; /* key */
}


.membership-info {
    flex: 0 0 50%; /* Still 50% width */
    padding: 1.5em; /* Increased padding for better spacing */
    padding-left: 2em; /* Align with more spacing */
    background-color: rgb(241, 241, 241); /* Background for readability */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: flex-start; /* Align text to the left */
    text-align: left;
    max-width: 500px; /* Limit text width for better readability */
    margin: 0 auto; /* Center the content horizontally */
    gap: 1.0em; /* Add spacing between text elements */
}

.membership-info h2 {
    font-size: 2.5em;
    margin-bottom: 0;
    margin-top: 0em;
    color: #00123c;
    text-align: justify; /* Ensure justified alignment */
}

.membership-info p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.2em;
    margin: 0;
}

.membership-info ol {
    margin: 0;
    color: rgb(85, 85, 85);
}

.membership-info button {
    padding: 0.8em 1.5em;
    font-size: 1.1em;
    color: white;
    background-color: rgba(0, 123, 255, 0.85);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.membership-info button:hover {
    background-color: #0056b3;
}

.membership-image {
  flex: 0 0 50%;
  min-height: 80vh;     /* key fallback so it never collapses */
  height: auto;         /* don't rely on 100% */
  background: url('Images/1,2.jpg') center center / cover no-repeat;
}





/* Responsive Styles */
@media (max-width: 768px) {
    .memberships-section {
        flex-direction: column; /* Stack vertically */
        height: auto; /* Allow section height to adjust */
    }

    .membership-info {
        flex: none; /* Remove fixed width */
        width: 90%; /* Use 90% width for small screens */
        padding: 2em; /* Adjust padding for smaller screens */
        margin: 0 auto; /* Center content */
    }

    .membership-image {
        height: 300px; /* Set a fixed height for the image */
        width: 100%; /* Full width */
        flex: none; /* Remove fixed width */
    }
}




/* FAQ Section */
.FAQ-section {
    display: flex;
    width: 100%;
    min-height: 70vh; /* Full viewport height */
    height: auto;
    /*position: relative;*/
    overflow: hidden;
    background-color: rgb(241, 241, 241); /* Background for readability */
    align-items: stretch; /* key */
}

.FAQ-info {
    flex: 0 0 50%; /* Still 50% width */
    padding: 3em; /* Increased padding for better spacing */
    padding-left: 3em; /* Align with more spacing */
    background-color: rgb(241, 241, 241); /* Background for readability */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: flex-start; /* Align text to the left */
    text-align: left;
    max-width: 500px; /* Limit text width for better readability */
    margin: 0 auto; /* Center the content horizontally */
    gap: 1.5em; /* Add spacing between text elements */
}


.FAQ-info h2 {
    font-size: 2.5em;
    margin-bottom: 1em;
    color: #00123c;
}

.FAQ-info p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5em;
}

.FAQ-info button {
    padding: 0.8em 1.5em;
    font-size: 1.1em;
    color: white;
    background-color: rgba(0, 123, 255, 0.85);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.FAQ-info button:hover {
    background-color: #0056b3;
}

.FAQ-image {
    flex: 0 0 50%; /* Fix to 50% of width */
    background: url('Images/2.jpg') center center / cover no-repeat;
    background-repeat: no-repeat;
    background-position: center center; /* or center top */
    background-size: cover;             /* key: fills container in both directions */
    background-attachment: scroll;      /* key: avoid half-width fixed issues */
    min-height: 80vh;     /* key fallback so it never collapses */
    height: auto;         /* don't rely on 100% */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .FAQ-section {
        flex-direction: column; /* stack vertically */
        height: auto; /* auto height so content fits */
    }

    .FAQ-info {
        order: 1; /* info goes on top */
        width: 100%; /* full width */
        padding: 2em 3em; /* keep horizontal padding */
        max-width: none; /* remove max width limit on mobile */
        margin: 0 auto; /* center content horizontally */
    }

    .FAQ-image {
        order: 2; /* image goes below */
        width: 100%; /* full width */
        height: 300px; /* fixed height so image is visible */
        min-height: 300px; /* ensure minimum height */
        background-size: cover; /* keep image cover behavior */
    }
}






/* Events Section */
.events-section {
    padding: 4em 1em;
    text-align: center;
    background-color: #ffffff;
    margin-bottom: 8em;
}

.events-section h2 {
    font-size: 2.5em;
    margin-bottom: 2em;
    color: #00123c;
    font-weight: bold;
}

/* Container for all event cards */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 2em; /* Reduced gap between cards */
    max-width: 1100px; /* Adjusted for thinner layout */
    margin: 0 auto;
}

/* Individual event card */
.event-card {
    background-color: rgb(241, 241, 241);
    border-radius: 2em; /* Slightly smaller corners */
    padding: 1.5em; /* Reduced padding for thinner cards */
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    grid-gap: 1em;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}


.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(1, 0, 43, 0.2);
}

/* Event Info (Name and Place) */
.event-info {
    grid-column: 1 / 4;
    display: flex;
    justify-content: space-between;
    font-size: 1.1em;
    font-weight: bold;
    color: #00123c;
    gap: 1em;
}

/* Event Date */
.event-date {
    grid-column: 1 / 2;
    font-size: 1em;
    color: #555;
}

/* Register Button */
.event-action {
    grid-column: 3 / 4;
    text-align: right;
}

.event-title-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.event-admin-icons {
  display: flex;
  gap: 6px;
}

.event-admin-icon {
  font-size: 0.9rem;
  color: rgba(0, 18, 60, 0.55);
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.event-admin-icon:hover {
  opacity: 1;
}

.event-admin-icon--edit:hover {
  color: #0b9449;
}

.event-admin-icon--delete:hover {
  color: #dc3545;
}


.register-button {
    padding: 0.8em 1.5em; /* Reduced padding for a sleeker button */
    font-size: 1.1em;
    color: white;
    background-color: rgba(0, 123, 255, 0.85);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.register-button:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .event-card {
        grid-template-columns: 1fr; /* Stack content vertically on small screens */
        grid-template-rows: auto auto auto;
    }

    .event-info {
        grid-column: 1 / 2;
        flex-direction: column;
        align-items: flex-start;
    }

    .event-action {
        grid-column: 1 / 2;
        text-align: left;
    }
}





  .club-info-section {
    position: relative;
    width: 100%;
    overflow: hidden; /* prevent scrollbars */
  }
  
  .club-info-image {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .club-info-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
    width: 90%;
    max-width: 900px;
    color: white;
    font-weight: 900;
  }
  
  .club-button {
    background-color: rgba(255, 255, 255);
    border: none;
    color: rgb(10, 9, 47);
    padding: 0.8em 1.5em;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1em;
    white-space: nowrap;
    transition: background-color 0.3s ease;
  }
  
  .club-button:hover {
    background-color: rgba(0, 123, 255, 0.85);
    color: rgb(255, 255, 255);
  }
  
  .club-info-text {
    font-size: 2.5rem;
    text-align: center;
    margin: 0;
    flex-grow: 1;
  }
  




  /* About Us Section */
.about-us-section {
    padding: 4em 2em;
    background-color: #ffffff;
    color: #00123c;
    text-align: center;
  }
  
  .about-container {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
  }
  
  .about-us-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1em;
    color: #00123c;
  }
  
  .about-us-section h3 {
    font-size: 2rem;
    margin-top: 2em;
    color: #00123c;
  }
  
  .about-us-section p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
  }
  
  .about-us-section a {
    color: #00123c;
    text-decoration: none;
    font-weight: bold;
  }
  
  .about-us-section a:hover {
    text-decoration: underline;
  }
  



/* Photos Section */
.photos-section {
    width: 100%;
    overflow: hidden; /* Prevent scrollbars */
    margin-bottom: 4em;
    margin-top: 2em;
  }
  
  .photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 0; /* No gaps between images */
    width: 100%;
  }
  
  .photo-container {
    overflow: hidden; /* Ensure the image does not overflow its container */
    position: relative; /* Necessary for proper child behavior */
  }
  
  .photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps image aspect ratio intact */
    transition: transform 0.3s ease-in-out; /* Smooth hover effect */
  }
  
  /* Hover Effect: Zoom inside the container */
  .photo-container:hover img {
    transform: scale(1.1); /* Zoom inside the container */
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .photo-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 columns */
    }
  }
  
  @media (max-width: 480px) {
    .photo-grid {
      grid-template-columns: repeat(1, 1fr); /* 1 column */
    }
  }


  /* Darken hover effect */
.photo-container:hover img {
    transform: scale(1.1); /* Zoom inside the container */
    filter: brightness(0.8); /* Darken the image */
}

/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal img {
    max-width: 95%;
    max-height: 95%;
}

.modal.show {
    display: flex; /* Show modal when activated */
}

.modal-close {
    position: absolute;
    top: 1em;
    right: 1em;
    color: white;
    font-size: 2em;
    cursor: pointer;
}

  
  
/* Contact Us Section */
.contact-us-section {
    position: relative;
    width: 100%;
    height: 700px; /* Adjust height as needed */
    background-image: url('Images/4.jpg');
    background-attachment: fixed; /* Parallax effect */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  
  .contact-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    padding: 2em;
    border-radius: 2em;
    box-shadow: 0 8px 15px rgba(1, 0, 43, 0.2);
    width: 90%;
    max-width: 500px;
    text-align: center;
  }
  
  .contact-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00123c;
    margin-bottom: 1.5em;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }
  
  .contact-input,
  .contact-textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1em;
    box-sizing: border-box;
  }
  
  .contact-input:focus,
  .contact-textarea:focus {
    outline: none;
    border-color: rgba(0, 123, 255, 0.85);
  }
  
  .contact-submit {
    background-color: rgba(0, 123, 255, 0.85);
    color: white;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .contact-submit:hover {
    background-color: #0056b3;
  }
  

/* footer Section */
.site-footer {
    background-color: #003165; /* Deep blue to match your color scheme */
    color: white;
    text-align: center;
    padding: 2em 0; /* Increased padding for a larger footer */
    position: relative;
    width: 100%;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em; /* Increased gap for more spacing */
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em; /* Increased gap between links */
    justify-content: center;
    margin-top: 1em; /* Additional spacing above links */
  }
  
  .footer-link {
    color: white;
    text-decoration: none;
    font-size: 1em; /* Slightly larger font size */
    transition: color 0.3s ease;
  }
  
  .footer-link:hover {
    color: rgba(0, 123, 255, 0.85); /* Light blue on hover */
  }
  
  .footer-social {
    margin-top: 1em; /* Added space above social icons */
  }
  
  .social-link {
    display: inline-block;
  }
  
  .social-icon {
    width: 32px; /* Slightly larger icon size */
    height: 32px;
    transition: transform 0.3s ease;
  }
  
  .social-icon:hover {
    transform: scale(1.3); /* More pronounced hover effect */
  }
  


/* Calendar Section */
.calendar-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2em;
    background-color: #ffffff; /* Optional background for the section */
  }
  
  .calendar-title {
    font-size: 2.5em;
    color: #00123c;
    margin-bottom: 1em;
    text-align: center;
    font-weight: bold;
  }
  
  .calendar-box {
    width: 100%;
    max-width: 1500px; /* Set max size */
    aspect-ratio: 16 / 9; /* Maintain a responsive aspect ratio */
    overflow: hidden;
    border-radius: 10px; /* Optional: rounded corners */
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .calendar-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(1, 0, 43, 0.2);
  }
  
  .calendar-box iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
  
  


/* Container with fixed width (viewport width) and height */
.scrolling-banner {
    width: 100%;
    height: 100px; /* smaller height */
     /*overflow: hidden;*/
    position: relative;
  }
  
  .scroll-window {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
  }
  
  .scroll-content {
    display: flex;
    width: calc(2000px * 2); /* twice resized image width */
    animation: scroll-left 30s linear infinite;
    gap: 7em;
  }
  
  .scroll-content img {
    height: 60px; /* match container height */
    width: 2000px;  /* fixed width for smooth calc */
    user-select: none;
    pointer-events: none;
  }
  
  @keyframes scroll-left {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-2000px);
    }
  }
  
  
  /* Hero Section */
  .admin {
      position: relative;
      width: 100%;
      min-height: 100vh;
      background-image: url('Images/bg.jpg'); /* make sure path is correct */
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-attachment: fixed; /* THIS creates the parallax fixed background effect */
    }
    
    /* Admin login layout */
    .admin-login-wrapper {
        display: flex;
        justify-content: center; /* horizontal centering */
        align-items: flex-start;     /* vertical centering */
        height: 100%;
        padding-top: 150px;
    }
    
    /* Login card */
    .admin-login-form {
        background-color: rgba(255, 255, 255, 0.95);
        padding: 3em;
        border-radius: 2em;
        width: 100%;
        max-width: 420px;
        box-shadow: 0 10px 20px rgba(1, 0, 43, 0.25);
        text-align: left;
    }
    
    /* Title */
    .admin-login-form h2 {
        text-align: center;
        margin-bottom: 1.5em;
        color: #00123c;
        font-size: 2em;
    }
    
    /* Form groups */
    .form-group {
        display: flex;
        flex-direction: column;
        margin-bottom: 1.5em;
    }
    
    .form-group label {
        font-weight: bold;
        margin-bottom: 0.4em;
        color: #00123c;
    }
    
    .form-group input {
        padding: 0.7em 0.8em;
        font-size: 1em;
        border-radius: 10px;
        border: 1px solid #ccc;
    }
    
    .form-group input:focus {
        outline: none;
        border-color: rgba(0, 123, 255, 0.85);
    }
    
    /* Login button */
    .login-button {
        width: 100%;
        padding: 0.9em;
        font-size: 1.1em;
        font-weight: bold;
        color: white;
        background-color: rgba(0, 123, 255, 0.85);
        border: none;
        border-radius: 25px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    .login-button:hover {
        background-color: #0056b3;
    }
    
    .login-message {
      display: none;
      margin-bottom: 1.2em;
      padding: 0.9em 1em;
      border-radius: 12px;
      font-weight: bold;
      line-height: 1.3;
    }
    
    .login-message.is-info {
      display: block;
      background: rgba(0, 123, 255, 0.12);
      color: #00123c;
      border: 1px solid rgba(0, 123, 255, 0.35);
    }
    
    .login-message.is-error {
      display: block;
      background: rgba(220, 53, 69, 0.12);
      color: #7a0b16;
      border: 1px solid rgba(220, 53, 69, 0.35);
    }
    
    .login-message.is-success {
      display: block;
      background: rgba(11, 148, 73, 0.12);
      color: #0B9449;
      border: 1px solid rgba(11, 148, 73, 0.35);
    }
/* Shell centers both login + admin panel */
    .admin-shell {
      height: 100%;
    }
    
    /* Admin panel wrapper uses same centering as login */
    .admin-panel-wrapper {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      height: 100%;
      padding: 2em;
      padding-top: 150px;
      box-sizing: border-box;
    }
    
    /* Admin panel card (wider than login card) */
    .admin-panel-card {
      background-color: rgba(255, 255, 255, 0.95);
      padding: 2.5em;
      border-radius: 2em;
      width: 100%;
      max-width: 950px;
      box-shadow: 0 10px 20px rgba(1, 0, 43, 0.25);
      text-align: left;
    }
    
    .admin-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1em;
      margin-bottom: 1.2em;
    }
    
    .admin-tabs {
      display: flex;
      gap: 0.6em;
      flex-wrap: wrap;
    }
    
    .admin-tab {
      border: 1px solid rgba(0, 123, 255, 0.35);
      background: rgba(0, 123, 255, 0.10);
      color: #00123c;
      font-weight: bold;
      padding: 0.7em 1em;
      border-radius: 999px;
      cursor: pointer;
    }
    
    .admin-tab.is-active {
      background: rgba(0, 123, 255, 0.85);
      color: white;
      border-color: rgba(0, 123, 255, 0.85);
    }
    
    .admin-logout {
      border: none;
      background: rgba(220, 53, 69, 0.90);
      color: white;
      font-weight: bold;
      padding: 0.7em 1.1em;
      border-radius: 999px;
      cursor: pointer;
    }
    
    .admin-logout:hover {
      background: rgba(220, 53, 69, 1);
    }
    
    .admin-panel h3 {
      margin-top: 0;
      color: #00123c;
    }

/* ===== Admin: Events Form ===== */
    /* ===== Admin Form Layout (structured rows) ===== */
    .admin-form {
      margin-top: 1em;
    }
    
    .admin-row {
      display: grid;
      gap: 1.2em;
      margin-bottom: 1.2em;
    }
    
    /* Line types */
    .admin-row--one {
      grid-template-columns: 1fr;
    }
    
    .admin-row--two {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .admin-row--three {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    /* Ensure fields never overflow grid cells */
    .admin-field {
      min-width: 0;
    }
    
    .admin-field label {
      display: block;
      font-weight: 700;
      margin-bottom: 0.45em;
      color: #00123c;
    }
    
    .admin-field input,
    .admin-field textarea,
    .admin-field select {
      width: 100%;
      padding: 0.75em 0.9em;
      border-radius: 12px;
      border: 1px solid #cfcfd6;
      font-size: 1em;
      background: #fff;
      box-sizing: border-box;
    }
    
    .admin-field textarea {
      resize: vertical;
    }
    
    .admin-field input:focus,
    .admin-field textarea:focus,
    .admin-field select:focus {
      outline: none;
      border-color: rgba(0, 123, 255, 0.85);
      box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    }
    
    /* Upload button sits nicely under file input without weird grid nesting */
    .admin-btn--inline {
      margin-top: 0.7em;
    }
    
    .admin-help {
      margin-top: 0.6em;
      font-size: 0.95em;
      color: #0b9449;
    }
    
    /* Categories aligned cleanly */
    .admin-categories {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0.65em 1.2em;
      margin-top: 0.4em;
    }
    
    .admin-check {
      display: inline-flex;
      align-items: center;
      gap: 0.55em;
      font-weight: 600;
      color: #00123c;
      line-height: 1.2;
      white-space: nowrap;
    }
    
    .admin-check input[type="checkbox"] {
      width: 18px;
      height: 18px;
      margin: 0;
    }
    
    /* Responsive */
    @media (max-width: 1000px) {
      .admin-row--three {
        grid-template-columns: 1fr;
      }
      .admin-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
    
    @media (max-width: 700px) {
      .admin-row--two {
        grid-template-columns: 1fr;
      }
    }

/* Admin form buttons (Save / Clear / Delete) */
    .admin-actions {
      display: flex;
      gap: 0.8em;
      flex-wrap: wrap;
      align-items: center;
      margin-top: 1.2em;
    }
    
    .admin-btn {
      padding: 0.8em 1.5em;
      font-size: 1.1em;
      font-weight: bold;
    
      border-radius: 25px;
      cursor: pointer;
    
      /* Default = soft/secondary button */
      color: #00123c;
      background: rgba(0, 123, 255, 0.10);
      border: 1px solid rgba(0, 123, 255, 0.35);
    
      transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    }
    
    .admin-btn:hover {
      background: rgba(0, 123, 255, 0.18);
    }
    
    .admin-btn--primary {
      color: white;
      background-color: rgba(0, 123, 255, 0.85);
      border: none;
    }
    
    .admin-btn--primary:hover {
      background-color: #0056b3;
    }
    
    .admin-btn--danger {
      color: white;
      background: rgba(220, 53, 69, 0.90);
      border: none;
    }
    
    .admin-btn--danger:hover {
      background: rgba(220, 53, 69, 1);
    }
    
    /* Nice mobile behavior */
    @media (max-width: 520px) {
      .admin-actions {
        flex-direction: column;
        align-items: stretch;
      }
      .admin-btn {
        width: 100%;
      }
    }

/* Upcoming Events (Homepage) - clean list layout */
  .event-main {
      text-align: left;
  }


    .events-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
      max-width: 1100px;
      margin: 0 auto;
    }
    
    .event-item {
      display: grid;
      grid-template-columns: 85px 1fr auto;
      gap: 16px;
      align-items: center;
    
      background: rgb(241, 241, 241); /* NEW */
      border: 1px solid rgba(0,0,0,0.08);
      border-radius: 16px;
      padding: 16px 18px;
    
      /*box-shadow: 0px 6px 14px rgba(0,0,0,0.15);*/
    }

    
    .event-datebadge {
      width: 85px;
      height: 85px;
      border-radius: 14px;
    
      background: #0054da; /* NEW */
      border: none;
    
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: white; /* NEW */
    }
    
    .event-month {
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      line-height: 1.1;
    }
    
    .event-day {
      font-size: 1.4rem;
      font-weight: 800;
      line-height: 1.1;
    }

    .event-datebadge--range .event-month,
    .event-datebadge--range .event-day {
      font-size: 1rem;      /* same size */
      font-weight: 700;
      letter-spacing: normal;
      text-transform: none;
    }

    .event-badgeline {
      color: #fff;
      font-weight: 800;
      line-height: 1.0;
      text-align: center;
    }
    
    .event-badgeline--1 {
      font-size: 1.1rem;      /* "JAN 30" */
    }
    
    .event-badgeline--2 {
      font-size: 1.5rem;      /* "-" */
      font-weight: 700;
      opacity: 1;
      margin: 2px 0;
    }
    
    .event-badgeline--3 {
      font-size: 1.1rem;      /* "FEB 1" */
    }
    
    .event-title {
      margin: 0;
      font-size: 1.25rem;
      font-weight: 800;
      color: #00123c;
      text-align: left;
    }
    
    .event-meta {
      margin-top: 6px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    
    .event-chip {
      display: inline-block;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 0.95rem;
      background: white;
    }
    
    .event-submeta {
      margin-top: 8px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px 16px;
    }
    
    .event-subline {
      font-size: 0.95rem;
      color: rgba(0,0,0,0.7);
    }
    
    .event-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: flex-end;
      align-items: center;
    }
    
    .event-btn {
      padding: 10px 14px;
      border-radius: 25px;
      font-weight: 800;
      font-size: 1rem;
      text-decoration: none;
    
      color: #00123c;
      background: rgba(0, 123, 255, 0.10);
      border: 1px solid rgba(0, 123, 255, 0.35);
    
      transition: background-color 0.25s ease, color 0.25s ease;
    }
    
    .event-btn:hover {
      background: rgba(0, 123, 255, 0.18);
    }
    
    .event-btn--primary {
      color: #fff;
      background: rgba(0, 123, 255, 0.85);
      border: none;
    }
    
    .event-btn--primary:hover {
      background: #0056b3;
    }
    
    .event-muted {
      font-size: 0.95rem;
      color: rgba(0,0,0,0.55);
      font-weight: 600;
    }
    
    /* Responsive */
    @media (max-width: 820px) {
      .event-item {
        grid-template-columns: 72px 1fr;
        grid-template-rows: auto auto;
      }
      .event-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
      }
    }

/* Membership text readability improvements */
    .membership-info h2 {
      text-align: left;         /* override current justify */
      margin-bottom: 0.2em;
    }
    
    .membership-info p {
      line-height: 1.6;         /* override current 1.2em */
    }
    
    .membership-lead {
      margin-top: 0.6em;
      margin-bottom: 0.4em;
    }
    
    .membership-list {
      margin: 0.2em 0 0.9em 1.1em;
      padding: 0;
    }
    
    .membership-list li {
      margin-bottom: 0.5em;
      line-height: 1.6;
    }
    
    .membership-note {
      display: block;
      margin-top: 0.25em;
      font-size: 0.95em;
      color: rgba(0,0,0,0.65);
    }
    
    .membership-link {
      font-weight: 700;
      text-decoration: underline;
    }
    
    .membership-actions {
      margin-top: 0.9em;
      display: flex;
      flex-direction: column;
      gap: 0.6em;
      width: 100%;
    }
    
    /* Button as link */
    .membership-btn {
      display: inline-block;
      padding: 0.8em 1.5em;
      font-size: 1.1em;
      font-weight: 800;
      color: white;
      background-color: rgba(0, 123, 255, 0.85);
      border-radius: 25px;
      text-decoration: none;
      transition: background-color 0.3s ease;
      align-self: flex-start; /* keep left aligned */
    }
    
    .membership-btn:hover {
      background-color: #0056b3;
    }
    
    .membership-hint {
      margin: 0;
      font-size: 1.05em;
      color: rgba(0,0,0,0.75);
    }

/* Rankings Section */
    .rankings-section {
      padding: 4em 1em;
      background-color: #ffffff;
      text-align: center;
    }
    
    .rankings-section h2 {
      font-size: 2.5em;
      margin-bottom: 1.5em;
      color: #00123c;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 2px;
    }
    
    .rankings-list {
      list-style: none;
      padding: 0;
      margin: 0;
      max-width: 600px;
    
      display: flex;
      flex-direction: column;
      gap: 1.2em;
    }
    
    .rankings-list li a {
      display: block;
      padding: 1.2em 1.5em;
    
      background-color: white;
      border-radius: 20px;
    
      font-size: 1.2em;
      font-weight: bold;
      color: #00123c;
      text-decoration: none;
    
      transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    }
    
    .rankings-list li a:hover {
      background-color: rgba(0, 123, 255, 0.85);
      color: #ffffff;
      transform: translateY(-4px);
      box-shadow: 0 8px 12px rgba(1, 0, 43, 0.2);
    }
    
    /* Mobile tweaks */
    @media (max-width: 480px) {
      .rankings-list li a {
        font-size: 1.05em;
        padding: 1em 1.2em;
      }
    }

/* =========================
       Mobile hero improvements
       ========================= */
    
    /* Make box-sizing consistent everywhere (fixes weird centering/width issues) */
    *, *::before, *::after { box-sizing: border-box; }
    
    /* Fixed navbar: prevent horizontal overflow on small screens */
    html, body { overflow-x: hidden; }
    
    @media (max-width: 768px) {
      .hero {
        /* Mobile browsers don't love fixed backgrounds */
        background-attachment: scroll;
    
        /* Reduce the "massive cropped background" feeling */
        height: 72vh;              /* was 100vh */
        min-height: 520px;         /* keeps it tall enough */
        
        /* Show a nicer part of the photo */
        background-position: center top;
      }
    
      /* If you still feel it's too cropped, try this instead:
         background-position: center 20%;
      */
    
      .hero-logo {
        width: min(82vw, 360px);
        max-width: none;           /* override your max-width chain */
      }
    }
    
    @media (max-width: 480px) {
      .hero {
        height: 65vh;
        min-height: 460px;
        background-position: center top;
      }
    
      .hero-logo {
        width: min(86vw, 300px);
      }
    }
