 @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

 /* Reset & Base */
    body {
        font-family: 'Montserrat', sans-serif;
      margin: 0;
      background: linear-gradient(135deg, #f4f6fb, #f0f0f0);
      color: #000038;
      overflow-x: hidden;
    }
    header {
      background: #000038;
      color: white;
      text-align: center;
      padding: 3rem 1rem;
      animation: fadeDown 1s ease-in-out;
    }
    header h1 {
      font-size: 3rem;
      margin: 0;
      animation: pulse 2s infinite alternate;
      letter-spacing: 3px;
    }

    /* Animations */
    @keyframes fadeDown {
      from { opacity: 0; transform: translateY(-30px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes pulse {
      from { letter-spacing: 2px; }
      to { letter-spacing: 4px; }
    }

    /* Section Titles */
    .section-title {
      text-align: center;
      font-size: 2.5rem;
      margin: 3rem auto 4rem;
      position: relative;
      color: #000038;
      max-width: 800px;
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .section-title::before {
      content: '';
      width: 80px;
      height: 4px;
      background: #000038;
      position: absolute;
      top: -20px;
      left: 50%;
      transform: translateX(-50%);
      border-radius: 2px;
    }
    .section-title.show {
      opacity: 1;
      transform: translateY(0);
    }

    /* Accreditations Grid */
    .card-stack {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2rem 3rem; /* vertical 2rem, horizontal 3rem */
      max-width: 1200px;
      margin: 0 auto 5rem;
    }
    .clipboard-card {
      background: white;
      border-radius: 20px;
      padding: 5rem;
      position: relative;
      flex: 1 1 calc(45% - 3rem);
      max-width: calc(85% - 3rem);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
      border-top: 6px solid #000038;
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .clipboard-card.show {
      opacity: 1;
      transform: translateY(0);
    }
    .clipboard-card:hover {
      transform: scale(1.02);
      box-shadow: 0 16px 40px rgba(0,0,0,0.15);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      z-index: 10;
    }
    .clipboard-card img {
        position: absolute;
        width: 90px;
        height: 120px;
        object-fit: contain;
    }
    .clipboard-card:not(.wes) img {
      top: 20px;
      right: 20px;
    }
    .clipboard-card.wes img {
      bottom: 20px;
      right: 20px;
      top: auto;
      width: 250px;
    }
    .clipboard-card h3 {
      margin-top: 0;
      color: #000038;
      margin-bottom: 1rem;
    }
    .clipboard-card p {
        line-height: 1.5;
        color: #333;
        max-width: 410px;
    }

 .affiliation-slider {
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
  padding: 0 2vw; /* Just a little side padding */
}

.affiliation-carousel {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}
    .aff-card {
      flex: 0 0 415px;
      margin: 0 1rem;
      background: linear-gradient(135deg, #ffffff, #f1f1f1);
      border-radius: 16px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.1);
      padding: 3rem;
      text-align: center;
      border-top: 4px solid #000038;
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .aff-card.show {
      opacity: 1;
      transform: translateY(0);
    }
    .aff-card img {
      width: 60px;
      height: 60px;
      object-fit: contain;
      margin-bottom: 1rem;
    }
    .aff-card h3 {
      margin-top: 0;
      color: #000038;
      margin-bottom: 0.75rem;
    }
    .aff-card p {
      line-height: 1.4;
      color: #444;
    }
    .slider-controls {
      text-align: center;
      margin-top: 1rem;
    }
    .slider-controls button {
      background: #000038;
      color: white;
      border: none;
      padding: 0.5rem 1.25rem;
      font-size: 1.1rem;
      margin: 0 0.75rem;
      cursor: pointer;
      border-radius: 8px;
      transition: background 0.3s ease;
      user-select: none;
    }
    .slider-controls button:hover {
      background: #ff6b00;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .clipboard-card {
        flex: 1 1 100%;
        max-width: 100%;
      }
      .aff-card {
        flex: 0 0 80%;
        margin: 0 10%;
      }
    }
      /*----------------------------Accreditations Slider-----------------------------*/
  .slider-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
  }
  
  .logo-slider {
    flex: 1.5; /* Make the slider section take up more space */
    display: flex;
    overflow: hidden;
    padding-left: 20px; /* Add padding to the left */
  }
  
  .logo-track {
    display: flex;
    animation: slide 7s linear infinite;
  }
  
  .logo-track img {
    max-height: 90px; /* Increase logo size */
    margin-right: 20px;
  }
  /* Reduce the size of specific logos */
.logo-track img[alt="Logo 2"], /* hlc-logo */
.logo-track img[alt="Logo 3"] { /* nc-sara-logo */
  width: 130px; /* Adjust the size as needed */
}
  @keyframes slide {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }
  
  /* Adjust slider loop for continuous effect */
  .logo-track {
    display: flex;
    animation: slide 20s linear infinite;
  }
  
  @keyframes slide {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%); /* Adjust so logos repeat smoothly */
  }
}
/* Medium Screens (Tablets) - up to 1024px */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2rem;
    margin: 2rem 1rem 3rem;
  }

  header h1 {
    font-size: 2.5rem;
    padding: 2.5rem 1rem;
  }
  .aff-card {
    flex: 0 0 90%;
    margin: 0 auto;
    padding: 2.5rem;
  }

  .slider-controls button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}
@media (max-width: 768px) {
  .card-stack {
    padding: 0 1rem; /* Ensures the cards don't touch screen edges */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .clipboard-card {
    flex: 1 1 100%;
    max-width: 80%;              /* Centered, slightly narrow card */
    margin: 1.5rem 0;
    padding: 2rem 7rem;          /* Wide padding inside the card */
    text-align: center;
    box-sizing: border-box;
  }

  .clipboard-card img {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    display: block;
    margin: 0 auto 1rem;
    width: 70px;
    height: auto;
  }

  .clipboard-card.wes img {
    width: 150px;
  }
}
/*------------------------------------------------*/
/* Small Tablets and Large Phones - up to 768px */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
    margin: 2rem 1rem 2.5rem;
  }

  header h1 {
    font-size: 2rem;
    padding: 2rem 1rem;
  }
  .aff-card {
    flex: 0 0 90%;
    padding: 2rem;
  }

  .aff-card h3 {
    font-size: 1.2rem;
  }

  .aff-card p {
    font-size: 0.9rem;
  }

  .slider-controls button {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
}
@media (max-width: 768px) {
  .card-stack {
    padding: 0 1rem; /* Add padding around the whole card group */
  }

  .clipboard-card {
          flex: 1 1 100%;
        max-width: 80%;
        margin: 1rem 0;
        padding: 2rem 7rem;
        box-sizing: border-box;
        text-align: center;
  }

  .clipboard-card img {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    display: block;
    margin: 0 auto 1rem;
    width: 70px;
    height: auto;
  }

  .clipboard-card.wes img {
    width: 150px;
  }
}
@media (max-width: 480px) {
  .card-stack {
    padding: 0 0.75rem;
  }

  .clipboard-card {
    padding: 1.75rem 1rem;
    margin: 1rem 0;
  }

  .clipboard-card img {
    width: 60px;
  }

  .clipboard-card.wes img {
    width: 120px;
  }
}
/* Phones - up to 480px (iPhone SE, Z Fold Folded) */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.6rem;
    padding: 1.5rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .clipboard-card {
    padding: 1.5rem;
  }

  .clipboard-card img {
    width: 60px;
    margin-bottom: 1rem;
  }

  .clipboard-card.wes img {
    width: 120px;
  }

  .clipboard-card h3,
  .aff-card h3 {
    font-size: 1.1rem;
  }

  .clipboard-card p,
  .aff-card p {
    font-size: 0.85rem;
  }

  .aff-card {
    padding: 1.5rem;
  }

  .slider-controls button {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
  }

  .logo-track img {
    max-height: 50px;
  }
}
