.epaper-frontend-viewer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.epaper-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.epaper-header-content {
    flex: 1;
    text-align: center;
}

.epaper-all-editions-btn {
    background: var(--epaper-theme-color, #667eea);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.epaper-all-editions-btn:hover {
    background: var(--epaper-theme-color-dark, #5568d3);
    transform: translateX(-2px);
}

.epaper-header h2 {
    margin: 0 0 10px;
    font-size: 32px;
    color: #333;
}

.epaper-place {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.epaper-pages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.epaper-page {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.epaper-page:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.epaper-page-wrapper {
    position: relative;
    overflow: hidden;
}

.epaper-pdf-canvas {
    width: 100%;
    display: block;
}

.epaper-jpeg-reference {
    display: none !important;
}

.epaper-seo-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.epaper-page-hotspots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.epaper-hotspot {
    position: absolute;
    border: 2px solid;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.epaper-hotspot:hover {
    opacity: 0.6;
}

.epaper-page-number {
    text-align: center;
    padding: 12px;
    margin: 0;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.epaper-popup-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.epaper-popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.epaper-popup-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.epaper-popup-close:hover {
    color: #333;
}

#epaper-popup-title {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
}

#epaper-popup-body {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.epaper-popup-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.epaper-popup-actions .button {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.epaper-popup-actions .button:hover {
    background: #005a87;
}

.epaper-social-share {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.epaper-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0;
    transition: all 0.2s;
    position: relative;
}

.epaper-social-btn::before {
    font-family: 'dashicons';
    font-size: 18px;
    line-height: 1;
}

.epaper-social-btn.facebook::before {
    content: '\f304';
}

.epaper-social-btn.twitter::before {
    content: '\f301';
}

.epaper-social-btn.linkedin::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.epaper-social-btn.whatsapp::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.epaper-social-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.epaper-social-btn span {
    display: none;
}

.epaper-social-btn.facebook {
    background: #3b5998;
}

.epaper-social-btn.twitter {
    background: #1da1f2;
}

.epaper-social-btn.linkedin {
    background: #0077b5;
}

.epaper-social-btn.whatsapp {
    background: #25d366;
}

.epaper-archive {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.epaper-archive-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.epaper-archive-header h1 {
    margin: 0 0 10px;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
}

.epaper-archive-header p {
    margin: 0;
    font-size: 18px;
    opacity: 0.9;
}

.epaper-filters-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin: 0 20px 40px;
}

.epaper-search-box {
    position: relative;
    margin-bottom: 20px;
}

.epaper-search-box .dashicons {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #999;
}

.epaper-search-box input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.epaper-search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.epaper-filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.epaper-filter-item {
    flex: 1;
    min-width: 200px;
}

.epaper-filter-item label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.epaper-filter-item label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #667eea;
}

.epaper-filter-item select,
.epaper-filter-item input[type="date"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
}

.epaper-filter-item select:hover,
.epaper-filter-item input[type="date"]:hover {
    border-color: #667eea;
    background: #fff;
}

.epaper-filter-item select:focus,
.epaper-filter-item input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.epaper-reset-btn {
    padding: 12px 24px;
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.epaper-reset-btn:hover {
    background: #667eea;
    color: #fff;
}

.epaper-reset-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.epaper-filter {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin: 0 20px 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.epaper-filter .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #667eea;
}

.epaper-filter label {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.epaper-filter select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    min-width: 250px;
    font-weight: 600;
    color: #333;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
}

.epaper-filter select:hover {
    border-color: #667eea;
    background: #fff;
}

.epaper-filter select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.epaper-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 20px 40px;
}

.epaper-archive-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.epaper-archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.epaper-archive-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.epaper-archive-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.epaper-archive-content {
    padding: 20px;
}

.epaper-archive-content h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #333;
}

.epaper-archive-location {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.epaper-archive-location .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.epaper-archive-date {
    color: #999;
    font-size: 14px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.epaper-archive-date .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.epaper-archive-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0;
}

.epaper-read-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--epaper-theme-color, #667eea);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.epaper-read-btn:hover {
    background: var(--epaper-theme-color-dark, #5568d3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.epaper-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
}

.epaper-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
}

.epaper-pagination a,
.epaper-pagination span {
    padding: 10px 18px;
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.epaper-pagination a:hover {
    background: #667eea;
    color: #fff;
}

.epaper-pagination .current {
    background: #667eea;
    color: #fff;
}

@media (max-width: 768px) {
    .epaper-pages,
    .epaper-archive-grid {
        grid-template-columns: 1fr;
    }
    
    .epaper-popup-content {
        width: 95%;
        padding: 20px;
    }
    
    .epaper-social-share {
        flex-wrap: wrap;
    }
    
    .epaper-social-btn {
        flex: 1 1 45%;
    }
    
    .epaper-filters-container {
        padding: 20px;
    }
    
    .epaper-filter-row {
        flex-direction: column;
    }
    
    .epaper-filter-item {
        width: 100%;
    }
    
    .epaper-reset-btn {
        width: 100%;
        justify-content: center;
    }
}


.epaper-single-edition {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

.epaper-single-wrapper {
    max-width: 100%;
    margin: 0;
}

.epaper-single-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.header-content h1 {
    margin: 0 0 10px;
    font-size: 42px;
    font-weight: 700;
}

.edition-location,
.edition-date {
    margin: 5px 0;
    opacity: 0.9;
    font-size: 16px;
}

.edition-location .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.btn-download {
    background: #fff;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
    border: 2px solid #667eea;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.btn-download:hover {
    transform: scale(1.05);
    background: #667eea;
    color: #fff;
}

.btn-download .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

.epaper-single-content {
    display: flex;
    min-height: calc(100vh - 200px);
}

.epaper-sidebar {
    width: 220px;
    background: #fff;
    padding: 20px 15px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    height: calc(100vh - 200px);
    position: sticky;
    top: 0;
}

.epaper-sidebar h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 8px;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumbnail-item {
    position: relative;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.thumbnail-item img {
    width: 100%;
    display: block;
}

.page-num {
    position: absolute;
    bottom: 3px !important;
    right: 3px !important;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 6px !important;
    border-radius: 2px !important;
    font-size: 10px !important;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .page-num {
        padding: 1px 4px !important;
        font-size: 8px !important;
        bottom: 2px !important;
        right: 2px !important;
    }
}

.epaper-main-viewer {
    flex: 1;
    padding: 40px;
    background: #f5f5f5;
    overflow: auto;
}

.viewer-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

#zoom-level {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.page-wrapper {
    transition: transform 0.3s ease;
}

.btn-nav {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-nav:hover {
    background: #5568d3;
}

.btn-nav:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.page-indicator {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.main-page-container {
    position: relative;
}

.main-page {
    display: none;
}

.main-page.active {
    display: block;
}

.page-wrapper {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.page-wrapper img {
    width: 100%;
    display: block;
}

.page-hotspots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hotspot-area {
    position: absolute;
    border: 3px solid;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    overflow: hidden !important;
}

.hotspot-area .hotspot-type-indicator {
    opacity: 1 !important;
}

.hotspot-area .hotspot-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

.hotspot-area:hover .hotspot-label {
    opacity: 1;
}

.hotspot-area .hotspot-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #fff;
    background: rgba(255, 0, 0, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hotspot-area .hotspot-html-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 123, 255, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    pointer-events: none;
}

.hotspot-area.has-html-content {
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
}

.hotspot-area .hotspot-html-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px !important;
    height: 150px !important;
    max-width: 80%;
    max-height: 80%;
    background: #fff !important;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
    display: block !important;
    z-index: 2;
    pointer-events: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hotspot-area .hotspot-html-content iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block;
}

.hotspot-area .hotspot-html-content img,
.hotspot-area .hotspot-html-content video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hotspot-area.has-html-content {
    pointer-events: auto !important;
    cursor: pointer !important;
    background: rgba(0,0,0,0.1) !important;
}

.hotspot-custom-html {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.hotspot-area:hover {
    transform: scale(1.02);
}

.page-actions {
    margin-top: 20px;
    text-align: center;
}

.btn-action {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-action:hover {
    background: #667eea;
    color: #fff;
}

.viewer-social {
    margin-top: 40px;
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.viewer-social p {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0;
}

.social-btn::before {
    font-family: 'dashicons';
    font-size: 20px;
    line-height: 1;
}

.social-btn.facebook::before {
    content: '\f304';
}

.social-btn.twitter::before {
    content: '\f301';
}

.social-btn.linkedin::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.social-btn.whatsapp::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.social-btn svg {
    display: none;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn.facebook {
    background: #3b5998;
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.whatsapp {
    background: #25d366;
}

.hotspot-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: modalSlide 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    margin: 0 0 20px;
    font-size: 28px;
    color: #333;
}

.hotspot-image-container {
    margin: 20px 0;
    text-align: center;
}

#hotspot-canvas {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#hotspot-custom-html img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

#hotspot-custom-html h4 {
    margin: 20px 0 10px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

#hotspot-custom-html p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.btn-primary {
    background: #667eea;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: #fff;
}

.modal-social {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    justify-content: center;
}

.modal-social .social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0;
}

.modal-social .social-btn::before {
    font-family: 'dashicons';
    font-size: 20px;
    line-height: 1;
}

.modal-social .social-btn.facebook::before {
    content: '\f304';
}

.modal-social .social-btn.twitter::before {
    content: '\f301';
}

.modal-social .social-btn.linkedin::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.modal-social .social-btn.whatsapp::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.modal-social .social-btn:hover {
    transform: scale(1.1);
}

.modal-social .social-btn svg {
    display: none;
}

#search-modal .modal-content {
    max-width: 600px;
}

#search-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

#search-input:focus {
    outline: none;
    border-color: #667eea;
}

#search-results {
    max-height: 400px;
    overflow-y: auto;
}

#search-results mark {
    background: #ffeb3b;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.mobile-page-selector {
    display: none;
    padding: 10px 15px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    color: #667eea;
}

@media (max-width: 768px) {
    .epaper-sidebar {
        display: none;
    }
    
    .epaper-single-header {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }
    
    .header-content h1 {
        font-size: 28px;
    }
    
    .header-actions {
        width: 100%;
        margin-top: 15px;
    }
    
    .header-actions-row {
        display: flex;
        flex-direction: row;
        gap: 8px;
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }
    
    .btn-download {
        flex: 1;
        justify-content: center;
        padding: 14px 8px;
        min-width: 0;
        gap: 0;
        max-width: 60px;
    }
    
    .btn-download .btn-text {
        display: none;
    }
    
    .btn-download .dashicons {
        font-size: 22px;
        width: 22px;
        height: 22px;
        margin: 0;
    }
    
    .epaper-main-viewer {
        padding: 20px;
    }
    
    .viewer-controls {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .page-indicator {
        display: none;
    }
    
    .mobile-page-selector {
        display: block;
        flex: 1;
        min-width: 110px;
    }
    
    .btn-nav .nav-text {
        display: none;
    }
    
    .btn-nav {
        padding: 12px 16px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#video-modal .modal-content {
    max-width: 900px;
}

.audio-container {
    margin: 20px 0;
}

#audio-clip-image {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#audio-player {
    border-radius: 8px;
}

#audio-modal .modal-content {
    max-width: 700px;
}


/* Dark Mode Styles */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .epaper-single-wrapper {
    background: #1a1a1a;
}

body.dark-mode .epaper-single-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

body.dark-mode .epaper-sidebar {
    background: #2d2d2d;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}

body.dark-mode .epaper-sidebar h3 {
    color: #e0e0e0;
    border-bottom-color: #667eea;
}

body.dark-mode .thumbnail-item {
    border-color: #444;
}

body.dark-mode .thumbnail-item:hover,
body.dark-mode .thumbnail-item.active {
    border-color: #667eea;
}

body.dark-mode .epaper-main-viewer {
    background: #1a1a1a;
}

body.dark-mode .viewer-controls {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

body.dark-mode .page-indicator,
body.dark-mode #zoom-level {
    color: #e0e0e0;
}

body.dark-mode .btn-download {
    background: #2d2d2d;
    color: #667eea;
    border-color: #667eea;
}

body.dark-mode .btn-download:hover {
    background: #667eea;
    color: #fff;
}

body.dark-mode .page-wrapper {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

body.dark-mode .viewer-social {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

body.dark-mode .viewer-social p {
    color: #e0e0e0;
}

body.dark-mode .hotspot-modal {
    background: rgba(0,0,0,0.95);
}

body.dark-mode .modal-content {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .modal-content h2 {
    color: #e0e0e0;
}

body.dark-mode .modal-close {
    color: #999;
}

body.dark-mode .modal-close:hover {
    color: #e0e0e0;
}

body.dark-mode .btn-secondary {
    background: #2d2d2d;
    color: #667eea;
    border-color: #667eea;
}

body.dark-mode .btn-secondary:hover {
    background: #667eea;
    color: #fff;
}

body.dark-mode #search-input {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode #search-results {
    background: #2d2d2d;
}

body.dark-mode .mobile-page-selector {
    background: #2d2d2d;
    color: #667eea;
    border-color: #667eea;
}

body.dark-mode .hotspot-custom-html {
    background: #1a1a1a;
    border-color: #444;
}


@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Widget Styles */
.epaper-widget-editions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.epaper-widget-item {
    display: flex;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.epaper-widget-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.epaper-widget-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 100px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.epaper-widget-thumb:hover {
    transform: scale(1.05);
}

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

.epaper-widget-content {
    flex: 1;
}

.epaper-widget-content h4 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.4;
}

.epaper-widget-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.epaper-widget-content h4 a:hover {
    color: #667eea;
}

.epaper-widget-location,
.epaper-widget-date {
    margin: 4px 0;
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.epaper-widget-location .dashicons,
.epaper-widget-date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}
