* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f7fb;
    color: #222;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 20px;
}

.nav-left img {
    height: 40px;
}

.nav-menu a {
    margin-left: 24px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.nav-menu a:hover {
    color: #007bff;
}

/* CAROUSEL */
.carousel-container {
    display: block;
    width: 300px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    background: white;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel img {
    width: 100%;
    flex-shrink: 0;
    height: 420px;
    object-fit: contain;
}

/* INTRO SECTION */
.intro-section {
    display: flex;
    align-items: center;
    gap: 40px;
    color: white;
    padding: 20px;
    text-align: left;
    background: linear-gradient(135deg, #0d6efd, #4dabff);
}

.intro-section > span {
    flex: 1;                  /* both take equal width */
}

.intro-section p {
    max-width: 800px;
    margin: auto;
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .intro-section {
        flex-direction: column;
    }
}

/* DOWNLOAD SECTION */
.download-section {
    margin: 20px auto;
    padding: 0 20px;
    text-align: center;
}

.button-blue {
    background: #0d6efd;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.download-card button:hover {
    opacity: 0.9;
}

/* ARTICLES */
.articles {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s;
}

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

.article-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.article-card div {
    padding: 16px;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 30px;
    color: #777;
}

/* ===== Article Wrapper Base ===== */
.article_wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.7;
    color: #1f2937;
}

/* ===== Markdown usually outputs <div> blocks sometimes ===== */
.article_wrapper div {
    margin: 16px 0;
}

/* ===== Paragraph (important for MD output) ===== */
.article_wrapper p {
    font-size: 1.05rem;
    margin: 14px 0;
    color: #374151;
}

/* ===== H1 ===== */
.article_wrapper h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-top: 32px;
    margin-bottom: 18px;
    font-weight: 750;
    color: #111827;
}

/* ===== H2 ===== */
.article_wrapper h2 {
    font-size: 1.6rem;
    line-height: 1.35;
    margin-top: 28px;
    margin-bottom: 14px;
    font-weight: 700;
    color: #111827;
}

/* ===== H3 (Markdown often uses) ===== */
.article_wrapper h3 {
    font-size: 1.3rem;
    margin-top: 24px;
    margin-bottom: 10px;
    font-weight: 650;
}

/* ===== Links ===== */
.article_wrapper a {
    color: #2563eb;
    text-decoration: none;
}

.article_wrapper a:hover {
    text-decoration: underline;
}

/* ===== Lists (Markdown common) ===== */
.article_wrapper ul,
.article_wrapper ol {
    padding-left: 22px;
    margin: 16px 0;
}

.article_wrapper li {
    margin: 6px 0;
}

/* ===== Code Block ===== */
.article_wrapper pre {
    background: #0f172a;
    color: #e5e7eb;
    padding: 18px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.9rem;
}

/* ===== Inline Code ===== */
.article_wrapper code {
    background: #eef2ff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.9em;
}

/* ===== Blockquote ===== */
.article_wrapper blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 16px;
    margin: 18px 0;
    color: #4b5563;
}

/* ===== Images ===== */
.article_wrapper img {
    max-width: 100%;
    border-radius: 12px;
    margin: 18px 0;
}

/* ===== Tables (Markdown optional but common) ===== */
.article_wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article_wrapper th,
.article_wrapper td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px;
    text-align: left;
}

.article_wrapper th {
    background: #f9fafb;
}

.btn-white {
    display: inline-block;
    padding: 10px 18px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.btn-white:hover {
    background: #f3f4f6;
}

.intro-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    max-width: 90%;
    background: #111;
    color: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 9999;
    font-size: 14px;
    line-height: 1.5;
}

.intro-floating h2 {
    margin-top: 0;
    font-size: 18px;
}
