:root {
    /* Color Palette - Industry Professional */
    --primary-color: #;
    /* Deep Navy Blue */
    --secondary-color: #F4A259;
    /* Utility Amber/Orange for accents */
    --background-color: #F9FAFB;
    /* Off-white for reduced eye strain */
    --surface-color: #FFFFFF;
    /* Pure white for cards/sections */
    --text-primary: #1F2937;
    /* Dark Grey for text */
    --text-secondary: #6B7280;
    /* Medium Grey for subtitles */
    --border-color: #E5E7EB;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: 'Merriweather', serif;
    /* For long-form reading */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--background-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
header {
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* FIX: Article Header should not be sticky */
header.article-header {
    position: static;
    box-shadow: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-weight: 500;
}

.contact-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.contact-btn:hover {
    background-color: #002244;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.8)), url('hero-image.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* Articles Grid */
.recent-articles {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

/* Updated for Clickable Cards */
a.article-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.article-card {
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.card-image {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    /* Ensure title color implies actionable */
    transition: color 0.2s;
}

/* Highlight title on card hover */
.article-card:hover .card-title {
    color: var(--primary-color);
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more {
    margin-top: auto;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-col a {
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}


/* Article Navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.article-nav a {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-nav a:hover {
    color: var(--secondary-color);
}

.nav-center {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

.topic-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Article Header with Background Image */
.article-header.has-image {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 6rem 2rem;
    /* Increase padding for visual impact */
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 1;
}

.article-header.has-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.75);
    /* Navy overlay with high opacity */
    z-index: 1;
}

.article-header.has-image h1,
.article-header.has-image .article-meta,
.article-header.has-image .article-nav {
    position: relative;
    z-index: 2;
}

.article-header.has-image .article-tag {
    background: var(--secondary-color);
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

/* Global Article Date Styling */
.article-header .article-date,
.article-date {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
    display: block;
}

/* Force white date on image headers */
.article-header.has-image .article-date {
    color: #ffffff !important;
    position: relative;
    z-index: 5;
}