:root {
  --menuBgColorScroll:#48db48;
  --menuChildBgColor:#f8ef6e;
 
}


/* ================================
   RESET
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f8;
}


/* ================================
   NAVBAR
================================ */

.navbar {
    width: 100%;
    background: transparent;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: background-color .35s ease, box-shadow .35s ease;
}

/* Brown background after scrolling */
.navbar.scrolled {
    background: var(--menuBgColorScroll);
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
}

.nav-container {
    max-width: 100%;
    height: 70px;
    margin: auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ================================
   LOGO
================================ */

.logo {
    color: white;
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
}


/* ================================
   MAIN MENU
================================ */

.nav-menu {
    list-style: none;

    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;
    font-weight: bold;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;

    color: rgb(14, 13, 13);
    text-decoration: none;

    padding: 25px 18px;

    cursor: pointer;

    transition: .3s;
}

.nav-link:hover {
    background: var(--menuChildBgColor);
}


/* ================================
   MEGA MENU DESKTOP
================================ */

.mega-menu {

    position: absolute;

    top: 70px;
    left: 50%;

    width: auto;

    background: white;

    padding: 20px;

    box-shadow: 0 15px 40px rgba(0,0,0,.18);

    border-radius: 0 0 10px 10px;

    opacity: 0;
    visibility: hidden;

    transform: translate(-50%, 15px);

    transition: .3s ease;
}

.nav-item.active .mega-menu {

    opacity: 1;
    visibility: visible;

    transform: translate(-50%, 0);
}


/* ================================
   MEGA GRID
================================ */

.mega-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 30px;
}


/* ================================
   MEGA COLUMN
================================ */

.mega-column h3 {

    color: #111827;

    font-size: 17px;

    margin-bottom: 15px;

    padding-bottom: 8px;

    border-bottom: 2px solid #e5e7eb;
}

.mega-column a {

    display: block;

    color: #555;

    text-decoration: none;

    padding: 8px 0;

    transition: .2s;
}

.mega-column a:hover {

    color: #2563eb;

    padding-left: 6px;
}


/* ================================
   NORMAL DROPDOWN
================================ */

.dropdown {

    position: absolute;

    top: 70px;
    left: 0;

    width: 230px;

    background: white;

    box-shadow: 0 15px 35px rgba(0,0,0,.15);

    border-radius: 0 0 8px 8px;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition: .3s;
}

.nav-item.active .dropdown {

    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.dropdown a {

    display: block;

    padding: 14px 18px;

    color: #333;

    text-decoration: none;
}

.dropdown a:hover {

    background: #f3f4f6;

    color: #2563eb;
}


/* ================================
   HAMBURGER
================================ */

.menu-toggle {

    display: none;

    width: 32px;
    height: 26px;

    cursor: pointer;

    flex-direction: column;

    justify-content: space-between;
}

.menu-toggle span {

    width: 100%;
    height: 3px;

    background: white;

    border-radius: 5px;

    transition: .3s;
}


/* HAMBURGER ANIMATION */

.menu-toggle.active span:nth-child(1) {

    transform:
        translateY(11px)
        rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {

    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {

    transform:
        translateY(-11px)
        rotate(-45deg);
}


/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {


    /* NAV CONTAINER */

    .nav-container {

        height: 65px;

        padding: 0 18px;
    }


    /* HAMBURGER */

    .menu-toggle {

        display: flex;
    }


    /* MAIN MOBILE MENU */

    .nav-menu {

        position: absolute;

        top: 65px;
        left: 0;

        width: 100%;

        display: block;

        background: rgba(17, 24, 39, .97);

        max-height: 0;

        overflow: hidden;

        transition:
            max-height .5s ease;
    }


    .nav-menu.active {

        max-height:
            calc(100vh - 65px);

        overflow-y: auto;
    }


    /* MENU ITEM */

    .nav-item {

        width: 100%;

        border-top:
            1px solid
            rgba(255,255,255,.08);
    }


    /* MENU LINK */

    .nav-link {

        width: 100%;

        padding: 17px 20px;

        color: white;
    }


    /* ================================
       MOBILE MEGA MENU
    ================================ */

    .mega-menu {

        position: static !important;

        left: auto !important;
        top: auto !important;

        width: 100% !important;

        display: block;

        padding: 0 20px !important;

        background: #1f2937;

        border-radius: 0;

        box-shadow: none;

        opacity: 1 !important;

        visibility: visible !important;

        transform: none !important;

        max-height: 0;

        overflow: hidden;

        transition:
            max-height .5s ease;
    }


    /* OPEN MEGA MENU */

    .nav-item.active .mega-menu {

        max-height: 1500px;
    }


    /* ================================
       MEGA GRID MOBILE
    ================================ */

    .mega-grid {

        display: grid;

        grid-template-columns: 1fr;

        gap: 0;

        padding: 10px 0 20px;
    }


    /* ================================
       MEGA COLUMN
    ================================ */

    .mega-column {

        padding: 15px 0;

        border-bottom:
            1px solid
            rgba(255,255,255,.1);
    }

    .mega-column:last-child {

        border-bottom: none;
    }


    .mega-column h3 {

        color: white;

        font-size: 16px;

        margin-bottom: 8px;

        border: none;
    }


    .mega-column a {

        color: #d1d5db;

        padding: 9px 0;
    }

    .mega-column a:hover {

        color: #60a5fa;

        padding-left: 5px;
    }


    /* ================================
       MOBILE NORMAL DROPDOWN
    ================================ */

    .dropdown {

        position: static !important;

        width: 100% !important;

        background: #1f2937;

        box-shadow: none;

        border-radius: 0;

        opacity: 1 !important;

        visibility: visible !important;

        transform: none !important;

        max-height: 0;

        overflow: hidden;

        transition:
            max-height .4s ease;
    }


    .nav-item.active .dropdown {

        max-height: 500px;
    }


    .dropdown a {

        color: #ddd;

        padding:
            14px 35px;
    }

}


/* ================================
   VERY SMALL MOBILE
================================ */

@media (max-width: 400px) {

    .logo {
        font-size: 21px;
    }

    .nav-link {
        padding:
            16px 18px;
    }

    .mega-menu {
        padding:
            0 18px !important;
    }

}


/* ================================
   DEMO PAGE CONTENT
================================ */

.hero-demo {
    min-height: 100vh;
    padding: 120px 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background:
        linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.42)),
        linear-gradient(135deg, #8b5e3c, #1f2937);
}

.hero-demo h1 {
    font-size: clamp(38px, 7vw, 78px);
    margin-bottom: 16px;
}

.hero-demo p {
    font-size: 20px;
}

.content-demo {
    padding: 80px 20px;
    max-width: 1200px;
    margin: auto;
}

.content-demo h2 {
    margin-bottom: 15px;
}

.demo-space {
    height: 1000px;
}

.itemMiddle{
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
}
.imgLogo{
    padding-top: 18px;
    width: 150px;
    height: 100px;
}