
.width-control{
   padding-inline: 0rem;
}

.hero-program {
   max-width: 100%;
   margin-top: 2rem;
   min-height: min-content;
   display: flex;
   overflow: hidden;
   border-radius: 12px;
   padding: 0;
}

.single-program-header{
   font-family: var(--font-roboto-condensed);
   font-size: var(--font-size-4xl);
   font-weight: var(--font-weight-black);
   color: var(--color-dark-green);
   text-transform: uppercase;
   margin: 1rem 0 1.5rem 0;
   line-height: 2.5rem;
   max-width: 40rem;
}

.single-program-header::first-letter{  
   font-size: 2.7rem;
   font-weight: var(--font-weight-bold);
}

.h2-program-single {
  margin: 3rem 0 1rem 0;
  color: var(--color-dark-green);
  font-family: var(--font-roboto-condensed);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.7rem;
  text-justify: inter-word; 
  hyphens: auto;
  overflow-wrap: break-word;
  font-weight:800;
  text-transform: uppercase;
  padding: 0;
}
.h2-program-single::first-letter{
   font-size:2.3rem;
   font-weight: var(--font-weight-semibold)

}

.mini-cards-container{
  width: fit-content;
  padding: 2rem 0 2rem 0;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
  padding-inline: 0rem;
  gap: 2rem;  
}

.modal-trigger {
   background-color:rgba(255, 255, 255, 0);
   border: none;
   font-family: var(--font-roboto);
   font-size: var(--font-size-base);
   font-weight: var(--font-weight-semibold);
   color: var(--color-dark-green);
   text-decoration: none;
   margin-top:0;
   align-self: flex-end;
   cursor: pointer;
}

.ul-single-program{
  padding-top: 0rem;
  padding: -1rem;
  margin: 0;
}
.li-single-program{
  font-family: var(--font-roboto);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-lg);
  line-height: 1.5rem;
  text-align: left;
  margin: 1rem 0 1rem 0;
  padding: 0;
}
/* =================MODAL================= */
 /* Estilos del Modal/Lightbox */
 .modal-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.8);
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: 1000;
   opacity: 0;
   visibility: hidden;
   transition: all 0.3s ease;
   backdrop-filter: blur(5px);
}

.modal-overlay.active {
   opacity: 1;
   visibility: visible;
}

.modal-content {
   background:  var(--color-white);
   border-radius: 12px;
   max-width: 600px;
   width: 90%;
   max-height: 90vh;
   padding: var(--space-4);
   position: relative;
   transform: scale(0.7) translateY(50px);
   transition: all 0.3s ease;
   overflow-y: auto;
   box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
   transform: scale(1) translateY(0);
}

.modal-close {
   position: absolute;
   top: var(--space-3);
   right: var(--space-3);
   background: none;
   border: none;
   color: var(--color-dark-green);
   font-size: var(--font-size-5xl);
   cursor: pointer;
   width: 40px;
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   transition: all 0.3s ease;
}

.modal-close:hover {
   background-color: var(--color-dark-green);
   color: var(--color-white);
   transform: rotate(90deg);
}

.modal-header {
   max-width: 70%;
   font-family: var(--font-roboto-condensed);
   font-size: var(--font-size-4xl);
   font-weight: var(--font-weight-black);
   color: var(--color-dark-green);
   margin-bottom: var(--space-2);
   line-height: 2.5rem;
   text-transform: uppercase;
   padding-bottom: var(--space-2);
}

.modal-header::first-letter{
   font-weight: var(--font-weight-bold);
   font-size: 2.7rem;
}

.modal-text {
   font-family: var(--font-roboto);
   font-weight: var(--font-weight-regular);
   font-size: var(--font-size-lg);
   line-height: 1.5rem;
   text-align: left;
   hyphens: auto;
   overflow-wrap: break-word;
}
.modal-content-template {
   display: none;
}

@media (width >= 768px) and (width <1024px) {

   .width-control{
      padding-inline: 2rem;
   }
  
   .hero-program {
      margin-top: 3rem;

   }
   .hero-program img{ 
      background-image: url(/assets/images/energy-cooperation-program-vertical.jpg);
      background-size: cover;
      background-position: center;
   }
  
   .single-program-header{
     margin: 1rem 0 1.5rem 0 ;
     font-size: var(--font-size-5xl) ;
     line-height: 3.5rem;
     max-width: 45rem;
   }
  
   .single-program-header::first-letter{  
      font-size: 3.3rem;
   }
  
   .h2-program-single {
     margin: 3rem 0 0 0;

   }

}

@media  (width >=1024px) {

 .width-control{
    padding-inline: 5rem;
 }

 .hero-program{
   margin-top: 2rem;
   margin-bottom: 0rem;
   border-radius: 12px;
   max-height: 600px;
   overflow: hidden;
 }

 .single-program-header{
   font-family: var(--font-roboto-condensed);
   font-size: var(--font-size-5xl);
   margin: 2rem 0 2rem 0;
   line-height: 3.5rem;
   max-width: 40rem;
}

.single-program-header::first-letter{  
   font-size: 3.5rem;
   font-weight: var(--font-weight-bold);
}

 .h2-program-single {
   margin: 3rem 0 1rem 0;
 }

 .mini-cards-container{
   min-width: 100%;
   padding: 2rem 0 0 0;
   display: flex;
   flex-direction: row;
   justify-content: space-around;
   flex-wrap: wrap;
   padding-inline: 1rem;
   gap: 2rem;  
 }

 .ul-single-program{
   padding-top: 0rem;
   list-style-type: disc;
 }
 .li-single-program{
   font-family: var(--font-roboto);
   font-weight: var(--font-weight-regular);
   font-size: var(--font-size-lg);
   line-height: 1.5rem;
   text-align: left;
   hyphens: auto;
   overflow-wrap: break-word;
   margin: 1rem 0 1rem 0;
 }
}
