/* --- Global Styles --- */
:root {
    --primary-color: #0a58ca; /* A deeper, more corporate blue */
    --secondary-color: #f0f2f5; /* A very light, neutral grey background */
    --text-color: #212529;
    --light-text-color: #ffffff;
    --border-color: #dee2e6;
    --border-radius: 12px;
    --box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

body {
    font-family: "Inter", sans-serif;
    margin: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #08449e;
}

/* --- Main Card Layout --- */
.card-container {
    width: 100%;
    max-width: 1240px;
    background-color: var(--light-text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- Main Layout (Mobile-First) --- */
.main-layout {
    display: flex;
    flex-direction: column; /* Default to single column for mobile */
}

.profile-sidebar {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    padding: 30px 20px; /* Adjusted padding for mobile */
    text-align: center;
    border-bottom: 1px solid var(--border-color); /* Border at the bottom on mobile */
}

.content-area {
    padding: 30px 20px; /* Adjusted padding for mobile */
    flex-grow: 1;
    background: linear-gradient(to bottom, #ffffff, #fdfdfd);
}

/* --- Profile Sidebar Elements --- */
.profile-sidebar .image-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--light-text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-sidebar .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-sidebar h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 20px;
}

.desktop-cta {
    display: none; /* Hide desktop button on mobile */
}

/* --- Main Content Area Elements --- */
.content-area h2 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
}

.content-area p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* --- New Sections: Benefits & Testimonial --- */
.benefits-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.benefits-list {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 20px;
    margin-top: 20px;
}

.benefit-item {
    flex: 1;
    max-width: 150px;
}

.benefit-item svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.benefit-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.testimonial-section {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    text-align: left;
}

.testimonial-section blockquote {
    font-size: 16px;
    font-style: italic;
    line-height: 1.7;
    margin: 0;
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
}

.testimonial-section footer {
    margin-top: 15px;
    font-weight: 700;
    color: #555;
}

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

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

.primary-button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    width: 100%;
    box-sizing: border-box;
}

.primary-button:hover {
    background-color: #08449e;
}

.secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: #25d366; /* WhatsApp Green */
    color: var(--light-text-color);
    width: 100%;
    margin-top: 20px;
    box-sizing: border-box;
    animation: pulse 2.5s infinite;
}

.secondary-button:hover {
    background-color: #128c7e;
}

.secondary-button img {
    width: 30px;
    height: 30px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* --- Footer --- */
.footer {
    padding: 20px 40px;
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

.policy-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
}

/* --- Responsive Design (Desktop Enhancements) --- */
@media (min-width: 860px) {
    .main-layout {
        flex-direction: row; /* Switch to two columns on desktop */
    }

    .profile-sidebar {
        flex: 0 0 300px; /* Fixed width for the sidebar */
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        padding: 40px;
    }

    .mobile-cta {
        display: none; /* Hide mobile button on desktop */
    }

    .desktop-cta {
        display: inline-block; /* Show desktop button */
    }

    .content-area {
        padding: 40px;
    }
}

/* Further mobile optimization for very small screens */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .button {
        font-size: 16px;
        padding: 14px 28px;
    }

    .benefits-list {
        flex-direction: row;
        align-items: center;
    }
}

.has-animation {
    animation: 3s linear 0s infinite normal;
}

.has-animation-heart {
    animation-duration: 1s;
    animation-name: animation-heart-beat;
}

@keyframes animation-heart-beat {
    0%,
    20%,
    70% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.02);
    }
    42% {
        transform: scale(1.05);
    }
}

.testimonial-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}
