/* Global Scale Reduction (User Request: 90% scale) */
html {
    font-size: 90%; 
}

/* Hero Parallax */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Service Card Styles */
.service-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
    position: relative;
}

.service-card .img-container {
    height: 250px;
    overflow: hidden;
    margin: -30px -30px 0px -30px;
}

.service-card .zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* New rule for image zoom on card hover */
.service-card:hover .zoom-img {
    transform: scale(1.1);
}

.service-card .card-content {
    padding: 30px 20px;
}

.service-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Desktop Layout (Horizontal Alternating) */
@media (min-width: 992px) {
    .service-card {
        display: flex;
        align-items: stretch;
        min-height: 350px;
    }

    .service-card .img-container {
        width: 45%;
        height: auto;
        min-height: 100%;
    }

    .service-card .card-content {
        width: 80%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 50px 50px 25px 50px;
    }

    /* Alternating Layout: Image Right */
    .service-card.alt {
        flex-direction: row-reverse;
    }
}

/* Pulse Animation for Buttons */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* Custom Animations */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hover-card:hover .zoom-img {
    transform: scale(1.1);
}

/* New Zoom Styles */
.img-container {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin: -30px -30px 15px -30px;
    height: 200px;
}

/* Special Card Layout for Service 4 */
@media (min-width: 992px) {
    .special-card {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
        padding: 0 !important;
        /* Reset padding to handle internal spacing */
        overflow: hidden;
        /* Ensure image doesn't overflow */
    }

    .special-card .img-container {
        width: 45%;
        margin: 0;
        border-radius: 0 8px 8px 0;
        min-height: 300px;
        /* Ensure height matches content */
    }

    .special-card .card-content {
        width: 60%;
        padding: 40px;
        text-align: left;
    }
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .sb-top-header__nav {
        position: fixed;
        top: 0;
        left: 0;
        /* Hidden by default */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 10000;
        /* High z-index */
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding-top: 60px;
        display: none;
        transform-origin: left center; /* Hinged door effect */
        /* Override any default hiding */
    }

    .sb-nav--open {
        display: block !important;
        /* Slide in */
    }

    .sb-nav__close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        display: block;
        color: #333;
    }

    .sb-nav__close::before {
        content: '\f00d';
        /* FontAwesome times icon */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        display: block;
        transform: none !important; /* Reset rotation from style.css */
        width: auto !important;
        height: auto !important;
        background-color: transparent !important;
        position: static !important;
    }
    
    .sb-nav__close::after {
        content: none !important;
        display: none !important;
    }

    .sb-nav__list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }

    .sb-nav__item {
        margin: 10px 0;
        width: 100%;
    }

    .sb-nav__link {
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
    }
}

/* Active State */
.sb-nav__item.active .sb-nav__link {
    color: #000;
    font-weight: bold;
}

/* Icons */
.sb-nav__link i {
    margin-right: 8px;
    width: 20px;
    /* Fixed width for alignment */
    text-align: center;
}


/* Carousel Container */
.pricing-carousel {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 40px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    -ms-overflow-style: none;
    scrollbar-width: none;
    /* Center items on larger screens */
}

@media (max-width: 991px) {
    .pricing-carousel {
        justify-content: flex-start;
        /* Align start on mobile for scrolling */
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Hide Scrollbar */
.pricing-carousel::-webkit-scrollbar {
    display: none;
}

/* Pricing Card */
.pricing-card {
    flex: 0 0 300px;
    scroll-snap-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card .img-container {
    height: 180px;
    overflow: hidden;
}

.pricing-card .zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pricing-card:hover .zoom-img {
    transform: scale(1.1);
}

.pricing-content {
    padding: 25px;
    text-align: center;
}

.pricing-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    min-height: 50px;
    /* Align heights */
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-original {
    color: #999;
    text-decoration: line-through;
    font-size: 1rem;
    margin-bottom: 5px;
}

.discount-badge {
    background-color: #ff4757;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.discount-amount {
    color: #2ed573;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.price-final {
    color: #333;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.price-currency {
    font-size: 1.2rem;
    vertical-align: top;
}

.validity {
    font-size: 0.8rem;
    color: #777;
    margin-top: 15px;
    font-style: italic;
    border-top: 1px solid #eee;
    padding-top: 10px;
}


/* =========================================
   New Sidebar & Layout Styles
   ========================================= */

:root {
    --sidebar-width: 250px;
    --sidebar-width-collapsed: 80px;
    --header-height: 70px;
    --primary-color: #22815e;;
    --bg-light: #f8f9fc;
    --text-dark: #333;
    --transition-speed: 0.3s;
}

body {
    background-color: var(--bg-light);
    overflow-x: hidden; /* Prevent horizontal scroll during transitions */
}

/* Sidebar Container */
.sidebar-custom {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: #fff;
    z-index: 1000;
    transition: width var(--transition-speed) ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
}

/* Sidebar Header (Brand) */
.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    opacity: 1;
    transition: opacity var(--transition-speed) ease;
}

/* Navigation Links */
.sidebar-menu {
    padding: 20px 10px;
    list-style: none;
    margin: 0;
}

.sidebar-menu .nav-item {
    margin-bottom: 5px;
}

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    color: #666;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-menu .nav-link:hover {
    background-color: rgba(78, 115, 223, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-menu .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3);
}

.sidebar-menu .nav-link i {
    min-width: 30px; /* Fixed width for icons */
    font-size: 1.1rem;
    text-align: center;
    margin-right: 15px;
    transition: margin var(--transition-speed) ease;
}

.sidebar-heading {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #b7b9cc;
    padding: 15px 15px 5px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity var(--transition-speed) ease;
}

/* Collapsed State (Desktop) */
.sidebar-custom.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-custom.collapsed .brand-text,
.sidebar-custom.collapsed .sidebar-heading,
.sidebar-custom.collapsed .link-text {
    opacity: 0;
    display: none; /* Hide text to prevent layout issues */
}

.sidebar-custom.collapsed .sidebar-menu .nav-link {
    justify-content: center;
    padding: 12px 0;
}

.sidebar-custom.collapsed .sidebar-menu .nav-link i {
    margin-right: 0;
}

.sidebar-custom.collapsed .sidebar-menu .nav-link:hover {
    transform: none; /* No shifting in collapsed mode */
    background-color: rgba(78, 115, 223, 0.1);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed) ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content.expanded { /* When sidebar is collapsed */
    margin-left: var(--sidebar-width-collapsed);
}

/* Top Header */
.top-header {
    background: #fff;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative; /* Non-fixed as requested */
    z-index: 900;
}

/* Hamburger Button */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animated Hamburger Close State */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Header Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    position: relative;
    cursor: pointer;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: var(--primary-color);
}

