:root {
    --primary: #F04E30!important;
    --primary-hover: #d63b1f!important;
    --text: #58595B!important;
    --text-dark: #454545!important;
    --black: #000000!important;
    --white: #FFFFFF;
    --bg-back: #F6F6F6;
    --border: #e5e7eb;
    --shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)!important;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif!important;
    color: var(--text)!important;
    line-height: 1.6!important;
    overflow-x: hidden!important;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease!important; }
ul { list-style: none; }
input, select, textarea, button { font-family: 'Montserrat', sans-serif!important; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
header {
    background: var(--white);
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-top { padding: 12px 0; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

/* Logo */
.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1002;
}
.logo span { color: var(--primary); }
.logo i { font-size: 20px; color: var(--primary); }

/* Search Bar */
.search-wrapper {
    flex: 1;
    max-width: 450px;
    margin: 0 20px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 20px;
    border: 2px solid var(--bg-back);
    background: var(--bg-back);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    transition: 0.3s;
}

.search-input:focus {
    background: var(--white);
    border-color: var(--primary);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Actions Area */
.actions-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.desktop-lang {
    position: relative;
    display: flex;
    align-items: center;
}

.lang_opt {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid #dee2e6 !important; 
    border-radius: 25px;
    padding: 8px 30px 8px 12px;
    font-size: 13px;
    color: #F04E30; 
    font-weight: 500;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right .7em top 50%;
    background-size: .65em auto;
}

.lang_opt:hover {
    border-color: #aaa;
}

.btn-quote {
    background: var(--primary);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
}
.btn-quote:hover { background: var(--primary-hover); transform: translateY(-1px); }

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--black);
    z-index: 1002;
}

/* --- NAVIGATION (DESKTOP) --- */
.nav-bar-wrapper {
    background: var(--white);
    border-top: 1px solid #f1f1f1;
    position: relative;
    z-index: 999;
}

.ms-menu-inner .main-menu {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list-item { position: relative; }

.nav-list-item > .nav-link, 
.nav-list-item > .has-arrow > .nav-link {
    display: flex;
    align-items: center;
    padding: 15px 0;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
}

.nav-list-item:hover > .nav-link, 
.nav-list-item:hover > .has-arrow > .nav-link {
    color: var(--primary);
}

/* Level 2 Dropdown */
.nav-list-item .drop-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary);
    z-index: 1000;
    padding: 0;
    list-style: none;
}

.nav-list-item:hover > .drop-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

.drop-submenu {
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.drop-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
    width: 100%;
}

.drop-submenu:hover > .has-arrow > .drop-link,
.drop-link:hover {
    background: #fdfdfd;
    color: var(--primary);
}

/* Level 3 Dropdown */
.drop-menu .drop-menu.submenu-right {
    top: 0;
    left: 100%;
    margin-top: 0;
    display: none;
    border-top: 3px solid var(--primary);
    height: auto;
    min-height: 100%;
}

.drop-submenu:hover > .drop-menu.submenu-right {
    display: block;
}

.drop-menu li a:not(.drop-link) {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #f9f9f9;
}

.drop-menu li a:not(.drop-link):hover {
    color: var(--primary);
    background: #fff5f5;
}

.fa-chevron-down { font-size: 10px; margin-top: 2px; }
.fa-chevron-right { font-size: 10px; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MOBILE MENU --- */
.mobile-nav-overlay {
    display: none; 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.5); z-index: 1005; 
}
.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--white); z-index: 1010; transition: 0.4s ease;
    padding: 20px; overflow-y: auto;
}
.mobile-menu.active { right: 0; }

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

#mobile-cloned-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}
#mobile-cloned-menu .nav-list-item {
    border-bottom: 1px solid #f1f1f1;
}
#mobile-cloned-menu .nav-link {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
}
#mobile-cloned-menu .drop-menu,
#mobile-cloned-menu .drop-menu.submenu-right {
    position: static;
    width: 100%;
    box-shadow: none;
    border-top: none;
    display: none;
    background: #fcfcfc;
    padding-left: 15px;
}
#mobile-cloned-menu .drop-link {
    font-weight: 600;
    color: #444;
    padding: 12px 0;
}

