/* CSS for Single Journal Page */

.cn-single-journal-main {
    background-color: #f7f9fc;
    padding-bottom: 50px;
    direction: rtl;
    font-family: inherit;
}

.cn-breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.cn-breadcrumb a {
    color: #3b5998;
    text-decoration: none;
    transition: color 0.3s;
}

.cn-breadcrumb a:hover {
    color: #e53935;
}

.cn-active-crumb {
    color: #333;
    font-weight: 500;
}

.cn-bread-sep {
    margin: 0 5px;
    color: #ccc;
    font-size: 12px;
}

.cn-bread-tag {
    color: #666;
}

/* Grid Layout */
.cn-single-journal-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Boxes */
.cn-journal-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

.cn-journal-sidebox {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 25px;
    text-align: center;
}

.cn-sidebox-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.cn-sidebox-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #e53935;
    border-radius: 2px;
}

/* Header Box */
.cn-journal-header-box {
    display: flex;
    gap: 40px;
    align-items: center;
}

.cn-jh-info {
    flex: 1;
}

.cn-jh-cover {
    width: 300px;
    flex-shrink: 0;
}

.cn-jh-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cn-jh-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a237e;
    margin-bottom: 10px;
    line-height: 1.4;
}

.cn-jh-issue {
    font-size: 24px;
    font-weight: 700;
    color: #3b5998;
    margin-bottom: 15px;
}

.cn-jh-date {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.cn-jh-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.cn-jh-meta li {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.cn-jh-meta li i {
    width: 25px;
    color: #1a237e;
    text-align: center;
    font-size: 18px;
    margin-left: 10px;
}

.cn-jh-actions {
    display: flex;
    gap: 15px;
}

.cn-jh-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}

.cn-jh-actions a i {
    margin-left: 8px;
    font-size: 18px;
}

.cn-btn-download {
    background-color: #311b92;
    color: #fff !important;
    border: 2px solid #311b92;
}

.cn-btn-download:hover {
    background-color: #4527a0;
    border-color: #4527a0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 27, 146, 0.3);
}

.cn-btn-online {
    background-color: transparent;
    color: #311b92 !important;
    border: 2px solid #311b92;
}

.cn-btn-online:hover {
    background-color: #f3e5f5;
    transform: translateY(-2px);
}

.cn-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Podcast Box */
.cn-journal-podcast-box {
    display: flex;
    gap: 30px;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    border: 1px solid #c5cae9;
}

.cn-pod-cover {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cn-pod-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cn-pod-content {
    flex: 1;
}

.cn-pod-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cn-pod-icon {
    font-size: 24px;
    color: #311b92;
    margin-left: 10px;
}

.cn-pod-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.cn-pod-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.cn-pod-player-wrap {
    width: 100%;
}

.cn-pod-player {
    width: 100%;
    height: 40px;
    outline: none;
}

/* Bottom Grid (Info & TOC) */
.cn-journal-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cn-box-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 20px;
    text-align: center;
}

.cn-info-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.cn-toc-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.cn-toc-icon {
    font-size: 20px;
    color: #311b92;
    margin-left: 10px;
}

.cn-toc-header .cn-box-title {
    margin-bottom: 0;
}

.cn-toc-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.cn-toc-content ul, .cn-toc-content ol {
    padding-right: 20px;
    margin: 0;
}

.cn-toc-content li {
    margin-bottom: 15px;
    position: relative;
}

.cn-toc-content li::marker {
    color: #311b92;
}

.cn-toc-full-width {
    grid-column: 1 / -1;
}

/* Sidebar Styles */
.cn-share-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cn-share-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f2f5;
    color: #555;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
}

.cn-share-icons a:hover {
    background-color: #1a237e;
    color: #fff;
    transform: translateY(-2px);
}

.cn-about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.cn-about-icon {
    font-size: 32px;
    color: #311b92;
    margin-bottom: 15px;
    background: #f3e5f5;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    text-align: center;
}

.cn-about-header .cn-sidebox-title {
    margin-bottom: 0;
}

.cn-about-header .cn-sidebox-title::after {
    display: none;
}

.cn-about-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.cn-about-text {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    text-align: justify;
}

.cn-recent-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cn-recent-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
    text-align: right;
}

.cn-recent-item:hover {
    background: #f5f7fa;
}

.cn-recent-img {
    width: 60px;
    height: 85px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cn-recent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cn-recent-info {
    flex: 1;
}

.cn-r-issue {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.cn-r-date {
    font-size: 12px;
    color: #888;
}

.cn-view-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 700;
    color: #e53935;
    text-decoration: none;
    transition: all 0.3s;
}

.cn-view-more i {
    margin-right: 5px;
    transition: transform 0.3s;
}

.cn-view-more:hover {
    color: #c62828;
}

.cn-view-more:hover i {
    transform: translateX(-4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .cn-single-journal-grid {
        grid-template-columns: 1fr;
    }
    
    .cn-journal-sidebar-col {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .cn-journal-sidebox {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .cn-journal-header-box {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .cn-jh-meta li {
        justify-content: center;
    }
    
    .cn-jh-actions {
        flex-direction: column;
    }
    
    .cn-journal-podcast-box {
        flex-direction: column;
        text-align: center;
    }
    
    .cn-journal-bottom-grid {
        grid-template-columns: 1fr;
    }
}
