/* Import Google Fonts - if you're using Lato, ensure it's imported */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* General Body Styles */
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    background-image: url('images/MorePower_Gradient.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    color: #ffffff; /* Default text color for body, sections will override */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Base Headings and Text Colors - important for sections */
h1, h2, h3, h4, h5, h6 {
    color: #0b1534; /* Blue Zodiac - default for headings, sections will override for their text */
    margin-bottom: 15px;
}

p, ul, ol, li, a {
    color: #0b1534; /* Default for general text inside sections (overrides body color) */
}

/* Header Styles */
header {
    background-color: #0b1534; /* Blue Zodiac */
    color: #ffffff; /* Set once for header content */
    padding: 1rem 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

header .logo-container {
    flex-shrink: 0; /* Prevents logo from shrinking */
    margin-right: 20px; /* Space between logo and text */
}

header .logo-container img {
    max-width: 200px;
    height: auto;
    display: block;
}

header .text-content {
    flex-grow: 1;
    margin: 0 20px;
    text-align: center;
}

header .text-content h1 { /* Changed from h3 to h1 to match HTML */
    margin: 0;
    font-size: 1.8em; /* Adjusted for better visibility */
    color: #ffffff; /* Ensure header h1 is white */
}

header .text-content p {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.2em;
    color: #ffffff; /* Ensure header p is white */
}

/* Navigation Menu Styling */
nav {
    flex-shrink: 0; /* Prevents nav from shrinking */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* Align items vertically in nav bar */
}

nav ul li {
    margin-left: 20px; /* Space between nav items */
}

nav ul li a {
    color: #ffffff; /* White for nav links */
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #325feb; /* Royal Blue on hover */
    text-decoration: none; /* Keep consistent */
}

/* Social Media Icons in Navigation */
nav ul li .social-icon { /* New class for social icons */
    width: 24px; /* Fixed size for the Instagram icon */
    height: 24px;
    vertical-align: middle; /* Align with text */
    transition: transform 0.2s ease;
}

nav ul li .social-icon:hover {
    transform: scale(1.1);
}

/* Styles for WhatsApp button in Navigation */
.whatsapp-nav-item a {
    background-color: #25D366; /* WhatsApp green */
    color: white !important; /* Important to override general nav link color */
    padding: 8px 12px;
    border-radius: 5ppedx;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
    margin-left: 15px; /* Add some space from the previous nav item */
}

.whatsapp-nav-item a:hover {
    background-color: #1DA851; /* Darker green on hover */
    color: white !important; /* Ensure text stays white on hover */
}

/* This rule is now redundant as we're using Font Awesome for WhatsApp */
/* .whatsapp-nav-item img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
} */

/* General Container for Content Sections */
.container {
    width: 90%; /* Adjusted for a bit more padding on sides initially */
    max-width: 1200px;
    margin: 0 auto; /* Centers the container */
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 10px; /* Add slight horizontal padding to container itself */
}

/* Hero Section Styles */
#hero {
    background: linear-gradient(to right, #325feb, #508eff); /* Royal Blue to Dodger Blue Gradient */
    color: #ffffff;
    padding: 40px 0; /* More vertical padding for prominence */
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px; /* Space below hero section */
}

.hero-layout {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px; /* Space between content blocks */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Internal padding for the layout to prevent content touching edges */
}

.hero-image {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, basis */
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2; /* Image on right on desktop */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-content {
    flex: 2 1 400px; /* Content takes more space, flex-grow, flex-shrink, basis */
    text-align: left;
}

#hero h1 { /* Specific style for hero H1, ensuring it's white */
    color: #ffffff;
    margin-top: 0;
    font-size: 2.8em; /* Adjusted for impact */
}

#hero p { /* Specific style for hero P, ensuring it's white */
    font-size: 1.1em;
    color: #ffffff;
}

/* General Section Styles */
.section {
    margin-bottom: 20px; /* Consistent margin between sections */
    padding: 30px; /* More padding for all sections */
    background-color: #dbdddc; /* Stone */
    color: #0b1534; /* Text color for sections (Blue Zodiac) */
    width: 90%; /* Adjusted to match container width */
    max-width: 1200px;
    box-sizing: border-box;
    border-radius: 5px;
    margin-left: auto; /* Centers the section if body doesn't use align-items center */
    margin-right: auto; /* Centers the section if body doesn't use align-items center */
}

.section h2 {
    text-align: center; /* Center headings within sections by default */
    font-size: 2em;
    color: #0b1534; /* Ensure heading color for sections */
}

.section ul, .section ol {
    list-style-position: inside; /* Keeps bullet points/numbers inside content flow */
    padding-left: 0; /* Remove default padding as list-style-position handles it */
}

.section li {
    margin-bottom: 8px;
}

.section a {
    color: #325feb; /* Link color for sections */
}

.section a:hover {
    text-decoration: underline;
}

/* New Button Style - for .button-primary */
.button-primary {
    display: inline-block;
    background-color: #f7931e; /* A vibrant orange for call to action */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

.button-primary:hover {
    background-color: #e07b00; /* Darker orange on hover */
    text-decoration: none;
    transform: translateY(-2px);
}

/* New Button Style - for .button-review (replaces inline styles) */
.button-review {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50; /* Google Green */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button-review:hover {
    background-color: #368039; /* Darker green on hover */
}


/* Footer Styles */
footer {
    background-color: #000000; /* Black */
    color: #ffffff;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto; /* Pushes footer to the bottom of the flex column body */
    width: 100%;
    box-sizing: border-box;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 1rem 10px;
    }
    header .logo-container {
        margin-right: 0;
        margin-bottom: 10px;
    }
    header .logo-container img {
        max-width: 150px; /* Slightly smaller logo on mobile */
    }
    header .text-content {
        margin: 0; /* Remove horizontal margin */
        margin-bottom: 10px;
        text-align: center;
    }
    header .text-content h1 { /* Adjust heading size for mobile */
        font-size: 1.5em; 
    }
    header .text-content p {
        font-size: 1em; /* Adjust paragraph size for mobile */
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }
    nav ul li {
        margin: 5px 0; /* Adjust spacing for stacked items */
    }
    .whatsapp-nav-item a {
        margin-left: 0; /* Remove left margin when stacked */
        width: fit-content;
        padding: 10px 15px;
    }

    .container, .section {
        width: 95%; /* Adjust width for smaller screens, giving more breathing room */
        padding: 15px; /* Adjust padding for sections on smaller screens */
    }

    /* Responsive adjustments for hero section on smaller screens */
    .hero-layout {
        flex-direction: column; /* Stacks content and image vertically */
        text-align: center; /* Centers text when stacked */
        padding: 15px; /* Adjust padding for smaller screens */
        gap: 20px; /* Less gap on mobile */
    }

    .hero-image {
        order: 1; /* Image appears first (above text) on mobile */
        margin-top: 0; /* Remove top margin, if any */
        margin-bottom: 20px; /* Add space below image when stacked */
        flex: 1 1 auto; /* Allow image to size automatically */
    }

    .hero-image img {
        max-width: 90%; /* Adjust image size on small screens */
    }

    .hero-content {
        text-align: center; /* Center text content on small screens */
        flex: 1 1 auto; /* Allow content to size automatically */
    }

    #hero h1 { /* Smaller hero heading on mobile */
        font-size: 2.2em; 
    }

    #hero p { /* Smaller hero paragraph on mobile */
        font-size: 1em; 
    }

    .button-primary, .button-review { /* Apply to both primary and review buttons */
        width: 90%; /* Make button wider on mobile for easier tapping */
        max-width: 300px; /* But don't let it get too wide */
        margin-left: auto;
        margin-right: auto;
        display: block; /* Make it a block element to center with auto margins */
    }

    .section h2 {
        font-size: 1.8em; /* Adjust section heading size */
    }
}