:root {
    --primary-green: #63b32e;
    --dark-green: #235812;
    --accent-pink: #ed00b5;
    --text-dark: #333;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Raleway', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    /* Default to Poppins */
}

body {
    background-color: #ffffff;
    /* Subtle dot pattern for depth */
    background-image: radial-gradient(#effaf1 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.green-text {
    color: var(--primary-green);
    font-weight: 800;
}

.bold {
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 18px 40px;
    /* Larger click area */
    text-decoration: none;
    font-weight: 800;
    border-radius: 50px;
    /* Full pill shape */
    text-transform: uppercase;
    display: inline-block;
    margin: 20px 0;
    box-shadow: 0 10px 20px rgba(99, 179, 46, 0.4);
    /* Green glow */
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(99, 179, 46, 0.6);
    filter: brightness(1.1);
}

/* Hero Section */
#hero {
    position: relative;
    padding: 50px 0 100px;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
}

.hero-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.hero-content {
    width: 45%;
    z-index: 2;
}

.logo-wrapper {
    margin-bottom: 40px;
}

.logo-img {
    height: 40px;
    /* Adjust based on actual logo aspect ratio */
    width: auto;
}

#hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #000;
    font-weight: 700;
}

.hero-desc {
    font-size: 1.1rem;
    /* Increased size */
    line-height: 1.6;
    color: #444;
    max-width: 500px;
    /* Increased width to prevent early wrapping */
}

/* Complex Hero Background Shapes */
/* Hero Image Wrapper - Container for Image and Shapes */
/* Hero Image Wrapper - Container for Image */
.hero-image-wrapper {
    width: 60%;
    position: relative;
    /* Height adjusts to image content now, but we can keep a min-height or remove */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Shapes removed as they are integrated in the image */

/* The Real Image (Mariana with Text and Background) */
.hero-img-real {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Remove shadow if it's already in the image, or keep it subtle */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Badges */
/* Badges removed */

/* How It Works */
#how-it-works {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 50px;
    line-height: 1.1;
}

.bold-large {
    font-weight: 800;
    font-size: 4.5rem;
    /* Much larger */
    display: block;
    color: #000;
    margin-top: -10px;
    text-transform: uppercase;
    letter-spacing: -2px;
    /* Tighten it up */
}

.steps-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.step-card {
    background-color: var(--dark-green);
    color: white;
    padding: 30px 20px;
    border-radius: 20px;
    /* More rounded */
    width: 280px;
    max-width: 100%;
    /* Prevent overflow on small screens */
    /* Fixed width */
    height: 320px;
    /* Fixed height for uniformity */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-card:hover {
    transform: translateY(-5px);
}

::selection {
    background: var(--accent-pink);
    color: white;
}

.step-card:hover .icon-box {
    color: var(--accent-pink);
    /* Pink on hover for vibrancy */
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.icon-box {
    font-size: 7rem;
    /* Even larger icons */
    margin-bottom: 25px;
    color: var(--primary-green);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    transition: all 0.3s ease;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    /* Reference is sentence case-ish */
}

/* Who Can Be */
#who-can-be {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.who-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.who-content {
    width: 45%;
}

.who-content .section-title {
    text-align: left;
    font-weight: 800;
    margin-bottom: 30px;
}

.who-list {
    list-style: none;
    margin-bottom: 30px;
}

.who-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #444;
    position: relative;
    padding-left: 20px;
}

.who-list li::before {
    content: "\f00c";
    /* FontAwesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-green);
    /* Bright green */
    position: absolute;
    left: 0;
    font-size: 1rem;
    top: 3px;
}

.who-note {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    line-height: 1.4;
}

.who-image {
    width: 50%;
    height: 400px;
    position: relative;
}

.who-img-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    position: relative;
    z-index: 1;
}

.green-corner-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    /* Adjust based on flow */
    width: 150px;
    height: 150px;
    background: var(--primary-green);
    z-index: -1;
    /* Needs specific styling to match the sharp triangle in image */
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}


/* Services */
#services {
    padding: 60px 0 60px;
    /* Added bottom padding */
    text-align: center;
}



.services-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.service-card {
    background: white;
    /* Clean white bg */
    color: var(--text-dark);
    width: 240px;
    height: 300px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 179, 46, 0.2);
    /* Green glow on hover */
    border-color: var(--primary-green);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--primary-green);
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-green);
    /* Outline style */
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.services-footer-bar {
    background-color: var(--dark-green);
    color: white;
    padding: 15px;
    margin-top: 60px;
    /* Increased to 60px for space */
}

.services-footer-bar h3 {
    font-weight: 400;
    letter-spacing: 2px;
}

/* Registration / Footer */
#cadastro {
    display: flex;
    background: transparent;
    /* Transparent for float */
    min-height: 100vh;
    /* Full screen height */
    position: relative;
    margin-bottom: -100px;
    /* Float over footer */
    z-index: 10;
    padding-bottom: 0;
    align-items: center;
    /* Center the card vertically */
    justify-content: center;
}

