/* --- GLOBAL STYLES --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    background-color: white; 
    color: #333; 
    line-height: 1.6; 
}

.container { 
    max-width: 1000px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

/* --- HERO STYLING --- */
.hero { 
    position: relative; 
    width: 100%; 
    height: 500px; 
    padding-bottom: 550px; 
    margin-top: 70px;
}

.hero-img { 
    width: 100%; 
    height: 400px; 
    object-fit: cover; 
    filter: brightness(0.7); 
}

.hero-text { 
    position: absolute; 
    top: 100px; 
    right: 50px; 
    color: white; 
    text-align: right; 
}

.hero-text h1 { 
    font-size: 3rem; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); 
}

.feature-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    background-image: url("../../images/image_2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 25px;
}

.f-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.icon-box { 
    width: 50px; 
    height: 50px; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
}

.blue-grad { 
    background: linear-gradient(to bottom, #60efff, #0061ff); 
}

.orange-grad { 
    background: linear-gradient(to bottom, #ff9d6c, #e67e22); 
}

/* --- ABOUT SECTION --- */
.about-section { 
    display: flex; 
    gap: 40px; 
    align-items: center; 
    margin-top: 100px; 
}

.side-img { 
    width: 400px; 
    height: 250px; 
    border-radius: 8px; 
    object-fit: cover; 
}

/* --- OVERVIEW PANEL --- */
.overview-panel { 
    background: #ddd; 
    border-radius: 10px; 
    padding-bottom: 20px; 
    overflow: hidden; 
}

.panel-header {
    margin-top: 30px; 
    background: #eee; 
    text-align: center; 
    padding: 15px; 
    font-size: 1.5rem; 
    font-weight: bold; 
}

.stat-capsules { 
    display: flex; 
    justify-content: space-around; 
    padding: 20px; gap: 10px; 
}

.capsule { 
    padding: 8px 15px; 
    border-radius: 20px; 
    color: black; 
    font-weight: bold; 
    font-size: 0.8rem; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.capsule span {
    padding: 2px 8px; 
    border-radius: 10px; 
}

.capsule .centers { background: green; color: black; }
.capsule .capacity { background: orange; color: white; }
.capsule .evacuees { background: red; color: white; }
.capsule .assistance { background: green; color: white; }

.capsule.cyan, .capsule.blue, .capsule.red, .capsule.green { 
    background: cyan; color: black; 
}

.data-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #ccc; 
}

.data-table th { 
    background: #bbb; 
    padding: 12px; 
    border-top: 3px solid #e67e22; 
    border-bottom: 2px solid #999; 
}

.data-table td { 
    padding: 12px; 
    text-align: center; 
    border-bottom: 1px solid #bbb; 
}

.dot { 
    height: 10px; width: 10px; 
    border-radius: 50%; 
    display: inline-block; 
    margin-right: 5px; 
}

.dot.red { background: red; }
.dot.orange { background: orange; }
.dot.green { background: #2ecc71; }

.table-footer-info {
    text-align: center;
    width: 100%;
    padding: 15px 0;
    font-weight: bold;
}

/* --- UPDATED MISSING PERSONS CAROUSEL --- */
.missing-persons {
    background-color: #ddd; 
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.missing-persons h3 {
    text-align: center;
    margin-bottom: 20px;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.carousel-view {
    overflow: hidden; /* Hides the cards outside the 3-card window */
    width: 100%;
    max-width: 900px; /* Adjust based on card width */
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out; /* Smooth sliding effect */
}

.person-card { 
    background: white; 
    border-radius: 10px; 
    padding: 20px; 
    min-width: calc(33.33% - 14px); /* Forces exactly 3 cards per view */
    flex-shrink: 0;
    text-align: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.avatar-box { 
    background: #eee; 
    height: 150px; /* Height increased for better photo display */
    width: 100%;
    margin-bottom: 10px; 
    font-size: 3rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-position: center;
    background-size: cover;
}

.arrow { 
    background: #e67e22; 
    color: white; 
    border: none; 
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.arrow:disabled {
    background: #bbb;
    cursor: not-allowed;
    opacity: 0.5;
}

.status-tag {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}

/* New Specific Classes */
.status-red { 
    color: #d9534f; /* Alert Red */
}

.status-green { 
    color: #28a745; /* Success Green */
}

/* --- BUTTONS --- */
.report-btn { 
    background: #e67e22; 
    color: white; 
    border: none; 
    padding: 8px 15px; 
    border-radius: 5px; 
    cursor: pointer; 
    margin-top: 10px; 
    width: 100%;
}

.action-buttons { 
    text-align: center; 
    margin-top: 30px; 
}

.btn-cyan { 
    background: #60efff; 
    border: none; 
    padding: 12px 25px; 
    border-radius: 20px; 
    font-weight: bold; 
    margin: 5px 10px; 
    cursor: pointer;
    transition: 0.3s;
}

.btn-cyan:hover {
    filter: brightness(0.9);
}

/* --- FOOTER --- */
.main-footer { 
    background: #1a2a3a; 
    color: white; 
    padding: 50px 20px; 
    margin-top: 50px; 
}

.newsletter { 
    display: flex; 
    justify-content: space-between; 
    max-width: 1000px; 
    margin: 0 auto; 
    align-items: center; 
}

.input-group { 
    border-bottom: 1px solid #fff; 
    padding: 5px; 
    width: 400px; 
    display: flex; 
    justify-content: space-between; 
}

.input-group input { 
    background: transparent; 
    border: none; 
    color: white; 
    width: 90%; 
    outline: none; 
}

/* Modal Overlay Styling */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* Dim background */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

.modal-body {
    display: flex;
    gap: 30px;
}

.modal-image img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.description-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- MOBILE VIEW ADAPTATIONS --- */
@media (max-width: 768px) {
    .hero { 
        height: auto; 
        padding-bottom: 0; 
        margin-top: 60px; 
    }
    
    .hero-img { 
        height: 300px; 
    }

    .hero-text { 
        right: 20px; 
        top: 50px; 
        text-align: center; 
        left: 20px; 
    }

    .hero-text h1 { 
        font-size: 1.8rem; 
    }

    .feature-overlay {
        position: static; transform: none; flex-direction: column;
        align-items: center; padding: 40px 20px; background-image: none;
        background-color: #f4f4f4;
    }

    .f-card { 
        width: 100%; 
        max-width: 300px; 
    }

    .about-section { 
        flex-direction: column; 
        text-align: center; 
        margin-top: 40px; 
    }

    .side-img { 
        width: 100%; 
        height: auto; 
    }

    .stat-capsules { 
        flex-wrap: wrap; 
        justify-content: center; 
    }

    /* For Mobile: Show 1 card at a time or stack */
    .person-card { 
        min-width: 100%; 
    }

    .carousel-view { 
        max-width: 300px; 
    }

    .btn-cyan { 
        display: block; 
        width: 100%; 
        margin: 10px 0; 
    }

    .newsletter { 
        flex-direction: 
        column; text-align: 
        center; gap: 20px; 
    }
    .input-group { 
        width: 100%; 
    }

    .modal-body { 
        flex-direction: column; 
    }

    .modal-image img { 
        width: 100%; height: 250px; 
    }

    /* Hide the data table on mobile */
    .overview-panel .data-table {
        display: none;
    }

    /* Optional: Center the capsules and add space now that the table is gone */
    .stat-capsules {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
    }

    .capsule {
        width: 90%; /* Make capsules wider on mobile for better visibility */
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.4rem; }
    .panel-header { font-size: 1.2rem; }
}