/* =========================
   기본 초기화
========================= */

@font-face {
    font-family: NanumSquare;
    font-weight: 400;
    src: url("./images/se-nanumsquare-regular.woff") format("woff");
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 100%;
}

body {
    text-size-adjust: 100%;
    font-weight: 400;
    font-family: NanumSquare, "Noto Sans KR", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #fff;
}

blockquote, code, dd, div, dl, dt, fieldset, figure, form,
h1, h2, h3, h4, h5, h6, input, legend, li, ol, p,
pre, td, textarea, th, ul {
    margin: 0;
    padding: 0;
}

article, aside, details, figcaption, figure, footer,
header, hgroup, menu, nav, section {
    display: block;
}

button, input, select, textarea {
    font-size: 100%;
    border-radius: 0;
}

button {
    overflow: visible;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

ul li {
    list-style: none;
}

fieldset, img {
    border: none;
    vertical-align: top;
}

a, a:link, a:visited, a:active {
    text-decoration: none;
    color: #333;
}


/* =========================
   전체 레이아웃
========================= */

.inner {
    margin-bottom: 20px;
    color: #333;
}

#header .inner {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
}

#header .inner .logo {
    padding: 50px 0 0;
    font-size: 1.75em;
    line-height: 32px;
    letter-spacing: -1px;
    color: #333;
    font-family: NanumSquare, "Noto Sans KR", sans-serif;
    font-weight: normal;
}

#header .inner .logo a {
    display: inline-block;
    height: 32px;
    color: #333;
    vertical-align: top;
}

#header .inner .logo img {
    width: auto;
    height: 32px;
}

#container {
    position: relative;
}

#container .content-wrap {
    max-width: 1080px;
    margin: 50px auto 0;
    padding: 0 20px;
}

#container .content-wrap::after,
#content > .inner::after {
    content: "";
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
}

#content {
    float: left;
    width: 68.5185%;
    padding: 0 0 60px;
    box-sizing: border-box;
}

#aside {
    float: right;
    width: 21.2963%;
    padding: 0 0 32px;
    box-sizing: border-box;
}

#footer {
    padding: 38px 0 28px;
}

#footer .inner {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
}

#footer p {
    margin-bottom: 10px;
    font-size: 0.875em;
    color: #777;
}


/* =========================
   목록형 글 카드
========================= */

.post-header h1 {
    margin-bottom: 18px;
    font-size: 1.4em;
    line-height: 1.375;
}

.post-item {
    float: left;
    width: 31.0811%;
    margin: 0 0 20px 3.37838%;
}

.post-item:hover {
    opacity: 0.7;
}

.post-item:nth-child(3n+1) {
    clear: both;
    margin-left: 0;
}

.post-item a {
    display: block;
}

.post-item .thum {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: 0;
    margin-bottom: 5px;
    padding-bottom: 100%;
    background-color: #f8f8f8;
    border-radius: 10px;
}

.post-item .thum img {
    width: 100%;
    height: auto;
}

.post-item .title {
    display: block;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 4px;
    padding-top: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
    font-weight: bold;
}

