/* =============================================
   RESET & BASE
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
}

/* =============================================
   HEADER
   ============================================= */
/* All styles scoped to .main-header to avoid bleeding into main content */
.main-header {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Inter', sans-serif;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Logo Styling */
.main-header .logo img {
    height: 35px;
    display: block;
}
.main-header .logo a {
    text-decoration: none;
}
.main-header .tagline {
    font-size: 10px;
    color: #888;
    font-style: italic;
    display: block;
    margin-top: -5px;
}

/* Navigation Links */
.main-header .nav-menu {
    display: flex;
    align-items: center;
}

.main-header .nav-menu > ul {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-header .nav-link {
    color: #000000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color 0.3s, background 0.2s;
    white-space: nowrap;
}

.main-header .nav-link:hover,
.main-header .nav-link.nav-current {
    color: #87b942;
    background: #f5fbe8;
}

/* Header CTA Button */
.main-header .nav-cta-item {
    display: flex;
    align-items: center;
}

.main-header .nav-cta-btn {
    background-color: #87b942;
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
}

.main-header .nav-cta-btn:hover {
    background-color: #6e9735;
    transform: translateY(-1px);
}

.main-header .nav-cta-btn:active {
    transform: translateY(0);
}

/* Dropdown Arrow Styling */
.main-header .arrow::after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #fff;
    transition: transform 0.3s ease;
}

/* Header Right Side */
.main-header .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.main-header .support-link, .main-header .login-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-header .icon-headset {
    color: #87b942;
}

/* Search Box Styling */
.main-header .search-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 4px 15px;
}

.main-header #searchBox {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 13px;
    width: 180px;
    color: #333;
}

.main-header .search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
}

/* =============================================
   AUTH BUTTONS (Sign In / Sign Up)
   ============================================= */
.main-header .header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.main-header .auth-btn {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 25px;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    display: inline-block;
    white-space: nowrap;
}

.main-header .auth-signin {
    color: #87b942;
    border: 2px solid #87b942;
    background: transparent;
}

.main-header .auth-signin:hover {
    background: #87b942;
    color: #fff;
}

.main-header .auth-signup {
    background: #87b942;
    color: #fff;
    border: 2px solid #87b942;
}

.main-header .auth-signup:hover {
    background: #6e9735;
    border-color: #6e9735;
    transform: translateY(-1px);
}

.main-header .auth-logout {
    background: transparent;
    color: #e53935;
    border: 2px solid #e53935;
    cursor: pointer;
}

.main-header .auth-logout:hover {
    background: #e53935;
    color: #fff;
}

/* Hidden in mobile — shown inside nav panel instead */
.main-header .nav-auth-mobile {
    display: none;
}

/* =============================================
   MOBILE HAMBURGER BUTTON
   ============================================= */
.main-header .mobile-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1200;
    position: relative;
}

.main-header .mobile-hamburger span {
    width: 25px;
    height: 2.5px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

/* Hamburger → X animation when open */
.main-header .mobile-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.main-header .mobile-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.main-header .mobile-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =============================================
   DESKTOP DROPDOWN (hover-based)
   ============================================= */
.main-header .has-dropdown {
    position: relative;
}

.main-header .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-radius: 0 0 8px 8px;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1100;
    border: 1px solid #eee;
    border-top: 2px solid #87b942;
    display: flex;
    flex-direction: column;
}

.main-header .dropdown-menu li {
    margin: 0;
    padding: 0;
}

/* Show nav dropdowns on hover (desktop only) */
@media (min-width: 1025px) {
    .main-header .has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }

    .main-header .has-dropdown:hover .arrow::after {
        transform: rotate(180deg);
        border-top-color: #87b942;
    }
}

/* Account dropdown — click-triggered via JS .open class (all breakpoints) */
.main-header .account-wrapper.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.main-header .account-wrapper.open .arrow::after {
    transform: rotate(180deg);
}

/* Dropdown Links */
.main-header .dropdown-menu li a {
    display: block;
    padding: 6px 16px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    margin: 0;
    white-space: nowrap;
}

.main-header .dropdown-menu li a:hover {
    background-color: #f0faf0;
    color: #87b942;
}

/* =============================================
   MOBILE RESPONSIVE (≤1024px)
   ============================================= */
