/* =========================================================
   YOICCI SITE - Main Stylesheet
   PC + Tablet + Mobile + Blog
   ========================================================= */


/* =========================================================
   1. 기본 설정
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans KR",
        "Malgun Gothic",
        Arial,
        sans-serif;

    color: #222;
    background: #fff;

    line-height: 1.8;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}


/* =========================================================
   2. 공통 컨테이너
   ========================================================= */

main {
    width: 100%;
}

.site-header,
main > section,
.site-footer {
    width: 100%;
}


/* =========================================================
   3. 헤더
   ========================================================= */

.site-header {
    min-height: 130px;

    display: flex;
    align-items: center;

    padding: 25px 48px;

    background: #fff;

    border-bottom: 1px solid #f2f2f2;

    position: relative;
    z-index: 10;
}


/* 로고 */

.logo {
    display: flex;
    align-items: center;

    font-size: 32px;
    font-weight: 800;

    color: #111;

    white-space: nowrap;
}


/* 현재 index.html에서 텍스트 로고를 사용하므로
   나중에 실제 로고 이미지로 바꿀 때도 대응 */

.logo img {
    width: auto;
    max-width: 190px;
    max-height: 90px;
}


/* 메뉴 */

.main-nav {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 34px;
}

.main-nav a {
    font-size: 18px;
    font-weight: 400;

    color: #111;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.main-nav a:hover {
    color: #ff7043;
}


/* Learn more 버튼 */

