/* CWO Esoteric Layout and Navigation CSS */

/* Header Styling */
header {
    background: var(--gradient-primary);
    color: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 60px; /* Add this line */
}

/* OR alternatively, you could use padding-top instead: */
/* 
header {
    background: var(--gradient-primary);
    color: white;
    padding: 90px 0 30px 0; /* 90px top padding (60px navbar + 30px spacing) */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
} */

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(44, 24, 16, 0.98));
    border: none;
    margin-bottom: 0;
    min-height: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    height: auto;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
}

.cwo-logo {
    max-height: 40px;
    width: auto;
    margin-right: 10px;
}

.brand-text {
    font-family: 'Coolvetica', sans-serif;
    font-size: 1.3rem;
    font-weight: normal;
    color: white;
}

.navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 15px 20px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    color: white !important;
    background-color: rgba(178, 34, 34, 0.2) !important;
    border-bottom-color: var(--accent);
}

.navbar-nav > li.active > a {
    color: white !important;
    background-color: rgba(178, 34, 34, 0.3) !important;
    border-bottom-color: var(--accent);
}

/* Dropdown Menus */
.dropdown-menu {
    background-color: white;
    border: 1px solid rgba(178, 34, 34, 0.1);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--primary);
}

.dropdown-menu > li > a {
    color: var(--dark) !important;
    padding: 10px 20px;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background-color: rgba(178, 34, 34, 0.1) !important;
    color: var(--primary) !important;
}

.dropdown-menu > li > a i {
    margin-right: 8px;
    color: var(--primary);
}

/* Mobile Navigation */
.navbar-toggle {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: rgba(178, 34, 34, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggle .icon-bar {
    background-color: white;
}

/* Enhanced Footer with Modal Links */
footer {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1;
}

.footer-main p {
    margin: 0;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-modal-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-modal-trigger:hover,
.footer-modal-trigger:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Page Headers */
.page-header {
    background: white;
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    font-family: 'Coolvetica', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0;
    font-weight: normal;
}

.page-header-with-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary);
}

.enhanced-nav {
    display: flex;
    gap: 1rem;
}

.nav-section h6 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 600;
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Breadcrumbs */
.breadcrumb {
    background: rgba(178, 34, 34, 0.05);
    border: 1px solid rgba(178, 34, 34, 0.1);
    border-radius: 6px;
    padding: 10px 20px;
    margin-bottom: 20px;
}

.breadcrumb > li + li:before {
    color: var(--primary);
    content: "›";
    padding: 0 8px;
}

.breadcrumb > .active {
    color: var(--primary);
    font-weight: 600;
}

/* Jumbotron */
.jumbotron {
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.1), rgba(220, 20, 60, 0.1));
    border-radius: 8px;
    padding: 60px 30px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
}

.landing-center {
    text-align: center;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 30px;
    transition: var(--transition);
    border-top: 4px solid var(--primary);
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-family: 'Coolvetica', sans-serif;
    font-size: 1.4rem;
    font-weight: normal;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* CWOE Navigation Logo */
.navbar-brand {
    padding: 8px 15px;
    height: auto;
}

.cwoe-nav-logo {
    max-height: 44px;
    width: auto;
    filter: brightness(1.1); /* Brighten logo for dark navbar */
}

/* CWOE Header Logo */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.cwoe-header-logo {
    max-height: 150px; /* Increased from 80px */
    width: auto;
    margin-right: 20px;
}

.header-text h1 {
    font-family: 'Coolvetica', sans-serif;
    font-size: 3.5rem; /* Increased from 2.5rem */
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2; /* Added to prevent cutoff */
}

.header-text p {
    margin: 10px 0 0 0; /* Increased from 5px */
    opacity: 0.9;
    font-size: 1.3rem; /* Increased from 1.1rem */
    color: white;
}

/* CWOE Footer Logo */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    text-align: center;
}

.cwoe-footer-logo {
    max-height: 30px;
    width: auto;
    opacity: 0.9;
}

/* Modal Styling Enhancements */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 20px 25px;
}

.modal-header .modal-title {
    font-family: 'Coolvetica', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
    font-size: 1.5rem;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px 25px;
    line-height: 1.6;
}

.modal-body h5 {
    color: var(--primary);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-body h5:first-child {
    margin-top: 0;
}

.modal-body h6 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-body a {
    color: var(--primary);
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

.modal-body ul {
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

.contact-option {
    padding: 15px;
    background: rgba(178, 34, 34, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.community-note {
    border-left: 4px solid var(--accent) !important;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        padding: 25px 0; /* Increased mobile padding */
    }
    
    header h1 {
        font-size: 2.8rem; /* Increased from 2rem */
        line-height: 1.2;
    }
    
    header p {
        font-size: 1.2rem; /* Increased from 1rem */
    }
    
    .header-text h1 {
        font-size: 2.8rem; /* Increased from 2rem */
        line-height: 1.2;
    }
    
    .header-text p {
        font-size: 1.2rem; /* Increased from 1rem */
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header-with-nav {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .enhanced-nav {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-buttons .btn {
        width: 100%;
    }
    
    .navbar-collapse {
        background-color: rgba(44, 24, 16, 0.95);
        margin-top: 10px;
        border-radius: 6px;
        padding: 10px;
    }
    
    .feature-card {
        height: auto;
        min-height: 220px;
    }
    
    .cwo-logo {
        max-height: 35px;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    /* Mobile Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    header {
        padding: 20px 0; /* Ensure adequate padding on small screens */
    }
    
    .header-text h1 {
        font-size: 2.2rem; /* Increased from 2rem */
        line-height: 1.2;
    }
    
    .header-text p {
        font-size: 1.1rem; /* Slightly increased from 1rem */
    }
    
    .jumbotron {
        padding: 40px 20px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .navbar-nav > li > a {
        padding: 12px 15px;
    }
    
    .cwoe-nav-logo {
        max-height: 35px;
    }
    
    .cwoe-header-logo {
        max-height: 110px; /* Increased from 60px to maintain proportion */
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .cwoe-footer-logo {
        max-height: 25px;
    }
    
    .footer-modal-trigger {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Mobile Modal Adjustments */
    .modal-body {
        padding: 20px 15px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
}

/* Logo hover effects */
.navbar-brand:hover .cwoe-nav-logo {
    filter: brightness(1.3);
    transition: filter 0.3s ease;
}