@media (max-width: 1024px) {

    /* Logo stretches to fill space, pushing account icon + hamburger to the right */
    .main-header .header-container {
        gap: 12px;
    }
    .main-header .logo {
        flex: 1;
    }
    .main-header .header-auth {
        margin-left: 0;
    }

    /* Show hamburger */
    .main-header .mobile-hamburger {
        display: flex;
    }

    /* Hide header-right on mobile */
    .main-header .header-right {
        display: none;
    }

    /* Mobile Nav Panel — slides in from right */
    .main-header .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #111;
        flex-direction: column;
        padding: 70px 0 30px;
        z-index: 1100;
        box-shadow: -5px 0 30px rgba(0,0,0,0.4);
        overflow-y: auto;
    }

    /* When active — show mobile nav */
    .main-header .nav-menu.active {
        display: flex;
    }

    /* Stack nav links vertically */
    .main-header .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .main-header .nav-menu > ul > li {
        border-bottom: 1px solid #222;
    }

    .main-header .nav-link {
        padding: 14px 24px;
        font-size: 15px;
        color: #fff;
        justify-content: space-between;
    }

    .main-header .nav-link:hover,
    .main-header .nav-link.nav-current {
        background: #1a1a1a;
        color: #87b942;
    }

    /* Arrow rotates when dropdown is active */
    .main-header .has-dropdown.active > .nav-link .arrow::after {
        transform: rotate(180deg);
        border-top-color: #87b942;
    }

    /* Mobile Dropdown — slides down under parent */
    .main-header .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        background: #1a1a1a;
        box-shadow: none;
        transform: none;
        padding: 0;
        border: none;
        border-radius: 0;
        min-width: 100%;
    }

    .main-header .has-dropdown.active .dropdown-menu {
        display: flex;
    }

    .main-header .dropdown-menu li a {
        color: #ccc;
        padding: 12px 24px 12px 40px;
        font-size: 14px;
        margin: 0;
        border-radius: 0;
    }

    .main-header .dropdown-menu li a:hover {
        background: #222;
        color: #87b942;
    }

    /* Mobile CTA Adjustments */
    .main-header .nav-cta-item {
        padding: 20px 24px;
        border-top: 1px solid #333;
        margin-top: 10px;
    }

    .main-header .nav-cta-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 16px;
    }

    /* On mobile show header-auth as icon-only next to hamburger */
    .main-header .header-auth {
        display: flex;
        align-items: center;
    }

    /* Icon-only account button on mobile — show just the avatar circle */
    .main-header .account-trigger {
        border: none;
        background: transparent;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }

    .main-header .account-trigger:hover {
        background: transparent;
        color: inherit;
    }

    .main-header .account-trigger .account-avatar {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .main-header .account-trigger .account-text,
    .main-header .account-trigger .arrow {
        display: none;
    }

    /* Account dropdown on mobile — right-aligned so it doesn't clip off-screen */
    .main-header .account-wrapper .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 200px;
        z-index: 1300;
    }

    /* Sign In / Sign Up remain hidden — shown inside mobile nav panel */
    .main-header .header-auth .auth-btn {
        display: none;
    }

    /* Show auth buttons inside the mobile nav panel */
    .main-header .nav-auth-mobile {
        display: flex;
        gap: 10px;
        padding: 20px 24px;
        border-top: 1px solid #333;
    }

    .main-header .nav-auth-mobile .auth-btn {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 15px;
        display: inline-block;
    }

    .main-header .nav-auth-mobile .auth-signin {
        color: #87b942;
        border-color: #87b942;
    }

    .main-header .nav-auth-mobile .auth-signin:hover {
        background: #87b942;
        color: #fff;
    }
}

/* =============================================
   MY ACCOUNT DROPDOWN
   ============================================= */
.main-header .account-wrapper {
    position: relative;
}

.main-header .account-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #87b942;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 14px 5px 5px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.main-header .account-trigger:hover {
    background: #87b942;
    color: #fff;
}

.main-header .account-trigger:hover .account-avatar {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Initials avatar in trigger */
.main-header .account-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #87b942;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.main-header .account-wrapper .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 220px;
    border-radius: 12px;
    border: 1px solid #eee;
    border-top: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 6px 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.main-header .account-wrapper.open .dropdown-menu {
    transform: translateY(0);
}

/* User info header inside dropdown */
.main-header .account-menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    pointer-events: none;
}

.main-header .account-menu-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #87b942;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.main-header .account-menu-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.main-header .account-menu-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-header .account-menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
    padding: 0;
}

/* Icon + label menu items */
.main-header .account-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
}

.main-header .account-menu-item:hover {
    background: #f5fbe8;
    color: #87b942;
}

.main-header .account-menu-item svg {
    flex-shrink: 0;
    opacity: 0.55;
    transition: opacity 0.15s;
}

.main-header .account-menu-item:hover svg {
    opacity: 1;
}

