/* ==========================================================================
   Atif Dental Clinic - Main Stylesheet
   ========================================================================== */

:root {
    --primary: #0e8388;
    --primary-hover: #0a696d;
    --primary-light: #e6f6f6;
    --secondary: #0b2b3f;
    --secondary-hover: #133852;
    --accent: #20c997;
    --warning: #e67e22;
    --success: #27ae60;
    --danger: #e74c3c;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 18px;
    --shadow-sm: 0 2px 6px rgba(11, 43, 63, 0.05);
    --shadow-md: 0 6px 20px rgba(11, 43, 63, 0.08);
    --shadow-lg: 0 14px 35px rgba(11, 43, 63, 0.12);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

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

.atif-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.p-0 { padding: 0 !important; }
.p-4 { padding: 24px !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0c7176 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(14, 131, 136, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0c7176 0%, #09595d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 131, 136, 0.35);
}

.btn-outline {
    background: transparent;
    border-color: var(--secondary);
    color: var(--secondary) !important;
}

.btn-outline:hover {
    background: var(--secondary);
    color: #ffffff !important;
}

.btn-emergency {
    background: #e74c3c;
    color: #ffffff !important;
    border-color: #e74c3c;
}

.btn-emergency:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: #ffffff !important;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: #1eb855;
    border-color: #1eb855;
}

.btn-whatsapp-outline {
    background: #eafaf1;
    color: #128C7E !important;
    border-color: #25D366;
}

.btn-whatsapp-outline:hover {
    background: #25D366;
    color: #ffffff !important;
}

.btn-lg {
    padding: 15px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-block {
    width: 100%;
}

/* Badges */
.sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.sub-badge.light {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Sections */
.atif-section {
    padding: 80px 0;
}

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

.section-header {
    max-width: 760px;
    margin: 0 auto 50px auto;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-muted);
}

/* Top Bar */
.atif-topbar {
    background-color: var(--secondary);
    color: #e2e8f0;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

.topbar-item.highlight {
    color: #ff9f43;
    font-weight: 700;
}

.topbar-whatsapp {
    color: #25D366;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Header */
.atif-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(11, 43, 63, 0.06);
    padding: 14px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.atif-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(14, 131, 136, 0.3);
}

.brand-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
}

.brand-title .accent {
    color: var(--primary);
}

.brand-subtitle {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 600;
}

.atif-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-item a {
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 6px 0;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-item:hover a::after,
.nav-item.active a::after {
    width: 100%;
}

.mobile-nav-cta {
    display: none;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--secondary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero */
.atif-hero {
    position: relative;
    padding: 70px 0 90px 0;
    background: linear-gradient(180deg, #f0f7f8 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.pill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #20c997;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(32, 201, 151, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(32, 201, 151, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(32, 201, 151, 0); }
}

.hero-title {
    font-size: 50px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-title .highlight-text {
    color: var(--primary);
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 25px;
    border-top: 1px solid #dce8ea;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background-color: #cbd5e1;
}

.visual-wrapper {
    position: relative;
}

.hero-main-img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    background: #ffffff;
    padding: 12px 18px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    animation: float 4s ease-in-out infinite alternate;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.badge-top-right {
    top: 20px;
    right: -15px;
}

.badge-bottom-left {
    bottom: 25px;
    left: -15px;
}

.badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.badge-icon.green { background: #eafaf1; color: #27ae60; }
.badge-icon.blue { background: #e8f4fd; color: #2980b9; }

.badge-text strong {
    display: block;
    font-size: 14px;
    color: var(--secondary);
}

.badge-text span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Feature Strip */
.atif-strip {
    background-color: var(--secondary);
    color: #ffffff;
    padding: 35px 0;
}

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

.strip-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.strip-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(14, 131, 136, 0.25);
    color: #20c997;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.strip-text h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 4px;
}

.strip-text p {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.4;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-thumb img {
    transform: scale(1.08);
}

.service-icon-box {
    position: absolute;
    bottom: -18px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.service-body {
    padding: 24px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-doctor {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.service-title {
    font-size: 19px;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.link-book {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-book:hover {
    gap: 10px;
    color: var(--secondary);
}

/* Dentists Grid */
.dentists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.doctor-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.doctor-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: #0e8388;
}

.doctor-img-wrap {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    height: 280px;
}

.doctor-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(11, 43, 63, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
}

.doctor-name {
    font-size: 22px;
    margin-bottom: 4px;
}

.doctor-role {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 14px;
}

.doctor-meta {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.meta-row i {
    color: var(--primary);
    margin-top: 3px;
    width: 16px;
}

.doctor-bio {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

.doctor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.doc-tag {
    font-size: 11px;
    padding: 4px 10px;
    background-color: var(--bg-light);
    border-radius: 50px;
    color: var(--secondary);
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.doctor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.doctor-rating {
    font-size: 13px;
    font-weight: 700;
    color: #f39c12;
}

/* Home Booking Section */
.booking-section-home {
    background: linear-gradient(135deg, var(--secondary) 0%, #0d3852 100%);
    color: #ffffff;
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.intro-title {
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 18px;
}

.intro-desc {
    color: #cbd5e1;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.intro-perks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.perk-item i {
    color: #20c997;
    font-size: 18px;
}

.intro-contact-box {
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.intro-contact-box p {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.call-btn {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.call-btn:hover {
    color: #20c997;
}

/* Booking Card & Form */
.booking-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 36px;
    color: var(--text-dark);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 26px;
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 6px;
}

.form-group .req {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    background-color: #fbfcfd;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 131, 136, 0.15);
}

/* Time Slot Chips */
.time-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slot-chip {
    cursor: pointer;
    margin: 0;
}

.slot-chip input {
    display: none;
}

.slot-chip span {
    display: block;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    background: #ffffff;
    color: var(--secondary);
    transition: var(--transition);
}

.slot-chip input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(14, 131, 136, 0.25);
}

.slot-chip:hover span {
    border-color: var(--primary);
}

/* Form Status Messages */
.form-status {
    margin-bottom: 14px;
    font-size: 14px;
    display: none;
}

.form-status.alert-success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 14px 18px;
    border-radius: 8px;
}

.form-status.alert-danger {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 8px;
}

/* Facilities Grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.facility-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.facility-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.facility-content {
    padding: 24px;
}

.facility-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.facility-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.review-stars {
    color: #f39c12;
    margin-bottom: 16px;
    font-size: 15px;
}

.review-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 24px;
    flex-grow: 1;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.reviewer-name {
    font-size: 16px;
    margin-bottom: 2px;
}

.reviewer-service {
    font-size: 12px;
    color: var(--text-muted);
}

/* Emergency Banner */
.atif-emergency-banner {
    background: linear-gradient(135deg, #c0392b 0%, #962d22 100%);
    color: #ffffff;
    padding: 50px 0;
}

.banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.banner-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.banner-text h3 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 6px;
}

.banner-text p {
    color: #f9d5d2;
    font-size: 15px;
    max-width: 600px;
}

.banner-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Page Banner */
.atif-page-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, #103c58 100%);
    color: #ffffff;
    padding: 70px 0;
    text-align: center;
}

.page-title {
    font-size: 42px;
    color: #ffffff;
    margin-bottom: 12px;
}

.page-desc {
    color: #cbd5e1;
    font-size: 17px;
    max-width: 720px;
    margin: 0 auto;
}

/* Service Detailed List on page-services */
.services-detailed-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.service-detail-row.row-reverse {
    direction: rtl;
}

.service-detail-row.row-reverse > * {
    direction: ltr;
}

.service-detail-media {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 380px;
}

.service-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(11, 43, 63, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.detail-doctor {
    font-size: 13px;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}

.detail-title {
    font-size: 32px;
    margin-bottom: 6px;
}

.detail-tagline {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 18px;
}

.detail-desc {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.detail-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.d-feat {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.d-feat i {
    color: var(--primary);
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Dentists Detailed List on page-dentists */
.dentists-detailed-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.doctor-profile-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    box-shadow: var(--shadow-sm);
}

.doc-media {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 360px;
}

.doc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-experience-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: var(--secondary);
    color: #ffffff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.doc-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.doc-name {
    font-size: 30px;
    margin-bottom: 4px;
}

.doc-role-text {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
}

.doc-rating-pill {
    background: #fef9e7;
    border: 1px solid #f9e79f;
    color: #b7950b;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: var(--bg-light);
    padding: 18px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.cred-item {
    font-size: 13px;
}

.cred-label {
    display: block;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.cred-val {
    font-weight: 700;
    color: var(--secondary);
}

.highlight-time {
    color: #d35400;
}

.doc-biography {
    margin-bottom: 20px;
}

.doc-biography h5 {
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--secondary);
}

.doc-biography p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.doc-specialties-wrap {
    margin-bottom: 24px;
}

.doc-specialties-wrap h5 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--secondary);
}

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

.specialty-pills .pill {
    background: #e8f7f7;
    color: var(--primary);
    border: 1px solid #bce5e7;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.doc-actions-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Dedicated Booking Page Layout */
.booking-page-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 40px;
    align-items: flex-start;
}

.main-booking-card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0;
    overflow: hidden;
}

.card-header-styled {
    background: linear-gradient(135deg, var(--secondary) 0%, #113850 100%);
    color: #ffffff;
    padding: 24px;
}

.card-header-styled h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 4px;
}

.card-header-styled p {
    color: #cbd5e1;
    font-size: 14px;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-box h4 {
    font-size: 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timing-list {
    list-style: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timing-list li {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.whatsapp-box {
    background: #f0faf4;
    border-color: #c7eed5;
    text-align: center;
}

.wa-icon-big {
    font-size: 42px;
    color: #25D366;
    margin-bottom: 10px;
}

.whatsapp-box h4 {
    justify-content: center;
}

.whatsapp-box p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.checklist {
    list-style: none;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checklist i {
    color: var(--primary);
    margin-top: 3px;
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.lead-text {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--secondary);
    font-weight: 500;
}

.about-values-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 25px;
}

.val-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.val-item i {
    font-size: 24px;
    color: var(--primary);
    margin-top: 2px;
}

.val-item h4 {
    font-size: 17px;
    margin-bottom: 4px;
}

.val-item p {
    font-size: 14px;
    color: var(--text-muted);
}

.about-img-stack {
    position: relative;
}

.stack-main {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.stack-sub {
    position: absolute;
    bottom: -30px;
    right: -25px;
    width: 55%;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 5px solid #ffffff;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
}

.c-card {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.c-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.c-details h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.c-details p {
    font-size: 14px;
    color: var(--text-dark);
}

.map-placeholder {
    height: 350px;
    background: #e2e8f0 url('https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-overlay-box {
    background: #ffffff;
    padding: 24px 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
}

/* Footer */
.atif-footer {
    background-color: #071e2c;
    color: #e2e8f0;
}

.footer-main {
    padding: 70px 0 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1fr 1.1fr;
    gap: 40px;
}

.footer-brand .brand-title {
    color: #ffffff;
}

.footer-brand .brand-subtitle {
    color: #94a3b8;
}

.footer-desc {
    color: #94a3b8;
    font-size: 14px;
    margin: 18px 0;
    line-height: 1.6;
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.f-badge {
    font-size: 12px;
    color: #20c997;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-title {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a i {
    font-size: 10px;
    color: var(--primary);
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-contact-list {
    list-style: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-contact-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #cbd5e1;
}

.footer-contact-list li i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-contact-list a {
    color: #ffffff;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #04121b;
    padding: 20px 0;
    font-size: 13px;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.medical-disclaimer {
    font-size: 12px;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    z-index: 999;
    transition: var(--transition);
}

.floating-whatsapp i {
    font-size: 22px;
}

.floating-whatsapp:hover {
    background: #1eb855;
    transform: scale(1.05);
}

/* Modal */
.atif-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.atif-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 43, 63, 0.7);
    backdrop-filter: blur(5px);
}

.modal-card {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 640px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-header {
    margin-bottom: 20px;
    text-align: center;
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .strip-grid { grid-template-columns: repeat(2, 1fr); }
    .dentists-grid { grid-template-columns: 1fr; }
    .booking-wrapper { grid-template-columns: 1fr; }
    .facilities-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .doctor-profile-card { grid-template-columns: 1fr; }
    .service-detail-row, .service-detail-row.row-reverse { grid-template-columns: 1fr; direction: ltr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-img-stack .stack-sub { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .booking-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Base & Containers */
    .atif-container {
        padding: 0 20px;
    }
    .atif-section {
        padding: 40px 0;
    }
    .section-header {
        margin-bottom: 26px;
        text-align: left;
    }
    .section-header.text-center {
        text-align: left;
    }
    .section-header .sub-badge {
        margin: 0 0 10px 0;
        display: inline-flex;
    }
    .section-title {
        font-size: 26px;
        line-height: 1.25;
        text-align: left;
    }
    .section-desc {
        font-size: 15px;
        text-align: left;
        margin: 8px 0 0 0;
    }

    /* Topbar & Header */
    .atif-topbar { display: none; }
    .atif-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 20px 24px;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
        border-top: 1px solid var(--border-color);
    }
    .atif-nav.active { display: block; }
    .atif-nav .nav-list { flex-direction: column; align-items: flex-start; gap: 14px; }
    .mobile-nav-cta { display: block; width: 100%; }
    .mobile-toggle { display: flex; }
    .header-actions .btn-book { display: none; }
    .brand-title { font-size: 20px; }
    .brand-subtitle { font-size: 10px; }

    /* Page Banners on All Inner Pages (Services, Dentists, About, Contact, Appointment) */
    .atif-page-banner {
        padding: 40px 0 32px 0;
        text-align: left;
    }
    .atif-page-banner .banner-content {
        text-align: left;
    }
    .atif-page-banner .sub-badge {
        margin: 0 0 10px 0;
        display: inline-flex;
    }
    .page-title {
        font-size: 26px;
        line-height: 1.25;
        margin-bottom: 8px;
        text-align: left;
    }
    .page-desc {
        font-size: 14px;
        line-height: 1.55;
        padding: 0;
        text-align: left;
    }

    /* Hero Section (Home) */
    .hero-section {
        padding: 40px 0 45px 0;
        text-align: left;
    }
    .hero-content {
        text-align: left;
    }
    .hero-content .sub-badge {
        margin: 0 0 12px 0;
        display: inline-flex;
    }
    .hero-title {
        font-size: 28px;
        line-height: 1.25;
        text-align: left;
    }
    .hero-desc {
        font-size: 15px;
        text-align: left;
        margin: 14px 0 22px 0;
        max-width: 100%;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        align-items: stretch;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        width: 100%;
        margin-top: 24px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: var(--border-radius);
    }
    .stat-item {
        text-align: left;
        align-items: flex-start;
    }
    .stat-number {
        font-size: 24px;
    }
    .stat-label {
        font-size: 12px;
    }
    .stat-divider { display: none; }

    /* Quick Booking Strip */
    .quick-booking-strip {
        padding: 28px 18px;
    }
    .strip-title {
        text-align: left;
    }
    .strip-desc {
        text-align: left;
    }
    .strip-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .strip-card {
        text-align: left;
    }

    /* Services Page & Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .services-detailed-list {
        gap: 36px;
    }
    .service-detail-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-detail-media {
        height: 240px;
    }
    .service-detail-content {
        text-align: left;
    }
    .detail-title {
        font-size: 22px;
        text-align: left;
    }
    .detail-tagline {
        text-align: left;
    }
    .detail-desc {
        text-align: left;
    }
    .detail-features {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }
    .detail-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .detail-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Dentists Page & Grid */
    .dentists-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .dentists-detailed-list {
        gap: 28px;
    }
    .doctor-profile-card {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 18px;
        text-align: left;
    }
    .doc-media img {
        height: 280px;
    }
    .doc-details {
        text-align: left;
    }
    .doc-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .doc-name {
        font-size: 22px;
        text-align: left;
    }
    .doc-role-text {
        text-align: left;
    }
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }
    .doc-biography {
        text-align: left;
    }
    .doc-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .doc-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* About Page */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .about-content {
        text-align: left;
    }
    .about-values-list {
        gap: 14px;
        text-align: left;
    }
    .val-item {
        padding: 16px 14px;
        gap: 14px;
        text-align: left;
    }
    .about-img-stack .stack-main {
        height: 250px;
        width: 100%;
        object-fit: cover;
    }

    /* Appointment Page */
    .booking-page-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .card-header-styled {
        padding: 18px 16px;
        text-align: left;
    }
    .card-header-styled h3 {
        font-size: 20px;
        justify-content: flex-start;
    }
    .atif-appointment-form {
        padding: 20px 16px;
        text-align: left;
    }
    .form-section-title {
        text-align: left;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .contact-info-col {
        text-align: left;
    }
    .contact-cards-stack {
        gap: 12px;
        text-align: left;
    }
    .c-card {
        padding: 16px 14px;
        gap: 14px;
        text-align: left;
    }

    /* Facilities & Other Grids */
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .facility-card {
        text-align: left;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Floating WhatsApp Button on Mobile */
    .floating-whatsapp .whatsapp-label { display: none; }
    .floating-whatsapp { padding: 12px; border-radius: 50%; bottom: 20px; right: 20px; }

    /* Clean Left-Aligned Footer on Mobile (All Pages) */
    .atif-footer .footer-main {
        padding: 45px 0 32px 0;
        text-align: left;
    }
    .atif-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: left;
    }
    .atif-footer .footer-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }
    .atif-footer .footer-brand {
        justify-content: flex-start;
    }
    .atif-footer .footer-desc {
        max-width: 100%;
        margin: 14px 0;
        text-align: left;
    }
    .atif-footer .footer-badges {
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
    }
    .atif-footer .f-badge {
        justify-content: flex-start;
        text-align: left;
    }
    .atif-footer .footer-title {
        text-align: left;
        margin-bottom: 16px;
        width: 100%;
    }
    .atif-footer .footer-title::after {
        left: 0;
        transform: none;
    }
    .atif-footer .footer-links {
        align-items: flex-start;
        width: 100%;
        padding: 0;
    }
    .atif-footer .footer-links li {
        width: 100%;
        text-align: left;
    }
    .atif-footer .footer-links a {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }
    .atif-footer .footer-contact-list {
        align-items: flex-start;
        width: 100%;
        padding: 0;
    }
    .atif-footer .footer-contact-list li {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }
    .atif-footer .footer-socials {
        justify-content: flex-start;
    }
    .atif-footer .bottom-inner {
        text-align: left;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .brand-subtitle {
        display: none;
    }
    .brand-title {
        font-size: 20px;
    }
    .hero-title {
        font-size: 26px;
    }
    .page-title {
        font-size: 24px;
    }
    .atif-container {
        padding: 0 16px;
    }
}
