/* ==========================================
   Benning Golf Tournament - Stylesheet
   Color Scheme: Teal & White
   ========================================== */

:root {
    --primary-white: #ffffff;
    --secondary-white: #f9fafb;
    --light-green: #e6f2f3;
    --primary-green: #004750;
    --dark-green: #002d33;
    --accent-green: #00899B;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --shadow: 0 10px 30px rgba(0, 71, 80, 0.15);
    --shadow-hover: 0 15px 40px rgba(0, 71, 80, 0.25);
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--primary-white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ==========================================
   Site Header (Sticky Container)
   ========================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: var(--primary-white);
    will-change: transform;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    background: var(--primary-white);
    padding: 1rem 0;
}

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

.navbar .logo a {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.navbar .logo-image {
    height: 50px;
    width: auto;
}

.navbar nav ul {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.navbar nav ul li a {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.navbar nav ul li a:hover {
    background-color: var(--light-green);
    color: var(--primary-green);
}

.navbar nav ul li a.btn-primary {
    background-color: var(--primary-green);
    color: white;
    padding: 0.5rem 1.25rem;
}

.navbar nav ul li a.btn-primary:hover {
    background-color: var(--dark-green);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ==========================================
   Admin Bar
   ========================================== */
.admin-bar {
    background: var(--dark-green);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.admin-bar .container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.admin-bar-header {
    display: none;
}

.admin-bar-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-bar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.admin-bar a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-bar a i {
    display: none;
}

.admin-bar a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.admin-bar .admin-logout {
    margin-left: auto;
    color: #fca5a5;
}

.admin-bar .admin-logout:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #fee2e2;
}

.admin-menu-toggle {
    display: none;
}

/* ==========================================
   Container
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--light-green);
    color: var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

.btn-remove:hover {
    text-decoration: underline;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--primary-white) 50%, var(--light-green) 100%);
    padding: 6rem 0;
    text-align: center;
}

.hero-home,
.hero-inner {
    position: relative;
    background: var(--dark-green);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    contain: paint;
    will-change: contents;
}

.hero-home {
    padding: 8rem 0;
    min-height: 500px;
}

.hero-inner {
    padding: 4rem 0;
    min-height: 280px;
}

.hero-inner h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-inner h1 .highlight {
    color: #5EC4D4;
}

.hero-inner p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 48, 0.75);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-beneficiary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-beneficiary span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-beneficiary img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.hero-beneficiary a:hover img {
    transform: scale(1.05);
}

.hero-home .btn-secondary {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-green);
}

.hero-home .btn-secondary:hover {
    background-color: white;
    color: var(--dark-green);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    color: var(--primary-green);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Hero Home overrides - must come after general .hero styles */
.hero.hero-home h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero.hero-home h1 .highlight {
    color: #5EC4D4;
}

.hero.hero-home p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   Sections
   ========================================== */
.services {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header h2 span {
    color: var(--primary-green);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   Service / Info Cards
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--primary-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ==========================================
   Blog
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--primary-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.blog-card-content .excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--dark-green);
}

/* ==========================================
   Gallery
   ========================================== */
.gallery-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: block;
    background: var(--primary-white);
    border: 1px solid var(--border-color);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--light-green);
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    font-size: 0.9rem;
}

.gallery-card-content {
    padding: 1.25rem;
}

.gallery-card-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gallery-category {
    display: inline-block;
    background: var(--light-green);
    color: var(--primary-green);
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-green);
    opacity: 0.5;
}

/* Masonry Grid */
.masonry-grid {
    columns: 3;
    column-gap: 1rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.masonry-item:hover {
    transform: scale(1.02);
}

.masonry-item img {
    width: 100%;
    display: block;
}

.masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-overlay h4 { font-size: 1rem; margin-bottom: 0.25rem; }

.image-price {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 0.15rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 8px;
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    font-size: 1rem;
}

.lightbox-caption h4 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.lightbox-caption p { color: #ccc; }

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: fixed;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 10001;
    font-size: 2rem;
    padding: 1rem;
    transition: color 0.3s;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--accent-green); }
.lightbox-close { top: 1rem; right: 1.5rem; font-size: 2.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ==========================================
   Info Callout Box
   ========================================== */
.info-callout {
    background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
    border: 2px dashed var(--primary-green);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.info-callout-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.info-callout p {
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.info-callout p:last-child {
    margin-bottom: 0;
}

.info-callout-sub {
    color: var(--text-gray) !important;
    font-size: 0.95rem !important;
}

.info-callout-sub i {
    color: var(--primary-green);
}

.info-callout-sub span {
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .info-callout {
        padding: 1rem;
    }

    .info-callout-title {
        font-size: 1.25rem;
    }

    .info-callout p {
        font-size: 0.9rem;
    }

    .info-callout-sub {
        font-size: 0.85rem !important;
    }
}

/* ==========================================
   Registration Form
   ========================================== */
.registration-section {
    background: var(--primary-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.registration-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.registration-section h3 i {
    color: var(--primary-green);
}

.participant-card {
    background: var(--secondary-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.participant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.participant-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
}

.primary-badge {
    display: inline-block;
    background: var(--light-green);
    color: var(--primary-green);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.participant-card.primary-contact {
    border: 2px solid var(--primary-green);
    background: linear-gradient(135deg, var(--secondary-white) 0%, rgba(0, 71, 80, 0.05) 100%);
}

.registration-summary {
    background: var(--primary-white);
    border: 2px solid var(--primary-green);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.registration-summary h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-gray);
}

.summary-total {
    border-bottom: none;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--primary-green);
}

/* ==========================================
   Confirmation Page
   ========================================== */
.confirmation-card {
    background: var(--primary-white);
    border: 2px solid var(--primary-green);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.confirmation-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.confirmation-header h2 {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.confirmation-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.confirmation-detail label {
    font-weight: 600;
    color: var(--text-gray);
}

.confirmation-number {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    background: var(--light-green);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

.participant-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--secondary-white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* ==========================================
   Bulletins
   ========================================== */
.bulletin-card {
    background: var(--primary-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.bulletin-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.bulletin-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.bulletin-content {
    color: var(--text-gray);
    line-height: 1.8;
}

.bulletin-content h3 { color: var(--text-dark); margin-top: 1.5rem; margin-bottom: 0.75rem; }
.bulletin-content p { margin-bottom: 1rem; }
.bulletin-content ul, .bulletin-content ol { margin-left: 1.5rem; margin-bottom: 1rem; }
.bulletin-content li { margin-bottom: 0.5rem; }

/* ==========================================
   Stripe Mode Banner
   ========================================== */
.stripe-mode-banner {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ==========================================
   Forms
   ========================================== */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--primary-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 71, 80, 0.15);
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
}

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

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
}

/* ==========================================
   Dashboard & Admin
   ========================================== */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard.dashboard-wide {
    max-width: none;
    width: 100%;
}

/* Blog Form Layout */
.blog-form {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.blog-form-main {
    background: var(--primary-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.blog-form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--primary-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-card .current-image {
    margin-bottom: 1rem;
}

.sidebar-card .current-image img {
    width: 100%;
    border-radius: 8px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 800;
}

.dashboard-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.dashboard-actions form {
    margin: 0;
}

.text-gray {
    color: var(--text-gray);
}

.show-mobile {
    display: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-gray);
    opacity: 0.5;
    display: block;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-gray);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--primary-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.stat-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Admin Tables */
.admin-table {
    overflow-x: auto;
    background: var(--primary-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 1rem 1.25rem;
    background: var(--secondary-white);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-gray);
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background-color: var(--secondary-white);
}

/* Sortable Table Headers */
.admin-table th.sortable a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.admin-table th.sortable a:hover {
    color: var(--primary-green);
}

.admin-table th.sortable a i {
    font-size: 0.75rem;
}

/* Admin Filters */
.admin-filters {
    background: var(--primary-white);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.admin-filters .filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.admin-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-filters .filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    white-space: nowrap;
}

.admin-filters .filter-group select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: var(--secondary-white);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.admin-filters .filter-group select:focus {
    outline: none;
    border-color: var(--accent-green);
}

.actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-published {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-draft {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-pending {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-failed {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Admin Image Grid */
.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.admin-image-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--secondary-white);
}

.admin-image-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.image-fields {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.image-fields input {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ==========================================
   Auth Page
   ========================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-green) 0%, var(--primary-white) 50%, var(--light-green) 100%);
    padding: 2rem;
}

.auth-container {
    background: var(--primary-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-color);
}

.auth-container h2 {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ==========================================
   Messages
   ========================================== */
.success-message, .error-message {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.success-message {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ==========================================
   St. Jude Page
   ========================================== */
.stjude-hero {
    padding: 4rem 0;
}

.stjude-logo {
    max-width: 300px;
    margin: 0 auto 2rem;
}

.stjude-content {
    padding: 4rem 0;
}

.stjude-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.stjude-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.stjude-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.stjude-text .lead {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.stjude-text p {
    color: var(--text-gray);
    line-height: 1.7;
}

.stjude-mission {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 4rem;
}

.stjude-mission .service-icon {
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 1.5rem;
}

.stjude-mission h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.stjude-mission p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.05rem;
}

.stjude-cta {
    background: var(--light-green);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.stjude-cta h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.stjude-cta p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

@media (max-width: 768px) {
    .stjude-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stjude-image {
        order: -1;
    }

    .stjude-logo {
        max-width: 200px;
    }
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--dark-green);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-powered {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.8rem;
}

.footer-powered a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-powered a:hover {
    color: rgba(255, 255, 255, 0.7);
}

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

    .navbar nav,
    .navbar #mainNav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-white);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        z-index: 100;
    }

    .navbar nav.active,
    .navbar #mainNav.active { display: block; }

    .navbar nav ul,
    .navbar #mainNav ul {
        flex-direction: column;
        gap: 0.25rem;
    }

    .navbar nav ul li a,
    .navbar #mainNav ul li a {
        display: block;
        padding: 0.75rem 1rem;
    }

    /* Admin bar mobile - scrollable horizontal */
    .admin-bar {
        padding: 0;
    }

    .admin-bar .container {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .admin-bar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.6rem 1rem;
        width: 100%;
    }

    .admin-bar-label {
        display: flex;
        margin-right: 0;
    }

    .admin-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 36px;
        height: 36px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 1.1rem;
    }

    .admin-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .admin-bar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.2);
        padding: 0.5rem 0;
    }

    .admin-bar-links.active {
        display: flex;
    }

    .admin-bar a {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        white-space: nowrap;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .admin-bar a:last-child {
        border-bottom: none;
    }

    .admin-bar a i {
        display: inline-flex;
        width: 20px;
        justify-content: center;
    }

    .admin-bar a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .admin-bar .admin-logout {
        margin-left: 0;
        margin-top: 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 0.75rem;
    }

    .hero h1 { font-size: 2rem; }
    .hero { padding: 3rem 0; }
    .hero-home { padding: 5rem 0; min-height: 400px; }
    .hero-inner { padding: 3rem 0; min-height: 200px; }

    .hero-beneficiary {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .hero-beneficiary img {
        height: 40px;
    }

    /* Blog form mobile */
    .blog-form {
        grid-template-columns: 1fr;
    }

    .blog-form-sidebar {
        order: -1;
    }

    .blog-form-main {
        padding: 1.25rem;
    }

    .sidebar-card {
        padding: 1rem;
    }

    .section-header h2 { font-size: 1.8rem; }

    .masonry-grid { columns: 2; }

    .dashboard-header { flex-direction: column; align-items: flex-start; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }

    .form-row { grid-template-columns: 1fr; }

    .confirmation-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .masonry-grid { columns: 1; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .container { padding: 0 1rem; }

    /* Better mobile admin */
    .dashboard { padding: 1rem; }
    .dashboard-header h1 { font-size: 1.5rem; }
    .registration-section { padding: 1.25rem; }
    .participant-card { padding: 1rem; }
    .registration-summary { padding: 1.25rem; }

    /* Stack buttons on mobile */
    .dashboard-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .dashboard-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard-actions form {
        width: 100%;
    }

    .dashboard-actions form .btn {
        width: 100%;
    }

    /* Hide/show elements on mobile */
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: inline !important;
    }

    /* Compact button text on mobile */
    .btn .btn-text {
        display: none;
    }

    .dashboard-actions .btn .btn-text {
        display: inline;
    }

    /* Actions cell - wrap buttons on mobile */
    .actions-cell {
        white-space: normal !important;
    }

    .actions-cell .btn {
        margin-bottom: 0.25rem;
    }

    .actions-cell form {
        display: inline-block;
    }
}

/* ==========================================
   Additional Mobile Improvements
   ========================================== */

/* Admin tables - better mobile scrolling */
@media (max-width: 768px) {
    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.75rem;
        white-space: nowrap;
    }

    .admin-table td:first-child {
        position: sticky;
        left: 0;
        background: var(--primary-white);
        z-index: 1;
        box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    }

    .admin-table tr:hover td:first-child {
        background: var(--secondary-white);
    }

    /* Hide less important columns on mobile */
    .admin-table .hide-mobile {
        display: none;
    }

    /* Smaller badges */
    .badge {
        padding: 0.15rem 0.5rem;
        font-size: 0.7rem;
    }

    .btn-small {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Admin filters */
    .admin-filters {
        padding: 1rem;
    }

    .admin-filters .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-filters .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .admin-filters .filter-group select {
        width: 100%;
    }

    .admin-filters .btn {
        width: 100%;
        justify-content: center;
    }

    /* Stats cards */
    .stat-card {
        padding: 1rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .stat-card p {
        font-size: 0.8rem;
    }

    /* Participant headers stack */
    .participant-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .navbar .logo-image {
        height: 40px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}