.badge-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74a3b;
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: bold;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .sidebar-custom {
        transform: translateX(-100%); /* Hidden by default */
        width: 250px; /* Always full width on mobile when open */
    }

    .sidebar-custom.mobile-open {
        transform: translateX(0);
    }

    .main-content,
    .main-content.expanded {
        margin-left: 0; /* No margin on mobile */
    }

    /* Overlay for mobile */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
        opacity: 0;
        transition: opacity var(--transition-speed);
    }

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }
}




/* Sidebar Scrollbar Customization */
.sidebar-custom::-webkit-scrollbar {
    width: 6px;
}

.sidebar-custom::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-custom::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.sidebar-custom:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Custom Header Shadow */
#sb-navigation #Header {
    box-shadow: 0 2px 15px rgba(0,0,0,0.08); 
    position: relative; 
    z-index: 100;
}

/* WhatsApp Gradient Button */
.btn-whatsapp-gradient {
    background: linear-gradient(90deg, #65d98a, #25D366);
    border: none;
    border-radius: 50px;
    color: white !important;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45); /* Increased shadow */
}


/* Gold Outline Button - Ghost Style */
.btn-outline-gold {
    background-color: transparent;
    color: #d4a373 !important;
    border: 2px solid #d4a373;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: none;
}

.btn-outline-gold:hover {
    background-color: #d4a373;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.4);
}

/* Subtle Pulse for Whatsapp/Primary Buttons */
.pulse-button-subtle {
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Elegant Gold Link Style */
.link-gold-styled {
    color: #8a5a44;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    font-size: 12px;
}

.link-gold-styled:hover {
    color: #d4a373;
    transform: translateX(15px);
    
}

.link-gold-styled i {
    transition: transform 0.3s ease;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    backdrop-filter: blur(5px); /* Blur effect */
    z-index: 1000; /* Below nav (which is usually high z-index) but above content */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Ensure mobile menu is above overlay */
@media (max-width: 991px) {
    .sb-top-header__nav {
        z-index: 1001 !important; /* Higher than overlay */
    }
}

/* Header Scroll Behavior */
#Header {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 1030; /* Standard Bootstrap navbar z-index */
    transition: transform 0.3s ease-in-out;
}

#Header.nav-hidden {
    transform: translateY(-100%) !important;
}

/* Modern highlight link style - Stronger & Bottom Right */
.link-highlight-green {
    display: inline-block;
    padding: 2px 12px;
    color: #000;
    font-weight: 700;
    background: rgba(46, 213, 115, 0.25); /* Stronger base */
    border-radius: 6px; 
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 213, 115, 0.3);
    animation: pulse-strong-green 2s infinite ease-in-out;
}

.link-highlight-green:hover {
    background: rgba(46, 213, 115, 0.4); 
    color: #000;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.4);
    transform: translateY(-2px);
    animation: none;
}

@keyframes pulse-strong-green {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.4);
        background: rgba(46, 213, 115, 0.25);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 12px 4px rgba(46, 213, 115, 0.2);
        background: rgba(46, 213, 115, 0.35);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.4);
        background: rgba(46, 213, 115, 0.25);
        transform: scale(1);
    }
}

/* Responsive Alignment Helper */
.text-align-responsive {
    text-align: left; /* Desktop Default */
}

@media (max-width: 991px) {
    .text-align-responsive {
        text-align: right !important; /* Mobile Right */
    }
}