@charset "utf-8";

/* Dark Mode base styles */
body {
    background: url('../../80special/img/img_bottom01.webp') no-repeat left center fixed !important;
    background-size: cover !important;
    color: #e0e0e0;
}

#container {
    background-color: transparent !important;
    color: #e0e0e0;
}

/* Header Area specific styles */
.series-header-area {
    width: 100%;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70vh;
}

.series-main-title {
    font-family: 'Noto Serif KR', serif; /* Changed to Serif */
    font-size: 54px; /* Bigger */
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.series-sub-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 50px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.scroll-indicator {
    margin-top: 30px;
    animation: floating 2s ease-in-out infinite;
    cursor: pointer;
    display: inline-block;
}

.scroll-indicator .icon {
    font-size: 40px;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    display: block;
    transform: scaleX(1.5); /* Make it wider */
    font-weight: 100;
}

@keyframes floating {
    0% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(15px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.7; }
}

.series-section-area {
    column-count: 4;
    column-gap: 24px;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Layout for masonry card */
.series-section-area .series-card-masonry {
    display: inline-block;
    width: 100%;
    margin-bottom: 24px;
    break-inside: avoid;
    vertical-align: top;
    background: #ffffff;
    border: none; 
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5); 
    box-sizing: border-box;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: auto !important; /* Force auto height */
}

.series-section-area .series-card-masonry:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.series-section-area .series-card-masonry::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #24b1c1;
    margin: 0 auto 15px auto;
    border-radius: 2px;
}

.series-section-area .series-card-masonry .top {
    width: 100%;
    text-align: center;
    margin-bottom: 18px;
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Title styles */
.series-section-area .series-card-masonry .top .title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    margin: 0;
    word-break: keep-all;
    letter-spacing: -0.5px;
}

.series-section-area .series-card-masonry .top .title a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s;
}

.series-section-area .series-card-masonry .top .title a:hover {
    color: #24b1c1;
}

/* Card Image */
.series-section-area .series-card-masonry .card-image {
    width: 100%;
    margin-top: 15px;
    height: auto; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.series-section-area .series-card-masonry .card-image img {
    display: block;
    width: 100%;
    height: auto !important;
    transition: transform 0.5s;
}

.series-section-area .series-card-masonry:hover .card-image img {
    transform: scale(1.05);
}

/* Grid List */
.series-section-area .series-card-masonry ul {
    margin: 0;
    padding: 10px 10px 0 10px;
}

.series-section-area .series-card-masonry ul li {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: flex-start;
}

.series-section-area .series-card-masonry ul li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.series-section-area .series-card-masonry ul li .headline {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    letter-spacing: -0.02em;
    transition: color 0.2s; /* Smooth color transition for text and ellipsis */
}

.series-section-area .series-card-masonry ul li .headline a {
    color: inherit; /* Inherit from headline to ensure unified hover state */
    text-decoration: none;
}

/* Hover Effect: Changes color of headline (and ellipsis) when hovering the list item */
.series-section-area .series-card-masonry ul li:hover .headline {
    color: #24b1c1;
}

/* Navigation Buttons */
.header-navigation-buttons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    z-index: 100;
    align-items: flex-start;
}
.btn-group {
    display: flex;
    gap: 10px;
}

/* Common Reset */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1;
}

/* Minimal Text Style (Previously opt5) */
.nav-style-minimal .nav-btn {
    padding: 8px 12px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    border-bottom: 1px solid transparent;
    border-radius: 0;
}

/* Disabled State */
.nav-btn.disabled {
    opacity: 0.3 !important;
    pointer-events: none !important;
    cursor: default !important;
}

.nav-style-minimal .nav-btn:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
    transform: translateY(-2px);
}
.nav-style-minimal .nav-btn .icon {
    margin-right: 5px;
    font-size: 18px;
}

/* Masonry Layout */
.series-section-area {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 10px;
    gap: 0 24px;
    opacity: 0; /* Initially hidden to prevent layout shift */
    transition: opacity 0.5s ease-in-out;
}
.series-section-area.loaded {
    opacity: 1; /* Show when loaded */
}
.series-card-masonry {
    width: auto !important;
    margin-bottom: 24px !important;
    break-inside: avoid;
    display: block !important;
}

