/* ==========================================================================
           common.css (전체 공통 스타일)
           ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    color: #222;
    line-height: 1.6;
    background-color: #fcfcfc;
}

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

a:hover {
    text-decoration: underline;
}

ul, ol, li {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    padding: 30px 0;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
    background-color: #fff;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 2px solid #003366;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.site-logo {
    font-size: 40px;
    font-weight: 900;
    color: #003366;
    letter-spacing: -1.5px;
}

.site-logo img {
    height: 60px;
}

.site-logo span {
    color: #e63946;
}

.header-search {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    padding: 5px 15px;
    overflow: hidden;
    background: #f9f9f9;
}

.header-search input {
    border: none;
    outline: none;
    background: transparent;
    padding: 5px;
    font-size: 14px;
    width: 200px;
}

.header-search button {
    color: #666;
    font-weight: bold;
}

/* Navigation */
.gnb {
    background: #003366;
    color: #fff;
}

.gnb-inner {
    display: flex;
    gap: 40px;
    padding: 15px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.gnb a {
    font-weight: 600;
    font-size: 16px;
    /* letter-spacing: -0.5px; */
    text-decoration: none !important;
}

.gnb a:hover {
    color: #fca311;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
    background: transparent;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #003366;
    transition: all 0.3s;
    border-radius: 2px;
}

/* SPA Page Sections */
.page-section {
    display: none;
    background: #fff;
    padding: 30px;
    border: 1px solid #eaeaea;
    border-top: none;
}

.page-section.active {
    display: block;
}

/* Main View (main.html) */
.main-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-article {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.hero-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.hero-article:hover img {
    opacity: 1;
}

.hero-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.hero-info .tit {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.3;
}

.hero-info .desc {
    font-size: 14px;
    margin-top: 10px;
    color: #ddd;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sub-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-hero-article {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 100%;
    background: #000;
}

.sub-hero-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.sub-hero-article .hero-info .tit {
    font-size: 18px;
}

.list-section-title {
    font-size: 22px;
    font-weight: bold;
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 40px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.news-item .thumb {
    width: 200px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.news-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item .info .tit {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
}

.news-item .info .desc {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.news-item .info .meta {
    font-size: 13px;
    color: #999;
}

/* Article View (view.html) */
.article-view-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.article-view-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #111;
    letter-spacing: -1px;
}

.article-view-meta {
    color: #777;
    font-size: 14px;
    display: flex;
    gap: 20px;
}

.article-view-body {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    word-break: keep-all;
}

.article-view-body img {
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-tools {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 40px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
}

.tool-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.tool-btn:hover {
    background: #003366;
    color: #fff;
    border-color: #003366;
}

/* About Page Tabs (about.html) */
.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-header img {
    max-width: 300px;
    margin: 0 auto 20px;
}

.about-tabs {
    display: flex;
    border-bottom: 2px solid #003366;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.about-tab-btn {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 8px 8px 0 0;
    color: #555;
    transition: 0.2s;
}

.about-tab-btn.active {
    background: #003366;
    color: #fff;
    border-color: #003366;
}

.about-content {
    font-size: 16px;
    line-height: 1.8;
    display: none;
    color: #444;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.about-content.active {
    display: block;
}

.about-content h3 {
    font-size: 22px;
    color: #003366;
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    padding: 20px 0;
    border-top: 1px solid #333;
    margin-top: 50px;
    font-size: 14px;
    color: #aaa;
}

.footer-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.footer-nav a {
    font-weight: bold;
    color: #ccc;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.footer-info p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-info strong {
    color: #ddd;
    display: inline-block;
    width: 140px;
}

.footer-copy {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    color: #777;
}

/* ==========================================================================
           side_section.css (우측 사이드바)
           ========================================================================== */
.aside.view-sidebar {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
/*
.ad_vert {
    width: 100%;
    background: #f0f0f0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    color: #999;
    text-align: center;
    position: relative;
}
*/
.ad_vert img {
    width: 100%;
    display: block;
}


.section_09 {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 8px;
}

.section_09 h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    border-left: 4px solid #003366;
    padding-left: 10px;
    color: #111;
}

.section_09 ul li {
    margin-bottom: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}

.section_09 ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.section_09 ul li a {
    display: flex;
    gap: 15px;
}

.section_09 .thumb {
    width: 90px;
    height: 65px;
    flex-shrink: 0;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.section_09 .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section_09 .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section_09 .info .tit {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
    color: #333;
}

.section_09 .info .press {
    font-size: 12px;
    color: #999;
}




/* Spotlight & Opinion Section */
.spotlight-opinion-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.section-header-title {
    font-size: 20px;
    font-weight: bold;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header-title i {
    font-style: normal;
    font-size: 14px;
    color: #999;
    font-weight: normal;
    cursor: pointer;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.spotlight-large-wrap {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.spotlight-large {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spotlight-large .thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 4px;
}

.spotlight-large .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-large .tit {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    color: #111;
}

.spotlight-large .desc {
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spotlight-small-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.spotlight-small {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border-bottom: 1px dashed #eee;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.spotlight-small:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.spotlight-small .thumb {
    width: 110px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.spotlight-small .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-small .info {
    flex: 1;
}

.spotlight-small .info .tit {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.3;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spotlight-small .info .desc {
    font-size: 12px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.opinion-box {
    background: #fdf6e3;
    padding: 25px 20px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #f0e5c9;
}

.opinion-box .tag {
    font-size: 12px;
    color: #c25953;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.opinion-box .quote {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    word-break: keep-all;
}

.opinion-item {
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px dashed #ddd;
    padding: 15px 0;
}

.opinion-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.opinion-item .author-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eaeaea;
    background: #fff;
}

.opinion-item .author-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opinion-item .info .author-name {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
    font-weight: bold;
}

.opinion-item .info .tit {
    font-size: 14px;
    font-weight: bold;
    color: #222;
}

/* 4-Column Category Section */
.category-4col-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.category-col-header {
    font-size: 16px;
    font-weight: bold;
    border-top: 2px solid #000;
    padding-top: 15px;
    margin-bottom: 15px;
    color: #111;
}

.category-col-main {
    margin-bottom: 15px;
    display: block;
}

.category-col-main .thumb {
    width: 100%;
    height: 130px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.category-col-main .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-col-main .tit {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-col-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.category-col-list a {
    font-size: 13px;
    color: #444;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 992px) {

    .container {padding: 0 20px;}

    .content-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .aside.view-sidebar {
        width: 100%;
    }

    .main-hero-grid {
        grid-template-columns: 1fr;
    }

    .sub-hero-grid {
        flex-direction: row;
    }

    .ad_text_pic_B ul {
        grid-template-columns: 1fr;
    }

    .spotlight-opinion-container {
        grid-template-columns: 1fr;
    }

    .category-4col-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 15px 0;
        align-items: center;
    }

    .site-logo {
        font-size: 30px;
    }

    .header-search {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .gnb {
        display: none;
        width: 100%;
        border-top: 1px solid #002244;
    }

    .gnb.active {
        display: block;
    }

    .gnb-inner {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .gnb a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        text-align: left;
    }

    .sub-hero-grid {
        flex-direction: column;
    }

    .hero-article { height: 400px;}

    .news-item {
        flex-direction: column;
    }

    .news-item .thumb {
        width: 100%;
        height: 200px;
    }

    .article-view-title {
        font-size: 26px;
    }

    .article-view-body { font-size: 16px; letter-spacing: -0.03rem; line-height:1.6; }
    .article-view-body img {
        margin: 0 auto 30px; }

    .spotlight-grid {
        grid-template-columns: 1fr;
    }

    .category-4col-container {
        grid-template-columns: 1fr;
    }

    .site-footer {  padding:30px 10px;}
    .article-tools {
        display: flex;
        justify-content: center; }

    .tool-btn { font-size: 12px; padding: 6px 14px;}

}


[class*=section_] {
    margin-bottom: 0 !important;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 8px;
}



[class*=section_] h3 {
    position: relative;
    padding-bottom: 20px;
    line-height: 1.3
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    border-left: 4px solid #003366;
    padding-left: 10px;
    color: #111;
}


[class*=ad_text]{  margin-bottom: 0 !important;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 8px;}


[class*=ad_text] h4{
    margin-bottom: 20px;
    border-left: 4px solid #003366;
    padding-left: 10px;
    color: #111;
}

.ad_text_pic_C, .ad_text_A, .ad_text_B { margin-bottom: 20px !important; }


/* 기본 광고 배너 */
.ad-banner { width: 100%; /*background-color: #161B2E; border: 1px solid #1e293b;*/  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; cursor: pointer; margin: 2rem 0;  }
@media (min-width: 768px) { .ad-banner {  } }
.ad-bg { position: absolute; inset: 0; background: linear-gradient(to right, rgba(30,58,138,0.1), transparent, rgba(30,58,138,0.1)); opacity: 0.5; }
.ad-content { position: relative; z-index: 10; text-align: center; }
.ad-label { font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: 0.1em; font-weight: bold; display: block; margin-bottom: 0.25rem; }
.ad-text { color: #94a3b8; font-weight: 500; }
@media (min-width: 768px) { .ad-text { font-size: 1.125rem; } }
.ad-badge {position: absolute;top: 3px;right: 3px;font-weight: bold;margin: auto;display: flex;align-items: center;font-size: 10px;background: rgba(0, 0, 0, 0.1);color: #cecdcd;padding: 2px 6px;border-radius: 3px;}

/* 우측 광고배너 */
.banner_ad{position:absolute;top:2px; right:2px; width: auto !important; height: 16px; z-index:1;cursor:pointer;

    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
}

@media (max-width: 768px) {

    [class*=section_] {
        margin-bottom: 0 !important;
        background: #fff;
        border: 1px solid #eaeaea;
        padding: 20px 10px;
        border-radius: 8px;
    }



    [class*=section_] h3 {
        position: relative;
        padding-bottom: 20px;
        line-height: 1.3
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 20px !important;
        border-left: 4px solid #003366;
        padding-left: 10px;
        color: #111;
    }


    [class*=ad_text]{ margin-bottom: 10px !important;
        background: #fff;
        border: 1px solid #eaeaea;
        padding: 20px 0;
        border-radius: 8px;
    }


    [class*=ad_text] h4{
        margin-bottom: 20px;
        border-left: 4px solid #003366;
        padding-left: 10px;
        color: #111;
    }



    .ad_text_pic_C li a, .ad_text_A li a, .ad_text_B li a { white-space: unset !important; }



}