/* ---------- Base ---------- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden; /* prevent horizontal scroll */
}

::selection {
    background-color: #0d6efd;
    color: #fff;
}

/* ---------- Layout ---------- */
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    margin: 10px auto 40px;
    width: 100%;
    max-width: 1400px;
    padding: 0 15px;
    box-sizing: border-box;
}

.main-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px 24px 40px;
    flex-grow: 1;
    width: 100%;
    min-width: 0; /* fixes flex overflow issue */
    transition: box-shadow 0.3s ease;
}

.main-container:focus-within {
    box-shadow: 0 6px 24px rgba(13, 110, 253, 0.3);
    outline: none;
}

/* ---------- Banners ---------- */
.banner-top, .banner-bottom {
    width: 100%;
    max-height: 150px;
    overflow: hidden;
    margin: 10px 0;
    text-align: center;
    background: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.banner-top:hover, .banner-bottom:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.banner-top img, .banner-bottom img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.banner-top img:hover, .banner-bottom img:hover {
    transform: scale(1.05);
}

/* ---------- Banner Sidebars ---------- */
.banner-side {
    position: sticky;
    top: 140px;
    width: 140px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    padding: 8px;
    flex-shrink: 0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.banner-side:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.banner-side img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.banner-side:hover img {
    transform: scale(1.03);
}

/* ---------- Filter Sidebar ---------- */
.filter-sidebar {
    width: 220px;
    padding: 16px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: max-content;
    flex-shrink: 0;
    font-size: 0.9rem;
    color: #333;
}

.filter-sidebar h3 {
    margin-top: 0;
    font-size: 1.15em;
    color: #005bb5;
    font-weight: 600;
}

.filter-sidebar label {
    display: block;
    margin: 8px 0;
    cursor: pointer;
}

/* ---------- Branding ---------- */
.site-branding img {
    width: 100%;
    max-width: 220px;
    display: block;
    margin: 20px auto 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.site-branding img:hover {
    transform: scale(1.05);
}

/* ---------- Featured Promo ---------- */
.featured-promo {
    margin: 30px auto;
    width: 100%;
    text-align: center;
}

.featured-promo img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.featured-promo img:hover {
    transform: scale(1.03);
    cursor: pointer;
}

/* ---------- Event Banner ---------- */
.event-banner {
    background: #e6f0ff;
    border: 2px solid #0073e6;
    padding: 24px 32px;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 12px;
    text-align: center;
    color: #004080;
    box-shadow: 0 8px 16px rgba(0, 115, 230, 0.2);
    transition: box-shadow 0.3s ease;
}

.event-banner:hover {
    box-shadow: 0 10px 24px rgba(0, 115, 230, 0.4);
}

.event-banner h2 {
    margin: 0 0 10px;
    font-size: 1.8em;
    font-weight: 700;
}

.event-banner p {
    margin: 0 0 15px;
    font-size: 1.1em;
    line-height: 1.4;
}

#countdown {
    font-size: 1.4em;
    font-weight: 600;
    color: #003366;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 24px;
    background: #fff;
    border-top: 1px solid #ddd;
    margin-top: 40px;
    font-size: 0.95em;
    color: #444;
    gap: 16px;
}

.trust-bar div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-bar img {
    width: 32px;
    height: 32px;
}

/* ---------- Accessibility ---------- */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #005bb5;
    outline-offset: 3px;
}

/* ---------- Scrollbar ---------- */
body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-thumb {
    background-color: #0d6efd;
    border-radius: 4px;
}
body::-webkit-scrollbar-thumb:hover {
    background-color: #084cba;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .page-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .filter-sidebar,
    .banner-side {
        display: none;
    }
    .main-container {
        border-radius: 0;
        box-shadow: none;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 14px;
    }
    .event-banner {
        padding: 16px 20px;
        margin: 25px auto;
        width: 90%;
    }
    .event-banner h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    .page-wrapper {
        padding: 0 10px;
    }
    .event-banner p,
    #countdown {
        font-size: 1em;
    }
    .trust-bar {
        flex-direction: column;
        text-align: center;
    }
}
