/* ==========================================================================
   Contact Directory & Hotline Cards Styling
   ========================================================================== */

/* Directory Category Section Header */
.directory-group {
    margin-bottom: 2.5rem;
}

.group-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.group-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.group-header h2 i {
    color: #0284c7;
}

/* Hotline Cards Layout Grid */
.hotlines-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* Individual Hotline Card Container */
.hotline-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease-in-out;
    position: relative;
    overflow: hidden;
}

.hotline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Card Icon Box */
.card-icon {
    width: 50px;
    height: 50px;
    background-color: #f1f5f9;
    color: #0284c7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.hotline-card:hover .card-icon {
    background-color: #0284c7;
    color: #ffffff;
}

/* Card Content Details */
.card-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Category Badge Tag */
.card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 0.2rem;
}

/* Hotline Title */
.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Clickable Phone Link */
.card-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0284c7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.card-number:hover {
    color: #0369a1;
    text-decoration: underline;
}

.card-number i {
    font-size: 0.75rem;
}

/* --- Special Card Variations --- */

/* Featured Barangay Cards (Blue Accent Accent) */
.hotline-card.featured {
    border-left: 4px solid #0284c7;
}

/* Emergency Red Accent Cards */
.hotline-card.emergency {
    border-left: 4px solid #ef4444;
}

.hotline-card.emergency .card-icon {
    background-color: #fef2f2;
    color: #ef4444;
}

.hotline-card.emergency:hover .card-icon {
    background-color: #ef4444;
    color: #ffffff;
}

.hotline-card.emergency .card-number {
    color: #dc2626;
}

.hotline-card.emergency .card-tag {
    color: #ef4444;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 640px) {
    .hotlines-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .hotline-card {
        padding: 1rem;
    }
}