/* homepage.css Welcome Banner Styles */
.welcome-banner {
    background: linear-gradient(to right, rgba(0, 51, 102, 0.7), rgba(0, 119, 182, 0.9)), url('../assets/welcomebanner.png');
background-color: rgba(0, 51, 102, 0.7), rgba(0, 119, 182, 0.9);
background-size: cover; /* Ensures the image covers the whole element */
background-position: center; /* Centers the image */
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    height: 600px;  /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
    margin-bottom: 0;
    transition: opacity 3.5s ease;
}

.banner-content {
    display: flex;
    flex-direction: column;
}

.welcome-banner h1 {
    font-size: 3rem;  /* Large, bold heading for emphasis */
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;  /* Uppercase for a clean, professional look */
    letter-spacing: 2px;
}

.welcome-banner p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 300;
    transform: translateY(-20px);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.cta-btn {
    background-color: #0077B6;
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Text outline for contrast */
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.2);
}

/* Hover Effect */
.cta-btn:hover {
    background-color: transparent; /* Make button transparent */
    color: #fff; /* Change text color to white */
    border-color: #0096c7; /* Change border color */
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 123, 255, 0.2);
    text-shadow: none; /* Remove text shadow for clarity */
}


/* Announcements Section */
.announcement {
    background-color: #f4f6f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 10px;
    text-align: center;
    justify-content: center;
}

.h2title {
    font-family: 'Arial', sans-serif;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0;
    text-align: center;
    margin-top: 0;
    padding-top: 20px;
}

.descritiontitle {
    margin-top: 0;
    font-size: 1.2rem;
    color: #7f8c8d;
    text-align: center;
}

/* Container Layout */
.container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly; /* Add spacing between containers */
    width: 100%;
    margin: 0;
}

/* Left Container */
.left-container {
    width: auto;
    max-height: 700px; /* Set a max height for scroll */
    overflow-y: auto; /* Enables scrolling when content overflows */
    padding-right: 10px; /* Adds some space to avoid content sticking to the right side */
}

/* Right Container */
.right-container {
    width: 50%; /* Adjusted to be 31% for equal width distribution */
}

.third-container {
    width: 31%; /* Adjusted to be 31% for equal width distribution */
    min-width: 320px; /* Ensures it stays responsive */
}

/* Styling for the containers */
.right-container .news-events,
.right-container .public-announcements,
.third-container .contact-info {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: auto;
}




._5v3q ._1dwg {
    padding: 0;
}

.iframe-link {
    margin-right: auto;
    display: block;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.iframe-link iframe {
    border: none;
    padding: 0;
}

.news-events p{
    margin-bottom: 0;
}

.right-container h3 {
    text-align: center;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    margin-top: 0;
}

.right-container p {
    font-size: 1rem;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Third Container */
/* FAQ Section Styles */
.faq {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq h3 {
    font-size: 24px;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.faq-item {
    margin-bottom: 10px;
}

.faq-button {
    background-color: white;
    color: #333;
    padding: 10px;
    width: 100%;
    text-align: left;
    font-size: 18px;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
}

.faq-button::after {
    content: "";
    border-left: 3px solid #007bff;
    height: 12px;
    margin-left: 10px;
    transition: transform 0.3s;
    margin-top: 3px;
}

.faq-button:hover {
    background-color: #f1f1f1;
    border-color: #007bff;
}

.faq-answer {
    display: none;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    margin-top: 5px;
    font-size: 16px;
    color: #555;
}

/* Active state for showing answer */
.faq-answer.active {
    display: block;
}

.faq-button.active::after {
    transform: rotate(90deg);
}



.emergency-hotlines {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
}
.hotline-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.hotline-box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.emergency-actions {
    margin-top: 15px;
}
.emergency-btn {
    display: inline-block;
    padding: 10px 20px;
    background: red;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px;
}
.assistance-form {
    margin-top: 20px;
}
.assistance-form input, .assistance-form textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.assistance-form button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 20px 0;
}
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
}
.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0077B6, #005b8c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}
.news-content {
    padding: 20px;
}
.news-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Carousel Container */
.announcement-carousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    position: relative;
}

/* Carousel Header */
.carousel-header {
    background-color: #0077B6;
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.carousel-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Carousel Slides Container */
.carousel-slides {
    position: relative;
    height: 380px;
    overflow: hidden;
}

/* Individual Announcement Cards */
.announcement-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: #ffffff;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.announcement-card.active {
    opacity: 1;
    z-index: 2;
}

.announcement-header {
    background-color: #f2f8fd;
    padding: 15px 25px;
    border-bottom: 1px solid #e2eaf2;
}

.announcement-title {
    color: #0077B6;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    padding-bottom: 8px;
}

.announcement-date {
    color: #6c757d;
    font-size: 0.9rem;
    display: inline-block;
    background-color: #e0f0ff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.announcement-content-wrapper {
    padding: 68px 48px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 190px;
}

.announcement-content {
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
}

.announcement-content p {
    margin-bottom: 12px;
}

.announcement-content ul {
    padding-left: 20px;
    margin: 12px 0;
}

.announcement-footer {
    background-color: #f9f9f9;
    padding: 12px 25px;
    border-top: 1px solid #eaeaea;
}

.announcement-author {
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Navigation Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(100%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 119, 182, 0.7);
    border-radius: 50%;
    z-index: 3;
    cursor: pointer;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background-color: rgba(0, 119, 182, 1);
    opacity: 1;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* Custom arrows */
.carousel-control-prev::before,
.carousel-control-next::before {
    content: '';
    width: 10px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.carousel-control-prev::before {
    transform: rotate(135deg);
    margin-left: 5px;
}

.carousel-control-next::before {
    transform: rotate(-45deg);
    margin-right: 5px;
}
        
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto 0 auto; /* auto left/right centers it */
    width: 100%;
    gap: 10px; /* optional: spacing between indicators */
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0077B6;
    opacity: 0.5;
    margin: 0 5px;
    cursor: pointer;
}

.indicator.active {
    opacity: 1;
}

/* View All Button */
.view-all-btn {
    text-align: center;
    margin-top: 15px;
}

.view-all-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0077B6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-all-link:hover {
    background-color: #005b8c;
}

/* No Announcements Style */
.no-announcements {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
    }

.fade-in-section.visible {
        opacity: 1;
    transform: none;
    }
    
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.custom-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    width: 70%;
    max-width: 600px;
    animation: modalopen 0.4s;
}

.custom-modal-header {
    padding: 15px;
    background-color: #ffcc00;
    color: #333;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.custom-modal-footer {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ddd;
    align-items: center;
}

.contact-info {
    font-size: 13px;
    color: #666;
    text-align: left;
    max-width: 70%;
    line-height: 1.4;
}

.custom-close-btn {
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.custom-warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.warning-level {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.warning-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #dc3545;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.warning-active {
    background-color: #dc3545;
    color: white;
}

.warning-inactive {
    background-color: #fff;
    color: #dc3545;
}

.warning-severe {
    font-weight: bold;
    color: #dc3545;
}

.warning-reasons {
    margin-top: 15px;
    padding: 0;
}

.warning-reason-item {
    background-color: #f8f9fa;
    border-left: 4px solid #dc3545;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 0 4px 4px 0;
}

.warning-reason-title {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.warning-reason-date {
    font-size: 0.85em;
    color: #6c757d;
}

.warning-reason-text {
    margin-top: 5px;
}

.custom-button {
    background-color: #0066cc;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.custom-button:hover {
    background-color: #005cb3;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-60px);}
    to {opacity: 1; transform: translateY(0);}
}