.post-item .excerpt {
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 15px;
    text-overflow: ellipsis;
    font-size: 0.9125em;
    line-height: 1.5rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================
   페이지네이션
========================= */

.pagination {
    margin-bottom: 60px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 0 12px;
    font-size: 0.875em;
    line-height: 1.5rem;
    vertical-align: top;
    color: #333;
}

.pagination .selected {
    color: #333;
}

.pagination .view-more {
    display: block;
    margin: 0;
    padding: 12px 0 11px;
    border: 1px solid #eee;
    text-align: center;
    font-size: 0.875em;
    color: #999;
}


/* =========================
   본문 콘텐츠 핵심 스타일
========================= */

.entry-content {
    color: #333;
}

.entry-content h1 {
    clear: both;
    margin: 34px 0 24px;
    font-size: 36px;
    line-height: 1.45;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.5px;
}

.entry-content h2 {
    clear: both;
    margin: 42px 0 22px;
    padding: 16px 20px;
    font-size: 32px !important;
    line-height: 1.45;
    font-weight: 700 !important;
    color: #1f2d3d;
    background: linear-gradient(135deg, #f6f8fa 0%, #e9f0f5 100%);
    border-left: 6px solid #3498db;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.05);
}

.entry-content h3 {
    clear: both;
    margin: 34px 0 18px;
    padding: 12px 16px;
    font-size: 26px !important;
    line-height: 1.45;
    font-weight: 700 !important;
    color: #16a085;
    border-left: 5px solid #16a085;
    background: #f7fbfa;
    border-radius: 0 8px 8px 0;
}

.entry-content h4 {
    clear: both;
    margin: 28px 0 14px;
    padding: 8px 12px;
    font-size: 21px !important;
    line-height: 1.45;
    font-weight: 600;
    color: #34495e;
    border-bottom: 1px solid #bde0ff;
    background: #fafafa;
}

.entry-content p {
    word-break: keep-all;
    overflow-wrap: break-word;
    font-size: 20px !important;
    line-height: 1.9;
    color: #333;
    margin-bottom: 22px;
}

.entry-content h1 + p,
.entry-content h2 + p,
.entry-content h3 + p,
.entry-content h4 + p {
    text-indent: 0;
}

.entry-content a {
    color: #04beb8;
}

.entry-content p a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid #3498db;
}

.entry-content p a:hover {
    color: #2980b9;
    border-bottom: 2px solid #2980b9;
}

.entry-content img,
.entry-content p img {
    max-width: 100%;
    height: auto;
}

.entry-content figure {
    margin-top: 8px !important;
}

.entry-content pre {
    word-break: break-all;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}


/* =========================
   본문 목록
========================= */

.entry-content ul {
    list-style: none;
    margin-bottom: 22px;
    padding: 0;
}

.entry-content ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 18px;
    font-size: 19px;
    line-height: 1.75;
    color: #333;
    list-style-type: none !important;
}

.entry-content ul li::before {
    content: "";
    position: absolute;
    top: 0.85em;
    left: 0;
    width: 8px;
    height: 2px;
    background-color: #999;
}

.entry-content ol {
    margin-bottom: 22px;
    padding-left: 0;
}

.entry-content ol li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 18px;
    font-size: 19px;
    line-height: 1.75;
    color: #333;
    list-style-type: none !important;
}

.entry-content ol li::before {
    content: "";
    position: absolute;
    top: 0.85em;
    left: 0;
    width: 8px;
    height: 2px;
    background-color: #999;
}


/* =========================
   표 / 인용문
========================= */

.entry-content blockquote {
    margin-bottom: 40px;
    padding: 16px 20px;
    border-left: 4px solid #e6e6e6;
    background: #fafafa;
}

.entry-content blockquote p {
    margin: 22px 0 0;
}

.entry-content blockquote p:first-child {
    margin-top: 0;
}

.entry-content table {
    width: 100%;
    margin-bottom: 22px;
    border: 1px solid #e6e6e6;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.9375em;
    line-height: 1.5714;
    color: #666;
}

.entry-content table thead th,
.entry-content table tbody td {
    padding: 9px 6px;
    border-left: 1px solid #e6e6e6;
    border-top: 1px solid #e6e6e6;
}


/* =========================
   강조 태그
========================= */

.entry-content b {
    font-weight: 700;
    color: #ff7300;
    padding: 0 2px;
}

.entry-content strong {
    font-weight: 700;
    color: #fff;
    background-color: #ff7300;
    padding: 0 4px;
    border-radius: 3px;
}

.entry-content u {
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}


/* =========================
   버튼 스타일
========================= */

.btn,
a.btn {
    display: inline-block;
    width: 100px;
    height: 36px;
    background-color: #c4c4c4;
    text-align: center;
    font-weight: 400;
    font-size: 14px;
    line-height: 36px;
    color: #fff;
    vertical-align: middle;
}

.btn:hover {
    background-color: #676767;
}

a.mybutton {
    display: block;
    width: 80%;
    margin: 20px auto;
    padding: 20px 40px;
    background-color: #e00d0d;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    border-radius: 20px;
    font-family: Arial, sans-serif;
    font-size: 1.5em;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: buttonPulse 1.5s infinite;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
    box-sizing: border-box;
}

