/* --- Global Styles & UI Redesign --- */

:root {
    --g-primary-color: #2a6f47; /* A rich, natural green */
    --g-secondary-color: #f2a900; /* A warm, golden accent */
    --g-light-bg: #f9f9f9;
    --g-dark-text: #333;
    --g-light-text: #666;
    --g-white: #fff;
    --g-border: #e0e0e0;
    --g-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --g-font-family: 'Poppins', sans-serif; /* Assuming Poppins is available via fonts.css */
}

body {
    font-family: var(--g-font-family);
    color: var(--g-dark-text);
    background-color: var(--g-white);
}

/* Scroll-triggered fade-in animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header & Navigation --- */
.header-default {
    background-color: var(--g-white);
    box-shadow: var(--g-shadow);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-default .logo {
    max-height: 45px;
    width: auto;
}

.header-default .box-navigation .box-nav-ul .menu-item > .item-link {
    font-weight: 600;
    color: var(--g-dark-text);
    padding: 15px 20px;
    text-transform: capitalize;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.header-default .box-navigation .box-nav-ul .menu-item > .item-link:hover,
.header-default .box-navigation .box-nav-ul .menu-item.current-menu-item > .item-link {
    color: var(--g-primary-color);
}

.header-default .box-navigation .box-nav-ul .menu-item > .item-link .icon {
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Mega Menu */
.mega-menu {
    border-top: 3px solid var(--g-primary-color);
    box-shadow: var(--g-shadow);
    border-radius: 0 0 8px 8px;
}

.mega-menu-item .menu-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--g-dark-text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--g-border);
}

.mega-menu-item .menu-list .menu-link-text {
    color: var(--g-light-text);
    transition: color 0.3s ease;
}

.mega-menu-item .menu-list .menu-link-text:hover {
    color: var(--g-primary-color);
}

/* Header Icons */
.header-default .nav-icon .nav-icon-item {
    color: var(--g-dark-text);
    transition: color 0.3s ease;
}

.header-default .nav-icon .nav-icon-item:hover {
    color: var(--g-primary-color);
}

.header-default .nav-icon .nav-icon-item .icon {
    stroke: var(--g-dark-text);
    transition: stroke 0.3s ease;
}

.header-default .nav-icon .nav-icon-item:hover .icon {
    stroke: var(--g-primary-color);
}

/* Language Selector */
.header-default .nav-icon .language-selector select {
    border: 1px solid var(--g-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 500;
    background-position: right 10px center;
    transition: border-color 0.3s ease;
}

.header-default .nav-icon .language-selector select:hover {
    border-color: var(--g-primary-color);
}

/* Account Dropdown */
.dropdown-account {
    border-top: 3px solid var(--g-primary-color);
    box-shadow: var(--g-shadow);
    border-radius: 8px;
    padding: 20px;
    width: 250px;
}

.dropdown-account .tf-btn {
    width: 100%;
    background-color: var(--g-primary-color);
    color: var(--g-white);
    font-weight: 600;
}
.dropdown-account .tf-btn:hover {
    background-color: #1e5234;
}

.dropdown-account p a {
    color: var(--g-primary-color);
    font-weight: 600;
}

/* --- General Page Title --- */
.page-title-section {
    background-color: var(--g-light-bg);
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid var(--g-border);
}

.page-title-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--g-dark-text);
}

.page-title-section .breadcrumb {
    justify-content: center;
    margin-top: 10px;
}

.page-title-section .breadcrumb-item a {
    color: var(--g-primary-color);
    text-decoration: none;
}

.page-title-section .breadcrumb-item.active {
    color: var(--g-light-text);
}

/* --- Footer --- */
.footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer .widget-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--g-white);
    margin-bottom: 25px;
}

.footer .widget-link ul li a {
    color: #ccc;
    transition: color 0.3s ease, padding-left 0.3s ease;
    position: relative;
}

.footer .widget-link ul li a:hover {
    color: var(--g-white);
    padding-left: 10px;
}

.footer .widget-link ul li a:before {
    content: '\f105'; /* FontAwesome right arrow */
    font-family: 'FontAwesome';
    position: absolute;
    left: -5px;
    opacity: 0;
    transition: opacity 0.3s ease, left 0.3s ease;
}

.footer .widget-link ul li a:hover:before {
    opacity: 1;
    left: 0;
}

.footer .widget-contact p, .footer .widget-contact a {
    color: #ccc;
}
.footer .widget-contact a:hover {
    color: var(--g-white);
}

