/* =================================================
   RESET
================================================= */

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


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f7f8fa;

    color: #202124;

    line-height: 1.7;
}


img {
    display: block;

    width: 100%;

    height: auto;
}


a {
    color: inherit;

    text-decoration: none;
}



/* =================================================
   HEADER
================================================= */

.site-header {
    background: #ffffff;

    border-bottom: 1px solid #eeeeee;

    position: sticky;

    top: 0;

    z-index: 1000;
}


.header-inner {
    width: min(1200px, 94%);

    margin: auto;

    min-height: 64px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {
    font-size: 23px;

    font-weight: 800;

    letter-spacing: -1px;
}


.main-nav {
    display: none;

    gap: 25px;
}


.main-nav a {
    font-size: 14px;

    font-weight: 600;
}


.menu-button {
    border: 0;

    background: transparent;

    font-size: 25px;

    cursor: pointer;
}



/* =================================================
   MOBILE NAV
================================================= */

.mobile-nav {
    display: none;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;

    padding: 15px 6%;
}


.mobile-nav.active {
    display: grid;

    gap: 14px;
}


.mobile-nav a {
    font-weight: 600;
}



/* =================================================
   AD SPACES
================================================= */

.ad-container {
    background: #eeeeee;

    border: 1px dashed #cccccc;

    color: #777777;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;
}


.ad-container span {
    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.top-ad {
    width: min(1000px, 92%);

    min-height: 90px;

    margin: 20px auto;
}


.article-ad {
    min-height: 180px;

    margin: 40px 0;
}


.sidebar-ad {
    min-height: 250px;

    margin-bottom: 30px;
}


.bottom-ad {
    width: min(1000px, 92%);

    min-height: 120px;

    margin: 40px auto;
}



/* =================================================
   MAIN LAYOUT
================================================= */

.article-layout {
    width: min(1200px, 94%);

    margin: 30px auto;

    display: grid;

    grid-template-columns: 1fr;

    gap: 35px;
}


.article {
    background: #ffffff;

    padding: 22px;

    border-radius: 12px;
}



/* =================================================
   ARTICLE HEADER
================================================= */

.article-category {
    display: inline-block;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 10px;
}


.article-title {
    font-size: clamp(30px, 7vw, 52px);

    line-height: 1.1;

    letter-spacing: -1.5px;

    margin-bottom: 18px;
}


.article-introduction {
    font-size: 18px;

    color: #666666;

    margin-bottom: 18px;
}


.article-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    font-size: 13px;

    color: #777777;

    margin-bottom: 25px;
}



/* =================================================
   ARTICLE IMAGES
================================================= */

.article-image {
    margin: 35px 0;
}


.article-image img {
    border-radius: 10px;

    max-height: 550px;

    object-fit: cover;
}


.article-image figcaption {
    font-size: 12px;

    color: #777777;

    margin-top: 8px;

    text-align: center;
}


.featured-image {
    margin-top: 10px;
}



/* =================================================
   AUTOMATIC ARTICLE SPACING
================================================= */

.article-content > * {
    margin-top: 0;

    margin-bottom: 24px;
}


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


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

    line-height: 1.25;

    margin-top: 42px;

    margin-bottom: 18px;
}


.article-content h3 {
    font-size: 22px;

    margin-top: 35px;

    margin-bottom: 15px;
}


.article-content ul,
.article-content ol {
    padding-left: 25px;

    margin-top: 25px;

    margin-bottom: 30px;
}


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


.article-content blockquote {
    border-left: 4px solid #222;

    padding: 15px 20px;

    background: #f5f5f5;

    margin: 35px 0;

    font-size: 18px;

    font-style: italic;
}



/* =================================================
   CTA BOX
================================================= */

.category-cta {
    padding: 25px;

    margin: 40px 0;

    border-radius: 12px;

    background: #f1f3f5;

    border: 1px solid #e2e5e8;
}


.category-cta span {
    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;
}


.category-cta h3 {
    margin-top: 8px;

    margin-bottom: 8px;
}


.category-cta p {
    font-size: 15px;

    margin-bottom: 15px;
}


.category-cta a {
    display: inline-block;

    font-weight: 800;

    font-size: 14px;
}



/* =================================================
   DISCLAIMER
================================================= */

.article-disclaimer {
    padding: 18px;

    background: #fafafa;

    border: 1px solid #eeeeee;

    border-radius: 8px;

    margin-top: 45px;
}


.article-disclaimer strong {
    display: block;

    margin-bottom: 8px;
}


.article-disclaimer p {
    font-size: 13px;

    color: #666666;
}



/* =================================================
   SIDEBAR
================================================= */

.article-sidebar {
    display: none;
}


.sidebar-section {
    background: #ffffff;

    padding: 20px;

    border-radius: 10px;

    margin-bottom: 30px;
}


.sidebar-section h3 {
    margin-bottom: 18px;
}


.sidebar-post {
    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 12px;

    padding: 12px 0;

    border-bottom: 1px solid #eeeeee;
}


.sidebar-post:last-child {
    border-bottom: 0;
}


.sidebar-post-image {
    height: 65px;

    overflow: hidden;

    border-radius: 7px;
}


.sidebar-post-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}


.sidebar-post h4 {
    font-size: 14px;

    line-height: 1.35;
}


.sidebar-post small {
    color: #777777;

    font-size: 11px;
}



/* =================================================
   RELATED POSTS
================================================= */

.related-section {
    width: min(1200px, 94%);

    margin: 60px auto;
}


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


.section-heading span {
    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;
}


.section-heading h2 {
    font-size: 28px;

    margin-top: 5px;
}


.related-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}


.related-card {
    background: #ffffff;

    border-radius: 10px;

    overflow: hidden;

    border: 1px solid #eeeeee;
}


.related-image {
    aspect-ratio: 16 / 10;

    overflow: hidden;
}


.related-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}


.related-card-content {
    padding: 14px;
}


.related-card-content > span {
    font-size: 10px;

    font-weight: 800;
}


.related-card h3 {
    font-size: 16px;

    line-height: 1.3;

    margin: 6px 0;
}


.related-card p {
    font-size: 12px;

    color: #777777;

    line-height: 1.5;
}



/* =================================================
   FOOTER
================================================= */

.site-footer {
    background: #ffffff;

    border-top: 1px solid #eeeeee;

    text-align: center;

    padding: 30px 15px;

    color: #777777;

    font-size: 13px;
}



/* =================================================
   TABLET
================================================= */

@media (min-width: 700px) {

    .article {
        padding: 35px;
    }


    .related-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}



/* =================================================
   DESKTOP
================================================= */

@media (min-width: 1000px) {

    .menu-button {
        display: none;
    }


    .main-nav {
        display: flex;
    }


    .article-layout {
        grid-template-columns:
            minmax(0, 1fr)
            320px;

        align-items: start;
    }


    .article-sidebar {
        display: block;

        position: sticky;

        top: 90px;
    }


    .related-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }


    .article {
        padding: 45px;
    }


    .article-content p {
        font-size: 18px;
    }

}