.learn-more {
    margin-left: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 58px;

    padding: 0 30px;

    background: #1f1f1f;
    color: #fff;

    font-size: 17px;
    font-weight: 600;

    border-radius: 0;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.learn-more:hover {
    background: #ff7043;
    color: #fff;

    transform: translateY(-1px);
}


/* =========================================================
   4. 메인 Hero
   ========================================================= */

.hero {
    width: min(900px, calc(100% - 40px));

    min-height: 300px;

    margin: 55px auto 60px;

    padding: 60px 40px;

    background: #ff8a65;

    display: flex;
    flex-direction: column;

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

    text-align: center;
}

.hero h1 {
    margin: 0 0 40px;

    color: #111;

    font-size: 42px;
    font-weight: 800;

    line-height: 1.35;
}

.hero-button {
    display: inline-flex;

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

    width: min(430px, 90%);

    min-height: 72px;

    padding: 15px 30px;

    background: #1f1f1f;
    color: #fff;

    border-radius: 8px;

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

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.hero-button:hover {
    background: #333;

    color: #fff;

    transform: translateY(-2px);
}


/* =========================================================
   5. 메인 이미지 / 소개
   ========================================================= */

.intro-image {
    width: min(1000px, calc(100% - 40px));

    margin: 70px auto;

    text-align: center;
}

.intro-image img {
    width: 300px;
    max-width: 100%;

    margin: 0 auto;

    border-radius: 8px;
}

.intro-image p {
    margin: 28px 0 0;

    font-size: 22px;
    line-height: 1.6;
}


/* =========================================================
   6. 일반 본문 섹션
   ========================================================= */

.content-section {
    width: min(1000px, calc(100% - 40px));

    margin: 90px auto;
}

.content-section h2,
.features h2,
.faq h2 {
    margin: 0 0 35px;

    font-size: 32px;
    line-height: 1.45;

    font-weight: 800;

    color: #111;
}

.content-section p {
    margin: 0 0 28px;

    font-size: 17px;

    line-height: 2;
}


/* =========================================================
   7. 이미지 그리드
   ========================================================= */

.image-grid {
    width: min(1100px, calc(100% - 40px));

    margin: 80px auto;

    display: grid;

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

    gap: 30px;
}

.image-grid img {
    width: 60%;
    height: auto;

    border-radius: 10px;
}


/* =========================================================
   8. 주요 기능
   ========================================================= */

.features {
    width: min(1000px, calc(100% - 40px));

    margin: 100px auto;
}

.features article {
    margin: 0 0 45px;

    padding: 0 0 35px;

    border-bottom: 1px solid #eeeeee;
}

.features article:last-child {
    border-bottom: 0;
}

.features h3 {
    margin: 0 0 18px;

    font-size: 23px;
    line-height: 1.5;

    color: #111;
}

.features p {
    margin: 0;

    font-size: 17px;
    line-height: 2;
}


/* =========================================================
   9. FAQ
   ========================================================= */

.faq {
    width: min(1000px, calc(100% - 40px));

    margin: 100px auto;
}

.faq article {
    padding: 30px 0;

    border-bottom: 1px solid #eeeeee;
}

.faq article:first-of-type {
    border-top: 1px solid #eeeeee;
}

.faq h3 {
    margin: 0 0 15px;

    font-size: 21px;
    line-height: 1.5;

    color: #111;
}

.faq p {
    margin: 0;

    font-size: 16px;
    line-height: 1.9;
}


/* =========================================================
   10. About / Contact 페이지 공통
   ========================================================= */

.page-content {
    width: min(1000px, calc(100% - 40px));

    margin: 80px auto;

    padding-bottom: 80px;
}

.page-content h1 {
    margin: 0 0 55px;

    font-size: 46px;
    line-height: 1.3;

    font-weight: 800;
}

.page-content h2 {
    margin: 60px 0 25px;

    font-size: 30px;
}

.page-content h3 {
    margin: 45px 0 18px;

    font-size: 23px;
}

.page-content p {
    margin: 0 0 28px;

    font-size: 17px;

    line-height: 2;
}


/* =========================================================
   11. Contact 페이지
   ========================================================= */

.contact-section {
    width: min(900px, calc(100% - 40px));

    margin: 70px auto 100px;
}

.contact-section h1 {
    margin-bottom: 50px;

    font-size: 44px;
}

.contact-section p {
    font-size: 17px;
    line-height: 2;
}


/* =========================================================
   12. Blog 목록
   ========================================================= */

.blog-list {
    width: min(1000px, calc(100% - 40px));

    margin: 70px auto 100px;
}

.blog-list h1 {
    margin: 0 0 50px;

    font-size: 44px;
    line-height: 1.35;
}


/* 각각의 블로그 글 */

.blog-item {
    padding: 35px 0;

    border-bottom: 1px solid #e9e9e9;
}

.blog-item:first-child {
    border-top: 1px solid #e9e9e9;
}

.blog-item h2 {
    margin: 0 0 12px;

    font-size: 27px;
    line-height: 1.5;
}

.blog-item h2 a {
    color: #111;
}

.blog-item h2 a:hover {
    color: #ff7043;
}


/* 블로그 작성일 */

.blog-date,
.post-date,
.blog-meta {
    display: block;

    margin-bottom: 15px;

    color: #777;

    font-size: 14px;

    line-height: 1.5;
}


/* 블로그 요약 */

.blog-excerpt {
    margin: 0;

    color: #555;

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   13. 블로그 개별 글
   ========================================================= */

.blog-post {
    width: min(900px, calc(100% - 40px));

    margin: 70px auto 110px;
}

.blog-post h1 {
    margin: 0 0 15px;

    font-size: 42px;

    line-height: 1.4;
}

.blog-post .post-date {
    margin-bottom: 50px;
}

.blog-post h2 {
    margin: 60px 0 25px;

    font-size: 30px;
    line-height: 1.5;
}

.blog-post h3 {
    margin: 45px 0 20px;

    font-size: 23px;
}

.blog-post p {
    margin: 0 0 30px;

    font-size: 17px;

    line-height: 2;
}

.blog-post img {
    width: auto;
    max-width: 100%;

    margin: 40px auto;

    border-radius: 8px;
}


/* =========================================================
   14. Blog 글 안의 목록
   ========================================================= */

.blog-post ul,
.blog-post ol {
    margin: 25px 0 35px;

    padding-left: 25px;
}

.blog-post li {
    margin-bottom: 10px;

    line-height: 1.9;
}


/* =========================================================
   15. Blog 글 안의 링크
   ========================================================= */

.blog-post a {
    color: #e85d32;

    text-decoration: underline;
}

.blog-post a:hover {
    color: #111;
}


/* =========================================================
   16. Blog 버튼
   ========================================================= */

.blog-button {
    display: inline-flex;

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

    min-height: 52px;

    padding: 10px 24px;

    background: #1f1f1f;

    color: #fff !important;

    border-radius: 7px;

    font-weight: 700;

    text-decoration: none !important;
}

.blog-button:hover {
    background: #ff7043;

    color: #fff !important;
}


/* =========================================================
   17. Footer
   ========================================================= */

.site-footer {
    margin-top: 80px;

    padding: 45px 20px;

    background: #fafafa;

    border-top: 1px solid #eeeeee;

    text-align: center;
}

.site-footer p {
    margin: 0;

    color: #777;

    font-size: 14px;
}


/* =========================================================
   18. 모바일 메뉴 / 공통 반응형
   ========================================================= */

@media (max-width: 768px) {

    body {
        font-size: 15px;
    }


    /* 헤더 */

    .site-header {
        min-height: auto;

        padding: 20px 18px;

        flex-wrap: wrap;

        justify-content: center;

        gap: 18px;
    }


    .logo {
        width: 100%;

        justify-content: center;

        font-size: 28px;
    }


    .main-nav {
        width: 100%;

        margin-left: 0;

        justify-content: center;

        flex-wrap: wrap;

        gap: 18px;
    }


    .main-nav a {
        font-size: 15px;
    }


    .learn-more {
        margin-left: 0;

        min-height: 46px;

        padding: 0 20px;

        font-size: 14px;
    }


    /* Hero */

    .hero {
        width: calc(100% - 30px);

        min-height: 270px;

        margin: 45px auto 50px;

        padding: 45px 20px;
    }


    .hero h1 {
        margin-bottom: 28px;

        font-size: 30px;
    }


    .hero-button {
        width: 100%;

        min-height: 60px;

        font-size: 17px;
    }


    /* 소개 이미지 */

    .intro-image {
        width: calc(100% - 30px);

        margin: 50px auto;
    }


    .intro-image p {
        font-size: 18px;
    }


    /* 일반 본문 */

    .content-section,
    .features,
    .faq,
    .page-content,
    .contact-section,
    .blog-list,
    .blog-post {
        width: calc(100% - 30px);
    }


    .content-section,
    .features,
    .faq {
        margin-top: 65px;
        margin-bottom: 65px;
    }


    .content-section h2,
    .features h2,
    .faq h2 {
        font-size: 27px;

        margin-bottom: 25px;
    }


    .content-section p,
    .features p,
    .faq p,
    .page-content p,
    .contact-section p,
    .blog-post p {
        font-size: 16px;

        line-height: 1.9;
    }


    /* 이미지 */

    .image-grid {
        width: calc(100% - 30px);

        margin: 55px auto;

        grid-template-columns: 1fr;

        gap: 20px;
    }


    /* 기능 */

    .features h3 {
        font-size: 20px;
    }


    /* FAQ */

    .faq h3 {
        font-size: 19px;
    }


    /* About / Contact */

    .page-content,
    .contact-section {
        margin-top: 50px;
        margin-bottom: 70px;
    }


    .page-content h1,
    .contact-section h1,
    .blog-list h1 {
        font-size: 34px;

        margin-bottom: 35px;
    }


    /* Blog */

    .blog-list {
        margin-top: 50px;

        margin-bottom: 70px;
    }


    .blog-item {
        padding: 28px 0;
    }


    .blog-item h2 {
        font-size: 23px;
    }


    .blog-date,
    .post-date,
    .blog-meta {
        font-size: 13px;
    }


    /* Blog 개별 글 */

    .blog-post {
        margin-top: 50px;

        margin-bottom: 80px;
    }


    .blog-post h1 {
        font-size: 31px;
    }


    .blog-post h2 {
        margin-top: 45px;

        font-size: 26px;
    }


    .blog-post h3 {
        font-size: 21px;
    }


    .blog-post img {
        margin: 30px auto;
    }


    /* Footer */

    .site-footer {
        margin-top: 60px;

        padding: 35px 15px;
    }

}


/* =========================================================
   19. 작은 스마트폰
   ========================================================= */

@media (max-width: 480px) {

    .site-header {
        padding: 16px 12px;
    }


    .logo {
        font-size: 25px;
    }


    .main-nav {
        gap: 12px;
    }


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


    .learn-more {
        min-height: 42px;

        padding: 0 17px;

        font-size: 13px;
    }


    .hero {
        width: calc(100% - 20px);

        min-height: 240px;

        margin-top: 30px;

        padding: 35px 15px;
    }


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


    .hero-button {
        min-height: 56px;

        font-size: 16px;
    }


    .content-section,
    .features,
    .faq,
    .page-content,
    .contact-section,
    .blog-list,
    .blog-post {
        width: calc(100% - 24px);
    }


    .content-section h2,
    .features h2,
    .faq h2 {
        font-size: 24px;
    }


    .blog-list h1,
    .page-content h1,
    .contact-section h1 {
        font-size: 30px;
    }


    .blog-post h1 {
        font-size: 28px;
    }


    .blog-post h2 {
        font-size: 23px;
    }


    .site-footer p {
        font-size: 13px;
    }

}


/* =========================================================
   20. 접근성 / 선택 영역
   ========================================================= */

::selection {
    background: #ff8a65;
    color: #111;
}


/* 키보드 이용자를 위한 포커스 */

a:focus-visible {
    outline: 3px solid #ff8a65;

    outline-offset: 4px;
}
/* ========================================
   Contact Page
   ======================================== */

.contact-page {
    width: 100%;
    padding-bottom: 80px;
}


/* 고객센터 배너 */

.contact-hero {
    width: min(900px, calc(100% - 40px));

    margin: 70px auto 80px;

    padding: 45px 30px;

    background: #ff8a65;

    text-align: center;

    box-sizing: border-box;
}


.contact-hero h1 {
    margin: 0 0 30px;

    color: #111;

    font-size: 32px;

    font-weight: 800;
}


.contact-hero-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: min(400px, 100%);

    min-height: 55px;

    padding: 15px 25px;

    box-sizing: border-box;

    background: #222;

    color: #fff;

    text-decoration: none;

    font-size: 16px;

    font-weight: 700;

    border-radius: 6px;
}


.contact-hero-button:hover {
    opacity: 0.9;
}



/* 문의 영역 */

.contact-section {
    width: min(900px, calc(100% - 40px));

    margin: 0 auto 70px;
}


.contact-section h2 {
    margin: 0 0 30px;

    font-size: 28px;

    line-height: 1.4;

    color: #111;
}


.contact-description {
    margin: 0 0 15px;

    font-size: 16px;

    line-height: 1.8;

    color: #333;
}



/* 문의 폼 */

.contact-form {
    width: 100%;

    margin-top: 40px;
}


.contact-field {
    margin-bottom: 25px;
}


.contact-field label {
    display: block;

    margin-bottom: 8px;

    font-size: 15px;

    font-weight: 700;

    color: #111;
}


.contact-field label span {
    font-weight: 400;

    color: #666;
}


.contact-field input,
.contact-field textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 15px;

    border: 1px solid #222;

    border-radius: 4px;

    background: #fff;

    color: #222;

    font-family: inherit;

    font-size: 16px;
}


.contact-field input {
    height: 52px;
}


.contact-field textarea {
    min-height: 200px;

    resize: vertical;

    line-height: 1.6;
}


.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;

    border-color: #111;

    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}



