/*
Theme Name: Hello Elementor Child - UniMel News
Template: hello-elementor
Description: Child theme untuk Portal Berita UniMel
Version: 1.0
*/

/* ============================================
   SINGLE BERITA STYLING
   ============================================ */

.single-unimel_berita .entry-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.single-unimel_berita .entry-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 15px;
}

.single-unimel_berita .entry-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #666;
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.single-unimel_berita .entry-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-unimel_berita .post-thumbnail {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.single-unimel_berita .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-unimel_berita .entry-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.single-unimel_berita .entry-content p {
    margin-bottom: 20px;
}

.single-unimel_berita .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Category Badge */
.berita-category {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Share Buttons */
.berita-share {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid #eee;
}

.berita-share-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #666;
}

.berita-share-buttons {
    display: flex;
    gap: 10px;
}

.berita-share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.2s;
}

.berita-share-buttons a:hover {
    transform: scale(1.1);
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-whatsapp { background: #25d366; }
.share-copy { background: #666; cursor: pointer; }

/* Related News */
.berita-related {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background: #f8f9fa;
}

.berita-related h3 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.berita-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 768px) {
    .berita-related-grid {
        grid-template-columns: 1fr;
    }
    
    .single-unimel_berita .entry-title {
        font-size: 24px;
    }
}

.berita-related-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.berita-related-item:hover {
    transform: translateY(-5px);
}

.berita-related-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.berita-related-item-content {
    padding: 15px;
}

.berita-related-item h4 {
    font-size: 16px;
    margin: 0 0 10px;
    line-height: 1.4;
}

.berita-related-item h4 a {
    color: #333;
    text-decoration: none;
}

.berita-related-item h4 a:hover {
    color: #0073aa;
}

.berita-related-item .date {
    font-size: 12px;
    color: #888;
}

/* Back Button */
.berita-back {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.berita-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.berita-back a:hover {
    text-decoration: underline;
}