/* =====================================================
   ROTORUA PISTOL CLUB - MAIN STYLESHEET
   =====================================================
   
   Table of Contents:
   1. CSS Variables & Design Tokens
   2. Base Typography & Layout  
   3. Utility Classes & Components
   4. Link Styles
   5. Navigation
   6. Hero Section
   7. Content Sections
   8. Forms & Contact
   9. Footer
   10. Responsive Design
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ===================================================== */

:root {
    /* Color Palette */
    --primary-color: #1a1a1a;          /* Dark background */
    --secondary-color: #d0d0d0;        /* Light gray */
    --accent-color: #d4af37;           /* Gold accent */
    --text-color: #f5f5f5;             /* Light text */
    --text-color-dark: #333;           /* Dark text */
    --text-color-muted: #b0b0b0;       /* Muted text */
    
    /* Grays */
    --light-gray: #e8e8e8;
    --dark-gray: #404040;
    --darker-gray: #323232;
    --navbar-bg: #252525; /* Darker background specifically for navbar */
    --tile-color: #323232;
    --white: #ffffff;
    
    /* Status Colors */
    --success-bg: #d4edda;
    --success-text: #155724;
    --success-border: #c3e6cb;
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --error-border: #f5c6cb;
    --card-bg: var(--primary-color);
    --border-color: var(--dark-gray);
    --secondary-text: var(--text-color-muted);
    --accent-hover: #c19b2e;
    --accent-color-dim: rgba(212, 175, 55, 0.3);    /* Dim gold for subtle elements */
    
    /* Effects */
    --shadow: 0 2px 10px rgba(0,0,0,0.3);
    --shadow-light: 0 2px 10px rgba(255,255,255,0.1);
    --shadow-accent: 0 2px 8px var(--accent-color-dim);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 10px var(--accent-color-dim);
    --modal-overlay: rgba(0, 0, 0, 0.5);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Responsive breakpoints (for documentation) */
    --breakpoint-tablet: 768px;
    --breakpoint-mobile: 480px;
    --breakpoint-small: 360px;
    
    /* Common Gradients */
    --gradient-header: linear-gradient(135deg, var(--darker-gray) 0%, var(--primary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #c19b2e);
    --gradient-accent-reverse: linear-gradient(135deg, #c19b2e, var(--accent-color));
}

/* =====================================================
   2. BASE TYPOGRAPHY & LAYOUT
   ===================================================== */

/* Universal Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================================
   SHARED UTILITY CLASSES (from shared.css)
   ===================================================== */

/* Form Group Base Styles */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--darker-gray);
    border: 2px solid var(--dark-gray);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Prevent iOS zoom on input focus */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-help {
    color: var(--text-color-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Form Row Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dark-gray);
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--accent-color); }
.text-muted { color: var(--text-color-muted); }
.text-light { color: var(--text-color); }

/* Container Base */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation Container */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    box-sizing: border-box;
}

/* Button Base Styles */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: #b8860b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: none;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Facebook Button - Clean No Background */
.btn-facebook {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    text-align: center;
    background: transparent;
    color: var(--text-color);
}

.btn-facebook:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* =====================================================
   3. UTILITY CLASSES & COMPONENTS
   ===================================================== */

/* Button Variants */
.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-3px);
}

/* Spacing Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Display Utilities */
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

/* Flex Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* Background Utilities */
.bg-primary { background: var(--primary-color); }
.bg-dark { background: var(--dark-gray); }
.bg-darker { background: var(--darker-gray); }
.bg-accent { background: var(--accent-color); }

/* Border Utilities */
.border { border: 1px solid var(--dark-gray); }
.border-accent { border: 1px solid var(--accent-color); }
.rounded { border-radius: var(--border-radius); }

/* Gradient Border Utilities */
.border-bottom-gradient {
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent) 1;
}

.border-bottom-gradient-2px {
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--accent-color), transparent) 1;
}

.border-top-gradient-2px {
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--accent-color), transparent) 1;
}

/* Dim variant for subtler decorative elements */
.border-bottom-gradient-dim {
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--accent-color-dim), transparent) 1;
}

/* Grid Layout Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Card Component Base */
.card {
    background: var(--darker-gray);
    border: 1px solid var(--dark-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
    border-color: var(--accent-color);
}

/* Loading Spinner */
.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Fade In Animation and Class */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Section Separators */
.section-separator {
    height: 5px;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.01) 0%, 
        rgba(0,0,0,0.05) 20%, 
        rgba(0,0,0,0.15) 35%, 
        rgba(0,0,0,0.35) 45%, 
        rgba(0,0,0,0.8) 50%, 
        rgba(0,0,0,0.35) 55%, 
        rgba(0,0,0,0.15) 65%, 
        rgba(0,0,0,0.05) 80%, 
        rgba(0,0,0,0.01) 100%);
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Page Section Headers - Full-width headers with gradient background */
.section-header {
    background: var(--gradient-header);
    color: var(--text-color);
    padding: 120px 0 60px;
    text-align: center;
}

.section-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-color);
}

.section-header h1 i {
    margin-right: 15px;
    color: var(--accent-color);
}

.section-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--secondary-color);
}

/* Prevent horizontal overflow on all elements */
*, *::before, *::after {
    max-width: 100%;
    box-sizing: border-box;
}

/* Remove all focus outlines globally to prevent browser default yellow borders */
*:focus {
    outline: none;
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for 70px navbar + 10px buffer */
}

/* Body Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Additional mobile-specific body styles */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
}

/* =====================================================
   4. LINK STYLES
   ===================================================== */