/* 문의 버튼 */

.contact-submit {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 140px;

    min-height: 50px;

    padding: 12px 25px;

    border: none;

    border-radius: 4px;

    background: #222;

    color: #fff;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;
}


.contact-submit:hover {
    opacity: 0.9;
}



/* 문의 가능한 내용 */

.contact-info ul {
    margin: 0;

    padding-left: 25px;
}


.contact-info li {
    margin-bottom: 12px;

    font-size: 16px;

    line-height: 1.6;
}



/* 모바일 */

@media (max-width: 768px) {

    .contact-hero {
        width: calc(100% - 30px);

        margin: 40px auto 50px;

        padding: 40px 20px;
    }


    .contact-hero h1 {
        font-size: 27px;

        margin-bottom: 25px;
    }


    .contact-hero-button {
        width: 100%;
    }


    .contact-section {
        width: calc(100% - 30px);

        margin-bottom: 50px;
    }


    .contact-section h2 {
        font-size: 24px;
    }


    .contact-description {
        font-size: 15px;
    }


    .contact-field input,
    .contact-field textarea {
        font-size: 16px;
    }


    .contact-submit {
        width: 100%;
    }

}
/* ========================================
   About Page
   ======================================== */

.about-page {
    width: 100%;
    padding-bottom: 80px;
}


