

/* FIX: Prevent horizontal scrollbar on the entire body */
body {
    overflow-x: hidden;
}

/* General Section Heading Styling */
.section-heading {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 20px;
    position: relative; /* For the ::after pseudo-element */
    padding-bottom: 10px; /* Space for the underline */
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 25%;
    bottom: 0;
    transform: translateX(-50%);
    width: 45%; /* Width of the underline */
    height: 3px;
    background: var(--theme);
    border-radius: 2px;
}


/* --- Hero Section --- */
.hero-sec {
    padding: 80px 0; /* Adjusted padding */
    background: url('../assets/bg-image.png'); /* Ensure this path is correct */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; /* Center the background image */
    color: var(--white);
    position: relative;
    z-index: 1;
    overflow: hidden; /* Important for hero section too */
}

.hero-sec h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color:#f4ad3b;
}

.hero-sec p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color:var(--white);
}

/* --- Services Section --- */
.services-sec {
    padding: 60px 0;
    background: var(--light-grey); /* Use defined variable */
    color: var(--text-color); /* Use defined variable */
    text-align: center; /* Center align section text */
}

.services-sec p {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

/* Service Card Styling */
.services-sec .services a {
    text-decoration: none; /* Remove underline from links */
    display: block; /* Make the whole link block clickable */
    height: 100%; /* Ensure link takes full height of column */
}

.services-sec .services .card {
    border-radius: 10px; /* Increased border-radius for softer look */
    background: #654a21;
    color: var(--white);
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1); /* Softer, larger shadow */
    height: 100%; /* Important for consistent height in Bootstrap columns */
    transition: all 0.4s ease-in-out; /* Smoother transition */
    border: none; /* Remove default card border */
    display: flex; /* Flexbox for card content alignment */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Add padding inside the card */
}

.services-sec .services .card:hover {
    background: var(--theme); /* Hover background color */
    transform: translateY(-10px); /* Lift effect */
    box-shadow: 0px 8px 25px rgba(0,0,0,0.2); /* Enhanced shadow on hover */
}

.services-sec .services .card .service-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Space between image and text */
    margin-bottom: 15px; /* Space below service name */
}

.services-sec .services .card .service-name img {
    width: 80px; /* Slightly reduced icon size for better fit */
    height: 80px; /* Maintain aspect ratio */
    padding: 8px; /* Slightly reduced padding */
    border: 2px solid var(--theme);
    border-radius: 50%;
    background-color: var(--white); /* White background for icons */
    object-fit: contain; /* Ensure image scales properly */
    transition: all 0.4s ease-in-out;
}

.services-sec .services .card .service-name p {
    font-size: 20px; /* Slightly smaller font size */
    font-weight: 600;
    color: var(--theme);
    margin-bottom: 0; /* Remove default paragraph margin */
    text-align: center;
    line-height: 1.3; /* Ensure multi-line titles fit */
    transition: all 0.4s ease-in-out;
}

.services-sec .services .card .service-info {
    text-align: center;
    font-size: 15px;
    color: var(--white);
    line-height: 1.5;
    flex-grow: 1; /* Allows text to take available space for consistent height */
}

/* Hover effects */
.services-sec .services .card:hover .service-name img {
    background: var(--black); /* Icon background changes on hover */
    border-color: var(--white); /* Icon border changes on hover */
}

.services-sec .services .card:hover .service-name p {
    color: var(--white); /* Text color changes on hover */
}

.services-sec .services .card:hover .service-info {
    color: var(--dark-blue); /* Info text color changes on hover */
}


/* --- Responsiveness --- */
@media screen and (max-width: 1199px) {
    .hero-sec h1 {
        font-size: 38px;
    }
    .hero-sec p {
        font-size: 17px;
    }
    .section-heading {
        font-size: 34px;
    }
}

@media screen and (max-width: 991px) {
    .hero-sec {
        padding: 60px 0;
    }
    .hero-sec h1 {
        font-size: 34px;
    }
    .hero-sec p {
        font-size: 16px;
    }
    .services-sec {
        padding: 40px 0;
    }
    .section-heading {
        font-size: 30px;
    }
    .services-sec .services .card {
        padding: 15px;
    }
    .services-sec .services .card .service-name img {
        width: 70px;
        height: 70px;
    }
    .services-sec .services .card .service-name p {
        font-size: 18px;
    }
    .services-sec .services .card .service-info {
        font-size: 14px;
    }
}

@media screen and (max-width: 767px) {
    .hero-sec {
        text-align: center;
    }
    .hero-sec h1 {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .hero-sec p {
        font-size: 15px;
    }
    .section-heading {
        font-size: 28px;
    }
    .services-sec p {
        font-size: 15px;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 575px) {
    .hero-sec {
        padding: 40px 0;
    }
    .hero-sec h1 {
        font-size: 26px;
    }
    .hero-sec p {
        font-size: 14px;
    }
    .services-sec {
        padding: 30px 0;
    }
    .section-heading {
        font-size: 24px;
    }
    .services-sec .services .card .service-name img {
        width: 60px;
        height: 60px;
        padding: 6px;
    }
    .services-sec .services .card .service-name p {
        font-size: 17px;
    }
    .services-sec .services .card .service-info {
        font-size: 13px;
    }
}