/* Umazah Premium Design System - Vaidam Style */

:root {
    /* Premium Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f0f7ff; /* Soft Light Blue */
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
    --border-hover: #bde0fe;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-red: #dc2626; /* Vaidam-like red */
    --accent-red-hover: #b91c1c;
    --accent-green: #22c55e; /* WhatsApp green */
    --accent-green-hover: #16a34a;
    --theme-blue: #0284c7; /* Sky blue */
    --theme-blue-light: #e0f2fe;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(2, 132, 199, 0.05), 0 8px 10px -6px rgba(2, 132, 199, 0.05);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme {
    /* Premium Dark Theme */
    --bg-primary: #0b0f19;
    --bg-secondary: #131c2e;
    --bg-surface: #1e293b;
    --border-color: #334155;
    --border-hover: #38bdf8;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-red: #f43f5e;
    --accent-red-hover: #e11d48;
    --accent-green: #4ade80;
    --accent-green-hover: #22c55e;
    --theme-blue: #38bdf8;
    --theme-blue-light: #075985;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* CSS Reset & General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

button, select, input, textarea {
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout Wrapper */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Floating Elements */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Header styling */
.main-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.brand-logo-svg {
    display: block;
    flex-shrink: 0;
}

.field-icon svg {
    display: block;
    color: var(--text-secondary);
    opacity: 0.8;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--theme-blue);
}

.badge-premium {
    font-size: 0.75rem;
    background-color: var(--theme-blue-light);
    color: var(--theme-blue);
    padding: 2px 8px;
    border-radius: 30px;
    font-weight: 600;
}

.nav-bar {
    display: flex;
    gap: 20px;
}

.nav-link {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--theme-blue);
    background-color: var(--bg-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: transparent;
    border: 1.5px solid var(--accent-green);
    color: var(--accent-green);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.header-whatsapp-btn:hover {
    background-color: var(--accent-green);
    color: white;
}

.header-consultation-btn {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.15);
    transition: var(--transition);
}

.header-consultation-btn:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-1px);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Light / Dark icon switches */
.sun-icon { display: block; }
.moon-icon { display: none; }
body.dark-theme .sun-icon { display: none; }
body.dark-theme .moon-icon { display: block; }

/* VIEW CONTAINER */
.view-container {
    display: none;
    flex-grow: 1;
    width: 100%;
}

.view-container.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

/* Hero Search Banner (Vaidam style) */
.hero-banner {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 80px 5% 60px 5%;
    position: relative;
    text-align: center;
    overflow: hidden;
}

/* Leafy Background elements */
.leaf-bg {
    position: absolute;
    width: 250px;
    height: 250px;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%230284c7' d='M50 0 C70 30 100 50 100 70 C100 86 86 100 70 100 C50 100 30 70 0 50 C0 30 30 0 50 0 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    pointer-events: none;
}

.leaf-left {
    top: -50px;
    left: -50px;
    transform: rotate(45deg);
}

.leaf-right {
    top: -50px;
    right: -50px;
    transform: rotate(135deg);
}

.accreditation-pill {
    display: inline-block;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.hero-content h1 {
    font-size: 2.8rem;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto 15px auto;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 35px auto;
}

/* Horizontal Search Bar Pill */
.search-bar-pill {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    max-width: 1050px;
    margin: 0 auto;
    padding: 8px 8px 8px 24px;
    transition: var(--transition);
}

.search-bar-pill:focus-within {
    border-color: var(--theme-blue);
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.15);
}

.search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 10px 18px;
}

.search-field:not(:last-of-type) {
    border-right: 1px solid var(--border-color);
}

.field-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.search-field select, .search-field input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.02rem;
    color: var(--text-primary);
    cursor: pointer;
}

.search-field select {
    appearance: none;
    -webkit-appearance: none;
}

