/* Navbar */

.navbar {
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
}

.hamburger {
    width: 50px;
    height: 11px;
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    text-align: right;
    align-items: flex-end;
    position: relative;
    z-index: 9999;
}

.hamburger span {
    height: 2px;
    width: 100%;
    background: #fff;
}

.hamburger span:nth-child(2) {
    width: 70%;
}


/* Mega Menu */

.mega-menu {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at right bottom, #DB4A2B 0%, #000 55%);
    color: #fff;
    z-index: 100;
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
}

.menu-wrapper {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 80px;
}


/* Menu List */

.menu-list {
    list-style: none;
}

.menu-list li {
    font-size: 4em;
    font-weight: 400;
    margin-bottom: 24px;
    cursor: pointer;
    color: #fff;
}

.middle-nav li a {
    font-weight: 400;
    font-size: 1em;
}


/* Preview */

.menu-preview {
    position: relative;
}

.menu-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.4s ease;
}

.preview-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    opacity: 0.7;
}


/* Close */

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    font-size: 5em;
    color: #fff;
    cursor: pointer;
    transition: all 0.4s ease;
}

.close:hover {
    transform: rotate(90deg) scale(1.15);
}

.navbar {
    padding: 0 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    z-index: 99;
    transition: 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
    align-items: center;
}

.right-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.middle-nav ul {
    display: flex;
    gap: 40px;
}


/* NAVBAR */

.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 25px 0;
    z-index: 100;
    background: transparent;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.navbar.bgcolor {
    background: #1A2339;
    background: linear-gradient(188deg, rgb(0 0 0) 0%, rgb(0 0 0 / 77%) 43%, rgb(0 0 0 / 70%) 100%);
    padding: 0 0;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 0px 50px #00000015;
    padding: 25px 0;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
}

.header-container {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.middle-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.middle-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    display: inline-block;
}


/* ARROW */

.arrow {
    margin-left: 6px;
    transition: transform 0.3s ease;
}


/* SERVICES MEGA (DESKTOP) */

.has-services {
    position: relative;
}

.services-mega {
    position: fixed;
    /* important */
    top: 80px;
    /* navbar height */
    left: 0;
    width: 100vw;
    background: var(--bg-color);
    padding: 80px 0;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}

.services-inner {
    max-width: 1700px;
    margin: 0 auto;
    width: 90%;
}

.services-grid {
    display: grid;
    gap: 60px;
}

.services-col h4 {
    font-size: 12px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.services-col a {
    display: block;
    margin-bottom: 14px;
    font-size: 16px;
}


/* MOBILE NAV SLIDE DOWN (NO HAMBURGER PANEL) */


/* ============================= */

@media (max-width: 991px) {
    /* show middle nav container in mobile (we will animate height) */
    #mobileNav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: #000;
        z-index: 999;
        overflow: scroll;
        /* important for slide */
        height: 0;
        /* closed by default */
       
    }
    #mobileNav ul {
        flex-direction: column;
        gap: 0;
         padding: 150px 0 0;
    }
    #mobileNav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    #mobileNav li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 24px;
        font-size: 1.8em;
        color: #fff;
    }
    /* hamburger morph to X */
    .hamburger span {
        transition: transform 0.35s ease, width 0.35s ease;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(2px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        transform: translateY(-5px) rotate(-45deg);
        width: 100%;
    }
    .services-mega {
        position: relative;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: 0;
        overflow: hidden;
        padding: 0 24px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 0;
    }
}

.arrow {
    display: inline-block;
    margin-left: 5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--brand-color);
    /* filled arrow color */
    vertical-align: middle;
}

.mega-container {
    display: grid;
    grid-template-columns: 25% 75%;
    gap: 50px;
}


/* LEFT */

.mega-left h2 {
    font-size: 3em;
    font-weight: 400;
    line-height: 1;
    margin: 0 0 40px 0;
}

.mega-link {
    display: inline-block;
    margin-top: 40px;
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
}

.mega-link:hover {
    opacity: 1;
}


/* RIGHT */

