/* ==========================================================================
   Insights Section Custom Styles (insights.css)
   Requires style.css to be loaded first for baseline variables.
   ========================================================================== */

/* Main Insights Hero */
.insights-hero {
    position: relative;
    padding: 80px 20px 250px; /* Extra bottom padding for overlapping cards */
    text-align: center;
    border-bottom: 1px solid rgba(220, 179, 95, 0.3);
}
.insights-hero .hero-title-lg {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

/* Overlapping Top Articles Grid */
.top-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    /* Pull the grid UP over the hero section */
    margin-top: -180px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}
.top-article-card {
    background: linear-gradient(180deg, rgba(2,5,19,0.2) 0%, rgba(2,5,19,0.95) 80%);
    border: 1px solid var(--gold);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.top-article-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.8;
}
/* Individual backgrounds for the 3 top cards */
.top-card-1::before { background-image: url('https://images.unsplash.com/photo-1449844908441-8829872d2607?q=80&w=600&auto=format&fit=crop'); }
.top-card-2::before { background-image: url('https://images.unsplash.com/photo-1555636222-cae831e670b3?q=80&w=600&auto=format&fit=crop'); }
.top-card-3::before { background-image: url('https://images.unsplash.com/photo-1506744827052-b8830113c4c9?q=80&w=600&auto=format&fit=crop'); }

.top-article-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.2;
}
.top-article-card p {
    font-size: 0.8rem;
    color: var(--white-nav);
    margin-bottom: 20px;
}
.top-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 179, 95, 0.2);
}

/* Category Filter Menu */
.category-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    margin: 60px auto 40px;
    flex-wrap: wrap;
}
.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;
    min-width: 200px;
}
.cat-item:hover, .cat-item.active {
    background: rgba(220, 179, 95, 0.1);
    box-shadow: inset 0 0 10px rgba(220,179,95,0.2);
}
.cat-item i {
    font-size: 1.5rem;
}
.cat-arrow {
    color: var(--gold);
}

/* Real Results Strip */
.real-results {
    border-top: 1px solid rgba(220, 179, 95, 0.3);
    border-bottom: 1px solid rgba(220, 179, 95, 0.3);
    padding: 30px 20px;
    margin: 40px 0;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    font-size: 0.95rem;
}
.result-item i {
    font-size: 1.5rem;
    color: var(--gold);
}

/* Latest Articles Grid */
.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.latest-card {
    border: 1px solid var(--gold);
    background: var(--navy);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s;
}
.latest-card:hover {
    transform: translateY(-5px);
}
.latest-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--gold);
}
.latest-content {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.latest-content h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.latest-content p {
    color: var(--white-nav);
    font-size: 0.9rem;
    margin-bottom: 25px;
    flex-grow: 1;
}
.latest-content .btn-gold {
    align-self: flex-start;
    padding: 8px 25px;
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter-section {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}
.nl-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: var(--white);
    font-style: italic;
    margin-bottom: 10px;
}
.nl-subtitle {
    color: var(--white-nav);
    margin-bottom: 30px;
}
.nl-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}
.nl-input {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255,255,255,0.9);
    border: none;
    outline: none;
    font-family: 'Lato', sans-serif;
}
.nl-form .btn-gold {
    border-radius: 0;
    padding: 12px 35px;
    border: none;
    cursor: pointer;
}

/* =======================================
   Article Detail Layouts 
   ======================================= */

/* Standard Large Hero for Articles */
.article-large-hero {
    padding: 100px 20px 60px;
    text-align: center;
    border-bottom: 1px solid var(--gold);
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    background-color: rgba(2,5,19,0.5);
}
.article-large-hero h1 {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
.article-large-hero h2 {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 40px;
}
.article-checklist {
    text-align: left;
    margin-bottom: 40px;
    font-size: 1.1rem;
}
.article-checklist li {
    margin-bottom: 10px;
    color: var(--white);
}

/* Trends Grid */
.trends-header {
    background: rgba(2,5,19,0.8);
    border: 1px solid var(--gold);
    padding: 15px;
    margin-top: 40px;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--white);
}
.trends-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.trend-card {
    border: 1px solid rgba(220, 179, 95, 0.4);
    padding: 25px;
    background: rgba(2,5,19,0.6);
}

/* Mobility Promo Banner */
.mobility-promo {
    display: flex;
    border: 1px solid var(--gold);
    max-width: 1000px;
    margin: 40px auto;
    background: var(--navy);
    position: relative;
}
.mp-left {
    padding: 40px;
    flex: 1;
}
.mp-right {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 300px;
}
.mp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .top-articles-grid, .latest-articles-grid { grid-template-columns: repeat(2, 1fr); }
    .results-grid { grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 768px) {
    .top-articles-grid, .latest-articles-grid { grid-template-columns: 1fr; }
    .trends-grid { grid-template-columns: 1fr; }
    .mobility-promo { flex-direction: column; }
    .nl-form { flex-direction: column; }
    .top-articles-grid { margin-top: -80px; }
    .article-large-hero h1 { font-size: 2.5rem; }
}
