/* --- RESET & BASICS --- */
:root {
    --primary: #0a254e;  /* Deep Navy */
    --accent: #d4af37;   /* Gold */
    --text: #333;
    --bg-light: #f9f9f9;
    --white: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--primary); margin-bottom: 1rem; }

/* --- HEADER & NAVIGATION --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 15px 20px;
}
.logo img { height: 50px; }

/* Desktop Menu */
.nav-menu { display: flex; gap: 30px; list-style: none; }
.nav-link { font-weight: 700; text-transform: uppercase; font-size: 0.9rem; color: var(--primary); }
.nav-link:hover { color: var(--accent); }

/* Hamburger Menu (Hidden on Desktop) */
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--primary); }

/* --- HERO SECTION (Cinematic Style) --- */
.hero {
    position: relative;
    width: 100%;
    height: 85vh; /* Tall, immersive height */
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;    /* Vertically centers the content box... */
    justify-content: center; /* Horizontally centers it */
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay to make white text pop */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7)); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px; /* Wider to let text breathe */
    margin-top: 15vh; /* Pushes text LOWER in the image space */
}

/* The Quote Style (Reduced Size) */
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    
    /* Reduced from 3rem to 1.8rem */
    font-size: 1.8rem;      
    
    line-height: 1.6;       /* More breathing room for smaller text */
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    margin-bottom: 25px;    
    
    /* Tighter width so it stays a "block" and doesn't become a long ribbon */
    max-width: 700px;       
    
    margin-left: auto;
    margin-right: auto;
    
    color: #ffffff !important; 
}

/* The Citation Style (Unchanged) */
.hero-citation {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #d4af37;
    display: block;
    position: relative;
}

/* Add the dashes before and after citation (Unchanged) */
.hero-citation::before,
.hero-citation::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 1px;
    background: #d4af37;
    vertical-align: middle;
    margin: 0 15px;
}

/* Mobile Adjustments (Updated) */
@media (max-width: 768px) {
    .hero { height: 70vh; }
    
    /* Mobile text size adjustments */
    .hero h1 { 
        font-size: 1.8rem; 
        max-width: 100%; 
        padding: 0 15px;
    } 
    
    .hero-content { margin-top: 10vh; }
    .hero-citation { letter-spacing: 2px; font-size: 0.8rem; }
    .hero-citation::before, .hero-citation::after { width: 15px; margin: 0 8px; }
}
/* --- MAIN LAYOUT (The Sidebar Shift) --- */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 Content, 1/3 Sidebar */
    gap: 50px;
}

/* Sidebar Styling */
.sidebar-widget { margin-bottom: 40px; }
.widget-title { font-size: 1.2rem; border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 20px; }
.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.sidebar-list a { font-weight: 700; color: var(--primary); display: block; }
.sidebar-list span { font-size: 0.85rem; color: #888; display: block; margin-top: 5px; }

/* Search Box */
.search-form { display: flex; }
.search-input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px 0 0 4px; }
.search-btn { padding: 10px 15px; background: var(--primary); color: white; border: none; border-radius: 0 4px 4px 0; cursor: pointer; }

/* Subscribe Box */
.subscribe-box { background: var(--primary); color: white; padding: 30px; border-radius: 8px; text-align: center; }
.subscribe-input { width: 100%; padding: 10px; margin: 10px 0; border: none; border-radius: 4px; }
.subscribe-btn { width: 100%; padding: 10px; background: var(--accent); color: var(--primary); font-weight: bold; border: none; border-radius: 4px; cursor: pointer; }

/* --- FOOTER --- */
footer { background: #222; color: #aaa; padding: 40px 0; text-align: center; font-size: 0.9rem; }
.footer-socials a { margin: 0 10px; font-size: 1.5rem; color: white; }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .main-container { grid-template-columns: 1fr; } /* Stack sidebar below content */
    
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed; left: -100%; top: 70px; gap: 0;
        flex-direction: column; background-color: var(--white); width: 100%;
        text-align: center; transition: 0.3s; box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 16px 0; }
}


/* --- ARTICLE FEED (List Layout) --- */
.article-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    background: white;
}

.article-thumbnail {
    flex-shrink: 0;
    width: 220px;       /* Fixed width for the "Smaller Image" */
    height: 150px;      /* Fixed height */
    overflow: hidden;
    border-radius: 4px;
    background-color: #eee;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Ensures image fills the box without stretching */
    transition: transform 0.3s;
}

.article-item:hover .article-thumbnail img {
    transform: scale(1.05); /* Subtle zoom effect on hover */
}

.article-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.article-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Mobile: Stack them back up */
@media (max-width: 768px) {
    .article-item { flex-direction: column; }
    .article-thumbnail { width: 100%; height: 200px; }
}



/* --- GLOBAL TEXT FORMATTING (Articles & Welcome Page) --- */

/* 1. Spacing between paragraphs */
.post-body p,
#welcome-content p {
    margin-bottom: 1.5em;  /* Adds a blank line after every paragraph */
    line-height: 1.8;      /* Increases space between lines for readability */
    font-size: 1.125rem;   /* Ensures text is a comfortable reading size */
    color: #333;           /* Softer black for less eye strain */
}

/* 2. Spacing for lists (Bullet points) */
.post-body ul, .post-body ol,
#welcome-content ul, #welcome-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;   /* Indent the list */
}

.post-body li,
#welcome-content li {
    margin-bottom: 0.5em;  /* Space between individual bullet points */
    line-height: 1.6;
}

/* 3. Blockquotes */
.post-body blockquote,
#welcome-content blockquote {
    border-left: 4px solid #ccc;
    margin: 1.5em 0;
    padding-left: 1em;
    font-style: italic;
    color: #555;
}

/* 4. Headings inside content */
.post-body h2, .post-body h3, .post-body h4,
#welcome-content h2, #welcome-content h3, #welcome-content h4 {
    margin-top: 2em;       /* Extra space above headings */
    margin-bottom: 0.75em; /* Small space below headings */
    line-height: 1.3;
    font-weight: 700;
}


/* --- SEARCH WIDGET STYLING --- */
.search-form {
    position: relative; /* Anchors the button inside */
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 15px; /* Extra padding on right so text doesn't hit icon */
    border: 1px solid #e0e0e0;    /* Light clean border */
    border-radius: 4px;
    font-size: 1rem;
    color: #555;
    background: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #bbb; /* Slight darken on click */
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%); /* Vertically centers the icon */
    background: transparent;
    border: none;
    color: #999; /* The soft gray color from your image */
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
}

.search-btn:hover {
    color: var(--primary); /* Optional: Highlights when you hover */
}