/* style.css - US Holidays Site Central CSS */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #002868;
}

a:hover {
    color: #bf0a30;
}

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

/* Header */
.site-header {
    background-color: #002868;
    color: white;
    padding: 0.75rem 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    height: 48px;
    width: 48px;
}

.site-logo span {
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
}

/* Main Navigation - UPDATED */
.main-nav {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    list-style: none;
}

.main-nav a {
    display: block;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #bf0a30;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover:after {
    width: 70%;
}

/* Mobile toggle button */
.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1000;
}

/* Countdown Section */
.countdown-section {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.countdown-section h1 {
    color: #002868;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.time-unit {
    background-color: #ffffff;
    color: #002868;
    border: 2px solid #002868;
    border-radius: 12px;
    min-width: 100px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: #bf0a30;
}

.time-unit span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.time-unit .label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
}

.countdown-text {
    font-weight: bold;
    font-size: 1rem;
    margin-top: 2rem;
    /* Increased space */
}

/* Table Styles */
table.holidays-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

table.holidays-table th,
table.holidays-table td {
    padding: 12px 15px;
    text-align: left;
}

table.holidays-table th {
    background-color: #002868;
    color: white;
}

table.holidays-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

table.holidays-table tbody tr:hover {
    background-color: #e9ecef;
}

table.holidays-table a {
    color: #002868;
    font-weight: 600;
}

table.holidays-table a:hover {
    color: #bf0a30;
}

/* Section Headers */
h2.section-title {
    color: #002868;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Lists inside container */
section ul {
    padding-left: 2rem;
    /* ensure bullets aligned properly */
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.faq-section article h3 {
    margin-top: 1rem;
    color: #002868;
}

.faq-section article p {
    margin-bottom: 1rem;
}

/* Adsense Placeholder */
.adsense {
    background-color: #fff3cd;
    padding: 1rem;
    margin: 1.5rem 0;
    border: 1px dashed #ffc107;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    color: #856404;
}

/* Footer */
footer {
    background-color: #002868;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

footer a {
    color: #d1e0f0;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header {
        flex-direction: row;
        align-items: center;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        width: 100%;
        display: none;
        background-color: #002868;
        padding: 10px 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .main-nav.show {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        padding: 15px;
        border-radius: 4px;
    }

    .mobile-nav-toggle {
        display: block;
        margin-left: auto;
        cursor: pointer;
    }

    .countdown-display {
        gap: 15px;
    }

    .time-unit {
        min-width: 80px;
        padding: 15px 8px;
        border-radius: 10px;
    }

    .time-unit span {
        font-size: 2rem;
    }

    .time-unit .label {
        font-size: 0.8rem;
    }

    table.holidays-table th,
    table.holidays-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .site-logo span {
        font-size: 1.2rem;
    }

    .countdown-section h1 {
        font-size: 1.5rem;
    }

    .time-unit {
        min-width: 70px;
        padding: 12px 6px;
    }

    .time-unit span {
        font-size: 1.75rem;
    }

    .time-unit .label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    table.holidays-table th,
    table.holidays-table td {
        padding: 8px;
        font-size: 0.85rem;
    }
}