/* -------------------------------------------------------------------------- */

/* Global Styles & Resets                     */

/* -------------------------------------------------------------------------- */

/* Palette 1: Luxury Gold & Charcoal */
:root {
    --primary-color: #E4A025;   /* Rich Gold */
    --primary-hover: #eab450;
    --secondary-color: #726240; /* Muted Gold/Brown */
    --background-color: #121212; /* Very Dark Gray (Almost Black) */
    --surface-color: #1E1E1E; /* Lighter Dark Gray for Cards */
    --text-color: #E0E0E0;   /* Light Gray for Readability */
    --text-muted: #888888;
    --border-color: #333333;
    --font-family-sans: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-family-serif: 'Lora', serif;
}


* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}



body {

    background-color: var(--background-color);

    color: var(--text-color);

    font-family: var(--font-family-sans);

    line-height: 1.6;

    font-size: 16px;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

}



h1, h2, h3, h4, h5, h6 {

    font-family: var(--font-family-serif);

    font-weight: 700;

    line-height: 1.2;

    margin-bottom: 0.75em;

    color: #ffffff;

}



h1 { font-size: 2.8rem; }

h2 { font-size: 2.2rem; }

h3 { font-size: 1.5rem; }

h4 { font-size: 1.2rem; }



p {

    margin-bottom: 1em;

}



a {

    color: var(--primary-color);

    text-decoration: none;

    transition: color 0.2s ease-in-out;

}



a:hover {

    color: var(--primary-hover);

}



img {

    max-width: 100%;

    height: auto;

    display: block;

}



/* -------------------------------------------------------------------------- */

/* Layout Wrappers                            */

/* -------------------------------------------------------------------------- */

.content-wrapper {

    max-width: 1200px;

    width: 90%;

    margin: 0 auto;

    padding: 40px 0;

}



.content-wrapper-full-width {

    width: 100%;

    margin: 0 auto;

}



/* -------------------------------------------------------------------------- */

/* Header & Footer                             */

/* -------------------------------------------------------------------------- */

.site-header, .site-footer {

    background-color: var(--surface-color);

    border-bottom: 1px solid var(--border-color);

    padding: 20px 5%;

    text-align: center;

}



.site-header .logo {

    font-family: var(--font-family-serif);

    font-size: 2rem;

    font-weight: bold;

    color: #fff;

}



.site-header .logo span {

    color: var(--primary-color);

}



.site-footer {

    border-bottom: none;

    border-top: 1px solid var(--border-color);

    margin-top: 40px;

    font-size: 0.9em;

    color: var(--text-muted);

}



/* -------------------------------------------------------------------------- */

/* Blog Featured Section                          */

/* -------------------------------------------------------------------------- */

.blog-featured-post {

    position: relative;

    height: 60vh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: #fff;

    margin-bottom: 40px;

}



.featured-post-bg-image {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-size: cover;

    background-position: center;

    z-index: 1;

}



.featured-post-overlay {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: linear-gradient(to top, rgba(18, 18, 18, 1) 0%, rgba(18, 18, 18, 0.2) 100%);

    z-index: 2;

}



.featured-post-content {

    position: relative;

    z-index: 3;

    max-width: 800px;

    padding: 20px;

}



.featured-post-content h1 {

    font-size: 3.5rem;

    margin-bottom: 20px;

}



.featured-post-content h1 a {

    color: #fff;

    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);

    transition: color 0.2s ease;

}

.featured-post-content h1 a:hover {

    color: var(--primary-hover);

}



.article-excerpt {

    font-size: 1.1rem;

    color: var(--text-color);

    max-width: 600px;

    margin: 0 auto 30px auto;

}



.read-article-link.featured {

    display: inline-block;

    background-color: var(--primary-color);

    color: #fff;

    padding: 12px 30px;

    border-radius: 50px;

    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 1px;

    transition: background-color 0.2s ease;

}



.read-article-link.featured:hover {

    background-color: var(--primary-hover);

    color: #fff;

}



/* -------------------------------------------------------------------------- */

/* Page/Category Title                           */

/* -------------------------------------------------------------------------- */

.page-heading-v2 {

    text-align: center;

    margin-bottom: 40px;

    border-bottom: 1px solid var(--border-color);

    padding-bottom: 20px;

}



.category-description {

    max-width: 700px;

    margin: 15px auto 0 auto;

    color: var(--text-muted);

    font-size: 1.1rem;

}



/* -------------------------------------------------------------------------- */

/* Blog Layout & Grid                             */

/* -------------------------------------------------------------------------- */

.blog-layout-grid {

    display: grid;

    grid-template-columns: 1fr;

    gap: 40px;

}



@media (min-width: 992px) {

    .blog-layout-grid {

        grid-template-columns: 3fr 1fr;

    }

}



.blog-grid-view {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

    gap: 30px;

}



