@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&display=swap");

body {
    font-size: 20px;
    line-height: 30px;
    color: var(--text-color);
    font-weight: 300;
    background:  linear-gradient(135deg, #0B3468 30%,#1C74BB 100%);
    font-family: "Barlow", sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 100px;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.news-detail {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    min-width: 0; /* Allow shrinking */
}

.news-detail:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    max-width: 100%;
}

.news-image:hover {
    transform: scale(1.02);
}

.news-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.news-meta span {
    background: linear-gradient(135deg, #FFC144 0%, #ffaa00 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
    width: 100%;
    box-sizing: border-box;
    min-width: 0; /* Allow shrinking */
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #0B3468 30%,#1C74BB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-news {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 15px;
    background-color: rgba(255, 196, 68, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.related-news:hover {
    background-color: rgba(255, 196, 68, 0.4);
    transform: translateX(5px);
}

.related-news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    max-width: 100%;
}

.related-news-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.related-news-date {
    font-size: 0.8rem;
    color: #666;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.breadcrumb-item a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 107, 107, 0.2);
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 24px;
    }
    
    .container-fluid {
        padding: 1rem;
        max-width: 100%;
    }
    
    .news-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }

    .news-detail {
        padding: 1.5rem;
    }

    .news-image {
        height: 250px;
    }

    .news-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .news-meta {
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .news-meta span {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .news-content {
        font-size: 1rem;
        line-height: 1.6;
    }

    .sidebar {
        padding: 1rem;
    }

    .sidebar-title {
        font-size: 1.3rem;
    }

    .related-news {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }

    .related-news-img {
        height: 200px;
    }

    .related-news-title {
        font-size: 0.9rem;
    }

    .related-news-date {
        font-size: 0.7rem;
    }

    .share-buttons {
        gap: 0.5rem;
        justify-content: center;
    }

    .share-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .container-fluid {
        padding: 0.5rem;
    }
    
    .news-detail {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .news-title {
        font-size: 1.5rem;
    }
    
    .news-image {
        height: 200px;
        border-radius: 10px;
    }
    
    .sidebar {
        padding: 0.8rem;
        border-radius: 15px;
    }
    
    .related-news {
        padding: 0.6rem;
        border-radius: 10px;
    }
    
    .related-news-img {
        height: 200px;
        border-radius: 8px;
    }
    
    .news-meta {
        gap: 0.3rem;
    }
    
    .news-meta span {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }
}