:root {
    --christmas-red: #D42426;
    --christmas-green: #0C5C0A;
    --christmas-gold: #FFD700;
    --christmas-blue: #1a4666;
}

body {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
}

.navbar {
    background-color: var(--christmas-red);
}

.navbar-brand, .nav-link {
    color: white !important;
}

.footer {
    background-color: var(--christmas-green);
    color: white;
}

.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.social-buttons-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.track-button-red {
    background-color: var(--christmas-red);
    color: white;
    padding: 12px 35px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.track-button-red:hover {
    transform: scale(1.05);
    color: white;
    background-color: #bf0000;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.social-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--christmas-blue);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.social-button:hover {
    transform: scale(1.05);
    background-color: white;
    color: var(--christmas-blue);
}

.donate-button {
    background-color: var(--christmas-gold);
    color: black;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.donate-button:hover {
    background-color: #FFE55C;
    color: black;
    transform: scale(1.05);
}

.donate-button-lg {
    background-color: var(--christmas-gold);
    color: black;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.donate-button-lg:hover {
    background-color: #FFE55C;
    color: black;
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.nav-item.donate-item {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.donate-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .h4 {
    font-family: 'Arial', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-image {
    transform: rotate(2deg);
    transition: transform 0.3s ease;
    border: 10px solid white;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Table Styles */
.christmas-table {
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid var(--christmas-red);
}

.christmas-table thead {
    background-color: var(--christmas-red);
    color: white;
}

.christmas-table th {
    text-align: center;
    padding: 1rem;
    border-bottom: 3px solid #198754;
    vertical-align: middle;
    min-width: 100px;
    background-color: var(--christmas-red);
    color: white;
}

.christmas-table td {
    padding: 1rem;
    vertical-align: middle;
    word-wrap: break-word;
    min-width: 100px;
}

.christmas-table tbody tr {
    transition: background-color 0.3s ease;
}

.christmas-table tbody tr:hover {
    background-color: rgba(25, 135, 84, 0.1);
}

.christmas-table tbody tr:nth-child(even) {
    background-color: rgba(212, 36, 38, 0.05);
}

.christmas-table colgroup col:nth-child(1) { width: 15%; }  /* Date */
.christmas-table colgroup col:nth-child(2) { width: 32%; }  /* Route & Map */
.christmas-table colgroup col:nth-child(3) { width: 18%; }  /* Cause */
.christmas-table colgroup col:nth-child(4) { width: 20%; }  /* Sponsor */
.christmas-table colgroup col:nth-child(5) { width: 15%; }  /* Route Link */

.christmas-table a {
    color: var(--christmas-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.christmas-table a:hover {
    color: var(--christmas-red);
    text-decoration: underline;
}

.route-button {
    background-color: var(--christmas-red);
    color: white !important;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
    display: inline-block;
}

.route-button:hover {
    background-color: #bf0000;
    color: white !important;
    transform: scale(1.05);
    text-decoration: none !important;
}

.donation-section {
    background-color: var(--christmas-blue);
    color: white;
    padding: 4rem 0;
}

/* Media Queries */
@media (max-width: 768px) {
    /* Mobile card layout for tables */
    .table-responsive {
        overflow-x: visible;
    }

    .christmas-table {
        min-width: 0;
        border: none;
        box-shadow: none;
    }

    .christmas-table thead {
        display: none;
    }

    .christmas-table,
    .christmas-table tbody {
        display: block;
        width: 100%;
    }

    .christmas-table tbody tr {
        display: block;
        background: white;
        border: 2px solid var(--christmas-red);
        border-radius: 12px;
        padding: 1.25rem;
        margin-bottom: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .christmas-table tbody tr:nth-child(even) {
        background-color: white;
    }

    .christmas-table tbody tr:hover {
        background-color: white;
    }

    .christmas-table td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #eee;
        text-align: center;
    }

    .christmas-table td:first-child {
        padding-top: 0;
    }

    .christmas-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
        padding-top: 1rem;
        text-align: center;
    }

    .christmas-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        color: var(--christmas-red);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.25rem;
    }

    /* Hide label only when data-label is empty or not set */
    .christmas-table td:not([data-label])::before,
    .christmas-table td[data-label=""]::before {
        content: none;
    }

    .donate-button-wrapper {
        justify-content: flex-end;
        width: 100%;
    }

    .button-group {
        margin-top: 20px;
    }

    .social-buttons-group {
        flex-direction: column;
        width: 100%;
    }

    .track-button-red,
    .social-button {
        width: 90%;
        max-width: 350px;
        margin: 5px auto;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .h4 {
        font-size: 1.2rem;
    }

    .hero-image {
        max-width: 90%;
        margin: 0 auto;
        border-width: 5px;
    }
}

@media (min-width: 769px) {
    .track-button-red {
        width: auto;
        max-width: none;
    }

    .social-button {
        width: auto;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .hero-image {
        max-width: 95%;
        border-width: 3px;
    }
}

.pin-button {
    background-color: var(--christmas-red);
    color: white !important;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pin-button:hover {
    background-color: #bf0000;
    transform: scale(1.05);
    color: white !important;
    text-decoration: none !important;
}

.route-image {
    transition: transform 0.2s ease;
    max-height: 400px;
    width: auto;
}

.route-image:hover {
    transform: scale(1.02);
}

.modal-xl {
    max-width: 90vw;
}

#modalRouteImage {
    max-height: 85vh;
    width: auto;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.95);
}

.modal-header {
    border-bottom: none;
}

.text-warning {
    color: var(--christmas-gold) !important;
    font-weight: 500;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.btn-outline-dark {
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    transform: translateY(-2px);
}