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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111827;
    background-color: #f3f4f6;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #374151;
}

ul {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

/* Links & Buttons */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 15px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background-color: #ffffff;
    color: #2563eb;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #eff6ff;
}

.btn-accent {
    background-color: #059669;
    color: #ffffff;
}

.btn-accent:hover {
    background-color: #047857;
    color: #ffffff;
}

.btn-small {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

/* Layout */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 3.5rem 0;
}

.section-accent {
    background-color: #e5f2ff;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #111827;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #059669);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.8rem;
}

.logo-text {
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    font-size: 0.95rem;
    color: #4b5563;
    padding-bottom: 0.15rem;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #111827;
    border-bottom-color: #2563eb;
}

.nav-link.active {
    color: #111827;
    border-bottom-color: #2563eb;
}

/* Mobile navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    background-color: #111827;
    display: block;
    margin: 4px 0;
}

/* Hero */
.hero {
    background: radial-gradient(circle at top left, #eff6ff 0, #ffffff 40%, #ecfdf5 100%);
    padding: 3.5rem 0 3rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: center;
}

.hero-kicker {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    max-width: 36rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.hero-image img {
    width: 100%;
    border-radius: 1.25rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    object-fit: cover;
}

/* Cards & Articles */
.section-header {
    margin-bottom: 2rem;
    max-width: 720px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.card-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.35rem;
    margin-bottom: 0.75rem;
}

.card-link {
    font-weight: 600;
    font-size: 0.9rem;
}

.article-list .article-preview {
    background-color: #ffffff;
    border-radius: 0.9rem;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.article-readmore {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Article pages */
.article {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0 3rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    margin-top: 1.7rem;
}

.article-content h3 {
    margin-top: 1.25rem;
}

.article-content ul {
    padding-left: 1.15rem;
}

.article-content li {
    margin-bottom: 0.35rem;
}

/* Breadcrumbs */
.breadcrumb-nav {
    background-color: #e5e7eb;
    border-bottom: 1px solid #d1d5db;
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: #4b5563;
}

.breadcrumb li::after {
    content: "/";
    margin-left: 0.35rem;
    color: #9ca3af;
}

.breadcrumb li:last-child::after {
    content: "";
    margin: 0;
}

.breadcrumb a {
    color: #2563eb;
}

/* Two-column layout */
.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.75rem;
}

.feature-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: #059669;
}

/* Forms */
.contact-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #f9fafb;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
    outline: none;
    background-color: #ffffff;
}

.form-error {
    display: block;
    color: #b91c1c;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.form-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.75rem;
}

.form-message {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
.site-footer {
    background-color: #111827;
    color: #d1d5db;
    margin-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    padding: 2.5rem 0 1.5rem;
}

.footer-logo {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.footer-text {
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: #e5e7eb;
}

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

.footer-links li {
    margin-bottom: 0.3rem;
}

.footer-links a {
    color: #9ca3af;
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding: 0.9rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Utilities */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mb-3 { margin-bottom: 0.75rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }

    .two-column {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0.7rem 0;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 56px 0 auto 0;
        background-color: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        transform: translateY(-120%);
        transition: transform 0.18s ease-out;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1.25rem 1rem;
        gap: 0.75rem;
    }

    body.nav-open .main-nav {
        transform: translateY(0);
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        text-align: left;
    }

    .hero-image {
        order: -1;
    }

    .hero {
        padding-top: 2.6rem;
    }

    .article {
        padding: 1.4rem;
        margin-top: 1.4rem;
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 0.35rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }
}
