/* ================================
   GLOBAL STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-margin-top: 60px; /* For sticky header */
}

body {
    font-family: "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2, h3 {
    font-weight: 700;
    color: #1b4332; /* Dark green sports tone */
}

p, li {
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================================
   HEADER
   ================================ */
.site-header {
    background: #1b4332; /* Dark green */
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.site-header .logo h1 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.logo {
    display: flex;
    align-items: center; /* vertically centers the text with the image */
    gap: 10px;           /* space between logo and text */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: #95d5b2; /* Soft green */
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: white;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background-image: url("data:image/webp;base64,UklGRr4GAABXRUJQVlA4ILIGAADQGwCdASpkAC4APo04k0elI6GhMllccKARiWQAnTLL7091iJvm/wA0vbmPyeh3b488dpuHRZ+tD/pKAXzL+xI7XcpqI90eJnfn8dlDpcx9s777Ug8G63bQD8YTQx0yl6EZtzp993zrVz17FIT/65/RYzOTBaAy6z51cqJQUCv+waX9rtM4iHLlMWI45/IIYU5I0wkUsx2CGtPn4ZkfkBQrtlvDMRmeBtTfqsBtqvJakh65cLPgAubwqiXU8/QyW2f0C4qHzX9+9OvlOnGvD47+46lNsQ3DIaox23yfcbc6jDYy9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UR7gH4uTq96O5rBEcTLr6mMdinDM/QWjox+NLUqXyNYjqH3Nijky34uueVpBi35KilaSGgGRWAZq4cYg/p/SdrUYATSV2kyMk5qMODj6Ws7tuttOr43b1BA36AZBquJtcJi2ZwVfL2PW9ugohBttwFk4Jpn4RsJ9zBbVoViRCuQzNQ45glMU4Svpudx4X8ezRmhJ2EWCRfNEMLI7UQpW4BPNh1LKGGRuzLOJTCnny7XRD/FHb2jAm96ppTITPFYvO41HNP5z4k2UJyF78I/0vZSlsAzfbSRBmG9P55tltR+rz55b7jt/41mud/2f92n6YWpNS+B535w3aPKEAfHx1kFfaaQmoWJJNwj/bmBcgQf7IcOO/yijNbBxYyLTUz+doWUvmj2o1CtEn1SXc2WQzzns1JMkzs81gJL9IGj58cl/ra1zPPB4c8Z4vUEA6QWEBaEwm8ByEP3aid75UnuDn8/bbMI2/J2k6yol4U3zXLkc0kZ+i7pjXfjeDwFkBUXddOQQuSguv+j+P7ML4f2HgRZ7AM7ECqd3Nvdmhr8C9pxFqq5L0d3cUt/vUxQ5xsQ8O1gtBxF/nuGDIXJydMhK2J+wkwzgfqdIEyXFdbFs6ih+YYDhslPE2wS/GXP1ZouV0b+6GqunThB5W8QHm4B/p52/0/8UXaRRU0BuJ1n+QWHL/KB72G04uQ2+R22JHkvyMa/gClxrk2vbdNYens/bXrOr/BdvCu/InJRUM2w42EmYcah9JzBr0Bi4nTg0Scs4FmXRH6rSXfs+Yk5cW933Db0Syw+I9Urq6WfxgCjuDSbXu+dcDEklwckgG4EHnguDjHu1FcKva56gWXWFZlsObH8ug4nOSiLx8lkGRj0LlzZCyjNx+ZKgGlNf2uilBsy4YwAAA");
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  transition: filter 0.4s ease, background-image 0.4s ease;
  z-index: 0;
}

.overlay {
  position: relative;
  z-index: 1;

  /* start in center */
  transform: translateY(0);
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 1;

  background: rgba(255,255,255,0.15);
  padding: 2rem;
  text-align: center;
  color: #fff;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* class to trigger the downward movement after image load */
.overlay.loaded {
  transform: translateY(200px); /* moves overlay down */
  opacity: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #2d6a4f;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta:hover {
    background: #40916c;
}

/* ================================
   SECTION LAYOUTS
   ================================ */
section {
    padding: 3rem 5%;
    background-color: #fff;
    border-radius: 10px;
    margin: 0.25rem;
}

section:nth-of-type(even) {
    background-color: #f4f4f4;
}

h2 {
    margin-bottom: 1rem;
    border-left: 5px solid #2d6a4f;
    padding-left: 0.5rem;
}

/* ================================
   ABOUT & VENUE
   ================================ */
.about iframe {
    width: 100%;
    height: 300px;
    border: none;
    margin-top: 1rem;
    border-radius: 8px;
}

/* ================================
   MEMBERSHIP SECTION
   ================================ */
.membership {
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);

    /* Center contents */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.membership ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.membership li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.7rem;
    color: #333;
}

/* We remove absolute icon so it doesn't break centering: */
.membership li::before {
    content: "★";
    margin-right: 0.5rem;
    color: #2d6a4f;
}

/* OPTION: inline-icon technique */
.membership li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* download button stays centered because of text-align:center above */
.membership .download-link {
    margin: 1rem 0;
    padding: 0.75rem 1.5rem;
    background: #2d6a4f;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* ================================
   EVENTS LIST
   ================================ */
.events ul {
    list-style: none;
}

.events li {
    background: white;
    border-left: 5px solid #2d6a4f;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* ================================
   TIMETABLE
   ================================ */
.timetable table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.timetable th, .timetable td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: center;
}

.timetable th {
    background: #2d6a4f;
    color: white;
}

.timetable tr:nth-child(even) {
    background: #f8f8f8;
}

/* ================================
   TEAMS GALLERY
   ================================ */
.gallery .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* ================================
   STAFF CARDS
   ================================ */
.staff {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.staff-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.staff-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

/* ================================
   ACHIEVEMENTS
   ================================ */
.achievements ul {
    list-style: none;
}

.achievements li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* ================================
   RULES LIST (Glass Card Style)
   ================================ */
.rules-list {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.rules-list ul {
    list-style: none; /* remove default bullets */
    padding-left: 0;
}

.rules-list li {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.25);
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rules-list li:last-child {
    margin-bottom: 0;
}

.rules-list li::before {
    content: "✔"; /* checkmark icon */
    color: #2d6a4f; /* club color */
    margin-right: 0.75rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.rules-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* ================================
   SPONSORS
   ================================ */
.sponsor-logos {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.sponsor-logos img {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.sponsor-logos img:hover {
    filter: grayscale(0%);
}


/* ================================
   FOOTER
   ================================ */
footer {
    background: #1b4332;
    color: white;
    text-align: center;
    padding: 2rem 5%;
    font-size: 0.9rem;
    border-top: 3px solid #2d6a4f;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #95d5b2;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* ================================
   MOBILE NAVIGATION
   ================================ */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #1b4332;
        width: 200px;
        padding: 1rem;
        display: none;
        box-shadow: -2px 2px 5px rgba(0,0,0,0.3);
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav ul li {
        margin-bottom: 0.75rem;
    }

    .main-nav ul li:last-child {
        margin-bottom: 0;
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}