.footer .bottom-bar {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Mobile Menu Redesign --- */
.offcanvas-mb {
    background-color: var(--g-white);
    transition: transform .4s ease-in-out;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

.offcanvas-mb .icon-close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--g-light-text);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.offcanvas-mb .icon-close-popup:hover {
    color: var(--g-dark-text);
    transform: rotate(90deg);
}

.mb-canvas-content {
    padding: 0;
}

.mb-canvas-header {
    padding: 20px;
    border-bottom: 1px solid var(--g-border);
}

.mb-canvas-header .logo {
    max-height: 40px;
    width: auto;
}

.mb-body {
    padding: 20px;
}

.mb-body .form-search {
    position: relative;
    margin-bottom: 25px;
}

.mb-body .form-search input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--g-border);
    border-radius: 25px;
    padding-left: 25px;
    padding-right: 55px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.mb-body .form-search input:focus {
    outline: none;
    border-color: var(--g-primary-color);
    box-shadow: 0 0 0 3px rgba(42, 111, 71, 0.2);
}

.mb-body .form-search button {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 38px;
    width: 38px;
    background: var(--g-primary-color);
    border-radius: 50%;
    color: var(--g-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mb-body .form-search button svg {
    stroke: var(--g-white);
    width: 20px;
    height: 20px;
}

.nav-ul-mb {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-ul-mb .nav-mb-item .mb-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--g-dark-text);
    text-decoration: none;
    border-bottom: 1px solid var(--g-border);
}

.nav-ul-mb .nav-mb-item .mb-menu-link .btn-open-sub {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
}

.nav-ul-mb .nav-mb-item .mb-menu-link .btn-open-sub::before {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--g-light-text);
}

.nav-ul-mb .nav-mb-item .mb-menu-link[aria-expanded="true"] .btn-open-sub {
    transform: rotate(45deg);
}

.sub-nav-menu {
    list-style: none;
    padding-left: 20px;
    background-color: var(--g-light-bg);
    margin: 0 -20px; /* Extend to edges */
}
.sub-nav-menu .sub-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 12px 0;
    color: var(--g-dark-text);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--g-border);
}
.sub-nav-menu .sub-menu-level-2 {
    padding-left: 20px;
}
.sub-nav-menu .sub-menu-level-2 .sub-nav-link {
    font-weight: 400;
    font-size: 0.95rem;
}

.mb-canvas-footer {
    padding: 20px;
    border-top: 1px solid var(--g-border);
    margin-top: 20px;
}
.mb-canvas-footer .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.mb-canvas-footer .social-links a {
    font-size: 20px;
    color: var(--g-light-text);
    transition: color 0.3s ease;
}
.mb-canvas-footer .social-links a:hover {
    color: var(--g-primary-color);
}
.mb-canvas-footer .copyright-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--g-light-text);
}

/* --- Responsive Design --- */

/* Large screens - Fine tuning */
@media (min-width: 1400px) {
    .container, .container-full {
        max-width: 1320px;
    }
}

/* Tablets & Smaller Desktops */
@media (max-width: 1199px) {
    .header-default .box-navigation .box-nav-ul .menu-item > .item-link {
        padding: 15px 10px;
        font-size: 0.95rem;
    }
    
    .page-title-section h1 {
        font-size: 2.5rem;
    }
}

/* Tablets */
@media (max-width: 991px) {
    .header-default {
        padding: 12px 0;
    }
    
    .header-default .mobile-menu {
        display: block;
        font-size: 24px;
        color: var(--g-dark-text);
    }
    
    .header-default .logo {
        max-height: 40px;
    }
    
    .page-title-section {
        padding: 40px 0;
    }
    
    .page-title-section h1 {
        font-size: 2.2rem;
    }
    
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer .widget-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
}

/* Mobile Phones */
@media (max-width: 767px) {
    .header-default {
        padding: 10px 0;
    }
    
    .header-default .logo {
        max-height: 32px;
    }
    
    .header-default .nav-icon .nav-icon-item {
        padding: 5px;
        font-size: 0.9rem;
    }
    
    .page-title-section {
        padding: 25px 0;
    }
    
    .page-title-section h1 {
        font-size: 1.75rem;
    }
    
    .page-title-section .breadcrumb {
        font-size: 0.9rem;
    }
    
    .footer {
        text-align: center;
        padding: 40px 0 15px;
    }
    
    .footer .widget-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer .widget-link ul li a:hover {
        padding-left: 0;
    }
    
    .footer .widget-link ul li a:hover:before {
        display: none;
    }
    
    .footer .bottom-bar {
        padding-top: 15px;
        margin-top: 30px;
        font-size: 0.85rem;
    }
    
    /* Mobile menu improvements */
    .mb-body {
        padding: 15px;
    }
    
    .nav-ul-mb .nav-mb-item .mb-menu-link {
        padding: 12px 0;
        font-size: 1rem;
    }
    
    .mb-canvas-footer {
        padding: 15px;
    }
}

/* Small Mobile Devices */
@media (max-width: 575px) {
    .header-default .logo {
        max-height: 28px;
    }
    
    .page-title-section h1 {
        font-size: 1.5rem;
    }
    
    .footer .widget-title {
        font-size: 1rem;
    }
}

/* Landscape mobile orientation */
@media (max-width: 991px) and (orientation: landscape) {
    .page-title-section {
        padding: 30px 0;
    }
    
    .page-title-section h1 {
        font-size: 2rem;
    }
}
