/*--------------------------
    TEKlaB Custom Styles
    Custom components and enhancements
---------------------------*/

/* =================================
   WhatsApp Floating Button
   ================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    margin: 0;
    line-height: 1;
}

/* RTL Support */
[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }

    [dir="rtl"] .whatsapp-float {
        right: auto;
        left: 20px;
    }
}

/* =================================
   Package Cards (Health Checkups) - Premium Design
   ================================= */
.package-card {
    background: #fff;
    border: none;
    border-top: 4px solid var(--color-primary);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.package-header {
    padding: 30px 30px 20px;
    background: linear-gradient(to bottom, #ffffff, #fcfcfc);
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.package-title {
    color: var(--color-secondary);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

.package-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(33, 205, 173, 0.1) 0%, rgba(33, 205, 173, 0.2) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--color-primary);
    font-size: 28px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(33, 205, 173, 0.15);
}

.package-card:hover .package-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1ab898 100%);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(33, 205, 173, 0.3);
}

.package-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1ab898 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(33, 205, 173, 0.3);
    transform: none;
}

[dir="rtl"] .package-tag {
    right: auto;
    left: 20px;
}

.package-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.package-desc {
    color: #555b62;
    /* Improved contrast ratio for WCAG AA compliance */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.package-list {
    margin: 0 0 30px 0;
    padding: 0;
    list-style: none;
}

.package-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    align-items: flex-start;
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.package-list li:last-child {
    border-bottom: none;
}

.package-list li i {
    margin-top: 4px;
    margin-right: 12px;
    color: var(--color-primary);
    font-size: 14px;
    flex-shrink: 0;
}

[dir="rtl"] .package-list li i {
    margin-right: 0;
    margin-left: 12px;
}

.package-footer {
    margin-top: auto;
}

.btn-package {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #f0f2f5;
    color: var(--color-secondary);
    border: none;
}

.package-card:hover .btn-package {
    background: var(--color-secondary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 38, 120, 0.2);
    transform: translateY(-2px);
}

/* Feature Box Styling */
.feature-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--color-primary);
}

.feature-box .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(33, 205, 173, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    background: var(--color-primary);
    color: #fff !important;
}

.feature-box:hover .feature-icon i {
    color: #fff !important;
}

/* =================================
   Preparation Cards
   ================================= */
.prep-card {
    transition: all 0.3s ease;
    border: 1px solid #e9e9f0;
    padding: 25px !important;
    margin-bottom: 20px;
}

.prep-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.prep-detail-card {
    border: none;
    overflow: hidden;
    margin-bottom: 20px;
}

.prep-detail-header {
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 20px 25px !important;
}

.prep-detail-body {
    padding: 25px !important;
}

.prep-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.prep-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.prep-list li:last-child {
    border-bottom: none;
}