.search-field input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-action-btn {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 14px 45px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-action-btn:hover {
    background-color: var(--accent-red-hover);
    transform: scale(1.02);
}

.hero-mini-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Specialty Grid Section */
.specialty-grid-section {
    padding: 80px 8%;
    background-color: var(--bg-primary);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.specialty-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px 20px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.specialty-card:hover {
    transform: translateY(-5px);
    border-color: var(--theme-blue);
    box-shadow: var(--shadow-premium);
}

.card-icon-area {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: var(--bg-secondary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.card-icon-area svg {
    transition: var(--transition);
}

.specialty-card:hover .card-icon-area {
    background-color: var(--theme-blue);
    color: white !important;
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 8px 20px -6px rgba(2, 132, 199, 0.3);
}

.specialty-card:hover .card-icon-area svg {
    transform: scale(1.05);
}

/* Specialty Icon color states */
.text-red { color: #ef4444; }
.text-blue { color: #3b82f6; }
.text-teal { color: #0d9488; }
.text-pink { color: #ec4899; }
.text-orange { color: #f97316; }
.text-purple { color: #a855f7; }
.text-indigo { color: #6366f1; }
.text-emerald { color: #10b981; }
.text-violet { color: #8b5cf6; }
.text-cyan { color: #06b6d4; }
.text-rose { color: #f43f5e; }

.specialty-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.specialty-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}

.plus-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
    color: var(--accent-red);
    font-weight: 700;
    transition: var(--transition);
}

.specialty-card:hover .plus-indicator {
    transform: rotate(90deg) scale(1.2);
}

.specialty-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.assistance-btn {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.15);
    transition: var(--transition);
}

.assistance-btn:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-1px);
}

.specialty-ctas .whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-surface);
    border: 1.5px solid var(--accent-green);
    color: var(--accent-green);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.specialty-ctas .whatsapp-btn:hover {
    background-color: var(--accent-green);
    color: white;
}

/* Consultation Form Section */
.consultation-form-section {
    padding: 60px 8%;
    background-color: var(--bg-secondary);
}

.form-container-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.form-text {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.form-text p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 25px;
}

.guarantee-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-wrapper {
    flex: 1;
    background-color: var(--bg-secondary);
    padding: 50px;
    display: flex;
    align-items: center;
}

.direct-consultation-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-pair {
    display: flex;
    gap: 15px;
}

.direct-consultation-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.submit-inquiry-btn {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.15);
    transition: var(--transition);
}

.submit-inquiry-btn:hover {
    background-color: var(--accent-red-hover);
}

/* Features Grid */
.features-section {
    padding: 80px 8%;
    background-color: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-item h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Process Section */
.process-section {
    padding: 80px 8% 100px 8%;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-badge {
    background-color: var(--theme-blue);
    color: white;
    font-weight: 700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(2, 132, 199, 0.2);
}

.process-step h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Directories Views */
.directory-banner {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 50px 5% 40px 5%;
    position: relative;
    text-align: center;
}

.banner-content h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.banner-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Directory Layout */
.directory-content-wrapper {
    display: flex;
    gap: 40px;
    padding: 0 5% 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.directory-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.filter-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.filter-card h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    border-bottom: 1.5px solid var(--bg-secondary);
    padding-bottom: 8px;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-tag {
    background-color: var(--bg-secondary);
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.specialty-tag:hover, .specialty-tag.active {
    background-color: var(--theme-blue-light);
    color: var(--theme-blue);
    border-color: var(--theme-blue);
}

.specialty-count {
    opacity: 0.6;
    margin-left: 3px;
    font-size: 0.75rem;
}

.stat-highlight {
    text-align: center;
    background-color: var(--bg-secondary);
    border-color: var(--border-hover);
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--theme-blue);
    font-family: var(--font-heading);
}

.stat-lbl {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.reset-filter-link {
    background: none;
    border: none;
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.reset-filter-link:hover {
    text-decoration: underline;
}

/* Listings Grid */
.directory-listings {
    flex-grow: 1;
}

.listings-meta-bar {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.listings-meta-bar h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.listings-list-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Listing card (Horizontal Premium Listing) */
.directory-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    transition: var(--transition);
    cursor: pointer;
}

.directory-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.card-top {
    flex-grow: 1;
    margin-right: 30px;
}

.card-meta-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.card-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-hospital {
    background-color: var(--theme-blue-light);
    color: var(--theme-blue);
}

.badge-doctor {
    background-color: #fef08a;
    color: #a16207;
}

.card-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-item-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-specialty-badge {
    display: inline-block;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.card-item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.directory-card .card-btn {
    align-self: center;
    flex-shrink: 0;
    background-color: var(--theme-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(2, 132, 199, 0.1);
}

.directory-card .card-btn:hover {
    background-color: #0369a1;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-md);
}

/* About Us Page */
.about-hero {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 60px 8%;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.about-hero p {
    color: var(--text-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    padding: 0 8% 80px 8%;
}

.about-card-info, .contact-card-info {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.about-card-info h3, .contact-card-info h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-bottom: 1.5px solid var(--bg-secondary);
    padding-bottom: 10px;
}

.about-card-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.features-columns {
    display: flex;
    gap: 30px;
}

.col-item h5 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.col-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.detail-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--theme-blue);
}

.detail-row .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: var(--transition);
}

.detail-row .icon svg {
    display: block;
}

/* Custom icon card colors on hover */
.detail-row:hover .icon {
    color: white !important;
}
.detail-row:has(.text-teal):hover {
    border-color: var(--accent-green);
}
.detail-row:has(.text-teal):hover .icon {
    background-color: var(--accent-green);
}
.detail-row:has(.text-red):hover {
    border-color: var(--accent-red);
}
.detail-row:has(.text-red):hover .icon {
    background-color: var(--accent-red);
}
.detail-row:has(.text-blue):hover {
    border-color: var(--theme-blue);
}
.detail-row:has(.text-blue):hover .icon {
    background-color: var(--theme-blue);
}

.detail-row h5 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.detail-row p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Modals & Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 650px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.bg-red {
    background-color: var(--theme-blue-light);
    color: var(--theme-blue);
}

.modal-card h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.modal-meta-line {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.meta-tag {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-body h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.modal-body p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 30px;
}

.modal-cta-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-verified {
    font-size: 0.9rem;
    color: var(--theme-blue);
    font-weight: 600;
}

.booking-action-btn {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.booking-action-btn:hover {
    background-color: var(--accent-red-hover);
}

/* Consultation form in modal */
.consultation-form-full {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row-double {
    display: flex;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.submit-full-form-btn {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-full-form-btn:hover {
    background-color: var(--accent-red-hover);
}

/* Success View inside Modal */
.form-success-area {
    text-align: center;
    padding: 30px 10px;
}

.success-check {
    width: 60px;
    height: 60px;
    background-color: var(--accent-green);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.form-success-area h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-success-area p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 25px;
}

.done-btn {
    background-color: var(--theme-blue);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive & Mobile Menu Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition);
}

/* Mobile Menu Drawer Container */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s ease;
}

.mobile-menu-drawer.active {
    pointer-events: auto;
    visibility: visible;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-drawer.active .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-drawer.active .drawer-content {
    transform: translateX(-320px);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 20px;
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.drawer-close-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-links .nav-link {
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 18px;
    width: 100%;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.drawer-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid var(--accent-green);
    color: var(--accent-green);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.drawer-whatsapp-btn:hover {
    background-color: var(--accent-green);
    color: white;
}

.drawer-consultation-btn {
    background-color: var(--accent-red);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.drawer-consultation-btn:hover {
    background-color: var(--accent-red-hover);
}

.custom-select-container.open {
    z-index: 15;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .specialty-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .directory-content-wrapper {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 12px 24px;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
    .nav-bar {
        display: none;
    }
    .header-actions .header-whatsapp-btn,
    .header-actions .header-consultation-btn {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .hero-banner {
        padding: 50px 20px 40px 20px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }
    .search-bar-pill {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 12px;
        gap: 8px;
    }
    .search-field {
        border-right: none !important;
        border-bottom: 1.5px solid var(--border-color);
        width: 100%;
        padding: 12px 10px;
    }
    .search-action-btn {
        width: 100%;
        border-radius: var(--radius-sm);
        padding: 12px;
        margin-top: 5px;
    }
    .hero-mini-stats {
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
    }
    .specialty-grid-section {
        padding: 50px 24px;
    }
    .section-header {
        margin-bottom: 30px;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .specialty-ctas {
        flex-direction: column;
        gap: 12px;
        margin-top: 35px;
    }
    .specialty-ctas .assistance-btn,
    .specialty-ctas .whatsapp-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    .consultation-form-section {
        padding: 40px 20px;
    }
    .form-container-card {
        flex-direction: column;
    }
    .form-text, .form-wrapper {
        padding: 30px 20px;
    }
    .form-text h3 {
        font-size: 1.6rem;
    }
    .features-section {
        padding: 50px 24px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .feature-item {
        padding: 10px;
    }
    .process-section {
        padding: 50px 24px;
    }
    .process-steps {
        flex-direction: column;
        gap: 25px;
    }
    .directory-banner {
        padding: 40px 20px 30px 20px;
    }
    .directory-banner h1 {
        font-size: 1.8rem;
    }
    .directory-content-wrapper {
        flex-direction: column;
        padding: 0 20px 60px 20px;
    }
    .directory-sidebar {
        width: 100%;
    }
    .directory-card {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    .card-top {
        margin-right: 0;
    }
    .directory-card .card-btn {
        width: 100%;
        padding: 12px;
    }
    .about-hero {
        padding: 45px 20px;
    }
    .about-hero h1 {
        font-size: 2rem;
    }
    .about-content {
        grid-template-columns: 1fr;
        padding: 0 20px 60px 20px;
        gap: 30px;
    }
    .about-card-info, .contact-card-info {
        padding: 30px 20px;
    }
    .features-columns {
        flex-direction: column;
        gap: 20px;
    }
    .form-row-double {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Modal responsive styling */
    .modal-card {
        width: 95%;
        padding: 25px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-meta-line {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
    }
    .modal-cta-box {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }
    .booking-action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .specialty-grid {
        grid-template-columns: 1fr;
    }
    .input-pair {
        flex-direction: column;
        gap: 15px;
    }
}

/* Premium Icon Alignment Styles */
.col-item h5 svg,
.detail-row .icon svg,
.meta-tag .icon svg,
.accreditation-pill svg {
    display: inline-block;
    vertical-align: middle;
}

/* Clean Premium Content Layouts */
.card-specialty-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.card-spec-badge {
    background-color: var(--bg-secondary);
    color: var(--theme-blue);
    border: 1.5px solid var(--theme-blue-light);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}

body.dark-theme .card-spec-badge {
    background-color: var(--bg-secondary);
    color: var(--theme-blue);
    border-color: var(--border-color);
}

.specialty-tag {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
}

.card-hospital-line {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-hospital-line strong {
    color: var(--theme-blue);
    font-weight: 600;
}

/* Premium Card & Modal Image Layouts */
.card-image-area {
    width: 130px;
    height: 130px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition);
}

.directory-card:hover .card-image-area img {
    transform: scale(1.05);
}

/* Detail Modal Header Flex */
.modal-header-flex {
    display: flex;
    gap: 20px;
    align-items: center;
}

.modal-image-area {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.modal-header-text {
    flex-grow: 1;
}

/* Responsive Overrides for Cards with Images */
@media (max-width: 768px) {
    .directory-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    .card-image-area {
        width: 100% !important;
        height: 180px !important;
    }
    .card-top {
        margin-right: 0 !important;
    }
    .modal-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Custom Searchable Select Dropdown */
.custom-select-container {
    position: relative;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 1.05rem;
    color: var(--text-primary);
    user-select: none;
    padding: 4px 0;
}

.trigger-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.trigger-chevron svg {
    color: var(--text-secondary);
    opacity: 0.6;
    transition: var(--transition);
}

.custom-select-container.open .trigger-chevron svg {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 480px;
    max-width: 550px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    overflow: hidden;
    animation: slideDown 0.2s ease-out forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -5px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.custom-select-container.open .custom-select-dropdown {
    display: block;
}

.custom-select-search {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.custom-select-search input {
    width: 100%;
    padding: 12px 18px;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 8px !important;
    font-size: 1.08rem !important;
    background-color: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    transition: var(--transition);
}

.custom-select-search input:focus {
    border-color: var(--theme-blue) !important;
}

.custom-select-options {
    max-height: 420px;
    overflow-y: auto;
}

/* Scrollbar for options list */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}
.custom-select-options::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}

.custom-select-option-item {
    padding: 14px 28px;
    font-size: 1.08rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.custom-select-option-item:hover {
    background-color: var(--bg-secondary);
    color: var(--theme-blue);
}

.custom-select-option-item.selected {
    background-color: var(--theme-blue-light);
    color: var(--theme-blue);
    font-weight: 600;
}

body.dark-theme .custom-select-option-item.selected {
    background-color: var(--theme-blue-light);
    color: #38bdf8;
}

/* Mobile adjustments for dropdowns */
@media (max-width: 768px) {
    .custom-select-dropdown {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        min-width: 100% !important;
        width: 100% !important;
        animation: slideDownMobile 0.2s ease-out forwards !important;
    }
}

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

/* Footer Styles */
.main-footer {
    background-color: var(--bg-surface);
    border-top: 1.5px solid var(--border-color);
    padding: 60px 5% 30px 5%;
    margin-top: 60px;
    font-family: var(--font-body);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-brand {
    flex: 2;
    min-width: 280px;
}

.footer-brand .logo-area {
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links-col, .footer-contact-col, .footer-social-col {
    flex: 1;
    min-width: 200px;
}

.footer-top h5 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-top h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--theme-blue);
    border-radius: 10px;
}

.footer-links, .footer-contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-contact-details li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--theme-blue);
    padding-left: 5px;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-2px);
    border-color: transparent;
}

.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    color: white;
}

.social-icon.facebook:hover {
    background-color: #1877f2;
    color: white;
}

.social-icon.whatsapp-footer-btn:hover {
    background-color: var(--accent-green);
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    opacity: 0.8;
}

/* Mobile responsive footer */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    .footer-brand {
        flex: auto;
    }
}

/* Logo Sizing & Dark-Theme Styling */
.brand-logo-img {
    height: 78px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.main-footer .brand-logo-img {
    height: 60px;
}

body.dark-theme .brand-logo-img {
    filter: brightness(1.2) contrast(1.05) drop-shadow(0 0 1px rgba(255, 255, 255, 0.2));
}
