/* CaseNest - Main Stylesheet */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2d2d2d;
    background: #fafafa;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* ── HEADER ── */
header {
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.logo span {
    color: #e94560;
}

nav a {
    margin-left: 28px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #555;
    transition: color 0.2s;
}

nav a:hover {
    color: #e94560;
}

/* ── HERO ── */
.hero {
    position: relative;
    color: #fff;
    text-align: center;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.82) 0%,
        rgba(15, 52, 96, 0.70) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 40px;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: #e94560;
}

.hero p {
    font-size: 1.1rem;
    color: #b0b8d1;
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero-btn {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}

.hero-btn:hover {
    background: #c73652;
    transform: translateY(-2px);
}

/* ── SECTION TITLES ── */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.section-title p {
    color: #777;
    font-size: 1rem;
}

/* ── FEATURED GRID ── */
.featured {
    padding: 64px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

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

.card-body {
    padding: 20px;
}

.card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e94560;
    margin-bottom: 8px;
}

.card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-body p {
    font-size: 0.88rem;
    color: #777;
    margin-bottom: 16px;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e94560;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    text-decoration: underline;
}

/* ── TRENDING STRIP ── */
.trending {
    background: #1a1a2e;
    padding: 48px 40px;
    color: #fff;
}

.trending-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.trending h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 28px;
    color: #fff;
}

.trending h2 span {
    color: #e94560;
}

.trending-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.trending-item {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background 0.2s;
}

.trending-item:hover {
    background: rgba(255,255,255,0.1);
}

.trending-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: #e94560;
    min-width: 36px;
}

.trending-item h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e8eaf6;
    margin-bottom: 4px;
}

.trending-item p {
    font-size: 0.78rem;
    color: #7986cb;
}

/* ── NEWSLETTER ── */
.newsletter {
    padding: 64px 40px;
    text-align: center;
    background: #f5f5f5;
}

.newsletter h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.newsletter p {
    color: #777;
    margin-bottom: 28px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 0.95rem;
    width: 300px;
    outline: none;
    transition: border 0.2s;
}

.newsletter-form input:focus {
    border-color: #e94560;
}

.newsletter-form button {
    padding: 14px 32px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #c73652;
}

/* ── FOOTER ── */
footer {
    background: #111;
    color: #aaa;
    padding: 40px;
    text-align: center;
}

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

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: #aaa;
    margin: 0 12px;
    font-size: 0.88rem;
    transition: color 0.2s;
}

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

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

/* ── ARTICLE PAGE ── */
.article-hero {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
}

.article-hero .tag {
    display: inline-block;
    background: #e94560;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.article-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    max-width: 700px;
    margin: 0 auto 16px;
    line-height: 1.3;
}

.article-meta {
    font-size: 0.85rem;
    color: #b0b8d1;
}

.article-body {
    max-width: 760px;
    margin: 56px auto;
    padding: 0 40px;
}

.article-body h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 36px 0 14px;
}

.article-body p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-body ul {
    margin: 0 0 20px 24px;
}

.article-body ul li {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-body .highlight-box {
    background: #f0f4ff;
    border-left: 4px solid #e94560;
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin: 28px 0;
}

.article-body .highlight-box p {
    margin: 0;
    color: #333;
    font-style: italic;
}

/* ── ABOUT PAGE ── */
.about-section {
    max-width: 820px;
    margin: 64px auto;
    padding: 0 40px;
}

.about-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.about-section p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.team-card {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #e94560);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.team-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.team-card p {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.9rem; }
    .article-grid { grid-template-columns: 1fr; }
    .trending-list { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    header { padding: 0 20px; }
    .featured, .article-body, .about-section { padding: 0 20px; }
    .featured { padding: 40px 20px; }
}