/* 운영팀 배너 */

.about-hero {
    width: min(900px, calc(100% - 40px));

    margin: 70px auto 75px;

    padding: 45px 30px;

    box-sizing: border-box;

    background: #ff8a65;

    text-align: center;
}


.about-hero h1 {
    margin: 0 0 30px;

    color: #111;

    font-size: 32px;

    font-weight: 800;

    line-height: 1.4;
}


.about-hero-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: min(400px, 100%);

    min-height: 55px;

    padding: 15px 25px;

    box-sizing: border-box;

    background: #222;

    color: #fff;

    text-decoration: none;

    font-size: 16px;

    font-weight: 700;

    border-radius: 6px;
}


.about-hero-button:hover {
    opacity: 0.9;
}



/* About 본문 */

.about-section {
    width: min(900px, calc(100% - 40px));

    margin: 0 auto;
}


.about-section > h2 {
    margin: 0 0 45px;

    color: #111;

    font-size: 30px;

    line-height: 1.4;
}



/* 각 항목 */

.about-item {
    margin-bottom: 48px;
}


.about-item h3 {
    margin: 0 0 18px;

    color: #111;

    font-size: 20px;

    line-height: 1.5;
}


.about-item p {
    margin: 0 0 14px;

    color: #333;

    font-size: 16px;

    line-height: 1.9;
}