/* Link Styles */
a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* Contact Links */
.contact-item a {
    color: var(--text-color-muted);
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.3);
    text-underline-offset: 3px;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-color);
    text-decoration-color: var(--accent-color);
}

/* =====================================================
   5. NAVIGATION
   ===================================================== */

/* Main Navigation Bar */
.navbar {
    background: var(--navbar-bg);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--dark-gray);
    padding: 0 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 70px;
    box-sizing: border-box;
    overflow: visible; /* Allow logo to overflow navbar bounds */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    position: relative;
}

/* For logo-only navigation (member pages) */
.nav-container.logo-only {
    justify-content: flex-start;
}

/* Logo Section */
.nav-logo {
    display: flex;
    align-items: flex-start; /* Align to top instead of center */
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    height: 100%;
    flex-shrink: 0;
    overflow: visible; /* Allow logo to overflow navbar bounds */
    padding-top: 0; /* Remove padding to let margin-top control positioning */
}

/* Logo Link Styling */
.nav-logo a {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    height: 100%;
    padding: 0;
}

.nav-logo a:hover {
    transform: scale(1.05);
    color: inherit;
}

.nav-logo i {
    margin-right: 12px;
    color: var(--secondary-color);
}

.logo-img {
    height: 110px; /* Further increased from 95px */
    width: auto;
    margin-right: 18px;
    filter: brightness(1.2);
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    position: relative;
    z-index: 10; /* Ensure logo appears above other elements */
    margin-top: 3px; /* 3px from top of navbar (few mm) */
    margin-bottom: -43px; /* Allow larger overflow downward */
}

/* Remove focus outline from logo */
.nav-logo a:focus {
    outline: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
    position: relative;
}

/* Dynamic Navigation Underline */
.nav-underline {
    position: absolute;
    bottom: -5px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(0);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.nav-underline.active {
    opacity: 1;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 6px 10px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    letter-spacing: 0.025em;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
    text-shadow: 0 1px 3px rgba(212, 175, 55, 0.3);
}

.nav-link.active {
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure calendar navigation remains highlighted on calendar page */
.nav-link[href*="calendar"].active {
    color: var(--accent-color) !important;
    background: rgba(212, 175, 55, 0.15) !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15) !important;
}

.nav-link.active::before {
    opacity: 0;
}

.nav-link i {
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-right: 4px;
    opacity: 0.8;
}

.nav-link:hover i,
.nav-link.active i {
    opacity: 1;
    transform: scale(1.1);
}

.nav-link.members-link i {
    font-size: 0.9rem;
}

.nav-link.members-link:hover i {
    transform: scale(1.1) rotate(5deg);
}

.members-link {
    background: linear-gradient(135deg, var(--accent-color), #c19b2e);
    color: var(--primary-color) !important;
    padding: 6px 12px !important;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 600;
    border: 2px solid transparent;
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    position: relative;
    overflow: hidden;
}

.members-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #c19b2e, var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.members-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: var(--primary-color) !important;
}

.members-link:hover::before {
    opacity: 1;
}

.members-link span {
    position: relative;
    z-index: 1;
}

.members-link i {
    position: relative;
    z-index: 1;
}

.members-link.active {
    background: linear-gradient(135deg, #c19b2e, var(--accent-color));
    color: var(--primary-color) !important;
    border: 1px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: 1001;
}

.hamburger:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hamburger Menu Active State */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* =====================================================
   6. HERO SECTION
   ===================================================== */

/* Main Hero Container */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 0 40px 0;
    background-image: url('../images/rpc-range.webp?v=20250924-webp-migration');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Medium overlay for better text contrast */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(26, 26, 26, 0.5) 0%, 
        rgba(30, 30, 30, 0.4) 50%,
        rgba(26, 26, 26, 0.5) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 0 0 auto; /* Don't grow/shrink, maintain natural size */
    max-width: 800px;
    text-align: center;
    padding: 0 50px;
    margin: 0 auto; /* Center horizontally */
    animation: fadeIn 1.2s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    animation: fadeIn 1.2s ease-out 0.2s both;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1.2s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1.2s ease-out 0.6s both;
}

/* Hero Social Button */
.hero-social {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 120px; /* Large bottom margin to prevent overlap with what's on today */
    animation: fadeIn 1.2s ease-out 0.8s both;
}

/* Hero Today Section */
.hero-today {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
    padding: 20px;
    animation: fadeIn 0.8s ease-out 1.2s both;
}

.hero-today .hero-today-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 28px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.today-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3px;
}

.today-label i {
    margin-right: 0.4rem;
    opacity: 0.8;
}

.today-label::after {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    margin: 8px auto 10px auto;
}

.hero-today-error {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-today-error i {
    font-size: 14px;
    opacity: 0.7;
}

.activity-time {
    color: rgba(212, 175, 55, 0.8);
}

.activity-time i {
    margin-right: 5px;
    font-size: 0.85rem;
}

.activity-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.hero-today-open {
    color: rgba(255, 255, 255, 0.8);
}

.hero-today-open i {
    color: rgba(212, 175, 55, 0.8);
    margin-right: 8px;
    font-size: 1rem;
}

.hero-today .hero-today-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 32px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

/* Mobile responsive styles for today section */
@media (max-width: 768px) {
    .hero-today .hero-today-content { 
        font-size: 0.9rem; 
        gap: 8px; 
    }
}

/* Hide legacy hero image elements */
.hero-image {
    display: none;
}

/* Sections */
section {
    padding: 40px 0;
}

/* Hero section should have no bottom padding to eliminate gap */
section.hero {
    padding: 100px 0 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 30px;
    position: relative;
}

h2 i {
    color: var(--text-color);
    margin-right: 15px;
    font-size: 0.9em;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

/* =====================================================
   7. CONTENT SECTIONS
   ===================================================== */

/* About Section */
.about {
    background-image: url('../images/rpc-range.webp?v=20250924-webp-migration');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--primary-color); /* Fallback color */
    padding: 60px 0; /* Restore normal section padding */
    position: relative;
}

/* Dark overlay for about section */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(26, 26, 26, 0.65) 0%, 
        rgba(30, 30, 30, 0.6) 50%,
        rgba(26, 26, 26, 0.65) 100%
    );
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-top: 10px;
    margin-bottom: 40px;
    font-style: italic;
}

