/* 🛰️ SCARAL INSIGHTS - PREMIUM DESIGN SYSTEM */
@import url('system/scaral-master.css');

:root {
    --bg-dark: #020617;
    --glass-panel: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-teal: #00f2ff;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Noto Sans Thai', 'Outfit', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* 🏗️ LAYOUT RESET: Deactivate Global Dashboard Flex */
.container {
    display: block !important;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    min-height: auto !important;
}

/* 🖼️ Hero Section */
.insights-header {
    padding: 120px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    position: relative;
    display: flex;
    justify-content: center;
}

.insights-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    min-height: auto;
    /* Reset global 100vh */
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 50px;
    color: var(--accent-teal);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.insights-header h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
}

.insights-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 📰 Article Grid System */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.article-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 255, 0.1);
}

.article-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover img {
    transform: scale(1.05);
}

.article-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-tag {
    color: var(--accent-teal);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.article-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: white;
}

.article-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.read-more-link {
    margin-top: auto;
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s ease;
}

.read-more-link:hover {
    gap: 15px;
}

/* 🛡️ Branding Blobs */
.bg-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* 🏛️ Footer Refinement */
.insights-footer {
    padding: 80px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
    text-align: center;
}

.insights-footer p {
    color: #475569;
    font-size: 0.9rem;
}

/* 📱 Mobile Specifics */
@media (max-width: 1024px) {
    .insights-header {
        padding: 100px 20px 40px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}