/* --- 2. ALL BASE MOBILE STYLES (Under 479px) --- */



/* (768px to 991px)  */
@media (min-width: 768px) {
  .divider{margin: var(--space-lg) auto;}
  section{
    margin: var(--space-lg) 0
  }
}

.update{
  margin-top: 100px;
  margin-bottom: 40px;
  margin-left: 5px;
  margin-right: 5px;
}

.linksif{
  text-decoration: underline;
  color: var(--color-accent);
}

.linksif:active{
  text-decoration: underline;
  color: var(--color-ba);

}

/* -- HERO SECTION --*/

.hero-section {
  min-height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)), url('../imgs/hero-img.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  align-items: flex-start;
  margin-top: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin-top: 45vh;
  gap: 0.5rem;
}

.hero-btn{
  font-family: var(--font-heading);
  display: inline-block;        
  padding: 0.4rem 0.8rem;     
  font-size: 1.2rem; 
  transition: 0.3s ease;
  cursor: pointer;            
  color: var(--color-primary);
  background: none;
  border-radius: 1rem;
  border: 2px solid var(--color-primary);
  margin-top: .5rem;
}

.hero-btn:hover{
  color: var(--color-accent);
  background: none;
  border-radius: 1rem;
  border: 2px solid var(--color-accent);
}

/* (768px to 991px)  */
@media (min-width: 768px) {
  .hero { padding-left: 8%; }
}

/* (992px and Above) */
@media (min-width: 992px) {
 .hero-section {
    align-items: flex-start; 
  }
  .hero-content{
    max-width: 80%;
  }
  .hero-btn{
    font-size: 1.4rem;
  }
}

/* -- NEED SECTION --*/

.need-main-box {
  display: grid;
  grid-template-columns: repeat(1, 1fr); 
  gap: var(--space-md);
  max-width: 90%;
}

/* 480px to 767px) */
@media (min-width: 480px) {

  .need-section h2 {
    align-items: center;
    justify-content: center;
  }

}

/* (992px and Above) */
@media (min-width: 1300px) {
  .need-main-box{
    grid-template-columns: repeat(3, 1fr);
  }
  .need-content {
  padding: 10%;
  }
}

/* -- MISSION SECTION -- */

.headms{
max-width: 700px;
}

.support-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: var(--space-xs);
  width: 80%;
  min-width: 300px; 
  margin-bottom:var(--space-md);
}

.card-support {
  aspect-ratio: 1 / 1;
}

.icon {
  padding: 0 5%;
  height: auto;
  max-width: 80%;
}

/* Modal Overlay */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Above the header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

/* Modal Box */
.modal-content {
    background-color: #111;
    padding: 2rem;
    border: 2px solid var(--color-accent); /* Coral border */
    border-radius: 1rem;
    max-width: 400px;
    width: 80%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(254, 89, 52, 0.2);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--color-primary);
    font-size: 2rem;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--color-accent);
}

/* Hover effect for cards to show they are clickable */
.card-support {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-support:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
}

/* 480px to 767px) */
@media (min-width: 480px) {

  .support-items { gap: 1rem; }

  .mission-section h2 {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* --- 4. TABLETS / SMALL LAPTOPS (768px to 991px) --- */
@media (min-width: 768px) {
  
  .support-items {
    grid-template-columns: repeat(4, 1fr); /* Expand to 4 columns */
    gap: var(--space-md)
  }
  .icon{
     max-width: 80px;
  }
}

/* --- 5. DESKTOP (992px and Above) --- */
@media (min-width: 992px) {
  

  .support-items {
    grid-template-columns: repeat(4, 1fr); 
    width: 60%; 
    max-height: 50vh;
    gap: 1rem;
  }

  .icon {
    max-width: 100px;
    margin-bottom: 0.5rem;
  }
}

/* -- OTHER -- */

.main-content-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  width: 80%;
  margin-top: var(--space-md);
}

.paired-img {
  object-fit: cover;
  border-radius: 0.75rem;
  width: 80%;
  aspect-ratio: 1.1 ;
}

#text-edit-local{
  font-weight: 700;
}


/* --- 5. DESKTOP (992px and Above) --- */
@media (min-width: 992px) {
  

  #potental-1-main {
    flex-direction: row-reverse;
  }

  .paired-img {
    max-height: 50vh; 
    width: auto;   
  }
  
  .main-content-box {
    flex-direction: row; 
    gap: 4rem;
  }

}

