/* article.css — 본문(기사) 스타일 모음. 이미지는 image-grid.css 의 .ig 를 쓴다(옛 tips-image-grid·quiz-answer-images·meme-image-wrapper 규칙은 뺐다).
   합친 원본: tips.css, tot.css, news.css, newyear.css, effect.css, box-style.css, tinymce-content.css */

/* ===== tips.css ===== */
/* TIPS News Page Styles */

/* Header Placeholder Height */
#header-placeholder {
    height: 100px;
}

/* Dark Filter for Title Section */
.title-section--dark {
    margin-top: 0;
    position: relative;
}

.title-section--dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 어두운 막 0.35 → 0.5, 글자가 놓이는 가운데를 조금 더 어둡게 */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

/* 확대된 배너의 거친 면을 의도한 흐림으로 보이게 — 배경 레이어(::before)에만 blur. 가장자리 번짐은 inset 을 키워 감춘다 */
.title-section--dark::before {
    inset: -12px;
    filter: blur(2px);
}

.title-section--dark .container {
    position: relative;
    z-index: 2;
    min-height: auto;
    display: block;
    justify-content: flex-start;
}

.title-section--dark .title-hero {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.title-section--dark .magazine-subtitle {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* News Article Container */
.tips-article {
    background: white;
    margin-bottom: 60px;
    padding: 40px;
    /* border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
}

.tips-article-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    letter-spacing: -0.1rem;
    line-height: 1.4;
    padding-bottom: 20px;
    word-break: break-all;
    border-bottom: 3px solid #282829;
}

.tips-article-content-question {
    font-size: 1.15rem;
    line-height: 2;
    color: #2DAEA4;
    margin-bottom: 2rem;
    text-align: justify;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 5px; /* 밑줄과 글자 사이 간격 */
}

.tips-article-content {
    font-size: 1.1rem;
    line-height: 2;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

.tips-article-content-desc {
    font-size: 0.9rem;
    line-height: 2;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

.tips-article-content strong {
    font-weight: 700;
    color: black;
}

/* Tailwind의 img display:block 덮어쓰기 - 부모의 text-align 따르도록 */
.tips-article-content img,
.tips-article-content-desc img {
    display: inline-block !important;
    max-width: 100%;
    height: auto;
}

/* Divider */
.tips-divider {
    height: 2px;
    background: linear-gradient(90deg, #e0e0e0 0%, transparent 100%);
    margin: 60px 0;
}

/* Table Styles */
.tips-table-wrapper {
    margin: 30px 0;
    overflow-x: auto;
}

.tips-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #e0e0e0;
}

.tips-table td {
    padding: 5px 5px;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    color: #333;
    line-height: 1.8; 
}

.tips-table td img{
  width: 100% !important;
  height: 350px !important;
  object-fit: fill !important;
  display: block;
}

.tips-table th {
    padding: 5px 18px;
    background: #f8f9fa;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    width: 150px;
    vertical-align: middle;
    text-align: center;
}

/* Dark header style for tables */
.tips-table th.dark-header {
    background: #2c3e50;
    color: white;
    text-align: center;
    border-bottom: 1px solid white;
}



/* Centered table cells */
.tips-table td.centered {
    text-align: center;
    vertical-align: middle;
}

/* Table section title */
.tips-table-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* Table info text */
.tips-table-info {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
}

/* Table header styles */
.tips-table-header-gray {
    text-align: center;
    background: #e9ecef;
}

/* Table cell width styles */
.tips-table-cell-50 {
    width: 50%;
    text-align: center;
    vertical-align: middle;
}

.tips-table-cell-30 {
    width: 30%;
    text-align: center;
    vertical-align: middle;
}

.tips-table-cell-70 {
    width: 70%;
    /* text-align: center; */
    vertical-align: middle;
}

/* Table wrapper with spacing */
.tips-table-wrapper-spaced {
    margin-top: 40px;
}

.tips-table-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-table-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
}

.tips-table-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .tips-article {
        padding: 30px 0px;
        margin-bottom: 40px;
    }

    .tips-article-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .tips-article-content {
        font-size: 1rem;
        line-height: 1.9;
    }

    .tips-table th,
    .tips-table td {
        padding: 10px;
        font-size: 14px;
    }

    .tips-table th {
        width: 100px;
    }

    figure img{
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {.tips-article {
        padding: 0px;
        text-align: center;
    }


    .tips-article-content {
        font-size: 14px;
        line-height: 1.8;
    }

    .tips-table th,
    .tips-table td {
        padding: 8px;
        font-size: 13px;
    }

    .tips-table th {
        width: 80px;
    }

    .tips-table-list li {
        padding: 6px 0;
        font-size: 13px;
    }

    .tips-article-content-question {
        font-size: 1rem;
        line-height: 2;
        color: #2DAEA4;
        margin-bottom: 1rem;
        text-align: justify;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 5px;
        /* 밑줄과 글자 사이 간격 */
    }
}

/* 모바일 반응형 */
@media (max-width: 800px) {
    .tips-article-content img {
        float: none !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width:100% !important;
        height:auto !important;
        padding:0 !important;
        margin-bottom: 15px !important;
    }

    .tips-table-wrapper table,
.tips-table-wrapper table * {
  font-size: 0.9rem !important;
}}

/* ===== tot.css ===== */
/* VC ToT Quiz Page Styles */

.tot-section {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%);
    padding: 60px 0;
}

.tot-header {
    text-align: left;
    margin-bottom: 40px;
}

.tot-badge {
    display: inline-block;
    background: #333;
    color: white;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.tot-main-title {
    font-size: 48px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.tot-subtitle {
    font-size: 28px;
    font-weight: 300;
    color: #333;
    margin-bottom: 24px;
    line-height: 1.4;
}

.tot-intro {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}

.tot-author {
    font-size: 14px;
    color: #666;
    margin-top: 24px;
}

/* Quiz Section */
.quiz-container {
    background: white;
    margin: 40px 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.quiz-header {
    background: linear-gradient(135deg, #1e4a8f 0%, #163779 100%);
    color: white;
    padding: 30px 40px;
    position: relative;
}

.quiz-number {
    position: absolute;
    top: -20px;
    right: 40px;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    color: #163779;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quiz-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.quiz-question {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

.quiz-body {
    padding: 40px;
}

.quiz-options {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.quiz-options li {
    padding: 12px 20px;
    margin-bottom: 10px;
    background: #f8f8f8;
    border-left: 4px solid #163779;
    font-size: 1rem;
    /* line-height: 1.6; */
    transition: all 0.3s;
}

.quiz-options li:hover {
    background: #fff5f0;
    transform: translateX(5px);
}

.quiz-answer-section {
    background: #f0f9ff;
    padding: 25px 30px;
    margin: 30px -40px -40px -40px;
    border-top: 3px solid #163779;
    display: flex;
    align-items: center;
    gap: 40px;
    overflow: visible;
    /* 이미지 튀어나오는 부분 허용 */
}

.quiz-answer-content {
    flex: 1;
}

.quiz-answer-label {
    font-size: 18px;
    font-weight: 700;
    color: #163779;
    margin-bottom: 16px;
}

.quiz-answer-text {
    font-size: 1rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 12px;
}

/* Image Grid */
.tot-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.tot-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tot-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tot-image-item:hover img {
    transform: scale(1.05);
}

/* Decorative Elements */
.arrow-connector {
    text-align: center;
    color: #163779;
    font-size: 24px;
    margin: 20px 0;
}

/* Meme of the Month Section */
.meme-container {
    background: white;
    margin: 40px 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #163779;
}

.meme-header {
    background: #f0f9ff;
    padding: 30px 40px;
    border-bottom: 1px solid #e0e0e0;
}

.meme-label {
    font-size: 1rem;
    font-weight: 700;
    color: #163779;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meme-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.4;
}

.meme-body {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.meme-text-content {
    flex: 1;
}

.meme-content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.meme-content-text strong {
    color: #007bff;
}
/* Responsive */
@media (max-width: 768px) {
    .tot-main-title {
        font-size: 32px;
    }

    .tot-subtitle {
        font-size: 20px;
    }

    .quiz-header {
        padding: 25px 25px;
    }

    .quiz-answer-section {
        flex-direction: column;
        padding: 25px;
        gap: 20px;
    }

    .quiz-number {
        width: 60px;
        height: 60px;
        font-size: 28px;
        right: 25px;
    }

    .quiz-question {
        font-size: 1rem;
    }

    .quiz-body {
        padding: 15px;
    }

    .tot-image-grid {
        grid-template-columns: 1fr;
    }

    .meme-body {
        flex-direction: column-reverse;
        padding: 20px 10px;
        gap: 20px;
        text-align: center;
    }

    .quiz-options li {
        padding: 5px;
    }

    .quiz-answer-text{
        line-height: 1.6;
    }

    .meme-title {
        font-size: 1.2rem;
        font-weight: 800;
        color: #1a1a1a;
        line-height: 1.4;
    }

    .meme-header{
        padding: 20px 20px;
    }
}

/* ===== news.css ===== */
/* Member News Page Styles */

/* News Grid Container */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 30px;
    margin-top: 40px;
}

/* News Card */
.news-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.18);
    outline: none;
}

.news-card:hover,
.news-card:focus {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
    border: 2px solid rgba(139, 149, 165, 0.5);
}

.news-card:focus {
    outline: 2px solid rgba(139, 149, 165, 0.7);
    outline-offset: 2px;
}

/* Card Image */
.news-card-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-image img {
     max-width: 300px;
        max-height: 150px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    max-width: 100%;
    max-height: 100%;
    padding: 30px;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

/* Card Content */
.news-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(230, 235, 240, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.news-card-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    text-align: center;
    /* line-height: 1.6; */
    margin-bottom: 0;
    flex: 1;
    /* 2줄 말줄임 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty State */
.news-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

/* Responsive */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 25px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 50px 25px;
    }

    .news-card-image {
        height: 120px;
    }

    .news-card-title {
        font-size: 20px;
    }

    .news-card-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .news-card-image {
        height: 120px;
    }

    .news-card-image img {
        padding: 15px;
    }

    .news-card-title {
        font-size: 18px;
    }

    .news-card-subtitle {
        font-size: 14px;
    }
}

/* ===== newyear.css ===== */
/* New Year Message Page Styles */

/* Hero Section with Portrait */
.newyear-hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.newyear-portrait {
    max-width: 300px;
    margin: 0 auto 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.newyear-portrait img {
    width: 100%;
    height: auto;
    display: block;
}

.newyear-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-align: center;
}

.newyear-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-bottom: 8px;
}

.newyear-date {
    font-size: 14px;
    color: #999;
    text-align: center;
}

/* Message Content */
.message-container {
    background: white;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.message-container::after {
    content: "";
    display: table;
    clear: both;
}

/* Content Wrapper - Text wraps around image */
.message-content-wrapper {
    columns: 2;
    column-gap: 40px;
    column-rule: 1px solid #e0e0e0;
}

.message-greeting {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
    break-inside: avoid;
}

.message-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 18px;
    text-align: justify;
    word-break: auto-phrase;
    break-inside: avoid;
}

.handwriting {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 40px !important;
    /* 손글씨 폰트는 작게 보일 수 있어 크기를 키움 */
    color: #090e43;
    line-height: 1.2;
    font-weight: 900;
}

.message-content.highlight {
    background: #f8f9fa;
    padding: 18px;
    border-left: 4px solid #007bff;
    margin: 25px 0;
    break-inside: avoid;
}

.message-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #007bff;
    margin-top: 30px;
    margin-bottom: 15px;
    break-after: avoid;
}

.message-closing {
    font-size: 17px;
    line-height: 1.4;
    color: #333;
    margin-top: 40px;
    text-align: center;
    break-inside: avoid;
}

.message-signature {
    margin-top: 40px;
    text-align: right;
    break-inside: avoid;
}

.message-signature .name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.message-signature .name .signature-img {
    height: 50px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.message-signature .title {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Decorative Elements */
.message-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    break-inside: avoid;
}

.message-divider::before,
.message-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #d0d0d0;
}

.message-divider::before {
    margin-right: 10px;
}

.message-divider::after {
    margin-left: 10px;
}

.message-divider::before {
    background: linear-gradient(to right, transparent, #d0d0d0);
    border: none;
    height: 1px;
}

.message-divider::after {
    background: linear-gradient(to left, transparent, #d0d0d0);
    border: none;
    height: 1px;
}

/* 다이아몬드 중앙 장식 */
.message-divider {
    position: relative;
}

.message-divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #d0d0d0 100%);
    margin-right: 15px;
}

.message-divider::after {
    content: '◇';
    flex: 0;
    font-size: 12px;
    color: #d0d0d0;
    padding: 0 15px;
}

.message-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, transparent 0%, #d0d0d0 100%);
    margin-left: 15px;
}

/* 실제 구현 - 중앙 다이아몬드 포함 */
.message-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    break-inside: avoid;
}

.message-divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #c0c0c0 100%);
    margin-right: 15px;
}

.message-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, transparent 0%, #c0c0c0 100%);
    margin-left: 15px;
}

/* 리스트 아이템 */
.message-list {
    margin: 20px 0;
    padding-left: 20px;
    break-inside: avoid;
}

.message-list-item {
    font-size: 17px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 14px;
    position: relative;
    padding-left: 20px;
    break-inside: avoid;
}

.message-list-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 1200px) {.message-content-wrapper {
        column-gap: 30px;
    }
}

@media (max-width: 968px) {.message-content-wrapper {
        columns: 1;
    }

    .message-container {
        padding: 40px 30px;
    }

    .message-content {
        font-size: 16px;
        line-height: 2;
    }

    .message-list-item {
        font-size: 16px;
        line-height: 2;
    }
}

@media (max-width: 768px) {
    .newyear-portrait {
        max-width: 250px;
    }

    .newyear-title {
        font-size: 28px;
    }

    .newyear-subtitle {
        font-size: 16px;
    }

    .message-container {
        padding: 40px 25px;
    }

    .message-greeting {
        font-size: 17px;
    }

    .message-content {
        font-size: 15px;
        line-height: 1.9;
    }

    .message-section-title {
        font-size: 16px;
    }

    .message-signature .name {
        font-size: 15px;
    }

    .message-signature .name .signature-img {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .newyear-portrait {
        max-width: 200px;
    }

    .message-container {
        padding: 30px 20px;
    }

    .message-greeting {
        font-size: 16px;
    }

    .message-content {
        font-size: 14px;
        line-height: 1.8;
        word-break: break-all;
    }

    .message-signature .name .signature-img {
        height: 40px;
    }

    .message-container {
        padding: 20px 0px;
        box-shadow: none;
    }

    .message-list-item {
        font-size: 14px;
    }

    .handwriting {
        font-size: 24px;
        text-align: center;
    }
}

/* ===== effect.css ===== */
/* UI effects split from style.css */

/* Custom nav open button (btn_navOpen) */
#btn_navOpen.hamburger-menu {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    display: none;
    /* 기본적으로 숨김 (데스크탑) */
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

#btn_navOpen.hamburger-menu b {
    display: grid;
    grid-auto-flow: row;
    gap: 4px;
    font-size: 0;
    /* 텍스트 숨김(아이콘만) */
    line-height: 0;
}

#btn_navOpen.hamburger-menu b span {
    display: block;
    width: 18px;
    height: 2px;
    background: #111;
    border-radius: 999px;
    transform-origin: center;
    transition: background 0.25s ease, transform 0.35s ease, width 0.25s ease;
}

