

.children-house .title-container h3{
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 3rem;
    margin: 0;
}

.children-house h4{
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: lighter;
    font-size: 1.4rem;
}

.children-house .title-container h5{
    font-family: 'Lora';
    font-weight: lighter;
    font-size: 1.2rem;
    letter-spacing: 0%;

}

.children-house .title-container h6{
    font-family: 'Lora';
    font-weight: lighter;
    font-size: 1.2rem;
    letter-spacing: 0%;
       margin: 0;
}

.children-house p{
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: lighter;
    font-size: 1rem;
}


/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/

.comunidad-hero {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: #ffffff;
    text-align: center;
    padding: 0;
    height: 30vh;
    min-height: 610px;
    display: flex;
    justify-content: center;
    align-items: center;       
}

.comunidad-hero .container {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);   /* dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 100vw;
}


/* Hero Title */

.comunidad-hero .title-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;  
    width: 100%;
    height: 300px;
}


.comunidad-hero .title-container {
    padding-left: 5%;

}
.comunidad-hero .title-container h1 {
    font-family: 'Plus Jakarta Sans';
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    line-height: 120%;
    letter-spacing: -1%;
    width: 80%;

} 

.comunidad-hero .title-container h6 {
    font-family: 'Lora';
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
    line-height: 120%;
    letter-spacing: -1%;
    width: 80%;

} 


.comunidad-hero .title-container p{
    font-family: 'Plus Jakarta Sans';
    font-size: 1.5rem;
    font-weight: lighter;
    line-height: 1.5;
    margin: 0;
    max-width: 1200px;
}

/*--------------------------------------------------------------
# Content Part 1
--------------------------------------------------------------*/

.children-house-content-part-1 .title-container h5{
    font-family: 'Lora';
    font-weight: lighter;
    font-size: 1.3rem;
    letter-spacing: 0%;

} 
.children-house-content-part-1 .title-container h6{
    font-family: 'Lora';
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0%;

}  

.children-house-content-part-1 h4{
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: lighter;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}


.children-house-content-part-1{
    display: flex;
    background-color: #ffffff;
    color: #000000;
    text-align: left;
}