.has-arrow.open > .nav-link,
.has-arrow.open > .drop-link {
    color: var(--primary);
}
.has-arrow.open .fa-chevron-down,
.has-arrow.open .fa-chevron-right {
    transform: rotate(90deg);
    transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: calc(100vh - 120px);
    background: url('https://images.unsplash.com/photo-1638202993928-7267aad84c31?q=80&w=1974&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, #FFFFFF 35%, rgba(255,255,255,0.85) 55%, rgba(255,255,255,0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-left {
    max-width: 50%;
    padding-left: 10px;
}

.hero-left h1 {
    font-size: 54px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 20px;
}
.hero-left h1 span { color: var(--primary); }

.hero-left p {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 35px;
    max-width: 90%;
}

.hero-right { width: 450px; max-width: 100%; }

.quote-card1 {
    background: rgba(255, 255, 255, 0.98);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--white);
}

.quote-card1 h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 25px;
}

.custom-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-back);
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    transition: 0.3s;
}
.custom-input:focus {
    background: var(--white);
    border-color: var(--primary);
    outline: none;
}

.phone-flex { display: flex; gap: 10px; margin-bottom: 15px; }

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(240, 78, 48, 0.2);
}
.submit-btn:hover { background: var(--black); transform: translateY(-2px); }

/* --- FOOTER SECTION --- */
.main-footer {
    background-color: #003B73; 
    color: var(--white);
    padding: 60px 0 30px;
    font-size: 14px;
    position: relative;
}

