/* Global Styles */
:root {
    --primary-color: #198754; /* Bootstrap success color */
    --secondary-color: #43597e;
    --strong-gray: #666666;
    --second-white: #f8f8f8;
    --badge-bg: #ffffff;
    --text-color: #1c1c1c;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
}

/* News Detail Container */
.news-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Back Button */
.back-button {
    transition: all 0.3s ease;
    font-weight: 300;
    width: auto !important; /* Memastikan lebar tombol mengikuti konten */
    /* padding-left: 12px;
    padding-right: 12px; */
}

.back-button:hover {
    transform: translateX(-5px);
}

/* News Title */
.news-title {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.64px;
    color: #000;
    margin-bottom: 1rem;
}

/* News Meta */
.news-meta {
    font-size: 0.875rem;
    color: var(--strong-gray);
    margin-bottom: 1.5rem;
}

/* News Cover */
.news-cover {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 2rem;
}

.news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* News Content */
.news-content {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.05rem;
}

.news-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.news-content p {
    margin-bottom: 1rem;
}

.news-content ul,
.news-content ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.news-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    font-style: italic;
    margin: 1.5rem 0;
    color: #555;
}

/* Share Section */
.share-section {
    margin-top: 2rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
}

/* Related News Section */
.section-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* News Card */
.news-card {
    transition: transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .card-title {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.news-card .card-text {
    font-size: 0.875rem;
    color: var(--strong-gray);
}

/* Footer Social Media Buttons */
.btn-icon.rounded-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}

.btn-icon.rounded-circle i {
    font-size: 1.2rem;
}

.btn-icon.rounded-circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Toast Notification */
.toast {
    border-radius: 6px;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .news-title {
        font-size: 2.625rem; /* 42px */
        letter-spacing: -0.84px;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .news-cover {
        height: auto;
        max-height: 300px;
    }

    .share-section .btn span {
        display: none;
    }

    .share-section .btn:first-child span {
        display: inline;
    }
}
