/* ==========================================================================
   SERVICE SECTION - COMPLETE RESPONSIVE STYLES (ALL DEVICES)
   Glaucoma & Vision Preservation Tabs Section
   ========================================================================== */

/* --- Base Enhancements for Service Section --- */
.service-section {
    position: relative;
    overflow: hidden;
}

.service-section .pattern-layer {
    pointer-events: none;
}

.service-section .sec-title {
    position: relative;
    z-index: 2;
}

.service-section .sec-title .sub-title {
    font-family: 'Jost', sans-serif;
    font-weight: 800;
    white-space: normal;
    word-break: break-word;
    letter-spacing: -0.5px;
    display: inline-block;
}

.service-section .sec-title h2 {
    font-weight: 700;
    color: #141417;
}

.service-section .tabs-box {
    position: relative;
    z-index: 2;
}

.service-section .tab-btns {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-section .tab-btns li {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.service-section .tab-btns li.active-btn h4 {
    color: #ffffff !important;
}

.service-section .tab-btns li:not(.active-btn) h4 {
    color: #141417;
}

.service-section .tab-btns li:not(.active-btn) .icon-box {
    color: #141417;
}

.service-section .tab-btns li.active-btn .icon-box {
    color: #f17732 !important;
}

/* Prevent sticky hover backgrounds on touch screens */
@media (hover: none) {
    .service-section .tab-btns li:not(.active-btn):hover:before {
        height: 0% !important;
    }

    .service-section .tab-btns li:not(.active-btn):hover:after {
        opacity: 0 !important;
    }

    .service-section .tab-btns li:not(.active-btn):hover .icon-box {
        color: #141417 !important;
    }

    .service-section .tab-btns li:not(.active-btn):hover h4 {
        color: #141417 !important;
    }
}

/* Ensure smooth image display */
.service-section .image_block_two .image-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
    object-fit: cover;
}

/* --- 1. Large Desktops & Wide Screens (>= 1200px) --- */
@media only screen and (min-width: 1200px) {
    .service-section {
        padding-top: 110px;
        padding-bottom: 20px;
    }

    .service-section .tabs-box {
        padding: 0 60px 110px 60px;
    }

    .service-section .tab-btn-box {
        margin-bottom: 60px;
    }

    .service-section .tab-btns {
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: 12px;
    }

    .service-section .tab-btns li {
        flex: 0 1 180px;
        width: 180px;
        margin: 0 !important;
        padding: 34px 16px 30px 16px;
    }

    .service-section .tab-btns li .icon-box {
        font-size: 42px;
        line-height: 48px;
        margin-bottom: 14px;
    }

    .service-section .tab-btns li h4 {
        font-size: 18px;
        line-height: 24px;
    }

    .service-section .tabs-content .content-box {
        padding-right: 25px;
    }

    .service-section .image_block_two .image-box {
        margin-left: 25px;
        margin-top: 0;
    }
}

/* --- 2. Medium Desktops & Laptops (992px to 1199px) --- */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .service-section {
        padding-top: 85px;
        padding-bottom: 20px;
    }

    .service-section .sec-title .sub-title {
        font-size: 55px;
        line-height: 60px;
    }

    .service-section .sec-title h2 {
        font-size: 34px;
        line-height: 42px;
        margin-top: -18px;
    }

    .service-section .tabs-box {
        padding: 0 30px 85px 30px;
    }

    .service-section .tabs-box:before {
        height: calc(100% - 75px);
        border-radius: 26px 26px 0 0;
    }

    .service-section .tab-btn-box {
        margin-bottom: 50px;
    }

    /* All 5 buttons fit perfectly in 1 row without wrapping */
    .service-section .tab-btns {
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: 10px;
    }

    .service-section .tab-btns li {
        flex: 1 1 0;
        width: auto;
        max-width: 175px;
        margin: 0 !important;
        padding: 26px 10px 22px 10px;
        border-radius: 24px;
    }

    .service-section .tab-btns li:before {
        border-radius: 24px;
    }

    .service-section .tab-btns li .icon-box {
        font-size: 36px;
        line-height: 40px;
        margin-bottom: 12px;
    }

    .service-section .tab-btns li h4 {
        font-size: 15px;
        line-height: 20px;
    }

    .service-section .content_block_two .content-box h3 {
        font-size: 26px;
        line-height: 34px;
        margin-bottom: 18px;
    }

    .service-section .content_block_two .content-box p {
        font-size: 15px;
        line-height: 25px;
        margin-bottom: 18px;
    }

    .service-section .content_block_two .content-box .list-style-one li {
        font-size: 15.5px;
        margin-bottom: 12px;
    }

    .service-section .image_block_two .image-box {
        margin-left: 15px;
        margin-top: 0;
    }
}

