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

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #f0f4ff;
    color: #1a1a2e;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a5276;
    padding: 14px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.lang-btn {
    background: transparent;
    color: #cce5ff;
    border: 1px solid #cce5ff;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 8px;
    transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #1a5276, #27ae60);
    color: white;
    text-align: center;
    padding: 70px 20px;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero p {
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 28px;
    opacity: 0.92;
}

.hero-btn {
    background: #fff;
    color: #1a5276;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s;
}

.hero-btn:hover {
    background: #d5f5e3;
}

/* TOPIC CARDS */
.topics {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 50px 20px;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 24px;
    width: 240px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

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

.card span {
    font-size: 2.2rem;
}

.card h3 {
    margin: 12px 0 8px;
    font-size: 1rem;
    color: #1a5276;
}

.card p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

/* CHAT SECTION */
.chat-section {
    max-width: 680px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.chat-section h2 {
    text-align: center;
    font-size: 1.2rem;
    color: #1a5276;
    margin-bottom: 16px;
}

.chat-window {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    min-height: 220px;
    max-height: 340px;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.bubble {
    max-width: 75%;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.bubble.user {
    background: #1a5276;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bubble.bot {
    background: #e8f8f0;
    color: #1a1a2e;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-input-row {
    display: flex;
    gap: 10px;
}

.chat-input-row input {
    flex: 1;
    padding: 12px 18px;
    border: 1.5px solid #cce5ff;
    border-radius: 30px;
    font-size: 0.95rem;
    outline: none;
    font-family: 'Poppins', Arial, sans-serif;
    transition: border 0.2s;
}

.chat-input-row input:focus {
    border-color: #27ae60;
}

.chat-input-row button {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'Poppins', Arial, sans-serif;
    transition: background 0.2s;
}

.chat-input-row button:hover {
    background: #1e8449;
}

/* FOOTER */
footer {
    background: #1a5276;
    color: #cce5ff;
    text-align: center;
    padding: 18px;
    font-size: 0.82rem;
}

/* TABLET */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
    .card { width: calc(50% - 20px); }
    .chat-section { padding: 0 16px; }
}

/* MOBILE */
@media (max-width: 480px) {
    .navbar { padding: 12px 16px; }
    .logo { font-size: 1.1rem; }
    .lang-btn { padding: 5px 10px; font-size: 0.78rem; margin-left: 5px; }

    .hero { padding: 40px 16px; }
    .hero h1 { font-size: 1.3rem; }
    .hero p { font-size: 0.88rem; }
    .hero-btn { padding: 10px 24px; font-size: 0.9rem; }

    .topics { padding: 30px 16px; gap: 14px; }
    .card { width: 100%; padding: 20px 16px; }
    .card span { font-size: 1.8rem; }

    .chat-section { margin-bottom: 40px; padding: 0 12px; }
    .chat-section h2 { font-size: 1rem; }
    .chat-window { min-height: 200px; max-height: 280px; padding: 14px; }
    .bubble { max-width: 88%; font-size: 0.85rem; padding: 8px 12px; }

    .chat-input-row input { padding: 10px 14px; font-size: 0.88rem; }
    .chat-input-row button { padding: 10px 16px; font-size: 0.88rem; }

    footer { font-size: 0.75rem; padding: 14px 10px; }
}