.about-hero {
    background: linear-gradient(135deg, var(--darker-gray) 0%, rgba(50, 50, 50, 0.98) 100%);
    border-radius: 12px;
    padding: 50px 45px;
    margin-bottom: 60px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.about-main-content h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-main-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--light-gray);
    text-align: justify;
}

.disciplines-header {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #c19b26 100%);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 30px 0 25px 0;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.disciplines-header h4 {
    color: var(--dark-background);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: none;
}

.disciplines-header p {
    color: var(--dark-background);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

.shooting-disciplines {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
    padding: 0 10px;
}

.discipline {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 20px;
    padding: 35px 20px;
    background: linear-gradient(135deg, var(--dark-gray) 0%, rgba(64, 64, 64, 0.95) 100%);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s ease;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.discipline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discipline:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
}

.discipline:hover::before {
    opacity: 1;
}

.discipline i {
    color: var(--accent-color);
    font-size: 2.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.discipline:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.5));
}

.discipline h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
}

.discipline p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
    text-align: center;
}

/* Clickable Discipline Styles */
.discipline.clickable {
    cursor: pointer;
    transition: all 0.4s ease;
}

.discipline.clickable:hover {
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.2);
}

.video-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: auto;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.discipline.clickable:hover .video-indicator {
    color: #fff;
    transform: scale(1.05);
}

.video-indicator i {
    font-size: 1.2rem;
    margin: 0;
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    backdrop-filter: blur(8px);
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.video-modal-content {
    background: var(--darker-gray);
    border-radius: 16px;
    max-width: 90vw;
    max-height: 90vh;
    width: 1200px; /* Fixed width for larger screens */
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(212, 175, 55, 0.4);
    border: 2px solid rgba(212, 175, 55, 0.5);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--darker-gray) 100%);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.video-modal-header h3 {
    color: var(--accent-color);
    margin: 0;
    font-size: 1.3rem;
}

.video-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-modal-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.video-modal-close:active {
    transform: scale(0.95) rotate(90deg);
}

.video-modal-body {
    padding: 30px;
    background: var(--darker-gray);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    min-height: 500px; /* Ensure minimum height */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: var(--primary-color);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes modalFadeOut {
    from { 
        opacity: 1;
        backdrop-filter: blur(8px);
    }
    to { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: scale(0.85) translateY(-60px) rotateX(15deg);
        filter: blur(5px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
        filter: blur(0px);
    }
}

/* Events Section */
.events-section {
    background-image: url('../images/rpc-range-3.webp?v=20250924-webp-migration');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--dark-gray); /* Fallback color */
    padding: 60px 0; /* Consistent section padding */
    position: relative;
}

/* Medium overlay for better text contrast on events section */
.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(26, 26, 26, 0.5) 0%, 
        rgba(30, 30, 30, 0.4) 50%,
        rgba(26, 26, 26, 0.5) 100%
    );
    z-index: 1;
}

.events-section .container {
    position: relative;
    z-index: 2;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: all 0.3s ease;
}

.event-card {
    background: var(--darker-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--dark-gray);
    padding: 35px; /* Match news cards */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Match news transition */
    display: flex;
    flex-direction: column;
    gap: 25px; /* Match news gap */
    align-items: flex-start; /* Match news alignment */
    position: relative;
    overflow: hidden;
    min-height: 320px;
    animation: newsCardFadeIn 0.6s ease-out both; /* Match news animation */
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-12px) scale(1.03); /* Match news hover effect */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); /* Match news shadow */
    border-color: var(--accent-color);
}

.event-card:hover .event-image {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4); /* Match news image shadow */
}

.event-card:hover .click-info {
    opacity: 1;
    transform: translateY(0);
}

.event-image {
    width: 180px; /* Match news image width */
    height: 140px; /* Match news image height */
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-color); /* Match news image border */
    flex-shrink: 0;
    order: -1; /* Match news image order */
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Match news image shadow */
}

.event-date {
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 18px; /* Match news date padding */
    text-align: center;
    min-width: 80px; /* Match news date width */
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Match news behavior */
}

.event-date .day {
    display: block;
    font-size: 1.2rem;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-content h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.event-content p {
    color: var(--secondary-color);
    margin: 0;
    flex: 1;
    line-height: 1.5;
}

.event-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.event-category {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-cost {
    color: var(--accent-color);
    font-weight: 600;
}

/* Click info styling for both news and event cards */
.click-info {
    color: var(--text-color-muted);
    font-weight: 400;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(10px);
    margin-top: auto;
    text-align: center;
    font-style: italic;
    display: flex;
    justify-content: center;
    align-items: center;
}

.click-info small {
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    text-transform: lowercase;
}

/* Latest event special styling */
.event-card.latest-event {
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
    z-index: 2; /* Ensure it's above other cards */
}

.event-card.latest-event::before {
    content: 'UPCOMING';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color); /* Match news badge style */
    color: var(--primary-color);
    padding: 8px 15px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom-left-radius: var(--border-radius);
    z-index: 3;
}

/* Enhanced hover for latest event */
.event-card.latest-event:hover {
    transform: translateY(-12px) scale(1.03); /* Enhanced to match regular cards */
    box-shadow: 0 25px 70px rgba(212, 175, 55, 0.35);
}

/* Enhanced date styling for latest event */
.event-card.latest-event .event-date {
    background: linear-gradient(135deg, var(--accent-color), #e6c866);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    padding: 10px 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced typography for latest event */
.event-card.latest-event .event-content h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.event-card.latest-event .event-image {
    width: 200px; /* Match latest news image width */
    height: 150px; /* Match latest news image height */
    border: 3px solid var(--accent-color);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4); /* Match news shadow */
}

/* No content state */
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-color);
}

