/* Hotlines Page Styles */

.hotlines-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f9ff;
}

/* Section Title Styling */
.hotlines-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white;
    background: #002e8a;
    text-align: center;
    padding: 1rem 2rem;
    margin: 2rem auto -1.75rem;
    border: 4px solid #002e8a;
    max-width: 600px;
    letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(0, 46, 138, 0.2);
    position: relative;
    z-index: 3;
    transform: translateY(40%);
}

.hotlines-section-title.gray {
    background: #f0f0f0;
    color: #002e8a;
    border-color: #002e8a;
}

/* Emergency Hotlines Section */
.emergency-hotlines {
    background: white;
    border: 4px solid #002e8a;
    border-radius: 12px;
    padding: 5.25rem 2rem 3rem;
    margin-bottom: 3rem;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Emergency Hotline Card */
.emergency-card {
    background: white;
    border: 3px solid #002e8a;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 46, 138, 0.1);
}

.emergency-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 46, 138, 0.2);
}

.emergency-card .icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: #f0f4ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.emergency-card .icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.emergency-card .number {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #002e8a;
    text-decoration: underline;
    margin-bottom: 0.5rem;
}

.emergency-card .service {
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Municipal Contacts Section */
.municipal-contacts {
    background: #f0f0f0;
    padding: 5.25rem 2rem 3rem;
    margin-bottom: 3rem;
    border-top: 4px solid #002e8a;
    border-bottom: 4px solid #002e8a;
}

.municipal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Municipal Contact Card */
.contact-card {
    background: white;
    border: 3px solid #002e8a;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 46, 138, 0.1);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 46, 138, 0.2);
}

.contact-card .seal {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #002e8a;
}

.contact-card .seal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-card .office {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #002e8a;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.contact-card .number {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Barangay Contacts Section */
.barangay-contacts {
    background: #f0f0f0;
    padding: 5.25rem 2rem 3rem;
    margin-bottom: 3rem;
    border-top: 4px solid #002e8a;
    border-bottom: 4px solid #002e8a;
}

.barangay-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.barangay-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #002e8a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.barangay-label.seal {
    flex: 0 0 70px;
}

.barangay-label.name {
    flex: 0 0 180px;
    text-align: center;
}

.barangay-label.number {
    flex: 1;
}

.barangay-label.email {
    flex: 0 0 52px;
    text-align: center;
}

.barangay-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Barangay Contact Row */
.barangay-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 2px solid #002e8a;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.barangay-seal {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border-radius: 50%;
    border: 2px solid #002e8a;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.barangay-seal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barangay-name {
    flex: 0 0 180px;
    background: white;
    border: 2px solid #002e8a;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 700;
    color: #002e8a;
}

.barangay-number {
    flex: 1;
    background: white;
    border: 2px solid #002e8a;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #002e8a;
}

.barangay-email {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    background: white;
    border: 2px solid #002e8a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002e8a;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.barangay-row:nth-child(even) {
    background: #002e8a;
    color: white;
}

.barangay-row:nth-child(even) .barangay-name {
    background: #002e8a;
    border-color: white;
    color: white;
}

.barangay-row:nth-child(even) .barangay-number {
    background: #002e8a;
    border-color: white;
    color: white;
}

.barangay-row:nth-child(even) .barangay-seal {
    border-color: white;
}

.barangay-row:nth-child(even) .barangay-email {
    background: #002e8a;
    border-color: white;
    color: white;
}

.barangay-row:hover {
    transform: translateX(5px);
}

.barangay-email:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 46, 138, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hotlines-container {
        padding: 1rem;
    }

    .emergency-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .municipal-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .barangay-header {
        display: none;
    }

    .barangay-row {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .barangay-name {
        flex: 1;
        min-width: 120px;
    }

    .barangay-number {
        flex: 1;
        min-width: 150px;
    }

    .hotlines-section-title {
        font-size: 1.5rem;
        padding: 1rem;
        margin: 1.5rem auto;
    }
}

@media (max-width: 480px) {
    .barangay-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .barangay-seal {
        width: 60px;
        height: 60px;
    }

    .barangay-name,
    .barangay-number,
    .barangay-email {
        width: 100%;
    }

    .barangay-name {
        text-align: center;
    }

    .barangay-number {
        text-align: left;
    }

    .emergency-card .number {
        font-size: 1.5rem;
    }

    .hotlines-section-title {
        font-size: 1.3rem;
    }
}
