/*
Theme Name: myTheme
Description: A custom WordPress theme created following the project guide
Version: 1.0
Author: Your Name
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

/* Ensure header/nav and dropdowns appear above below-page imagery */
.site-header { position: relative; z-index: 1000; }
.navbar { position: relative; z-index: 1005; }
.navbar-collapse { position: relative; z-index: 1010; }
.dropdown-menu { position: absolute; z-index: 1100; }

/* Hide site title and description */
.site-branding {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

/* Bootstrap navbar custom styles */
.navbar {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.navbar-brand {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #2c3e50 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-brand:hover {
    color: #3498db !important;
    transform: translateY(-1px);
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    transition: width 0.3s ease;
}

.navbar-brand:hover::after {
    width: 100%;
}

.navbar-nav .nav-link {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #34495e !important;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    margin: 0 0.3rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #3498db !important;
    background: transparent;
    transform: translateY(-1px);
    box-shadow: none;
}

.navbar-nav .nav-link.active {
    color: #3498db !important;
    background: transparent;
    box-shadow: none;
    transform: none;
    outline: none;
}

.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #34495e;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.08), transparent);
    color: #3498db;
    border-left-color: #3498db;
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-header .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar {
        width: 100%;
    }
}

/* Header layout: logo on the far left, nav on the right */
.site-header .row {
    justify-content: space-between;
}

.site-header .col-md-6:first-child {
    display: block;
    text-align: left;
}

/* Logo sizing */
.custom-logo {
    max-height: 60px;
    height: auto;
    width: auto;
}

.site-header .col-md-6:last-child {
    flex: 0 0 auto;
    max-width: auto;
}

/* Remove left padding so logo touches the left edge of the header */
.site-header .container {
    padding-left: 5%;
    padding-right: 0;
    max-width: 100%;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-slogan {
    display: inline-block;
    margin-left: 10px;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: #cc0000;
    white-space: nowrap;
}

/* Remove Bootstrap gutters so logo can be fully flush left */
.site-header .row {
    margin-left: 0;
    margin-right: 0;
}

.site-header [class^="col-"],
.site-header [class*=" col-"] {
    padding-left: 0;
    padding-right: 0;
}

/* Hide the gray navigation section below navbar */
.main-navigation {
    display: none;
}

/* Content area */
.site-content {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Footer styles */
.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-separator {
    height: 1px;
    background: #ccc;
    margin: 0 auto 2rem auto;
    max-width: 80%;
}

.footer-navigation {
    margin-bottom: 2rem;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
}

.footer-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
}

/* Enhanced typography for the entire navbar */
.navbar * {
    font-smooth: antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Clean design system - consistent spacing and shadows */
:root {
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(52, 73, 94, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Additional navbar enhancements */
.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-item:hover::after {
    width: 80%;
}

.navbar-nav .nav-item.active::after {
    width: 60%;
    background: #3498db;
}

/* Mobile navbar improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: var(--border-radius-lg);
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        padding: 1rem;
        margin: 0.5rem 0;
        border-radius: 8px;
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link:hover {
        background: transparent;
        transform: translateY(-1px);
    }
    
    .navbar-nav .nav-link.active {
        color: #3498db !important;
        background: transparent;
        box-shadow: none;
        transform: none;
        outline: none;
    }
    
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.9);
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .dropdown-item {
        text-align: center;
        padding: 0.8rem;
        border-left: none;
        border-bottom: 1px solid rgba(52, 152, 219, 0.08);
    }
    
    .dropdown-item:hover {
        background: rgba(52, 152, 219, 0.08);
        color: #3498db;
        transform: none;
    }
}

/* Scroll effects */
.site-header {
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

/* Remove focus outlines for cleaner appearance */
.navbar-nav .nav-link:focus,
.dropdown-item:focus {
    outline: none;
    box-shadow: none;
}



.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.08), transparent);
    color: #3498db;
    border-left-color: #3498db;
    transform: translateX(3px);
}

/* Loading animation for navbar brand */
.navbar-brand.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
