/* News Detail Page Styling */

.text-gold {
    color: var(--color-primary);
}

.btn-gold {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-gold:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
}

.btn-outline-gold {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-gold:hover {
    color: white;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Main Container */
.news-detail-page {
    overflow-x: hidden;
}

.news-detail-page .container {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

/* Breadcrumb */
.news-detail-page nav[aria-label="breadcrumb"] {
    margin-bottom: 0.5rem !important;
}

.news-detail-page .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

/* Article Content */
.news-detail-page article {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-detail-page article h1 {
    margin-bottom: 0.4rem !important;
    line-height: 1.3;
}

.news-detail-page .d-flex.align-items-center {
    margin-bottom: 0.75rem !important;
    gap: 1rem;
}

.news-detail-page .text-muted.me-4 {
    margin-right: 1rem !important;
}

/* News Content */
.news-detail-page .news-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-detail-page .news-content p {
    margin-bottom: 0.75rem !important;
    line-height: 1.6;
    font-size: 0.95rem;
}

.news-detail-page .news-content h1,
.news-detail-page .news-content h2,
.news-detail-page .news-content h3,
.news-detail-page .news-content h4 {
    margin-bottom: 0.4rem !important;
    margin-top: 0.75rem !important;
    font-weight: 600;
}

.news-detail-page .news-content img {
    max-width: 100%;
    height: auto;
    margin: 0.75rem 0 !important;
    border-radius: 6px;
}

.news-detail-page .news-content ul,
.news-detail-page .news-content ol {
    margin-bottom: 0.75rem !important;
    padding-left: 1.5rem;
}

.news-detail-page .news-content li {
    margin-bottom: 0.4rem !important;
}

/* Share Buttons */
.news-detail-page .mt-4.pt-3 {
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid #ddd;
}

.news-detail-page .btn-outline-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Related Articles Section */
.news-detail-page > div > div > div > div:last-child > .mt-5 {
    margin-top: 1rem !important;
}

.news-detail-page .mt-5 h3 {
    margin-bottom: 0.75rem !important;
}

.news-detail-page .row > .col-md-6 {
    margin-bottom: 0.75rem !important;
}

.news-detail-page .col-md-6 .card {
    margin-bottom: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    height: 100%;
}

.news-detail-page .col-md-6 .card-img-top {
    max-height: 200px;
    object-fit: cover;
    width: 100%;
}

.news-detail-page .col-md-6 .card-body {
    padding: 1rem !important;
}

.news-detail-page .col-md-6 .card-title {
    margin-bottom: 0.4rem !important;
    font-size: 1rem;
}

.news-detail-page .col-md-6 .text-muted {
    margin-bottom: 0.4rem !important;
    font-size: 0.85rem;
}

.news-detail-page .col-md-6 .card-text {
    margin-bottom: 0.5rem !important;
    font-size: 0.9rem;
}

.news-detail-page .col-md-6 .btn {
    margin-top: 0.25rem;
}

/* Alert Box */
.news-detail-page .alert {
    margin-bottom: 0;
    padding: 0.75rem;
}

/* Right Sidebar */
.news-detail-page .col-lg-4 {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.news-detail-page .col-lg-4 .card {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: none;
}

.news-detail-page .col-lg-4 .card:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px 4px 0 0;
}

.news-detail-page .col-lg-4 .card:last-child {
    border-radius: 0 0 4px 4px;
}

.news-detail-page .col-lg-4 .card-body {
    padding: 1rem !important;
    margin: 0 !important;
}

.news-detail-page .col-lg-4 h3,
.news-detail-page .col-lg-4 h4 {
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
    font-size: 1rem;
    font-weight: 600;
}

.news-detail-page .col-lg-4 p {
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
    font-size: 0.95rem;
}

.news-detail-page .col-lg-4 ul {
    margin-bottom: 0 !important;
    padding-left: 0;
}

.news-detail-page .col-lg-4 ul li {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid #ddd;
    list-style: none;
}

.news-detail-page .col-lg-4 ul li:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.news-detail-page .col-lg-4 ul li a {
    text-decoration: none;
    display: block;
}

.news-detail-page .col-lg-4 .h6 {
    margin-bottom: 0.25rem !important;
    font-size: 0.95rem;
}

.news-detail-page .col-lg-4 .small {
    font-size: 0.85rem;
}

/* Newsletter Form */
.news-detail-page .col-lg-4 .form-control,
.news-detail-page .col-lg-4 .form-select {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

.news-detail-page .col-lg-4 .form-group,
.news-detail-page .col-lg-4 > div {
    margin-bottom: 0.5rem !important;
}

.news-detail-page .col-lg-4 .mb-0,
.news-detail-page .col-lg-4 .mb-1,
.news-detail-page .col-lg-4 .mb-2,
.news-detail-page .col-lg-4 .mb-3 {
    margin-bottom: 0 !important;
}

.news-detail-page .g-recaptcha {
    margin: 0 !important;
    padding: 0 !important;
    transform: scale(0.95);
    transform-origin: 0 0;
}

.news-detail-page .col-lg-4 .btn.btn-gold {
    margin-bottom: 0 !important;
    margin-top: 0.5rem !important;
    padding: 0.5rem 1rem !important;
}

.news-detail-page #newsletterMessage {
    margin-top: 0.25rem !important;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-detail-page .container {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }
    
    .news-detail-page .col-lg-4 {
        margin-top: 1.5rem;
    }
    
    .news-detail-page article h1 {
        font-size: 1.5rem;
    }
    
    .news-detail-page .news-content p {
        font-size: 0.9rem;
    }
    
    .news-detail-page .col-md-6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .news-detail-page .container {
        padding: 0 0.5rem;
    }
    
    .news-detail-page article h1 {
        font-size: 1.25rem;
    }
    
    .news-detail-page .card-body {
        padding: 0.75rem !important;
    }
    
    .news-detail-page .form-control,
    .news-detail-page .form-select {
        font-size: 16px;
    }
}