.about-ending {
    margin-top: 65px;

    color: #222;

    font-size: 16px;

    font-weight: 600;

    line-height: 1.8;
}



/* 모바일 */

@media (max-width: 768px) {

    .about-page {
        padding-bottom: 50px;
    }


    .about-hero {
        width: calc(100% - 30px);

        margin: 40px auto 50px;

        padding: 40px 20px;
    }


    .about-hero h1 {
        font-size: 27px;

        margin-bottom: 25px;
    }


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


    .about-section {
        width: calc(100% - 30px);
    }


    .about-section > h2 {
        margin-bottom: 35px;

        font-size: 24px;
    }


    .about-item {
        margin-bottom: 38px;
    }


    .about-item h3 {
        font-size: 18px;

        margin-bottom: 14px;
    }


    .about-item p {
        font-size: 15px;

        line-height: 1.85;
    }


    .about-ending {
        margin-top: 45px;

        font-size: 15px;
    }

}

/* ========================================
   Blog List
   ======================================== */

.blog-page {
    width: 100%;
    padding-bottom: 80px;
}


/* Blog 제목 */

.blog-header {
    width: min(1100px, calc(100% - 40px));

    margin: 70px auto 55px;

    text-align: center;
}


.blog-header h1 {
    margin: 0 0 25px;

    color: #111;

    font-size: 42px;

    line-height: 1.3;

    font-weight: 800;
}


.blog-header p {
    margin: 0;

    color: #333;

    font-size: 16px;

    line-height: 1.8;
}



/* Blog 목록 */

