/* =====================================================
   MIR RABBY HUMAN RIGHTS
   EMERGENCY SERVICES
   FINAL RESPONSIVE STYLES
===================================================== */


/* =====================================================
   SECTION
===================================================== */

.emergency-section {
    width: 100%;

    padding: 50px 0 80px;

    background: #f8fafc;
}


/* =====================================================
   SECTION HEADING
   Title + Description উপর-নিচে
===================================================== */

.emergency-heading {
    width: 100%;

    margin: 0 auto 35px;

    text-align: center;
}


.emergency-heading h2 {
    margin: 0 0 10px;

    color: var(--primary-color, #0b5d3b);

    font-size: 2rem;

    line-height: 1.3;

    font-weight: 800;
}


.emergency-heading p {
    margin: 0;

    color: var(--text-muted, #64748b);

    font-size: 1rem;

    line-height: 1.6;
}


/* =====================================================
   GRID
===================================================== */

.emergency-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 25px;

    margin-top: 30px;
}


/* =====================================================
   CARD
===================================================== */

.emergency-card {
    min-width: 0;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    padding: 26px 20px 22px;

    text-align: center;

    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}


.emergency-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.10);

    border-color: #0b5d3b;
}


/* =====================================================
   SMALL ICON
   Police / Fire / Ambulance বড় image নেই
===================================================== */

.emergency-card .card-icon {
    width: 64px;

    height: 64px;

    margin: 0 auto 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #dc2626;

    font-size: 2.3rem;

    line-height: 1;
}


/* =====================================================
   CARD TITLE
===================================================== */

.emergency-card h3 {
    margin: 0 0 7px;

    color: #1e293b;

    font-size: 1.15rem;

    line-height: 1.4;

    font-weight: 700;
}


/* =====================================================
   DESCRIPTION
===================================================== */

.emergency-card .desc {
    margin: 0 0 12px;

    color: #64748b;

    font-size: 0.88rem;

    line-height: 1.5;
}


/* =====================================================
   EMERGENCY NUMBER
===================================================== */

.emergency-card h2 {
    margin: 4px 0 18px;

    color: #dc2626;

    font-size: 2.2rem;

    line-height: 1;

    font-weight: 800;

    letter-spacing: 1px;
}


/* Long Number */

.emergency-card h2.long-number {
    font-size: 1.5rem;
}


/* =====================================================
   ACTION BUTTONS
===================================================== */

.emergency-card .card-actions {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: auto;
}


/* =====================================================
   CALL BUTTON
===================================================== */

.emergency-card .btn-call {
    flex: 1;

    min-height: 46px;

    background: #0b5d3b;

    color: #ffffff;

    border: none;

    padding: 10px 14px;

    border-radius: 7px;

    font-size: 0.95rem;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    text-decoration: none;
}


.emergency-card .btn-call:hover {
    background: #08472d;

    transform: translateY(-1px);
}


/* =====================================================
   COPY BUTTON
===================================================== */

.emergency-card .btn-copy {
    width: 48px;

    min-width: 48px;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f1f5f9;

    color: #334155;

    border: 1px solid #cbd5e1;

    padding: 10px;

    border-radius: 7px;

    font-size: 1rem;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.emergency-card .btn-copy:hover {
    background: #e2e8f0;

    color: #0f172a;

    border-color: #94a3b8;
}


/* =====================================================
   TOAST MESSAGE
===================================================== */

.emergency-message {
    position: fixed;

    bottom: 30px;

    right: 30px;

    max-width: calc(100vw - 40px);

    background: #0f172a;

    color: #ffffff;

    padding: 12px 24px;

    border-radius: 8px;

    font-size: 0.95rem;

    line-height: 1.4;

    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.3);

    opacity: 0;

    visibility: hidden;

    transform: translateY(20px);

    transition: all 0.3s ease;

    z-index: 9999;
}


.emergency-message.show {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .emergency-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .emergency-section {
        padding: 45px 0 60px;
    }


    .emergency-heading {
        margin-bottom: 28px;
    }


    .emergency-heading h2 {
        font-size: 1.7rem;
    }


    .emergency-heading p {
        font-size: 0.95rem;

        padding: 0 10px;
    }


    .emergency-grid {
        grid-template-columns: 1fr;

        gap: 18px;

        margin-top: 25px;
    }


    .emergency-card {
        padding: 24px 18px 20px;
    }


    .emergency-card .card-icon {
        width: 58px;

        height: 58px;

        font-size: 2.1rem;
    }


    .emergency-card h3 {
        font-size: 1.1rem;
    }


    .emergency-card h2 {
        font-size: 2rem;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 400px) {

    .emergency-section {
        padding-top: 40px;
    }


    .emergency-heading h2 {
        font-size: 1.5rem;
    }


    .emergency-heading p {
        font-size: 0.9rem;
    }


    .emergency-card {
        padding: 22px 15px 18px;
    }


    .emergency-card h2 {
        font-size: 1.9rem;
    }


    .emergency-card h2.long-number {
        font-size: 1.35rem;
    }


    .emergency-card .btn-call {
        font-size: 0.9rem;

        padding: 9px 10px;
    }


    .emergency-card .btn-copy {
        width: 44px;

        min-width: 44px;

        height: 44px;
    }


    .emergency-message {
        right: 15px;

        bottom: 20px;

        left: 15px;

        max-width: none;

        text-align: center;
    }

}


/* =====================================================
   DARK MODE
===================================================== */

body.dark-theme .emergency-section {
    background: #0f172a;
}


body.dark-theme .emergency-card {
    background: #1e293b;

    border-color: #334155;
}


body.dark-theme .emergency-card h3 {
    color: #f8fafc;
}


body.dark-theme .emergency-card .desc {
    color: #94a3b8;
}


body.dark-theme .emergency-card h2 {
    color: #ef4444;
}


body.dark-theme .emergency-card .card-icon {
    color: #ef4444;
}


body.dark-theme .emergency-card .btn-copy {
    background: #334155;

    color: #f8fafc;

    border-color: #475569;
}


body.dark-theme .emergency-card .btn-copy:hover {
    background: #475569;

    color: #ffffff;
}
