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

:root {
    --orange: #F5A623;
    --orange-dark: #E8961A;
    --green: #4CAF50;
    --green-dark: #2E7D32;
    --blue: #2B6B8A;
    --blue-dark: #1E4D63;
    --gray: #888888;
    --light-gray: #f5f5f5;
    --text: #333333;
    --white: #ffffff;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style: none;
}

/* ===== Logo Images ===== */
.logo-img {
    height: 96px;
    width: auto;
    max-width: none;
    flex-shrink: 0;
}

.logo {
    flex-shrink: 0;
}

.hero-banner {
    max-width: 100%;
    width: 600px;
    height: auto;
    margin-bottom: 24px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

/* ===== Navbar ===== */
.navbar {
    background: var(--white);
    border-bottom: 2px solid var(--light-gray);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
    border-bottom-color: var(--orange);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 40px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 8px;
}

.hero .highlight {
    color: var(--orange);
}

.hero .tagline {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.15rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    border: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-dark);
}

.btn-secondary {
    background: var(--blue);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--blue-dark);
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 1.8rem;
    color: var(--blue-dark);
    margin-bottom: 32px;
    text-align: center;
}

/* ===== Featured Article ===== */
.featured-article {
    padding: 32px 0;
}

.featured-card {
    background: var(--white);
    border: 1px solid #e8e8e8;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--orange);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.featured-content .category {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.featured-content h3 {
    font-size: 1.4rem;
    color: var(--blue-dark);
    margin-bottom: 16px;
}

.featured-content p {
    margin-bottom: 12px;
    color: #555;
}

.featured-meta {
    display: flex;
    gap: 20px;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ===== Topics Grid ===== */
.topics {
    padding: 64px 0;
    background: var(--light-gray);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

a.topic-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.topic-card {
    background: var(--white);
    padding: 32px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.empty-state {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    padding: 40px 0;
}

.topic-card:hover {
    transform: translateY(-4px);
}

.topic-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.topic-card h3 {
    color: var(--blue);
    margin-bottom: 8px;
}

.topic-card p {
    color: #666;
    font-size: 0.9rem;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: var(--white);
    padding: 24px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

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

/* ===== Blog List ===== */
.blog-list {
    padding: 24px 0;
}

.blog-card {
    background: var(--white);
    border: 1px solid #e8e8e8;
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.blog-card:hover {
    transform: translateY(-2px);
}

.blog-card .category {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-card h2 {
    font-size: 1.3rem;
    color: var(--blue-dark);
    margin-bottom: 12px;
}

.blog-card p {
    color: #555;
    margin-bottom: 12px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    color: var(--gray);
    font-size: 0.85rem;
}

/* ===== About ===== */
.about-content {
    padding: 24px 0;
}

.about-section {
    max-width: 700px;
    margin: 0 auto 40px;
}

.about-section h2 {
    color: var(--blue);
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.about-section p {
    margin-bottom: 12px;
    color: #555;
}

.about-list {
    padding-left: 20px;
    list-style: disc;
}

.about-list li {
    margin-bottom: 8px;
    color: #555;
}

/* ===== Contact ===== */
.contact-content {
    padding: 24px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h2 {
    color: var(--blue);
    margin-bottom: 12px;
}

.contact-info p {
    color: #555;
    margin-bottom: 16px;
}

.contact-item {
    margin-bottom: 16px;
}

.contact-item strong {
    color: var(--blue-dark);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.form-success {
    color: var(--green);
    font-weight: 600;
    margin-top: 12px;
}

/* ===== Post Content ===== */
.post-content {
    padding: 32px 0;
}

.post-article {
    max-width: 720px;
    margin: 0 auto;
}

.post-article h2 {
    color: var(--blue);
    margin: 28px 0 12px;
    font-size: 1.4rem;
}

.post-article p {
    margin-bottom: 16px;
    color: #555;
}

.post-article ul,
.post-article ol {
    padding-left: 24px;
    margin-bottom: 16px;
    list-style: disc;
}

.post-article li {
    margin-bottom: 8px;
    color: #555;
}

.post-article strong {
    color: var(--text);
}

/* ===== Blog Card Links ===== */
.blog-card h2 a,
.featured-content h3 a {
    color: inherit;
    transition: color 0.2s;
}

.blog-card h2 a:hover,
.featured-content h3 a:hover {
    color: var(--blue);
}

/* ===== Footer ===== */
footer {
    background: var(--blue-dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}

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

.copyright {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 16px 20px;
        gap: 16px;
        border-bottom: 2px solid var(--light-gray);
    }

    .nav-links.open {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .featured-card {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .topics-grid {
        grid-template-columns: 1fr;
    }
}
