/* Main Container */
  .main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  position: relative;
}

.slider {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 0.4rem;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 0;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(1.05) contrast(1.1);
}
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 0;
  filter: brightness(1.05) contrast(1.1);
}
/* Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  z-index: 2;
}
.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}
.nav-arrow.left {
  left: 10px;
}
.nav-arrow.right {
  right: 10px;
}

/* Pagination Dots */
.pagination-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.dot.active {
  background: white;
}

/* Pause Button */
.pause-toggle {
  position: absolute;
  bottom: 15px;
  right: 20px;
  z-index: 3;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
}


  .cert-section {
    padding: 3rem 0;
    text-align: center;
    background-color: 	#f9fafb;
    display: grid;
    place-items: center;
  }
  .subtitle {
    color: #262d78;
    font-size: 1.2rem;
  }
  .title {
    font-size: 2.5rem;

    color: #033a74;
  }

  .cert-grid {
    display: grid;
    grid-template-columns: repeat(3,340px);
    gap: 2rem;
    padding-block: 2rem;
    justify-content: center;
    max-width: 1300px;
  }
  .cert-card {
    background-color: #fff;
    border-radius: 0.3rem;
    overflow: hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.1);
  }
 
  .card-image {
    padding: 0.5rem;
    border-radius: 0.3rem;
    height:215px;
    overflow:hidden
  }
  .card-image img {
    width:100%;
    height:100%;
    object-fit:cover;
    object-position: center 0;
    border-radius: 0.3rem;
    filter: brightness(1.05) contrast(1.1);
    transition: all 0.5s ease; 
  }
  .card-content{
    padding: 0 0 1rem;
  }
  .cert-name {
    font-size: 1.1rem;
    font-weight: 700;
  }
  .cert-card p {
    font-size: 0.925rem;
    text-align: center;
    color: #4b5563;
    padding: 0.5rem 0;
  }

  .cert-card button {
    background-color: #13227A;
    color: #fff;
    font-size: 0.875rem;
    border: none;
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.4rem;
    transition: all 0.4s ;
  }
  .cert-card button:hover {
      background-color: #0f1e6b;
  }
  .cert-name.blue {
    color: #2196F3;
  }
  .cert-name.red {
    color: #D32F2F;
  }
  .cert-grid a {
    text-decoration: none;
    font-size: 0.9rem;
  }


  .modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 150;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-color: #262d7877;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.8s;
  }

  .modal.show {
    visibility: visible;
    opacity: 1;
    transition-delay: 0.1s;
  }

  .modal-content {
    background-color: #fff;
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 0.2rem;
    max-width: 650px;
    width: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0) ;
    transition: transform 0.5s ease-out;
  }

  .modal.show .modal-content {
    transform: scale(1) ;
  }

  .close-btn {
    float: right;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #5a5555;
  }


  .close-btn:hover {
    color: rgb(33, 5, 191);
  }

  .country-list{
    display: grid;
    grid-template-columns: repeat(3,180px);
    column-gap:  1rem;
    row-gap: 2rem;
    padding: 2rem;
  }
  .country-list img{
    width: 60px;
    cursor: pointer;
    border-radius: 0.4rem;
    position: relative;
    object-fit: cover;
    border: 1px solid #ccc;
  }
  /* Hover shimmer and zoom */
  .country-container {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
  }

  .country-container:hover .country-label{
   text-decoration: underline;
  }

  .country-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
  }

  .country-container:hover::before {
    animation: shimmer 0.8s ease forwards;
  }

  @keyframes shimmer {
    0% {
      left: -75%;
      opacity: 0;
    }
    50% {
      left: 50%;
      opacity: 1;
    }
    100% {
      left: 125%;
      opacity: 0;
    }
  }

  .country-label {
  
    font-size: 0.9rem;
    text-align: start;
    padding-inline-start: 0.3rem;
    position: relative;
    z-index: 2;
  }
 
  
  /* Responsive Styles */
  @media (max-width: 824px) {
    .cert-grid {
    grid-template-columns: repeat(2,340px);
      gap: 1.5rem;
      padding: 1.5rem;
    }
      .card-image {
    height:200px;
  }
    .nav-arrow{
        font-size: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .title { font-size: 30px; }
    .subtitle { font-size: 16px; }
  }
  @media (min-width: 900px) and (max-width: 1100px) {
    .cert-grid {
        grid-template-columns: repeat(3,300px);
        max-width: 1000px;
        gap: 2rem;
    }
          .card-image {
    height:200px;
  }
    
  }
@media (min-width: 1800px) {
    .slider {

  height: 700px;
}
    .cert-grid {
        grid-template-columns: repeat(3,600px);
        max-width: 1000px;
        gap: 2rem;
    }
       .card-image {
    height:400px;
    padding: 1rem;
  }
   .card-content{
    padding: 1.5rem;
  }
     .cert-name {
      font-size: 1.5rem;
      font-weight: 700;
    }
    
  }

  @media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .slider { width: 100%; }
    .slider {
    height: 300px;
  }
    
  }

  @media (max-width: 600px) {
    .cert-grid {
      grid-template-columns: 300px;
      gap: 1rem;
      padding: 1rem;
    }
    .card-image {
    height:180px;
  }
     .nav-arrow{
        font-size: 1rem;
        padding: 1rem 0.7rem;
    }
    
    .cert-section {
      padding: 2rem 0;
    }
    .title { font-size: 24px; }
    .subtitle { font-size: 14px; }
      
    .cert-name {
      font-size: 1rem;
      font-weight: 700;
    }
    
    .cert-card p {
      font-size: 14px;
    }
    
    .cert-card button {
      padding: 10px 20px;
      font-size: 14px;
    }
      .slider {
    height: 200px;
  }
  .country-list{
    grid-template-columns: repeat(2,140px);
    overflow: auto;
    height:400px;
  }
  .country-list img{
    height: 80px;
  }

  }