/* =========================================
   GLOBAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #333;
    background: #f7f8f7;
}

a {
    text-decoration: none;
}


/* =========================================
   MAIN HEADER
========================================= */

.header-main {
    background: #ffffff;
    border-top: 4px solid #990000;
}

.header-container {
    max-width: 1250px;
    margin: auto;
    min-height: 105px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 25px;
}


/* =========================================
   BRAND
========================================= */

.brand {
    display: flex;
    align-items: center;
    color: #333;
}

.brand-logo {
    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 18px;
}

.brand-logo img {
    max-width: 75px;
    max-height: 75px;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 22px;
    font-weight: 600;
    color: #205f32;
    /* margin-bottom: 6px; */
}

.brand-text h2 {
    font-size: 18px;
}

.brand-text p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    max-width: 650px;
}
/* Navigation container */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* User Menu */
.user-menu {
    position: relative;
    margin-left: auto;
}

/* User button */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;

    background: transparent;
    border: none;
    color: #fff;

    font-size: 15px;
    font-weight: 500;

    padding: 12px 16px;
    cursor: pointer;

    transition: background 0.3s ease;
}

.user-menu-btn:hover {
    background: rgba(255,255,255,0.12);
}

.user-menu-btn > i:first-child {
    font-size: 22px;
}

.user-menu-btn .arrow {
    font-size: 11px;
    margin-left: 3px;
}


/* Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;

    width: 210px;

    background: #fff;
    border-radius: 6px;

    box-shadow: 0 5px 18px rgba(0,0,0,0.18);

    padding: 7px 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition: all 0.2s ease;

    z-index: 9999;
}


/* Show dropdown on hover */
.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Dropdown links */
.user-dropdown a {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px 16px;

    color: #333;
    text-decoration: none;

    font-size: 14px;

    transition: background 0.2s ease;
}

.user-dropdown a i {
    width: 18px;
    text-align: center;
    color: #2d6a4f;
}

.user-dropdown a:hover {
    background: #f2f6f4;
}


/* Divider */
.dropdown-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 5px 0;
}


/* Logout */
.user-dropdown .logout-link {
    color: #c0392b;
}

.user-dropdown .logout-link i {
    color: #c0392b;
}

/* =========================================
   HEADER RIGHT
========================================= */

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language {
    color: #555;
    font-size: 14px;
    padding: 9px 12px;
}

.language i {
    margin-right: 5px;
    color: #287a3e;
}

.login-btn-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: #287a3e;
    color: #ffffff;

    padding: 11px 18px;
    border-radius: 5px;

    font-size: 14px;
    font-weight: 500;

    transition: 0.2s ease;
}

.login-btn-header:hover {
    background: #1e6030;
}

.login-btn-reg {
    background: white;
    border: 1px solid var(--theme-2-green);
    color: var(--theme-2-green);
}

.login-btn-reg:hover {
    background: var(--theme-1-maroon);
    ;
    border: 1px solid var(--theme-1-maroon);
    color: white;
}

/* =========================================
   NAVIGATION
========================================= */

.main-nav {
    background: var(--theme-1-maroon);
}

.nav-container {
    max-width: 1250px;
    margin: auto;
    padding: 0 25px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #ffffff;

    padding: 15px 20px;

    font-size: 14px;

    border-bottom: 3px solid transparent;

    transition: 0.2s ease;
}

.nav-menu li a i {
    font-size: 13px;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: #ffffff;
}

.nav-menu li a.active {
    background: rgba(0, 0, 0, 0.10);
    border-bottom-color: #ffffff;
}


/* =========================================
   PORTAL TITLE
========================================= */

.portal-header {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid #e4e4e4;
}

.portal-container {
    max-width: 1250px;
    margin: auto;

    padding: 18px 25px;

    display: flex;
    align-items: center;
    gap: 15px;
}

.portal-icon {
    width: 45px;
    height: 45px;

    border-radius: 6px;

    background: #eaf4ec;
    color: #287a3e;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
}

.portal-container h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    text-transform: capitalize;
}

.portal-container p {
    color: #777;
    font-size: 13px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .header-container {
        padding: 15px;
    }

    .brand-text h1 {
        font-size: 18px;
    }

    .brand-text p {
        font-size: 11px;
    }

    .header-right {
        gap: 5px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-menu li a {
        padding: 14px 12px;
    }
}


@media (max-width: 700px) {

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .brand {
        width: 100%;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
        margin-right: 12px;
    }

    .brand-logo img {
        max-width: 60px;
        max-height: 60px;
    }

    .brand-text h1 {
        font-size: 16px;
        line-height: 1.3;
    }

    .brand-text p {
        font-size: 10px;
    }

    .header-right {
        width: 100%;
        justify-content: flex-end;
    }

    .nav-menu {
        overflow-x: auto;
        white-space: nowrap;
    }

    .nav-menu li a {
        padding: 12px 14px;
        font-size: 13px;
    }

    .portal-container {
        padding: 15px;
    }

    .portal-container h2 {
        font-size: 17px;
    }

    .portal-container p {
        font-size: 11px;
    }
}