.prep-list li i {
    margin-top: 4px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* RTL (Arabic) specific fixes for prep cards */
[dir="rtl"] .prep-card {
    text-align: right;
}

[dir="rtl"] .prep-list li {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .prep-list li i {
    margin-left: 0;
    margin-right: 0;
}

[dir="rtl"] .prep-detail-header h3 i,
[dir="rtl"] .prep-detail-header h3 .fas,
[dir="rtl"] .prep-detail-header h3 .fab {
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .alert i {
    margin-left: 10px;
    margin-right: 0;
}

/* Fix card content overflow */
.prep-detail-card .alert {
    margin-top: 20px;
    margin-bottom: 0;
    padding: 15px;
    border-radius: 8px;
}

/* Ensure cards don't overlap */
.prep-detail-card,
.prep-card {
    overflow: visible;
    box-sizing: border-box;
}

/* Better spacing on mobile */
@media (max-width: 991px) {
    .prep-card {
        padding: 20px !important;
        margin-bottom: 15px;
    }

    .prep-detail-header {
        padding: 15px 20px !important;
    }

    .prep-detail-body {
        padding: 20px !important;
    }

    .prep-list li {
        padding: 10px 0;
    }
}

/* =================================
   Step Process
   ================================= */
.step-box {
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(33, 205, 173, 0.3);
}

/* Step connector line */
@media (min-width: 768px) {
    .step-box::after {
        content: '';
        position: absolute;
        top: 30px;
        right: -30%;
        width: 60%;
        height: 2px;
        background: linear-gradient(to right, var(--color-primary), transparent);
    }

    .col-md-3:last-child .step-box::after {
        display: none;
    }

    [dir="rtl"] .step-box::after {
        right: auto;
        left: -30%;
        background: linear-gradient(to left, var(--color-primary), transparent);
    }
}

/* =================================
   CTA Section Enhancement
   ================================= */
.cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.cta .btn-white {
    background: #fff;
    color: var(--color-primary);
    border: none;
}

.cta .btn-white:hover {
    background: #f8f9fa;
    color: var(--color-secondary);
}

.cta .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
}

.cta .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* =================================
   Alert Enhancements
   ================================= */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-info {
    background-color: rgba(33, 205, 173, 0.1);
    color: #0d6378;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #842029;
}

/* =================================
   FAQ Accordion
   ================================= */
.accordion .card {
    border: 1px solid #e9e9f0;
    border-radius: 0.5rem !important;
    overflow: hidden;
}

.accordion .card-header {
    background: #fff;
    border-bottom: 1px solid #e9e9f0;
    padding: 0;
}

.accordion .btn-link {
    color: var(--color-dark);
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion .btn-link::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.accordion .btn-link:not(.collapsed)::after {
    transform: rotate(180deg);
}

.accordion .btn-link:hover {
    color: var(--color-primary);
}

/* =================================
   Background Utilities
   ================================= */
.bg-gray-light {
    background-color: #f8f9fa;
}

.bg-gray {
    background-color: #f0f2f5;
}

/* =================================
   QR Code Page Styles
   ================================= */
.qr-container {
    max-width: 400px;
    margin: 0 auto;
}

.qr-code-wrapper {
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.whatsapp:hover {
    background: #128c7e;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.facebook:hover {
    background: #0d65d9;
}

.share-btn.email {
    background: #ea4335;
}

.share-btn.email:hover {
    background: #d33426;
}

.share-btn.copy {
    background: #6c757d;
}

.share-btn.copy:hover {
    background: #5a6268;
}

/* =================================
   Button Enhancements
   ================================= */
.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1ab898;
    border-color: #1ab898;
}

.btn-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #138496;
}

/* =================================
   WhatsApp Header Button (Navbar)
   Premium WhatsApp CTA button styling
   ================================= */
.btn-contact[href*="wa.me"],
.btn-whatsapp-nav {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-contact[href*="wa.me"]::before,
.btn-whatsapp-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-contact[href*="wa.me"]:hover::before,
.btn-whatsapp-nav:hover::before {
    left: 100%;
}

.btn-contact[href*="wa.me"]:hover,
.btn-whatsapp-nav:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    color: #fff !important;
}

.btn-contact[href*="wa.me"] i,
.btn-whatsapp-nav i {
    font-size: 18px;
}

/* WhatsApp button icon pulse animation */
.btn-contact[href*="wa.me"] .fa-whatsapp,
.btn-whatsapp-nav .fa-whatsapp {
    animation: whatsapp-icon-pulse 2s infinite;
}

@keyframes whatsapp-icon-pulse {

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

    50% {
        transform: scale(1.1);
    }
}

/* Mobile adjustments */
@media (max-width: 1199px) {

    .btn-contact[href*="wa.me"],
    .btn-whatsapp-nav {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* =================================
   Spacing Utilities
   ================================= */
.py-60 {
    padding-top: 60px;
    padding-bottom: 60px;
}

.pt-80 {
    padding-top: 80px;
}

.pb-80 {
    padding-bottom: 80px;
}

.pt-40 {
    padding-top: 40px;
}

.pb-40 {
    padding-bottom: 40px;
}

.mb-50 {
    margin-bottom: 50px;
}

/* =================================
   Print Styles
   ================================= */
@media print {

    .whatsapp-float,
    .header,
    .footer,
    #scrollTopBtn {
        display: none !important;
    }

    .page-title {
        background: none !important;
        color: #000 !important;
    }
}

/* =================================
   Animation for WhatsApp Button
   ================================= */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    animation: none;
}

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

    .whatsapp-float,
    .package-card,
    .prep-card,
    .step-number,
    .share-btn,
    .btn {
        animation: none !important;
        transition: none !important;
    }
}

/* =================================
   LANGUAGE SWITCHER FIX
   Fixed z-index and mobile support
   ================================= */

/* Container positioning */
.miniPopup-language-area {
    position: relative;
    z-index: 1050;
}

/* Trigger button improvements */
.miniPopup-language-trigger {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.miniPopup-language-trigger span:first-child {
    font-weight: 500;
}

/* Dropdown menu - fixed z-index and positioning */
.miniPopup-language {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1100;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

/* Active state for click-based toggling */
.miniPopup-language-area.active .miniPopup-language {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.miniPopup-language-area.active .miniPopup-language-trigger {
    color: var(--color-white);
    background-color: var(--color-primary);
}

.miniPopup-language-area.active .miniPopup-language-trigger .btn-shape {
    background-color: var(--color-primary);
}

/* Language item styling */
.miniPopup-language li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.miniPopup-language li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--bs-gray);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 4px;
}

.miniPopup-language li a:hover {
    background-color: rgba(33, 205, 173, 0.1);
    color: var(--color-primary);
}

.miniPopup-language li.active a {
    background-color: var(--color-primary);
    color: #fff;
}

.miniPopup-language li img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* RTL Support for language switcher */
[dir="rtl"] .miniPopup-language {
    right: auto;
    left: 0;
}

[dir="rtl"] .miniPopup-language-trigger {
    margin-left: 0;
    margin-right: 40px;
}

/* Sticky navbar compatibility */
.is-sticky .header-topbar {
    display: none;
}

.is-sticky~.header-topbar,
.sticky-navbar.is-sticky {
    z-index: 1040;
}

/* Mobile improvements */
@media (max-width: 991px) {
    .miniPopup-language-area {
        position: static;
    }

    .miniPopup-language {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 20px;
        margin-top: 0;
        transform: translateY(100%);
    }

    .miniPopup-language-area.active .miniPopup-language {
        transform: translateY(0);
    }

    .miniPopup-language li a {
        padding: 16px 20px;
        font-size: 16px;
    }

    /* Mobile overlay */
    .miniPopup-language::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        transition: bottom 0.3s ease;
    }

    .miniPopup-language-area.active .miniPopup-language::before {
        bottom: 0;
    }
}

/* =================================
   ENHANCED DESIGN IMPROVEMENTS
   ================================= */

/* Header Topbar Enhancement */
.header-topbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 10px 0;
}

