/*
Theme Name: Sohag Dental Portfolio
Theme URI: https://example.com/
Author: Muna Dental Care
Author URI: https://example.com/
Description: A clean, professional, fully responsive WordPress portfolio theme built for Dr. A. Sohag Mallick (Dental & Maxillofacial Specialist). Built to work seamlessly with Elementor Page Builder and standard WordPress plugins (Contact Form 7, WPForms, Yoast SEO, etc). Just install the theme, activate, and start building pages with Elementor from your WordPress dashboard — no coding required.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sohag-dental
Tags: medical, dental, portfolio, elementor-compatible, responsive, translation-ready, custom-menu, custom-logo, threaded-comments, footer-widgets
*/

/* =====================================================
   0. RESET / BASE
===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #253238;
    background: #ffffff;
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .5em; font-weight: 600; line-height: 1.25; color: #0b3d3a; }
p { margin: 0 0 1em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: #f4faf9; }
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .3px;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn--primary { background: #0f766e; color: #fff; }
.btn--primary:hover { background: #0b5c55; color: #fff; }
.btn--outline { background: transparent; border-color: #0f766e; color: #0f766e; }
.btn--outline:hover { background: #0f766e; color: #fff; }
.tag {
    display: inline-block;
    background: #e6f4f2;
    color: #0f766e;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 34px; }
.section-head p { color: #5a6b6a; }

/* =====================================================
   1. TOPBAR
===================================================== */
.topbar {
    background: #0b3d3a;
    color: #cfe8e4;
    font-size: 13.5px;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 8px;
}
.topbar a { color: #cfe8e4; }
.topbar a:hover { color: #ffffff; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; }
.topbar__right { display: flex; gap: 18px; flex-wrap: wrap; }

/* =====================================================
   2. HEADER / NAV
===================================================== */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    position: sticky;
    top: 0;
    z-index: 999;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { max-height: 56px; width: auto; }
.site-title { font-size: 20px; font-weight: 700; color: #0b3d3a; margin: 0; }
.site-title span { display: block; font-size: 12.5px; font-weight: 500; color: #0f766e; }

.main-navigation ul {
    display: flex;
    gap: 30px;
    align-items: center;
}
.main-navigation a {
    font-weight: 500;
    font-size: 15px;
    color: #253238;
    padding: 8px 0;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: #0f766e; }
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    padding: 10px 0;
    border-radius: 8px;
    min-width: 200px;
}
.main-navigation li { position: relative; }
.main-navigation li:hover > .sub-menu { display: block; }
.main-navigation .sub-menu li { width: 100%; }
.main-navigation .sub-menu a { display: block; padding: 10px 20px; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: #0b3d3a;
    cursor: pointer;
}

/* =====================================================
   3. HERO
===================================================== */
.hero {
    background: linear-gradient(120deg, #f4faf9 55%, #e6f4f2 100%);
    padding: 70px 0;
    overflow: hidden;
}
.hero .container {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 50px;
    align-items: center;
}
.hero h1 { font-size: 44px; margin-bottom: 20px; }
.hero h1 em { color: #0f766e; font-style: normal; }
.hero p.lead { font-size: 17px; color: #4c5f5e; margin-bottom: 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media {
    background: #fff;
    border-radius: 20px;
    padding: 6px;
    box-shadow: 0 20px 50px rgba(15,118,110,.18);
    margin-top: -30px;
}
.hero-media img { border-radius: 15px; width: 100%; object-fit: cover; aspect-ratio: 4/3.4; }

/* Hero doctor image slider */
.hero-slider {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3.4;
    min-height: 360px; /* fallback for browsers without aspect-ratio support */
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .8s ease, transform 1.2s ease;
    pointer-events: none;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider__dots {
    position: absolute;
    left: 0; right: 0; bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}
.hero-slider__dots button {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    padding: 0;
}
.hero-slider__dots button.is-active { background: #ffffff; width: 22px; border-radius: 6px; }
.hero-badges { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-badge {
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #0b3d3a;
}

/* =====================================================
   4. CREDENTIALS / ABOUT
===================================================== */
.about-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 60px;
    align-items: start;
}
.about-grid img { border-radius: 20px; }
.credential-list { display: grid; gap: 16px; margin-top: 24px; }
.credential-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e7f1ef;
    padding: 16px 18px;
    border-radius: 12px;
}
.credential-item .icon {
    flex: none;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: #0f766e;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.credential-item h4 { margin: 0 0 4px; font-size: 15.5px; }
.credential-item p { margin: 0; font-size: 13.5px; color: #5a6b6a; }

/* =====================================================
   4b. DOCTOR PROFILE STRIP (within About section)
===================================================== */
.doctor-profile-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e7f1ef;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 26px;
}
.doctor-profile-strip img {
    width: 68px; height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e6f4f2;
    flex: none;
}
.doctor-profile-strip h4 { margin: 0 0 2px; font-size: 16.5px; }
.doctor-profile-strip p { margin: 0; font-size: 13.5px; color: #5a6b6a; }

/* =====================================================
   5. SERVICES
===================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: #fff;
    border: 1px solid #eef3f2;
    border-radius: 18px;
    overflow: hidden;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.service-card__img { position: relative; aspect-ratio: 4/2.7; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__body { padding: 22px 24px 26px; }
.service-card .icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: #e6f4f2;
    color: #0f766e;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-top: -48px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.service-card h3 { font-size: 18px; }
.service-card p { color: #5a6b6a; font-size: 14.5px; margin-bottom: 0; }

/* =====================================================
   5b. GALLERY
===================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    aspect-ratio: 1/1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: "🔍";
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(11,61,58,0);
    color: #fff; font-size: 22px; opacity: 0;
    transition: all .25s ease;
}
.gallery-item:hover::after { background: rgba(11,61,58,.35); opacity: 1; }

.gallery-lightbox {
    display: none;
    position: fixed; inset: 0; z-index: 10000;
    align-items: center; justify-content: center;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox__overlay { position: absolute; inset: 0; background: rgba(6,20,19,.9); }
.gallery-lightbox img { position: relative; max-width: 90vw; max-height: 85vh; border-radius: 10px; z-index: 2; }
.gallery-lightbox__close {
    position: absolute; top: 22px; right: 30px; z-index: 3;
    background: rgba(255,255,255,.12); color: #fff; border: none;
    width: 42px; height: 42px; border-radius: 50%; font-size: 24px; cursor: pointer;
}

/* =====================================================
   5c. HOMEPAGE BLOG PREVIEW
===================================================== */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-preview-card {
    background: #fff;
    border: 1px solid #eef3f2;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.blog-preview-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.blog-preview-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.blog-preview-card__body { padding: 20px 22px 24px; }
.blog-preview-card__body .date { font-size: 12.5px; color: #8a9a98; }
.blog-preview-card__body h3 { font-size: 17px; margin: 6px 0 8px; }
.blog-preview-card__body p { font-size: 14px; color: #5a6b6a; margin-bottom: 14px; }

/* =====================================================
   9b. BOOKING POPUP MODAL
===================================================== */
.booking-modal {
    display: none;
    position: fixed; inset: 0; z-index: 10001;
    align-items: center; justify-content: center;
}
.booking-modal.is-open { display: flex; }
.booking-modal__overlay { position: absolute; inset: 0; background: rgba(6,20,19,.72); }
.booking-modal__box {
    position: relative;
    width: 92%;
    max-width: 920px;
    height: 88vh;
    max-height: 820px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    z-index: 2;
}
.booking-modal__box iframe { width: 100%; height: 100%; border: none; display: block; }
.booking-modal__close {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    background: #0b3d3a; color: #fff; border: none;
    width: 38px; height: 38px; border-radius: 50%; font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
body.modal-open { overflow: hidden; }

/* =====================================================
   9c. MOBILE APP-STYLE BOTTOM NAVIGATION
===================================================== */
.mobile-bottom-nav { display: none; }

/* =====================================================
   6. CHAMBER / VISITING HOURS
===================================================== */
.chamber-box {
    background: #0b3d3a;
    color: #e9f4f2;
    border-radius: 24px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
}
.chamber-box h2 { color: #fff; }
.chamber-box .tag { background: rgba(255,255,255,.1); color: #a9e6dd; }
.info-row { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.info-row .icon { flex: none; font-size: 18px; }
.info-row h4 { margin: 0 0 4px; color: #fff; font-size: 15px; }
.info-row p { margin: 0; color: #b9d9d4; font-size: 14px; }
.hours-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 26px;
}
.hours-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.15); font-size: 14.5px; }
.hours-row:last-child { border-bottom: none; }

/* =====================================================
   7. CONTACT / FOOTER
===================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card {
    background: #f4faf9;
    border-radius: 18px;
    padding: 30px;
}
.site-footer { background: #0b201f; color: #b7cfcb; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-widget h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; }
.footer-widget ul li { margin-bottom: 10px; font-size: 14px; }
.footer-widget a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}
.social-icons { display: flex; gap: 10px; }
.social-icons a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center;
}
.social-icons a:hover { background: #0f766e; }

/* =====================================================
   8. BLOG / SINGLE / 404
===================================================== */
.post-list { display: grid; gap: 30px; }
.post-card { display: grid; grid-template-columns: 260px 1fr; gap: 24px; background: #fff; border: 1px solid #eef3f2; border-radius: 16px; overflow: hidden; }
.post-card img { height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 22px 22px 0; }
.entry-content { max-width: 780px; margin: 0 auto; }
.entry-content img { border-radius: 14px; margin: 20px 0; }
.error-404 { text-align: center; padding: 120px 0; }
.error-404 h1 { font-size: 100px; color: #e6f4f2; }

/* =====================================================
   5d. DEDICATED GALLERY PAGE (native WP blocks)
===================================================== */
.gallery-page__content { max-width: 1180px; margin: 0 auto; }
.gallery-page__content .wp-block-gallery { margin-bottom: 10px; }
.gallery-page__content .wp-block-image img,
.gallery-page__content .wp-block-gallery img {
    border-radius: 14px;
}
.gallery-page__content figure.wp-block-image,
.gallery-page__content .blocks-gallery-item {
    margin: 0 0 18px;
}
.gallery-page__empty {
    text-align: center;
    color: #8a9a98;
    background: #f4faf9;
    border-radius: 14px;
    padding: 40px 24px;
    font-size: 14.5px;
}
/* =====================================================
   9. WP CORE / ELEMENTOR HELPERS
===================================================== */
.alignwide { margin-left: -5%; margin-right: -5%; max-width: 110%; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.screen-reader-text { position: absolute; left: -9999px; }
.elementor-page .site-content { padding: 0; }

/* =====================================================
   10. RESPONSIVE
===================================================== */
@media (max-width: 991px) {
    .hero .container,
    .about-grid,
    .chamber-box,
    .contact-grid { grid-template-columns: 1fr; }
    .hero .container { display: flex; flex-direction: column; }
    .hero-media { order: -1; margin-bottom: 30px; margin-top: 0; }
    .hero-slider { aspect-ratio: 4/3.4; min-height: 320px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .blog-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 34px; }
}
@media (max-width: 782px) {
    .topbar { display: none; }
    .main-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.1); padding: 10px 20px 20px; }
    .main-navigation.is-open { display: block; }
    .main-navigation ul { flex-direction: column; gap: 4px; align-items: flex-start; }
    .main-navigation .sub-menu { position: static; box-shadow: none; padding-left: 12px; }
    .menu-toggle { display: block; }
    .header-cta .btn--primary span { display: none; }
    .header-cta .btn--primary {
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 16px;
    }
    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-preview-grid { grid-template-columns: 1fr; }
    .post-card { grid-template-columns: 1fr; }
    .post-card__body { padding: 0 18px 18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .section { padding: 56px 0; }
    .chamber-box { padding: 30px; }
    .doctor-profile-strip { flex-wrap: wrap; }
    .booking-modal__box { width: 96%; height: 92vh; border-radius: 14px; }

    /* Full-bleed horizontal hero image banner on mobile:
       no border/padding, spans the full device width, sits
       flush under the sticky header with no gap above it. */
    .hero { padding-top: 0; }
    .hero-media {
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        margin: 0 0 26px;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        width: 100vw;
        max-width: 100vw;
    }
    .hero-media img { border-radius: 0; }
    .hero-slider {
        border-radius: 0;
        aspect-ratio: 16/9;
        min-height: 220px;
        max-height: 60vw;
    }
    .hero-slider__dots { bottom: 10px; }

    /* App-style bottom navigation bar */
    body { padding-bottom: 78px; }
    .mobile-bottom-nav {
        display: flex;
        align-items: flex-end;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 9998;
        background: rgba(255,255,255,.96);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-top: 1px solid #eef3f2;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 30px rgba(11,61,58,.12);
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    }
    .mobile-bottom-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        color: #8a9a98;
        font-size: 10.5px;
        font-weight: 600;
        padding: 4px 2px;
        text-align: center;
        transition: color .2s ease;
    }
    .mobile-bottom-nav__item:active,
    .mobile-bottom-nav__item:hover { color: #0f766e; }
    .mobile-bottom-nav__item .mbn-icon { display: flex; }
    .mobile-bottom-nav__item .mbn-icon svg { width: 21px; height: 21px; }
    .mobile-bottom-nav__item--whatsapp .mbn-icon { color: #25D366; }
    .mobile-bottom-nav__item--whatsapp .mbn-label { color: #1c9950; }

    .mobile-bottom-nav__item--cta { flex: 0 0 74px; color: #0b3d3a; }
    .mbn-cta-circle {
        width: 54px; height: 54px;
        border-radius: 50%;
        background: linear-gradient(145deg, #14a89b, #0b3d3a);
        color: #fff;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 12px 26px rgba(15,118,110,.5), 0 0 0 5px #fff;
        margin-top: -30px;
        margin-bottom: 4px;
    }
    .mbn-cta-circle svg { width: 24px; height: 24px; }
    .mbn-label--cta { font-size: 10.5px; font-weight: 700; color: #0b3d3a; white-space: nowrap; }
}
