/* Basic Reset & Typography */
:root {
    --primary-blue: #1A73E8; /* Google's blue */
    --secondary-blue: #4285F4; /* Lighter shade for accents */
    --text-dark: #333;
    --text-light: #555;
    --background-light: #f8f8f8;
    --background-white: #ffffff;
    --border-color: #ddd;
    --hover-effect: #e6f0fe; /* Light blue for hover */
}

body {
    /* Changed font-family to 'Helios' */
    font-family: 'Helios', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    scroll-behavior: smooth; /* For smooth scrolling */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8em;
}

h2 { font-size: 2.5em; }
h3 { font-size: 2em; }
h4 { font-size: 1.5em; }
/* Changed h6 font size to match h5 */
h5, h6 { font-size: 1.3em; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-blue);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.primary-btn {
    background-color: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
}

.primary-btn:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.secondary-btn:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* Header & Navigation */
.header {
    background-color: var(--background-white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky; /* Makes header stick to top */
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.logo img {
    height: 100px; /* Or any other desired height */
    width: auto;
}


.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a:hover {
    color: var(--primary-blue);
}

/* Underline effect for active/hover */
.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after { /* .active class added by JS for current section */
    width: 100%;
}

/* Sections */
section {
    padding: 80px 0; /* Consistent padding for all sections */
    text-align: center;
}

section:nth-of-type(even) { /* Alternate background for readability */
    background-color: var(--background-white);
}

.section-intro {
    font-size: 1.1em;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Hero Section */
.hero-section {
    background-color: var(--background-white);
    padding: 100px 0; /* More padding for hero */
    display: flex;
    align-items: center;
    min-height: 70vh; /* Make it take up more screen space */
}

.hero-section .container {
    display: flex;
    flex-wrap: wrap; /* Allows image and content to wrap on smaller screens */
    align-items: center;
    justify-content: space-between;
    text-align: left; /* Align text to left */
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.hero-content h2 {
    font-size: 3.2em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #222;
}

.hero-content p {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center; /* Center image if it's smaller */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Soften edges */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* About Us Section */
.about-section {
    background-color: var(--background-light);
    text-align: center;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    text-align: justify; /* Justify text */
}

/* Offerings Section */
.offerings-section {
    background-color: var(--background-white);
}

/* Base style for offering items: Header on top, followed by a flex body */
.offering-item {
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 50px;
    display: flex; /* Makes it a flex container for h4 and offering-body */
    flex-direction: column; /* Stacks h4 on top of offering-body */
    align-items: center; /* Centers h4 and offering-body horizontally */
    text-align: left; /* Default text alignment for children */
}

.offering-item:last-child {
    border-bottom: none; /* No border for the last item */
    margin-bottom: 0;
}

.offering-item h4 {
    color: var(--primary-blue);
    font-size: 1.8em;
    margin-bottom: 15px; /* Space between h4 and the new flex body */
    text-align: center; /* Center the heading of the offering item */
    width: 100%; /* Ensure header spans full width for centering */
}

/* New flex container for content and image below the H4 */
.offering-body {
    display: flex;
    align-items: center; /* Vertically align image and text */
    gap: 40px; /* Space between image and text */
    width: 100%; /* Ensure it takes full width of parent offering-item */
    margin-top: 20px; /* Space below the h4 */
}

/* Default for offering-body: Content on left, Image on right */
.offering-body {
    flex-direction: row;
}

/* Specific styling for the second offering-body: Image on left, Content on right */
.offering-body-reverse {
    flex-direction: row-reverse;
}


.offering-text-content {
    flex: 1; /* Allows text content to grow and shrink */
    min-width: 300px; /* Ensures text content doesn't get too narrow */
    text-align: left; /* Aligns the text content itself to the left */
}


.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.benefit-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}

.benefit-card h6 {
    font-size: 1.3em; /* Now matches h5 */
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.benefit-card ul {
    list-style: disc; /* Use discs for lists within cards */
    padding-left: 20px;
    color: var(--text-light);
}

.benefit-card ul li {
    margin-bottom: 8px;
}

.offering-image {
    flex-shrink: 0; /* Prevents image from shrinking */
    max-width: 40%; /* Limits image width when next to text */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 0; /* Remove previous margins as flexbox handles spacing */
    display: block; /* Ensures it behaves as a block within flex */
}


/* CTA Section */
.cta-section {
    background-color: #4440ab !important; /*var(--primary-blue) !important; #4440ab !important*/
    color: #de6a6a;/*white;*/
    padding: 60px 0;
}

.cta-section h3 {
    color: white;
    font-size: 2.2em;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-section .btn {
    background-color: white;
    color: var(--primary-blue);
    border: 2px solid white;
}

.cta-section .btn:hover {
    background-color: var(--hover-effect);
    color: var(--primary-blue);
}


/* Contact Us Section */
.contact-section {
    background-color: var(--background-light);
    text-align: center;
}

.contact-section .container {
    text-align: left; /* Align grid content left */
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.contact-form, .contact-info {
    flex: 1;
    min-width: 300px; /* Ensure they don't get too small */
    background-color: var(--background-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    /* Changed font-family to 'Helios' */
    font-family: 'Helios', sans-serif;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

.contact-info h4 {
    font-size: 1.5em;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.contact-info a {
    color: var(--primary-blue);
}

.social-links {
    margin-top: 25px;
    display: flex; /* For horizontal icons */
    gap: 15px;
}

.social-links img {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
}

.social-links img:hover {
    transform: scale(1.1);
}


/* Footer */
.footer {
    background-color: #222;
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-nav ul {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: rgba(255,255,255,0.7);
}

.footer-nav a:hover {
    color: white;
}

/* Modal Styles */
.modal {
    position: fixed !important; /* Stay in place relative to the viewport, !important to ensure override */
    z-index: 1001 !important; /* Sit on top of all other content, !important to ensure override */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    display: none; /* Hidden by default - This ensures it's hidden on page load */
    justify-content: center; /* Centering content with flexbox */
    align-items: center; /* Centering content with flexbox */
}


.modal-content {
    background-color: var(--background-white);
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.modal-content h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 25px;
    color: var(--text-light);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-blue);
    text-decoration: none;
    cursor: pointer;
}

#modalCloseBtn {
    margin-top: 0; /* Remove default button margin */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .main-nav {
        margin-top: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .main-nav ul li {
        margin-left: 0;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    /* Stack offering items vertically on small screens */
    .offering-item, .offering-body, .offering-body-reverse { /* Apply to both base and reversed items */
        flex-direction: column;
    }

    /* Ensure text content is aligned centrally or left on small screens */
    .offering-text-content {
        text-align: left; /* Keep text aligned left within its container */
    }

    .offering-image {
        max-width: 80%; /* Allow image to be wider on small screens */
        margin-top: 30px; /* Add space above image when stacked */
    }

    .benefits-grid {
        flex-direction: column;
        gap: 20px;
    }

    .contact-grid {
        flex-direction: column;
    }

    .contact-form, .contact-info {
        padding: 30px;
    }

    .footer .container {
        flex-direction: column;
        gap: 15px;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }

    section {
        padding: 50px 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}