:root {
    --bg: #f4f6f8;
    --text: #1f2933;
    --nav: #0a2540;
    --card: #ffffff;
    --accent: #00a3c4;
    --accent-dark: #0284a8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #eef4f8 0%, var(--bg) 30%);
    color: var(--text);
}

/* Navbar */
.navbar {
    background: var(--nav);
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    letter-spacing: 0.4px;
}

.navbar nav a {
    color: #fff;
    margin-left: 1.5rem;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
}

.navbar nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
}

.hero {
    margin: 0.5rem 0 2rem;
    padding: 2.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a2540, #164b7d 70%, #0f7fa5);
    color: #fff;
    box-shadow: 0 15px 30px rgba(10, 37, 64, 0.2);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.hero h2 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    margin-bottom: 0.8rem;
}

.hero-copy {
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.cta {
    display: inline-block;
    text-decoration: none;
    color: #002838;
    background: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
}

.cta:hover {
    background: #e9f8ff;
}

.stats {
    margin: 2rem 0 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stats article {
    background: var(--card);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.stats h3 {
    margin-bottom: 0.3rem;
}

/* Posts */
.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.post {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.post img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post h2 {
    padding: 1rem;
}

.post p {
    padding: 0 1rem 1.5rem;
    line-height: 1.6;
}

/* Feature */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem 0;
    align-items: center;
}

.feature img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.15);
}

.feature-text {
    background: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.feature-text h2 {
    margin-bottom: 1rem;
}

.feature-text p + p {
    margin-top: 0.8rem;
}

/* Gallery */
.gallery h2 {
    margin-bottom: 1rem;
}

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

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--nav);
    color: #fff;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1.2rem;
    }

    .navbar {
        padding: 1rem 1.2rem;
    }

    .navbar nav a {
        margin-left: 0.9rem;
        font-size: 0.95rem;
    }

    .hero {
        padding: 1.8rem 1.4rem;
    }

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

/* AI Chat Widget */
.chat-toggle {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    background: linear-gradient(135deg, #0f7fa5, #0a2540);
    color: #fff;
    box-shadow: 0 12px 24px rgba(10, 37, 64, 0.35);
    z-index: 1000;
}

.chat-toggle:hover {
    transform: translateY(-2px);
}

.chat-widget {
    position: fixed;
    right: 1.2rem;
    bottom: 5.8rem;
    width: min(360px, calc(100vw - 2rem));
    height: 500px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
}

.chat-widget.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: var(--nav);
    color: #fff;
    padding: 0.9rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.chat-header h2 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.chat-header p {
    font-size: 0.8rem;
    opacity: 0.85;
}

.chat-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f6f9fb;
}

.chat-message {
    max-width: 90%;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    line-height: 1.4;
    font-size: 0.95rem;
}

.chat-message.user {
    margin-left: auto;
    background: #0f7fa5;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-message.bot {
    background: #e5ecf3;
    color: #15212b;
    border-bottom-left-radius: 4px;
}

.chat-message.typing {
    font-style: italic;
    opacity: 0.85;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.quick-reply {
    border: 1px solid #bfd6e8;
    background: #fff;
    color: #154669;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    cursor: pointer;
}

.quick-reply:hover {
    background: #e7f5ff;
}

.chat-form {
    display: flex;
    gap: 0.55rem;
    padding: 0.8rem;
    border-top: 1px solid #e2e8ef;
    background: #fff;
}

.chat-form input {
    flex: 1;
    border: 1px solid #c9d8e8;
    border-radius: 8px;
    padding: 0.62rem 0.7rem;
    font-size: 0.92rem;
}

.chat-form button {
    border: none;
    border-radius: 8px;
    background: var(--accent-dark);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
}

.chat-form button:hover {
    background: #036e8a;
}

@media (max-width: 768px) {
    .chat-widget {
        right: 0.6rem;
        bottom: 5.4rem;
        height: 64vh;
    }

    .chat-toggle {
        right: 0.8rem;
        bottom: 0.8rem;
        width: 60px;
        height: 60px;
    }
}