.cadastro-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    /* Stronger shadow */
    border-radius: 20px;
    overflow: hidden;
    z-index: 10;
}

.cadastro-info {
    flex: 1;
    padding: 100px 80px;
    /* Increased padding */
    /* Increased padding */
    background: linear-gradient(135deg, #1e4d10 0%, #43a047 100%);
    /* Deep rich gradient */
    position: relative;
    overflow: hidden;
    color: white;
}

/* Decorative circles for depth */
.cadastro-info::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cadastro-info::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border: 20px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cadastro-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.light-text {
    font-weight: 400;
}

.cadastro-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 400px;
}

.cadastro-form-wrapper {
    flex: 1;
    background-color: white;
    padding: 100px 80px;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    color: var(--primary-green);
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 30px;
}

#registration-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    position: relative;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.form-group i {
    position: absolute;
    left: 0;
    top: 10px;
    color: #999;
}

.form-group input {
    width: 100%;
    border: none;
    padding: 10px 10px 10px 30px;
    font-size: 1rem;
    outline: none;
}

.btn-submit {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 30px;
    /* Pill shape */
    font-weight: bold;
    font-size: 1rem;
    margin-top: 20px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #43a047;
}

/* Responsiveness */
@media (max-width: 768px) {

    .hero-body {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        /* Add space between text and image */
    }

    .who-container,
    .cadastro-container {
        flex-direction: column;
        align-items: center;
    }

    .hero-content,
    .hero-image-wrapper,
    .who-content,
    .who-image {
        width: 100%;
        text-align: center;
        /* Center text */
    }


    .who-content,
    .who-image {
        width: 100%;
        text-align: center;
        /* Center text */
    }

    .logo-wrapper {
        display: flex;
        justify-content: center;
        /* Center logo */
        margin-bottom: 25px;
    }

    .logo-img {
        height: 50px;
        /* Slightly larger logo for mobile presence */
        width: auto;
    }

    /* Fix Hero Typography for Mobile */
    #hero h1 {
        font-size: 2rem;
        /* Better size for mobile */
        line-height: 1.3;
        margin-bottom: 25px;
        max-width: 100%;
    }

    .hero-desc {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto 30px;
        /* Center and add space */
    }

    .btn-primary {
        display: inline-block;
        /* revert to block-ish but centered */
        width: auto;
        /* not full full width */
        min-width: 200px;
        margin: 0 auto;
        font-size: 1rem;
        padding: 18px 40px;
    }

    .hero-image-wrapper {
        margin-top: 20px;
        height: auto;
        overflow: visible;
        display: flex;
        /* Ensure centering */
        justify-content: center;
        margin-bottom: 0;
        /* Remove negative margin */
    }

    .hero-img-real {
        width: 120%;
        /* Make it slightly larger to fill width nicely */
        max-width: 450px;
        margin-left: -10%;
        /* Recenter if width > 100% or just use defaults */
        /* Actually stick to 100% max for safety to avoid scrollbars */
        width: 100%;
        margin-left: 0;
        height: auto;
    }

    /* Card Grids Stacking */
    .steps-grid,
    .services-grid {
        flex-direction: column;
        align-items: center;
        /* Center cards */
        width: 100%;
    }

    .step-card,
    .service-card {
        width: 100%;
        /* Full width cards */
        max-width: 320px;
        /* But not too wide */
        margin-bottom: 20px;
        height: auto;
        /* Allow content to dictate height if needed */
        min-height: 280px;
    }

    .services-grid {
        flex-wrap: nowrap;
        /* We are stacking them */
    }

    /* Who Can Be Section */
    .who-image {
        height: 250px;
        /* Smaller image height */
        margin-top: 30px;
    }

    .who-content .section-title {
        text-align: center;
    }

    /* Registration */
    #cadastro {
        flex-direction: column;
        margin-bottom: 0;
        min-height: auto;
        padding: 40px 0 0;
        /* Remove bottom padding to merge with footer */
    }

    .cadastro-container {
        border-radius: 0;
        /* Full width approach often looks better or keep rounded */
        box-shadow: none;
        /* Lighter on mobile */
        max-width: 90%;
    }

    .cadastro-info,
    .cadastro-form-wrapper {
        padding: 40px 20px;
        /* Reduced padding */
    }

    .cadastro-info h2 {
        font-size: 1.8rem;
    }

    /* Footer */
    #main-footer {
        padding-top: 50px;
        /* Reduced since no float overlap */
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 30px;
    }

    .footer-col {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Extra Small Devices (Phones under 480px) */
@media (max-width: 480px) {
    #hero h1 {
        font-size: 1.8rem;
    }

    .bold-large {
        font-size: 2.5rem;
        /* Drastically reduce big decorative text */
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-primary {
        width: 100%;
        /* Full width button */
        padding: 15px 20px;
        font-size: 1rem;
        text-align: center;
    }
}

/* --- Visual Vibrancy Animations --- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 179, 46, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(99, 179, 46, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 179, 46, 0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-img-real {
    animation: fadeInUp 1s ease-out 0.2s backwards;
    /* Slight delay */
}

