* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Cairo', sans-serif;
    background: white;
    color: #222;
    overflow-x: hidden;
}

a { 
    text-decoration: none; 
}



.insurance-hero {
    margin: 40px;
    position: relative;
    height: 250px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(rgba(18, 141, 207, 0.712), rgba(18, 201, 207, 0.705)), url("../assets/image/vecteezy_busy-hospital-corridor-with-diverse-doctors-in-motion_27185469.jpg");
    background-size: cover;

}

.hero-illustration {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;

}


.hero-icons{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    opacity: 0.50;
    margin: 50px;
}
.hero-icons-column {
    display: flex;
    flex-direction: column; 
    gap: 120px;
    position: absolute;


}
.hero-icons-row {
    display: flex;
    flex-direction: row; 
    gap: 120px;

}
.hero-icon-big {
    font-size: 50px;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: right;
    padding: 30px;

}

.hero-content h1 {
    color: white;
    font-size: 25px;
    font-weight: bold;
}

.line {

    width: 350px;
    height: 15px;
    border: 3px solid #ffd166;
    border-color: #ffd166 transparent transparent transparent;
    border-radius: 50%/100% 100% 0 0;
    margin-top: 5px;
    margin-bottom: 20px;
    transform: scaleX(-1);
}

.hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 650px;
    margin: 0 auto;
}

.hero-badge-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}


.insurance-main {
    margin:  0 70px;
}

.filter-section {
    padding: 22px 80px;
    
}

.filter-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 5px;
    border: 2px solid #e0ecf8;
    background: #f7fafd;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.filter-tab i { 
    font-size: 15px; 
}

.filter-tab:hover {
    border-color: #128CCF;
    color: #128CCF;
    background: #edf6ff;
}

.filter-tab.active {
    background: #128CCF;
    border-color: #128CCF;
    color: #fff;
    box-shadow: 0 4px 14px rgba(18,140,207,0.3);
}

.search-section {
    padding: 22px 80px;
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-wrap {
    flex: 1;
    min-width: 220px;
}

.search-input-wrap input {
    width: 100%;
    padding: 5px 20px;
    border-radius: 25px;
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    outline: none;
}

.search-input-wrap input:focus {
    border-color: #128CCF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(18,140,207,0.1);
}

.search-input-wrap input::placeholder { 
    color: #aaa; 
}

.map-btn {
    width: 50%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 30px;
    border-radius: 30px;
    border: none;                     
    background: #128CCF;              
    color: #fff; 
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.map-btn:hover {
    background: #0f76b3;  
}
.map-btn i { 
    font-size: 16px; 
}

.results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.results-count {
    font-size: 14px;
    color: #888;
    font-weight: 600;
}
.results-count span {
    color: #128CCF;
    font-weight: 700;
    font-size: 16px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .cards-grid { grid-template-columns: 1fr; }
}

.ins-card {
    width: 100%;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    animation: cardIn 0.4s ease both;
    gap: 10px;
    min-height: 150px;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ins-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(18,140,207,0.14);
}

.card-img-wrap {
    position: relative;
    height: 100%;
    width: 40%;
    flex-shrink: 0;
    overflow: hidden;
    background: #e8f4fd;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}


.card-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.emergency-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #ff4d4d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.emergency-tag i { 
    font-size: 10px; 
}

.no-emergency-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-right: 10px;
}

.card-body {
    padding: 50px 16px 10px 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-name {
    font-size: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #c9c8c8;
    font-weight: 700;
    color: #1a2a3a;
    line-height: 1.3;
}

.card-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #888;
}
.card-depts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dept-tag {
    background: #edf6ff;
    color: #128CCF;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.dept-more {
    background: #f0f4f8;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.card-footer {
    padding: 16px 14px;
    margin-top: auto;
}

.call-now-btn {
    width: fit-content;
    padding: 8px 30px;
    border-radius: 30px;
    border: none;
    background: #128CCF;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    gap: 8px;
    transition: background 0.25s, transform 0.2s;
}

.call-now-btn:hover {
    background: #0e72a8;
}

.call-now-btn i { 
    font-size: 14px; 
}


.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 50px 0 20px;
}

.page-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid #dce8f5;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
     align-items: center; 
     justify-content: center;
    transition: all 0.2s;
}
.page-btn:hover { 
    border-color: 
    #128CCF; color: #128CCF; 
}
.page-btn.active {
    background: #128CCF;
    border-color: #128CCF;
    color: #fff;
    box-shadow: 0 4px 12px rgba(18,140,207,0.3);
}
.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.page-btn.arrow { 
    font-size: 13px; 
}

.map-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center; 
    justify-content: center;
    z-index: 9999; padding: 20px;
    backdrop-filter: blur(4px);
}
.map-overlay.open { 
    display: flex; 
}

.map-modal {
    background: #fff;
    border-radius: 5px;
    width: 100%; 
    max-width: 1000px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.map-filter-bar {
    display: flex;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid #eef2f7;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
}

.map-filter-bar::-webkit-scrollbar { 
    display: none; 
}

.map-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid #e0ecf8;
    background: #f7fafd;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: 0.2s;
}

.map-filter-btn:hover {
    border-color: #128CCF;
    color: #128CCF;
    background: #edf6ff;
}

.map-filter-btn.active {
    background: #128CCF;
    border-color: #128CCF;
    color: #fff;
}


