/**
 * Neera Eye Care OPD — full responsive layer (all devices)
 * Load after opd-redesign.css
 */

/* ── Base ── */
.opd-landing {
    overflow-x: clip;
}

.opd-landing img,
.opd-landing video,
.opd-landing iframe,
.opd-landing svg {
    max-width: 100%;
    height: auto;
}

.opd-landing .container {
    width: 100%;
    max-width: 1140px;
    padding-left: 15px;
    padding-right: 15px;
}

.opd-landing #top,
.opd-landing #specialists,
.opd-landing #why-choose,
.opd-landing #book-form,
.opd-landing #reviews,
.opd-landing #services,
.opd-landing #achievements,
.opd-landing #facility,
.opd-landing #faqs,
.opd-landing #location,
.opd-landing #map,
.opd-landing #book-bottom {
    scroll-margin-top: var(--opd-header-offset);
}

.opd-landing .opd-section-lead {
    font-size: clamp(0.88rem, 2.5vw, 1rem);
}

/* ── Hero banner (desktop vs mobile image) ── */
.opd-landing #top.opd-hero--banner-img {
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    min-height: 460px;
    padding-bottom: 16px;
}

.opd-landing .opd-hero__row {
    min-height: 420px;
}

@media (min-width: 992px) {
    /* Laptop — bg-image set in index.php inline CSS; layout here */
    .opd-landing #top.opd-hero--banner-img {
        min-height: 500px;
        padding: 24px 0 20px;
        position: relative;
        overflow: hidden;
    }

    .opd-landing .opd-hero__row {
        min-height: 440px;
    }

    /* Keep heading + copy inside banner white area (left ~38%) */
    .opd-landing .opd-hero__copy.col-lg-6 {
        flex: 0 0 38% !important;
        max-width: 38% !important;
        width: 38% !important;
        padding-right: 20px;
        box-sizing: border-box;
    }

    .opd-landing .opd-hero__title {
        max-width: 100%;
        font-size: clamp(1.35rem, 1.9vw, 1.85rem) !important;
        line-height: 1.22 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .opd-landing .opd-hero__features,
    .opd-landing .opd-hero__cta-wrap {
        max-width: 100%;
    }

    .opd-landing .opd-hero__form-col {
        position: absolute !important;
        top: 20px;
        right: 12px;
        width: 300px;
        max-width: 32%;
        margin: 0 !important;
        padding: 0;
        z-index: 2;
    }

    .opd-landing .opd-hero__form-card {
        max-width: none;
        width: 100%;
        margin: 0;
    }

    .opd-landing .opd-hero__container {
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 991px) {
    /* Mobile banner — full width, no side crop */
    .opd-landing .opd-hero--mobile-banner.opd-hero--banner-img {
        background-image: none !important;
        background-size: unset !important;
        padding-top: 0 !important;
        padding-bottom: 16px;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .opd-landing .opd-hero__banner-wrap--mobile {
        display: block !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .opd-landing .opd-hero__banner-mobile {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center top !important;
        margin: 0 auto;
        padding: 0;
        border: 0;
        vertical-align: top;
    }

    .opd-landing .opd-hero {
        padding: 0 0 16px !important;
        overflow: visible !important;
    }

    .opd-landing .opd-hero__container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .opd-landing .opd-hero__row {
        min-height: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .opd-landing .opd-hero__copy {
        text-align: center;
        padding: 16px 0 0;
        max-width: 100%;
    }

    .opd-landing .opd-hero__banner-wrap--mobile {
        padding: 0;
        margin: 8px 0 12px;
    }

    .opd-landing .opd-hero__title {
        font-size: clamp(1.35rem, 4.5vw, 1.75rem) !important;
        margin-bottom: 1rem;
        padding: 0 4px;
    }

    .opd-landing .opd-hero__features {
        margin-bottom: 14px !important;
    }

    .opd-landing .opd-hero__features li {
        font-size: clamp(0.88rem, 2.8vw, 1rem);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .opd-landing .opd-hero__cta-wrap {
        max-width: 420px;
        margin: 0 auto 12px;
        padding: 0;
    }

    .opd-landing .opd-hero__cta-btn {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 14px 18px !important;
        text-align: center;
        box-sizing: border-box;
    }

    .opd-landing .opd-hero__form-col {
        position: static !important;
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 auto !important;
        padding: 0;
    }

    .opd-landing .opd-hero__form-card {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
}

@media (max-width: 575px) {
    .opd-landing .opd-hero__container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .opd-landing .opd-hero__cta-wrap,
    .opd-landing .opd-hero__form-col {
        max-width: 100% !important;
    }

    .opd-landing .opd-hero__form-card {
        padding: 16px 14px;
    }

    .opd-landing .opd-hero__cta-btn {
        font-size: 0.92rem !important;
        padding: 13px 14px !important;
    }

    .opd-landing .opd-hero__submit,
    .opd-landing .opd-hero__call {
        font-size: 0.95rem !important;
    }
}

/* ── Header ── */
@media (max-width: 991px) {
    .opd-landing .opd-header__main {
        flex-wrap: wrap;
        gap: 10px;
    }

    .opd-landing .opd-header__actions {
        flex: 1 1 auto;
        justify-content: flex-end;
    }
}

@media (max-width: 575px) {
    .opd-landing .opd-header__bar-inner {
        justify-content: center;
        text-align: center;
    }

    .opd-landing .opd-header__bar-phone {
        font-size: 0.72rem;
    }

    .opd-landing .opd-header__cta-text {
        display: none;
    }

    .opd-landing .opd-header__cta {
        padding: 8px 12px !important;
        min-width: 44px;
        justify-content: center;
    }

    .opd-landing .opd-header__cta-icon {
        margin: 0;
    }
}

@media (max-width: 380px) {
    .opd-landing .opd-header__logo,
    .opd-landing .site-logo-img {
        max-height: 38px !important;
    }

    .opd-landing .opd-header__actions {
        gap: 6px;
    }
}

/* ── Achievements bar ── */
@media (max-width: 767px) {
    .opd-landing .counter_section--banner .counter_icon {
        padding: 12px 8px 16px;
    }

    .opd-landing .counter_section--banner .counter-title {
        font-size: clamp(1rem, 4vw, 1.35rem) !important;
    }

    .opd-landing .counter_section--banner .counter-graph {
        font-size: clamp(0.65rem, 2.2vw, 0.8rem) !important;
        line-height: 1.3;
    }

    .opd-landing .counter_icon.border-right-white {
        border-right: none !important;
    }
}

/* ── Specialists + form ── */
@media (max-width: 991px) {
    .opd-landing .row-reverse-mob {
        flex-direction: column-reverse;
    }

    .opd-landing .sticky_scetion {
        padding: 32px 0;
    }

    .opd-landing .bg_white {
        padding: 20px 16px !important;
    }
}

@media (max-width: 575px) {
    .opd-landing .team_box {
        text-align: center;
    }

    .opd-landing .team_box .col-sm-4,
    .opd-landing .team_box .col-lg-4 {
        margin-bottom: 12px;
    }

    .opd-landing .team_box img {
        max-width: 140px;
        margin: 0 auto;
    }

    .opd-landing .opd-feature-card h3 {
        font-size: 0.82rem !important;
    }

    .opd-landing .form.sticky {
        margin-bottom: 20px;
    }
}

/* ── Testimonials — mobile: 1 full card (Swiper sets slide width; do NOT force width:100% on slides) ── */
@media (max-width: 991px) {
    .opd-landing .opd-testimonials {
        padding: 36px 0 44px;
    }

    .opd-landing .opd-testimonials .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .opd-landing .opd-testimonials__slider-wrap {
        padding: 0;
        margin-top: 20px;
        max-width: 100%;
        overflow: hidden;
    }

    .opd-landing .opd-testimonials-slider.swiper-container {
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
        padding-bottom: 36px !important;
    }

    .opd-landing .opd-testimonials-slider .swiper-wrapper {
        align-items: stretch;
    }

    /* Side arrows overlap cards on mobile — use dots only */
    .opd-landing .opd-testimonials__nav {
        display: none !important;
    }

    .opd-landing .opd-testimonials-slider .swiper-slide-next,
    .opd-landing .opd-testimonials-slider .swiper-slide-prev {
        pointer-events: auto !important;
    }

    .opd-landing .opd-testimonial-card {
        min-height: auto;
        width: 100%;
        padding: 18px 16px 16px;
        margin: 0 auto;
    }

    .opd-landing .opd-testimonial-card__top {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .opd-landing .opd-testimonial-card__stars {
        font-size: 0.7rem;
        letter-spacing: 0;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .opd-landing .opd-testimonial-card__stars .fa {
        margin: 0 1px;
    }

    .opd-landing .opd-testimonial-card__text {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .opd-landing .opd-testimonials-slider .swiper-slide-active .opd-testimonial-card {
        transform: none;
        border-color: #99f6e4;
        box-shadow: var(--opd-shadow-lg);
    }

    .opd-landing .opd-testimonials-pagination {
        bottom: 4px !important;
    }
}

@media (max-width: 400px) {
    .opd-landing .opd-testimonials__summary {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* ── Services carousel ── */
@media (max-width: 991px) {
    .opd-landing .services_box {
        min-height: auto !important;
        padding-bottom: 16px;
    }

    .opd-landing .advanced_laser {
        padding: 36px 0 !important;
    }

    .opd-landing .advanced_laser .btn {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}

/* ── Gallery — full width inside card (no side gaps) ── */
.opd-landing .gallery_item img.img-responsive {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
}

@media (max-width: 575px) {
    .opd-landing .gallery_item {
        margin-bottom: 12px;
    }

    .opd-landing .gallery_item img {
        width: 100% !important;
        height: 200px !important;
        max-height: none !important;
        object-fit: cover !important;
    }
}

/* ── FAQ + Map ── */
@media (max-width: 991px) {
    .opd-landing .opd-faq-map-wrap {
        padding: 32px 15px;
        margin-left: 0;
        margin-right: 0;
        border-radius: var(--opd-radius-lg);
    }

    .opd-landing .faq_front .btn-link {
        font-size: 0.85rem !important;
        text-align: left;
        white-space: normal;
        line-height: 1.4;
        padding-right: 28px;
    }

    .opd-landing #map .map_box,
    .opd-landing #map .map_box iframe {
        min-height: 280px !important;
    }
}

/* ── Bottom CTA ── */
@media (max-width: 991px) {
    .opd-landing .opd-bottom-form__field {
        margin-bottom: 12px;
        padding-left: 0;
        padding-right: 0;
    }

    .opd-landing .opd-bottom-form__actions {
        max-width: 100%;
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .opd-landing .book_appointment {
        padding: 24px 16px !important;
    }

    .opd-landing .book_appointment .section-title {
        font-size: 1.35rem !important;
    }

    .opd-landing .opd-bottom-form__field {
        margin-bottom: 14px;
    }

    .opd-landing .opd-bottom-form__btn {
        font-size: 0.95rem !important;
        padding: 11px 16px !important;
    }
}

/* ── Footer (compact on mobile) ── */
@media (max-width: 991px) {
    .opd-landing .opd-footer.footer_address_Sec {
        padding: 14px 0 calc(54px + env(safe-area-inset-bottom, 0px));
    }

    .opd-landing .opd-footer .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .opd-landing .opd-footer__logo-link {
        margin-bottom: 4px;
    }

    .opd-landing .opd-footer .opd-footer__logo {
        max-width: 150px !important;
        min-width: 120px;
        max-height: 52px !important;
    }

    .opd-landing .opd-footer__tagline {
        margin-bottom: 6px;
        font-size: 0.82rem;
    }

    .opd-landing .opd-footer__address {
        margin-bottom: 6px;
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .opd-landing .opd-footer__links-line {
        margin-bottom: 8px;
        font-size: 0.84rem;
        gap: 4px 10px;
    }

    .opd-landing .opd-footer__cta {
        margin-bottom: 8px;
        gap: 6px;
    }

    .opd-landing .opd-footer__chip {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .opd-landing .opd-footer__copy {
        padding-top: 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 575px) {
    .opd-landing .opd-footer.footer_address_Sec {
        padding: 12px 0 calc(50px + env(safe-area-inset-bottom, 0px));
    }

    .opd-landing .opd-footer__links-line {
        flex-direction: column;
        gap: 4px;
    }

    .opd-landing .opd-footer__sep {
        display: none;
    }

    .opd-landing .opd-footer__cta {
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 6px;
    }

    .opd-landing .opd-footer__chip {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
    }
}

/* ── Mobile fixed call / WhatsApp bar (footer sticky) ── */
@media (max-width: 991px) {
    .opd-landing .display_mobile_app.display_mobile {
        display: block !important;
    }

    .opd-landing .display_mobile_app .opd-mobile-bar.social_icon {
        display: block !important;
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.12);
        border-top: 1px solid var(--opd-border);
    }

    .opd-landing .opd-mobile-bar__inner {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .opd-landing .opd-mobile-bar__inner .opd-mobile-bar__btn {
        flex: 1 1 50% !important;
        max-width: 50% !important;
        width: auto !important;
    }

    .opd-landing .opd-mobile-bar__btn span {
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .opd-landing .opd-mobile-bar__btn {
        font-size: 0.78rem;
        padding: 10px 8px;
        gap: 6px;
    }
}

/* ── Tablet landscape / medium laptops ── */
@media (min-width: 992px) and (max-width: 1199px) {
    .opd-landing #top.opd-hero--banner-img {
        background-size: auto 95% !important;
        min-height: 450px;
    }

    .opd-landing .opd-hero__copy.col-lg-6 {
        flex: 0 0 34% !important;
        max-width: 34% !important;
        width: 34% !important;
    }

    .opd-landing .opd-hero__title {
        font-size: 1.38rem !important;
    }

    .opd-landing .opd-hero__form-col {
        width: 280px;
        max-width: 30%;
        right: 8px;
    }
}

@media (min-width: 1200px) {
    .opd-landing #top.opd-hero--banner-img {
        background-size: auto 100% !important;
        min-height: 500px;
    }

    .opd-landing .opd-hero__copy.col-lg-6 {
        flex: 0 0 40% !important;
        max-width: 400px !important;
        width: auto !important;
    }

    .opd-landing .opd-hero__title {
        font-size: 1.85rem !important;
    }
}

/* ── Large screens ── */
@media (min-width: 1400px) {
    .opd-landing .container {
        max-width: 1320px;
    }
}

/* Kill legacy fixed heights that break mobile layout */
.opd-landing .post-slid {
    height: auto !important;
    min-height: 0 !important;
}

.opd-landing table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