.children-house-content-part-1 .content-container{
    width: 50%;
    padding: 5%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.children-house-content-part-1 .diplomados-list{
    display: flex;
    flex-direction: row;
    gap: 50px;

}

.children-house-content-part-1 .diplomados-list .diplomado-item .img-container{
    width: 60px;
    height: 60px;
    margin: 1rem 0;
}


.children-house-content-part-1 .diplomados-list .diplomado-item .img-container img{
    object-fit: contain;
    width: 100%;
}

.children-house-content-part-1 .image-container{
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

}

.children-house-content-part-1 .image-container img{
    width: 500px;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
}
.children-house-content-part-1 .button-container img{
    width: 15px;
    height: 15px;
    object-fit: contain;
    transform: rotate(270deg);
}

/* Responsive styles for children-house-content-part-1 */
@media (max-width: 1024px) {
    .children-house-content-part-1 {
        flex-direction: column;
        align-items: stretch;
        padding: 0 2vw;
    }
    .children-house-content-part-1 .content-container,
    .children-house-content-part-1 .image-container {
        width: 100%;
        padding: 3% 0;
    }
    .children-house-content-part-1 .image-container img {
        width: 100%;
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }
    .children-house-content-part-1 .diplomados-list {
        gap: 24px;
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {
    .children-house-content-part-1 {
        padding: 0 0.5rem;
    }
    .children-house-content-part-1 .content-container,
    .children-house-content-part-1 .image-container {
        padding: 2% 0;
    }
    .children-house-content-part-1 .image-container img {
        height: 650px;
        max-width: 100%;
    }
    .children-house-content-part-1 .diplomados-list {
        flex-direction: column;
        gap: 16px;
    }
}



/*--------------------------------------------------------------
# Slider Section
--------------------------------------------------------------*/
.children-house-slider-section{
    background-color: var(--var-blue-montessori);
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

/*--------------------------------------------------------------
# Quote Section
--------------------------------------------------------------*/

.quote-section{
    background-color: var(--var-yellow-montessori);
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.quote-section .quote{
    background-color: inherit;
}

.quote-section .quote-text {
    color: rgb(255, 255, 255);
}


.quote-section .quote-author {
    color: rgb(255, 255, 255);
}

/*--------------------------------------------------------------
# Objetivos Section
--------------------------------------------------------------*/

.children-house-objetivos{
    display: flex;
    background-color: var(--var-blue-light-montessori);
    color: #000000;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.children-house-objetivos .title-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;  
    gap: 1rem;
    width: 100%;
    margin-bottom: 40px;
}

.children-house-objetivos .title-container h3{
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 3rem;
    margin: 0;
}

.children-house-objetivos .title-container h5{
    font-family: 'Lora';
    font-weight: 300;
    font-size: 1.3rem;
    margin: 0;
    max-width: 800px;
    line-height: 1.5;
}

.children-house-objetivos .title-container h6{
    font-family: 'Lora';
    font-weight: 300;
    font-size: 1rem;
    margin: 0;
    max-width: 800px;
    line-height: 1.5;
}


.children-house-objetivos .content-container{
    width: 100%;
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.children-house-objetivos .content-container .diplomados-item{
    max-width: 350px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}   
.children-house-objetivos .content-container .diplomados-item h4{
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: lighter;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.children-house-objetivos .content-container .diplomados-item p{
    font-family: 'Lora';
    font-weight: 300;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}
.children-house-objetivos .image-container{
    width: 120px;
    display: flex; 
    align-items: center;
    justify-content: center;
}

.children-house-objetivos .image-container img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.children-house-objetivos .button-container{
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.children-house-objetivos .button-container img{
    width: 15px;
    height: 15px;
    object-fit: contain;
    transform: rotate(270deg);
}

/*--------------------------------------------------------------
# Video Section
--------------------------------------------------------------*/

.children-house-video{
    position: relative;
    padding: 20px 20px;
    background-color: var(--var-green-montessori);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}
.children-house-buttons-slider
{
    padding: 20px 20px;
    background-color: var(--var-green-montessori);
    text-align: center;
}
.children-house-video {
  display: flex;
  flex-direction: column;
  align-items: center;    /* center vertically */
  justify-content: center; /* center horizontally */
  gap: 40px;
}

.children-house-video .container{
    z-index: 10;
}

.children-house-video-header{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.children-house-video-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.children-house-video-header p {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.children-house-video-header .btn-primary {
  background-color: #1F5C81;
  color: #fff;
  border: none;
  font-weight: 400;
}

.children-house-video .video-wrapper {
  position: relative; 
  width: 80vw;
  max-width: 1200px;        /* limit width */      /* optional max for large screens */
  aspect-ratio: 16 / 9;    /* modern replacement for padding hack */
  overflow: hidden;
  background-color: #000;  /* fallback background */
  border-radius: 5px;
  margin:50px auto;
  
}

.children-house-video .video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures proper fill */
  border-radius: 5px;
}

.children-house-video .decoration-container {
    position: absolute;
    display: flex;
    justify-content: space-between;
    width: 100%;
    top: -100px;
    right: 0px;
    z-index: 0;
}

.children-house-video .decoration-container img {
    width: 340px;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.children-house-video .decoration-container img:nth-child(1) {
   position: relative;
    left: -40px;
}

.children-house-video .decoration-container img:nth-child(2) {
   position: relative;
   top: 100px;
   width: 200px;
}

/* Responsive styles for children-house-video */
@media (max-width: 1024px) {
    .children-house-video .video-wrapper {
        width: 80vw;
        height: auto;
    }            
    .children-house-video .decoration-container {
        display: none; /* hide decorations on smaller screens */
    }
}



/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.taller-gallery-section {
    background: #e9f0f5;
    padding: 48px 0 56px 0;
}
.taller-gallery-header {
    text-align: center;
    margin-bottom: 32px;
}
.taller-gallery-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.taller-gallery-header p {
    color: #444;
    font-size: 1.1rem;
    margin: 0;
}
.taller-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
    
.item1 {
    grid-column: span 2 / span 2;
    grid-row: span 3 / span 3;
}

.item2 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-column-start: 3;
}

.item3 {
    grid-column: span 2 / span 2;
    grid-row: span 3 / span 3;
    grid-column-start: 3;
    grid-row-start: 3;
}

.item4 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-row-start: 4;
}

.item5{
    grid-column: span 2 / span 2;
    grid-row: span 4 / span 4;
    grid-column-start: 1;
}

.item7{
   grid-column: span 2 / span 2;
   grid-row: span 4 / span 4;
    grid-column-start: 3;
}

.gallery-img-container {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}
.gallery-img-container img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
    display: block;
}

.item3 img {
    object-position: 0 10px;
}


@media (max-width: 1200px) {
    .taller-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 220px;
        gap: 20px;
    }
    .item1, .item2, .item3, .item4, .item5, .item6, .item7 {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }
}

@media (max-width: 962px) {
    .taller-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 250px;
        gap: 14px;
    }

    .item3 img{
        object-position: 0 0;
    }
    .item1, .item2, .item3, .item4, .item5, .item6, .item7 {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }
}

@media (max-width: 769px) {
    .taller-gallery-section {
        padding: 32px 0 36px 0;
    }
    .taller-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .gallery-img-container {
        min-height: 100px;
    }
    .item1, .item2, .item3, .item4, .item5, .item6, .item7 {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }
}

@media (max-width: 480px) {
    .taller-gallery-section {
        padding: 18px 0 18px 0;
    }
    .taller-gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .gallery-img-container {
        min-height: 60px;
    }
    .item1, .item2, .item3, .item4, .item5, .item6, .item7 {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }
}

@media (max-width: 768px) {
    .taller-gallery-section {
        padding: 32px 0 36px 0;
    }
    .taller-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2, 320px);
        gap: 14px;
    }
    .gallery-img-container {
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    .taller-gallery-section {
        padding: 18px 0 18px 0;
    }
    .taller-gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .gallery-img-container {
        min-height: 80px;
    }
}