/* --- 3. Tablets (768px to 991px) --- */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .service-section {
        padding-top: 70px;
        padding-bottom: 50px;
    }

    .service-section .pattern-layer {
        display: none !important;
    }

    .service-section .sec-title {
        margin-bottom: 35px !important;
    }

    .service-section .sec-title .sub-title {
        font-size: 44px;
        line-height: 48px;
    }

    .service-section .sec-title h2 {
        font-size: 28px;
        line-height: 36px;
        margin-top: -12px;
    }

    .service-section .sec-title h2 br {
        display: none;
    }

    /* Switch from fragile :before to self-contained card for content */
    .service-section .tabs-box {
        padding: 0 !important;
    }

    .service-section .tabs-box:before {
        display: none !important;
    }

    .service-section .tab-btn-box {
        margin-bottom: 25px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
        scrollbar-width: none;
    }

    .service-section .tab-btn-box::-webkit-scrollbar {
        display: none;
    }

    .service-section .tab-btns {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .service-section .tab-btns li {
        flex: 1 1 0;
        min-width: 125px;
        max-width: 145px;
        margin: 0 !important;
        padding: 22px 10px 18px 10px;
        border-radius: 20px;
    }

    .service-section .tab-btns li:before {
        border-radius: 20px;
    }

    .service-section .tab-btns li .icon-box {
        font-size: 32px;
        line-height: 36px;
        margin-bottom: 10px;
    }

    .service-section .tab-btns li h4 {
        font-size: 14px;
        line-height: 18px;
    }

    /* White card for tab content */
    .service-section .tabs-content {
        background: #ffffff;
        border-radius: 24px;
        box-shadow: 0px 10px 40px 0px rgba(0, 0, 0, 0.07);
        padding: 40px 32px;
    }

    .service-section .content_block_two .content-box {
        margin-bottom: 28px;
    }

    .service-section .content_block_two .content-box h3 {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 16px;
    }

    .service-section .content_block_two .content-box p {
        font-size: 15px;
        line-height: 24px;
        margin-bottom: 16px;
    }

    .service-section .content_block_two .content-box .list-style-one li {
        font-size: 15px;
        line-height: 24px;
        margin-bottom: 12px;
    }

    .service-section .image_block_two .image-box {
        margin: 0;
    }

    .service-section .image_block_two .image-box .image {
        border-radius: 20px;
        max-height: 400px;
    }

    .service-section .image_block_two .image-box img {
        border-radius: 20px;
    }
}

