:root {
    --primary-color: #1a1a1a;
    --secondary-color: #c9a227;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --header-bg: #fff;
    --card-bg: #fff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.banner h2 {
    font-family: var(--font-sans) !important;
    font-weight: 700;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background: var(--header-bg);
    border-bottom: 3px solid var(--primary-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.containerHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.main-header h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    margin: 0 0 15px 0;
    letter-spacing: -1px;
    white-space: nowrap;
}

.main-header nav {
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.main-header nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    margin: 0;
    padding: 0;
}

header nav ul li {
    position: relative;
}

header nav ul li a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #555;
    white-space: nowrap;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

header nav ul li a .arrow {
    font-size: 0.6rem;
    margin-left: 5px;
    opacity: 0.6;
}

header nav ul li a:hover {
    color: var(--secondary-color);
}

/* Dropdown Styles */
.dropdown {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 180px;
    z-index: 2000;
    text-align: left;
}

.has-dropdown:hover .dropdown {
    display: block !important;
}

.has-dropdown {
    cursor: pointer;
}

.dropdown li {
    width: 100%;
}

.dropdown li a {
    padding: 10px 20px;
    display: block !important;
    font-size: 0.8rem !important;
    text-transform: none !important;
    color: #333 !important;
}

.dropdown li a:hover {
    background: #f5f5f5;
    color: var(--secondary-color) !important;
}

.banner {
    text-align: center;
    padding: 60px 20px;
    background: #000;
    color: #fff;
    margin-bottom: 40px;
}

.banner h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-thumb {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.post-content {
    padding: 25px;
}

.post-category {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.post-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 0 0 15px;
    line-height: 1.3;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.post-card time {
    font-size: 0.8rem;
    color: #999;
}

/* Post Detail */
.post-detail {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.2rem) !important;
    margin: 15px 0 !important;
    line-height: 1.4 !important;
    word-break: break-all !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    color: #111 !important;
    width: 100% !important;
    display: block !important;
    text-align: center;
}

.post-thumb-full {
    height: 450px;
    background-size: cover;
    background-position: center;
    margin: 0 -40px 40px;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 25px;
}

.post-body a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 162, 39, 0.3);
    transition: all 0.2s;
    font-weight: 500;
}

.post-body a:hover {
    color: #b08d1f;
    border-bottom-color: #b08d1f;
    text-decoration: none;
}

footer {
    background: #111;
    color: #777;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .main-header h1 {
        font-size: 1.8rem;
    }

    .post-thumb-full {
        height: 250px;
        margin: 0 -20px 20px;
    }

    .post-detail {
        padding: 20px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 60px 0 80px;
}

.page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #444;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.page-link:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.15);
}

.page-link.first,
.page-link.last,
.page-link.prev,
.page-link.next {
    font-size: 1.1rem;
    background: #fcfcfc;
    font-weight: 400;
}

.page-link.first:hover,
.page-link.last:hover,
.page-link.prev:hover,
.page-link.next:hover {
    background: #fff;
}

/* Related Content Section */
.related-content {
    margin: 40px auto 60px;
    max-width: 900px;
    padding: 0 20px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2rem;
    background: var(--secondary-color);
}

.btn-more {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.05em;
}

.btn-more:hover {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(174, 146, 66, 0.2);
}

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

.related-card {
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card a {
    text-decoration: none;
    display: block;
}

.related-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    background-color: #f5f5f5;
}

.related-cat {
    display: inline-block;
    padding: 2px 8px;
    background: #f9f6f0;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.related-info h4 {
    font-size: 1rem;
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 700;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3rem;
    /* Fixed height for alignment */
}

.related-date {
    font-size: 0.8rem;
    color: #999;
}

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

    .related-content {
        margin-top: 30px;
    }
}