﻿/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #0f172a;
}

/* Banner */
.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 80px;
    background-color: #f9fafb;
}

.banner-text {
    max-width: 50%;
}

    .banner-text h1 {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .banner-text p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 25px;
    }

.banner-image img {
    width: 500px;
    max-width: 100%;
    height: auto;
}

/* Content Body */
.content-body {
    padding: 20px;
    background-color: #ffffff;
}

    .content-body h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .content-body p {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .content-body ul {
        padding-left: 20px;
    }

    .content-body li {
        margin-bottom: 10px;
    }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

    .modal.show {
        display: flex; /* ✅ Properly re-applies flex centering */
    }


/* Modal Content */
.modal-content {
    background-color: #fff;
    max-width: 650px;
    width: 100%;
    border-radius: 10px;
    padding: 30px 40px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-in-out;
}

/* Close Button */
.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    user-select: none;
    background: none;
    border: none;
}

    .close-button:hover {
        color: #ff0000;
    }

    .close-button:focus {
        outline: 2px dashed #000;
    }

/* Modal Headings & Content */
.modal-content h2 {
    margin-top: 0;
    font-size: 24px;
    color: #111827;
}

.modal-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.modal-content ul {
    padding-left: 20px;
    color: #333;
    margin-bottom: 15px;
}

.modal-content li {
    margin-bottom: 10px;
}

/* CTA Button (outside modal) */
.cta-button {
    display: inline-block;
    background: #000000;
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: box-shadow 0.2s ease, background 0.3s ease;
}

    .cta-button:hover,
    .cta-button:focus {
        background: linear-gradient(135deg, #388e3c, #66bb6a);
        box-shadow: 0 6px 20px rgba(56, 142, 60, 0.6);
        outline: none;
    }

/* Responsive Adjustments */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
    }

        .modal-content h2 {
            font-size: 20px;
        }

        .modal-content p,
        .modal-content li {
            font-size: 14px;
        }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