.blog-summary-card-v2 {

    background-color: var(--surface-color);

    border-radius: 12px;

    overflow: hidden;

    border: 1px solid var(--border-color);

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: flex;

    flex-direction: column;

}



.blog-summary-card-v2:hover {

    transform: translateY(-5px);

    box-shadow: 0 10px 20px rgba(0,0,0,0.3);

}



.card-image-link img {

    width: 100%;

    height: 200px;

    object-fit: cover;

    transition: transform 0.3s ease;

}



.blog-summary-card-v2:hover .card-image-link img {

    transform: scale(1.05);

}



.blog-card-text {

    padding: 25px;

    flex-grow: 1;

    display: flex;

    flex-direction: column;

}



.blog-card-text h4 {

    margin-bottom: 15px;

    flex-grow: 1; /* Pushes the read more link down */

}



.blog-card-text h4 a {

    color: #fff;

}

.blog-card-text h4 a:hover {

    color: var(--primary-color);

}



.article-category {

    display: inline-block;

    background-color: var(--secondary-color);

    color: #fff;

    padding: 4px 12px;

    border-radius: 5px;

    font-size: 0.8em;

    font-weight: bold;

    text-transform: uppercase;

    margin-bottom: 15px;

    transition: background-color 0.2s ease;

}

a.article-category:hover {

    background-color: var(--primary-color);

    color: #fff;

}



.article-category.featured {

    background-color: var(--primary-color);

}

a.article-category.featured:hover {

    background-color: var(--primary-hover);

}



.read-article-link {

    font-weight: bold;

    color: var(--primary-color);

    align-self: flex-start; /* Aligns to the start of the flex container */

}



/* -------------------------------------------------------------------------- */

/* Single Post Page                               */

/* -------------------------------------------------------------------------- */

.post-hero-image {

    position: relative;

    height: 70vh;

    display: flex;

    align-items: flex-end; /* Align content to the bottom */

    color: #fff;

}



.post-hero-image .featured-post-content {

    max-width: 1200px;

    width: 90%;

    margin: 0 auto;

    text-align: left;

    padding-bottom: 60px;

}



.post-hero-image h1 {

    font-size: 3.8rem;

    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);

}



.article-meta {

    font-size: 0.9em;

    color: var(--text-muted);

}



.article-body {

    background-color: var(--surface-color);

    padding: 40px;

    border-radius: 8px;

    border: 1px solid var(--border-color);

}



.article-body p, .article-body ul, .article-body ol {

    margin-bottom: 1.5em;

    font-size: 1.1rem;

    line-height: 1.7;

}



.article-body a {

    text-decoration: underline;

}



.article-body h2, .article-body h3 {

    margin-top: 2em;

    margin-bottom: 1em;

    padding-bottom: 0.3em;

    border-bottom: 1px solid var(--border-color);

}



/* -------------------------------------------------------------------------- */

/* Sidebar                                  */

/* -------------------------------------------------------------------------- */

.blog-sidebar {

    position: sticky;

    top: 40px;

}



.sidebar-widget {

    background-color: var(--surface-color);

    padding: 25px;

    border-radius: 8px;

    border: 1px solid var(--border-color);

    margin-bottom: 30px;

}



.widget-title {

    margin-bottom: 20px;

    padding-bottom: 10px;

    border-bottom: 1px solid var(--border-color);

    text-transform: uppercase;

    letter-spacing: 1px;

    font-size: 1rem;

}



.blog-category-nav {

    display: flex;

    flex-direction: column;

}



.blog-category-nav a {

    color: var(--text-color);

    padding: 10px 15px;

    margin-bottom: 5px;

    border-radius: 5px;

    transition: background-color 0.2s ease, color 0.2s ease;

}



.blog-category-nav a:hover {

    background-color: var(--primary-color);

    color: #fff;

}



.blog-category-nav a.active {

    background-color: var(--primary-color);

    color: #fff;

    font-weight: bold;

}



/* -------------------------------------------------------------------------- */

/* Related Articles                              */

/* -------------------------------------------------------------------------- */

.related-articles-section {

    padding-top: 40px;

    border-top: 1px solid var(--border-color);

}

.section-heading {

    text-align: center;

    margin-bottom: 40px;

}



/* -------------------------------------------------------------------------- */

/* Responsive Design                              */

/* -------------------------------------------------------------------------- */

@media (max-width: 991px) {

    .featured-post-content h1 { font-size: 2.5rem; }

    .post-hero-image h1 { font-size: 2.8rem; }

}



@media (max-width: 767px) {

    body { font-size: 15px; }

    .content-wrapper { width: 95%; }

    .blog-grid-view { grid-template-columns: 1fr; } /* Stack cards on mobile */

    .featured-post-content h1 { font-size: 2rem; }

    .post-hero-image h1 { font-size: 2.2rem; }

    .article-body { padding: 20px; }

}
/* --- Subtle Fade-In Animation --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-summary-card-v2 {
  /* Add this line to the existing rule */
  animation: fadeIn 0.5s ease-out forwards;
}