.header-topbar .contact-list li {
    color: rgba(255, 255, 255, 0.9);
}

.header-topbar .contact-list li a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.header-topbar .contact-list li a:hover {
    color: var(--color-primary);
}

.header-topbar .contact-list li i {
    color: var(--color-primary);
}

/* Navigation Enhancement */
.navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-item-link {
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.nav-item-link:hover {
    color: var(--color-primary) !important;
}

.nav-item-link.active {
    color: var(--color-primary) !important;
}

/* Dropdown menu enhancement */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 10px;
    min-width: 220px;
}

.dropdown-menu .nav-item-link {
    padding: 10px 16px;
    border-radius: 8px;
    margin: 2px 0;
}

.dropdown-menu .nav-item-link:hover {
    background-color: rgba(33, 205, 173, 0.1);
}

/* Hero Section Enhancement */
.slider {
    position: relative;
}

/* Fix hero content visibility above overlapping cards */
.slider .slide-item {
    padding-bottom: 180px !important;
}

.slide-content {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5;
}

.slide-title {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Ensure buttons are clearly visible */
.slide-content .btn {
    position: relative;
    z-index: 10;
}

/* Adjust fancybox cards to not cover hero content */
.fancybox-layout5 {
    position: relative;
    z-index: 10;
}

/* Mobile: reduce overlap on smaller screens */
@media (max-width: 991px) {
    .slider .slide-item {
        padding-bottom: 80px !important;
    }

    .fancybox-layout5 .fancybox-item {
        margin-top: -60px !important;
    }
}

@media (max-width: 767px) {
    .slider .slide-item {
        padding-bottom: 50px !important;
    }

    .fancybox-layout5 .fancybox-item {
        margin-top: 0 !important;
    }
}

/* Section Titles Enhancement */
.section-title {
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
    margin-top: 15px;
}

.text-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

/* Card Enhancements */
.card {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Service Box Enhancement */
.service-item {
    border-radius: 16px;
    overflow: hidden;
}

.service-item .service-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1ab898 100%);
}

