/* 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;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally when body is flex column */
}


/* Header Styles  */
header {
    background-color: #0b1534; /* Blue Zodiac */
    color: #ffffff;
    padding: 1rem 20px;
    display: flex; /* Kept flexbox for overall header layout */
    align-items: center; /* Vertically aligns items in the header */
    justify-content: space-between; /* Puts space between logo/text and nav */
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    width: 100%;
    box-sizing: border-box;
}

header .logo-container {
    /* No specific styles here, assuming img handles its size */
}

header .logo-container img {
    max-width: 200px; /* As per your HTML */
    height: auto;
    display: block;
}

header .text-content {
    flex-grow: 1; /* Allows text content to take up available space */
    margin: 0 20px; /* Adjust spacing as needed */
    text-align: center; /* Center the text */
}



header p {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.2em;
}


/* Styles for WhatsApp button in Navigation */
.whatsapp-nav-item a {
    background-color: #25D366; /* WhatsApp green */
    color: white !important; /* Use !important to override other link styles if needed */
    padding: 8px 12px; /* Adjust padding to fit nav */
    border-radius: 5px; /* Slightly rounded corners */
    text-decoration: none;
    font-weight: bold;
    display: flex; /* Allows icon and text to sit side-by-side */
    align-items: center; /* Vertically align icon and text */
    gap: 5px; /* Space between icon and text */
    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 */
}

.whatsapp-nav-item i {
    font-size: 1.2em; /* Adjust icon size relative to text */
}

/* Adjustments for responsive navigation (on smaller screens) */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column; /* Stacks nav items vertically */
        align-items: center; /* Centers stacked items */
    }

    .whatsapp-nav-item {
        margin-top: 10px; /* Add space above the button when stacked */
    }

    .whatsapp-nav-item a {
        margin-left: 0; /* Remove left margin when stacked */
        width: fit-content; /* Adjust width to fit content */
        padding: 10px 15px; /* Slightly more padding for touch targets */
    }
}

/* 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;
}

nav ul li a {
    color: #ffffff;
    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 */
}

/* General Container for Content Sections */
.container {
    width: 80%;
    max-width: 1200px;
    margin: auto; /* Centers the container */
    overflow: hidden;
    box-sizing: border-box; /* Ensures padding is included in the element's total width */
}

/* Hero Section Styles */
#hero {
    background: linear-gradient(to right, #325feb, #508eff); /* Royal Blue to Dodger Blue Gradient */
    color: #ffffff;
    padding: 20px 0; /* Padding applied to the section itself */
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 5px;
}

.hero-layout {
    display: flex;
    align-items: center; /* Vertically aligns items in the center */
    flex-wrap: wrap; /* Allows items to wrap to the next line on smaller screens */
    padding: 20px; /* Padding specific to this flex container */
    max-width: 1200px; /* Ensures content doesn't get too wide */
    margin: 0 auto; /* Centers the flex container within the hero section */
}

.hero-image {
    flex: 1; /* Allows the image container to grow and shrink */
    display: flex;
    justify-content: center; /* Horizontally centers the image */
    align-items: center; /* Vertically centers the image */
    order: -1; /* Places the image first (on the left) using flexbox order */
}

.hero-image img {
    max-width: 100%; /* Ensures the image is responsive */
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-content {
    flex: 1; /* Allows the text content to grow and shrink */
    min-width: 300px; /* Ensures text doesn't get too narrow */
    text-align: left; /* Align text to the left */
}

.hero-content h1 {
    color: #ffffff;
    margin-top: 0;
    font-size: 2.5em;
}

/* General Section Styles */
.section {
    margin-bottom: 15px;
    padding: 20px; /* Consistent padding for all sections */
    background-color: #dbdddc; /* Stone */
    color: #0b1534; /* Text color for sections (Blue Zodiac) */
    width: 80%;
    max-width: 1200px;
    box-sizing: border-box;
    border-radius: 5px;
}

/* Footer Styles */
footer {
    background-color: #000000; /* Black */
    color: #ffffff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* 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: 200px;
    }
    header .text-content {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }
    nav ul {
        flex-direction: column;
        
    }
    nav ul li {
        display: block;
        text-align: center;
    }

    .container, .section {
        width: 95%; /* Adjust width for 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 */
    }

    .hero-image {
        order: 1; /* Reset order to default, so image appears after text (or according to HTML order) */
        margin-top: 20px; /* Add some space above the image when stacked */
    }

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

    .hero-content {
        text-align: center; /* Center text content on small screens */
        min-width: 200; /* Remove min-width restriction */
    }
}