:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --text: #333;
    --white: #ffffff;
    --gray: #f4f7f6;
    --header-height: 70px;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

.site-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Force transparent header when needed (keeps header fixed but transparent over hero) */
.site-header.transparent {
    background: transparent !important;
    box-shadow: none !important;
}

/* White text for transparent header */
.site-header.transparent .nav-link {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.site-header.transparent .nav-link:hover {
    color: var(--accent) !important;
}

.site-header.transparent .nav-link.active {
    color: var(--accent) !important;
}

.site-header.transparent .header-logo a {
    color: #ffffff !important;
}

/* Mobile toggle button - white on transparent */
.site-header.transparent .mobile-menu-toggle span {
    background: #ffffff;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Dropdown menus on transparent header */
.site-header.transparent .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.site-header.transparent .dropdown-menu a {
    color: var(--text);
    text-shadow: none;
}

/* Search form on transparent header */
.site-header.transparent .search-form {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.site-header.transparent .search-input {
    color: #ffffff;
}

.site-header.transparent .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* ========================================
   LOGO STYLES
======================================== */
.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: auto;
    max-height: 50px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.header-logo a:hover .site-logo {
    opacity: 0.8;
}

/* ========================================
   MOBILE MENU TOGGLE BUTTON
======================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ========================================
   LANGUAGE SWITCHER
======================================== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
    z-index: 100;
}

.lang-btn {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.site-header.transparent .lang-btn {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.lang-btn:hover {
    background-color: var(--accent);
    color: white;
}

.lang-btn.active {
    background-color: var(--accent);
    color: white;
}

.lang-separator {
    color: var(--text);
    opacity: 0.5;
    margin: 0 5px;
}

.site-header.transparent .lang-separator {
    color: #ffffff;
    opacity: 0.7;
}

/* ========================================
   DESKTOP NAVIGATION
======================================== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    margin-right: auto;
}


.nav-menu {
    display: flex;
    list-style: none;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
}

/* ========================================
   DROPDOWN MENUS
======================================== */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    list-style: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    border-top: 3px solid var(--accent);
}

/* Show dropdown on hover */
.has-dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Nested sub-menu - opens to the right, aligned to the hovered item */
.dropdown-menu .has-dropdown {
    position: relative;
}

.dropdown-menu .has-dropdown>.dropdown-menu {
    top: -3px;
    left: 100%;
    margin-left: 2px;
    transform: translateX(10px);
    border-top: 3px solid var(--accent);
    border-left: none;
}

.dropdown-menu .has-dropdown:hover>.dropdown-menu {
    transform: translateX(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--gray);
    color: var(--accent);
}

/* Dropdown arrows */
.arrow::after {
    content: '▾';
    font-size: 10px;
    margin-left: 4px;
}

.arrow-right::after {
    content: '▸';
    float: right;
}

/* ========================================
   SEARCH BOX
======================================== */
.search-container {
    margin-left: 10px;
}

.search-form {
    display: flex;
    background: #eee;
    padding: 5px 12px;
    border-radius: 20px;
    align-items: center;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 120px;
    font-size: 0.85rem;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
======================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .language-switcher {
        margin-right: 15px;
        gap: 5px;
    }

    .lang-btn {
        font-size: 0.75rem;
        padding: 3px 6px;
    }

    .lang-separator {
        margin: 0 3px;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-link {
        width: 100%;
        padding: 15px 10px;
        justify-content: space-between;
    }

    /* Mobile dropdown behavior */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--accent);
        margin-left: 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-dropdown.active>.dropdown-menu {
        max-height: 1000px;
    }

    /* Nested dropdowns on mobile */
    .dropdown-menu .has-dropdown>.dropdown-menu {
        position: static;
        margin-left: 15px;
        border-left: 3px solid var(--accent);
        border-top: none;
    }

    .dropdown-menu a {
        padding: 10px 15px;
    }

    /* Search moves to mobile menu */
    .search-container {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }

    .search-form {
        width: 100%;
    }

    .search-input {
        width: 100%;
        flex: 1;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Change arrows for mobile */
    .arrow::after {
        content: '▾';
        float: right;
    }

    .has-dropdown.active>a .arrow::after {
        content: '▴';
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .nav-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .search-input {
        width: 100px;
    }
}

/* ========================================
   CONTACT SECTION STYLES
======================================== */
.contact-content-overlay {
    position: absolute;
    top: calc(var(--header-height) + 20px);
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    z-index: 3;
}

.contact-section {
    padding: 40px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-form,
.contact-info {
    padding: 30px;
    background: var(--gray);
    border-radius: 8px;
}

.contact-form h2,
.contact-info h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.btn {
    background: var(--accent);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

.info-item {
    margin-bottom: 25px;
}

.info-item h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.info-item p {
    color: var(--text);
    line-height: 1.6;
}

.info-item a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #2980b9;
}

@media (max-width: 768px) {
    .contact-content-overlay {
        grid-template-columns: 1fr;
        gap: 20px;
        bottom: 20px;
        width: 95%;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form,
    .contact-info {
        padding: 20px;
    }

    .contact-section {
        padding: 20px 0;
    }
}

/* ========================================
   PAGE BANNER (Full Screen Hero)
======================================== */
.page-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Full screen height to show whole image */
    background-image: url('uploads/archery.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: flex-start;
    /* Align title to top */
    justify-content: center;
    padding-top: 150px;
    /* Space for fixed header */
    margin-top: 0;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Slightly lighter overlay */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.banner-title {
    color: #ffffff;
    font-size: 3.5rem;
    /* Larger title */
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* ========================================
   MAIN CONTENT SECTION (Floating Overlay)
======================================== */
.main-content {
    background: transparent;
    /* Transparent to show image */
    padding-bottom: 60px;
    min-height: auto;
}

/* Calendar/Rank/result List Styles (Modern Grid) */
.calendar-list {
    max-width: 1200px;
    margin: -50vh auto 40px;
    /* Pull up into banner area */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.calendar-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-item:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.calendar-link {
    display: flex;
    align-items: center;
    padding: 25px;
    font-size: 1.1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    height: 100%;
    position: relative;
    transition: color 0.3s ease;
}

.calendar-link:hover {
    color: var(--accent);
    padding-left: 25px;
    /* Reset padding shift from old style */
}

.calendar-link::before {
    content: '📄';
    /* PDF/Document Document icon */
    margin-right: 15px;
    font-size: 1.8rem;
    background: var(--gray);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.calendar-link:hover::before {
    background: var(--accent);
    color: #ffffff;
}


@media (max-width: 768px) {
    .page-banner {
        height: 60vh;
        /* Smaller height on mobile */
        padding-top: 100px;
        background-attachment: scroll;
        /* Fix jitter on mobile */
        align-items: center;
        /* Center vertically on mobile */
    }

    .banner-title {
        font-size: 2rem;
        padding: 0 10px;
    }

    .calendar-list {
        margin-top: -80px;
        /* Reduced negative margin */
        padding: 0 15px;
        grid-template-columns: 1fr;
        /* Single column */
    }

    .contact-content-overlay {
        grid-template-columns: 1fr;
        gap: 20px;
        bottom: 20px;
        width: 95%;
    }
}