@charset "utf-8";

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.75;
    font-size: 16px;
}

.container {
    width: 1200px;
    max-width: 92%;
    margin: 0 auto;
}

.clearfix:after {
    content: "";
    display: block;
    clear: both;
}

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 18px 0;
}

#logo {
    float: left;
}

#logo img {
    width: 319px;
    height: auto;
}
img {
    max-width:100%;
    height:auto;
    display:block;
}
nav {
    float: right;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

nav ul li a {
    color: #444;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: .3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #e74c3c;
}

/* Main */
#main {
    display: flex;
    gap: 40px;
    padding: 45px 0;
}

/* Article */
article {
    width: 820px;
}

article h1 {
    font-size: 38px;
    line-height: 1.25;
    color: #222;
    margin-bottom: 25px;
    font-weight: 700;
}

article h2 {
    font-size: 28px;
    color: #222;
    margin-top: 45px;
    margin-bottom: 18px;
    line-height: 1.35;
}

article h3 {
    font-size: 21px;
    margin-top: 30px;
    margin-bottom: 12px;
    color: #333;
}

article p {
    max-width: 760px;
    margin-bottom: 22px;
    color: #444;
    font-size: 17px;
}

article ul {
    margin: 20px 0 25px 30px;
}

article li {
    margin-bottom: 10px;
}

article blockquote {
    background: #f8f8f8;
    border-left: 5px solid #e74c3c;
    padding: 20px 25px;
    margin: 30px 0;
    font-size: 18px;
}

/* Table */
article table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

article th {
    background: #f5f5f5;
}

article th,
article td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}

/* Sidebar */
aside {
    width: 320px;
}

aside h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #222;
}

aside img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

aside p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 18px;
}

aside a {
    color: #e74c3c;
    text-decoration: none;
}

/* CTA */
.cta {
    background: #fff4f2;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

/* FAQ */
.faq {
    background: #fafafa;
    padding: 25px;
    border-radius: 10px;
}

/* Author Box */
.author-box {
    background: #f6f8fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 50px;
    font-size: 15px;
}

/* Mobile */
@media(max-width:900px){

    .container {
        max-width: 94%;
    }

    header {
        text-align: center;
    }

    #logo {
        float: none;
    }

    nav {
        float: none;
        margin-top: 20px;
    }

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

    #main {
        display: block;
        padding: 25px 0;
    }

    article,
    aside {
        width: 100%;
    }

    aside {
        margin-top: 40px;
    }

    article h1 {
        font-size: 30px;
    }

    article h2 {
        font-size: 24px;
    }

    article p {
        font-size: 16px;
    }
}

@media(max-width:480px){

    article h1 {
        font-size: 26px;
    }

    article h2 {
        font-size: 22px;
    }

    nav ul {
        display: block;
    }

    nav ul li {
        margin-bottom: 10px;
    }
}
