@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* Base container */
.ech-header-container {
    padding: 0 20px;
    box-sizing: border-box;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #0f172a !important;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.ech-header-container.ech-scrolled {
    background-color: rgba(15, 23, 42, 0.75) !important;
    /* Fallback based on default Navy #0f172a */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ech-header-container.ech-home {
    background-color: transparent !important;
}

.ech-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

/* Logo */
.ech-logo a {
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.ech-logo-white {
    color: #ffffff;
}

.ech-logo-blue {
    color: #3b82f6;
    /* Blue matching the button */
}

/* Desktop Navigation */
.ech-desktop-nav {
    display: flex;
    flex: 1;
    justify-content: center;
}

.ech-main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.ech-main-menu li {
    margin: 0;
    padding: 0;
}

.ech-main-menu a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
    letter-spacing: -0.2px;
}

/* Actions */
.ech-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ech-login-btn {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.ech-login-btn:hover {
    color: #ffffff;
}

.ech-primary-btn {
    background-color: #3b82f6;
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.ech-primary-btn:hover {
    background-color: #2563eb;
}

/* Mobile Toggle Hamburger */
.ech-mobile-toggle {
    display: none;
}

#ech-hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ech-bar {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Drawer (Off-Canvas) */
.ech-mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: #1e293b;
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.ech-mobile-drawer.active {
    right: 0;
}

.ech-mobile-drawer-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    font-size: 20px;
    font-weight: 700;
}

#ech-close-menu {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.ech-mobile-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.ech-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ech-mobile-menu li {
    margin: 0;
}

.ech-mobile-menu a {
    text-decoration: none;
    display: block;
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid #334155;
}

.ech-mobile-drawer-footer {
    padding: 20px;
    border-top: 1px solid #334155;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ech-login-btn-mobile {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 16px;
    text-align: center;
    padding: 10px;
}

.ech-primary-btn-mobile {
    background-color: #3b82f6;
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

/* Overlay for Mobile Menu */
.ech-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ech-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Breakpoints */
@media screen and (max-width: 850px) {

    .ech-desktop-nav,
    .ech-desktop-only {
        display: none !important;
    }

    .ech-mobile-toggle {
        display: block;
    }
}

/* ==========================================================================
   EASYCLASS FOOTER STYLES
   ========================================================================== */

.ecf-footer-container {
    background-color: var(--ech-bg-color, #0f172a);
    color: #cbd5e1;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 60px 20px 20px;
    width: 100%;
    box-sizing: border-box;
}

.ecf-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Top Area: 4 Columns */
.ecf-footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.ecf-col {
    flex: 1;
    min-width: 200px;
}

.ecf-col-brand {
    flex: 2;
    /* Brand description takes up more space */
    min-width: 280px;
}

.ecf-desc {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
}

.ecf-col-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

/* Footer Menus */
.ecf-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ecf-menu-list li {
    margin-bottom: 12px;
}

.ecf-menu-list a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.2s ease;
}

.ecf-menu-list a:hover {
    color: #ffffff;
}

/* Company Text */
.ecf-company-text {
    font-size: 13px;
    line-height: 1.8;
    color: #94a3b8;
}

/* Bottom Area: Copyright & Policies */
.ecf-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.ecf-copyright {
    font-size: 13px;
    color: #64748b;
}

.ecf-policy-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.ecf-policy-menu a {
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
    transition: color 0.2s;
}

.ecf-policy-menu a:hover {
    color: #94a3b8;
}

/* Responsive Footer Breakpoints */
@media screen and (max-width: 768px) {
    .ecf-footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .ecf-col-brand {
        margin-bottom: 10px;
    }

    .ecf-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