.blog-list {
    width: min(1100px, calc(100% - 40px));

    margin: 0 auto;
}



/* Blog 카드 */

.blog-card {
    display: grid;

    grid-template-columns: 48% 52%;

    width: 100%;

    min-height: 360px;

    margin-bottom: 40px;

    background: #fff;

    border: 1px solid #eeeeee;

    box-sizing: border-box;
}



/* 왼쪽 이미지 */

.blog-card-image {
    display: block;

    width: 100%;

    min-height: 360px;

    overflow: hidden;

    background: #f5f5f5;
}


.blog-card-image img {
    display: block;

    width: 100%;

    height: 100%;

    min-height: 360px;

    object-fit: cover;

    transition: transform 0.3s ease;
}


.blog-card-image:hover img {
    transform: scale(1.03);
}



/* 오른쪽 */

.blog-card-body {
    display: flex;

    align-items: center;

    padding: 45px;

    box-sizing: border-box;
}


.blog-card-link {
    display: block;

    width: 100%;

    color: inherit;

    text-decoration: none;
}


.blog-card-link h2 {
    margin: 0 0 18px;

    color: #111;

    font-size: 28px;

    line-height: 1.45;

    font-weight: 800;
}


.blog-card-date {
    margin-bottom: 25px;

    color: #777;

    font-size: 14px;

    line-height: 1.6;
}


.blog-card-excerpt {
    margin: 0 0 30px;

    color: #333;

    font-size: 16px;

    line-height: 1.8;
}



/* 조회수 / 댓글 / 좋아요 */

.blog-card-meta {
    display: flex;

    gap: 22px;

    padding-top: 20px;

    margin-bottom: 25px;

    border-top: 1px solid #ddd;

    color: #555;

    font-size: 14px;
}


.blog-read-more {
    display: inline-block;

    color: #222;

    font-size: 15px;

    font-weight: 700;

    text-decoration: underline;
}


.blog-card-link:hover .blog-read-more {
    opacity: 0.65;
}



/* 모바일 */

