/* <======================top section=============================> */
.product-container {
    margin-top: 10%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    border-radius: 10px;
}
.product-image {
    min-width: 300px;
    padding: 20px;
    text-align: center;
    width: 50%;
}

.product-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

.product-details {
    /* flex: 1 1 500px; */
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.5rem;
    color: #007BFF;
    margin-bottom: 15px;
}

.product-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.product-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-buttons button {
    flex: 1;
    padding: 12px 18px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    transition: 0.3s ease;
}

.btn-buy {
    background-color: #28a745;
}

.btn-buy:hover {
    background-color: #218838;
}
@media (max-width: 768px) {
    .product-container {
        margin-top: 10%;
        flex-direction: column;
        border-radius: 0px;
    }

    .product-image,
    .product-details {
        padding: 20px;
    }

    .product-buttons button {
        flex: 100%;
    }
}

/* <==========================Popup Modal=============================> */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
}

.modal-close:hover {
    color: #000;
}

.form-section {
    flex: 1 1 100%;
    max-width: 100%;
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.form-section h2 {
    font-size: 1.5rem;
    color: #002a5c;
    margin-bottom: 20px;
    text-align: center;
}

.enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.enquiry-input,
.enquiry-textarea {
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

.enquiry-btn {
    padding: 12px 18px;
    background-color: #002a5c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.enquiry-btn:hover {
    background-color: #0147a5;
}

@media (min-width: 769px) {
    .form-section {
        flex: 1 1 300px;
        margin-left: 30px;
    }
}

@media (max-width: 768px) {
    .form-section {
        margin-top: 20px;
        padding: 15px;
    }
}

/* <==========================Testimonials=============================> */
.price-section .current-price {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.price-section .original-price {
    font-size: 1rem;
    color: #f00a0a;
    text-decoration: line-through;
}

.voucher-detail-section {
    background: rgba(8, 169, 218, 0.233);
    padding: 20px;
}

.voucher-header h2 {
    text-align: center;
    margin-bottom: 20px;
}

.voucher-slider-wrapper {
    position: relative;
    width: 100%;
}

.voucher-slider-container {
    overflow: hidden;
    width: 100%;
}

.voucher-cards {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.voucher-card {
    flex: 0 0 25%;
    /* 4 cards per row on desktop */
    background: white;
    box-shadow: 2px 2px 2px #ccc;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
}

.voucher-card {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ribbon {
    position: absolute;
    top: 15px;
    right: -40px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 50px;
    transform: rotate(45deg);
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.voucher-card img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.voucher-title h5 {
    font-size: 18px;
    text-align: center;
}

.voucher-detail-card-purchase {
    display: flex;
    justify-content: space-between;
    gap: 11px;
    background: #fff;
    padding: 30px;
    margin: 30px auto;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.price-section {
    display: flex;
    justify-content: space-between;
}

.price-section p {
    font-size: 16px;
}

.voucher-button {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.buy-now-btn,
.view-detail {
    background: rgb(72, 72, 199);
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 14px;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.view-details-btn {
    background: rgb(72, 72, 199);
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 14px;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.buy-now-btn {
    text-align: center
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}
@media (max-width: 1024px) {
    .voucher-card {
        flex: 0 0 33.33%;
        /* 3 cards on medium screens */
    }
}

@media (max-width: 768px) {
    .voucher-card {
        flex: 0 0 50%;
        /* 2 cards on tablets */
    }
}

@media (max-width: 480px) {
    .voucher-card {
        flex: 0 0 100%;
        /* 1 card on small devices */
    }

    .voucher-button {
        flex-direction: column;
        gap: 10px;
    }
}

/* <==========================Exam Details=============================> */
.exam-detail {
    width: 50%;
    border-right: 2px solid #0d65ac;
    padding: 10px
}

.exam-detail-table {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.voucher-purchase-detail{
    width: 50%
}
.exam-detail-para-th {
    color: black;
    font-weight: bold
}
@media(max-width: 768px) {
    .voucher-detail-card-purchase{
        flex-direction: column;
    }
    .exam-detail {
        width: 90%;
        border-right: none;
        border-bottom: 2px solid #0d65ac;
    }
    .voucher-purchase-detail{
        width: 90%
    }
}
/* <======================FAQ===========================> */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.faq-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: #0d47a1;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 15px 20px;
    font-weight: 600;
    font-size: 18px;
    background: #e3f2fd;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    font-size: 16px;
    background: #fafafa;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 200px;
    /* Set according to expected content height */
}

/* Responsive */
@media (max-width: 600px) {
    .faq-title {
        font-size: 22px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-answer {
        font-size: 15px;
    }
}