body {
    overflow-x: hidden;
}

.newsletter-hero-section,
.newsletter-sidebar,
.newsletter-viewer-col {
    font-family: 'Roboto', sans-serif;
    color: #333;
}

.newsletter-hero-section h1,
.newsletter-viewer-col h2,
.newsletter-viewer-col h3,
.year-label-box {
    font-family: 'Playfair Display', serif;
}

.newsletter-sidebar {
    background-color: #f5f5f5;
    padding: 12px 12px;
}

.sidebar-search .input-group {
    background-color: #f5f5f5; 
    border: 1px solid #dee2e6;
    border-radius: 4px;
    max-height: 30px; 
    display: flex;
    align-items: center;
}

.sidebar-search .form-control {
    border: none;
    background-color: transparent;
    font-size: 0.85rem;
    padding: 0 10px;
    height: 28px;
    box-shadow: none !important;
}

/* Search Icon */
.sidebar-search .input-group-text:first-child {
    background-color: transparent;
    border: none;
    font-size: 0.75rem;
    padding-left: 10px;
    padding-right: 10px;
    color: #6c757d;
}

/* Plus Button */
.btn-sidebar-add {
    background: transparent;
    border: none;
    color: #6c757d; 
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-sidebar-add:hover {
    color: #000000; 
}

.newsletter-archive {
    max-height: 600px; 
    overflow-y: auto;  
    padding-right: 15px;
    scrollbar-width: thin; 
    scrollbar-color: #FFC107 #f5f5f5;
}

.newsletter-archive::-webkit-scrollbar {
    width: 6px;
}

.newsletter-archive::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.newsletter-archive::-webkit-scrollbar-thumb {
    background-color: #FFC107;
    border-radius: 10px;
}

.newsletter-single-viewer {
    width: 95%; 
    max-width: 850px; 
    height: 1100px;   
    background: #fff;
    position: relative;
    border: 1px solid #eee;
    padding: 20px;
    margin: 0 auto;   
    overflow: hidden;
}

.year-block {
    margin-bottom: 30px;
}

.year-header-wrapper {
    width: 100%;
    border-bottom: 2px solid #FFC107;
    margin-bottom: 15px;
}

.year-label-box {
    background-color: #1a1a1a;
    color: #fff;
    padding: 6px 22px; 
    font-weight: 700;
    font-size: 1.1rem; 
    display: inline-block;
    margin-bottom: -2px;
}

.newsletter-issue-links li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px; 
}

.newsletter-issue-links li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
    font-size: 1.2rem;
    font-weight: bold;
}

.newsletter-issue-links a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    transition: 0.2s;
}

.newsletter-issue-links a:hover, 
.active-issue {
    color: #FFC107 !important;
    font-weight: 700;
}

.newsletter-viewer-col {
    padding-top: 8px;
}

.header-rule {
    height: 2px;
    background: #1a1a1a;
    width: 100%;
    margin-bottom: 20px;
}

.viewer-main-container {
    background-color: #fff;
    padding: 20px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; 
    overflow: hidden; 
}

.newsletter-spread {
    display: flex;
    width: 100%; 
    max-width: 800px; 
    height: 1000px;
    background: #fff;
    position: relative;
    border: 1px solid #eee;
    padding: 20px;
    overflow: hidden; 
}

.newsletter-page {
    width: 100%;
    height: 100%;
}

.newsletter-embed {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.viewer-nav-btn {
position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2.5rem; 
    color: #ccc;
    transition: 0.3s;
    z-index: 10;
}

.viewer-nav-btn:hover { 
    color: #FFC107; 
}

.prev-btn { left: -5px; }
.next-btn { right: -5px; }

.viewer-actions-side {
position: absolute;
    right: 0px; 
    top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.btn-action {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: 0.2s;
}

.btn-action:hover {
    background: #f8f9fa;
    color: #000;
    border-color: #1a1a1a;
}

/* --- Tablets --- */
@media (max-width: 991px) {
    .newsletter-hero-section {
        min-height: 25vh;
        padding: 40px 0;
    }

    .newsletter-single-viewer {
        max-width: 650px; 
        height: 700px;
        padding: 15px;
    }

    .viewer-actions-side {
        position: absolute;
        right: 0px; 
        top: 30px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        z-index: 10;
    }

    .viewer-nav-btn { font-size: 1.8rem; }
    .btn-action { width: 38px; height: 38px; }
}

/* --- Mobile Phones --- */
@media (max-width: 576px) {
    .newsletter-single-viewer {
        width: 100%;
        height: 550px; 
        padding: 15px;
    }

    .viewer-nav-btn {
        font-size: 1.5rem; 
        color: rgba(204, 204, 204, 0.8); 
    }

    .viewer-actions-side {
        position: absolute;
        right: 0px; 
        top: 30px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        z-index: 10;
        
    }


    .prev-btn { left: 0; } 
    .next-btn { right: 0; }

    .btn-action { width: 32px; height: 32px; font-size: 0.8rem; }
}