/*
Theme Name: 비랜딩 테마 1
Theme URI: https://kmong.com
Author: Sisac
Author URI: https://kmong.com
Description: 크몽 판매를 위한 프리미엄 워드프레스 테마 1입니다. 텍스트 및 이미지 커스터마이징이 가능합니다.
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme1
*/

/* ==========================================================================
   wplab.online Blanding Theme V2 Toss Tech Style Premium CSS
   ========================================================================== */

/* Load Pretendard web font */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

/* 1. Global Reset & Color Tokens */
body {
    background-color: #ffffff !important;
    color: #333d4b !important;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    line-height: 1.7 !important;
    margin: 0;
    padding: 0;
}

/* Container limits */
.container {
    max-width: 1060px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box;
}

/* Links */
a {
    color: #191f28 !important;
    text-decoration: none !important;
    transition: color 0.15s ease-in-out;
}
a:hover {
    color: #3182f6 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #191f28 !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.35;
    word-break: keep-all;
}

/* Header & Menu styles */
.site-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f2f4f6 !important;
    padding: 20px 0 !important;
}
.main-title {
    font-size: 22px !important;
    font-weight: 800 !important;
}
.main-navigation {
    background-color: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
}
.main-navigation .main-nav ul li a {
    color: #4e5968 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 0 16px !important;
}
.main-navigation .main-nav ul li:hover > a, 
.main-navigation .main-nav ul li.current-menu-item > a {
    color: #3182f6 !important;
    background-color: transparent !important;
}

/* 2. Blog Grid & Cards styling */
.blog-grid-header {
    text-align: center;
    padding: 60px 0 20px 0;
}
.blog-grid-header h1 {
    font-size: 32px !important;
    font-weight: 800 !important;
    margin-bottom: 8px;
}
.site-description {
    color: #6b7684 !important;
    font-size: 16px;
    margin-top: 0;
}

.blog-posts-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    column-gap: 32px !important;
    row-gap: 60px !important;
    padding: 40px 0 80px 0 !important;
}

/* Hero post spanning all 3 columns */
.hero-post-card {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 40px !important;
    align-items: center !important;
    padding-bottom: 50px !important;
    border-bottom: 1px solid #f2f4f6 !important;
    margin-bottom: 20px !important;
}
.hero-post-card .post-thumbnail-wrapper {
    width: 60% !important;
    flex-shrink: 0;
}
.hero-post-card .post-card-content {
    width: 40% !important;
}
.hero-post-card .post-card-title a {
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

/* Normal Post Cards */
.post-card {
    display: flex;
    flex-direction: column;
}
.post-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 14px !important;
    background-color: #f2f4f6;
    margin-bottom: 16px;
    aspect-ratio: 16 / 10;
}
.post-thumbnail-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}
.post-card:hover .post-thumbnail-wrapper img,
.hero-post-card:hover .post-thumbnail-wrapper img {
    transform: scale(1.03) !important;
}

.post-card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: #8b95a1;
    margin-bottom: 10px;
    font-weight: 600;
}
.post-card-meta a {
    color: #3182f6 !important;
}
.post-card-title {
    margin: 0 !important;
}
.post-card-title a {
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    color: #191f28 !important;
}
.post-card:hover .post-card-title a {
    color: #3182f6 !important;
}
.post-card-summary {
    font-size: 14px;
    color: #4e5968 !important;
    line-height: 1.6;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.posts-navigation {
    grid-column: 1 / -1 !important;
    padding-top: 40px;
    border-top: 1px solid #f2f4f6;
    text-align: center;
}
.page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: #f2f4f6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4e5968 !important;
}
.page-numbers.current {
    background: #3182f6;
    color: #ffffff !important;
}
.page-numbers:hover:not(.current) {
    background: #e5e8eb;
    color: #191f28 !important;
}

/* 3. Single Post View */
.single-post-article {
    max-width: 700px !important;
    margin: 60px auto 100px auto !important;
}
.single-post-header {
    margin-bottom: 32px;
}
.single-post-meta {
    font-size: 14px;
    color: #8b95a1;
    font-weight: 600;
    margin-bottom: 12px;
}
.single-post-meta a {
    color: #3182f6 !important;
}
.single-post-title {
    font-size: 38px !important;
    font-weight: 850 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    letter-spacing: -0.04em !important;
    color: #191f28 !important;
}
.single-post-thumbnail {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    background: #f2f4f6;
}
.single-post-thumbnail img {
    width: 100% !important;
    height: auto !important;
    display: block;
}
.single-post-content {
    font-size: 17px !important;
    line-height: 1.85 !important;
    color: #333d4b !important;
}
.single-post-content p {
    margin-bottom: 2em;
}
.single-post-content img {
    max-width: 100% !important;
    border-radius: 12px !important;
    margin: 30px 0 !important;
}
.single-post-content h2 {
    font-size: 26px !important;
    font-weight: 800 !important;
    margin-top: 2.2em;
    margin-bottom: 0.8em;
}
.single-post-content h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

/* Post Navigation (Single) */
.single-post-navigation {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f2f4f6;
    padding-top: 30px;
    margin-top: 60px;
    gap: 20px;
}
.single-post-navigation a {
    font-size: 15px;
    font-weight: 700;
    color: #4e5968 !important;
}
.single-post-navigation a:hover {
    color: #3182f6 !important;
}

/* 4. Page Layout View */
.page-content-wrapper {
    max-width: 900px;
    margin: 40px auto 100px auto;
}
.page-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 24px !important;
    }
    .hero-post-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
    .hero-post-card .post-thumbnail-wrapper,
    .hero-post-card .post-card-content {
        width: 100% !important;
    }
}
@media (max-width: 600px) {
    .blog-posts-grid {
        grid-template-columns: 1fr !important;
    }
    .single-post-title {
        font-size: 28px !important;
    }
}
