/* --------------GLOBALS AND RESETS-------------------------*/
:root
{
    /*Brand*/
    --green:#1f7a4d;
    --green-dark:#145c38;
    --green-light:#e8f5ee;
    
    /*Neutral*/
    --text:#1b1b1b;
    --muted:#6b7280;
    --white:#ffffff;
    --background:#f7faf8;
    
    --success:#22c55e;
    --warning:#f59e0b;
    --danger:#ef4444;
    
    --shadow:0 10px 30px rgba(0,0,0,0.08);
    --font-main:Inter, sans-serif;
}
*,*::before, *::after {margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{background:var(--background);color:var(--text);font-family:var(--font-main);}
.maincontent{flex:1;padding:20px;}

/* --------------HEADER STYLES-------------------------*/
header
{
    background:var(--white);
    box-shadow:var(--shadow);
    position:sticky;
    top:0;
    z-index:1000;
}
.navbar
{
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 20px;
}
.logo
{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size:20px;
    font-weight:700;
    color:var(--green);
}
.logo img
{
    height: 40px;
    width: auto;
    display: block;
}
.hamburger
{
    display:none;
    flex-direction:column;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
}
.hamburger span
{
    width:28px;
    height:3px;
    background:var(--green);
    border-radius:2px;
}
.nav-links
{
    display:flex;
    align-items: center;
    gap:20px;
}
.nav-links a
{
    text-decoration:none;
    color:var(--text);
    font-weight:500;
}
.nav-links a:hover {color:var(--green);}
.user-menu{position:relative;}
.profile-btn
{
    background:none;
    border:none;
    cursor:pointer;
    font-weight:600;
    color:var(--text);
    font-size:15px;
}
.profile-dropdown
{
    display:none;
    position:absolute;
    right:0;
    top:45px;
    background:var(--white);
    min-width:160px;
    box-shadow:var(--shadow);
    border-radius:8px;
    overflow:hidden;
    z-index:2000;
}
.profile-dropdown a
{
    display:block;
    padding:12px 16px;
    text-decoration:none;
    color:var(--text);
}
.profile-dropdown a:hover
{
    background:var(--green-light);
    color:var(--green-dark);
}
.profile-dropdown.active{display:block;}

@media (max-width:768px)
{
    .hamburger
    {
        display:flex;
        flex-direction:column;
        gap:5px;
        background:none;
        border:none;
        cursor:pointer;
    }
    .nav-links
    {
        display:none;
        position:absolute;
        top:70px;
        left:0;
        width:100%;
        background:white;
        flex-direction:column;
        gap:0;
        box-shadow:var(--shadow);
    }
    .nav-links a, .nav-links button
    {
        padding:16px;
        width:100%;
        text-align:center;
        border-bottom:1px solid #eee;
    }
    .nav-links.active { display:flex; }
    .user-menu{position:relative; width:auto;}
    .profile-dropdown
    {
        position:absolute;
        top:45px;
        right:0;
        width:180px;
    }
}
/*----------------SIDE MENU-----------------*/

.layout
{
    display:flex;
    min-height:100vh;
}
.sidebar
{
    width:260px;
    background:#1f2937;
    color:white;
    padding:20px 0;
}
.sidebar-logo
{
    text-align:center;
    padding:20px 15px;
    border-bottom:1px solid rgba(255,255,255,.1);
    margin-bottom:10px;
}
.logo-circle
{
    width:120px;
    height:120px;
    border-radius:50%;
    overflow:hidden;
    margin:0 auto 10px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
}

.logo-circle img
{
    width:100%;
    height:100%;
    object-fit:cover;
}
.sidebar-logo h3
{
    margin:0;
    color:#fff;
    font-size:16px;
    font-weight:600;
    letter-spacing:.5px;
}
.sidebar-logo small
{
    display:block;
    color:#9ca3af;
    margin-top:5px;
}
.sidebar-menu
{
    list-style:none;
    margin:0;
    padding:0;
}
.sidebar-menu a,.submenu-toggle
{
    display:block;
    width:100%;
    text-align:left;
    padding:12px 20px;
    color:white;
    background:none;
    border:none;
    cursor:pointer;
    text-decoration:none;
}
.sidebar-menu a:hover, .submenu-toggle:hover{background:#374151;}
.submenu
{
    display:none;
    list-style:none;
    padding:0;
    margin:0;
    background:#111827;
}
.submenu a{padding-left:40px;}
.menu-group.active .submenu{display:block;}

/*----------------BUTTONS-----------------*/
.btn
{
    padding:12px 24px;
    border-radius:8px;
    font-weight:600;
    font-size:15px;
    cursor:pointer;
    transition:all .2s ease;
}
.btn-primary        {background:var(--green); color:white;  border:2px solid var(--green);}
.btn-primary:hover  {background:var(--green-dark);border-color:var(--green-dark);}
.btn-secondary      {background:var(--green-light); color:var(--green-dark); border:2px solid var(--green-light); }
.btn-secondary:hover{background:var(--white);border-color:var(--green);color:var(--green);}

.label 
{
    display: inline-block;
    background: var(--green-light);
    color: var(--green-dark);
    border-radius: 20px;
}
.badge 
{
    padding: 5px 10px;
    font-size: 12px;
    margin-bottom: 10px;
}
.badge-lg { padding: 10px 15px; }

/*----------------SECTIONS AND CONTAINERS-----------------*/
section
{
    scroll-margin-top:80px;
    padding:80px 20px;
}
.section-title
{
    text-align:center;
    margin-bottom:40px;
}
.section-title h2
{
    font-size:32px;
    color:var(--green-dark);
}
.section-title p
{
    color:var(--muted);
}
.container
{
    max-width:1200px;
    margin:auto;
}

/* --------------------------------------------GRID SECTION--------------------------------------------*/
.grid 
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--grid-min, 250px), 1fr));
    gap: 20px;
}
.card
{
    background:white;
    border-radius:12px;
    box-shadow:var(--shadow);
}
.card-img { overflow:hidden; }
.card-img img
{
    width:100%;
    height:180px;
    object-fit:cover;
}
.contentleft{ padding:15px; text-align: left;}
.contentcenter { padding:20px; text-align:center; }
.card h2 { color:var(--green); font-size:28px; }
.card h3 { color:var(--green); margin-bottom:10px; }
.card p{ font-style:italic; color:var(--muted); }
/* --------------------------------------------CAROUSEL SECTION--------------------------------------------*/
.carousel-wrapper
{
    position: relative;
    display: flex;
    align-items: center;
}
.carousel 
{
    display:flex;
    gap:20px;
    overflow-x:auto;
    scroll-behavior:smooth;
    scroll-snap-type:x mandatory;
    padding:10px;
    scrollbar-width:none;
    width:100%;
}
.carousel .card 
{
    flex:0 0 280px;
    scroll-snap-align:start;
}
.carousel::-webkit-scrollbar {display:none;}
.carousel-btn {
    position:absolute;
    z-index:2;
    background:var(--green);
    color:white;
    border:none;
    width:40px;
    height:40px;
    border-radius:50%;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}
