:root {
    /* BesserNews Future Vision Theme */
    --primary-color: #007AFF;
    /* BesserNews Orange */
    --primary-light: #fff7ed;
    --primary-dark: #c2410c;
    --primary-glow: rgba(255, 122, 24, 0.3);

    --secondary-color: #3b82f6;
    /* Blue for Trust */
    --secondary-glow: rgba(59, 130, 246, 0.3);

    --accent-color: #8b5cf6;
    /* Purple for Innovation */
    --accent-glow: rgba(139, 92, 246, 0.3);

    --background-color: #f8fafc;
    /* Cool Gray/White */
    --card-background: #ffffff;

    --text-color: #020617;
    /* Slate 950 - Darker for better readability */
    --text-muted: #475569;
    /* Slate 600 - Darker than 500 */
    --heading-color: #000000;
    /* Pure Black */

    --border-color: rgba(148, 163, 184, 0.2);

    /* Modern Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 24px 64px rgba(0, 0, 0, 0.12);

    /* Modern Radius */
    --border-radius: 1.5rem;
    --border-radius-lg: 2rem;
    --border-radius-full: 9999px;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-glow: linear-gradient(45deg, #007AFF, #f59e0b, #ec4899);

    /* Effects */
    --backdrop-blur: 20px;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    /* Header space removed for sticky header */
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 122, 24, 0.05), transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05), transparent 50%);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Common Components */
.bn-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.bn-section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.bn-section-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* News Grid */
.bn-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

/* News Card */
.news-card {
    background: var(--card-background);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 122, 24, 0.3);
}

.news-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.news-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image-wrapper img {
    transform: scale(1.08);
}

.news-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
    background: var(--primary-light);
    color: var(--primary-dark);
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--heading-color);
    margin: 0;
}

.news-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.news-meta i {
    color: var(--primary-color);
}

/* Footer */
.bn-footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.bn-footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.bn-footer-brand img {
    height: 40px;
    margin-bottom: 20px;
}

.bn-footer-title {
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.bn-footer-links {
    list-style: none;
}

.bn-footer-links li {
    margin-bottom: 12px;
}

.bn-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.bn-footer-links a:hover {
    color: var(--primary-color);
}

.bn-footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* BN 2.0 Badge */
.bg-2-0-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    z-index: 3;
}