﻿/* ===========================
   Base & Reset
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #101010;
    color: #e8e8e8;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===========================
   Page Hero
=========================== */
.page-hero {
    margin-top: 40px;
    position: relative;
    padding: 72px 5% 56px;
    text-align: center;
    overflow: hidden;
}

/* Blue glow orb  visible only below the nav (body padding-top handles the rest) */
.hero-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 680px;
    height: 380px;
    background: radial-gradient(ellipse at center, rgba(64, 150, 255, 0.22) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(64, 150, 255, 0.12);
    color: #4096ff;
    border: 1px solid rgba(64, 150, 255, 0.28);
    border-radius: 50px;
    padding: 5px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 14px;
}

.gradient-text {
    background: linear-gradient(135deg, #4096ff, #69b4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.05rem;
    color: #999;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================
   News Wrapper
=========================== */
.news-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 5% 80px;
    flex: 1;
}

#news-section { }

#news-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ===========================
   News Post Cards
=========================== */
.news-post {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 22px 26px;
    cursor: pointer;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.45s ease, opacity 0.45s ease, border-color 0.2s, background 0.2s;
    overflow: hidden;
}

.news-post::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(64, 150, 255, 0.04), transparent 60%);
    border-radius: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.news-post:hover {
    border-color: rgba(64, 150, 255, 0.3);
    background: #1e1e1e;
}

.news-post:hover::before {
    opacity: 1;
}

.news-post.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Header row */
.news-post h3 {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.news-post h3::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: #4096ff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    line-height: 1;
}

.news-post.active h3::after {
    transform: rotate(45deg);
}

/* Date badge */
.news-post small {
    display: block;
    font-size: 0.75rem;
    color: #555;
    margin-top: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1;
}

/* Expanded content */
.news-post p {
    margin-top: 16px;
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.75;
    display: none;
    position: relative;
    z-index: 1;
}

.news-post.active p {
    display: block;
}

/* Images inside posts */
.news-post img {
    display: none;
    width: auto;
    max-width: 100%;
    max-height: 320px;
    margin-top: 14px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #2a2a2a;
}

.news-post.active img {
    display: block;
}

/* Links inside posts */
.news-post a {
    color: #4096ff;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.news-post a:hover {
    color: #69b4ff;
    text-decoration: underline;
}

/* Divider before expanded content */
.news-post.active {
    border-color: rgba(64, 150, 255, 0.25);
}

/* ===========================
   Section Navigation Grid
=========================== */
.section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 36px;
}

.section-grid-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    aspect-ratio: 3 / 2;
    background: #161616;
    border: 1px solid #242424;
    border-radius: 18px;
    padding: 20px 22px;
    color: #ccc;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.2s;
}

/* subtle top-left glow blob */
.section-grid-btn::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 150, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.section-grid-btn:hover {
    border-color: rgba(64, 150, 255, 0.4);
    background: #1b1b1b;
    color: #fff;
    transform: translateY(-2px);
}

.section-grid-btn:hover::before {
    opacity: 1;
}

.section-grid-btn.active {
    border-color: rgba(64, 150, 255, 0.45);
    background: rgba(64, 150, 255, 0.07);
    color: #4096ff;
}

.section-grid-btn.active::before {
    opacity: 1;
}

.sgb-logo {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sgb-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 17px;
    opacity: 1;
    transition: opacity 0.25s;
}

.section-grid-btn:hover .sgb-logo img {
    opacity: 1;
}

/* dark gradient so text stays readable over image */
.section-grid-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 17px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.section-grid-btn:hover .sgb-logo strong {
    color: #4096ff;
}

.sgb-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: inherit;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
}

.sgb-sub {
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
    text-align: left;
    position: relative;
    z-index: 2;
    transition: color 0.25s;
}

.section-grid-btn:hover .sgb-sub {
    color: rgba(255,255,255,0.6);
}

.section-grid-btn.active .sgb-sub {
    color: rgba(64, 150, 255, 0.55);
}

/* Section content wrapper */
.section-body {
    display: none;
    margin-bottom: 24px;
}

.section-body.open {
    display: block;
}

/* Blog section accent color override */
.section-body.blog-section .news-post:hover {
    border-color: rgba(120, 86, 255, 0.3);
}

.section-body.blog-section .news-post.active {
    border-color: rgba(120, 86, 255, 0.25);
}

.section-body.blog-section .news-post::before {
    background: linear-gradient(135deg, rgba(120, 86, 255, 0.04), transparent 60%);
}

.section-body.blog-section .news-post h3::after {
    color: #a78bfa;
}

/* ===========================
   Article Card Grid
=========================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.article-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 28px 22px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.4s ease, opacity 0.4s ease, border-color 0.2s, background 0.2s;
}

.article-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(64, 150, 255, 0.05), transparent 65%);
    border-radius: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.article-card:hover {
    border-color: rgba(64, 150, 255, 0.35);
    background: #1e1e1e;
}

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

.article-card.visible {
    opacity: 1;
    transform: translateY(0);
}


.article-seperation{
    width: 100%;
    height: 1px;
    background: #2a2a2a;
    margin: 40px 0;



}


.article-card-title {
    color: #e8e8e8;
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.45;
    position: relative;
    z-index: 1;
    transition: color 0.2s;
}

.article-card:hover .article-card-title {
    color: #fff;
}

/* ===========================
   Footer
=========================== */
.footer {
    background: #141414;
    border-top: 1px solid #1f1f1f;
    padding: 40px 5% 24px;
    text-align: center;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #4096ff;
}

.footer-copy {
    color: #444;
    font-size: 0.82rem;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 600px) {
    .page-hero { padding: 48px 5% 36px; }
    .news-post { padding: 18px 18px; }
    .hero-glow { width: 340px; height: 220px; }
}