/* Newsletter List Container */
.newsletter-list-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f5f8fb;
    position: relative;
    overflow: hidden;
}

.newsletter-slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.newsletter-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Newsletter Card */
.newsletter-card {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.newsletter-card.active {
    background-color: #79b7d4;
    opacity: 1;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(121, 183, 212, 0.3);
}

.newsletter-card:not(.active) {
    opacity: 0.35;
}

.newsletter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.newsletter-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.newsletter-card-date {
    font-size: 13px;
    margin-bottom: 12px;
    color: #6b7c8f;
    font-weight: 400;
    line-height: 1.4;
}

.newsletter-card.active .newsletter-card-date {
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 auto 0;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 81px;
    flex-grow: 1;
}

.newsletter-card.active .newsletter-card-title {
    color: #ffffff;
}

.newsletter-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
}

.newsletter-card-link {
    font-size: 14px;
    text-decoration: none;
    color: #6b7c8f;
    font-weight: 500;
    transition: color 0.3s ease;
}

.newsletter-card.active .newsletter-card-link {
    color: #ffffff;
}

.newsletter-card-link:hover {
    color: #79b7d4;
}

.newsletter-card.active .newsletter-card-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-card-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7c8f;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-card:hover .newsletter-card-arrow,
.newsletter-card.active .newsletter-card-arrow {
    opacity: 1;
}

.newsletter-card.active .newsletter-card-arrow {
    color: #ffffff;
}

.newsletter-card-arrow svg {
    width: 100%;
    height: 100%;
}

/* Pagination */
.newsletter-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.newsletter-pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d0d8de;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-pagination-dot.active {
    background-color: #79b7d4;
    width: 10px;
    height: 10px;
}

.newsletter-pagination-dot:hover {
    background-color: #79b7d4;
    opacity: 0.7;
}

/* Newsletter Detail */
.newsletter-detail-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff;
}

.newsletter-detail-date {
    font-size: 16px;
    color: #6b7c8f;
    margin-bottom: 20px;
    font-weight: 400;
}

.newsletter-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.newsletter-detail-divider {
    width: 100%;
    height: 1px;
    background-color: #e0e6eb;
    margin-bottom: 40px;
}

.newsletter-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #6b7c8f;
}

.newsletter-detail-content p {
    margin-bottom: 20px;
}

.newsletter-detail-content h1,
.newsletter-detail-content h2,
.newsletter-detail-content h3,
.newsletter-detail-content h4,
.newsletter-detail-content h5,
.newsletter-detail-content h6 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.newsletter-detail-content h1 {
    font-size: 28px;
}

.newsletter-detail-content h2 {
    font-size: 24px;
}

.newsletter-detail-content h3 {
    font-size: 20px;
}

.newsletter-detail-content blockquote {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid #79b7d4;
    color: #8a9ba8;
    font-style: italic;
}

.newsletter-detail-content ul,
.newsletter-detail-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.newsletter-detail-content li {
    margin-bottom: 10px;
}

.newsletter-detail-content a {
    color: #79b7d4;
    text-decoration: none;
}

.newsletter-detail-content a:hover {
    text-decoration: underline;
}

.newsletter-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .newsletter-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .newsletter-list-container {
        padding: 20px 15px;
    }
    
    .newsletter-card {
        flex: 0 0 calc(100% - 20px);
        min-height: 250px;
    }
    
    .newsletter-card-title {
        font-size: 16px;
        min-height: 72px;
    }
    
    .newsletter-detail-container {
        padding: 40px 15px;
    }
    
    .newsletter-detail-title {
        font-size: 24px;
    }
    
    .newsletter-detail-content {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .newsletter-card {
        padding: 20px;
        min-height: 220px;
    }
    
    .newsletter-card-title {
        font-size: 15px;
        min-height: 60px;
    }
    
    .newsletter-detail-title {
        font-size: 20px;
    }
}

