.mainpage .case_section {
    padding: 50px 0;
}
.mainpage .row {
    display: flex;
    flex-wrap: wrap;
}
.mainpage .box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.mainpage .box:hover {
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}
.mainpage .img-box img {
    max-width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}
.mainpage .img-box img:hover {
    transform: scale(1.1);
}
.mainpage .detail-box {
    flex-grow: 1;
}
.mainpage .detail-box h5 {
    margin-top: 15px;
    font-size: 18px;
}
.mainpage .detail-box a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}
.mainpage .detail-box a:hover {
    color: #0056b3;
}
.mainpage .detail-box {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: flex-end;
}

.mainpage .detail-box a {
margin-top: auto;
text-decoration: none;
color: #007bff;
font-weight: bold;
display: inline-block;
}


/* Slider Section */
.mainpage .slider_section {
padding: 50px 0;
color: white;
position: relative;
background-image: url('https://ramaqchools.com/assets/images/RAMAQ-GIF1.gif');
height: 80vh;
background-size: cover;
background-position: center;
display: flex;
align-items: center;
border-radius: 0 0 250px 0;
}
.mainpage .slider_section #customCarousel1{
margin-top: 100px;
}

/* Reduce height on smaller screens */
@media (max-width: 992px) {
.mainpage .slider_section {
height: auto;
padding: 60px 0;
text-align: center;
}
}

@media (max-width: 768px) {
.mainpage .slider_section {
padding: 40px 0;
}

.mainpage .detail-box h1 {
font-size: 24px;
}

.mainpage .detail-box p {
font-size: 14px;
}
}

/* Image Box */
.mainpage .img-box img {
max-width: 100%;
height: auto;
border-radius: 10px;
transition: transform 0.5s ease-in-out;
}

.mainpage .img-box img:hover {
transform: scale(1.05);
}

/* Case Section */
.mainpage .case_section {
padding: 50px 0;
}

.mainpage .heading_container h2 {
font-size: 32px;
font-weight: bold;
text-align: center;
margin-bottom: 40px;
}

/* Box Styles */
.mainpage .box {
background: #fff;
border-radius: 10px;
padding: 20px;
text-align: center;
transition: 0.3s;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
}

.mainpage .box:hover {
box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

.mainpage .detail-box {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: flex-end;
}

.mainpage .detail-box h5 {
margin-top: 15px;
font-size: 18px;
}

.mainpage .detail-box a {
text-decoration: none;
color: #007bff;
font-weight: bold;
margin-top: auto;
}

.mainpage .detail-box a:hover {
color: #0056b3;
}

/* Responsiveness */
@media (max-width: 992px) {
.mainpage .case_section .row {
justify-content: center;
}

.col-lg-3, .col-md-4, .col-sm-6, .col-12 {
width: 90%;
margin-bottom: 20px;
}

.mainpage .box {
width: 100%;
max-width: 400px;
}
}

@media (max-width: 576px) {
.mainpage .detail-box h1 {
font-size: 22px;
}

.mainpage .detail-box p {
font-size: 14px;
}
}
.mainpage .detail-box11 {
text-align: left;
max-width: 500px;
padding: 20px;
margin-top: 50px;
}

.mainpage .detail-box11 h1 {
font-size: 36px;
font-weight: bold;
margin-bottom: 15px;
}

.mainpage .detail-box11 p {
font-size: 18px;
line-height: 1.5;
margin-bottom: 20px;
}

.mainpage .btn-box .btn1 {
display: inline-block;
padding: 10px 20px;
font-size: 16px;
color: white;
background: #007bff;
border-radius: 5px;
text-decoration: none;
transition: 0.3s;
}

.mainpage .btn-box .btn1:hover {
background: #0056b3;
}

@media (max-width: 992px) {
.mainpage .detail-box11 {
text-align: center;
max-width: 100%;
margin-top: 40px; /* Adjust for smaller screens */
}

.mainpage .detail-box11 h1 {
font-size: 28px;
}

.mainpage .detail-box11 p {
font-size: 16px;
}

.mainpage .btn-box {
text-align: center;
}
}

@media (max-width: 768px) {
.mainpage .detail-box11 {
padding: 10px;
margin-top: 30px; /* Adjust for even smaller screens */
}

.mainpage .detail-box11 h1 {
font-size: 24px;
}

.mainpage .detail-box11 p {
font-size: 14px;
}

.mainpage .btn-box .btn1 {
font-size: 14px;
padding: 8px 16px;
}
}
.mainpage .case_section .container h2{
color: #B50033;
font-weight: bold;

} 