
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
  }
  

  .popup-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .popup-box {
    background: transparent;
    border-radius: 14px;
    max-width: 80%;
    width: 90%;
    box-shadow: 0 10px 35px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.2s ease;
  }

  .popup-box img {
    border-radius: 14px;
    width: 100%;
    height: auto;
    display: block;
  }

  .popup-box-imsak {
    background: transparent;
    border-radius: 14px;
    max-width: 35%;
    width: 90%;
    box-shadow: 0 10px 35px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.2s ease;
  }
  .popup-box-imsak img {
    border-radius: 14px;
    width: 100%;
    height: auto;
    display: block;
  }

  .popup-content {
    text-align: center;
  }
  .popup-content a{
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .popup-btn {
    display: inline-block;
    background: #003D79;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
  }
  
  .popup-btn:hover {
    background: #f9c500;
    color: #003D79;
  }
  
  .popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #ff0000;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .popup-close:hover {
    color: #f9c500;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @media (max-width: 600px) {
  .popup-box{
    max-width: 90%;
    width: 90%;
  }
  .popup-box-imsak{
    max-width: 95%;
    width: 90%;
  }
  }
  