.main-footer a {
    color: #B0CBE6;
    text-decoration: none;
    transition: 0.3s;
}
.main-footer a:hover {
    color: var(--primary);
    padding-left: 5px; 
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.address-col {
    grid-column: span 1.5; 
}

.address-block {
    margin-bottom: 15px;
}
.address-block strong {
    color: var(--white);
    display: block;
    margin-bottom: 4px;
}
.address-block p {
    color: #B0CBE6;
    font-size: 13px;
    line-height: 1.5;
}

.footer-contact-card {
    background: linear-gradient(90deg, #D9EAF7 0%, #CDE3F5 100%);
    border-radius: 16px;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 40px;
    color: #333;
}

.contact-info-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.c-icon {
    width: 50px; height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.whatsapp-bg { color: #25D366; }

.c-text { display: flex; flex-direction: column; }
.c-text span { font-size: 12px; font-weight: 600; color: #666; }
.c-text a { 
    color: #003B73; 
    font-weight: 700; 
    font-size: 16px; 
    padding-left: 0 !important; 
}

.c-sep { width: 1px; height: 40px; background: #aaa; }

.gptw-badge {
    background: #F04E30;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 800;
    font-size: 12px;
    line-height: 1.1;
    border-radius: 4px;
    position: relative;
}
.certified-strip {
    background: #003B73;
    font-size: 10px;
    padding: 2px;
    margin-top: 5px;
}

.social-group { display: flex; gap: 10px; }
.s-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white !important;
    font-size: 18px;
    padding: 0 !important;
    transition: transform 0.3s;
}
.s-icon:hover { transform: translateY(-3px); }

.yt { background: #FF0000; }
.in { background: #0077B5; }
.fb { background: #1877F2; }
.ig { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.disclaimer {
    font-size: 11px;
    color: #8AA8C7;
    margin-bottom: 15px;
    line-height: 1.5;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.copyright-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #B0CBE6;
}

.dmca-badge {
    background: #85C039;
    color: #000;
    padding: 2px 6px;
    font-weight: 700;
    font-size: 10px;
    border-radius: 2px;
}

#scrollTopBtn {
    display: none; 
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #F04E30;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
}

#scrollTopBtn:hover {
    background-color: #d63b1f;
    transform: translateY(-3px);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    /* Hide Desktop Elements */
    .desktop-nav-wrapper, .desktop-lang, .search-wrapper, .btn-quote { 
        display: none; 
    }
    .hamburger { display: block; }
    
    header { padding: 0 10px; }
    
    /* Hero */
    .hero { margin-top: 0px; padding: 30px 0; text-align: center; }
    .hero::before { background: linear-gradient(to bottom, rgba(255,255,255,1) 25%, rgba(255,255,255,0.6)); }
    .hero-content { flex-direction: column; gap: 40px; }
    
    .hero-left { max-width: 100%; }
    .hero-left h1 { font-size: 36px; }
    .hero-right { width: 100%; }

    /* Footer */
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .address-col { grid-column: span 3; }
    
    .footer-contact-card {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .contact-info-group { flex-direction: column; gap: 15px; }
    .c-sep { display: none; }
}

@media (max-width: 600px) {
    .footer-links-grid { grid-template-columns: 1fr; text-align: center; }
    .address-col { grid-column: span 1; }
    .copyright-row { flex-direction: column; gap: 10px; }
}


     .breadcrumb-section { background: #fff; padding: 15px 0; border-bottom: 1px solid #eee; margin-top: 0px; /* Adjusted for header */ }
    .breadcrumbs { display: flex; align-items: center; gap: 8px; list-style: none; font-size: 12px; color: #666; margin: 0; padding: 0; }
    .breadcrumbs li a:hover { color: #F04E30; text-decoration: underline; }
    .breadcrumbs li::after { content: '›'; margin-left: 8px; color: #ccc; font-size: 14px; }
    .breadcrumbs li:last-child::after { content: ''; }
    .breadcrumbs li:last-child { color: #003B73; font-weight: 600; }

     .hl-hero-section { background: #ffffff; padding: 30px 0 45px; margin-bottom: 30px; box-shadow: 0 2px 15px rgba(0,0,0,0.03); border-bottom: 1px solid #eee; }
    .hl-page-title { text-align: center; font-size: 28px; font-weight: 800; color: #2d2d2d; margin-bottom: 25px; font-family: 'Montserrat', sans-serif; }
    .hl-search-container { background: #003B73; padding: 12px; border-radius: 10px; display: flex; gap: 12px; max-width: 1000px; margin: 0 auto; box-shadow: 0 8px 25px rgba(0, 59, 115, 0.25); align-items: center; flex-wrap: wrap; }
    .hl-search-select { flex: 1; background: #ffffff; border: none; padding: 14px 15px; border-radius: 6px; font-size: 14px; outline: none; cursor: pointer; font-family: 'Montserrat', sans-serif; min-width: 150px; }
    .hl-search-input { flex: 2.5; background: #ffffff; border: none; padding: 14px 20px; border-radius: 6px; font-size: 14px; outline: none; font-family: 'Montserrat', sans-serif; min-width: 200px; }
    .hl-btn-search { background: #F04E30; color: white; border: none; padding: 14px 40px; border-radius: 6px; font-weight: 700; text-transform: uppercase; font-size: 14px; cursor: pointer; transition: 0.3s; white-space: nowrap; font-family: 'Montserrat', sans-serif; }
    .hl-btn-search:hover { background: #d63b1f; transform: translateY(-2px); }
    .hl-hero-desc { text-align: center; font-size: 13px; color: #5f6368; max-width: 900px; margin: 25px auto 0; line-height: 1.7; }

     .doc-layout { display: flex; gap: 30px; align-items: flex-start; margin-bottom: 60px; position: relative; }
    .doc-listing-content { flex: 1; min-width: 0; }
    .listing-sidebar { width: 360px; flex-shrink: 0; position: sticky; top: 20px; z-index: 10; }

     .doc-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 25px; margin-bottom: 25px; display: flex; gap: 25px; transition: 0.3s; position: relative; }
    .doc-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: #b3d7ff; }
    .doc-visual { width: 140px; flex-shrink: 0; text-align: center; }
    .doc-img-circle { width: 150px; height: 150px; border-radius: 50%;  border: 3px solid #f0f0f0; margin-bottom: 10px; }
    .doc-info { flex: 1; }
    .doc-name { font-size: 18px; font-weight: 700; color: #003B73; margin-bottom: 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
    .verified-badge { color: #25D366; font-size: 14px; }
    .specialty-tag { background: #E3F2FD; color: #003B73; font-size: 11px; padding: 3px 8px; border-radius: 4px; font-weight: 600; margin-left: 10px; }
    .doc-loc { font-size: 12px; color: #666; margin-bottom: 5px; }
    .doc-rating { font-size: 12px; color: #333; font-weight: 600; margin-bottom: 10px; }
    .star-gold { color: #F4B400; }
    .doc-details-list { font-size: 13px; color: #444; line-height: 1.6; margin-bottom: 10px; }
    .doc-details-list strong { color: #333; }
    .hosp-link { color: #005b9f; font-weight: 600; text-decoration: underline; }
    
    .why-choose-box { background: #F9F9F9; padding: 10px 15px; border-left: 3px solid #25D366; border-radius: 4px; margin-top: 10px; }
    .wc-title { font-size: 12px; font-weight: 700; color: #333; margin-bottom: 4px; }
    .wc-text { font-size: 12px; color: #555; line-height: 1.4; }
    .show-more-btn { display: block; text-align: right; font-size: 11px; color: #005b9f; font-weight: 600; margin-top: 5px; cursor: pointer; }
    
    .doc-actions { width: 180px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
    .btn-doc-action { width: 100%; padding: 10px; border: none; border-radius: 4px; font-size: 12px; font-weight: 700; cursor: pointer; text-transform: uppercase; transition: 0.2s; display: block; text-align: center;}
    .btn-red { background: #F04E30; color: white; }
    .btn-red:hover { background: #d63b1f; }
    .btn-green { background: #25D366; color: white; }
    .btn-green:hover { background: #1ebc57; }

     .mid-page-form { background: linear-gradient(135deg, #003B73 0%, #005b9f 100%); padding: 25px; border-radius: 10px; margin: 30px 0; color: white; position: relative; overflow: hidden; }
    .mpf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
    .mpf-full { grid-column: span 2; }
    .mpf-input { width: 100%; padding: 10px; border-radius: 4px; border: none; font-size: 13px; font-family: 'Montserrat'; }
    .btn-mpf-submit { background: #F04E30; color: white; border: none; padding: 12px; border-radius: 4px; font-weight: 700; width: 50%; margin: 10px auto 0; display: block; cursor: pointer; }

     .sticky-form { background: #003B73; padding: 30px; border-radius: 12px; color: white; box-shadow: 0 15px 30px rgba(0, 59, 115, 0.25); }
    .sticky-form h3 { font-size: 22px; margin-bottom: 5px; font-weight: 700; }
    .sticky-form p { font-size: 13px; margin-bottom: 20px; opacity: 0.8; }
    .sf-group { margin-bottom: 15px; }
    .sf-input { width: 100%; padding: 12px; border-radius: 5px; border: none; font-size: 14px; font-family: 'Montserrat'; }
    .sf-phone { display: flex; gap: 10px; }
    .btn-sf-submit { background: #F04E30; color: white; width: 100%; padding: 14px; border: none; border-radius: 6px; font-weight: 700; font-size: 15px; margin-top: 10px; transition: 0.3s; cursor: pointer; }
    .btn-sf-submit:hover { background: #d63b1f; }

     .pagination-box { display: flex; justify-content: center; gap: 10px; margin-top: 60px; margin-bottom: 40px; }
    .pagination-box .page-numbers { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border: 1px solid #ddd; background: white; border-radius: 6px; font-weight: 600; color: #003B73; transition: 0.3s; font-size: 14px; }
    .pagination-box .page-numbers.current, .pagination-box .page-numbers:hover { background: #003B73; color: white; border-color: #003B73; }

     .seo-content-wrapper { background: #fff; padding-top: 20px; margin-bottom: 50px; border-top: 1px solid #eee; }
    .info-heading { font-size: 20px; font-weight: 700; color: #2d2d2d; margin-top: 25px; margin-bottom: 15px; font-family: 'Montserrat', sans-serif; }
    .info-text { font-size: 13px; color: #555; line-height: 1.7; margin-bottom: 15px; text-align: justify; }
    .editorial-policy-box { background-color: #E8F5E9; border: 1px solid #C8E6C9; border-radius: 8px; padding: 20px; display: flex; align-items: center; gap: 20px; margin: 35px 0; }
    .editor-img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); flex-shrink: 0; }
    .link-box-container { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
    .seo-link-card { background-color: #F8F9FA; border: 1px solid #E9ECEF; border-radius: 10px; padding: 25px; }
    .seo-card-title { font-size: 18px; font-weight: 700; color: #444; margin-bottom: 15px; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; }
    .seo-links-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; }
    .seo-links-list li { font-size: 12px; color: #555; width: 48%; position: relative; padding-left: 15px; }
    .seo-links-list li::before { content: '•'; position: absolute; left: 0; color: #777; font-size: 14px; line-height: 1; }

     @media (max-width: 1024px) {
        .doc-layout { flex-direction: column; }
        .listing-sidebar { width: 100%; position: static; margin-bottom: 30px; }
        .hl-search-container { flex-direction: column; padding: 20px; }
        .hl-search-select, .hl-search-input, .hl-btn-search { width: 100%; }
    }
    @media (max-width: 900px) {
        .doc-card { flex-direction: column; }
        .doc-visual { width: 100%; display: flex; justify-content: center; }
        .doc-actions { width: 100%; flex-direction: row; }
        .seo-links-list li { width: 100%; }
        .editorial-policy-box { flex-direction: column; text-align: center; }
    }
</style>

 <div class="breadcrumb-section">
    <div class="container">
        <ul class="breadcrumbs">
            <li><a href="<?php echo home_url(); ?>">Home</a></li>
            <li><a href="<?php echo get_post_type_archive_link('doctor'); ?>">Doctors</a></li>
            <?php if(is_tax()): ?>
                <li><?php single_term_title(); ?></li>
            <?php else: ?>
                <li>All Doctors</li>
            <?php endif; ?>
        </ul>
    </div>
</div>

<style>
    
 .search-bar-wrapper {
    background-color: #004e86; /* Dark Blue from screenshot */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 1100px;
    margin: 0 auto;
}

.custom-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

 .search-field-group {
    flex: 1;
    position: relative;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 10px; /* Space for icon */
}

.field-icon {
    color: #F04E30; /* Redish icon color */
    font-size: 16px;
    position: absolute;
    left: 15px;
    z-index: 1;
}

.search-select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 15px 15px 15px 40px; /* Left padding makes room for icon */
    font-size: 14px;
    font-weight: 500;
    color: #333;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none; /* Removes default arrow in some browsers */
    -moz-appearance: none;
    /* Custom Arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
}

.btn-main-search {
    background-color: #dc3545; /* Red Button */
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    min-width: 150px;
}

.btn-main-search:hover {
    background-color: #c82333;
}

/* Responsive */
@media (max-width: 900px) {
    .custom-search-form {
        flex-direction: column;
    }
    .search-field-group {
        width: 100%;
    }
    .btn-main-search {
        width: 100%;
    }
} 
</style>

 
<section class="hl-hero-section">
    <div class="container">
        <h1 class="hl-page-title">
            <?php if(is_tax()) { single_term_title(); echo ' in India'; } else { echo 'Best Doctors in India'; } ?>
        </h1>
        
         <div class="search-bar-wrapper">
            <form role="search" method="get" action="<?php echo get_post_type_archive_link('doctor'); ?>" class="custom-search-form">
                
                 <div class="search-field-group">
                    <i class="fas fa-map-marker-alt field-icon"></i>
                    <select name="city" class="search-select">
                        <option value="">All Cities</option>
                        <?php
                        $selected_city = isset($_GET['city']) ? $_GET['city'] : '';
                        $cities = get_terms(['taxonomy' => 'city', 'hide_empty' => true]);
                        foreach ($cities as $city): ?>
                            <option value="<?php echo esc_attr($city->slug); ?>" <?php selected($selected_city, $city->slug); ?>>
                                <?php echo esc_html($city->name); ?>
                            </option>
                        <?php endforeach; ?>
                    </select>
                </div>

                 <div class="search-field-group">
                    <i class="fas fa-stethoscope field-icon"></i>
                    <select name="specialization" class="search-select">
                        <option value="">All Departments</option>
                        <?php
                        $selected_spec = isset($_GET['specialization']) ? $_GET['specialization'] : '';
                        $specs = get_terms(['taxonomy' => 'specialization', 'hide_empty' => true]);
                        foreach ($specs as $spec): ?>
                            <option value="<?php echo esc_attr($spec->slug); ?>" <?php selected($selected_spec, $spec->slug); ?>>
                                <?php echo esc_html($spec->name); ?>
                            </option>
                        <?php endforeach; ?>
                    </select>
                </div>

                 <div class="search-field-group">
                    <i class="far fa-hospital field-icon"></i>
                    <select name="hospital_id" class="search-select">
                        <option value="">All Hospitals</option>
                        <?php
                        $selected_hosp = isset($_GET['hospital_id']) ? $_GET['hospital_id'] : '';
                         $hospitals = get_posts([
                            'post_type' => 'hospital',  
                            'numberposts' => -1,
                            'orderby' => 'title',
                            'order' => 'ASC'
                        ]);
                        foreach ($hospitals as $hosp): ?>
                            <option value="<?php echo esc_attr($hosp->ID); ?>" <?php selected($selected_hosp, $hosp->ID); ?>>
                                <?php echo esc_html($hosp->post_title); ?>
                            </option>
                        <?php endforeach; ?>
                    </select>
                </div>

                <!-- 4. Search Button -->
                <button type="submit" class="btn-main-search">
                    Search
                </button>

            </form>
        </div>
 
    </div>
</section>
 <div class="container doc-layout">
    
      <div class="doc-listing-content">
        
        <?php 
        if ( have_posts() ) : 
            $count = 0;  
            while ( have_posts() ) : the_post(); 
                $count++;
                
                // Get Data
                $thumb = get_the_post_thumbnail_url(get_the_ID(), 'medium');
                $fallback = 'https://via.placeholder.com/150x150.png?text=Doctor';
                $image = $thumb ? $thumb : $fallback;
                
                // Get Terms
                $specs = get_the_terms(get_the_ID(), 'specialization');
                $spec_name = $specs ? $specs[0]->name : 'Specialist';
                
                $locs = get_the_terms(get_the_ID(), 'city');
                $loc_name = $locs ? $locs[0]->name . ', India' : 'India';
                
                 $exp = get_post_meta(get_the_ID(), 'experience_short', true) ?: '20+';
                $desig = get_post_meta(get_the_ID(), 'designation', true) ?: 'Senior Consultant';
                $hosp = get_post_meta(get_the_ID(), 'hospital', true) ?: 'Leading Hospital';
                $rating_count = rand(50, 500); // Demo data
        ?>

         <div class="doc-card">
            <div class="doc-visual">
                <a href="<?php the_permalink(); ?>">
                    <img src="<?php echo esc_url($image); ?>" class="doc-img-circle" alt="<?php the_title(); ?>">
                </a>
            </div>
            <div class="doc-info">
                <div class="doc-name">
                    <a href="<?php the_permalink(); ?>" style="text-decoration:none; color:inherit;">
                        <?php the_title(); ?>
                    </a>
                    <i class="fas fa-check-circle verified-badge"></i>
                    <span class="specialty-tag"><?php echo esc_html($spec_name); ?></span>
                </div>
                <div class="doc-loc"><i class="fas fa-map-marker-alt"></i> <?php echo esc_html($loc_name); ?></div>
                <div class="doc-rating">
                    <span class="star-gold"><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star-half-alt"></i></span> 
                    4.9 (<?php echo $rating_count; ?> Ratings)
                </div>
                <div class="doc-details-list">
                    <strong>Experience:</strong> <?php echo esc_html($exp); ?> Years<br>
                    <strong>Designation:</strong> <?php echo esc_html($desig); ?><br>
                    <strong>Works At:</strong> <span class="hosp-link"><?php echo esc_html($hosp); ?></span>
                </div>
                <div class="doc-excerpt" style="font-size:12px; color:#666; margin-top:8px;">
                    <?php echo wp_trim_words(get_the_excerpt(), 20, '...'); ?>
                </div>
                
                 <div class="why-choose-box">
                    <div class="wc-title">Why Choose <?php the_title(); ?>?</div>
                    <div class="wc-text">✔ Top specialist in <?php echo esc_html($spec_name); ?> with excellent patient track record.</div>
                </div>
                <a href="<?php the_permalink(); ?>" class="show-more-btn">View Profile</a>
            </div>
            <div class="doc-actions">
                <a href="/contact-us" class="btn-doc-action btn-red">Book Appointment</a>
                <a href="https://wa.me/918287476673" class="btn-doc-action btn-green"><i class="fab fa-whatsapp"></i> WhatsApp Us</a>
                
                
            </div>
        </div>
 
        <?php 
             if($count == 2): 
        ?>
        
        <style>
 .mpf-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
 }

 .mpf-top-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.mpf-top-row .mpf-col {
    width: 50%;
}

/* Input Styles */
.mpf-form-wrapper .mpf-input {
    width: 100%;
    height: 45px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 10px;
    box-sizing: border-box;
    font-size: 14px;
}

 .mpf-phone-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

 .mpf-phone-row .code-wrap {
    width: 100px; /* Controls width of the code box */
    flex-shrink: 0;
}

 .mpf-phone-row .number-wrap {
    flex-grow: 1;
}

 .mpf-full-row textarea.mpf-input {
    height: auto;
    padding-top: 10px;
    margin-bottom: 10px;
}

 .btn-mpf-submit {
     color: white;
    font-weight: bold;
    border: none;
    width: 200px;  
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}
.mpf-submit-row {
    text-align: center; /* Centers the button */
}

/* Remove default CF7 margins */
.mpf-form-wrapper p { margin: 0; padding: 0; }
.wpcf7-form-control-wrap { display: block; }

/* Responsive for Mobile */
@media (max-width: 480px) {
    .mpf-top-row { flex-direction: column; }
    .mpf-top-row .mpf-col { width: 100%; }
    .btn-mpf-submit { width: 100%; }
}