/* Design fixes (Dec 2026 audit). Loaded after style.css + responsive.css
   from header.php, so these rules take precedence. Numbers refer to the audit list. */

/* ---------- #2 WhatsApp floating button: proper floating button ---------- */
.whatapps { right: 16px; bottom: 18px; z-index: 50; }
.whatapps a { display: block; width: 52px; height: 52px; border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
.whatapps img { width: 52px; height: 52px; display: block; }

/* ---------- Hover states for every button and link (Dec 2026) ---------- */
/* Dark buttons: Schedule Now, Request a Call Back, View All Articles, Contact Us, Read More */
.primary_button, .view_btn > button, .view_btn > a {
    transition: background-color .2s, color .2s, transform .2s, box-shadow .2s; }
.primary_button:hover, .primary_button:focus-visible,
.view_btn > button:hover, .view_btn > a:hover, .view_btn > a:focus-visible {
    color: #FFF; background: #0B5568; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(3, 59, 74, .25); }
a.primary_button:focus, a.primary_button:active { color: #FFF; }
.view_btn > a img, .view_btn > button img { transition: transform .2s; }
.view_btn > a:hover img, .view_btn > button:hover img { transform: translateX(4px); }
/* "Read More" on the green About section of the homepage is light-on-dark green */
.abouts_area .view_btn > a:hover { background: #6E9279; }

/* Header: Schedule an Appointment + hamburger */
.appointment_botton .app_btn .right_side_btn > button { transition: background-color .2s, box-shadow .2s; }
.appointment_botton .app_btn .right_side_btn > button:hover,
.appointment_botton .app_btn .right_side_btn > button:focus-visible { background: #6E9279; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.bar_icon > img { transition: transform .2s, box-shadow .2s; }
.bar_icon > img:hover { transform: scale(1.06); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }

/* Main menu (desktop) */
@media (min-width: 992px) {
    .menu > ul > li > a { transition: color .2s; }
    .menu > ul > li > a:hover { color: #A9CDB3; }
}

/* Homepage photo slider arrows */
.banner_slider .owl-nav button .left_arrow, .banner_slider .owl-nav button .right_arrow { transition: background-color .2s; }
.banner_slider .owl-nav button:hover .left_arrow, .banner_slider .owl-nav button:hover .right_arrow { background: rgba(255, 255, 255, .25); }

/* Blog cards: "Read More" link + arrow */
.right_obi_box a span { transition: color .2s, border-color .2s; }
.right_obi_box a > img { transition: transform .2s; }
.right_obi_box a:hover span { color: #0E7C8C; border-color: #0E7C8C; }
.right_obi_box a:hover > img { transform: translateX(4px); }

/* Blog article buttons/links */
.blog_article .cta_box a.btn_inline { transition: background-color .2s, transform .2s; }
.blog_article .cta_box a.btn_inline:hover { background: #8FE0DD; color: #033B4A; transform: translateY(-2px); }
.blog_article .meet_doctor a.more_link:hover, .blog_article p a:hover, .blog_article li a:hover { color: #7CA086; }

/* Contact page phone / email links */
.contact_list ul li a[href] { transition: color .2s; }
.contact_list ul li a[href]:hover { color: #7CA086; }

/* Floating WhatsApp button + captcha refresh */
.whatapps a { transition: transform .2s, box-shadow .2s; }
.whatapps a:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(0, 0, 0, .32); }
.cap_row .captcha a img { transition: transform .4s; }
.cap_row .captcha a:hover img { transform: rotate(180deg); }

/* Footer links: teal text + chevron nudges right */
.footer_widget ul li a { transition: color .2s; }
.footer_widget ul li a::after { transition: transform .2s; }
.footer_widget ul li a:hover, .footer_widget ul li a:focus-visible { color: #65D0CD; }
.footer_widget ul li a:hover::after { transform: translateX(3px); }
.footer_contact ul li a span, .loc_address p a { transition: color .2s; }
.footer_contact ul li a:hover span, .loc_address p a:hover { color: #65D0CD; }
.copy_right ul li a { transition: color .2s; }
.copy_right ul li a:hover { color: #65D0CD !important; }
.notfound_area .nf_links a.nf_secondary:hover, .notfound_area .nf_links a.nf_secondary:focus { color: #033B4A; background: #DCE8EE; }

/* ---------- #11 Home: service cards (equal height, centred, hover) ---------- */
.left_our_services, .right_services_items { border-radius: 14px; }
.left_our_services { background: linear-gradient(155deg, #86AA8F 0%, #6E9279 100%); padding: 40px 28px;
    box-shadow: 0 10px 30px rgba(3, 59, 74, .12); }
.left_our_services p br { display: none; }   /* let the subtitle wrap naturally */
.right_services_items { padding: 22px 18px 18px; box-shadow: 0 10px 30px rgba(3, 59, 74, .10); }
.right_services_items .sgaps { padding: 6px 5px; }
.right_services_items .sgaps > a { display: block; height: 100%; border-radius: 10px; }
.right_services_items .sub_services { min-height: 150px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 14px; padding: 20px 14px;
    border: 1px solid #E1EBF0; border-radius: 10px;
    transition: background-color .25s, transform .25s, box-shadow .25s, border-color .25s; }
.right_services_items .sub_services img { width: 46px; height: 46px; transition: filter .25s; }
.right_services_items .sub_services h2 { margin: 0; font-size: 16px; letter-spacing: .2px; line-height: 1.3; transition: color .25s; }
@media (max-width: 575px) { .right_services_items .sub_services h2 { font-size: 15px; } }
.right_services_items .sgaps > a:hover .sub_services,
.right_services_items .sgaps > a:focus-visible .sub_services {
    background: #033B4A; border-color: #033B4A; transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(3, 59, 74, .22); }
.right_services_items .sgaps > a:hover .sub_services h2,
.right_services_items .sgaps > a:focus-visible .sub_services h2 { color: #FFF; }
.right_services_items .sgaps > a:hover .sub_services img,
.right_services_items .sgaps > a:focus-visible .sub_services img { filter: brightness(0) invert(1); }
.right_services_items .owl-stage-outer { padding: 4px 0; }   /* room for the hover lift */

/* ---------- #12 Home: bigger, clearer service carousel arrows ---------- */
.right_services_items.owl-theme .owl-nav { margin-top: 12px; display: flex; justify-content: center; gap: 12px; }
.right_services_items.owl-theme .owl-nav button.owl-prev,
.right_services_items.owl-theme .owl-nav button.owl-next {
    width: 40px; height: 40px; margin: 0; padding: 0 !important; border-radius: 50%;
    background: #033B4A !important; display: flex; align-items: center; justify-content: center; }
.right_services_items.owl-theme .owl-nav button:hover { background: #7CA086 !important; }
.right_services_items .owl-nav .left_arrow, .right_services_items .owl-nav .right_arrow { display: flex; }
.right_services_items .owl-nav img { display: none; }
.right_services_items .owl-nav .left_arrow::before, .right_services_items .owl-nav .right_arrow::before {
    content: ""; width: 10px; height: 10px; border-left: 2px solid #FFF; border-bottom: 2px solid #FFF; }
.right_services_items .owl-nav .left_arrow::before { transform: rotate(45deg); margin-left: 4px; }
.right_services_items .owl-nav .right_arrow::before { transform: rotate(-135deg); margin-right: 4px; }

/* ---------- #20 Home: "About clinic" card, photo no longer stretches the card ---------- */
@media (min-width: 992px) {
    .clinic_box .cgaps_2 { position: relative; }
    .clinic_box .cgaps_2 .right_clinic_items { position: absolute; inset: 0; }
}

/* ---------- #5, #17, #18 Page banners ---------- */
.all_banner h1 { display: inline-flex; }
.all_banner h1::after { width: 100%; bottom: -12px; }

/* ---------- #9 Service pages: sidebar contrast ---------- */
.professional_services ul li a { color: #033B4A; background: #EDF3F6; font-size: 14px;
    padding: 10px 18px; border-radius: 6px; margin: 6px 0; transition: background .2s; }
.professional_services ul li a:hover { background: #DCE8EE; color: #033B4A; }
.professional_services ul li a.active, .professional_services ul li a.active:hover { color: #FFF; background: #033B4A; }

/* ---------- #7, #8 Service pages: left-aligned text, real sub-headings ---------- */
.general_surgery_box .sub_gs_box p { text-align: left; }
.general_surgery_box .sub_gs_box h2.svc-h2 { font-size: 22px; color: #033B4A; padding-top: 30px; line-height: 1.3; }
.general_surgery_box .sub_gs_box h3.svc-h3 { font-size: 18px; color: #033B4A; padding-top: 22px; line-height: 1.35; }

/* ---------- #19 Insurance: space between banner and heading ---------- */
.insurance_policy { padding-top: 50px; }

/* ---------- #22 Contact: address same size as phone / email ---------- */
.contact_items p.ci-addr { font-size: 16px; }

/* ---------- #15 Forms: captcha row lines up with the other fields ---------- */
.frow input[name="code"] { padding-left: 14px; }
.f_col.cap_row { flex: 0 0 100%; max-width: 100%; }
.cap_row { display: flex; align-items: center; gap: 10px; }
.cap_row .appointment { flex: 0 1 calc(50% - 10px); min-width: 120px; }
.cap_row .appointment input { padding-left: 16px; }
.cap_row .captcha { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.cap_row .captcha > img { height: 50px; width: auto; border-radius: 7px; display: block; }
.cap_row .captcha a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }

/* ---------- #14 Appointment popup: close button ---------- */
.appointment_from .appt_close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
    border: none; border-radius: 50%; background: #EDF3F6; color: #033B4A; font-size: 26px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; z-index: 2; }
.appointment_from .appt_close:hover { background: #DCE8EE; }

/* ---------- #16 Branded 404 page ---------- */
.notfound_area { padding: 90px 0 100px; text-align: center; }
.notfound_area .nf_code { font-size: 96px; font-weight: 700; color: #7CA086; line-height: 1; }
.notfound_area h1 { color: #033B4A; font-size: 36px; margin: 16px 0 12px; display: block; }
.notfound_area p { color: #033B4ACC; font-size: 16px; max-width: 560px; margin: 0 auto; }
.notfound_area .nf_links { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.notfound_area .nf_links a.primary_button { text-decoration: none; }
.notfound_area .nf_links a.nf_secondary { background: #EDF3F6; color: #033B4A; }

/* ---------- Language picker: styled native dropdown (Google Translate) ---------- */
/* Visible part is our own pill (.lang_label); Google's <select> sits invisibly on
   top of it, so a tap/click opens the native language list. The select is 16px
   so iPhones don't zoom in when it's tapped. */
.lang_picker { position: relative; display: inline-block; }
.appointment_botton .app_btn .lang_picker button.lang_label {
    display: inline-block; white-space: nowrap; pointer-events: none; margin: 0; border: 0; outline: none;
    font-family: inherit; font-size: 13px; font-weight: 600; line-height: normal; color: #FFF;
    background: #7CA086 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
    border-radius: 100px; padding: 14px 40px 14px 20px; transition: background-color .2s; }
.appointment_botton .app_btn .lang_picker:hover button.lang_label { background-color: #6E9279; }
.appointment_botton .app_btn .lang_picker select:focus-visible ~ button.lang_label,
.appointment_botton .app_btn .lang_picker button.lang_label:focus-visible { box-shadow: 0 0 0 3px rgba(101, 208, 205, .6); }

/* Desktop (mouse): our own menu instead of the browser's native list */
.lang_picker.lang_custom select.goog-te-combo { display: none; }
.appointment_botton .app_btn .lang_picker.lang_custom button.lang_label { pointer-events: auto; cursor: pointer; }
.lang_picker .lang_menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 1002; min-width: 220px;
    background: #FFF; border-radius: 14px; padding: 8px; box-shadow: 0 12px 36px rgba(3, 59, 74, .25); }
.lang_picker .lang_menu[hidden] { display: none; }
.lang_picker .lang_menu::before { content: ""; position: absolute; top: -6px; right: 28px; width: 12px; height: 12px;
    background: #FFF; transform: rotate(45deg); border-radius: 2px; }
.appointment_botton .app_btn .lang_picker .lang_menu button.lang_opt {
    position: relative; display: block; width: 100%; margin: 0; border: 0; outline: none; text-align: left; white-space: nowrap;
    font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; color: #033B4A;
    background: transparent; border-radius: 9px; padding: 11px 36px 11px 14px; cursor: pointer; }
.appointment_botton .app_btn .lang_picker .lang_menu button.lang_opt:hover,
.appointment_botton .app_btn .lang_picker .lang_menu button.lang_opt:focus-visible { background: #EDF3F6; }
.appointment_botton .app_btn .lang_picker .lang_menu button.lang_opt[aria-selected="true"] { color: #7CA086; }
.lang_picker .lang_menu button.lang_opt[aria-selected="true"]::after { content: ""; position: absolute; right: 16px; top: 50%;
    width: 6px; height: 11px; border: solid #7CA086; border-width: 0 2px 2px 0; transform: translateY(-65%) rotate(45deg); }
.lang_picker #google_translate_element,
.lang_picker #google_translate_element .goog-te-gadget,
.lang_picker #google_translate_element .goog-te-gadget > div { position: static; font-size: 0; line-height: 0; color: transparent; }
.lang_picker #google_translate_element .goog-te-gadget > span { display: none !important; }   /* "Powered by Google" */
.lang_picker select.goog-te-combo {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0 !important;
    opacity: 0; cursor: pointer; font-size: 16px; -webkit-appearance: none; appearance: none; border: 0; }
.lang_picker select.goog-te-combo option { color: #033B4A; background: #FFF; }
/* When a page is translated, Google adds a 40px "Show original" bar at the top
   (the way back to English); keep the sticky header below it. */
html.translated-ltr .header_area.fixed, html.translated-rtl .header_area.fixed { top: 40px; }

/* ======================= Laptop (992–1199px) ======================= */
@media (min-width: 992px) and (max-width: 1199px) {
    .appointment_botton .app_btn button { font-size: 12px; padding: 12px 12px; margin-right: 5px; white-space: nowrap; }
    .menu > ul { padding-right: 12px; }
    .appointment_botton .app_btn .lang_picker button.lang_label { font-size: 12px; padding: 12px 32px 12px 14px; background-position: right 12px center; }
    .right_services_items .sub_services { padding: 18px 8px; }
    .right_services_items .sub_services h2 { font-size: 14px; }
}

/* ======================= Tablet + mobile ======================= */
@media (max-width: 991px) {
    /* #13 Compact header */
    .header_area { padding: 14px 0 12px; }
    .logo { padding-bottom: 12px; }
    .header_col_2.mobile_menu { top: 100%; }

    /* #6 Service pages: show the services list below the article on mobile */
    .professional_services { display: block; position: static; padding-left: 0; margin-top: 40px;
        padding-top: 30px; border-top: 1px solid #65D0CD; }
}

/* ======================= Phones ======================= */
@media (max-width: 767px) {
    /* #13 Compact header */
    .logo img { width: 270px; }
    .bar_icon > img { width: 42px; height: 42px; }
    .bar_icon { margin-right: 6px; flex: 0 0 auto; }

    /* #1 Readable header controls */
    .appointment_botton .app_btn button { font-size: 12px; padding: 11px 12px; margin-right: 6px; white-space: nowrap; }
    .goog-te-gadget-simple { padding: 10px 9px !important; white-space: nowrap; }
    .goog-te-gadget-simple span { font-size: 12px; }
    .appointment_botton .app_btn .lang_picker button.lang_label { font-size: 12px; padding: 11px 32px 11px 14px; background-position: right 12px center; }

    /* #14 Popup fits short screens and scrolls inside itself */
    .appointment_from { max-height: calc(100vh - 110px); overflow-y: auto; padding: 26px 16px 24px; }
    .appointment_from h2 { padding: 0 40px; }

    /* #15 Same text size in every form field (16px also stops iPhone zooming in on focus) */
    .appointment input, .appointment select { font-size: 16px; }
    .cap_row { gap: 8px; }
    .cap_row .appointment { flex: 1 1 auto; min-width: 100px; }
    .cap_row .captcha { gap: 2px; }
    .cap_row .captcha > img { height: 42px; }
    .cap_row .captcha a { width: 34px; }
    .cap_row .captcha a img { width: 26px; height: 26px; }

    /* #2 Leave room so the WhatsApp button never covers the end of the page */
    .whatapps { right: 12px; bottom: 14px; }
    .whatapps a, .whatapps img { width: 48px; height: 48px; }
    .footer_area { padding-bottom: 70px; }

    /* #3 Blog articles: left-aligned body text on mobile */
    .single_blog_box.blog_article { text-align: left; }
    .blog_article .faq_item summary { text-align: left; }

    /* #5 Banner heading: solid backing and bigger text on phones */
    .all_banner_area::before { width: 100%;
        background: linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.6) 100%); }
    .all_banner h1 { font-size: 34px; }
    .blog_detail.all_banner h1 { font-size: 24px; line-height: 1.25em; }
    .all_banner h1 img { width: 40px; margin-right: 12px; flex: 0 0 40px; }
    .all_banner h1::after { width: 100%; }

    /* #7/#8 Service page headings on mobile */
    .general_surgery_box .sub_gs_box h2.svc-h2 { font-size: 19px; }
    .general_surgery_box .sub_gs_box h3.svc-h3 { font-size: 17px; }

    /* #19 Insurance spacing on mobile */
    .insurance_policy { padding-top: 35px; }

    /* #24 Insurance logos: give the logo image the full card width */
    .insurance_policy .row { padding: 24px 6px; }
    .insurance_policy .insurance_policy_right { padding-left: 4px; padding-right: 4px; overflow: hidden; }
    .insurance_policy .insurance_policy_right img { width: 112%; max-width: none; margin-left: -6%; } /* trims the image's white side margins */

    /* #1 Home "About clinic" card text was 11px on phones */
    .ccontent_box2 ul li, .ccontent_box2 p { font-size: 13px; }

    /* #22 Contact address matches the other contact lines */
    .contact_items p.ci-addr { font-size: 15px; }

    /* #21 Footer "Explore": two tidy rows instead of one cramped row */
    .footer_widget:not(.footer_contact):not(.footer_services) ul { flex-wrap: wrap; justify-content: flex-start; }
    .footer_widget:not(.footer_contact):not(.footer_services) ul li { flex: 0 0 33.333%; max-width: 33.333%; margin-bottom: 14px; }

    /* Footer copyright / credit: two clean full-width lines (the only .copy_right
       block is also :last-child, so an old 33%-width rule was squeezing it) */
    .copy_right_box { margin-top: 28px; }
    .copy_right:first-child { margin-top: 0; }
    .copy_right ul, .copy_right:first-child ul { flex-direction: column; align-items: center; gap: 6px; }
    .copy_right ul li, .copy_right:last-child ul li, .copy_right:first-child ul li {
        flex: 0 0 auto; max-width: 100%; width: auto; padding: 0; text-align: center; line-height: 1.5; }
    .copy_right ul li::after { display: none; }
    .copy_right ul li a { text-decoration: underline; text-underline-offset: 3px; }
    .footer_area .disclaimer { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(101, 208, 205, .25); }

    /* Footer services: no forced line breaks inside link names */
    .footer_services ul li a br { display: none; }

    /* #23 Contact page phone / email links: comfortable tap height */
    .contact_list ul li a { padding: 4px 0; }
}

@media (max-width: 575px) {
    /* #1 Footer text was 10px on phones */
    .footer_widget ul li, .footer_widget ul li a, .loc_address p { font-size: 14px; }
    .copy_right:last-child ul li, .copy_right:first-child ul li { font-size: 13px; }
    .footer_widget ul li a { padding-left: 14px; }
    .footer_widget ul li a::after { width: 6px; height: 11px; top: 4px; }
    .footer_widget.footer_services ul li { margin-bottom: 4px; }
    .all_banner h1 { font-size: 30px; }
    .blog_detail.all_banner h1 { font-size: 22px; }

    /* #4 Blog comparison table: fits the screen, no hidden third column */
    .blog_article table { min-width: 0; font-size: 13px; }
    .blog_article table th, .blog_article table td { padding: 8px 8px; }
}

/* ===== "Select Professional Service": custom desktop menu (built in header.php; phones keep the native picker) ===== */
.appointment.svc_dd { overflow: visible; }
.appointment.svc_dd.is_open { z-index: 30; }
.appointment .svc_native { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.appointment .svc_btn { display: block; width: 100%; height: 50px; padding: 10px 40px 10px 42px; border: none; border-radius: 7px;
    background: #EDF3F6 url('../images/bottom-angle.png') no-repeat right 14px center / 14px; text-align: left; font-size: 16px;
    font-weight: 400; color: #033B4A; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: box-shadow .2s, background-color .2s; }
.appointment .svc_btn.is_placeholder { color: #2D356199; }
.appointment .svc_btn:hover { background-color: #E3EDF2; }
.appointment .svc_btn:focus-visible, .appointment.is_open .svc_btn { outline: none; box-shadow: 0 0 0 2px #65D0CD; }
.appointment .svc_menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; background: #FFF; border-radius: 12px;
    box-shadow: 0 12px 36px rgba(3,59,74,.25); padding: 6px; max-height: 300px; overflow-y: auto; text-align: left; }
.appointment .svc_menu.up { top: auto; bottom: calc(100% + 6px); }
.appointment .svc_menu[hidden] { display: none; }
.appointment .svc_opt { position: relative; display: block; width: 100%; border: none; background: transparent; text-align: left; font-size: 15px;
    font-weight: 600; line-height: 1.35; color: #033B4A; padding: 10px 36px 10px 14px; border-radius: 8px; cursor: pointer; }
.appointment .svc_opt:hover, .appointment .svc_opt:focus { background: #EDF3F6; outline: none; }
.appointment .svc_opt[aria-selected="true"] { color: #7CA086; }
.appointment .svc_opt[aria-selected="true"]::after { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 11px;
    border: solid #7CA086; border-width: 0 2px 2px 0; transform: translateY(-65%) rotate(45deg); }
/* Let the menu spill outside its containers on desktop */
@media (min-width: 768px) {
    .appointment_from, .contact_boxs { overflow: visible; }
}