.main-header .account-menu-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 9px 16px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #e53935;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.main-header .account-menu-logout svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.main-header .account-menu-logout:hover {
    background: #fff5f5;
}

/* Very small phones — nav panel takes full width */
@media (max-width: 360px) {
    .main-header .nav-menu {
        width: 100%;
    }
}

/* Tight desktop — shrink nav link padding and font slightly */
@media (min-width: 1025px) and (max-width: 1280px) {
    .main-header .header-container { gap: 16px; }
    .main-header .nav-link { font-size: 14px; padding: 6px 10px; }
    .main-header .nav-cta-btn { padding: 7px 16px; font-size: 13px; }
    .main-header .auth-btn { padding: 6px 14px; font-size: 13px; }
}

/* =============================================
   MOBILE OVERLAY (dims background)
   ============================================= */
.main-header .nav-menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

/* =============================================
   FAQ SECTION (shared across public pages)
   ============================================= */
.ug-faq-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.faq-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    color: #111;
}

.faq-title span {
    color: #87b942;
}

.faq-container {
    text-align: left;
}

.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    width: 24px;
    height: 24px;
    background: #87b942;
    border-radius: 50%;
    position: relative;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; transition: opacity 0.3s; }

.faq-item.active .faq-icon::after {
    opacity: 0;
}

.faq-answer {
    padding: 0 25px 20px;
    display: none;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer ul {
    margin: 15px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.view-all-btn {
    background: #87b942;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
    font-family: inherit;
}

.view-all-btn:hover {
    background: #6e9735;
}

@media (max-width: 480px) {
    .faq-title { font-size: 22px; }
    .faq-question { font-size: 14px; padding: 15px 16px; }
    .faq-answer { padding: 0 16px 16px; font-size: 14px; }
}

/* =============================================
   FOOTER
   ============================================= */
.main-footer {
    background-color: #000;
    color: #fff;
    padding: 50px 20px 20px;
    font-family: 'Inter', sans-serif;
}

.main-footer .footer-bottom {
    border-top: 1px solid #222;
    margin-top: 20px;
    padding-top: 16px;
    text-align: center;
}

.main-footer .copyright {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    color: #555;
    font-size: 12px;
}

.main-footer .disclaimer {
    margin-top: 12px;
    color: #444;
    font-size: 10px;
    line-height: 1.5;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.main-footer .disclaimer strong {
    color: #666;
}

.main-footer .footer-top {
    text-align: center;
    margin-bottom: 40px;
}

.main-footer .footer-logo img {
    height: 40px;
}

.main-footer .tagline {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-top: -5px;
}

/* 3-Column Layout */
.main-footer .footer-content {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: space-between;
    gap: 50px;
}

.main-footer .footer-column {
    flex: 1;
}

/* Column Headers */
.main-footer .footer-column h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 20px;
}

/* Link Lists */
.main-footer .footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-footer .footer-links li {
    margin-bottom: 10px;
}

.main-footer .footer-links li a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

.main-footer .footer-links li a:hover {
    color: #87b942;
}

/* Address Box */
.main-footer .address-box {
    margin-bottom: 14px;
}

.main-footer .address-box h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
}

.main-footer .address-box p {
    font-size: 13px;
    color: #bbb;
    line-height: 1.6;
    margin: 0;
}

/* Social Icons - Centered */
.main-footer .footer-social {
    max-width: 1100px;
    margin: 30px auto 0;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.main-footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.main-footer .social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.main-footer .social-btn:nth-child(1) { background: #25D366; }
.main-footer .social-btn:nth-child(2) { background: #1DA1F2; }
.main-footer .social-btn:nth-child(3) { background: #3B5998; }
.main-footer .social-btn:nth-child(4) { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.main-footer .social-btn:nth-child(5) { background: #0088CC; }
.main-footer .social-btn:nth-child(6) { background: #0077B5; }
.main-footer .social-btn:nth-child(7) { background: #FF0000; }
.main-footer .social-btn:nth-child(8) { background: #666666; }

.main-footer .social-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.main-footer .social-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Copyright */
.main-footer .copyright {
    border-top: 1px solid #222;
    margin-top: 20px;
    padding-top: 16px;
    text-align: center;
    color: #555;
    font-size: 12px;
}

@media (max-width: 768px) {
    .main-footer .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    .main-footer { padding: 40px 16px 16px; }
}

@media (max-width: 480px) {
    .main-footer { padding: 30px 16px 16px; }
    .main-footer .footer-content { gap: 20px; }
    .main-footer .social-icons { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .main-footer .footer-links li a { font-size: 13px; }
    .main-footer .disclaimer { font-size: 9px; }
}
