/* SECTION */
.newsletter-section {
    padding: 50px 0 0 0;
    width: 60%;
}

/* GRID SPACING */
.newsletter-col {
    margin-bottom: 30px;
}

/* CARD */
.newsletter-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.newsletter-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* IMAGE */
.newsletter-image-wrapper {
    overflow: hidden;
    height: 280px;
}

.newsletter-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.newsletter-card:hover .newsletter-image {
    transform: scale(1.08);
}

/* CONTENT */
.newsletter-content {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
}

/* TITLE */
.newsletter-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 10px;
    margin-top: 5px;
}

/* DATE */
.newsletter-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

/* BUTTON */
.newsletter-btn {
    background: #3E245C;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #2c1842;
    transform: translateY(-2px);
}

/* 📱 RESPONSIVE */

/* Tablet */
@media (max-width: 992px) {
    .newsletter-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .newsletter-section {
        width: 80%;
    }
}
/* Mobile */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 40px 0;
        width: 95%;
    }

    .newsletter-title {
        font-size: 16px;
    }

    .newsletter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    .newsletter-col {
        margin-bottom: 0px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .newsletter-image-wrapper {
        height: 180px;
    }

    .newsletter-content {
        padding: 15px;
    }
}

/*below css code is for flipbook*/
.flipbook-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* SHOW */
.flipbook-modal.show {
    display: flex;
}

/* ✅ DESKTOP POPUP STYLE */
.flipbook-content {
    position: relative;
    width: 80%;
    max-width: 1000px;
    height: 80vh; /* NOT full screen */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* PDF */
#pdfViewer {
    width: 100%;
    height: 100%;
    border: none;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
}

/* ✅ MOBILE FULL SCREEN */
@media (max-width: 768px) {
    .flipbook-content {
        width: 100%;
        height: 100vh; /* full screen only on mobile */
        border-radius: 0;
    }
}
/*end of flipbook code*/

/*below code is for newsletter subscriber*/

.newsletter-subscribe {
    padding: 60px 40px 60px 40px;
    display: flex;
    justify-content: center;
}

.newsletter-subscribe__container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.newsletter-subscribe__title {
    font-size: 28px;
    margin-bottom: 10px;
    margin-top: 5px;
}

.newsletter-subscribe__desc {
    margin-bottom: 25px;
    color: #555;
}

.newsletter-subscribe__group {
    margin-bottom: 15px;
}

.newsletter-subscribe__group input {
    width: 95%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.newsletter-subscribe__btn {
    width: 100%;
    padding: 12px;
    background: #3e245c;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-subscribe__btn:hover {
    background: #2670AD;
}

.newsletter-subscribe__message {
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 20px;
}

/* Mobile */
@media (max-width: 576px) {
    .newsletter-subscribe__container {
        padding: 25px;
    }

    .newsletter-subscribe__title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    /* Mobile styles here */
    .newsletter-subscribe__group input {
        width: 90%;
    }
    .newsletter-subscribe {
        padding: 0px 40px 60px 40px;
    }
}

@media (max-width: 480px) {
    /* Small mobile devices */
}