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

:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-hero: #001f3f;
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --accent: #003087;
    --accent-hover: #001f5c;
    --accent-red: #b22222;
    --accent-gold: #c5a000;
    --border: #e0e0e0;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Partner logos in navbar */
.nav-partner-left,
.nav-partner-right {
    flex-shrink: 0;
}

.nav-partner-left img,
.nav-partner-right img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 40px 80px;
    background: linear-gradient(135deg, #001f3f 0%, #003087 50%, #001f3f 100%);
    color: white;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold), var(--accent-red));
}

.hero-content {
    max-width: 900px;
}

.hero-logo {
    max-width: 300px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    line-height: 1.1;
}

.battle-subtitle {
    font-size: 32px;
    font-weight: 700;
    color: #FFD500;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    font-weight: 400;
}

.hero-subtitle p {
    margin-bottom: 8px;
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 50px;
    text-align: center;
    color: var(--accent);
}

/* Countdown in hero */
.hero-countdown {
    margin-bottom: 10px;
}

.hero-countdown #countdown-timer {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffd700;
    display: block;
    margin-bottom: 4px;
}

.hero-countdown .countdown-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Weather widget */
.weather-widget {
    opacity: 0.7;
    text-align: center;
    margin-bottom: 25px;
}
.weather-widget:hover { opacity: 1; }
.weather-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.weather-days {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.weather-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.weather-icon { font-size: 1.2rem; }
.weather-temp {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}
.weather-dayname {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Buttons in Hero */
.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 35px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--accent-red);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #8b1a1a;
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-block;
    padding: 14px 36px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    border-color: white;
    background-color: rgba(255,255,255,0.1);
}

/* Historic Significance Section */
.historic-significance {
    background: linear-gradient(135deg, #003087 0%, #001f5c 100%);
    padding: 50px 20px;
}

.significance-banner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.significance-title {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.significance-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    line-height: 1.7;
}

.significance-text strong {
    color: #ffd700;
    font-weight: 600;
}

/* Featured / Stats Section */
.featured {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.featured-item {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.featured-item:hover {
    border-color: var(--accent);
    box-shadow: var(--card-shadow);
}

.featured-item .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.featured-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent);
}

.featured-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Background / History Section */
.background-content {
    max-width: 900px;
    margin: 0 auto;
}

.background-content h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.4;
    color: var(--accent);
}

.background-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Sponsors Grid */
.sponsors-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.sponsor-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    transition: all 0.3s;
    text-decoration: none;
}

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

.sponsor-card img {
    max-width: 85%;
    max-height: 90px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

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

.sponsor-card img[data-level="platinum"] { max-height: 110px; }
.sponsor-card img[data-level="gold"] { max-height: 100px; }
.sponsor-card img[data-level="silver"] { max-height: 90px; }

/* Oceanic cropped logo can be wider */
.sponsor-card img[alt*="Oceanic"] { max-width: 95%; max-height: 110px; }

/* Pompano Section */
.location-section {
    text-align: center;
}

.location-section .background-content {
    text-align: center;
}

.location-logo {
    max-height: 100px;
    margin-bottom: 25px;
}

.btn-location {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
    margin-top: 15px;
}

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

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #001f3f 0%, #003087 100%);
    text-align: center;
    color: white;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold), var(--accent-red));
}

.cta h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 35px;
}

/* Footer */
footer {
    background-color: #001f3f;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-brand h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer-contact h4,
.footer-social h4,
.footer-menu h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.5);
}

.footer-contact p,
.footer-contact a,
.footer-social a,
.footer-menu a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.3s;
    word-break: break-word;
    overflow-wrap: break-word;
}

.footer-contact a:hover,
.footer-social a:hover,
.footer-menu a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-socials a {
    display: inline-block;
}

.footer-socials img {
    height: 22px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.footer-socials img:hover {
    opacity: 1;
}

/* Page Hero (subpages) */
.page-hero {
    padding: 140px 40px 60px;
    text-align: center;
    background: linear-gradient(135deg, #001f3f 0%, #003087 100%);
    color: white;
    border-bottom: 4px solid var(--accent-red);
}

.page-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
}

/* Content Section */
.content-section {
    padding: 60px 0;
}

/* Event Cards */
.event-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 25px;
    transition: border-color 0.3s, box-shadow 0.3s;
    text-align: center;
}