a.mybutton:hover {
    background-color: #ff7a00;
    color: #fff !important;
    transform: scale(1.04);
}

.myredbtn {
    display: block;
    width: 95%;
    margin: 20px auto;
    padding: 15px 30px;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: #fff !important;
    background: linear-gradient(45deg, #1a9850, #66bd63);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(26, 152, 80, 0.4);
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.myredbtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 152, 80, 0.6);
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
    100% {
        transform: scale(1);
    }
}


/* =========================
   사이드바
========================= */

.sidebar ul li {
    padding: 4px 0 5px;
    font-size: 0.8125em;
    line-height: 1.25rem;
    color: #333;
}

.sidebar ul li a {
    color: #333;
}

.sidebar ul li a:hover {
    color: #111;
}

.sidebar .sidebar-2 {
    margin-top: 38px;
    padding-top: 46px;
    border-top: 1px solid #eee;
}

.sidebar .category {
    margin-bottom: 36px;
}

.sidebar .category ul li {
    padding: 0;
    font-size: 1.075em;
    font-weight: 600;
}

.sidebar .category ul li ul {
    padding-top: 8px;
}

.sidebar .category ul li ul li {
    padding: 6px 0 7px;
    font-weight: 400;
    font-size: 0.9rem;
}

.sidebar .post-list {
    margin-bottom: 46px;
}

.sidebar .post-list h2 {
    margin-bottom: 12px;
}

.sidebar .post-list ul li {
    overflow: hidden;
    margin-bottom: 18px;
    padding: 0;
}

.sidebar .post-list ul li img {
    float: right;
    width: 58px;
    height: 58px;
    margin: 2px 0 0 20px;
}

.sidebar .post-list ul li a {
    display: block;
    overflow: hidden;
}

