

/* FIX: Prevent horizontal scrollbar on the entire body */
body {
    overflow-x: hidden;
}

/* General Section Heading Styling */
.section-heading {

    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative; /* For the ::after pseudo-element */
    padding-bottom: 10px; /* Space for the underline */
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 23%;
    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;
    text-align: left;
}

.hero-sec p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color:var(--white);
    text-align: left;
}

/* --- Facilities Section --- */
.facilities-sec {
    padding: 60px 0;
    background: var(--light-grey); /* Use defined variable for background */
    color: var(--text-color);
    /* text-align: center;  */
}

.facilities-sec p {
    font-size: 16px;
    line-height: 1.6;
}

/* Facilities Card Styling */
.facilities-sec .card {
    border-radius: 10px; /* Consistent border-radius */
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1); /* Soft, larger shadow */
    height: 100%; /* Important for consistent height in Bootstrap columns */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
    border: none; /* Remove default card border */
    overflow: hidden; /* Ensure content within card doesn't overflow */
}

.facilities-sec .card:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0px 8px 25px rgba(0,0,0,0.15); /* Enhanced shadow on hover */
}

.facilities-sec .card .card-top {
    background: linear-gradient(188deg, var(--theme), #795548); /* Gradient using theme color */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 20px 0 !important; /* Adjusted padding */
}

.facilities-sec .card .card-top img {
    width: 80px; /* Slightly smaller icon size for better fit */
    height: 80px; /* Ensure square aspect ratio */
    object-fit: contain; /* Scale image properly */
}

.facilities-sec .card .card-body {
    text-align: center;
    padding: 20px; /* Add padding inside the body */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.facilities-sec .card .card-title {
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 20px; /* Adjusted font size */
    margin-bottom: 10px; /* Space below title */
}

.facilities-sec .card .card-text {
    font-size: 15px; /* Adjusted font size */
    color: var(--text-color);
    line-height: 1.6;
}

/* --- 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;
    }
    .facilities-sec {
        padding: 40px 0;
    }
    .section-heading {
        font-size: 30px;
    }
    .facilities-sec .card .card-top img {
        width: 70px;
        height: 70px;
    }
    .facilities-sec .card .card-title {
        font-size: 18px;
    }
    .facilities-sec .card .card-text {
        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;
    }
    .facilities-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;
    }
    .facilities-sec {
        padding: 30px 0;
    }
    .section-heading {
        font-size: 24px;
    }
    .facilities-sec .card .card-top img {
        width: 60px;
        height: 60px;
    }
    .facilities-sec .card .card-title {
        font-size: 17px;
    }
    .facilities-sec .card .card-text {
        font-size: 13px;
    }
}