/* ==========================================================================
   FINLEX — INSIGHTS & KNOWLEDGE HUB STYLESHEET
   Authoritative Intelligence, Cross-Border Regulatory Analyses & Articles
   ========================================================================== */

/* Hero Banner */
.insights-hero {
    background: radial-gradient(circle at 50% 20%, rgba(197, 160, 89, 0.08) 0%, transparent 60%), linear-gradient(180deg, #071527 0%, #0d1f36 100%);
    padding: 135px 0 65px;
    border-bottom: 1px solid var(--navy-card-border);
    position: relative;
    overflow: hidden;
}

.insights-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 380px;
    background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.insights-hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.insights-hero .container {
    position: relative;
    z-index: 1;
}

.insights-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 999px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.insights-hero h1 {
    font-family: "Manrope", 'Cinzel', sans-serif;
    font-size: clamp(32px, 4.5vw, 48px);
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    font-weight: 700;
}

.insights-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.75;
    max-width: 800px;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Controls Bar: Search & Filter Tabs */
.insights-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.insights-search-box {
    position: relative;
    flex: 1 1 280px;
    max-width: 400px;
}

.insights-search-box input {
    width: 100%;
    padding: 13px 18px 13px 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 999px;
    color: var(--white);
    font-size: 13.5px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: all 0.3s var(--ease);
}

.insights-search-box input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.25);
}

.insights-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.insights-search-box svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.insights-search-box input:focus + svg,
.insights-search-box:focus-within svg {
    color: var(--gold-light);
    transform: translateY(-50%) scale(1.1);
}

.insights-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.7);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.02em;
}

.filter-tab:hover {
    color: var(--white);
    border-color: rgba(197, 160, 89, 0.6);
    background: rgba(197, 160, 89, 0.1);
    transform: translateY(-1px);
}

.filter-tab.active {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
}
    font-weight: 700;
}

/* Featured Editorial Card */
.featured-article-card {
    background: linear-gradient(135deg, #0d1f36 0%, #112744 100%);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 12px;
    padding: 36px;
    margin: 40px 0 60px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .featured-article-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

.featured-content .card-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.featured-content h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(22px, 2.5vw, 30px);
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 16px;
}

.featured-content p {
    color: var(--grey-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    font-size: 12px;
    color: var(--grey-light);
    margin-bottom: 24px;
}

.featured-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.featured-meta svg {
    color: var(--gold);
}

.featured-takeaways {
    background: rgba(7, 21, 39, 0.5);
    border-left: 3px solid var(--gold);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.featured-takeaways h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-light);
    margin-bottom: 12px;
    font-weight: 700;
}

.takeaway-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.takeaway-list li {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.5;
    position: relative;
    padding-left: 18px;
}

.takeaway-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.article-card {
    background: #ffffff;
    border: 1px solid rgba(7, 21, 39, 0.08);
    border-radius: 14px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 160, 89, 0.5);
    box-shadow: 0 16px 36px rgba(7, 21, 39, 0.08), 0 0 0 1px rgba(197, 160, 89, 0.2);
}

.article-card:hover::before {
    opacity: 1;
}

.article-category {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: rgba(197, 160, 89, 0.12);
    color: #926d24;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    font-family: 'DM Sans', sans-serif;
}

.article-card h3 {
    font-family: "Manrope", 'Cinzel', sans-serif;
    font-size: 19px;
    color: var(--navy);
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    font-weight: 700;
}

.article-card p {
    color: var(--grey);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 22px;
    flex-grow: 1;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(7, 21, 39, 0.08);
    font-size: 12px;
    color: var(--grey-light);
}

.article-author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.article-author-info strong {
    color: var(--navy);
    font-size: 12.5px;
    font-weight: 700;
}

.article-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8c6a28;
    font-weight: 700;
    font-size: 12.5px;
    text-decoration: none;
    transition: all 0.25s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
}

.article-read-btn:hover {
    color: var(--navy);
    transform: translateX(4px);
}

/* Full Article Modal View */
.insight-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 21, 39, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.insight-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.insight-modal-dialog {
    background: #ffffff;
    max-width: 880px;
    width: 100%;
    max-height: 88vh;
    border-radius: 16px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 0 0 40px rgba(197, 160, 89, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.insight-modal.active .insight-modal-dialog {
    transform: translateY(0) scale(1);
}
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.3s var(--ease);
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.insight-modal-header {
    background: var(--navy);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--gold);
}

.insight-modal-header h3 {
    color: var(--white);
    font-family: 'Cinzel', serif;
    font-size: 18px;
    margin: 0;
}

.insight-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.insight-modal-close:hover {
    background: var(--gold);
    color: var(--navy);
}

.insight-modal-body {
    padding: 32px 36px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.8;
    color: #2d3748;
}

.insight-modal-body h2 {
    font-family: 'Cinzel', serif;
    color: var(--navy);
    font-size: 24px;
    margin-bottom: 12px;
}

.insight-modal-body h4 {
    font-family: 'Cinzel', serif;
    color: var(--navy);
    font-size: 18px;
    margin: 24px 0 10px;
}

.insight-modal-body p {
    margin-bottom: 16px;
    color: #4a5568;
}

.insight-modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
}

.insight-modal-body th, .insight-modal-body td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
}

.insight-modal-body th {
    background: #0d1f36;
    color: #ffffff;
}

.insight-modal-body tr:nth-child(even) td {
    background: #f8fafc;
}

.insight-modal-body .callout-box {
    background: #fdfaf3;
    border-left: 4px solid var(--gold);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.insight-modal-footer {
    padding: 18px 28px;
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Callout CTA Section */
.insights-cta-banner {
    background: linear-gradient(135deg, #071527 0%, #0d1f36 100%);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 12px;
    padding: 44px 36px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.insights-cta-banner h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(22px, 3vw, 32px);
    color: var(--white);
    margin-bottom: 14px;
}

.insights-cta-banner p {
    color: var(--grey-light);
    max-width: 650px;
    margin: 0 auto 24px;
    font-size: 15px;
    line-height: 1.6;
}

.insights-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Luxury FinLex Gold Buttons */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--gold);
    color: var(--navy);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 18px rgba(197, 160, 89, 0.35);
    border: 1px solid var(--gold);
    cursor: pointer;
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.5);
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    background: transparent;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid rgba(197, 160, 89, 0.5);
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.btn-outline-gold:hover {
    background: rgba(197, 160, 89, 0.15);
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-2px);
}