/* Feature Box Enhancement */
.feature-item {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-item .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(33, 205, 173, 0.1) 0%, rgba(33, 205, 173, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-item .feature-icon i {
    font-size: 32px;
    color: var(--color-primary);
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1ab898 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(33, 205, 173, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 205, 173, 0.4);
    background: linear-gradient(135deg, #1ab898 0%, var(--color-primary) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0d3a5c 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(var(--color-secondary-rgb), 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-primary:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(-20deg);
}

/* Footer Enhancement */
.footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
}

.footer-widget-title {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-widget-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    margin-top: 12px;
    border-radius: 2px;
}

/* Contact Info Enhancement */
.contact-info-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.contact-info-box .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(33, 205, 173, 0.1) 0%, rgba(33, 205, 173, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-box .icon i {
    font-size: 28px;
    color: var(--color-primary);
}

/* Team Section Enhancement */
.team-member {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Stats/Counter Enhancement */
.counter-item {
    text-align: center;
    padding: 30px;
}

.counter-item .counter-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.counter-item .counter-title {
    font-size: 16px;
    color: var(--bs-gray);
    margin-top: 10px;
}

/* Testimonial Enhancement */
.testimonial-item {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.testimonial-item .quote-icon {
    font-size: 48px;
    color: rgba(33, 205, 173, 0.2);
    line-height: 1;
}

/* Page Title Enhancement */
.page-title {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    position: relative;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(33,205,173,0.1)" stroke-width="0.5"/></svg>');
    background-size: 200px;
    opacity: 0.5;
}

/* Breadcrumb Enhancement */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--color-primary);
}

.breadcrumb-item.active {
    color: var(--color-primary);
}

/* Form Enhancement */
.form-control {
    border: 2px solid #e9e9f0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(33, 205, 173, 0.1);
}

/* Badge Enhancement */
.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1ab898 100%);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--color-primary);
    color: #fff;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* =================================
   LOGO FIXES
   ================================= */
.navbar-brand img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.footer-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.business-card-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

/* =================================
   WHATSAPP QR POPUP
   ================================= */
.wa-qr-trigger {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #128c7e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(18, 140, 126, 0.4);
    transition: all 0.3s ease;
    border: none;
}

.wa-qr-trigger:hover {
    transform: scale(1.1);
    background: #075e54;
}

.wa-qr-trigger i {
    font-size: 20px;
}

/* QR Popup Modal */
.wa-qr-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.wa-qr-popup.active {
    display: flex;
}

.wa-qr-popup-content {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 350px;
    text-align: center;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wa-qr-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.wa-qr-popup-close:hover {
    background: #e0e0e0;
    color: #333;
}

.wa-qr-popup h4 {
    color: #128c7e;
    margin-bottom: 10px;
}

.wa-qr-popup p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.wa-qr-code {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    border: 3px solid #25d366;
    display: inline-block;
    margin-bottom: 20px;
}

.wa-qr-code svg,
.wa-qr-code img {
    width: 180px;
    height: 180px;
}

.wa-qr-popup .btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wa-qr-popup .btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.wa-qr-popup .phone-number {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* RTL Support */
[dir="rtl"] .wa-qr-trigger {
    right: auto;
    left: 30px;
}

[dir="rtl"] .wa-qr-popup-close {
    right: auto;
    left: 15px;
}

/* Mobile */
@media (max-width: 768px) {
    .wa-qr-trigger {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .wa-qr-popup-content {
        margin: 20px;
        padding: 25px;
    }

    .wa-qr-code svg,
    .wa-qr-code img {
        width: 150px;
        height: 150px;
    }
}

/* =================================
   ARABIC/RTL SPECIFIC STYLES
   ================================= */
[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

/* Test cards hover effect (Arabic pages) */
.popular-test-card {
    transition: all 0.3s;
    border: 2px solid transparent;
}

.popular-test-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

/* Test cards styling */
.test-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.test-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Insurance card styling */
.insurance-card {
    transition: all 0.3s ease;
}

.insurance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Testimonial card styling */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Statistics section styling */
.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* White button styling for CTA sections */
.btn-white {
    background: #fff !important;
    color: var(--color-primary) !important;
    border: none !important;
}

.btn-white:hover {
    background: #f8f9fa !important;
    color: var(--color-secondary) !important;
    transform: translateY(-2px);
}

/* Color utilities */
.color-white {
    color: #fff !important;
}

.color-primary {
    color: var(--color-primary) !important;
}

/* Text opacity utilities */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Fix for CTA overlay sections */
.bg-overlay-primary {
    position: relative;
}

.bg-overlay-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 205, 173, 0.85);
    z-index: 1;
}

.bg-overlay-primary>* {
    position: relative;
    z-index: 2;
}

.bg-overlay-primary .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.bg-overlay-primary .bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =================================
   FANCYBOX CARD BUTTON FIX
   Make buttons more visible on white cards
   ================================= */
.fancybox-layout5 .fancybox-item .btn-secondary.btn-outlined,
.fancybox-layout6 .fancybox-item .btn-secondary.btn-outlined {
    background-color: var(--color-secondary);
    color: #fff !important;
    border-color: var(--color-secondary);
}

.fancybox-layout5 .fancybox-item .btn-secondary.btn-outlined:hover,
.fancybox-layout6 .fancybox-item .btn-secondary.btn-outlined:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff !important;
}

/* =================================
   MOBILE MENU EXTRAS
   Phone number and language switcher
   ================================= */
.mobile-menu-extras {
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

/* Mobile Phone Link */
.mobile-menu-contact {
    margin-bottom: 25px;
}

.mobile-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1ab898 100%);
    color: #fff !important;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 205, 173, 0.3);
}

.mobile-phone-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 205, 173, 0.4);
    color: #fff !important;
}

.mobile-phone-link i {
    font-size: 20px;
}

/* Mobile Language Switcher */
.mobile-menu-language {
    text-align: center;
}

.mobile-lang-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-lang-options {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.mobile-lang-options a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 70px;
}

.mobile-lang-options a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.mobile-lang-options a.active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(33, 205, 173, 0.4);
}

.mobile-lang-options a img {
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-lang-options a span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* RTL Support for Mobile Menu Extras */
[dir="rtl"] .mobile-phone-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .mobile-lang-options {
    flex-direction: row-reverse;
}

/* =================================
   Hero & Page Title Overlap Fixes
   ================================= */
.page-title-layout1 {
    padding-top: 200px !important;
}

@media (max-width: 991px) {
    .page-title-layout1 {
        padding-top: 150px !important;
        padding-bottom: 60px !important;
    }
}

.slider .slide-content {
    padding-top: 80px;
}

@media (max-width: 991px) {
    .slider .slide-content {
        padding-top: 80px;
    }
}