/* Base Styles */
@import url('https://fonts.cdnfonts.com/css/optima');
@import url('https://fonts.cdnfonts.com/css/eb-garamond');

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

body {
    font-family: 'EB Garamond', serif;
    color: #FFFFFF;
    line-height: 1.6;
    background-color: #101620;
}

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

/* Sticky Header Styles */
header {
    padding: 20px 0;
    border-bottom: 1px solid #1E293B;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #101620;
    transition: transform 0.3s ease;
}

/* Allow for fixed header */
body {
    padding-top: 120px; /* Adjust based on header height */
}

.logo {
    font-family: 'Optima', sans-serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 4px;
    color: #FFFFFF;
    text-align: center;
}

.est-since {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #DECA9C;
    letter-spacing: 1px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #E2E8F0;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav ul li a:hover, 
nav ul li a.active {
    color: #DECA9C;
}

/* Portal Link Styles */
.login-link {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 12px;
    color: #DECA9C;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 4px 8px;
    border: 1px solid #DECA9C;
    border-radius: 3px;
}

.login-link:hover {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    font-family: 'Optima', sans-serif;
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 40px;
    color: #FFFFFF;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
}

section h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background-color: #DECA9C;
    margin: 15px auto 0;
}

/* Footer Styles */
footer {
    background-color: #0D1320;
    color: #FFFFFF;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #1E293B;
}

footer p {
    font-size: 14px;
    color: #E2E8F0;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 14px;
    color: #DECA9C;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.breadcrumbs a {
    color: #DECA9C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #FFFFFF;
}

/* STANDARDIZED HERO SECTIONS */
/* Hero Sections - Base Style */
.hero-section {
    position: relative;
    padding: 120px 0 80px;  /* Standardized padding for all hero sections */
    text-align: center;
    background-color: #121E30;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(18, 30, 48, 0.85), rgba(16, 22, 32, 0.9)), url('../images/insights-hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.7;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section h1 {
    font-family: 'Optima', sans-serif;
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #FFFFFF;
    letter-spacing: 2px;
    max-width: 800px;
}

.hero-section .subtitle {
    font-size: 18px;
    color: #DECA9C;
    letter-spacing: 1px;
    margin-top: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Home Hero - Preserves specific differences for homepage */
.home-hero {
    padding: 120px 0 80px; /* Match other hero sections */
}

.home-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 1;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Insights and Archive specific styling - inherits from hero-section */
.insights-hero,
.archive-hero {
    /* These inherit from hero-section */
}

/* Article Hero */
.article-hero {
    /* Also inherits from hero-section */
}

.article-hero .article-title {
    margin: 20px 0;
    max-width: 800px;
}

/* Breadcrumbs in article hero */
.article-hero .breadcrumbs {
    color: #DECA9C;
    margin-bottom: 20px;
}

/* Hide mobile elements by default */
.mobile-only {
    display: none;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #FFFFFF;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive adjustments for hero sections */
@media (max-width: 768px) {
    .hero-section,
    .home-hero {
        padding: 100px 0 60px;
    }
    
    .hero-section h1,
    .home-hero h1 {
        font-size: 30px;
    }
    
    .hero-section .subtitle {
        font-size: 16px;
    }
}