/* Ensure no-content spans full width in grid containers */
.news-grid .no-content,
.matches-grid .no-content,
.events-grid .no-content {
    grid-column: 1 / -1; /* Span all columns */
}

.no-content i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-content p {
    font-size: 1.1rem;
    margin: 0;
}

/* Latest News Section / Matches Section */
.news-section,
.matches-section {
    background-image: url('../images/rpc-range-2.webp?v=20250924-webp-migration');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--primary-color); /* Fallback color */
    padding: 60px 0; /* Consistent section padding */
    position: relative;
}

/* Dark overlay for news section / matches section */
.news-section::before,
.matches-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(26, 26, 26, 0.65) 0%, 
        rgba(30, 30, 30, 0.6) 50%,
        rgba(26, 26, 26, 0.65) 100%
    );
    z-index: 1;
}

.news-section .container,
.matches-section .container {
    position: relative;
    z-index: 2;
}

.news-grid,
.matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force exactly 3 columns */
    gap: 30px; /* Reduced gap to fit 3 cards better */
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother, more refined transition */
}

/* News container transition effects */
#news-container {
    position: relative; /* Provide positioning context for navigation */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Stagger animation for news cards */
@keyframes newsCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    background: var(--darker-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--dark-gray);
    padding: 35px; /* Increased padding */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother transition */
    display: flex;
    flex-direction: column;
    gap: 25px; /* Increased gap */
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    min-height: 320px; /* Minimum height for consistency */
    animation: newsCardFadeIn 0.6s ease-out both;
    cursor: pointer;
}

/* Special styling for the latest news item (first card) */
.news-card.latest-news {
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
    z-index: 2; /* Ensure it's above other cards */
}

.news-card.latest-news::before {
    content: 'LATEST';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 15px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom-left-radius: var(--border-radius);
}

