@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

/* --- Base --- */
body {
    margin: 0;
    background: #ffffff;
    color: #0a1e1a;
}

.latest-articles-section {
    margin-top: 150px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

.scrolled {
    .header-container {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        padding: 0 1rem;
        margin-top: 12px;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
}

.header-container {
    max-width: 1275px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



/* --- Menu --- */
.nav {
    width: 50%;
    flex-direction: row-reverse;
}

.menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    float: right;
}

.menu-item {
    position: relative;
}

.menu-item a {
    transition: color 0.3s ease;
    font-size: 16px;
    /* color: #03140F99; */
    font-family: 'Bricolage Grotesque';
    font-weight: 400;
    margin-right: 8px;
}

.menu-item a:hover {
    color: #00a676;
}

/* --- Dropdown --- */
.offerings-drop {
    width: 774px;
    height: auto;
    border-radius: 12px;
    padding: 32px;
    position: absolute;
    top: 86px;
    left: 30%;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.drop-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(294px, 1fr));
    gap: 10px;
    align-items: start;
}

.sub-menu-box {
    padding: 15px;
    align-items: center;
    display: flex;
}

.sub-menu-box:hover {
    background: #082F25;
    border-radius: 12px;

    .sun-menu-content-box {

        .sub-title,
        p {
            color: #fff;
        }
    }
}

.sub-menu-icon-box {
    border-radius: 9.82px;
    padding: 8px;
    background: #3BCE5B;
    margin-right: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .sub-menu-icon-box {
    border-radius: 9.82px;
    padding: 8px;
    background: #3BCE5B;
    margin-right: 12px;
    width: 41px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
} */

.sun-menu-content-box {
    .sub-title {
        font-weight: 500;
        font-size: 20px;
        color: #202532;
        font-family: 'Bricolage Grotesque';
    }

    p {
        font-size: 14px;
        color: #03140F99;
        font-family: Figtree;
        font-weight: 400;
        margin: 0;
    }
}

/* --- Buttons --- */
.btn {
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background: #00a676;
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: #007f59;
}

/* --- Mobile Menu --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #0a1e1a;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.3s ease;
    padding: 2rem;
    z-index: 999;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
}

.mobile-menu ul li {
    margin-bottom: 1rem;
}

.mobile-menu a {
    font-size: 1.1rem;
    color: #0a1e1a;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #0a1e1a;
    float: right;
    cursor: pointer;
}

.btn.orange_btn {
    background-color: #EFA145 !important;
    padding: 14px 20px;
    color: #fff !important;
    font-weight: 500;
    font-family: 'Bricolage Grotesque';
    font-size: 16px;
    margin-right: 22px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

li.menu-item.dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
}

a.menu-anchor {
    color: #000000;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    font-family: 'Bricolage Grotesque';
    font-weight: 500;
}

ul.anchor-dropdown-menu {
    list-style: none;
    margin-top: 14px;
}

.menu-show {
    width: 100%;
    min-height: 50px;
}

ul.anchor-dropdown-menu {
    list-style: none;
    margin-top: 14px;
    display: none;

    .anchor-dropdown-item {
        color: #000000;
        display: flex;
        text-decoration: none;
        font-family: 'Bricolage Grotesque';
        font-weight: 500;
        margin-bottom: 16px;
    }
}

/* .menu-show-dropdown .arrow_icon img {
  transition: transform 0.3s ease;
}

.menu-show-dropdown.active .arrow_icon img {
  transform: rotate(180deg);
}

.anchor-dropdown-menu {
  display: none;
} */


.anchor-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  opacity: 0;
}

.menu-show-dropdown.active .anchor-dropdown-menu {
  max-height: 500px; /* enough height to cover items */
  opacity: 1;
}

/* Rotate arrow */
.menu-show-dropdown .arrow_icon img {
  transition: transform 0.3s ease;
}

.menu-show-dropdown.active .arrow_icon img {
  transform: rotate(180deg);
}




/* Modal */
/* Float cancel and delete buttons and add an equal width */
.cancelbtn,
.deletebtn {
    float: left;
    width: 50%;
}

/* Add a color to the cancel button */
.cancelbtn {
    background-color: #ccc;
    color: black;
}

/* Add a color to the delete button */
.deletebtn {
    background-color: #f44336;
}

/* Add padding and center-align text to the container */
.modal-container {
    padding: 24px;
    gap: 24px;
    display: flex;
    flex-direction: column;

    .tabline {
        font-family: 'Bricolage Grotesque';
        font-size: 20px;
        font-weight: 700;
    }

    .text-green {
        --tw-text-opacity: 1 !important;
        color: rgb(59 206 91/var(--tw-text-opacity, 1)) !important;
    }
}

.nav-wrapper {
  max-height: 60vh;   /* set limit (adjust as needed) */
  overflow-y: auto;
  overflow-x: hidden;
}

.anchor-dropdown-menu {
  max-height: 250px;   /* adjust */
  overflow-y: auto;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    /* left: 0; */
    /* top: 0; */
    width: 100%;
    /* height: 100%; */
    overflow: auto;
    padding-top: 50px;
    backdrop-filter: blur(8px);
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 0% 8% 15% auto;
    border: 1px solid #888;
    width: 75%;
    height: 88vh;
    border-radius: 12px;
}


/* The Modal Close Button (x) */
.close {
    position: absolute;
    left: 25px;
    top: 60px;
    font-size: 40px;
    font-weight: bold;
    color: #f1f1f1;
}

.close:hover,
.close:focus {
    color: #f44336;
    cursor: pointer;
}

/* Clear floats */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Change styles for cancel button and delete button on extra small screens */
@media screen and (max-width: 300px) {

    .cancelbtn,
    .deletebtn {
        width: 100%;
    }
}

.mobile-logo,
.mobile-slogan {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 992px) {

    .nav,
    .desktop-logo {
        display: none;
    }

    .mobile-logo,
    .mobile-slogan {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu .btn {
        display: block;
        margin-top: 1rem;
    }
}