/*
Theme Name: Viewary
Theme URI: https://viewary.net/
Author: Viewary
Description: Custom theme for Viewary
Version: 1.0
*/


/* ---------- BASIC ---------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
}


/* ---------- HEADER ---------- */

.site-header {
    width: 100%;
}


/* ---------- HOME BACKGROUND ---------- */

body.home {
    background: #e7e7e7;
}



/* ---------- BANNER ---------- */

.site-banner {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
}

.site-banner a {
    color: #fff;
    text-decoration: none;
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 6px;
}


/* ---------- MENU ---------- */

.main-menu {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 40px;

    padding: 18px 20px;

    position: sticky;
    top: 0;

    background: #fff;

    border-bottom: 1px solid #ddd;

    z-index: 1000;
}


.main-menu.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}


/* Top-level links */

.main-menu > a,
.menu-category-link {
    color: #222;
    text-decoration: none;

    font-size: 20px;
    font-weight: bold;

    text-transform: uppercase;
}


/* Category container */

.menu-category {
    position: relative;
}


/* Small arrow */

.menu-arrow {
    display: inline-block;
    margin-left: 5px;
    font-size: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}


/* Hover */

.main-menu > a:hover,
.menu-category-link:hover {
    text-decoration: underline;
}


/* ---------- SUBMENU ---------- */


.submenu {
    position: absolute;

    top: 100%;
    left: 50%;

    transform: translateX(-50%);

    min-width: 180px;

    padding: 18px 0 8px;

    background: #fff;

    border: 1px solid #ddd;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

    z-index: 1000;

    display: none;
}


/* Submenu links */

.submenu a {
    display: block;

    padding: 11px 18px;

    color: #222;
    text-decoration: none;

    font-size: 13px;
    font-weight: bold;

    text-transform: uppercase;

    white-space: nowrap;
}


/* Submenu hover */

.submenu a:hover {
    background: #f5f5f5;
}


/* Show submenu */

.menu-category:hover .submenu {
    display: block;
}


/* ---------- CONTENT ---------- */

.site-content {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 25px;
}