@media (max-width: 768px) {

    .blog-page {
        padding-bottom: 50px;
    }


    .blog-header {
        width: calc(100% - 30px);

        margin: 40px auto 40px;
    }


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


    .blog-header p {
        font-size: 15px;
    }


    .blog-list {
        width: calc(100% - 30px);
    }


    .blog-card {
        display: block;

        min-height: 0;
    }


    .blog-card-image {
        min-height: 240px;
    }


    .blog-card-image img {
        min-height: 240px;
    }


    .blog-card-body {
        padding: 30px 25px;
    }


    .blog-card-link h2 {
        font-size: 22px;
    }


    .blog-card-excerpt {
        font-size: 15px;
    }


    .blog-card-meta {
        flex-wrap: wrap;

        gap: 12px;
    }
/* ========================================
   Main Page - Latest Blog
   ======================================== */

.home-blog {
    width: min(1100px, calc(100% - 40px));

    margin: 90px auto 80px;

    padding-top: 20px;
}


/* 제목 */

.home-blog-header {
    text-align: center;

    margin-bottom: 45px;
}


.home-blog-header h2 {
    margin: 0 0 15px;

    color: #111;

    font-size: 34px;

    font-weight: 800;

    line-height: 1.4;
}


.home-blog-header p {
    margin: 0;

    color: #555;

    font-size: 15px;

    line-height: 1.7;
}



/* Blog 카드 */

.home-blog-card {
    display: grid;

    grid-template-columns: 42% 58%;

    width: 100%;

    min-height: 320px;

    border: 1px solid #eeeeee;

    background: #fff;
}


/* 이미지 */

.home-blog-image {
    display: block;

    width: 100%;

    min-height: 320px;

    overflow: hidden;

    background: #f5f5f5;
}


.home-blog-image img {
    display: block;

    width: 100%;

    height: 100%;

    min-height: 320px;

    object-fit: cover;

    transition: transform 0.3s ease;
}


.home-blog-image:hover img {
    transform: scale(1.03);
}



/* 오른쪽 글 */

.home-blog-content {
    display: flex;

    align-items: center;

    padding: 40px;

    box-sizing: border-box;
}


.home-blog-link {
    display: block;

    width: 100%;

    color: inherit;

    text-decoration: none;
}


.home-blog-link h3 {
    margin: 0 0 15px;

    color: #111;

    font-size: 25px;

    font-weight: 800;

    line-height: 1.5;
}


.home-blog-date {
    margin: 0 0 20px;

    color: #777;

    font-size: 13px;
}


.home-blog-excerpt {
    margin: 0 0 25px;

    color: #333;

    font-size: 15px;

    line-height: 1.8;
}



/* 조회수 / 댓글 / 좋아요 */

.home-blog-meta {
    display: flex;

    gap: 20px;

    padding-top: 18px;

    margin-bottom: 20px;

    border-top: 1px solid #ddd;

    color: #555;

    font-size: 13px;
}


.home-blog-more {
    color: #222;

    font-size: 14px;

    font-weight: 700;

    text-decoration: underline;
}



/* 전체 Blog */

.home-blog-all {
    margin-top: 35px;

    text-align: center;
}


.home-blog-all a {
    display: inline-block;

    padding: 13px 28px;

    background: #222;

    color: #fff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    border-radius: 5px;
}


.home-blog-all a:hover {
    opacity: 0.85;
}



/* 모바일 */

@media (max-width: 768px) {

    .home-blog {
        width: calc(100% - 30px);

        margin: 60px auto 50px;
    }


    .home-blog-header {
        margin-bottom: 30px;
    }


    .home-blog-header h2 {
        font-size: 27px;
    }


    .home-blog-header p {
        font-size: 14px;
    }


    .home-blog-card {
        display: block;

        min-height: 0;
    }


    .home-blog-image {
        min-height: 230px;
    }


    .home-blog-image img {
        min-height: 230px;
    }


    .home-blog-content {
        padding: 28px 22px;
    }


    .home-blog-link h3 {
        font-size: 21px;
    }


    .home-blog-excerpt {
        font-size: 14px;
    }


    .home-blog-meta {
        flex-wrap: wrap;

        gap: 12px;
    }
/* =========================================================
   메인페이지 블로그
   ========================================================= */

.home-blog {
    width: min(1180px, calc(100% - 40px));
    margin: 90px auto 100px;
}

.home-blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.home-blog-header h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.4;
    font-weight: 700;
    color: #111;
}

.home-blog-header p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #777;
}


/* 3열 */

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* 카드 */

.home-blog-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.home-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}


/* 이미지 */

.home-blog-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
}

.home-blog-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.home-blog-card:hover .home-blog-image img {
    transform: scale(1.03);
}


/* 내용 */

.home-blog-content {
    padding: 22px 22px 24px;
}

.home-blog-content h3 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.5;
    font-weight: 700;
    color: #111;
}

.home-blog-content h3 a {
    color: inherit;
    text-decoration: none;
}

.home-blog-content h3 a:hover {
    text-decoration: underline;
}


/* 설명 */

.home-blog-content > p {
    margin: 0 0 20px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;

    font-size: 14px;
    line-height: 1.8;
    color: #666;
}


/* 조회수 / 댓글 / 좋아요 */

.home-blog-meta {
    display: flex;
    align-items: center;
    gap: 14px;

    padding-top: 15px;
    border-top: 1px solid #eeeeee;

    font-size: 12px;
    color: #888;
}

.home-blog-meta span {
    white-space: nowrap;
}


/* 자세히 보기 */

.home-blog-more {
    display: inline-block;

    margin-top: 16px;

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

    color: #222;
    text-decoration: none;
}

.home-blog-more:hover {
    text-decoration: underline;
}


/* 전체 보기 */

.home-blog-footer {
    margin-top: 35px;
    text-align: center;
}

.home-blog-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 22px;

    border: 1px solid #222;
    border-radius: 4px;

    color: #222;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
    background: #fff;
}