.event-card:hover {
    border-color: var(--accent);
    box-shadow: var(--card-shadow);
}

.event-card h3 {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 10px;
}

.event-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 5px;
}

.event-location {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 15px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        order: 2;
    }

    .nav-partner-right {
        order: 1;
        margin-left: auto;
        margin-right: 10px;
    }

    .hero {
        min-height: auto;
        padding: 90px 20px 50px;
    }

    .hero-title {
        font-size: 28px;
    }

    .battle-subtitle {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 15px;
        text-align: center;
    }

    .hero-logo {
        max-width: 180px;
    }

    .hero-countdown #countdown-timer {
        font-size: 1.6rem;
    }

    .hero-countdown .countdown-label {
        font-size: 0.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-outline {
        font-size: 13px;
        padding: 12px 24px;
    }

    .significance-banner {
        padding: 30px 20px;
    }

    .significance-title {
        font-size: 22px;
    }

    .significance-text {
        font-size: 16px;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .featured-grid {
        grid-template-columns: 1fr 1fr;
    }

    .featured-item .stat-number {
        font-size: 28px;
    }

    .sponsors-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .page-hero {
        padding: 90px 20px 40px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .cta {
        padding: 50px 0;
    }

    .cta h2 {
        font-size: 24px;
    }

    .cta p {
        font-size: 16px;
    }

    .background-content h3 {
        font-size: 20px;
    }

    .background-content p {
        font-size: 15px;
    }

    .info-card {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .donor-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        gap: 6px;
    }

    .filter-tab {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* Photo Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

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

.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f4f4f4;
}

.gallery-card .card-body {
    padding: 15px;
}

.gallery-card h3 {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 8px;
}

.gallery-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Section filter tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-tab {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Honor Roll */
.honor-section {
    margin-bottom: 50px;
}

.honor-section h2 {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

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

.donor-entry {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
}

.donor-entry:hover {
    border-color: var(--accent);
}

.donor-name {
    font-weight: 500;
    color: var(--text-primary);
}

.donor-detail {
    font-size: 13px;
    color: var(--text-secondary);
}

.donor-amount {
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.badge-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    vertical-align: middle;
}

.badge-platinum { background: linear-gradient(135deg, #e8e8e8, #b0b0b0); color: #333; border: 1px solid #999; }
.badge-gold { background: linear-gradient(135deg, #f7e98e, #c9a227); color: #5a4000; border: 1px solid #b8960f; }
.badge-silver { background: linear-gradient(135deg, #e8e8e8, #a8a8a8); color: #444; border: 1px solid #999; }
.badge-bronze { background: linear-gradient(135deg, #e8b88a, #a0622e); color: #3d2000; border: 1px solid #8b5e2b; }

/* Info Card (for gear, media) */
.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 25px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    border-color: var(--accent);
    box-shadow: var(--card-shadow);
}

.info-card h3 {
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 12px;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.info-card .read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.info-card .read-more:hover {
    color: var(--accent-hover);
}

/* Media Tile Layout */
.media-tile {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.media-tile:hover {
    border-color: var(--accent);
    box-shadow: var(--card-shadow);
}

.media-tile-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    padding: 25px;
}

.media-tile-img img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 4px;
}

.media-tile-content {
    padding: 30px;
}

.media-tile-content h3 {
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 12px;
}

.media-tile-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.media-tile-content .read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.media-tile-content .read-more:hover {
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    .media-tile-img {
        padding: 20px;
    }
    .media-tile-img img {
        max-height: 180px;
    }
    .media-tile-content {
        padding: 20px;
    }
}

.alert-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px 20px;
    margin: 15px 0;
    font-size: 14px;
    color: #664d03;
}

.discount-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
}

/* Construction day groups */
.day-group {
    margin-bottom: 40px;
}

.day-header {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .sponsors-grid {
        grid-template-columns: 1fr;
    }

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

    .nav-partner-left img {
        height: 30px;
    }

    .hero-title {
        font-size: 24px;
    }

    .battle-subtitle {
        font-size: 18px;
    }

    .hero-logo {
        max-width: 150px;
    }

    .sponsor-card {
        min-height: 100px;
    }

    /* Boost Lucky Fish on small screens */
    .sponsor-card img[alt*="Lucky Fish"] { max-height: 110px; max-width: 95%; }
}

.share-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
}
.share-button:hover { background: #45a049; }
