@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif; 
    font-weight: 500;
    box-sizing: border-box;
}
nav {
    height: 60px;
    /* other styling for your navbar */
}

/* Body styles */
body {
    background-image: url('../Images/back_5.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* background-color: #f4f4f4; */
    color: #333;
    line-height: 1.6;
    background-attachment: fixed;
}

/* Header styles */
header {  
    color: #fff;
    text-align: center;
}
header h1 {
    background: linear-gradient(45deg, #b40606, #ffcc00);  /* Set your desired background color */
    padding: 10px 20px; /* Add padding for spacing around the text */
    margin: 20px auto;
    display: inline-block;
    text-align: center; /* Center the text if desired */
    border-radius: 15px;
}

.building .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: black;
    color: #fff;
}
.building .logo {
    flex: 1;
    margin-left: 20px;
}

.building .logo-image {
    height: 80px;   /* Adjust height as needed */
    width: 120px;
    display: block;
}

/* .building .navbar .logo a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
} */

.building .navbar .nav-links {
    display: flex;
    margin-right: 20px;
    gap: 20px;
}
.building .navbar .nav-links a{
    font-size: 1.2rem;
}

.building .navbar .nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}
/* .building .nav-links a:hover{
    color: #ad1032;
} */
.building .navbar .nav-link:hover {
    color: #ad1010; 
    text-decoration: underline;
}

.building h1 {
    margin-top: 20px;
    font-size: 30px;
    color: black;
    /* background: #333; */
    padding: 5px 8px;
}

/* Main section styles */
/* main {
    padding: 50px;
    width: 1200px;
    margin: auto;
} */

.service-category {
    margin: auto;
    width: 1200px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.5);
}

.service-category h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-item {
    flex: 1;
    min-width: 200px;
    /* max-width: 100%; */
    background: #8b8782;
    border-radius: 8px;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 0 10px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; 
}
.category-item img{
    display: block; /* Make the image a block element */              /*new changed*/
    width: 100%; /* Make sure the image is responsive */
    height: 180px;
    object-fit: cover;                                         
}

.category-item ul li{
    margin-bottom: 20px;
}
.category-item i{
    margin-left: 0.5rem;
}
.category-item p{
    list-style: none;
    text-decoration: none;
}
.category-item h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 18px;
}
/*.categories .category-item img{*/
/*    display: block; */
/*    margin: 0 auto; */
/*    max-width: 100%; */
/*    height: auto;*/
/*    height: 180px;*/
/*    width: 180px;*/
/*    border-radius: 10px;*/
/*}*/

.category-link {
    color: #050505;
    text-decoration: none;
    font-weight: bold;
    padding: 2px 4px;   /* Add some padding to make the background more visible */
    border-radius: 4px;   /* Optional: round the corners */
    transition: background-color 0.3s ease;  /* Smooth transition */
}


.category-link:hover {
    color: #e40a0a;
    text-decoration: underline;
}
.category-item p a:hover{
    color: #cc0b0b;
}
.category-item ul {
    font-size: 1.2rem;
    list-style: none;
    padding-left: 0;
}

.sub-category-link {
    display: block;
    /* margin-bottom: 20px; */
    color: #2600ff;
    text-decoration: none;
    margin: 15px 0;
}

.sub-category-link:hover {
    color: #cc0b0b;
    text-decoration: underline;
}

/* Footer styles */
footer {
    height: 50px;
    background: #333;                      
    color: #fff;
    text-align: center;
    margin: auto;
    /* padding: 10px;       */     /* new changed */
    /* position: fixed; */
    /* width: 100%; */
    bottom: 0;
}

/* footer p {
    margin: 0;
} */





/* Responsive Styles */
@media (max-width: 1024px){
    .service-category{
        width: 100%;
    }
}
@media (max-width: 991px){
    .service-category{
        width: 100%;
    }
}

@media (max-width: 768px) {
    .building .navbar {
        display: flex;               
        align-items: center;         
        justify-content: space-between; 
        padding: 10px;
        height: 60px; 
    }
    .building .navbar .logo {
        margin: 0 auto;
    }
   
    .building .navbar .nav-links {
        display: flex;
        align-items: center;        
        gap: 10px;  
        max-width: 100%;
        /* padding: 20px;   */
    }
    .service-category h2 {
        text-align: center;
        font-size: 20px;
    }
   
    .service-category {
        width: 100%; /* Ensure the service-category takes full width */
    }
    .category-item {
        min-width: 100%;
        box-shadow: none;
    }
    footer{
        height: auto;               /* new changed */
    }
    footer p{
        text-align: center;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .building h1 {
        font-size: 20px;
        padding: 5px 10px;
    }
    .categories {
        flex-direction: column;
        align-items: center;
    }
    .category-item {
        width: 100%;
    }
    footer p{
        text-align: center;
        font-size: 0.9rem;
    }
}