/* middle bar slightly shorter */
#btn_navOpen.hamburger-menu b span:nth-child(2) {
    width: 12px;
    justify-self: end;
}

/* Hover: invert span colors + flip middle bar */
/* #btn_navOpen.hamburger-menu:hover {
    background: rgba(17, 17, 17, 0.92);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
} */

/* active state: transform to X */
#btn_navOpen.hamburger-menu.is-active b span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: #fff;
}

#btn_navOpen.hamburger-menu.is-active b span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

#btn_navOpen.hamburger-menu.is-active b span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background: #fff;
}

#btn_navOpen.hamburger-menu.is-active b span {
    background: #fff;
}

#btn_navOpen.hamburger-menu.is-active {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
}

#btn_navOpen.hamburger-menu:hover b span:nth-child(2) {
    width: 18px;
    transform: translateX(0);
}

#btn_navOpen.hamburger-menu:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 152, 40, 0.35);
    border-color: rgba(255, 152, 40, 0.55);
}

/* ===== box-style.css ===== */
/* Box Styles for TinyMCE Editor */

/* 정보 박스 - 파란색 테마 */
.info-box {
  position: relative;
  background-color: #e7f3ff;
  border-left: 4px solid #2196F3;
  padding: 16px 20px 16px 48px;
  margin: 16px 0;
  border-radius: 4px;
  color: #0d47a1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-box::before {
  content: "ℹ️";
  position: absolute;
  left: 20px;
  top: 16px;
  font-weight: bold;
  font-size: 1.2em;
}

