/* Header Styles */
:root {
    --primary-color: #2ea3f2;
    --primary-dark: #1c8bd4;
    --secondary-color: #ff6b35;
    --dark-color: #333333;
    --light-color: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #666666;
    --gray-dark: #444444;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --header-height: 140px;
    --header-height-mobile: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.sticky {
    position: sticky;
    top: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */

/* Auth Links (Login / Become Member) */
.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-link {
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.auth-link:hover,
.auth-link.active {
    background: var(--gray-light);
    color: var(--primary-color);
}

.auth-separator {
    color: var(--gray-medium);
    user-select: none;
}


.top-bar {
    background: var(--light-color);
    color: var(--gray-dark);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 12px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--light-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Main Navigation */
.main-nav {
    background: var(--light-color);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo-container {
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 30px;
    width: auto;
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
    margin: 0;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--gray-medium);
    line-height: 1.3;
    margin: 0;
    max-width: 200px;
}

/* Navigation Menu */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link i {
    font-size: 14px;
    color: var(--gray-medium);
    transition: var(--transition);
}

.nav-link:hover,
.nav-item.active .nav-link {
    background: var(--gray-light);
    color: var(--primary-color);
}

.nav-link:hover i,
.nav-item.active .nav-link i {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    padding-right: 30px !important;
}

.dropdown-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: var(--transition);
}

.dropdown:hover .dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--light-color);
    box-shadow: var(--shadow-heavy);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 14px;
    height: 30px;
    transition: var(--transition);
}

.dropdown-item.active {
    background: var(--gray-light);
    color: var(--primary-color);
    font-weight: 600;
}

.dropdown-item i {
    text-align: center;
    color: var(--gray-medium);
}

.dropdown-item:hover {
    background: var(--gray-light);
    color: var(--primary-color);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

/* Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--dark-color);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background: var(--light-color);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-heavy);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-light);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-logo img {
    height: 40px;
}

.mobile-logo h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
}

.mobile-close {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--dark-color);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-nav-item {
    margin-bottom: 5px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    color: var(--gray-medium);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    background: var(--gray-light);
    color: var(--primary-color);
}

.mobile-nav-link.active i,
.mobile-nav-link:hover i {
    color: var(--primary-color);
}

.mobile-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
}

.mobile-dropdown-icon {
    transition: var(--transition);
}

.mobile-dropdown-icon.active {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 32px;
}

.mobile-dropdown-menu.active {
    max-height: 500px;
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-top: 0;
}

.hero-background {
    position: relative;
    background: linear-gradient(140deg, rgba(0, 72, 114, 0.9) 0%, rgba(41, 17, 96, 0.8) 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(46, 163, 242, 0.1), rgba(255, 107, 53, 0.1));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 60px 0;
}

.hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 15px 30px;
    font-size: 16px;
}

.btn-hero-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 163, 242, 0.3);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
    padding: 15px 30px;
    font-size: 16px;
}

.btn-hero-secondary:hover {
    background: var(--light-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sticky Header */
.main-nav.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow-medium);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu { display: none; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 20px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar-content { flex-direction: column; gap: 10px; text-align: center; }
    .contact-info { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .nav-container { height: 70px; }
    .logo-title { font-size: 20px; }
    .logo-subtitle { font-size: 10px; }
    .logo-img { height: 50px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 18px; }
    .hero-description { font-size: 16px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 300px; justify-content: center; }
    .mobile-nav { width: 280px; }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr; }
    .stat-number { font-size: 28px; }
}
/* Search Button Slide */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 42px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    background: #fff;
    transition: all 0.4s ease;
}

/* expanded */
.search-wrapper.active {
    width: 260px;
    border-color: #2ea3f2;
}

/* INPUT */
.search-input {
    flex: 1;
    padding: 10px 14px;
    border: none !important;
    outline: none;
    background: transparent;
    font-size: 14px;
    box-shadow: none !important;
}

/* BUTTON */
.search-btn {
    border: none !important;
    flex-shrink: 0;
    background: transparent;
    padding: 10px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

/* REMOVE ANY INTERNAL SEPARATOR */
.search-wrapper * {
    border-left: none !important;
    border-right: none !important;
}

/* Focus glow only outside */
.search-wrapper:focus-within {
    box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.25);
}

/* hide input until active */
.search-input {
    display: none;
}
.search-wrapper.active .search-input {
    display: block;
}


/* Desktop (default stays same) */
.search-wrapper.active {
    width: 260px;
}

@media (max-width: 1024px) {
    .search-wrapper.active {
        width: 220px;
    }

    .search-input {
        font-size: 13px;
        padding: 8px 12px;
    }

    .search-btn {
        min-width: 40px;
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .search-wrapper {
        width: 40px;
    }

    .search-wrapper.active {
        width: 180px;
    }

    .search-input {
        font-size: 13px;
        padding: 8px 10px;
    }

    .search-btn {
        min-width: 38px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .search-wrapper.active {
        width: 150px;
    }

    .search-input {
        font-size: 12px;
    }
}