.mega-right {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mega-col h4 {
    font-size: 1.4em;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.mega-col ul {
    list-style: none;
    display: block;
}

.mega-col li a {
    font-size: 0.9em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 0 2px 0;
    letter-spacing: -1px;
}

.mega-col li a:hover { 
    color: #DB4A2B;
   
}


/* RESPONSIVE */

@media (max-width: 1200px) {
    .mega-container {
        grid-template-columns: 1fr;
    }
    .mega-right {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mega-menu {
        padding: 40px 30px;
    }
    .mega-right {
        grid-template-columns: 1fr;
    }
}

.mega-col {
    margin: 0 0 25px 0;
}


/* LAYOUT */

.impact-wrapper {
    display: grid;
    grid-template-columns: 50% 50%;
    height: 100%;
    max-width: 1300px;
    margin: 100px auto;
    align-items: flex-start;
    gap: 100px;
}


/* LEFT */

.impact-left {
    position: relative;
}

.impact-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
}

.impact-panel.active {
    opacity: 1;
    visibility: visible;
}

.impact-panel h2 {
    font-size: 3em;
    font-weight: 200;
    margin-bottom: 20px;
}

.impact-panel p {
    max-width: 600px;
    font-size: 1.5em;
    line-height: 1.3;
    opacity: 0.85;
    margin: 0 0 40px 0;
}


/* STATS */

.impact-stats {
    display: flex;
    gap: 80px;
    margin: 60px 0;
}

.impact-stats h3 {
    font-size: 1.6em;
    font-weight: 500;
    color: #fff;
}

.impact-stats span {
    font-size: 13px;
    opacity: 0.7;
    display: block;
    margin-top: 8px;
}


/* BUTTON */

.impact-btn {
    display: inline-block;
    padding: 14px 26px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    text-decoration: none;
    margin-top: 20px;
}


/* RIGHT MENU */

.impact-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.impact-menu li {
    font-size: 2.7em;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: color 0.3s ease;
}

.impact-menu li.active,
.impact-menu li:hover {
    color: #fff;
}


/* LEFT CARD */

.featured-card {
    display: flex;
    gap: 50px;
}

.featured-sec-left {
    width: 100%;
}

.featured-image {
    height: 400px;
    position: relative;
    overflow: hidden;
    margin: 0 0 20px 0;
    width: 100%;
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 14px;
    opacity: 0.7;
}

.featured-card h2 {
    font-size: 1.6em;
    line-height: 1.3;
    max-width: 400px;
    opacity: 0.8;
    margin: 20px 0;
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    width: fit-content;
}

.explore-link span {
    transition: transform 0.3s ease;
}

.explore-link:hover span {
    transform: translateX(5px);
}


/* RIGHT LIST */

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 50%;
}

.blog-item {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.meta {
    font-size: 14px;
    opacity: 0.6;
    display: block;
    margin-bottom: 8px;
}

.blog-item h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
}


/* BUTTON */

.btn-outline {
    margin-top: 20px;
    padding: 14px 24px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
}


/* RESPONSIVE */

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
    .featured-image {
        height: 240px;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .mega-col ul {
        display: block !important;
    }

    .mega-col h4 {
        cursor: default;
    }
}

/* Mobile Accordion */
@media (max-width: 991px) {

    .mega-right {
        width: 100%;
    }

    .mega-set {
        display: block;
    }

    .mega-col {
        border-bottom: 1px solid rgba(255,255,255,.12);
        margin: 0 0 0 0;
    }

    .mega-col h4 {
        margin: 0;
        padding: 16px 40px 16px 0;
        position: relative;
        cursor: pointer;
        font-size: 16px;
    }
.mega-col h4 span {
    display: none;
}
    .mega-col h4::after {
        content: "+";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 22px;
        transition: .3s;
    }

    .mega-col.active h4::after {
        content: "−";
    }

    .mega-col ul {
        display: none;
        padding: 0 0 15px;
        margin: 0;
    }

    .mega-col ul li {
        margin: 0;
    }

    .mega-col ul li a {
        display: block;
        padding: 10px 0;
    }
}