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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #172033;
    line-height: 1.6;
}


/* Navigation */

header {
    border-bottom: 1px solid #e8ebf0;
    background: #ffffff;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 20px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: #0070f3;
}

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

.nav-links a {
    text-decoration: none;
    color: #172033;
    font-size: 15px;
    font-weight: 600;
}

.nav-links a:hover {
    color: #0070f3;
}


/* Hero */

.hero {
    max-width: 1200px;
    margin: auto;
    padding: 110px 30px 100px;
}


/* 
   Desktop Hero Layout
   Left side = existing hero content
   Right side = SAPwithSAI image + follow card
*/

.hero-content {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 70px;

    align-items: center;
}




/* New right-side section */

.hero-visual {
    width: 100%;
    max-width: 500px;
    text-align: center;
    justify-self: center;
}


.tagline {
    color: #0070f3;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.08;
    letter-spacing: -3px;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #0070f3;
}

.hero-text {
    font-size: 19px;
    color: #5d6675;
    max-width: 700px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.primary {
    background: #0070f3;
    color: white;
}

.secondary {
    border: 1px solid #d8dde5;
    color: #172033;
}


/* Sections */

.categories,
.articles {
    max-width: 1200px;
    margin: auto;
    padding: 80px 30px;
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading p {
    color: #0070f3;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.section-heading h2 {
    font-size: 36px;
    margin-top: 8px;
}


/* Category Cards */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.category-card {
    border: 1px solid #e5e8ed;
    border-radius: 12px;
    padding: 30px;
    background: #ffffff;
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.category-card p {
    color: #687282;
    margin-bottom: 20px;
}

.category-card a,
.article-card a {
    color: #0070f3;
    text-decoration: none;
    font-weight: 700;
}


/* Articles */

.articles {
    background: #f7f9fc;
    max-width: none;
    padding-left: max(30px, calc((100% - 1140px) / 2));
    padding-right: max(30px, calc((100% - 1140px) / 2));
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
}

.article-category {
    color: #0070f3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.article-card h3 {
    font-size: 21px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.article-card p {
    color: #687282;
    margin-bottom: 20px;
}


/* Footer */

footer {
    background: #101522;
    color: white;
    padding: 45px 30px;
}

.footer-content {
    max-width: 1140px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #aeb6c4;
    margin-top: 8px;
}


/* Mobile */

@media (max-width: 800px) {

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .category-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

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

}


/* About Page */

.about-content {
    max-width: 850px;
}

.about-content p {
    font-size: 19px;
    color: #5d6675;
    margin-bottom: 20px;
    line-height: 1.8;
}


/* ============================= */
/* Blog Article */
/* ============================= */

.blog-article {
    max-width: 900px;
    margin: auto;
    padding: 60px 30px 100px;
}


/* Breadcrumb */

.breadcrumb {
    font-size: 14px;
    color: #7a8493;
    margin-bottom: 35px;
}

.breadcrumb a {
    color: #0070f3;
    text-decoration: none;
}


/* Article Header */

.article-header {
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 52px;
    line-height: 1.15;
    letter-spacing: -2px;
    margin: 15px 0 25px;
}

.article-intro {
    font-size: 20px;
    line-height: 1.7;
    color: #687282;
    max-width: 800px;
}

.article-meta {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    font-size: 14px;
    color: #7a8493;
}


/* Table of Contents */

.table-of-contents {
    background: #f7f9fc;
    border: 1px solid #e5e8ed;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 40px 0;
}

.table-of-contents h3 {
    margin-bottom: 15px;
}

.table-of-contents ul {
    padding-left: 20px;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #0070f3;
    text-decoration: none;
}


/* Article Content */

.article-content {
    font-size: 18px;
    line-height: 1.85;
    color: #303846;
}

.article-content h2 {
    font-size: 32px;
    line-height: 1.3;
    margin-top: 55px;
    margin-bottom: 20px;
    color: #172033;
}

.article-content p {
    margin-bottom: 22px;
}

.article-content ul {
    margin: 20px 0 30px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}


/* Info Box */

.info-box {
    background: #f0f7ff;
    border-left: 4px solid #0070f3;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 35px 0;
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    color: #0070f3;
}

.info-box p {
    margin-bottom: 0;
}


/* Author Box */

.author-box {
    border-top: 1px solid #e5e8ed;
    margin-top: 60px;
    padding-top: 30px;
}

.author-box strong {
    font-size: 20px;
}

.author-box p {
    color: #687282;
    margin-top: 5px;
}


/* Mobile Article */

@media (max-width: 800px) {

    .blog-article {
        padding: 40px 20px 70px;
    }

    .article-header h1 {
        font-size: 38px;
    }

    .article-intro {
        font-size: 18px;
    }

    .article-meta {
        flex-wrap: wrap;
    }

    .article-content {
        font-size: 17px;
    }

    .article-content h2 {
        font-size: 27px;
    }

}


/* ============================= */
/* Reading Progress */
/* ============================= */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #0070f3;
    z-index: 9999;
}


/* ============================= */
/* Back To Top */
/* ============================= */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: #172033;
    color: white;

    font-size: 20px;

    cursor: pointer;

    display: none;

    align-items: center;
    justify-content: center;

    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.back-to-top.show {
    display: flex;
}


/* Smooth scrolling */

html {
    scroll-behavior: smooth;
}


/* ============================= */
/* Blog Hub */
/* ============================= */

.blog-section {
    max-width: 1200px;
    margin: auto;
    padding: 70px 30px 100px;
}


/* Blog Controls */

.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 35px;
}

.search-box {
    flex: 1;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.search-box input:focus {
    border-color: #0070f3;
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-button {
    border: 1px solid #dfe3e8;
    background: white;
    padding: 11px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.filter-button.active {
    background: #0070f3;
    color: white;
    border-color: #0070f3;
}

.blog-results {
    margin-bottom: 25px;
}

.blog-results p {
    color: #687282;
    font-size: 15px;
}

.no-results {
    display: none;
    text-align: center;
    padding: 70px 20px;
}

@media (max-width: 800px) {

    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }

}


/* ============================= */
/* Mobile Navigation */
/* ============================= */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #172033;
}


@media (max-width: 800px) {

    .navbar {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        padding: 18px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        background: #ffffff;

        border-top: 1px solid #e8ebf0;
        border-bottom: 1px solid #e8ebf0;

        padding: 15px 20px;

        flex-direction: column;
        gap: 0;

        z-index: 1000;
    }

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

    .nav-links a {
        padding: 14px 5px;
        border-bottom: 1px solid #f0f2f5;
        font-size: 16px;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

}


/* ============================= */
/* Hero Enhancement */
/* ============================= */

.hero-subtext {
    font-size: 15px;
    color: #7a8493;
    margin-top: -18px;
    margin-bottom: 30px;
}


/* ============================= */
/* Category Card Enhancement */
/* ============================= */

.category-label {
    color: #0070f3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    margin-bottom: 12px;
}

.category-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
}


/* ============================= */
/* Latest Article Enhancement */
/* ============================= */

.article-card {
    border: 1px solid #e8ebf0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8a93a1;
    font-size: 13px;
    margin-bottom: 20px;
}


/* ============================= */
/* Featured Article */
/* ============================= */

.featured-section {
    max-width: 1200px;
    margin: auto;
    padding: 80px 30px;
}

.featured-content {
    background: #f0f7ff;
    border: 1px solid #dcecff;
    border-radius: 16px;
    padding: 45px;
    max-width: 100%;
}

.featured-label {
    color: #0070f3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.featured-content h2 {
    font-size: 34px;
    line-height: 1.25;
    max-width: 800px;
    margin-bottom: 15px;
}

.featured-content p {
    color: #687282;
    font-size: 17px;
    max-width: 800px;
    margin-bottom: 20px;
}

.featured-meta {
    display: flex;
    gap: 8px;
    color: #8a93a1;
    font-size: 13px;
    margin-bottom: 25px;
}

.featured-button {
    display: inline-block;
    background: #0070f3;
    color: white;
    padding: 13px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.featured-button:hover {
    opacity: 0.9;
}


/* Featured Mobile */

@media (max-width: 800px) {

    .featured-section {
        padding: 60px 20px;
    }

    .featured-content {
        padding: 30px;
    }

    .featured-content h2 {
        font-size: 28px;
    }

}


/* ========================================
   HOMEPAGE FOLLOW SECTION
======================================== */


/* Right-side SAPwithSAI image */

.hero-community-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto 25px;
}


/* Follow card (social links) */

.follow-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    container-type: inline-size;
}

.follow-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.follow-card p {
    margin-bottom: 18px;
    line-height: 1.6;
}

/* all buttons side by side on one line */
.follow-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.follow-btn {
    flex: 1 1 0;
    min-width: 118px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.3s ease;
}

.follow-btn:hover {
    transform: translateY(-2px);
}

.follow-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* narrow card (small screens): icons only, still on one line */
@container (max-width: 380px) {

    .follow-btn {
        min-width: 0;
        padding: 12px 10px;
    }

    .follow-btn svg {
        width: 24px;
        height: 24px;
    }

    .follow-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}


/* ========================================
   HERO MOBILE
======================================== */

@media (max-width: 800px) {

    .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
}

.hero-visual {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

    .hero-community-image {
        max-width: 420px;
    }

}


/* ========================================
   CONNECT AUTHOR BUTTON
======================================== */

.connect-author-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 28px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s ease;
}

.connect-author-btn:hover {
    transform: translateY(-2px);
}

/* =========================================
   ABOUT PAGE HERO
   ========================================= */

.about-hero {
    padding: 120px 0 100px;
}

.about-hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-hero .tagline {
    margin-bottom: 45px;
}

.about-hero h1 {
    max-width: 850px;
    margin: 0 0 70px;
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #182238;
}

.about-hero h1 span {
    color: #0877f9;
}

.about-hero .hero-text {
    max-width: 700px;
    margin-bottom: 50px;
    font-size: 20px;
    line-height: 1.6;
    color: #5d6675;
}

.connect-author-btn {
    display: inline-block;
    padding: 16px 28px;

    background: #2864e8;
    color: #ffffff;

    text-decoration: none;
    font-size: 17px;
    font-weight: 700;

    border-radius: 8px;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.connect-author-btn:hover {
    background: #1456d9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


/* =========================================
   ABOUT PAGE - MOBILE
   ========================================= */

@media (max-width: 768px) {

    .about-hero {
        padding: 80px 20px 70px;
    }

    .about-hero-content {
        width: 100%;
    }

    .about-hero .tagline {
        margin-bottom: 30px;
    }

    .about-hero h1 {
        font-size: 44px;
        line-height: 1.08;
        letter-spacing: -1px;
        margin-bottom: 40px;
    }

    .about-hero .hero-text {
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 35px;
    }

    .connect-author-btn {
        font-size: 16px;
        padding: 14px 22px;
    }
}

/* =========================================
   BLOG PAGE HERO
   ========================================= */

.blog-hero {
    padding: 100px 0 80px;
}

.blog-hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-hero .tagline {
    margin-bottom: 28px;
}

.blog-hero h1 {
    max-width: 900px;
    margin: 0 0 32px;

    font-size: 64px;
    line-height: 1.0;
    letter-spacing: -2px;

    color: #182238;
}

.blog-hero h1 span {
    color: #0877f9;
}

.blog-hero .hero-text {
    max-width: 800px;

    margin: 0;

    font-size: 20px;
    line-height: 1.6;

    color: #5d6675;
}


/* =========================================
   BLOG PAGE - MOBILE
   ========================================= */

@media (max-width: 768px) {

    .blog-hero {
        padding: 70px 20px 60px;
    }

    .blog-hero-content {
        width: 100%;
    }

    .blog-hero .tagline {
        margin-bottom: 22px;
    }

    .blog-hero h1 {
        font-size: 44px;
        line-height: 1.0;
        letter-spacing: -1px;
        margin-bottom: 28px;
    }

    .blog-hero .hero-text {
        font-size: 18px;
        line-height: 1.6;
    }
}

/* =========================================
   EMPLOYEE CENTRAL PAGE HERO
   ========================================= */

.ec-hero {
    padding: 100px 0 80px;
}

.ec-hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.ec-hero .tagline {
    margin-bottom: 28px;
}

.ec-hero h1 {
    max-width: 900px;
    margin: 0 0 32px;

    font-size: 64px;
    line-height: 1.0;
    letter-spacing: -2px;

    color: #182238;
}

.ec-hero h1 span {
    color: #0877f9;
}

.ec-hero .hero-text {
    max-width: 800px;

    margin: 0;

    font-size: 20px;
    line-height: 1.4;

    color: #5d6675;
}


/* =========================================
   EMPLOYEE CENTRAL - MOBILE
   ========================================= */

@media (max-width: 768px) {

    .ec-hero {
        padding: 70px 20px 60px;
    }

    .ec-hero-content {
        width: 100%;
    }

    .ec-hero .tagline {
        margin-bottom: 22px;
    }

    .ec-hero h1 {
        font-size: 44px;
        line-height: 1.0;
        letter-spacing: -1px;
        margin-bottom: 28px;
    }

    .ec-hero .hero-text {
        font-size: 18px;
        line-height: 1.4;
    }
}

.inner-hero .hero-content {
    display: block;
    width: 100%;
}

.inner-hero .hero-content {
    display: block;
    width: 100%;
}

.inner-hero .hero-content {
    display: block;
    width: 100%;
}

/* ========================================
   ADDED: coming soon labels, footer disclaimer,
   (older note)
======================================== */

.coming-soon {
    display: inline-block;
    color: #8a93a3;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-disclaimer {
    max-width: 1140px;
    margin: 25px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    line-height: 1.6;
    color: #8f99ab;
    text-align: center;
}



/* ========================================
   ARTICLE EXTRAS: headings, lists, tables,
   code, diagrams, warning box, series box
======================================== */

.article-content h3 {
    font-size: 22px;
    line-height: 1.4;
    margin: 36px 0 12px;
    color: #172033;
}

.article-content ol {
    margin: 20px 0 30px;
    padding-left: 30px;
}

.article-content ul ul {
    margin: 10px 0 10px;
}

.article-content a {
    color: #0070f3;
}

.article-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: #eef2f7;
    color: #172033;
    padding: 2px 6px;
    border-radius: 5px;
    word-break: break-word;
}

.article-content pre {
    background: #0f172a;
    color: #e5edf7;
    padding: 18px 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 22px 0 30px;
    font-size: 15px;
    line-height: 1.65;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
    word-break: normal;
}

.table-wrap {
    overflow-x: auto;
    margin: 25px 0 35px;
    border: 1px solid #e5e8ed;
    border-radius: 10px;
}

.article-content table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.6;
}

.article-content th {
    background: #f4f7fb;
    color: #172033;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e8ed;
}

.article-content td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f5;
    vertical-align: top;
}

.article-content tr:last-child td {
    border-bottom: none;
}

.warning-box {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 35px 0;
}

.warning-box strong {
    display: block;
    margin-bottom: 8px;
    color: #b45309;
}

.warning-box p {
    margin-bottom: 0;
}

.diagram {
    margin: 30px 0 38px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e5e8ed;
    border-radius: 12px;
    overflow-x: auto;
}

.diagram svg {
    display: block;
    width: 100%;
    min-width: 640px;
    height: auto;
}

.diagram figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: #687282;
    text-align: center;
}

.series-box {
    background: #f7f9fc;
    border: 1px solid #e5e8ed;
    border-radius: 12px;
    padding: 22px 26px;
    margin: 50px 0 10px;
}

.series-box strong {
    display: block;
    margin-bottom: 10px;
    color: #172033;
}

.series-box ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.series-box li {
    margin-bottom: 6px;
}

.series-box li.current {
    color: #687282;
}

.series-box .series-next {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 700px) {
    .diagram figcaption::after {
        content: " (swipe sideways to see the whole diagram)";
    }
}


/* ========================================
   Logo in the header links to the home page
======================================== */

a.logo {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a.logo:hover {
    opacity: 0.85;
}
