/* Navigation Bar Styles */
.main-nav {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.language-center {
    margin-left: auto;
    margin-right: auto;
}

/* Language Switcher Styles */
.language-dropdown {
    position: relative;
    display: inline-block;
    /* margin: 0 auto; */
}

.language-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.language-btn:hover {
    background-color: #f0f0f0;
}

.language-btn img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    border-radius: 50%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 8px;
    overflow: hidden;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.language-option:hover {
    background-color: #f0f0f0;
}

.language-option img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
}

.language-dropdown:hover .dropdown-content {
    display: block;
}

.nav-logo {
    height: 50px; /* Adjust as needed */
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.nav-logo-link {
    margin-right: 2rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    margin: 0 1rem; /* Use horizontal margin for spacing */
    white-space: nowrap; /* Prevent link text from wrapping */
    transition: color 0.3s ease;
}

.nav-links .btn-secondary {
    margin-left: auto; /* Pushes the login button to the far right */
}

.nav-links a:hover {
    color: #007bff;
}

/* General Body Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #e9ecef, #f9f9f9 15%, #f9f9f9 85%, #e9ecef);
    color: #444;
    padding-top: 70px; /* Add padding to body to prevent content from being hidden by the fixed nav */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 2rem 0;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1501504905252-473c47e087f8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-title-container {
    display: flex;
    flex-direction: column; /* Stack logo and title vertically */
    justify-content: center;
    align-items: center;
    gap: 1rem; /* Adjust gap for vertical layout */
    margin-bottom: 1rem;
}

.hero-logo {
    height: 80px; /* You can adjust the size */
    width: auto;  /* Maintain aspect ratio */
    border-radius: 8px; /* Soft rounded corners instead of a circle */
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content h1 {
    font-family: 'Merriweather', serif;
    font-size: 3.5rem;
    margin-bottom: 0; /* Adjusted margin */
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Cards Layout */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card.full-width-card {
    grid-column: 1 / -1;
}

.card h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    color: #0056b3;
    margin-bottom: 1rem;
}

.card h2 i {
    margin-right: 10px;
    color: #007bff;
}

.card p {
    font-size: 1rem;
}

.card a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.card a:hover {
    text-decoration: underline;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-right: 10px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.btn:not(.btn-primary) {
    background-color: #ffc107;
    color: #333;
}

.btn:not(.btn-primary):hover {
    background-color: #e0a800;
    transform: scale(1.05);
}


/* Gallery and Video */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Create a 2-column grid */
    gap: 1rem;
    margin-top: 1rem;
}

.gallery img {
    width: 100%;
    height: 250px; /* Give all images a fixed height */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* List Styles */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: #f0f8ff;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-left: 5px solid #007bff;
    border-radius: 5px;
}

/* Footer */
.footer {
    background: #343a40;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-notice {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 0.5rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Contact Page Specifics */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
/* Notice Card Style */
.notice-card {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-left: 5px solid #ffc107;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.notice-card h4 {
    margin-top: 0;
    color: #d48806;
}

/* Program Category Styles */
.program-category {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.program-category:last-of-type {
    border-bottom: none;
}

.program-category h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    color: #0056b3;
    margin-bottom: 0.5rem;
}

.program-category p {
    margin-bottom: 1rem;
    font-style: italic;
    color: #666;
}

.program-category ul {
    list-style-type: '✓ ';
    padding-left: 20px;
}

.program-category ul li {
    background: none;
    border: none;
    padding: 5px 0;
}
/* Story Gallery Styles */
.story-gallery-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-gallery {
    position: relative;
    width: 100%;
    min-height: 400px; /* Give it a minimum height */
}

.story-gallery::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.story-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 8px;
    overflow: hidden;
}

.story-card.active-story {
    opacity: 1;
    z-index: 10;
}


.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    line-height: 1;
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.story-card img {
    width: 100%;
    height: 100%; /* Make image fill the card */
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.story-card:hover img {
    transform: scale(1.15); /* Scale the image on hover */
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(0px); /* Start with no blur */
}

.story-card:hover .story-overlay {
    opacity: 1;
    backdrop-filter: blur(8px); /* Apply blur on hover */
}

.story-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
/* License Image Styles */
.license-image-container {
    width: 100%;
    max-width: 700px; /* Adjust max-width as needed */
    margin: 2rem auto; /* Center the image container */
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden; /* Ensure the image stays within the rounded corners */
}

.license-image-container img {
    width: 100%;
    height: auto;
    display: block; /* Remove any extra space below the image */
}
/* Legal Notice Styles */
.legal-notice {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 5px solid #dc3545; /* Red color for warning */
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2.5rem;
}

.legal-notice h4 {
    margin-top: 0;
    color: #dc3545;
    font-family: 'Merriweather', serif;
}

.legal-notice h4 i {
    margin-right: 10px;
}
/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none; /* Hidden by default */
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1010;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.back-to-top-btn.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: #0056b3;
}

/* Page Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    animation: fadeIn 0.8s ease-out;
}
/* Login Form Enhancements */
.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-group-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.login-form .form-group-inline label {
    margin-bottom: 0; /* Reset bottom margin for inline label */
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    display: none; /* Hidden by default */
}

.btn .btn-loader {
    margin-left: 8px;
}
.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
}
/* FAQ Page Styles */
.faq-container {
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Merriweather', serif;
    color: #0056b3;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question i {
    transition: transform 0.3s ease-in-out;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    padding: 0 1rem;
}

.faq-answer p {
    padding: 1rem 0;
    margin: 0;
    line-height: 1.8;
}
.faq-category-title {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: #343a40;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}