/* Base Template Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header Styles */
.header {
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    min-height: 250px; /* Set minimum height for header */
}

.header-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/vitaly-gariev-jPLvaZ06uy0-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 0;
}

/* Subtle dark overlay for text readability */
.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.header-container,
.nav {
    position: relative;
    z-index: 2;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 2rem 2rem; /* Increased vertical padding from 1rem to 2rem */
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 1rem;
}

.header-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.header-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}

/* Navigation */
.nav {
    background-color: rgba(0,0,0,0.3);
    padding: 0.5rem 0;
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
}

.nav-container {
    display: flex;
    gap: 2rem;
    flex: 0 0 auto;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-tagline {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .header-tagline {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .header-logo img {
        height: 50px;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
}

