/* ===== IMPORT UTILITIES FIRST ===== */
@import url('components/common/utilities/variables.css');
@import url('components/common/utilities/responsive.css');
@import url('components/common/utilities/animations.css');
/* @import url('pages/home/home.css'); */
/* @import url('components/stories/stories.css'); */

/* ===== IMPORT COMPONENT STYLES ===== */
@import url('components/common/buttons/buttons.css');
@import url('components/common/logo/logo.css');
@import url('components/common/navigation/navigation.css');
@import url('components/header/header.css');
@import url('components/footer/footer.css');

/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary, 'Open Sans', sans-serif);
    line-height: 1.6;
    color: var(--color-dark, #2c3e50);
    background-color: var(--color-light, #f8f9fa);
    min-height: 100vh;
    padding-top: 80px; 
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: var(--color-gray);
}

.loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ===== HERO SECTION CENTERING FIXES ===== */
.hero-section .hero-content {
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Center the badge */
.hero-section .hero-badge {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
}

/* Center hero title */
.hero-section .hero-title {
    text-align: center;
}

/* Center description */
.hero-section .hero-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

/* Center buttons */
.hero-section .hero-actions {
    justify-content: center;
}

/* Center stats */
.hero-section .hero-stats {
    justify-content: center;
}

/* Make sure hero content takes full width for centering */
@media (min-width: 769px) {
    .hero-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-content {
        width: 100%;
        max-width: 800px;
    }
}

/* Mobile centering */
@media (max-width: 768px) {
    .hero-section .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .hero-section .hero-content {
        width: 100%;
        padding: 0 20px;
    }
}

/* ========== DROPDOWN NAVIGATION ========== */

.header-nav .nav-link i:not(.dropdown-arrow) {
    display: none;
}

/* Ensure single line text */
.nav-link span {
    white-space: nowrap;
}

.nav-item.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Dropdown arrow */
.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%; 
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 5px; 
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: calc(100% + 0px);
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown items */
.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(0, 86, 179, 0.05);
    color: #0056b3;
    padding-left: 25px;
}

/* Mobile dropdown */
.mobile-dropdown .mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.03);
    margin-left: 15px;
    border-radius: 5px;
}

.mobile-dropdown.active .mobile-submenu {
    max-height: 200px;
    padding: 10px 0;
}

.mobile-submenu li {
    list-style: none;
}

.mobile-submenu a {
    display: block;
    padding: 8px 20px;
    color: #666;
    text-decoration: none;
}

.mobile-submenu a:hover {
    color: #0056b3;
}

/* Adjust navigation spacing */
.nav-list {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
}

.nav-link:hover {
    color: #0056b3;
}

/* Active state */
.nav-link.active {
    color: #0056b3;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: #0056b3;
    border-radius: 2px;
}

/* Mobile navigation adjustments */
.mobile-nav .nav-link {
    padding: 12px 20px;
    font-size: 16px;
}

.mobile-nav .mobile-dropdown .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .nav-list {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 8px 10px;
    }
}

@media (max-width: 900px) {
    .nav-list {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 8px;
    }
}

/* Simple plus sign cursor */
html, body {
    cursor: grab;
}

/* Buttons get pointer */
button, .btn, a {
    cursor: pointer;
}

/* Make ALL background images responsive */
[class*="hero"], [class*="bg-"], [class*="section"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh !important; 
        max-height: 80vh !important;
    }
    
    .hero-section h1, .hero-section p {
        background: rgba(0, 0, 0, 0.5); 
        padding: 10px;
        border-radius: 5px;
    }
}

.logo {
    position: relative !important; 
    width: 100% !important;
    max-width: 150px !important; 
    height: auto !important;
}

.logo-link {
    display: inline-block !important;
    position: relative !important;
}

.logo-img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    position: static !important;
    transform: none !important;
}

