/* =========================================
   Insights Section - Isolated Styles (V2 Refined)
   ========================================= */

:root {
    --insights-bg: #112d27;
    /* Deep Green from Mockup */
    --insights-card-bg: #0d241f;
    /* Slightly darker green/black mix */
    --insights-text: #e0e0e0;
    --insights-accent: #d4af37;
    /* Luxury Gold */
    --insights-border: rgba(255, 255, 255, 0.1);
    --insights-border-hover: #d4af37;
    --font-serif: 'Playfair Display', serif;
    --font-display: 'Outfit', sans-serif;
}

body.insights-page {
    background-color: var(--insights-bg);
    /* Subtle radial gradient to give depth but keep green dominant */
    background: radial-gradient(circle at 60% 20%, #1a3f36 0%, #0d241f 70%);
    min-height: 100vh;
    position: relative;
    color: var(--insights-text);
}

body.insights-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/grain.webp');
    opacity: 0.15;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
    position: fixed;
    /* Fix grain scrolling */
}

.insights-nav-spacer {
    height: 140px;
}

/* ----------------------------------
   Header
   ---------------------------------- */
/* ----------------------------------
   Header
   ---------------------------------- */
.insights-header {
    text-align: left;
    /* Alignment Change */
    padding: 2rem 0 4rem;
    /* Reduced padding */
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.journal-tag {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--insights-accent);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.insights-title {
    font-family: var(--font-serif);
    /* Changed to Serif based on mockup "INSIGHTS" look */
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 0;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1;
    text-transform: uppercase;
}

.insights-title em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--insights-accent);
    margin: 0 0.2rem;
}

.insights-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: #b8c5c1;
    /* Soft Green-Grey */
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
}

/* ----------------------------------
   Controls & Filters
   ---------------------------------- */
.insights-controls-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Stronger border */
    border-radius: 100px;
    padding: 0.6rem 1.2rem;
    color: #b8c5c1;
    font-family: var(--font-display);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    /* Fix alignment */
    align-items: center;
    gap: 0.6rem;
    min-width: 80px;
    /* Ensure structure */
    justify-content: center;
}

.filter-btn .count {
    opacity: 0.7;
    font-size: 0.8em;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.filter-btn:hover {
    border-color: var(--insights-accent);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
    border-color: var(--insights-accent);
    color: var(--insights-accent);
    background: rgba(212, 175, 55, 0.1);
}

/* Grid Header (Showing X Articles + Arrows) */
.grid-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.showing-text {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: #b8c5c1;
}

.showing-text .current-category {
    color: var(--insights-accent);
    font-style: italic;
}

.grid-nav-arrows {
    display: flex;
    gap: 1rem;
}

.grid-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grid-arrow:hover {
    border-color: var(--insights-accent);
    color: var(--insights-accent);
}

/* ----------------------------------
   Grid Layout (Symmetrical 3-Column)
   ---------------------------------- */
.insights-grid-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem 8rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Rigid 3 cols for desktop */
    gap: 2rem;
    align-items: start;
}

/* ----------------------------------
   Card Styles
   ---------------------------------- */
.insight-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.6) 0%, rgba(10, 10, 10, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    height: 100%;
}

/* Glass shine effect matching Homepage */
.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: 0.5s;
    pointer-events: none;
    z-index: 2;
}

.insight-card:hover::before {
    left: 100%;
}

.insight-thumb-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.insight-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(20%);
}

/* Hover Effects */
/* Hover Effects */
.insight-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.7) 0%, rgba(15, 15, 15, 0.9) 100%);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.1);
}

.insight-card:hover .insight-thumb {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Content */
.insight-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Pill Tag */
.insight-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background-color: var(--insights-accent);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.insight-headline {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 0.8rem;
}

.insight-excerpt {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #888;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.insight-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.insight-author-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #333;
}

.insight-author-text {
    font-size: 0.75rem;
    color: #555;
}

/* ----------------------------------
   Featured Glow (Center Card)
   ---------------------------------- */
.featured-glow {
    box-shadow: 0 0 80px rgba(0, 210, 106, 0.15);
    /* Emerald Glow */
    border-color: rgba(212, 175, 55, 0.6);
    /* Gold Border */
}

.featured-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(0, 210, 106, 0.15) 0%, transparent 70%);
    /* Emerald Ambient */
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

/* Hide Buttons per request */
.single-post-footer,
.cta-button {
    display: none !important;
}

/* ----------------------------------
   Responsive
   ---------------------------------- */
@media (max-width: 1024px) {
    .insights-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .insights-title {
        font-size: 2.5rem;
    }
}

/* ----------------------------------
   Single Post Styles (Added for Article Template)
   ---------------------------------- */
/* Editorial Layout */
/* Editorial Layout */
.single-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 8rem;
    position: relative;
    z-index: 2;
}

.single-post-header {
    text-align: center;
    padding: 2rem 0 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.single-post-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Image floated right within text */
.single-post-hero {
    float: right;
    width: 45%;
    margin-left: 3rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--insights-border);
    clear: right;
}

@media (max-width: 768px) {
    .single-post-hero {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 2rem;
    }
}

.single-hero-img {
    width: 100%;
    height: auto;
    display: block;
    /* Ensure no filter is applied here */
    filter: none;
}

.single-post-content {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.8;
    font-family: var(--font-display);
    font-size: 1.25rem;
    /* Larger, easier to read */
    line-height: 1.8;
    color: #ccc;
}

/* Gold Drop Cap */
.single-post-content p.intro-paragraph::first-letter {
    float: left;
    font-family: var(--font-serif);
    font-size: 4.5rem;
    line-height: 0.85;
    font-weight: 500;
    color: var(--insights-accent);
    margin-right: 0.7rem;
    margin-top: 0.3rem;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content h2 {
    color: #fff;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    font-size: 2rem;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #ccc;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

.single-post-footer {
    margin-top: 4rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.back-link:hover {
    color: var(--insights-accent);
}

blockquote {
    border-left: 3px solid var(--insights-accent);
    padding: 2rem 2.5rem;
    margin: 3rem -2rem;
    /* Pull out slightly */
    font-style: italic;
    color: #fff;
    font-size: 1.6rem;
    font-family: var(--font-serif);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    border-radius: 0 12px 12px 0;
}

.cta-button {
    display: inline-block;
    background: var(--insights-accent);
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(143, 168, 122, 0.3);
}

/* Header Typography Mix */
.insights-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    color: var(--insights-accent);
    margin: 0 0.1em;
}

/* ----------------------------------
   Newsletter Capture (The "Inner Circle")
   ---------------------------------- */
.newsletter-section {
    max-width: 800px;
    margin: 6rem auto 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(145deg, rgba(13, 36, 31, 1) 0%, rgba(5, 5, 5, 1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Ambient glow inside card */
.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.newsletter-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.newsletter-subtitle {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #b8c5c1;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--insights-accent);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-btn {
    background: var(--insights-accent);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }
}