/* 경고 박스 - 노란색/주황색 테마 */
.warning-box {
  position: relative;
  background-color: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 16px 20px 16px 48px;
  margin: 16px 0;
  border-radius: 4px;
  color: #e65100;
  font-size: 0.95rem;
  line-height: 1.6;
}

.warning-box::before {
  content: "⚠️";
  position: absolute;
  left: 20px;
  top: 16px;
  font-weight: bold;
  font-size: 1.2em;
}

/* 성공 박스 - 녹색 테마 */
.success-box {
  position: relative;
  background-color: #e8f5e9;
  border-left: 4px solid #4caf50;
  padding: 16px 20px 16px 48px;
  margin: 16px 0;
  border-radius: 4px;
  color: #1b5e20;
  font-size: 0.95rem;
  line-height: 1.6;
}

.success-box::before {
  content: "✅";
  position: absolute;
  left: 20px;
  top: 16px;
  font-weight: bold;
  font-size: 1.2em;
}

/* 박스 내부 요소 스타일링 */
.info-box p,
.warning-box p,
.success-box p {
  margin: 0;
  padding: 0;
}

.info-box p + p,
.warning-box p + p,
.success-box p + p {
  margin-top: 8px;
}

/* 박스 내부 강조 텍스트 */
.info-box strong,
.warning-box strong,
.success-box strong {
  font-weight: 700;
}

