:root {
    --primary-color: #1a2a4a;
    /* Deep Navy from new logo */
    --accent-color: #00d4ff;
    /* Electric Cyan from new logo */
    --secondary-color: #e6f7ff;
    --bg-color: #f4f7f9;
    --text-color: #0a192f;
    --light-text: #5a6a8a;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

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

/* Header */
header {
    background-color: var(--white);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo img {
    display: block;
    height: 100px;
    width: auto;
}

.tagline {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    border-left: 3px solid var(--accent-color);
    padding-left: 2rem;
    line-height: 1.2;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #2c3e50);
    color: var(--white);
    padding: 0.1rem 5%;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Article List */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.article-summary {
    font-size: 0.95rem;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Detail Page */
.detail-container {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.detail-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.detail-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.detail-body h3 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.detail-body p {
    margin-bottom: 1.2rem;
}

.detail-body ul {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.back-btn {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #333;
    color: #eee;
    margin-top: 4rem;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    header {
        padding: 0.75rem 5%;
        flex-direction: column;
        gap: 1rem;
    }

    .header-left {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .tagline {
        border-left: none;
        padding-left: 0;
        font-size: 0.9rem;
    }

    .logo img {
        height: 70px;
    }
}