html,
body {
    margin: 0;
    padding: 0;
}

.ts-card {
    border-radius: 6px;
}

.navbar-brand img {
    max-height: fit-content;
}

header {
    line-height: 0;
    font-size: 0;
}

.navbar-default {
    padding: 0;
    margin: 0;
}

.navbar-default .container {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-header-custom {
    padding: 15px 0;
    /* Control vertical spacing */
    display: flex;
    align-items: center;
}

.navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1;
    display: flex;
    align-items: center;
}

#logo {
    width: 120px;
    /* Adjust as needed */
    height: auto;
    max-height: 70px;
    /* Control this to prevent overflow */
    object-fit: contain;
    display: block;
}

.menu_area {
    margin: 0;
    padding: 0;
}

.menu_area .navbar {
    padding: 0;
    min-height: auto;
}

/* Remove any bottom margin/padding causing white space */
.row.align-items-center {
    margin: 0;
}

/* Remove spacing between top-bar and navbar */
.top-bar {
    margin-bottom: 0 !important;
}

.navbar-default {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure header sections are flush */
.header-style2>div {
    margin: 0;
}

.border-bottom {
    border-bottom-width: 1px !important;
}

/* General Header Resets */
header,
.navbar-default,
.menu_area,
.menu_area .navbar {
    margin: 0;
    padding: 0;
    line-height: 1;
    /* Use 1 instead of 0 for better consistency */
    border: none;
}

/* Main Navbar Container */
.navbar-default .container-fluid .row {
    min-height: 100px;
    /* Set a new minimum height for the header row */
    padding: 10px 0;
    /* Add some vertical padding */
    margin: 0;
    align-items: center;
    /* Vertically center all items in the row */
}

/* Logo and Brand Styling */
.navbar-header-custom {
    padding: 100;
    /* Remove padding here, we control it on the parent row */
    display: flex;
    align-items: center;
}

.navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1;
}

#logo {
    display: block;
    max-height: 80px;
    /* New, larger logo height */
    width: auto;
    /* Let width adjust automatically */
    max-width: 250px;
    /* Increase max-width if needed */
    object-fit: contain;
    transition: all 0.3s ease;
}

#logo:hover {
    transform: scale(1.05);
}

/* Spacing Fixes */
.top-bar {
    margin-bottom: 0 !important;
}

.header-style2>div {
    margin: 0;
}

.border-bottom {
    border-bottom-width: 1px !important;
}

/* == Responsive Adjustments from header2.php (now centralized) == */
@media (max-width: 768px) {
    .navbar-default .container-fluid .row {
        min-height: 80px !important;
    }

    #logo {
        max-height: 60px !important;
    }
}

@media (max-width: 480px) {
    .navbar-default .container-fluid .row {
        min-height: 70px !important;
    }

    #logo {
        max-height: 50px !important;
    }
}

#logo {
    display: block;
    max-height: 110px;
    /* You can change this value to make it bigger or smaller */
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: all 0.3s ease;
}


/* Full-width, dynamic, mobile-responsive Google Map section */
.google-map-section {
    margin: 0;
    padding: 0;
}

.google-map-section .container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.google-map-section iframe {
    width: 100%;
    height: 600px;
    /* increased height */
    border: none;
    display: block;
}

/* Tablet responsiveness */
@media (max-width: 768px) {
    .google-map-section iframe {
        height: 450px;
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .google-map-section iframe {
        height: 350px;
    }
}

/* Ensures the card itself acts as a flex container */
.services-carousel2 .card-style16 {
    display: flex;
    flex-direction: column;
}

/* MODIFIED: Increased image height from 200px to 250px */
.services-carousel2 .card-style16 .card-img img {
    height: 300px;
    /* You can adjust this value */
    width: 100%;
    object-fit: cover;
}

/* Truncates the description text to 3 lines and adds "..." */
.services-carousel2 .card-style16 .card-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- NEW CSS FOR PERFECT ALIGNMENT --- */

/* Makes the text content area fill all available vertical space */
.services-carousel2 .card-style16 .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Ensures the inner wrapper also fills the content area */
.services-carousel2 .card-style16 .card-content .position-relative {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Pushes the "View Details" button to the bottom of the card */
.services-carousel2 .card-style16 .card-btn {
    margin-top: auto;
}

.card-style10 .card-img {
    /* Define a fixed height for the image container to make all cards uniform */
    height: 250px;
    /* You can adjust this value as needed */
    overflow: hidden;
    /* Hides any part of the image that overflows the container */
}

.card-style10 .card-img img {
    width: 100%;
    height: 100%;
    /* This is "crop-fit". It fills the container, cropping the image to fit without distortion. */
    object-fit: cover;
}

.slider-title {
    white-space: pre-wrap;
}

/* Increased Banner Height */
#mainSlider .carousel-item section {
    min-height: 700px;
}

/* Smooth Animations */
.carousel-item .slider-title,
.carousel-item .slider-subtitle,
.carousel-item .slider-buttons,
.carousel-item .slider-circle-1,
.carousel-item .slider-circle-2,
.carousel-item .slider-circle-3 {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item.active .slider-title {
    animation: smoothFadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.3s;
}

.carousel-item.active .slider-subtitle {
    animation: smoothFadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.6s;
}

.carousel-item.active .slider-buttons {
    animation: smoothFadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.9s;
}

.carousel-item.active .slider-circle-1 {
    animation: smoothFadeInScale 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.4s;
}

.carousel-item.active .slider-circle-2 {
    animation: smoothFadeInScale 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.6s;
}

.carousel-item.active .slider-circle-3 {
    animation: smoothFadeInScale 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.8s;
}

@keyframes smoothFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }

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

@keyframes smoothFadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

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

/* Smooth carousel slide transitions */
.carousel-item {
    transition: transform 1s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Indicator hover effect */
.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.2);
}

.carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 1) !important;
    width: 16px !important;
    height: 16px !important;
}

/* Button hover smooth effect */
.butn-style3 {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.quick-contact {
    position: fixed;
    bottom: 100px;
    right: 15px;
    width: 60px;
    z-index: 9999;
}

.quick-contact img {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    z-index: 9;
}

/* Fix for all counter numbers with + symbol */
.counter-block h3,
.client-count h3,
h3.display-12,
h3.display-10,
h3.display-7,
h3.display-16 {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    gap: 0 !important;
}

.counter-block h3 .odometer,
.client-count h3 .odometer {
    display: inline-block;
}

/* Show navigation */
#nav {
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav>li {
    position: relative;
    padding: 0 15px;
}

#nav>li>a {
    display: block;
    padding: 25px 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Dropdown menu */
.has-dropdown ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    z-index: 1000;
}

.has-dropdown:hover ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown ul li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.has-dropdown ul li a:hover {
    background: #f8f9fa;
    color: #007bff;
    padding-left: 25px;
}

/* Mobile */
@media (max-width: 991px) {
    #nav {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    #nav.active {
        display: flex !important;
    }

    .has-dropdown ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        max-height: 0;
        overflow: hidden;
    }

    .has-dropdown.active ul {
        max-height: 500px;
    }
}