.hr-1px { height: 1px; background: #313131; margin: 20px 0; }
.hr-2px { height: 2px; background: #313131; margin: 20px 0; }
.hr-3px { height: 3px; background: #313131; margin: 20px 0; }

/* ===== tinymce-content.css ===== */
/* TinyMCE 에디터 내부 스타일 */

/* 기본 폰트 및 타이포그래피 */
body { 
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.1rem;
}
/* 에디팅 시 단락 간 마진 간격 제거 */
body p {
  margin: 0;
}

/* figure 태그는 이미지 너비에 맞춤 */
figure.image,
figure {
  display: block !important;
  margin: 0 !important;
  width: fit-content !important;
  max-width: 100% !important;
}

/* 정렬 클래스에 따른 패딩 */
figure.image.align-left,
figure.align-left {
  padding-right: 1rem !important;
  float:left !important;
}

figure.image.align-right,
figure.align-right {
  padding-left: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  float:right !important;
}

img[style*="float: left"] {
  padding-bottom: 0.5rem !important;
  padding-right: 1.5rem !important;
}

img[style*="float: right"] {
  padding-left: 1.5rem !important;
}
/* figcaption 스타일 - 이미지 너비 내에서 강제 줄바꿈 */
figure figcaption {
  display: block;
  margin-top: 8px;
  padding-bottom: 10px;
  font-size: 0.875rem;
  color: #666;
  text-align: center;
  font-style: italic;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* 이미지 클래스 (추가 예시) */
.img-rounded,
figure.img-rounded img,
figure.image.img-rounded img {
  border-radius: 12px;
}

.img-shadow,
figure.img-shadow,
figure.image.img-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
  figure.image.align-left,
  figure.align-left,
  figure.image.align-right,
  figure.align-right {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    padding: 0% !important;
  }
}

/* 이미지 클래스에 따른 마진 */
.editor-content img[style*="float: left"] {
  margin-right: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  display: block;
}
.editor-content img[style*="float: right"] {
  margin-left: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  display: block;
}
@media (max-width: 600px) {
  .editor-content img[style*="float: left"],
  .editor-content img[style*="float: right"] {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
}

/* ===== .ig 가 flex 줄 안에 놓일 때(퀴즈 정답·밈) ===== */
.quiz-answer-section > .ig,
.meme-body > .ig { flex-shrink: 0; margin: 0; }
@media (max-width: 768px) {
  .quiz-answer-section > .ig,
  .meme-body > .ig { --ig-w: 100%; }
}

/* ===== 본문이 .container 없이 시작해도 페이지 폭을 넘지 않게 ===== */
.article-section > .ig,
.article-section > img {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}
