/* Responsive breakpoints for mobile and tablet, matching index.html */
@media (max-width: 768px) {
  .nationals-section {
    min-height: 40vw;
    height: 40vw;
    max-height: 60vw;
    padding: 0;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: initial !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
  }
  .nationals-section h1 {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100vw;
    font-size: clamp(1.5rem, 8vw, 2.0rem);
    margin: 0 auto;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    z-index: 2;
    padding: 0 5vw;
    box-sizing: border-box;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nationals-section h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
  .history-section {
    padding: 1.2rem 1rem;
    min-height: auto;
    max-width: 98vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .history-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .crest-container img,
  .pct-crest {
    display: block !important;
    margin: 0 auto !important;
    width: clamp(160px, 50vw, 260px) !important;
    height: auto !important;
    max-width: 98vw !important;
  }
}

@media (max-width: 480px) {
  .nationals-section h1 {
    font-size: 1.5rem;
  }
}
/* <----- Nationals PAGE -----> */
.nationals-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    color: white; /* White text */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Text shadow for better readability */
    text-align: center;
    padding: 0 1rem;
    background-image: url('Web Images/Nations\ page\ pic.png');
}

.nationals-section h1 {
    font-size: 4rem;
    margin-bottom: 0rem;
    font-weight: 600;
}


.history-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 60vh;
    height: auto;
}

 .history-container {
    display: flex;
    /* justify-content: center;
    align-items: center; */
    gap: 2rem;
    padding: 20px 40px;
    /* background-color: red;  */
}

.history-section h3{
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    text-align: center;
}
.crest-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* width:%; */
    /* background: blue; */
}

.crest-container img {
    width: 200px;
    height: auto;
    margin-left: 20px;
    
}

.history-text {
    display: flex;
    flex-direction: column;
    justify-content: center;   
    align-items: center;
    /* background: red; */
}

#nationals-link{
    color: black; /* Black text */
    text-decoration: underline;
}


/* Alumni stats section */

.nationals-alumni-stats{
    gap: clamp(12px, 2.5vw, 24px);
    margin-bottom: 1rem; 
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 2rem clamp(12px, 3vw, 32px);
  max-width: 1100px;           /* cap width so cards don't sprawl */
  margin-inline: auto;
    
}

.nationals-alumni-stats .alumni-stat-container{
    display: grid;
    place-items: center;
    min-height: 160px;
    height: 100%;
    text-align: center;
    color: white;
    padding: 20px;
    background-color: #390f64; /* White background for stats */
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.nationals-alumni-stats .alumni-stat-container h3 {
    font-size: .8rem;
    margin-bottom: 0.5rem;
}

.nationals-alumni-stats .alumni-stat-container h1 {
    font-size: 3rem;
    margin-bottom: .5rem;
    font-variant-numeric: tabular-nums; 
    font-feature-settings: 'tnum' 1;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .nationals-alumni-stats {
    --g: 16px;
    gap: var(--g);
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns */
  }
  .nationals-alumni-stats .alumni-stat-container{
    min-height: 150px;
    padding: 16px;
  }
  .nationals-alumni-stats .alumni-stat-container h1 {
    font-size: clamp(1.75rem, 4.8vw, 2.25rem);
  }
  .nationals-alumni-stats .alumni-stat-container h3 {
    font-size: clamp(.85rem, 2.6vw, 1rem);
  }
}

/* Phones: 2-up, then 1-up on very small screens */
@media (max-width: 768px) {
  .nationals-alumni-stats {
    gap: 1.5rem;
    padding: 1.25rem 1rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    justify-items: center;
    text-align: center;
  }
  .nationals-alumni-stats .alumni-stat-container{
    min-height: 130px;
    padding: 14px;
    border-radius: 8px;
    min-width: 0;
    width: 90vw;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .nationals-alumni-stats .alumni-stat-container h1 {
    font-size: clamp(1.25rem, 4.2vw, 1.75rem);
  }
  .nationals-alumni-stats .alumni-stat-container h3 {
    font-size: clamp(0.7rem, 2.6vw, 0.9rem);
  }

  .history-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }
  .crest-container {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .pct-crest {
    margin-left: 0;
    max-width: clamp(160px, 50vw, 260px);
    height: auto;
    display: block;
    margin: 0 auto;
  }
  .history-section h3 {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    text-align: center;
    margin-bottom: .5rem;
    width: 100%;
    margin: 0 auto .5rem auto;
  }
@media (max-width: 900px) {
  .region-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 10px;
  }
  .region-section img {
    width: 90vw;
    max-width: 90vw;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
  }
}
}



@media (max-width: 420px) {
  .nationals-alumni-stats {
    grid-template-columns: 1fr;           /* 1 column on tiny phones */
  }
}


 





.region-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;

}

.region-section img{
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 20px;
}