/* --- 4. Mobile Devices (<= 767px) --- */
@media only screen and (max-width: 767px) {
    .service-section {
        padding-top: 50px;
        padding-bottom: 40px;
    }

    .service-section .pattern-layer {
        display: none !important;
    }

    .service-section .sec-title {
        margin-bottom: 25px !important;
    }

    .service-section .sec-title .sub-title {
        font-size: 32px;
        line-height: 36px;
        display: block;
        margin-bottom: 4px;
    }

    .service-section .sec-title h2 {
        font-size: 22px;
        line-height: 30px;
        margin-top: -6px;
    }

    .service-section .sec-title h2 br {
        display: none;
    }

    .service-section .tabs-box {
        padding: 0 !important;
    }

    .service-section .tabs-box:before {
        display: none !important;
    }

    /* Modern horizontal touch scroll strip for tabs */
    .service-section .tab-btn-box {
        margin-bottom: 20px !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 4px 15px 18px 15px;
        margin-left: -15px;
        margin-right: -15px;
        text-align: left;
    }

    .service-section .tab-btn-box::-webkit-scrollbar {
        display: none;
    }

    .service-section .tab-btns {
        display: inline-flex;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 0;
        margin: 0;
    }

    .service-section .tab-btns li {
        flex: 0 0 134px;
        width: 134px;
        margin: 0 !important;
        padding: 18px 8px 15px 8px;
        border-radius: 18px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
        scroll-snap-align: start;
        text-align: center;
    }

    .service-section .tab-btns li:before {
        border-radius: 18px;
    }

    .service-section .tab-btns li:after {
        width: 14px;
        height: 14px;
        bottom: 0;
    }

    .service-section .tab-btns li.active-btn:after,
    .service-section .tab-btns li:hover:after {
        bottom: -5px;
    }

    .service-section .tab-btns li .icon-box {
        font-size: 28px;
        line-height: 32px;
        margin-bottom: 8px;
    }

    .service-section .tab-btns li h4 {
        font-size: 13px;
        line-height: 17px;
        font-weight: 600;
        white-space: normal;
    }

    /* Card container for tab content on mobile */
    .service-section .tabs-content {
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.06);
        padding: 26px 18px;
    }

    .service-section .content_block_two .content-box {
        margin-bottom: 22px;
    }

    .service-section .content_block_two .content-box h3 {
        font-size: 20px;
        line-height: 27px;
        margin-bottom: 14px;
    }

    .service-section .content_block_two .content-box p {
        font-size: 14px;
        line-height: 22px;
        margin-bottom: 14px;
        color: #55585d;
    }

    .service-section .content_block_two .content-box .list-style-one li {
        font-size: 14px;
        line-height: 21px;
        padding-left: 26px;
        margin-bottom: 11px;
    }

    .service-section .content_block_two .content-box .list-style-one li:before {
        font-size: 14px;
        top: 0;
    }

    .service-section .image_block_two .image-box {
        margin: 0;
    }

    .service-section .image_block_two .image-box .image {
        border-radius: 16px;
    }

    .service-section .image_block_two .image-box img {
        border-radius: 16px;
        width: 100%;
        height: auto;
    }
}

/* --- 5. Small Mobile Screens (<= 420px) --- */
@media only screen and (max-width: 420px) {
    .service-section .sec-title .sub-title {
        font-size: 26px;
        line-height: 30px;
    }

    .service-section .sec-title h2 {
        font-size: 19px;
        line-height: 26px;
        margin-top: -4px;
    }

    .service-section .tab-btn-box {
        padding: 4px 10px 16px 10px;
        margin-left: -10px;
        margin-right: -10px;
    }

    .service-section .tab-btns li {
        flex: 0 0 118px;
        width: 118px;
        padding: 15px 6px 12px 6px;
        border-radius: 16px;
    }

    .service-section .tab-btns li:before {
        border-radius: 16px;
    }

    .service-section .tab-btns li .icon-box {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 6px;
    }

    .service-section .tab-btns li h4 {
        font-size: 12px;
        line-height: 15px;
    }

    .service-section .tabs-content {
        padding: 22px 14px;
        border-radius: 16px;
    }

    .service-section .content_block_two .content-box h3 {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 12px;
    }

    .service-section .content_block_two .content-box p {
        font-size: 13.5px;
        line-height: 21px;
        margin-bottom: 12px;
    }

    .service-section .content_block_two .content-box .list-style-one li {
        font-size: 13px;
        line-height: 20px;
        padding-left: 24px;
        margin-bottom: 10px;
    }
}

/* ==========================================================================
   DOCTOR APPOINTMENT POPUP MODAL (Modern, Accessible & Responsive)
   ========================================================================== */

/* Prevent page scrolling when modal is active */
body.gd-appt-no-scroll {
    overflow: hidden !important;
    touch-action: none;
}

/* Modal Overlay Backdrop - Hidden by default */
.gd-appt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gd-appt-overlay.gd-appt-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Modal Window Card */
.gd-appt-modal {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    max-height: calc(100dvh - 40px);
    border-radius: 24px;
    padding: 34px 34px 28px 34px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.25s ease;
    box-sizing: border-box;
}

