/* Basic Reset for Margin and Padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Body Styles */
body {
    font-family: 'Heebo', sans-serif; /* Font for Hebrew readability */
    line-height: 1.6;
    color: #333;
    direction: rtl; /* Right to Left direction for Hebrew */
    background-color: #f3f4f6; /* Light gray background for the whole page */
    text-align: center;
    padding: 20px; /* Padding around the body for aesthetics */
}

/* Header Section Styles */
.hero-section {
    background-image: url('nutrition.jpg'); /* Background image for the header */
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 100px 20px;
    color: #fff;
    position: relative;
}

.hero-content {
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text visibility */
    padding: 40px;
    border-radius: 10px;
    display: inline-block;
    max-width: 80%;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3rem; /* Larger headline for impact */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.4em; /* Slightly larger font for supporting text */
    margin-bottom: 30px;
}

.cta-button {
    background-color: #ff9800; /* Bright orange for action */
    color: #fff;
    padding: 15px 30px;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
}

.cta-button:hover {
    background-color: #e68900; /* Darker orange on hover */
}

/* Pain Points Section */
.pain-points {
    background-color: #e0f7ec; /* Light green for calming effect */
    padding: 40px 20px;
    text-align: center;
    font-size: 1.4rem;
}

.pain-points h2 {
    color: #2e7d32;
    font-size: 2em;
    margin-bottom: 20px;
}

/* Health Topics Section Styles */
.health-topics {
    padding: 50px 20px;
    background-color: #ffffff; /* White background for a fresh and clean aesthetic */
}

.health-topics h1 {
    color: #2e7d32; /* Dark green for health-related feel */
    font-size: 2.5em;
    margin-bottom: 40px;
}

/* Grid Container for Topics */
.topics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid for flexibility */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto; /* Center the container */
}

/* Topic Box Styles */
.topic {
    background-color: #e0f7ec; /* Light green background to suggest freshness */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align icons and text */
    justify-content: center; /* Center align icons and text */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

.topic:hover {
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.icon {
    width: 60px; /* Fixed size for icons */
    margin-bottom: 20px; /* Space between icon and text */
    display: block;
}

.topic h2 {
    color: #388e3c; /* Green for consistency */
    font-size: 1.8em;
    margin-bottom: 15px;
}

.topic p {
    font-size: 1.1em;
    color: #666; /* Grey for readability */
    margin: 0;
    max-width: 200px; /* Maximum width for readability on large screens */
}

/* Benefits Section */
.benefits {
    background-color: #f3f4f6; /* Light gray for background consistency */
    padding: 40px 20px;
    text-align: center;
}

.benefits h2 {
    color: #2e7d32;
    font-size: 2em;
    margin-bottom: 20px;
}

.benefits ul {
    list-style-type: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.benefits li {
    margin: 10px 0;
    font-size: 1.1em;
    color: #333; /* Dark gray for readability */
}

/* Form Section */
.form-section {
    background-color: #e0f7ec; /* Light green for a fresh feel */
    padding: 40px 20px;
    text-align: center;
}

.signup-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right; /* Align text to the right for RTL layout */
}

.signup-form input {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: right; /* Align text to the right for RTL layout */
}

.signup-form button {
    padding: 15px;
    background-color: #ff9800; /* Orange button for form submission */
    color: #fff;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.signup-form button:hover {
    background-color: #e68900; /* Darker orange for hover effect */
}

.multiple-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 boxes per row */
    gap: 15px; /* Space between boxes */
    margin-bottom: 20px;
    text-align: center;
}

/* Hide the checkboxes */
.multiple-choice-grid input[type="checkbox"] {
    display: none;
}

/* Styles for each choice box */
.choice-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: 2px solid #2e7d32; /* Green border */
    border-radius: 10px;
    background-color: #f3f4f6; /* Light gray background */
    color: #333;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    text-align: center;
    word-wrap: break-word; /* Ensure long words break into the next line */
    white-space: normal; /* Allow text to wrap onto multiple lines */
    min-height: 100px; /* Ensure all boxes are at least this tall */
    min-width: 100px; /* Ensure all boxes are at least this wide */
}

/* Change color when a choice is selected */
.multiple-choice-grid input[type="checkbox"]:checked + .choice-box {
    background-color: #2e7d32; /* Green background when selected */
    color: #fff; /* White text when selected */
    border-color: #1e5632; /* Darker green border when selected */
}

/* Hover effect for the choice box */
.choice-box:hover {
    background-color: #e0f7ec; /* Light green on hover */
    color: #333;
}

/* Testimonials Section */
.testimonials {
    background-color: #f3f4f6; /* Light gray background */
    padding: 40px 20px;
    text-align: center;
}

.testimonials h2 {
    color: #2e7d32;
    font-size: 2em;
    margin-bottom: 20px;
}

.testimonials blockquote {
    font-size: 1.2em;
    font-style: italic;
    color: #555; /* Softer gray for testimonials */
    margin: 20px auto;
    max-width: 600px;
}

/* Footer Styles */
footer {
    background-color: #333; /* Dark footer for contrast */
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    margin-top: 50px; /* Space above footer */
}

/* Footer Links */
footer a {
    color: #fff;
    text-decoration: underline;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .topics-container {
        grid-template-columns: 1fr; /* Stack topics vertically on smaller screens */
    }
 

    .topic {
        margin-bottom: 20px; /* Space between stacked topics */
    }

    .health-topics h1 {
        font-size: 2em; /* Adjust headline size on smaller screens */
    }

    .hero-section {
        padding: 50px 20px;
    }

    .hero-section h1 {
        font-size: 2.2em; /* Slightly smaller font size for mobile */
    }

    .hero-section p {
        font-size: 1.2em; /* Adjusted for readability on smaller screens */
    }

    .cta-button {
        font-size: 1em; /* Adjust button size */
        padding: 10px 20px;
    }
}