.about-intro-section{
    background-color: none;
    margin-top: 50px;
}

.first-section{
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: 4px;
}
.first-section-text{
    font-size: 1.2em;
    width: 100%;
    align-items: center;
    justify-content: space-around;
    text-align: justify;
}
.first-section h2{
    text-align: left;
}
.first-section-image{
    width: 100%;
}
.first-section-image img{
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}







.about-intro{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    font-size: 1.2em;
}
.about-intro h3{
    color: tomato;
}
.mission{
    max-width: 100%;
    background-color: blanchedalmond;
    border-radius: 4px 24px 4px 0px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 24px;
    flex-direction: column;
    text-align: left;
}
.about-icon{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}





.services-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
    background-color: white;
}
.services-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: Black;
    width: 100%;
    text-align: center;
}
.services {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
}

.service {
    width: 100%;
    transition: transform 0.3s ease;
    border: solid 2px tomato;
    margin-bottom: 24px;
    border-radius: 4px;
    padding: 4px;
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.service:hover {
    transform: translateY(-4px);
}
.service-image {
    width: 150px;
    height:150px;
    max-height: auto;
    margin-bottom: 10px;
}
.service h3 {
    font-size: 1.0em;
    margin-bottom: 4px;
    color: tomato;
    width: 100%;
    text-align: center;
}

.services-section p {
    font-size: 1.0em;
    line-height: 1.4;
    color: #333;
    max-width: 100%;
    text-align: left;
    padding: 4px;
}








.choose-us-section {
    padding-bottom: 20px;
    margin-top: 12px;
    background-color: blanchedalmond;
}
.choose-us-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: black;
    width: 100%;
    text-align: center;
}
.choose-us-section p {
    font-size: 1.2em;   
    line-height: 1.4;
    color: #333;
    max-width: 100%;
    text-align: justify;
    padding: 0 20px;
}


.reasons{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.reason{
    border-left: solid 4px tomato;
    max-width: 100%;
    padding: 12px;
    text-align: justify;
    background-color: white;
    min-height: 250px;
}
.reason-icon{
    border: solid tomato 4px;
}





.cert-container{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 24px;
}
.cert{
    background-color: blanchedalmond;
    padding: 12px;
    border-radius: 24px 4px 24px 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
}

.cert img{
    max-width: 100%;
    border-radius: 50%;
}

.cert h3{
    color: tomato;
}

.clickable-header{
    background-color: whitesmoke;
    padding: 12px;
    width: 100%;
}
.clickable-header:hover{
    background-color: cyan;
}





/* Modal hidden by default */
.modal {
  display: none;                /* hidden until triggered */
  position: fixed;              /* stay on screen */
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75); /* dark overlay */
  justify-content: center;      /* center horizontally */
  align-items: center;          /* center vertically */
  z-index: 1005;                /* on top of other content */
  transition: opacity 0.5s ease;
}

/* When active, show the modal */
.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}


/* Close button */
.closeModal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  font-weight: bold;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.closeModal:hover {
  transform: scale(1.2);
  color: tomato;
}


/* Modal content wrapper */
.modal iframe {
    width: 100%;
    height: 90vh; /* takes 80% of viewport height */
    border: none; /* remove default border */
    border-radius: 10px; /* optional, smooth corners */
    box-shadow: 0 5px 20px rgba(0,0,0,0.5); /* subtle shadow */
}


/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes zoomIn {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}









/* ================================
   Tablet & Desktop View (≥768px)
================================= 
*/

@media screen and (min-width: 768px) {
    .about-intro-section{
        background-color: white;
        margin-bottom: 12px;
        background-image: url('../staticimages/pexels-davegarcia-32118894.jpg');
        background-position: center;
        background-size: cover;
        padding: 12px;
    }
    
    .first-section{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 24px;
        padding: 4%;
        border-radius: 4px;
        background-color: blanchedalmond;
    }
    .first-section-text{
        width: 60%;
        padding: 24px;
        border-radius: 4px;
        height: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: justify;
        font-size: 1.2em;
    }
    .first-section-image{
        max-width: 400px;
    }
    .first-section-image img{
        border-radius: 4px;
    }



    .about-intro{
        flex-direction: row;
    }
    .mission{
        max-width: 30%;
    }






    /* Services in rows of 3 */
    .services {
        justify-content: center;
        gap: 12px;
    }

    .service {
        flex: 1 1 calc(33.333% - 12px); /* 3 per row, accounting for gap */
        box-sizing: border-box;         /* ensures padding/borders don’t break layout */
    }



    .choose-us-section {
        align-items: flex-start;
        gap: 40px;
        
    }
    .choose-container{
        background-color: none;
        padding: 2%;
        border-radius: 4px;
    }
    .reason{
        background-color: white;
        flex: 1 1 calc(25% - 40px); /* 4 per row, accounting for gap */
        box-sizing: border-box;         /* ensures padding/borders don’t break layout */
        border-radius: 0 0 24px 0;
    }




    .cert-container{
        flex-direction: row;
        gap: 12px;
    }
    .cert{
        flex: 1 1 calc(25% - 12px); /* 3 per row, accounting for gap */
        box-sizing: border-box;         /* ensures padding/borders don’t break layout */        border-radius: 20px 4px 20px 4px;
    }
    .cert img{
        max-width: 200px;
    }

}
