:root {
    --primary-color: #0d2940; /* Navy Blue */
    --accent-color: #bcba92;  /* Olive/Khaki */
    --text-color: #333333;
    --bg-color: #ffffff;
    --light-bg: #f9f9f9;
}

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

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Header & Navigation Container */
header {
    background-color: var(--bg-color);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--accent-color);
    position: relative;
    z-index: 1000;
}

.logo img {
    height: 40px;
    display: block;
    transition: all 0.3s ease;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 15px;
    margin-left: auto; /* Forces the icons entirely to the right edge */
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--primary-color);
    padding: 5px;
}

/* Navigation List */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav li {
    display: flex;
    align-items: center;
}

nav a {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    transition: color 0.3s, background 0.3s;
    display: flex;
    align-items: center;
}

nav a:hover {
    color: var(--accent-color);
}

.linkedin-icon {
    fill: var(--primary-color);
    transition: fill 0.3s;
    display: block;
}

.linkedin-icon:hover {
    fill: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: background 0.3s, color 0.3s, border 0.3s;
    height: 40px;
}

.hero .btn {
    padding: 15px 30px;
    height: auto;
}

.btn:hover {
    background-color: var(--primary-color);
    color: white !important;
    border: 1px solid var(--accent-color);
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Hero Section */
.hero {
    background-color: rgba(13, 41, 64, 0.6); 
    color: white;
    text-align: center;
    padding: 20px;
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    height: 750px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Page Headers */
.page-header {
    background-color: rgba(13, 41, 64, 0.6);
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    padding: 10% 5%;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    color: white;
}

.page-header h1 {
    color: white;
    font-size: clamp(2.2rem, 6vw, 3rem);
    text-transform: uppercase;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
    margin: 0;
}

/* Layout Elements */
.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.book-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    align-items: start;
}

.grid img, .book-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.text-center {
    text-align: center;
}

.content-block {
    margin-bottom: 20px;
    background: white;
    padding: clamp(20px, 5vw, 30px);
    border-radius: 8px;
}

.content-block p {
    margin-bottom: 15px;
}

.content-block p:last-child {
    margin-bottom: 0;
}

.full-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
}

/* Typography */
h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
    margin-bottom: 15px;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    line-height: 1.3;
}

p {
    font-size: 1rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    p {
        font-size: 1.1rem;
    }
}

/* Blog Styles */
.blog-post-card {
    background: var(--light-bg);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
}
.blog-post-card h3 {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.blog-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 5% 20px 5%;
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer img {
    height: 45px;
    margin-bottom: 20px;
}

.footer-nav {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.footer-nav li {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.footer-nav li:not(:last-child)::after {
    content: "|";
    color: white;
    margin-left: 15px;
    opacity: 0.7;
}

.footer-nav a {
    color: white;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-links {
    margin: 10px 0 20px 0;
    display: flex;
    justify-content: center;
}

.footer-linkedin-icon {
    fill: white;
    transition: fill 0.3s;
}

.footer-linkedin-icon:hover {
    fill: var(--accent-color);
}

.copyright {
    font-size: 0.9rem;
    margin-top: 15px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 950px) {
    .logo img {
        height: 36px;
        max-width: none;
    }
    
    .mobile-controls {
        display: flex;
        gap: 12px;
    }
    
    .desktop-linkedin {
        display: none !important;
    }

    header nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        padding: 20px 5%;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        align-items: flex-start;
    }

    header nav ul.show {
        display: flex;
    }

    header nav li {
        width: 100%;
    }
    
    /* Keep mobile menu links left-aligned */
    header nav a {
        width: 100%;
        padding: 10px 0;
        justify-content: flex-start;
    }

    /* Force all buttons to span full width and center text */
    .btn {
        width: 100%;
        padding: 10px 0;
        justify-content: center;
        text-align: center;
        margin-top: 10px;
    }
    
    /* Shrink the footer logo specifically */
    footer img {
        width: 80%;
        max-width: 280px; /* Safety fallback to ensure it never gets pixelated/massive on tablets */
        height: auto;
    }
    
    /* Mobile Footer Nav Scaling */
    .footer-nav ul {
        flex-direction: row; 
        gap: 10px;
        align-items: center;
        justify-content: center;
    }
    
    .footer-nav li {
        font-size: 12px; 
        line-height: 10px;
    }
    
    .footer-nav li:not(:last-child)::after {
        display: inline-block; 
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    .grid, .book-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .logo img {
        height: 30px; 
    }
    header {
        padding: 15px 3%;
    }
}