/* Event Listing & Single Style */
/* Wrapper & Container */
.dgd-event-wrapper, .dgd-archive-wrapper, .dgd-post-wrapper.event-single, .dgd-single-wrapper {
    padding: 100px 0 120px;
    min-height: 80vh;
}
.dgd-event-container, .dgd-archive-container, .dgd-post-container, .dgd-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.dgd-post-container {
    max-width: 900px;
}

/* Event Archive Header (if used) */
.dgd-event-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}
.dgd-event-title {
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}
.dgd-event-desc {
    font-size: var(--fs-base);
    color: var(--text-muted);
}

/* Event List Top Info */
.dgd-event-top {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E2E8F0;
}
.blog-top .count {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
}
.blog-top .count strong {
    color: var(--primary);
    font-weight: 800;
}

/* [Standard] Blog Grid System (12-Column) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 92px 54px; /* Vertical 92px, Horizontal 54px */
    width: 100%;
    margin-top: 40px;
}

/* Base Post Card */
.post-card {
    grid-column: span 4;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
    cursor: pointer;
}

.card-inner {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
.theme-clean .post-card:hover .card-inner{
    transform:none;
    box-shadow:none
}
.post-card:hover .card-inner {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Featured Card (1/2 width) */
.post-card.is-featured {
    grid-column: span 6;
}

/* Responsive Tablet */
@media (max-width: 1024px) {
    .blog-grid {
        gap: 60px 40px;
    }
    .post-card {
        grid-column: span 6;
    }
    .post-card.is-featured {
        grid-column: span 12;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .blog-grid {
        gap: 40px 0;
    }
    .post-card, .post-card.is-featured {
        grid-column: span 12;
    }
}

/* [Standard] Global Wrapper */
.blog-wrapper {
    padding: 60px 0 0 0;
}
.cont {
    width: 100%;
    max-width: var(--cont);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Card Components */
.card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: 210px;
    background-color: var(--bg-pale);
    overflow: hidden;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.post-card:hover .card-thumb img {
    transform: scale(1.05);
}

.no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CBD5E1;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 2px;
}

.thumb-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
}
.badge-new {
    background-color: var(--accent-red);
    color: var(--bg-white);
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(230, 0, 19, 0.3);
}
.badge-status {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--bg-white);
}
.status-on { background-color: var(--secondary); box-shadow: 0 4px 10px rgba(0, 86, 255, 0.3); }
.status-end { background-color: var(--text-muted); opacity: 0.8; }

.item-badge {
    display: inline-flex;
    align-items: center;
    background: var(--secondary-light);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.card-info {
    padding: 24px;
}
.card-title {
    font-size: 19px;
    font-weight:600;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}
.card-meta {
    font-size: 14px;
    color: var(--text-muted);
}

/* Single Event Page Style */
.dgd-post-card {
    background: var(--bg-white);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(11, 40, 96, 0.05);
    padding: 60px;
}
.dgd-post-header {
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 40px;
    margin-bottom: 50px;
}
.post-category {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}
.post-title {
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}
.event-summary-box {
    background: var(--bg-pale);
    border-radius: 16px;
    padding: 20px;
    display: inline-block;
    min-width: 300px;
}
.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.summary-item .label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}
.summary-item .value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}
.event-main-image {
    margin: 0 -60px 40px;
}
.event-main-image img {
    width: 100%;
    display: block;
}
.dgd-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}
.dgd-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 30px 0;
}
.dgd-post-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #F1F5F9;
    text-align: center;
}
.btn-list {
    display: inline-block;
    padding: 16px 50px;
    background-color: var(--dark);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    transition: all 0.3s;
}
.btn-list:hover {
    background-color: #1E3A8A;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(11, 40, 96, 0.2);
}

