/* ===== Professional Article Styling ===== */

/* Article Content Enhancement */
.cri-article-program {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.cri-article-program-header {
    padding-bottom: 20px;
}

.cri-article-program-featured {
    margin: 0 -50px 30px -50px !important;
    border-radius: 0;
}

.cri-article-program-featured img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
}

/* Article Title */
.cri-article-program-header .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 768px) {
    .cri-article-program-header .entry-title {
        font-size: 1.8rem;
    }
}

/* Article Metadata */
.cri-article-program-header .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: #666;
}

.cri-article-program-header .entry-meta i {
    margin-right: 6px;
    color: #00a651;
}

/* Article Content */
.cri-article-program-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    padding: 30px 0;
}

.cri-article-program-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.cri-article-program-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid #00a651;
    padding-left: 15px;
}

.cri-article-program-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.cri-article-program-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
}

.cri-article-program-content ul,
.cri-article-program-content ol {
    margin-bottom: 1.5rem;
    padding-left: 25px;
}

.cri-article-program-content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.cri-article-program-content blockquote {
    border-left: 4px solid #00a651;
    padding-left: 20px;
    margin: 2rem 0;
    color: #666;
    font-style: italic;
    font-size: 1.05rem;
}

.cri-article-program-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cri-article-program-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cri-article-program-content table th {
    background: linear-gradient(135deg, #00a651 0%, #008a42 100%);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.cri-article-program-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.cri-article-program-content table tr:hover {
    background: #f9f9f9;
}

.cri-article-program-content a {
    color: #00a651;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.cri-article-program-content a:hover {
    border-bottom-color: #00a651;
    color: #008a42;
}

/* Article Footer */
.cri-article-program footer.entry-footer {
    border-top: 2px solid #e0e0e0;
    padding-top: 25px !important;
    margin-top: 40px !important;
}

.entry-meta-category-tag {
    margin-bottom: 15px;
}

.entry-meta-category-tag .cat-links,
.entry-meta-category-tag .tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entry-meta-category-tag .cat-links::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #00a651;
    border-radius: 50%;
    margin-right: 8px;
    margin-top: 2px;
}

.entry-meta-category-tag .tags-links::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #00a651;
    border-radius: 50%;
    margin-right: 8px;
    margin-top: 2px;
}

.entry-meta-category-tag a {
    display: inline-block;
    background: #f0f0f0;
    color: #00a651;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.entry-meta-category-tag a:hover {
    background: #00a651;
    color: white;
}

/* Page Links */
.page-links {
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.page-links .pagination {
    margin: 0;
    justify-content: center;
}

.page-links .pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 !important;
    line-height: 40px;
    text-align: center;
    border-radius: 4px;
}

.page-links .pagination .page-numbers.current {
    background: #00a651;
    color: white;
}

/* Related Posts Section */
.cri-related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.cri-related-posts-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    border-left: 4px solid #00a651;
    padding-left: 15px;
}

.cri-related-post-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cri-related-post-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #00a651;
}

.cri-related-post-card-image {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: #f5f5f5;
}

.cri-related-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cri-related-post-card:hover .cri-related-post-card-image img {
    transform: scale(1.08);
}

.cri-related-post-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cri-related-post-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.cri-related-post-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cri-related-post-card-title a:hover {
    color: #00a651;
}

.cri-related-post-card-meta {
    font-size: 0.8rem;
    color: #999;
    margin-top: auto;
}

/* Program Card Enhancement */
.kotakprogram .program-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.kotakprogram .program-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
    border-color: #00a651;
}

.program-card .judulprogram {
    color: #1a1a1a;
    font-weight: 700;
    padding: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    margin: 0;
}

.program-card:hover .judulprogram {
    color: #00a651;
}

.program-card .program-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f5f5f5;
    margin: 0;
}

.program-card .program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.program-card .program-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.program-card:hover .program-image img {
    transform: scale(1.08);
}

.program-card .program-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-card .program-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    padding: 0;
    margin: 10px 0 0 0;
    flex-grow: 1;
}

.program-card .program-footer {
    padding: 10px 0;
    margin: 10px 0;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.program-card .program-date {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
}

.program-card .program-date i {
    margin-right: 6px;
    color: #00a651;
}

.program-card .program-action {
    padding: 10px 0;
}

.program-card .program-link {
    color: #00a651;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.program-card .program-link:hover {
    color: #008a42;
}

.program-card .program-link i {
    display: inline-block;
    margin-left: 6px;
}

/* Comment Form Enhancement */
.comment-form {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.comment-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.comment-form .form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.comment-form .form-group input,
.comment-form .form-group textarea {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.comment-form .form-group input:focus,
.comment-form .form-group textarea:focus {
    border-color: #00a651;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.comment-form .form-group input[type="submit"] {
    background: #00a651;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 30px;
    transition: all 0.3s ease;
}

.comment-form .form-group input[type="submit"]:hover {
    background: #008a42;
    transform: translateY(-2px);
}

/* Comments List */
.commentlist {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.commentlist .comment {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #00a651;
}

.commentlist .comment .comment-author {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.commentlist .comment .comment-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.commentlist .comment .comment-text {
    color: #555;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cri-article-program-featured {
        margin: 0 !important;
    }
    
    .cri-article-program-content {
        font-size: 1rem;
    }
    
    .cri-article-program-header .entry-title {
        font-size: 1.5rem;
    }
}