/* Staggered animation for step cards */
.step-card {
    animation: fadeInUp 0.8s ease-out backwards;
}

.step-card:nth-child(1) {
    animation-delay: 0.2s;
}

.step-card:nth-child(2) {
    animation-delay: 0.4s;
}

.step-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* Add pulse to primary button */
.btn-primary {
    animation: pulse-glow 2.5s infinite;
}

/* --- Elaborate Footer Styles --- */
#main-footer {
    background-color: #1a3c0e;
    /* Darker than dark-green */
    color: white;
    padding: 180px 0 20px;
    /* Increased top padding for overlap */
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-green);
    text-transform: uppercase;
    font-weight: 800;
}

.branding-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    margin-top: 15px;
}

.footer-logo {
    height: 35px;
    filter: brightness(0) invert(1);
    /* Make logo white */
}

.links-col ul {
    list-style: none;
}

.links-col li {
    margin-bottom: 10px;
}

.links-col a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.links-col a:hover {
    color: var(--primary-green);
    padding-left: 5px;
    /* Slight movement on hover */
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
}

.contact-email {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #888;
}

/* --- Success Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    width: 600px;
    max-width: 90%;
    height: 350px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-left {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.modal-left h2 {
    font-size: 1.8rem;
    color: #000;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 800;
}

.modal-left p {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.modal-right {
    flex: 0.8;
    background-color: var(--primary-green);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Constructing the 3D Checkmark Button Check */
.success-icon-wrapper {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #4ed164 0%, #2f9e44 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 5px 10px rgba(255, 255, 255, 0.4),
        inset 0 -5px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.success-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: -1;
}

.modal-right::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    transform: skewX(-15deg);
    top: 0;
    left: -50%;
}

.modal-right i {
    font-size: 4rem;
    color: white;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

@media (max-width: 600px) {
    .modal-content {
        flex-direction: column;
        height: auto;
        width: 90%;
    }

    .modal-right {
        padding: 40px;
    }
}

/* --- Partners Section --- */
#partners {
    padding: 60px 0;
    background-color: #f5f5f7;
    text-align: center;
}

#partners .section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-top: -30px;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

/* Carousel Container */
.carousel-container {
    width: 100%;
    overflow: hidden;
    /* Hide the scrollbar */
    position: relative;
}

.carousel-track {
    display: flex;
    width: calc(200px * 15 + 40px * 15);
    /* 15 Items (3 sets of 5) * (width + gap) */
    animation: scroll 30s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move by 1 set width: 5 items * (200px + 40px gap) = 1200px */
        /* But we need to be precise. 5 items * (200 + 40) = 1200px */
        transform: translateX(calc(-200px * 5 - 40px * 5));
    }
}

.partner-slide {
    width: 200px;
    height: 100px;
    flex-shrink: 0;
    margin-right: 40px;
    /* Gap */
    background: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.partner-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-slide:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    filter: grayscale(0%);
    opacity: 1;
    z-index: 2;
}

@media (max-width: 768px) {
    .partners-grid {
        gap: 20px;
    }

    .partner-logo {
        padding: 15px 30px;
        font-size: 1rem;
        width: 45%;
        justify-content: center;
    }
}

/* --- Utility Classes --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Back to Top Button --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-green);
    color: white;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--dark-green);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Login Button & Modal --- */
/* Top header Bar */
.hero-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    /* Space between header and content */
}

/* Updated Login Button Styles (No Absolute) */
.login-btn-header {
    position: relative;
    /* Changed from absolute */
    top: auto;
    right: auto;
    margin-right: 0;
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    /* Flex to align icon */
    align-items: center;
    gap: 8px;
}

/* Ensure Logo wrapper resets margins if needed */
.logo-wrapper {
    margin-bottom: 0px;
    /* Removed bottom margin since it's in top bar now */
}

/* Hero Body Container (Text + Image) */
.hero-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-container {
    display: flex;
    /* Keep flex */
    flex-direction: column;
    /* Change to column to stack TopBar and Body */
}

/* Keep previous content styles */
.login-btn-header i {
    font-size: 1.1rem;
}

.login-btn-header:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 179, 46, 0.2);
}

.login-content {
    flex-direction: column !important;
    /* Force column layout */
    width: 400px !important;
    /* Specific width */
    max-width: 90%;
    height: auto !important;
    padding: 40px !important;
    text-align: center;
    border-radius: 20px;
}

.modal-header-login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.modal-header-login h2 {
    font-size: 1.5rem;
    color: var(--dark-green);
    margin: 0;
    text-align: left;
}

.modal-header-login .close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.btn-full-width {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .hero-top-bar {
        margin-bottom: 20px;
    }

    .hero-body {
        flex-direction: column-reverse;
        /* Or normal column depending on desired image placement */
    }

    .login-btn-header {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}