/* Reset and General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #fff;
}

body.home-page {
    background-color: #f0a040;
    padding-top: 60px;
    /* For fixed header */
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black */
    display: flex;
    justify-content: center;
    /* Center logo */
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000;
}

.logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Verdana', sans-serif;
    /* Example font */
    text-transform: uppercase;
}

/* Footer Links Styles */
.footer-links {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: #fff;
    /* White text for better contrast on orange bg */
}

.footer-links a {
    text-decoration: underline;
}

.footer-links a:hover {
    text-decoration: none;
}

.link-separator {
    margin: 0 10px;
}

/* Gallery and Image Styles */
.content-wrapper {
    width: 100%;
}

.gallery-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.full-screen-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Ensures images cover width nicely */
}

/* Mobile-Specific Styles */
@media screen and (max-width: 768px) {
    body.home-page {
        padding-bottom: 110px;
        /* Only add padding on mobile where banner exists */
    }

    .footer-links {
        padding-bottom: 20px;
        /* Ensure footer isn't too tight to banner */
    }
}

/* --- Banner Styles (Fixed at bottom) --- */
#banner_container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 10px 10px 10px;
    box-sizing: border-box;
    display: none;
    /* Hidden by default, JS toggles to flex */
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 900;
    /* stays on top of content but below header if needed, though header is top */
    pointer-events: none;
    /* Let clicks pass through empty space */
}

#banner_ad {
    display: none;
    pointer-events: auto;
    /* Enable clicks on the banner itself */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    background-color: #fef9e7;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    width: 100%;
    max-width: 1200px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 70px;
}

#banner_ad::-webkit-scrollbar {
    display: none;
}

.banner_content {
    display: flex;
    align-items: center;
    min-width: 250px;
    padding: 0 10px;
    box-sizing: border-box;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 100%;
}

.banner_icon {
    max-width: 50px;
    max-height: 50px;
    margin-right: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

.banner_text h4,
.banner_text p {
    color: #000;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner_text h4 {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.banner_text p {
    font-size: 12px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    margin: 0 3px;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #000;
}