/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    background-color: #000; /* Fallback */
    position: relative;
}

/* Video Background and Overlay */
#video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark blue gradient overlay from the screenshot */
    background: linear-gradient(45deg, rgb(1, 0, 52), rgb(0, 5, 102));
    z-index: -1;
}

/* Header and Navigation */
header {
    display: flex;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

/* Navigation buttons styled to match screenshot */
nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: linear-gradient(45deg, #00022d, #08009a); /* Blue gradient from screenshot */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

nav a:hover,
nav a.active-link {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgb(11, 0, 85); /* Enhanced glow on hover */
    background: linear-gradient(45deg, #070062, #0d3a83); /* Invert gradient on hover */
}

/* Main Content Area */
main {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

/* Greeting Component Styles */
time-greeting h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

time-greeting #scripture-caption {
    font-size: 1rem;
    color: #FFD700; /* Golden yellow for scripture */
    font-style: italic;
    margin-top: 1rem;
    display: block;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

time-greeting .greeting-container img {
    width: 60px; /* larger flag */
    height: auto;
}

/* Section Divider */
.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to center rgb(4, 0, 53), rgba(255, 255, 255, 0.4), rgba(14, 0, 172, 0));
    margin: 4rem auto;
    max-width: 80%;
}

/* Live Stream Section */
#live-stream h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
/* Google Translate Element - HIDE */
#google_translate_element,
.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0 !important; /* Prevents Google Translate from adding a top margin */
}

/* Videos Page Specific Styles */
#video-gallery {
    padding: 4rem 2rem;
    text-align: center;
    position: relative; /* Ensure it's above the video background */
    z-index: 2;
}

#video-gallery h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 2rem; /* Adjusted margin */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

/* Filter Buttons */
.filter-buttons {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; /* Pill-shaped buttons */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.filter-btn:hover {
    background-color: rgba(255, 193, 7, 0.5);
    color: #000;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #ffc107;
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.7);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.video-item {
    background-color: rgba(17, 17, 17, 0.7); /* Dark, semi-transparent background */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.23);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block; /* Ensure it is visible by default */
}

.video-item.hidden {
    display: none; /* Class to hide videos */
}

.video-item:hover {
    transform: scale(1.04);
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.6), 0 0 15px rgba(255, 255, 255, 0.4);
}

.video-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    object-fit: cover;
}

.video-item .title {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
    transition: background 0.3s ease;
}

/* Make title slightly more prominent on hover */
.video-item:hover .title {
     background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 100%);
}


/* Responsive design for mobile from screenshot */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    nav a {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
    time-greeting h1 {
        font-size: 2.5rem;
    }
    time-greeting #scripture-caption {
        font-size: 0.9rem;
    }
    #video-gallery {
        padding: 2rem 1rem;
    }

    #video-gallery h1 {
        font-size: 2.5rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}
