/* ==========================================================================
   Al Ain Advanced Dental Centre - Custom Sections
   Video hero, doctors slider, reviews, insurance, before/after, map
   ========================================================================== */

/* ---------- Contact Hours Table ---------- */
.contact-hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 4px;
}
.contact-hours-table td {
    padding: 4px 8px 4px 0;
    vertical-align: top;
    color: var(--careold-text, #6e7882);
    line-height: 1.5;
}
.contact-hours-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
    padding-right: 16px;
    color: var(--careold-dark, #1a1a1a);
}
.contact-hours-table td.closed {
    color: #e74c3c;
    font-weight: 600;
}

/* ---------- Video Hero ---------- */
.video-hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0e0b06;
}

.video-hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 11, 6, 0.55) 0%, rgba(14, 11, 6, 0.35) 50%, rgba(14, 11, 6, 0.7) 100%);
    z-index: 2;
}

.video-hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 60px 0;
}

.video-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--careold-base, #92c13c);
    color: #fff;
    font-family: var(--careold-heading-font, "Urbanist", sans-serif);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 13px;
    padding: 10px 22px;
    border-radius: 50px;
    margin-bottom: 26px;
}

.video-hero__badge i {
    color: #fff;
}

.video-hero__sub-title {
    color: var(--careold-primary, #abe6d7);
    font-family: var(--careold-heading-font, "Urbanist", sans-serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.video-hero__title {
    color: #fff;
    font-family: var(--careold-heading-font, "Urbanist", sans-serif);
    font-weight: 800;
    font-size: 72px;
    line-height: 1.05;
    margin: 0 0 22px;
}

.video-hero__title span {
    color: var(--careold-base, #92c13c);
}

.video-hero__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 680px;
    margin: 0 auto 36px;
}

.video-hero__btns {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    /* Fit the full landscape video instead of cropping it on smaller screens */
    .video-hero {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .video-hero__video {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        transform: none;
        object-fit: cover;
    }
    .video-hero__title { font-size: 48px; }
}

@media (max-width: 767px) {
    .video-hero { margin-top: 120px; }
}

@media (max-width: 575px) {
    .video-hero__title { font-size: 34px; }
    .video-hero__text { font-size: 16px; }
}

/* ---------- Section Heading helper (reuse template look) ---------- */
.section-pad { padding: 100px 0; }
.section-pad-top { padding-top: 100px; }

/* ---------- Doctors Slider ---------- */
.doctors-one {
    position: relative;
    padding: 110px 0 120px;
    background-color: transparent;
    padding-top: 0px;
}

.doctors-one .owl-stage {
    display: flex !important;
    align-items: stretch;
}

.doctors-one .owl-item {
    display: flex;
    align-items: stretch;
}

.doctors-one .item {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.doctor-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #eef3f1;
    box-shadow: 0 10px 24px rgba(64, 95, 88, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin: 6px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 34px rgba(64, 95, 88, 0.1);
}

.doctor-card__image {
    position: relative;
    overflow: hidden;
}

.doctor-card__image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-card__image img {
    transform: scale(1.06);
}

.doctor-card__social {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.4s ease;
}

.doctor-card:hover .doctor-card__social {
    opacity: 1;
    transform: translateY(0);
}

.doctor-card__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--careold-base, #92c13c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.doctor-card__content {
    padding: 24px 26px 28px;
    text-align: center;
}

.doctor-card__name {
    font-family: var(--careold-heading-font, "Urbanist", sans-serif);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--careold-black, #0e0b06);
}

.doctor-card__name a { color: inherit; }

.doctor-card__role {
    color: var(--careold-base, #92c13c);
    font-weight: 600;
    margin: 0;
    font-size: 15px;
}

.doctor-card__degree {
    color: #666;
    font-weight: 400;
    margin: 2px 0 0;
    font-size: 11px;
    line-height: 1.4;
}

/* Uniform image height for doctor cards everywhere */
.doctor-card__image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Equal-height doctor cards in Bootstrap grid (doctors page) */
.doctors-one .row {
    align-items: stretch;
}

.doctors-one .row > [class*="col"] {
    display: flex;
}

.doctors-one .row .doctor-card {
    margin: 0;
}

.doctors-one .owl-carousel,
.reviews-one .owl-carousel { position: relative; }

.doctors-one .owl-nav,
.reviews-one .owl-nav {
    margin-top: 0;
}

.doctors-one .owl-nav button.owl-prev,
.doctors-one .owl-nav button.owl-next {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 5;
}

.doctors-one .owl-nav button.owl-prev { left: -22px; }
.doctors-one .owl-nav button.owl-next { right: -22px; }

.doctors-one .owl-nav button,
.reviews-one .owl-nav button {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--careold-base, #92c13c) !important;
    box-shadow: 0 12px 30px rgba(64, 95, 88, 0.16) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    transition: all 0.3s ease;
}

.doctors-one .owl-nav button span,
.reviews-one .owl-nav button span {
    font-size: 22px;
    line-height: 1;
    display: block;
}

.doctors-one .owl-nav button:hover,
.reviews-one .owl-nav button:hover {
    background: var(--careold-base, #92c13c) !important;
    color: #fff !important;
}

@media (max-width: 1300px) {
    .doctors-one .owl-nav button.owl-prev { left: 6px; }
    .doctors-one .owl-nav button.owl-next { right: 6px; }
}

.doctors-one .owl-dots,
.reviews-one .owl-dots {
    text-align: center;
    margin-top: 36px;
}

.doctors-one .owl-dots .owl-dot span,
.reviews-one .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background: #cfe3dd;
    border-radius: 50%;
    margin: 0 5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.doctors-one .owl-dots .owl-dot.active span,
.reviews-one .owl-dots .owl-dot.active span {
    background: var(--careold-base, #92c13c);
    width: 26px;
    border-radius: 8px;
}

/* ---------- Patient Reviews ---------- */
.reviews-one {
    position: relative;
    padding: 110px 0 120px;
    background-color: #fff;
    padding-top: 0px;
}

.reviews-one .owl-stage {
    display: flex !important;
    align-items: stretch;
}

.reviews-one .owl-item {
    display: flex;
    align-items: stretch;
}

.reviews-one .item {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.review-card {
    background: var(--careold-gray, #f1fcf9);
    border-radius: 18px;
    padding: 38px 36px 40px;
    margin: 12px;
    position: relative;
    border: 1px solid #e6f2ee;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.review-card__quote {
    position: absolute;
    top: 30px;
    right: 34px;
    font-size: 46px;
    color: var(--careold-primary, #abe6d7);
    opacity: 0.6;
    line-height: 1;
}

.review-card__stars {
    color: #ffb52e;
    margin-bottom: 18px;
    font-size: 15px;
    letter-spacing: 2px;
}

.review-card__text {
    color: var(--careold-text, #827e76);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 26px;
    flex: 1;
}

.review-card__person {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--careold-base, #92c13c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--careold-heading-font, "Urbanist", sans-serif);
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.review-card__name {
    font-family: var(--careold-heading-font, "Urbanist", sans-serif);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--careold-black, #0e0b06);
}

.review-card__meta {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--careold-base, #92c13c);
}

/* ---------- Insurance Partners ---------- */
.insurance-one {
    padding: 90px 0 100px;
    background: var(--careold-gray2, #f7f3ea);
}

.insurance-one__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.insurance-card {
    background: #fff;
    border-radius: 16px;
    padding: 34px 46px;
    min-width: 240px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(64, 95, 88, 0.07);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.insurance-card:hover { transform: translateY(-6px); }

.insurance-card img {
    max-height: 70px;
    max-width: 180px;
    object-fit: contain;
}

.insurance-card__name {
    font-family: var(--careold-heading-font, "Urbanist", sans-serif);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 0.04em;
    color: var(--careold-black2, #405f58);
    margin: 0;
}

.insurance-card__name span { color: var(--careold-base, #92c13c); }

.insurance-card__tag {
    margin: 6px 0 0;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--careold-text, #827e76);
}

/* ---------- Home Map ---------- */
.home-map { padding: 100px 0 110px; background: #fff; }
.home-map__frame {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(64, 95, 88, 0.14);
    line-height: 0;
}
.home-map__frame iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------- Before / After Slider ---------- */
.before-after {
    padding: 110px 0 120px;
    background: var(--careold-gray, #f1fcf9);
}

.ba-slider {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(64, 95, 88, 0.14);
    user-select: none;
}

.ba-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-slider__after {
    width: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.ba-slider__after img { width: 100%; }

.ba-slider__label {
    position: absolute;
    bottom: 16px;
    z-index: 4;
    background: rgba(14, 11, 6, 0.7);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
}

.ba-slider__label--before { left: 16px; }
.ba-slider__label--after { right: 16px; }

.ba-slider__handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

.ba-slider__handle::after {
    content: "\f337";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    background: var(--careold-base, #92c13c);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.ba-slider__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
}

/* Before/after inside the gallery grid */
.ba-case-label {
    text-align: center;
    margin-top: 18px;
    font-family: var(--careold-heading-font, "Urbanist", sans-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--careold-black, #0e0b06);
    letter-spacing: 0.5px;
}

.gallery-one__card .ba-slider {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: 1 / 1;
}

.ba-card__caption {
    text-align: center;
    margin-top: 22px;
    font-family: var(--careold-heading-font, "Urbanist", sans-serif);
    font-weight: 700;
    font-size: 20px;
    color: var(--careold-black2, #405f58);
}

/* ---------- Topbar / footer contact tweaks ---------- */
.topbar-one__info__item a { color: inherit; }

.footer-widget--contact .footer-widget__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget--contact .footer-widget__contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
}

.footer-widget--contact .footer-widget__contact li i {
    color: var(--careold-base, #92c13c);
    margin-top: 4px;
}

.footer-widget--contact .footer-widget__contact a { color: rgba(255, 255, 255, 0.75); }
.footer-widget--contact .footer-widget__contact a:hover { color: #fff; }

/* ---------- Floating Social Stack ---------- */
.float-social {
    position: fixed;
    right: 24px;
    bottom: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 9999;
}

.float-social__btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-social__btn:hover {
    transform: scale(1.12);
    color: #fff;
}

.float-social__btn--whatsapp {
    background: #25d366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.float-social__btn--call {
    background: #0070c9;
    box-shadow: 0 8px 24px rgba(0, 112, 201, 0.38);
}

.float-social__btn--facebook {
    background: #1877f2;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.38);
}

.float-social__btn--instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #515bd4 100%);
    box-shadow: 0 8px 24px rgba(221, 42, 123, 0.38);
}

@media (max-width: 575px) {
    .float-social { right: 14px; bottom: 72px; gap: 8px; }
    .float-social__btn { width: 46px; height: 46px; font-size: 20px; }
}

/* ---------- Dr Faiz Section ---------- */
.dr-faiz-section {
    padding: 90px 0 100px;
    background: #f9fdf9;
}

.dr-faiz__image {
    position: relative;
}

.dr-faiz__image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(64, 95, 88, 0.15);
    object-fit: cover;
    object-position: top center;
    max-height: 520px;
}

.dr-faiz__content .sec-title {
    margin-bottom: 0;
    padding-bottom: 0;
}

.dr-faiz__credentials {
    font-size: 15px;
    font-weight: 700;
    color: var(--careold-black2, #1a1a1a);
    letter-spacing: 0.04em;
    margin-top: 8px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUpCredentials 0.6s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeUpCredentials {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dr-faiz__desc {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.85;
    color: var(--careold-text, #827e76);
    margin-bottom: 16px;
}

.dr-faiz__list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.dr-faiz__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--careold-black2, #405f58);
    font-weight: 600;
    margin-bottom: 10px;
}

.dr-faiz__list li i {
    color: var(--careold-base, #92c13c);
    font-size: 14px;
}