.dgd-post-nav {
    margin-top: 50px;
    background: #F8FAFC;
    border-radius: 20px;
    overflow: hidden;
}
.nav-row {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #E2E8F0;
}
.nav-row:last-child { border-bottom: none; }
.nav-row .label { width: 100px; font-size: 13px; font-weight: 800; color: #64748B; }
.nav-row .link { flex: 1; font-size: 15px; color: #1E293B; text-decoration: none; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-row .link:hover { color: var(--primary); }

/* Empty State */
.dgd-empty-event {
    text-align: center;
    padding: 100px 0;
}
.empty-icon { font-size: 60px; margin-bottom: 20px; }
.dgd-empty-event p { font-size: 18px; color: #64748B; line-height: 1.6; }

/* Unified Pagination Style (WordPress Standard) */
.pagination {
    margin: 60px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.pagination .nav-links,
.pagination ul {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: #fff;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.pagination .page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 70, 173, 0.1);
}

.pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-blue);
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    color: var(--text-muted);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-weight: 800;
    padding: 0 20px;
    background: var(--bg-pale);
    color: var(--dark);
    border-color: transparent;
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
        padding: 0 8px;
    }
}



/* [Standard] Blog Magazine Section (Sticky Posts) */
.blog-magazine-section {
    border-bottom: 1px solid var(--border);
}

.magazine-layout-wrapper {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    align-items: flex-start;
}

.featured-side {
    grid-column: span 7;
}

.list-side {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Magazine List Card (Horizontal) */
.magazine-card {
    display: flex;
    gap: 20px;
    background: var(--bg-white);
    padding: 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.magazine-card:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.magazine-thumb {
    width: 160px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.magazine-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.magazine-date {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive Magazine */
@media (max-width: 1024px) {
    .featured-side, .list-side {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .magazine-card {
        flex-direction: column;
        gap: 15px;
    }
    .magazine-thumb {
        width: 100%;
    }
}

.magazine-excerpt {
    font-size: 15px;
    color: #64748B;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Clean Layout (No Border, Transparent) */
.dgd-item-clean {
    background: transparent;
    transition: all 0.3s ease;
}
.clean-link {
    text-decoration: none;
    display: block;
}
.clean-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background-color: #F1F5F9;
    margin-bottom: 20px;
}
.clean-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.dgd-item-clean:hover .clean-thumb img {
    transform: scale(1.1);
}
.clean-info {
    padding: 0 5px;
}
.badge-clean-cat {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 15px;
}
.clean-title {
    font-size: 20px;
    font-weight: 800;
    color: #1E293B;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clean-excerpt {
    font-size: 15px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clean-date {
    font-size: 14px;
    color: #94A3B8;
    font-weight: 500;
}

/* Badges & Dots */
.badge-sticky {
    background-color: var(--primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}
.badge-new-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #E5242A;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
}

/* Load More Button Styles */
.dgd-load-more-wrap {
    text-align: center;
    margin-top: 60px;
}
.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 60px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--dark);
}

/* Border Style (Initial) */
.btn-load-more {
    background: transparent;
    color: var(--dark);
}
.btn-load-more:hover {
    background: var(--dark);
    color: #FFFFFF;
}

/* Filled Style (After Load) */
.btn-load-more.is-filled {
    background: var(--dark);
    color: #FFFFFF;
}
.btn-load-more.is-filled:hover {
    background: var(--darker);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(11, 40, 96, 0.2);
}

.btn-load-more.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .dgd-event-grid { grid-template-columns: repeat(2, 1fr); }
    .magazine-thumb { width: 200px; }
}
@media (max-width: 768px) {
    .dgd-post-card { padding: 40px 24px; border-radius: 0; }
    .event-main-image { margin: 0 -24px 30px; }
    .post-title { font-size: 24px; }
    .btn-list { width: 100%; }
    .magazine-link { flex-direction: column; align-items: flex-start; gap: 15px; }
    .magazine-thumb { width: 100%; }
    .clean-link { gap: 10px; }
}
@media (max-width: 640px) {
    .dgd-event-grid { grid-template-columns: 1fr; }
    .dgd-event-title { font-size: 32px; }
    .card-title { font-size: 17px; }
    .magazine-title { font-size: 18px; }
    .clean-title { font-size: 18px; }
}


/* Container & Global Width Control */
/* Premium Magazine Section Style (스샷 2 기준) */
.sticky-magazine-section { 
    background: #fff; 
    padding: 60px 0; 
    border-bottom: 1px solid #f0f0f0; 
}

.magazine-header { 
    margin-bottom: 30px; 
    text-align: left; 
}

.magazine-header h3 { 
    font-size: var(--fs-xl); 
    font-weight: 800; 
    color: var(--dark); 
    letter-spacing: -0.02em; 
}

/* Magazine Wrapper: Side-by-Side */
.magazine-layout-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.mag-featured-side {
    flex: 1.2; /* 좌측 큰 피처 (60% 수준) */
}

.mag-list-side {
    flex: 0.8; /* 우측 리스트 (40% 수준) */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 1. Large Feature Item (Left) */
.mag-item-large {
    cursor: pointer;
    width: 100%;
}

.mag-item-large .mag-thumb {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
}

.mag-item-large .mag-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.mag-item-large:hover .mag-thumb img {
    transform: scale(1.05);
}

.mag-item-large .mag-title {
    font-size: var(--fs-xl);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--dark);
}

.mag-item-large .mag-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 2. Horizontal List Item (Right) */
.mag-item-horizontal {
    display: flex;
    gap: 20px;
    cursor: pointer;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.mag-item-horizontal:last-child {
    border-bottom: none;
}

.mag-item-horizontal .mag-thumb {
    width: 160px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.mag-item-horizontal .mag-info {
    flex: 1;
}

.mag-item-horizontal .mag-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    color: #222;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Common Meta Styles */
.item-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.mag-date, .item-date {
    font-size: 13px;
    color: #aaa;
}


/* Responsive Tablet */
@media (max-width: 1024px) {
    .dgd-main-archive-list .dgd-post-item {
        width: 50% !important; /* 2 Columns for Flex */
    }
    .dgd-event-grid, .dgd-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .dgd-main-archive-list .dgd-post-item {
        width: 100% !important; /* 1 Column for Flex */
    }
    .dgd-event-grid, .dgd-post-grid {
        grid-template-columns: 1fr;
    }
    .dgd-main-archive-list {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    .dgd-main-archive-list .dgd-post-item {
        padding: 10px !important;
    }
}


/* Item Card Inner Style (Correcting Padding Conflict) */
.dgd-post-item-inner {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Post Item Card Styles (Refined for Flexbox) */
.dgd-post-item {
    transition: 0.3s;
}

.dgd-post-item-inner {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.dgd-post-item:hover .dgd-post-item-inner {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.item-thumb {
    position: relative;
    aspect-ratio: 16/9;
    height:210px
}

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

.badge-notice {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0046ad;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
}

.item-info {
    padding: 20px;
}

.item-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #222;
}

.is-featured .item-title {
    font-size: 22px;
}

/* Responsive */
@media (max-width: 1024px) {
    .magazine-layout-wrapper {
        flex-direction: column;
    }
    .mag-featured-side, .mag-list-side {
        width: 100%;
    }
    .dgd-post-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .dgd-post-item, .dgd-post-item.is-featured {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .dgd-post-grid {
        grid-template-columns: 1fr !important;
    }
    .mag-item-horizontal {
        flex-direction: column;
    }
    .mag-item-horizontal .mag-thumb {
        width: 100%;
        height: 180px;
    }
}