body.home .site-content {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ---------- FOOTER ---------- */

.site-footer {
    margin-top: 100px;
    padding: 30px;
    text-align: center;
    border-top: 1px solid #ddd;
    color: #777;
}


/* ---------- HOME INTRO ---------- */

.hero {
    width: 70%;
    max-width: 1400px;

    margin: 70px auto 0;
    padding: 60px 70px;

    background: #fff;

    border-radius: 18px;

    text-align: justify;
}

.hero h1 {
    margin: 0 0 40px;

    font-size: 52px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -1.5px;
    text-align: center;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;

    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.hero-text p {
    margin: 0 0 25px;
}

.hero-text .hero-ending {
    margin-top: 40px;

    font-size: 19px;
    font-weight: 600;
    color: #333;
}


/* ---------- CATEGORY HEADER ---------- */

.category-header {
    padding: 70px 20px 55px;
    text-align: center;
}

.category-header h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -1px;
}






/* ---------- ARTICLES ---------- */

.articles {
    width: 70%;
    max-width: 1400px;

    margin: 20px auto 80px;
    padding: 50px 50px 70px;

    background: #fff;

    border-radius: 18px;
}

.articles > h2 {
    margin-bottom: 40px;
    font-size: 28px;
}



/* ---------- ARTICLE CATEGORIES ---------- */

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.article-category {
    display: inline-flex;
    align-items: center;

    padding: 6px 12px;

    border: 1px solid transparent;
    border-radius: 6px;

    color: #fff;
    text-decoration: none;

    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    transition: opacity 0.2s ease;
}

.article-category:hover {
    opacity: 0.75;
}


.single-article-categories {
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 18px;
}




/* ---------- CATEGORY COLORS ---------- */

.article-category.category-color-1 {
    background: #9febe7;
}

.article-category.category-color-2 {
    background: #c4aef1;
}

.article-category.category-color-3 {
    background: #98dbb5;
}

.article-category.category-color-4 {
    background: #7ebfeb;
}

.article-category.category-color-5 {
    background: #e5d27a;
}

.article-category.category-color-6 {
    background: #a7eb8d;
}

.article-category.category-color-7 {
    background: #99d0d4;
}

.article-category.category-color-8 {
    background: #e79dbc;
}







/* ---------- PAGINATION ---------- */

.pagination {
    margin: 70px auto 20px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    color: #222;
    text-decoration: none;

    font-size: 16px;
    font-weight: bold;

    border: 1px solid #ddd;
}

.pagination .page-numbers:hover {
    background: #f5f5f5;
}

.pagination .page-numbers.current {
    background: #222;
    color: #fff;
    border-color: #222;
}












/* ---------- ARTICLE CARD ---------- */

.article-card {
    display: flex;
    height: 320px;
    margin-bottom: 40px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    background: #fff;
}


/* ---------- ARTICLE IMAGE ---------- */

.article-image {
    width: 50%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}


/* ---------- ARTICLE CARD TEXT ---------- */

.article-info {
    width: 50%;
    min-width: 0;
    padding: 25px 40px 30px;
    display: flex;
    flex-direction: column;
}

.article-info h3 {
    margin: 0 0 20px;
    font-size: 28px;
    line-height: 1.2;
}

.article-info p {
    margin: 0 0 30px;
    font-size: 17px;
    line-height: 1.6;
    color: #666;
}

.article-info a {
    margin-top: auto;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

.article-info a:hover {
    text-decoration: underline;
}


/* ---------- SINGLE ARTICLE ---------- */

.single-article {
    max-width: 1500px;
    margin: 70px auto 100px;
    padding: 0 25px;
}


/* Article header */

.single-article-header {
    max-width: 1100px;
    margin: 70px auto 60px;
    text-align: center;
}

.single-article-header h1 {
    margin: 0 auto 22px;
    max-width: 1000px;
    font-size: 52px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.single-article-meta {
    font-size: 13px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Main article image */

.single-article-image {
    width: 100%;
    height: 500px;
    margin-bottom: 55px;
    overflow: hidden;
}

.single-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Article content */

.single-article-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 70px;

    background: #faf9f4;
    border: 1px solid #eeeae0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);

    font-size: 19px;
    line-height: 1.85;
    color: #333;
}

.single-article-content p {
    margin: 0 0 30px;
    text-align: justify;
}


/* Article links */

.single-article-content a {
    color: #222;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.single-article-content a:hover {
    opacity: 0.6;
}


/* Article headings */

.single-article-content h2 {
    margin: 65px 0 25px;
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.single-article-content h3 {
    margin: 50px 0 20px;
    font-size: 25px;
    line-height: 1.3;
}


/* Article lists */

.single-article-content ul,
.single-article-content ol {
    margin: 0 0 35px;
    padding-left: 30px;
}

.single-article-content li {
    margin-bottom: 12px;
    padding-left: 5px;
}


/* Article quotes */

.single-article-content blockquote {
    margin: 50px 0;
    padding: 10px 0 10px 30px;
    border-left: 3px solid #222;
    font-size: 23px;
    line-height: 1.6;
    font-style: italic;
    color: #555;
}


/* Images inside article */

.single-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 45px auto;
}

.single-article-content figure {
    margin: 50px 0;
}

.single-article-content figcaption {
    margin-top: -30px;
    text-align: center;
    font-size: 13px;
    color: #888;
}


/* Horizontal separator */

.single-article-content hr {
    margin: 60px 0;
    border: 0;
    border-top: 1px solid #ddd;
}


/* First paragraph */

.single-article-content > p:first-child {
    font-size: 21px;
    line-height: 1.75;
}


/* Back to articles */

.single-article-back {
    max-width: 760px;
    margin: 70px auto 0;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.single-article-back a {
    color: #222;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

.single-article-back a:hover {
    text-decoration: underline;
}



/* Wide layout for single articles */

.site-content:has(.single-article) {
    max-width: 1600px;
}



/* ---------- ARTICLE NAVIGATION ---------- */

.article-navigation {
    max-width: 1200px;
    margin: 90px auto 0;
    padding-top: 35px;
    border-top: 1px solid #ddd;

    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.article-nav-item {
    width: 50%;
}

.article-nav-next {
    text-align: right;
}

.article-nav-label {
    display: block;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: #999;
}

.article-nav-item a {
    color: #222;
    text-decoration: none;
    font-size: 19px;
    line-height: 1.5;
}

.article-nav-item a:hover {
    text-decoration: underline;
}


/* ---------- BACK TO ARTICLES ---------- */

.single-article-back {
    max-width: 1200px;
    margin: 55px auto 0;
    padding-top: 25px;
    border-top: 1px solid #eee;
    text-align: center;
}

.single-article-back a {
    color: #222;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.single-article-back a:hover {
    text-decoration: underline;
}




/* ---------- ARTICLE ENDING ---------- */

.article-ending {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 75px auto 10px;
}

.article-ending span {
    display: block;
    width: 6px;
    height: 6px;
    background: #777;
    border-radius: 50%;
}

.article-ending span:nth-child(2) {
    width: 9px;
    height: 9px;
    background: #222;
}


/* ---------- STATIC PAGES ---------- */

.static-page {
    max-width: 1200px;
    margin: 70px auto 100px;
    padding: 0 25px;
}

.static-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.static-page-header h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.static-page-content {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;

    padding: 55px 70px;

    background: #faf9f4;
    border: 1px solid #eeeae0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);

    font-size: 19px;
    line-height: 1.85;
    color: #333;
}

.static-page-content p {
    margin: 0 0 30px;
}

.static-page-content h2 {
    margin: 55px 0 25px;
    font-size: 30px;
}

.static-page-content a {
    color: #222;
}




@media (max-width: 1200px) {

    .article-card {
        flex-direction: column;
        height: auto;
    }

    .article-image {
        width: 100%;
        height: 300px;
    }

    .article-info {
        width: 100%;
        padding: 35px;
        min-height: 280px;
    }

}





/* ---------- MOBILE ---------- */

@media (max-width: 700px) {


    .category-header {
        padding: 45px 20px 35px;
    }

    .category-header h1 {
        font-size: 32px;
    }

    .pagination {
        margin-top: 50px;
    }

    .pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .main-menu {
        flex-wrap: wrap;
        gap: 18px 25px;
        padding: 15px 15px;
    }

    .main-menu > a,
    .menu-category-link {
        font-size: 13px;
    }

    .hero {
        width: 92%;
        padding: 40px 25px;
        margin-top: 40px;
        border-radius: 14px;
    }

    .articles {
        width: 92%;
        padding: 30px 15px 50px;
        margin-top: 30px;
        border-radius: 14px;
    }



    /* Article cards */

    .article-card {
        flex-direction: column;
        height: auto;
    }

    .article-image {
        width: 100%;
        height: 250px;
        flex-shrink: 0;
    }

    .article-info {
        width: 100%;
        padding: 30px;
        min-height: 250px;
    }


    /* Single article */

    .single-article {
        margin-top: 40px;
    }

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

    .single-article-image {
        height: 280px;
        margin-bottom: 40px;
    }

    .single-article-content {
        width: 100%;
	padding: 35px 25px; 
        font-size: 17px;
        line-height: 1.75;
    }

    .single-article-content > p:first-child {
        font-size: 19px;
    }

    .single-article-content h2 {
        margin-top: 50px;
        font-size: 27px;
    }

    .single-article-content h3 {
        margin-top: 40px;
        font-size: 22px;
    }

    .single-article-content blockquote {
        margin: 40px 0;
        padding-left: 20px;
        font-size: 20px;
    }


    .static-page {
        margin-top: 40px;
    }

    .static-page-header h1 {
        font-size: 36px;
    }

    .static-page-content {
        width: 100%;
        padding: 35px 25px;
        font-size: 17px;
        line-height: 1.75;
    }






}

