/* Styling the Popup Window */
.popup-trigger, .popup2-trigger  {                  
    color: #FFF;
    display: inline-block;
    text-align: center;
    font-family: "Khand Regular";
    font-size: 1.05rem;
    padding: 0.5rem;        
    transition: color 0.3s; /* Specifying the property for transition */
    cursor: pointer;    
}

.popup-trigger:hover, .popup2-trigger:hover { /* Changed selector to combine hover effects */
    color: #ff0000;    
}

.popup-btn-close, .popup2-btn-close {
    float: right;   
    color: #FFF;
    font-family: "Khand Regular";
    font-size: 1.1rem;  
    cursor: pointer;
}

.popup-btn-close:hover, .popup2-btn-close:hover { /* Changed selector to combine hover effects */
    color: #ff0000;    
}
 
.popup-mobile, .popup2-mobile  {
    position: relative;
    top: 0;
    left: 0;    
    width: auto;
}   

/* Popup Window */
.popup, .popup2 { /* Combined the same rules for both classes */
    position: absolute; 
    left: 33%;
    width: 30%;
    color: #FFF;
    background: #7b1a1f;
    display: none;
    text-align: center;
    padding: 1% 2%;
    border-radius: 1rem;
    z-index: 9999;
}

.popup-content, .popup2-content {
    width: 100%;
    height: auto;   
    display: inline-block;      
}

.mod-heading, .mod2-heading { /* Combined similar rules */
    font-family: "Oswald Regular";
    margin-top: 1%;
    text-align: center;
}

.mod-heading {
    font-size: 1.2rem;
}

.mod2-heading {
    font-size: 1.6rem;
}

.mod-txt, .mod2-txt { /* Combined similar rules */
    line-height: 140%;
    margin-top: 1%;
    font-family: "Raleway Light";
}

.mod-txt {
    letter-spacing: 0.05rem;
    font-size: 1.05rem;
    text-align: justify;    
}

.mod2-txt {
    font-size: 1.3rem;
    text-align: center; 
}

.mod-img, .mod2-img { /* Combined similar rules */
    height: auto;
    display: inline-block;
    text-align: center;
    margin: 1% 0 2% 0;
}

.mod-img {
    width: 40%;
}

.mod2-img {
    width: 50%;
}

.whiteline {
    width: 70%;
    height: 1px;
    background: #FFF;
    display: inline-block;
    text-align: center;
    margin: 1rem 0;
}

@media screen and (max-width: 1024px) {
    .popup, .popup2 {   
        left: 3%;
        width: 90%;
    }         
}

@media screen and (max-width: 768px) {    
    .popup, .popup2 {   
        left: 3%;
        width: 86%;
        padding: 2% 4%;
    }

    .mod-img, .mod2-img { 
        margin: 1rem 0; 
    }   
}

@media screen and (max-width: 600px) {    
    .popup, .popup2 {   
        left: 3%;   
    }

    .mod-txt {  
        text-align: left;   
    }   
}