.gd-appt-overlay.gd-appt-active .gd-appt-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.gd-appt-modal::-webkit-scrollbar {
    width: 5px;
}

.gd-appt-modal::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* Close Button */
.gd-appt-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.gd-appt-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Header */
.gd-appt-header {
    margin-bottom: 22px;
    padding-right: 32px;
    text-align: left;
}

.gd-appt-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(241, 119, 50, 0.1);
    color: #f17732;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-family: 'Jost', sans-serif;
}

.gd-appt-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f17732;
}

.gd-appt-header h2 {
    font-size: 25px;
    line-height: 32px;
    font-weight: 700;
    color: #1a4358;
    margin: 0 0 6px 0;
    font-family: 'Poppins', sans-serif;
}

.gd-appt-header p {
    font-size: 13.5px;
    line-height: 20px;
    color: #64748b;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Form Layout */
.gd-appt-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}

.gd-appt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gd-appt-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.gd-appt-field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.gd-appt-field input,
.gd-appt-field textarea {
    width: 100% !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #0f172a !important;
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.gd-appt-field input::placeholder,
.gd-appt-field textarea::placeholder {
    color: #94a3b8 !important;
    font-size: 13.5px !important;
}

.gd-appt-field input:focus,
.gd-appt-field textarea:focus {
    background: #ffffff !important;
    border-color: #f17732 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(241, 119, 50, 0.15) !important;
}

.gd-appt-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Submit Button */
.gd-appt-submit {
    margin-top: 4px;
    width: 100%;
    background: linear-gradient(135deg, #f17732 0%, #e0611e 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(241, 119, 50, 0.28);
    transition: all 0.25s ease;
}

.gd-appt-submit:hover {
    background: linear-gradient(135deg, #e0611e 0%, #cf5211 100%);
    box-shadow: 0 12px 25px rgba(241, 119, 50, 0.38);
    transform: translateY(-2px);
    color: #ffffff;
}

.gd-appt-submit:active {
    transform: translateY(0);
}

.gd-appt-submit span:last-child {
    transition: transform 0.2s ease;
    display: inline-block;
}

.gd-appt-submit:hover span:last-child {
    transform: translateX(4px);
}

.gd-appt-note {
    font-size: 12px;
    line-height: 16px;
    color: #94a3b8;
    text-align: center;
    margin: 2px 0 0 0;
    font-family: 'Poppins', sans-serif;
}

/* Mobile Responsiveness for Modal */
@media only screen and (max-width: 575px) {
    .gd-appt-overlay {
        padding: 12px;
    }

    .gd-appt-modal {
        padding: 26px 18px 22px 18px;
        border-radius: 20px;
        max-height: calc(100dvh - 24px);
    }

    .gd-appt-close {
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .gd-appt-header {
        margin-bottom: 16px;
        padding-right: 28px;
    }

    .gd-appt-header h2 {
        font-size: 20px;
        line-height: 26px;
    }

    .gd-appt-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gd-appt-field input,
    .gd-appt-field textarea {
        padding: 10px 12px !important;
        font-size: 13.5px !important;
    }

    .gd-appt-submit {
        padding: 12px 20px;
        font-size: 14.5px;
    }
}

/* ==========================================================================
   MOBILE & TABLET HEADER STYLING (Screen width <= 991px)
   ========================================================================== */

@media only screen and (max-width: 991px) {

    /* 1. Hide the empty top bar on mobile/tablet */
    .main-header .header-top {
        display: none !important;
    }

    /* 2. Clean, fixed/sticky mobile header */
    .main-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07) !important;
    }

    .main-header .header-lower {
        background: #ffffff !important;
        padding: 10px 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    .main-header .header-lower .auto-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
    }

    .main-header .outer-box {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    /* 3. Logo positioned neatly on the left */
    .main-header .logo-box {
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
    }

    .main-header .logo-box .logo {
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-header .logo-box .logo img {
        max-height: 80px !important;
        width: auto !important;
        display: block !important;
        object-fit: contain !important;
    }

    /* 4. Hide empty .nav-right so it doesn't leave dead space on the right */
    .main-header .outer-box .nav-right {
        display: none !important;
    }

    /* 5. Menu Area aligned to the far right */
    .main-header .menu-area {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        flex: 0 0 auto !important;
    }

    .main-header .menu-area .main-menu {
        display: none !important;
    }

    /* 6. Modern Hamburger Menu Button on the far right */
    .menu-area .mobile-nav-toggler {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
        background: #f8fafc !important;
        border: 1.5px solid #e2e8f0 !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        transition: all 0.25s ease !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    }

    .menu-area .mobile-nav-toggler:hover,
    .menu-area .mobile-nav-toggler:active {
        background: #f1f5f9 !important;
        border-color: #cbd5e1 !important;
        transform: scale(0.97);
    }

    .menu-area .mobile-nav-toggler .icon-bar {
        width: 22px !important;
        height: 2.5px !important;
        background-color: #1a4358 !important;
        border-radius: 3px !important;
        margin: 0 !important;
        transition: all 0.25s ease !important;
    }

    .menu-area .mobile-nav-toggler:hover .icon-bar {
        background-color: #f17732 !important;
    }
}

/* Extra small mobile adjustments */
@media only screen and (max-width: 420px) {
    .main-header .header-lower {
        padding: 8px 0 !important;
    }

    .main-header .logo-box .logo img {
        max-height: 38px !important;
    }

    .menu-area .mobile-nav-toggler {
        width: 40px !important;
        height: 40px !important;
        gap: 4.5px !important;
        border-radius: 10px !important;
    }

    .menu-area .mobile-nav-toggler .icon-bar {
        width: 20px !important;
        height: 2px !important;
    }
}




/* ==========================================================================
   ATHARVA GLAUCOMA CENTRE - PREMIUM FLOATING CONTACT CHANNELS
   WhatsApp (Official Emerald & Glow) + Phone Helpline (Medical Orange)
   Theme Harmonized with Slate Navy (#123040) & Scroll-To-Top Stack
   ========================================================================== */

.ak-premium-float-contact {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    pointer-events: auto;
}

/* Base Floating Action Button */
.ak-premium-float-contact .ak-premium-float-btn {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff !important;
    text-decoration: none !important;
    border: 2px solid rgba(255, 255, 255, 0.88);
    cursor: pointer;
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.32s ease,
        filter 0.32s ease;
    overflow: visible;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Active Click Feedback */
.ak-premium-float-contact .ak-premium-float-btn:active {
    transform: scale(0.92) !important;
}

/* Continuous Radar Pulse Effect */
.ak-premium-float-contact .ak-float-pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    animation: akFloatPulse 2.6s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes akFloatPulse {
    0% {
        transform: scale(0.90);
        opacity: 0.85;
    }

    65% {
        transform: scale(1.48);
        opacity: 0;
    }

    100% {
        transform: scale(1.48);
        opacity: 0;
    }
}

/* WhatsApp Channel - Iconic Emerald Green Gradient */
.ak-premium-float-contact .ak-premium-float-whatsapp {
    background: linear-gradient(135deg, #2fe576 0%, #25D366 50%, #128C7E 100%);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.38), 0 3px 8px rgba(0, 0, 0, 0.08);
}

.ak-premium-float-contact .ak-premium-float-whatsapp .ak-float-pulse {
    border: 2px solid #25D366;
}

.ak-premium-float-contact .ak-premium-float-whatsapp i {
    font-size: 28px;
    color: #ffffff;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ak-premium-float-contact .ak-premium-float-whatsapp:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.12);
    filter: brightness(1.04);
}

.ak-premium-float-contact .ak-premium-float-whatsapp:hover i {
    transform: scale(1.12);
}

/* Phone Channel - Atharva Signature Medical Orange Gradient */
.ak-premium-float-contact .ak-premium-float-phone {
    background: linear-gradient(135deg, #ff833e 0%, #f17732 50%, #d85c18 100%);
    box-shadow: 0 8px 24px rgba(241, 119, 50, 0.40), 0 3px 8px rgba(0, 0, 0, 0.08);
}

.ak-premium-float-contact .ak-premium-float-phone .ak-float-pulse {
    border: 2px solid #f17732;
    animation-delay: 1.3s;
}

.ak-premium-float-contact .ak-premium-float-phone i {
    font-size: 21px;
    color: #ffffff;
    line-height: 1;
    display: inline-block;
    transform: rotate(90deg);
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ak-premium-float-contact .ak-premium-float-phone:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 30px rgba(241, 119, 50, 0.58), 0 4px 12px rgba(0, 0, 0, 0.12);
    filter: brightness(1.04);
}

.ak-premium-float-contact .ak-premium-float-phone:hover i {
    animation: akPhoneRing 0.5s ease-in-out infinite alternate;
}

@keyframes akPhoneRing {
    0% {
        transform: rotate(90deg) scale(1.08);
    }

    25% {
        transform: rotate(74deg) scale(1.14);
    }

    50% {
        transform: rotate(106deg) scale(1.14);
    }

    75% {
        transform: rotate(78deg) scale(1.14);
    }

    100% {
        transform: rotate(90deg) scale(1.08);
    }
}

/* Luxury Atharva Slate Navy Tooltip */
.ak-premium-float-contact .ak-premium-float-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #123040;
    color: #ffffff;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', 'Jost', sans-serif;
    letter-spacing: 0.2px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease,
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        visibility 0.28s;
    box-shadow: 0 10px 24px rgba(18, 48, 64, 0.40);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

/* Tooltip Arrow */
.ak-premium-float-contact .ak-premium-float-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #123040;
}

/* WhatsApp Online Pulse Dot */
.ak-premium-float-contact .ak-tooltip-dot {
    width: 8px;
    height: 8px;
    background-color: #25D366;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #25D366;
    animation: akDotBlink 1.6s infinite;
}

@keyframes akDotBlink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

/* Phone Tooltip Mini Icon */
.ak-premium-float-contact .ak-tooltip-icon {
    font-size: 13px;
    color: #f17732;
    display: inline-block;
    transform: rotate(90deg);
    transform-origin: center center;
}

/* Show Tooltip on Hover (Desktop) */
.ak-premium-float-contact .ak-premium-float-btn:hover .ak-premium-float-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   Harmonize Scroll-To-Top Button (Eliminating Stack Clashes)
   Positions Scroll-To-Top seamlessly right above WhatsApp Button
   ========================================================================== */
.scroll-top {
    transition: bottom 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.4s ease,
        transform 0.3s ease,
        background 0.3s ease !important;
    background: #1a4358 !important;
    border: 2px solid rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 8px 24px rgba(26, 67, 88, 0.35) !important;
    z-index: 99990 !important;
}

.scroll-top:hover {
    background: #f17732 !important;
    box-shadow: 0 10px 28px rgba(241, 119, 50, 0.5) !important;
    transform: translateY(-4px) !important;
}

.scroll-top.open {
    right: 25px !important;
    bottom: 165px !important;
    width: 52px !important;
    height: 52px !important;
    line-height: 48px !important;
    font-size: 20px !important;
    display: block !important;
}

/* Tablet & Medium Screen Adaptations (<= 991px) */
@media (max-width: 991px) {
    .ak-premium-float-contact {
        right: 20px;
        bottom: 20px;
        gap: 12px;
    }

    .ak-premium-float-contact .ak-premium-float-btn {
        width: 52px;
        height: 52px;
    }

    .ak-premium-float-contact .ak-premium-float-whatsapp i {
        font-size: 26px;
    }

    .ak-premium-float-contact .ak-premium-float-phone i {
        font-size: 19px;
    }

    .scroll-top.open {
        right: 20px !important;
        bottom: 152px !important;
        width: 48px !important;
        height: 48px !important;
        line-height: 44px !important;
    }
}

/* Mobile Screens (<= 767px) - Ultra Clean Ergonomic Touch Layout */
@media (max-width: 767px) {
    .ak-premium-float-contact {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        gap: 10px;
    }

    .ak-premium-float-contact .ak-premium-float-btn {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }

    .ak-premium-float-contact .ak-premium-float-whatsapp i {
        font-size: 24px;
    }

    .ak-premium-float-contact .ak-premium-float-phone i {
        font-size: 18px;
    }

    /* Disable hover tooltips on touch screens to prevent lingering banners */
    .ak-premium-float-contact .ak-premium-float-tooltip {
        display: none !important;
    }

    .scroll-top.open {
        right: 16px !important;
        bottom: calc(134px + env(safe-area-inset-bottom, 0px)) !important;
        width: 44px !important;
        height: 44px !important;
        line-height: 40px !important;
        font-size: 17px !important;
    }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
    .ak-premium-float-contact {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
    }

    .ak-premium-float-contact .ak-premium-float-btn {
        width: 44px;
        height: 44px;
    }

    .ak-premium-float-contact .ak-premium-float-whatsapp i {
        font-size: 22px;
    }

    .ak-premium-float-contact .ak-premium-float-phone i {
        font-size: 16px;
    }

    .scroll-top.open {
        right: 12px !important;
        bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
        width: 40px !important;
        height: 40px !important;
        line-height: 36px !important;
        font-size: 15px !important;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .ak-premium-float-contact .ak-premium-float-btn,
    .ak-premium-float-contact .ak-premium-float-tooltip,
    .ak-premium-float-contact .ak-float-pulse,
    .scroll-top {
        transition: none !important;
        animation: none !important;
    }
}


@media only screen and (min-width: 280px) and (max-width: 767px) {
    .sec-title.left .sub-title {
        margin-left: -130px !important;
    }
}

/* ==========================================================================
   GALLERY PAGE - UNIFORM IMAGES & RESPONSIVE LAYOUT
   ========================================================================== */

.portfolio-page-section {
    padding: 100px 0 70px 0;
}

.portfolio-page-section .project-block-one {
    margin-bottom: 30px;
}

.portfolio-page-section .project-block-one .inner-box {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background: #1a4358;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.portfolio-page-section .project-block-one .inner-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(26, 67, 88, 0.2);
}

.portfolio-page-section .project-block-one .inner-box .image-box {
    position: relative;
    width: 100%;
    height: 290px;
    overflow: hidden;
    border-radius: 20px;
    background: #1a4358;
    margin: 0;
}

.portfolio-page-section .project-block-one .inner-box .image-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 20px;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

.portfolio-page-section .project-block-one .inner-box:hover .image-box img {
    opacity: 0.25;
    transform: scale(1.08);
}

.portfolio-page-section .project-block-one .inner-box .view-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
}

.portfolio-page-section .project-block-one .inner-box .view-btn a {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    color: #1a4358;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: scale(0);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.portfolio-page-section .project-block-one .inner-box .view-btn a i {
    display: inline-block;
    line-height: 1;
}

.portfolio-page-section .project-block-one .inner-box:hover .view-btn a {
    transform: scale(1);
}

.portfolio-page-section .project-block-one .inner-box .view-btn a:hover {
    background: #f17732;
    color: #ffffff;
}

/* Medium Desktops & Laptops (992px to 1199px) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .portfolio-page-section {
        padding: 85px 0 60px 0;
    }
    .portfolio-page-section .project-block-one .inner-box .image-box {
        height: 270px;
    }
}

/* Tablets (768px to 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .portfolio-page-section {
        padding: 70px 0 50px 0;
    }
    .portfolio-page-section .project-block-one .inner-box .image-box {
        height: 270px;
    }
}

/* Mobile Screens (<= 767px) */
@media only screen and (max-width: 767px) {
    .portfolio-page-section {
        padding: 50px 0 40px 0;
    }
    .portfolio-page-section .project-block-one {
        margin-bottom: 22px;
    }
    .portfolio-page-section .project-block-one .inner-box .image-box {
        height: 260px;
    }
}

/* Small Mobile Screens (<= 480px) */
@media only screen and (max-width: 480px) {
    .portfolio-page-section {
        padding: 40px 0 30px 0;
    }
    .portfolio-page-section .project-block-one .inner-box .image-box {
        height: 230px;
    }
    .portfolio-page-section .project-block-one .inner-box .view-btn a {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}