.emergency-resources {
    padding: 20px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: #14c791;
    font-size: 32px;
    margin-bottom: 10px;
}

.section-title p {
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

/* Tab Navigation */
.resource-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #dee2e6;
}

.tab-button {
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-button:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #18e7a2;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button.active {
    color: #1ad19a;
}

.tab-button.active:after {
    transform: scaleX(1);
}

.tab-button:hover:not(.active) {
    color: #495057;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Search and Filter */
.search-container {
    max-width: 600px;
    margin: 0 auto 25px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #0bdb7a;
    outline: none;
    box-shadow: 0 2px 10px rgba(26, 118, 209, 0.15);
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 30px;
    color: #495057;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #1ad19a;
    color: white;
}

.filter-btn:hover:not(.active) {
    background-color: #e1e1e1;
}

/* First Aid Cards */
.first-aid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.emergency-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.emergency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.emergency-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.emergency-badge.critical {
    background-color: #ffebee;
    color: #c62828;
}

.emergency-badge.urgent {
    background-color: #fff8e1;
    color: #ff8f00;
}

.card-body {
    padding: 20px;
}

.card-body p {
    margin-top: 0;
}

.card-body h4 {
    margin: 15px 0 10px;
    color: #333;
}

.card-body ol, .card-body ul {
    padding-left: 20px;
}

.card-body li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.emergency-note {
    margin-top: 15px;
    padding: 10px;
    background-color: #e8f4fd;
    border-left: 4px solid #1ad185;
    border-radius: 0 5px 5px 0;
    font-size: 14px;
}

/* Hospital Finder */
.hospital-finder {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.finder-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.finder-form h3 {
    color: #1ad19a;
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.btn-primary {
    background-color: #1ad166;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
}

.btn-primary:hover {
    background-color: #0db56f;
}

.hospital-results {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

.placeholder-message {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.hospital-card {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.hospital-card:last-child {
    border-bottom: none;
}

.hospital-name {
    font-weight: 600;
    color: #1ad176;
    margin-bottom: 5px;
}

.hospital-address {
    color: #6c757d;
    margin-bottom: 8px;
}

.hospital-contact {
    display: flex;
    gap: 15px;
}

.hospital-phone {
    color: #28a745;
}

.distance {
    color: #6c757d;
    font-size: 14px;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hospital-finder {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .first-aid-cards {
        grid-template-columns: 1fr;
    }
    
    .category-filter {
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    
    .tab-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}