.home-blog-footer a:hover {
    background: #222;
    color: #fff;
}


/* =========================================================
   모바일
   ========================================================= */

@media (max-width: 900px) {

    .home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .home-blog {
        width: calc(100% - 30px);
        margin: 65px auto 70px;
    }

    .home-blog-header {
        margin-bottom: 28px;
    }

    .home-blog-header h2 {
        font-size: 25px;
    }

    .home-blog-header p {
        font-size: 14px;
    }

    .home-blog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-blog-content {
        padding: 20px;
    }

    .home-blog-content h3 {
        font-size: 18px;
    }

    .home-blog-content > p {
        font-size: 14px;
    }

}/* ========================================
   YOICCI MAIN BLOG
   ======================================== */

.yoicci-home-blog {
    width: min(1150px, calc(100% - 40px));
    margin: 90px auto 100px;
}


/* 제목 */

.yoicci-home-blog-title {
    text-align: center;
    margin-bottom: 40px;
}

.yoicci-home-blog-title h2 {
    margin: 0 0 12px;

    font-size: 32px;
    font-weight: 800;
    line-height: 1.4;

    color: #111;
}

.yoicci-home-blog-title p {
    margin: 0;

    font-size: 15px;
    line-height: 1.7;

    color: #777;
}


/* 3열 */

.yoicci-home-blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* 카드 */

.yoicci-home-blog-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid #e8e8e8;

    border-radius: 6px;

    box-sizing: border-box;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.yoicci-home-blog-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 25px rgba(0,0,0,.08);
}


/* 이미지 */

.yoicci-home-blog-image {
    display: block;

    width: 100%;

    height: 220px;

    overflow: hidden;

    background: #f4f4f4;
}


.yoicci-home-blog-image img {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;
}


.yoicci-blog-empty {
    width: 100%;
    height: 100%;

    display: flex;

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

    background: #f5f5f5;

    color: #999;

    font-size: 20px;

    font-weight: 700;
}


/* 내용 */

.yoicci-home-blog-body {
    padding: 22px;
}


.yoicci-home-blog-body h3 {
    margin: 0 0 14px;

    font-size: 19px;

    font-weight: 800;

    line-height: 1.5;

    color: #111;
}


.yoicci-home-blog-body h3 a {
    color: inherit;

    text-decoration: none;
}


.yoicci-home-blog-body p {
    margin: 0 0 22px;

    font-size: 14px;

    line-height: 1.7;

    color: #555;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* 조회수 / 댓글 / 좋아요 */

.yoicci-home-blog-info {
    display: flex;

    gap: 15px;

    padding-top: 15px;

    border-top: 1px solid #e5e5e5;

    font-size: 12px;

    color: #777;
}


/* 자세히 보기 */

.yoicci-home-blog-more {
    display: inline-block;

    margin-top: 16px;

    color: #222;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;
}


.yoicci-home-blog-more:hover {
    text-decoration: underline;
}


/* 전체 보기 */

.yoicci-home-blog-all {
    margin-top: 35px;

    text-align: center;
}


.yoicci-home-blog-all a {
    display: inline-flex;

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

    min-height: 44px;

    padding: 0 25px;

    border: 1px solid #222;

    border-radius: 5px;

    color: #222;

    background: #fff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;
}


.yoicci-home-blog-all a:hover {
    background: #222;

    color: #fff;
}


/* ========================================
   태블릿
   ======================================== */

@media (max-width: 900px) {

    .yoicci-home-blog-grid {

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

    }

}


/* ========================================
   모바일
   ======================================== */

@media (max-width: 600px) {

    .yoicci-home-blog {

        width: calc(100% - 30px);

        margin: 60px auto 70px;

    }


    .yoicci-home-blog-title h2 {

        font-size: 27px;

    }


    .yoicci-home-blog-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .yoicci-home-blog-image {

        height: 200px;

    }


    .yoicci-home-blog-body {

        padding: 20px;

    }