.carousel-btn.left {left:10px;}
.carousel-btn.right {right:10px;}

/*-----------------------------------------------------------------------------------------------------*/
/* --------------------------------------------HERO SECTION--------------------------------------------*/
.hero
{
    background:linear-gradient(rgba(31,122,77,0.85), rgba(31,122,77,0.85)),
    url('https://images.unsplash.com/photo-1560518883-ce09059eeffa') center/cover;
    color:white;
    padding:100px 20px;
    text-align:center;
}
.hero h1{ font-size:42px; margin-bottom:15px; }
.hero p
{
    font-size:18px;
    max-width:700px;
    margin:auto;
    opacity:0.95;
}
.hero .cta{margin-top:25px;}

/*^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/





/* AREAS */
.areas{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
}



/* MARKET INSIGHTS */
.insights{
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:var(--shadow);
}

/* LOGIN MODAL */
.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    justify-content:center;
    align-items:center;
}

.modal-content{
    background:white;
    padding:30px;
    border-radius:12px;
    width:350px;
}

.modal-content input{
    width:100%;
    padding:10px;
    margin:10px 0;
    border:1px solid #ddd;
    border-radius:8px;
}

.close{
    float:right;
    cursor:pointer;
    font-size:20px;
}

/* FOOTER */
footer{
    background:var(--green-dark);
    color:white;
    text-align:center;
    padding:30px;
    margin-top:60px;
}