.map-modal-header {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #eef2f7;
}
.map-modal-title {
    font-size: 16px; 
    font-weight: 700; 
    color: #128CCF;
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.map-close-btn {
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    border: none;
    background: #f0f4f8; 
    color: #888; 
    font-size: 15px; 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: 0.2s;
}
.map-close-btn:hover { 
    background: #fde8e8; 
    color: #e53838; 
}

.map-frame {
    width: 100%; 
    height: 380px; 
    border: none;
    background: #edf6ff;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: #128CCF; 
    font-size: 16px; 
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    display: none;
}
.empty-state.show { 
    display: block; 
}
.empty-state i { 
    font-size: 52px; 
    color: #d0e8f8; 
    margin-bottom: 16px; 
    display: block; 
}
.empty-state h3 { 
    font-size: 18px; 
    color: #888; 
    margin-bottom: 8px; 
}
.empty-state p  { 
    font-size: 14px; 
    color: #bbb; 
}

body.dark-mode { 
    background: #0f1923; 
    color: #ddd; 
}
body.dark-mode .ins-card { 
    background: #16213e; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.2); 
}
body.dark-mode .filter-section ,
body.dark-mode .search-section{
    background: #16213e;
}
body.dark-mode .filter-tab { 
    background: #1e2d40; 
    border-color: #2a3d54; color: #aaa; 
}
body.dark-mode .filter-tab:hover { 
    background: #243040; 
    border-color: #84ccf3; 
    color: #84ccf3; 
}
body.dark-mode .filter-tab.active { 
    background: #128CCF; 
    border-color: #128CCF; 
    color: #fff; 
}
body.dark-mode .search-input-wrap input { 
    background: #0f3460;
    border-color: #1a4a8a;
    color: #e0e0e0;
}
body.dark-mode .card-name { 
    color: #e0e0e0; 
}
body.dark-mode .card-img-wrap { 
    background: #1e2d40; 
}
body.dark-mode .dept-tag { 
    background: #1e3a54; 
    color: #84ccf3; 
}
body.dark-mode .dept-more { 
    background: #243040; 
    color: #888; 
}
body.dark-mode .page-btn { 
    background: #192333; 
    border-color: #2a3d54; 
    color: #aaa; 
}
body.dark-mode .page-btn:hover { 
    border-color: #84ccf3; 
    color: #84ccf3; 
}
body.dark-mode .map-modal {
    background: #192333; 
}
body.dark-mode .map-modal-header {
    border-color: #2a3d54; 
}
body.dark-mode .map-close-btn {
    background: #1e2d40; 
    color: #aaa; 
}
body.dark-mode .filter-title {
    color: #666; 
}
body.dark-mode .results-count { 
    color: #666; 
}


body.dark-mode .map-filter-bar { 
    border-color: #2a3d54; 
}
body.dark-mode .map-filter-btn {
    background: #1e2d40; 
    border-color: #2a3d54;
    color: #aaa; 
}
body.dark-mode .map-filter-btn.active { 
    background: #128CCF; 
    color: #fff; 
}


@media (max-width: 1024px) {
    .insurance-main {
        margin: 30px;
    }
    .filter-section,
    .search-section {
        padding: 18px 30px;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .card-body {
        padding: 30px 14px 10px 20px;
    }
}

@media (max-width: 768px) {
    .insurance-hero {
        margin: 15px;
        height: 260px;
    }
    .hero-content h1 {
        font-size: 20px;
    }
    .hero-content p {
        font-size: 14px;
    }
    .hero-badge-row {
        display: none;
    }
    .hero-icons {
        display: none;
    }

    .insurance-main {
        margin: 15px;
        padding: 16px 0 40px;
    }

    .filter-section {
        padding: 14px 15px;
    }
    .filter-tabs {
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    .filter-tab {
        font-size: 13px;
        padding: 7px 14px;
        flex-shrink: 0;
    }

    .search-section {
        padding: 14px 15px;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }
    .search-input-wrap {
        width: 100%;
    }
    .map-btn {
        width: 100%;
        justify-content: center;
    }

    .results-meta {
        padding: 0 4px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .ins-card {
        min-height: 130px;
    }
    .card-body {
        padding: 18px 14px 10px 16px;
    }
    .card-img-wrap {
        width: 120px;
        min-width: 120px;
    }
    .card-name {
        font-size: 13px;
    }
    .call-now-btn {
        padding: 7px 20px;
        font-size: 13px;
    }
    .page-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .map-modal {
        border-radius: 12px;
    }
    .map-frame {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .insurance-hero {
        margin: 10px;
        padding: 30px 15px;
        border-radius: 5px;
    }

    .hero-content {
        max-width: 100%;
        padding: 25px 20px;
        display: flex;
        text-align: center;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .hero-content h1 {
        font-size: 18px;
    }
    .line {
        width: 300px;
    }
    .hero-content p {
        font-size: 13px;
    }

    .insurance-main {
        margin: 10px;
        padding: 10px 0 30px;
    }

    .filter-section {
        padding: 10px 10px;
    }
    .filter-tab {
        font-size: 12px;
        padding: 6px 12px;
        gap: 5px;
    }
    .filter-tab i {
        font-size: 13px;
    }

    .search-section {
        padding: 10px 10px;
        margin-bottom: 12px;
    }

    .ins-card {
        flex-direction: column;
        min-height: unset;
    }

    .card-img-wrap {
        order: -1;
        width: 100%;
        min-width: unset;
        height: 170px;
        padding: 0;
        background: #e8f4fd;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .card-right {
        padding-right: 0;
    }
    .card-body {
        padding: 14px 14px 8px 14px;
    }
    .card-footer {
        padding: 10px 14px 14px;
    }
    .call-now-btn {
        width: 100%;
        justify-content: center;
    }

    .dept-tag {
        font-size: 10px;
        padding: 2px 8px;
    }

    .pagination-wrap {
        gap: 6px;
    }
    .page-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .map-modal {
        border-radius: 10px;
    }
    .map-frame {
        height: 250px;
    }
    .map-modal-header {
        padding: 14px 16px;
    }
}