.sidebar .post-list ul li .title {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================
   관련 글
========================= */

.related-articles {
    margin-bottom: 55px;
}

.related-articles h2 {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1em;
}

.related-articles ul {
    display: inline-block;
    width: 101.622%;
    margin-left: -1.62162%;
    vertical-align: top;
}

.related-articles ul li {
    float: left;
    width: 25%;
    padding-left: 1.62162%;
    box-sizing: border-box;
}

.related-articles ul li figure {
    display: block;
    width: 100%;
    height: 0;
    margin-bottom: 0;
    padding-bottom: 100%;
    background-color: #f8f8f8;
    border-radius: 10px;
}

.related-articles ul li figure img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.related-articles ul li .title {
    overflow: hidden;
    max-width: 100%;
    white-space: initial;
    font-size: 0.975em;
    line-height: 1.4;
    margin-top: 10px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    display: -webkit-box;
    font-weight: bold;
}


/* =========================
   광고 / 기타
========================= */

.revenue_unit_wrap.position_list {
    max-width: 740px;
    margin: 30px auto;
}

.adsense {
    width: 100%;
    height: 100%;
}

.center {
    position: relative;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1000;
    width: 100%;
    text-align: center;
}

.css-banner {
    margin: 20px 0;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* =========================
   하단/측면 고정 버튼
========================= */

.custom-banner-button {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: width 0.3s ease;
}

.custom-banner-button:hover {
    width: 100px;
}

.custom-banner-button a {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #007bff;
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 22px;
    padding: 20px 15px;
    box-sizing: border-box;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.custom-banner-button a:hover {
    background-color: #0056b3;
}


/* =========================
   리스트 타입
========================= */

.list-type-thumbnail .post-header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.list-type-thumbnail .post-item {
    float: none;
    overflow: hidden;
    width: 100%;
    margin: 0 0 28px;
}

.list-type-thumbnail .post-item .thum {
    display: inline;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
}

.list-type-thumbnail .post-item .thum img {
    float: right;
    width: 126px;
    height: auto;
    margin-left: 57px;
    border: 1px solid #f1f1f1;
}

.list-type-thumbnail .post-item .title {
    max-width: 95%;
    margin-bottom: 12px;
    padding-top: 7px;
    font-size: 1.25em;
}

.list-type-thumbnail .post-item .excerpt {
    overflow: hidden;
    height: 3.75rem;
    margin-bottom: 20px;
    font-size: 0.875em;
    line-height: 1.25rem;
}

.list-type-text .post-header {
    margin-bottom: 38px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.list-type-text .post-item {
    float: none;
    overflow: hidden;
    width: 100%;
    margin: 0 0 35px;
}

.list-type-text .post-item .thum {
    display: none;
}

.list-type-text .post-item .title {
    max-width: 96%;
    margin-bottom: 10px;
    padding-top: 0;
    font-size: 1em;
}

.list-type-text .post-item .excerpt {
    max-width: 96%;
    margin-bottom: 20px;
    font-size: 0.875em;
    line-height: 1.25rem;
}


/* =========================
   태블릿 이하
========================= */

@media screen and (max-width: 1080px) {
    #footer,
    #header h1 {
        padding-left: 24px;
        padding-right: 24px;
    }

    #header .inner .logo {
        padding: 24px 20px 0;
    }
}


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

@media screen and (max-width: 767px) {

    #header h1 {
        position: relative;
        z-index: 10;
        padding: 40px 24px 0;
        background-color: #fff;
        margin: 0;
    }

    #header .inner .logo {
        padding: 24px 24px 0;
        text-align: center;
    }

    #container .content-wrap {
        padding: 0;
        margin: 0;
    }

    #content {
        float: none;
        width: auto;
        padding: 34px 24px 40px;
    }

    #aside {
        position: fixed;
        top: 0;
        right: -278px;
        z-index: 400;
        float: none;
        overflow: auto;
        width: 278px;
        height: 100%;
        padding: 94px 24px 40px;
        background-color: #fff;
        box-sizing: border-box;
        transition: right 0.5s ease;
    }

    #footer {
        padding: 32px 24px 26px;
    }

    #footer p {
        margin-bottom: 11px;
        font-size: 0.8125em;
    }

    .entry-content {
        padding: 0;
    }

    .entry-content h1 {
        font-size: 30px !important;
        line-height: 1.45;
    }

    .entry-content h2 {
        font-size: 26px !important;
        padding: 14px 16px;
        margin: 34px 0 18px;
    }

    .entry-content h3 {
        font-size: 23px !important;
        padding: 10px 14px;
        margin: 28px 0 16px;
    }

    .entry-content h4 {
        font-size: 19px !important;
        margin: 24px 0 12px;
    }

    .entry-content p {
        font-size: 17px !important;
        line-height: 1.85 !important;
        margin-bottom: 20px !important;
        word-break: keep-all;
    }

    .entry-content ul li,
    .entry-content ol li {
        font-size: 17px;
        line-height: 1.75;
    }

    .post-item {
        float: none;
        width: auto;
        margin-left: 0;
        margin-bottom: 30px;
    }

    .pagination {
        margin-bottom: 0;
    }

    .pagination a {
        margin: 0 4px;
    }

    .related-articles {
        margin-bottom: 21px;
        padding: 0 24px;
    }

    .related-articles ul li {
        width: 50%;
        margin-bottom: 15px;
    }

    a.mybutton {
        width: 90%;
        font-size: 1.15em;
        padding: 15px 24px;
        border-radius: 15px;
    }

    .myredbtn {
        width: 90%;
        padding: 12px 20px;
        font-size: 18px;
        letter-spacing: 1px;
    }

    .custom-banner-button {
        top: auto;
        bottom: 0;
        width: 100%;
        height: 60px;
    }

    .custom-banner-button:hover {
        width: 100%;
    }

    .custom-banner-button a {
        writing-mode: horizontal-tb;
        font-size: 18px;
        padding: 10px;
        letter-spacing: 2px;
    }
}

/* ===== 게시글 가운데 정렬 ===== */

/* 카테고리(분류) 숨김 */
.article-header .category,
.post-meta,
.post-category,
.category,
.entry-category {
    display: none !important;
}

/* 사이드바 제거 */
#aside{
    display:none !important;
}

/* 본문 전체 가운데 */
#content{
    float:none !important;
    width:100% !important;
    max-width:820px;
    margin:0 auto !important;
    padding:0 20px 60px !important;
}

/* 컨테이너 */
#container .content-wrap{
    max-width:1000px;
    margin:40px auto;
}

/* 글 내용 */
.entry-content{
    max-width:820px;
    margin:0 auto;
}