.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.836);
    z-index: 999;
  }
  
 
  .popup {
    position: absolute;
    top: 50%;
    left: 50%;
    /*width: 40%;  Adjust width for smaller screens */
    max-width: 25%; /* Set a maximum width */
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 20px 70px rgb(255 231 231 / 95%);
    z-index: 1000;
  }
  
  .popup-header {
    text-align: center;
    margin-bottom: 10px;
  }
  
  .popup-content img {
    max-width: 100%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto;
  }
  .close-popup-btn{
    position:absolute;
    top:-1px;
    right:-1px;
    width:50px;
    height:50px;
    border-radius:50%;
    
    /* Premium Glass Effect */
    background:rgba(255,255,255,0.18);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #D3D3D3;
    /*border:1.5px solid rgba(255,255,255,0.35);*/

    box-shadow:
        0 10px 30px rgba(0,0,0,0.18),
        inset 0 1px 1px rgba(255,255,255,0.4);

    cursor:pointer;
    overflow:hidden;
    z-index:1000;

    transition:all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Elegant Glow Ring */
.close-popup-btn::before{
    content:"";
    position:absolute;
    inset:-2px;
    border-radius:50%;
    padding:2px;
    background:linear-gradient(
        135deg,
        rgba(255,255,255,0.8),
        rgba(0,33,71,0.4),
        rgba(255,255,255,0.8)
    );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite:xor;
            mask-composite:exclude;

    opacity:0.9;
}

/* Soft Shine Animation */
.close-popup-btn::after{
    content:"";
    position:absolute;
    width:120%;
    height:120%;
    background:linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,0.55) 50%,
        transparent 70%
    );

    transform:translateX(-140%) rotate(25deg);
    transition:all 0.8s ease;
}

.close-popup-btn i{
    position:relative;
    font-size:20px;
    color:#002147;
    font-weight:700;
    transition:all 0.35s ease;
    z-index:2;
}

/* BEAUTIFUL HOVER EFFECT */
.close-popup-btn:hover{
    transform:translateY(-4px) scale(1.08);
    
    background:linear-gradient(
        135deg,
        rgba(179,0,0,0.92),
        rgba(255,51,51,0.95)
    );

    box-shadow:
        0 18px 40px rgba(179,0,0,0.35),
        0 0 18px rgba(255,60,60,0.35);
}

.close-popup-btn:hover::after{
    transform:translateX(140%) rotate(25deg);
}

.close-popup-btn:hover i{
    color:#fff;
    transform:rotate(180deg) scale(1.1);
}

/* Click Effect */
.close-popup-btn:active{
    transform:scale(0.94);
}

 /*Popup-close */