.news-card:hover {
    transform: translateY(-12px) scale(1.03); /* More pronounced hover effect */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.news-card:hover .news-image {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.news-card:hover .click-info {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced hover for latest news */
.news-card.latest-news:hover {
    transform: translateY(-12px) scale(1.03); /* Enhanced to match regular cards */
    box-shadow: 0 25px 70px rgba(212, 175, 55, 0.35);
}

.news-image {
    width: 180px; /* Much larger, more prominent image */
    height: 140px; /* Slightly rectangular for better visual impact */
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-color);
    flex-shrink: 0;
    order: -1;
    transition: all 0.4s ease; /* Enhanced transition for smooth hover effects */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Add depth */
}

/* Even larger image for latest news */
.news-card.latest-news .news-image {
    width: 200px; /* Largest for latest news */
    height: 150px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4); /* More prominent shadow */
}

.news-date {
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 18px; /* Increased padding */
    text-align: center;
    min-width: 80px; /* Wider date box */
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Enhanced date styling for latest news */
.news-card.latest-news .news-date {
    background: linear-gradient(135deg, var(--accent-color), #e6c866);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    min-width: 85px;
    padding: 20px;
}

.news-date .day {
    display: block;
    font-size: 2rem; /* Larger day number */
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 1rem; /* Slightly larger month */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    color: var(--text-color);
    font-size: 1.4rem; /* Larger headlines */
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

/* Enhanced typography for latest news */
.news-card.latest-news .news-content h3 {
    font-size: 1.4rem; /* Same size as regular cards */
    color: var(--accent-color);
    font-weight: 600;
}

.news-content p {
    color: var(--text-color-muted);
    margin-bottom: 18px; /* More spacing */
    line-height: 1.7; /* Better readability */
    font-size: 1rem; /* Slightly larger text */
    flex: 1; /* Take up available space, pushing button to bottom */
}

/* Enhanced paragraph for latest news */
.news-card.latest-news .news-content p {
    font-size: 1rem; /* Same size as regular cards */
    line-height: 1.7;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Increased gap */
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother transition */
    font-size: 1rem; /* Slightly larger link */
    padding: 8px 12px; /* Add padding for better click target */
    border-radius: var(--border-radius);
    margin-top: auto; /* Ensure button stays at bottom of flex container */
    align-self: flex-start; /* Align to start of container instead of stretching */
}

.news-link:hover {
    color: #b8860b;
    transform: translateX(8px); /* More pronounced movement */
    background: rgba(212, 175, 55, 0.1); /* Subtle background on hover */
}

.news-link i {
    font-size: 0.9rem; /* Slightly larger icon */
    transition: all 0.3s ease;
}

.news-link:hover i {
    transform: translateX(3px); /* Icon moves separately for nice effect */
}

/* News Modal Popup */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.news-modal.active {
    display: flex;
}

.event-card.past-event {
    opacity: 0.75;
}

.event-card.past-event:hover {
    opacity: 0.9;
}

/* =====================================================
   CLUB MATCH CARDS STYLES
   ===================================================== */

/* Match cards inherit from news card styles but with custom theming */
.match-card {
    background: var(--darker-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--dark-gray);
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    animation: newsCardFadeIn 0.6s ease-out both;
    cursor: pointer;
}

.match-card.next-match {
    background: linear-gradient(135deg, #2c2c2c 0%, #1e4d3e 100%);
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
}

.match-card.next-match::before {
    content: "NEXT MATCH";
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

.match-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.match-card:hover .match-image {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.match-card:hover .click-info {
    opacity: 1;
    transform: translateY(0);
}

.match-card.next-match:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 70px rgba(212, 175, 55, 0.35);
}

.match-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--dark-gray);
}

.match-card.next-match .match-image {
    height: 220px;
    border: 2px solid var(--accent-color);
}

.match-date {
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    z-index: 2;
    border: 1px solid var(--dark-gray);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.match-card.next-match .match-date {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
}

.match-date .day {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

.match-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.match-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-content h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.2;
    font-weight: 600;
}

.match-card.next-match .match-content h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.match-content p {
    color: var(--light-gray);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.match-card.next-match .match-content p {
    font-size: 1.1rem;
    color: #e0e0e0;
}

.match-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.match-type, .match-time {
    background: var(--dark-gray);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--gray);
}

.match-time i {
    margin-right: 6px;
}

/* Match card click-info inherits from .click-info base styles */

/* Body scroll lock utility class */
body.modal-open {
    overflow: hidden !important;
}

/* Event Modal Styles - Updated to match news modal animations */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal.active,
.modal[style*="display: block"] {
    display: flex !important;
}

.modal-content {
    background: var(--darker-gray);
    border-radius: var(--border-radius);
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    transform: translateY(0);
    opacity: 1;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Modal animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-color-muted);
    background: none;
    border: none;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal .close:hover {
    color: var(--accent-color);
}

#eventModalContent {
    padding: 25px;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--text-color);
}

.news-modal-content {
    background: var(--darker-gray);
    border-radius: var(--border-radius);
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    position: relative;
    overflow: hidden; /* Hide overflow on container */
    border: 2px solid var(--accent-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.news-modal-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid var(--dark-gray);
    flex-shrink: 0; /* Don't shrink header */
    background: var(--darker-gray);
    z-index: 10;
}

.news-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.news-modal-close:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.news-modal-title {
    color: var(--accent-color);
    font-size: 2rem;
    margin: 0;
    line-height: 1.3;
    padding-right: 60px;
}

.news-modal-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-bottom: 1px solid var(--dark-gray);
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.news-meta-item i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.news-meta-item span {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.news-modal-body {
    padding: 30px;
    overflow-y: auto; /* Only the body scrolls */
    flex: 1; /* Take remaining space */
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--dark-gray);
}

/* Webkit scrollbar styling for modal body */
.news-modal-body::-webkit-scrollbar {
    width: 8px;
}

.news-modal-body::-webkit-scrollbar-track {
    background: var(--dark-gray);
    border-radius: 4px;
}

.news-modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.news-modal-body::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

.news-image-container {
    margin-bottom: 25px;
}

.news-modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid var(--dark-gray);
}

.news-content-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-content-section h3 {
    color: var(--accent-color);
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    font-size: 1.3rem;
}

.news-excerpt-section p {
    color: var(--text-color-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    margin: 10px 0 0 0;
}

.news-full-content .news-content {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 15px;
}

.news-full-content p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 15px;
}

/* News Modal Call-to-Action */
.news-modal-cta {
    margin-top: 30px;
    padding: 20px;
    background: var(--darker-gray);
    border: 1px solid var(--dark-gray);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-content p {
    color: var(--text-color-muted);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.cta-buttons .btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: #b8860b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* News navigation removed - showing latest 3 events only */

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-links a:hover {
    color: #b8860b;
}

.social-links i {
    font-size: 1rem;
}

/* =====================================================
   7B. HISTORY TIMELINE
   ===================================================== */

.history-timeline {
    max-width: 900px;
    margin: 40px auto 0;
    position: relative;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), rgba(212, 175, 55, 0.3));
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, #c19b26 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark-background);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.timeline-content {
    flex: 1;
    background: linear-gradient(135deg, var(--dark-gray) 0%, rgba(64, 64, 64, 0.95) 100%);
    border-radius: 12px;
    padding: 25px 30px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.timeline-content h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* =====================================================
   8. FORMS & CONTACT SECTION
   ===================================================== */

/* Contact Section */
.contact {
    background-image: url('../images/rpc-range-2.webp?v=20250924-webp-migration');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--dark-gray); /* Fallback color */
    padding: 60px 15px 3rem 15px; /* Restore top padding since using different image */
    position: relative;
}

/* Medium overlay for better text contrast on contact section */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(26, 26, 26, 0.5) 0%, 
        rgba(30, 30, 30, 0.4) 50%,
        rgba(26, 26, 26, 0.5) 100%
    );
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

.contact-form {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.contact-form-modern {
    width: 100%;
    max-width: 100%;
    padding: 20px 15px;
    box-sizing: border-box;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0; /* Prevent flex item overflow */
}

/* Form row responsive handling */
.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-row .form-group {
    flex: 1;
    min-width: 0; /* Allow shrinking below content size */
}

.map-embed {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    max-width: 100%;
    height: 300px;
    border: 0;
    border-radius: 8px;
}

/* Ensure contact grid is responsive for tablets and below */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }
    
    .contact {
        padding: 0;
    }
    
    .contact .container {
        padding: 0 15px;
    }
    
    .contact-form-modern {
        padding: 15px;
        margin: 0;
    }
    
    .contact-form {
        padding: 20px 15px;
        margin: 0;
    }
    
    .map-embed {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    .map-embed iframe {
        height: 250px;
        border-radius: 0;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-right: 20px;
    width: 50px;
}

.contact-item h4 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-color-muted);
}

.contact-form {
    background: var(--darker-gray);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--dark-gray);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-form h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-form p {
    color: var(--text-color-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.location-details {
    margin-top: 20px;
}

.location-details p {
    color: var(--text-color);
    margin-bottom: 20px;
}

/* Map embed base responsive styling */
.map-embed {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 20px;
}

.map-embed iframe {
    width: 100%;
    max-width: 100%;
    height: 300px;
    border: 0;
    border-radius: 8px;
}

/* Contact Form CAPTCHA Styling */
.captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 80px;
    width: 100%;
}

.captcha-container .cf-turnstile {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Responsive CAPTCHA styling */
@media (max-width: 480px) {
    .captcha-container {
        margin: 20px 0;
        padding: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .captcha-container .cf-turnstile {
        width: 100%;
        max-width: 300px;
    }
}

/* Additional mobile improvements for very small screens */
@media (max-width: 480px) {
    .contact .container {
        padding: 0 10px;
    }
    
    .contact-form {
        padding: 15px 10px;
        margin: 0;
    }
    
    .contact-form-modern {
        padding: 12px 10px;
        margin: 0;
    }
    
    .map-embed {
        margin-left: -10px;
        margin-right: -10px;
        width: calc(100% + 20px);
    }
    
    .map-embed iframe {
        height: 200px;
        border-radius: 0;
    }
    
    /* Form inputs and fields */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 10px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

@media (max-width: 360px) {
    .captcha-container {
        padding: 8px;
        margin: 15px -10px;
    }
    
    .captcha-container .cf-turnstile {
        max-width: 280px;
        transform: scale(0.8);
        transform-origin: center;
    }
    
    .contact .container {
        padding: 0 8px;
    }
    
    .contact-form {
        padding: 15px 8px;
        margin: 0;
    }
    
    .contact-form-modern {
        padding: 12px 8px;
        margin: 0;
    }
    
    .map-embed {
        margin-left: -8px;
        margin-right: -8px;
        width: calc(100% + 16px);
    }
    
    .map-embed iframe {
        height: 180px;
    }
    
    /* Very aggressive text sizing for tiny screens */
    .contact-form h3 {
        font-size: 1.1rem;
    }
    
    .contact-form p {
        font-size: 0.9rem;
    }
}

/* =====================================================
   9. FOOTER
   ===================================================== */

/* Main content area - flex grow to push footer to bottom */
main {
    flex: 1;
}

/* Main Footer Container */
.footer {
    background: var(--darker-gray);
    color: var(--text-color);
    padding: 1rem 0;
    border-top: 1px solid var(--dark-gray);
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-color-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--text-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--dark-gray);
    color: var(--text-color-muted);
}

/* Simple footer styling for single copyright line */
.footer .container > p {
    color: var(--text-color-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* Accessibility */
.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;
}

/* Focus indicators removed to prevent yellow borders */

/* =====================================================
   10. RESPONSIVE DESIGN
   ===================================================== */

/* Tablet and Mobile Navigation (768px and below) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: relative;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--darker-gray);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
        border-top: 1px solid var(--dark-gray);
        z-index: 1000;
        gap: 10px;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Hide the underline on mobile */
    .nav-underline {
        display: none;
    }

    .nav-link {
        padding: 12px 20px;
        width: 90%;
        margin: 0 auto;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(212, 175, 55, 0.1);
        transform: none;
    }

    .nav-link.active {
        color: var(--accent-color);
        background: rgba(212, 175, 55, 0.15);
        box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
    }

    .hero {
        background-attachment: scroll;
        padding: 120px 20px 40px 20px;
        min-height: 90vh;
    }
    
    /* Fix background jumping on mobile for all sections */
    section[style*="background-image"],
    .hero,
    .about-section,
    .events-section,
    .news-section,
    .contact-section {
        background-attachment: scroll !important;
    }

    .hero::before {
        background: linear-gradient(
            135deg, 
            rgba(26, 26, 26, 0.9) 0%, 
            rgba(30, 30, 30, 0.85) 50%,
            rgba(26, 26, 26, 0.9) 100%
        );
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-social {
        margin-top: 15px;
        margin-bottom: 100px; /* Ensure Facebook link can't be overlapped on mobile */
    }

    .hero-today h3 {
        font-size: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Map iframe responsive styling for tablet */
    .map-embed iframe {
        width: 100%;
        height: 250px;
        max-width: 100%;
    }

    /* Location details responsive styling */
    .location-details {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .location-details p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* About section responsive styles */
    .about-hero {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .about-main-content h3 {
        font-size: 1.5rem;
    }

    .about-main-content p {
        font-size: 1rem;
    }

    .shooting-disciplines {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }

    .discipline {
        padding: 30px 20px;
        min-height: 160px;
    }
    
    .discipline i {
        font-size: 2.2rem;
    }

    /* History timeline responsive styles */
    .history-timeline::before {
        left: 30px;
    }

    .timeline-item {
        gap: 20px;
    }

    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.75rem;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h4 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .news-grid,
    .matches-grid {
        grid-template-columns: repeat(3, 1fr); /* Keep 3 columns on tablets */
        gap: 25px; /* Smaller gap for tablets */
    }

    .news-card {
        flex-direction: column;
        text-align: center;
        padding: 25px; /* Reduced padding for tablets to fit better */
        min-height: auto; /* Remove fixed height on mobile */
    }

    .news-card.latest-news:hover {
        transform: translateY(-5px) scale(1.02); /* Same hover effect as regular cards */
    }

    .news-date {
        align-self: center;
    }

    .navbar .hamburger {
        background: rgba(26, 26, 26, 0.8);
        border: 2px solid rgba(212, 175, 55, 0.6);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }
    
    .navbar .hamburger:hover,
    .navbar .hamburger:focus {
        background: rgba(26, 26, 26, 0.95);
        border-color: var(--accent-color);
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}

/* Medium screens (tablets) - ensure 3 columns fit well */
@media (max-width: 900px) {
    .news-grid,
    .matches-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px; /* Smaller gap for tighter fit */
    }
    
    .news-card {
        padding: 25px; /* Reduced padding */
        min-height: 280px; /* Smaller min height */
    }
    
    .shooting-disciplines {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 5px;
    }
    
    .discipline {
        padding: 30px 18px;
        min-height: 180px;
    }
    
    .discipline i {
        font-size: 2.2rem;
    }
    
    .video-indicator {
        opacity: 1;
        transform: translateY(0);
        font-size: 0.85rem;
    }

    .video-modal-content {
        max-width: 98vw;
        max-height: 98vh;
        width: auto; /* Remove fixed width on mobile */
        margin: 5px;
        border-radius: 8px;
    }

    .video-modal-header {
        padding: 18px 20px;
    }

    .video-modal-header h3 {
        font-size: 1.1rem;
    }

    .video-modal-close {
        width: 38px;
        height: 38px;
        font-size: 1.6rem;
    }

    .video-container {
        min-height: 300px; /* Reduce minimum height on mobile */
    }

    .video-modal-body {
        padding: 20px;
    }

    .video-container {
        border-radius: 6px;
    }
    
    /* Navigation removed - showing latest 3 events only */
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .news-grid,
    .matches-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for small tablets */
        gap: 20px;
    }
    
    .shooting-disciplines {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .discipline {
        padding: 25px 15px;
        min-height: 170px;
    }
    
    .discipline i {
        font-size: 2rem;
    }
}

/* Mobile-specific Styles (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure hero extends enough on very small screens */
    .hero {
        min-height: 100vh; /* Full height on very small screens */
        padding: 100px 15px 140px 15px; /* Extra bottom padding */
    }
    
    /* Single column layout for mobile */
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-grid,
    .matches-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 25px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-buttons {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }

    .hero-social {
        margin-top: 12px;
        margin-bottom: 80px; /* Ensure Facebook link can't be overlapped on smallest screens */
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-width: 200px;
        text-align: center;
    }

    .contact-form {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .contact-form h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .contact-form p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    /* Map embed mobile styling */
    .map-embed {
        width: 100%;
        overflow: hidden;
        border-radius: 8px;
        margin: 15px 0;
    }

    .map-embed iframe {
        width: 100%;
        height: 250px; /* Increased height for better mobile view */
        max-width: 100%;
        border: 0;
        border-radius: 8px;
    }

    /* Location details mobile styling */
    .location-details {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        padding: 0;
    }

    .location-details p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 15px;
        word-wrap: break-word;
    }

    .contact-form-modern {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    /* Aggressive mobile optimization for very small screens */
    .contact-grid {
        gap: 20px;
        padding: 0;
        margin: 0;
    }
    
    .contact-form h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .contact-form p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    /* Ensure all form elements fit properly */
    .contact-form *,
    .contact-form-modern * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .news-card {
        padding: 25px; /* Slightly larger than before */
        flex-direction: column;
        gap: 20px; /* Increased gap */
        min-height: auto;
    }

    /* Match event card styling to news cards on mobile */
    .event-card {
        padding: 25px;
        flex-direction: column;
        gap: 20px;
        min-height: auto;
    }

    /* Adjust latest news styling for mobile */
    .news-card.latest-news {
        transform: scale(1); /* No scaling on small screens */
        border: 2px solid var(--accent-color); /* Keep border highlight */
    }
    
    .news-card.latest-news:hover {
        transform: translateY(-3px); /* Minimal hover effect */
    }

    /* Match latest event styling to latest news on mobile */
    .event-card.latest-event {
        transform: scale(1);
        border: 2px solid var(--accent-color);
    }
    
    .event-card.latest-event:hover {
        transform: translateY(-3px);
    }

    .news-image {
        width: 100%;
        height: 220px; /* Increased height for more impact */
        order: 0;
    }
    
    /* Keep same image size for latest news on mobile */
    .news-card.latest-news .news-image {
        width: 100%;
        height: 240px; /* Slightly larger for latest news */
    }

    /* Match event image styling to news on mobile */
    .event-image {
        width: 100%;
        height: 220px;
        order: 0;
    }
    
    .event-card.latest-event .event-image {
        width: 100%;
        height: 240px;
    }

    .news-date {
        align-self: flex-start;
        min-width: 70px; /* Slightly larger than before */
        padding: 12px;
    }
    
    /* Enhanced date for latest news on mobile */
    .news-card.latest-news .news-date {
        min-width: 75px;
        padding: 15px;
    }

    .news-date .day {
        font-size: 1.6rem; /* Slightly larger */
    }

    .news-date .month {
        font-size: 0.85rem; /* Slightly larger */
    }
    
    /* Navigation removed - showing latest 3 events only */    /* News modal responsive */
    .news-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .news-modal-header {
        padding: 20px 20px 15px 20px;
    }
    
    .news-modal-title {
        font-size: 1.5rem;
        padding-right: 50px;
    }
    
    .news-modal-close {
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }

    /* Event Modal Responsive */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px;
    }
    
    .modal .close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }
    
    #eventModalContent {
        padding: 20px;
        max-height: 85vh;
    }
    
    .news-modal-body {
        padding: 20px;
    }
    
    .news-modal-image {
        max-height: 250px;
        margin-bottom: 20px;
    }
    
    .news-modal-content-text {
        font-size: 1rem;
    }
    
    .news-modal-excerpt {
        font-size: 1rem;
        padding-left: 15px;
        margin-bottom: 20px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-color-muted);
    grid-column: 1 / -1; /* Take full width in grid */
}

.loading-indicator i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    font-size: 1rem;
    opacity: 0.8;
}

.range-photo {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
}

/* Hero Animation */
/* Contact Form Specific Styles (builds on shared form styles) */
.contact-form-modern {
    background: var(--dark-gray);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--darker-gray);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-section {
    margin-bottom: 25px;
}

/* Modern Toggle Switches */
.membership-toggle,
.license-toggle {
    margin: 25px 0;
}

.toggle-container {
    position: relative;
    cursor: pointer;
}

.toggle-checkbox {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--darker-gray);
    border: 2px solid var(--dark-gray);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-label:hover {
    border-color: var(--accent-color);
    background: var(--dark-gray);
}

.toggle-checkbox:checked + .toggle-label {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
}

.toggle-switch {
    width: 50px;
    height: 28px;
    background: var(--dark-gray);
    border-radius: 14px;
    position: relative;
    transition: var(--transition);
    border: 2px solid var(--darker-gray);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-checkbox:checked + .toggle-label .toggle-switch {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.toggle-checkbox:checked + .toggle-label .toggle-switch::after {
    left: 24px;
    background: var(--primary-color);
}

.toggle-text {
    flex: 1;
}

.toggle-text strong {
    display: block;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.toggle-text small {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

/* Section Styles */
.membership-section {
    background: var(--primary-color);
    border: 2px solid var(--darker-gray);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.4s ease;
    transform: translateY(-10px);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.membership-section.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px; /* Increased from 800px to 1000px */
    border-color: var(--accent-color);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Form Section Header Styling - dedicated class for form sections */
.form-section-header {
    margin-bottom: 15px;
}

.form-section-header h4 {
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.form-section-header h4 i {
    margin-right: 8px;
}

.form-section-header p {
    color: var(--text-color-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Info Box */
.info-box {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-box i {
    color: var(--accent-color);
    margin-top: 2px;
    font-size: 1.1rem;
}

.info-box strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 4px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-color), #c19b2e);
    color: var(--primary-color);
    border: none;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #c19b2e, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Contact Info Enhancement */
.contact-info {
    background: var(--dark-gray);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--darker-gray);
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--darker-gray);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 3px;
    min-width: 20px;
}

.contact-item h4 {
    color: var(--accent-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-color-muted);
    margin: 0;
    line-height: 1.5;
}

/* Simple Location Section */
.location-section {
    background: var(--dark-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--darker-gray);
}

.location-section h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.location-section h4 i {
    margin-right: 8px;
}

.location-section p {
    color: var(--text-color-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.map-embed {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--darker-gray);
    width: 100%;
    max-width: 100%;
}

.map-embed iframe {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive Design for Contact Form */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-modern {
        padding: 20px;
        overflow-x: hidden;
    }
    
    .membership-section {
        padding: 20px;
        margin: 15px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .toggle-label {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .toggle-text {
        width: 100%;
        text-align: left;
    }
    
    .toggle-switch {
        width: 45px;
        height: 25px;
        flex-shrink: 0;
    }
    
    .toggle-switch::after {
        width: 17px;
    }
    
    /* Form inputs mobile optimization */
    .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Submit button mobile styling */
    .submit-btn {
        width: 100%;
        max-width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        box-sizing: border-box;
    }
    
    /* Ensure captcha container doesn't cause horizontal scroll */
    .captcha-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
    .contact {
        padding: 0;
    }
    
    .contact .container {
        padding: 0 5px;
    }
    
    .contact-grid {
        gap: 20px;
        padding: 0;
    }
    
    .contact-form-modern {
        padding: 10px 5px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .map-embed iframe {
        height: 200px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px;
    }
}

/* =====================================================
   IMAGE PROTECTION SYSTEM
   ===================================================== */

/* Comprehensive image protection using CSS properties */
.protected-image {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: auto; /* Allow clicks for functionality */
}

/* =====================================================
   RESPONSIVE UTILITY CLASSES FROM SHARED.CSS
   ===================================================== */

/* Mobile responsive utilities */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Only make specific buttons full width on mobile */
    .btn-block,
    .submit-btn,
    .access-button {
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .btn-block {
        min-width: 200px;
        width: 100%;
        max-width: 100%;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.65rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Additional protection for image containers */
.protected-image::selection {
    background: transparent;
}

.protected-image::-moz-selection {
    background: transparent;
}

/* =====================================================
   SPONSOR SECTION
   ===================================================== */

.sponsor-section {
    margin-top: 2rem;
    text-align: center;
}

.sponsor-section h4 {
    color: var(--text-color-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sponsor-logos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.sponsor-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--accent-color-dim);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.sponsor-tile:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.sponsor-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Responsive sponsor section */
@media (max-width: 480px) {
    .sponsor-logos-grid {
        gap: 0.75rem;
        max-width: 280px;
    }
    
    .sponsor-tile {
        padding: 8px;
    }
    
    .sponsor-logo {
        width: 100px;
        height: 65px;
    }
}
