body {
    font-family: "Georgia", serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    gap: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    border-radius: 5px;
}

.main-content {
    padding: 15px;
    border-right: 1px solid #ccc;
}

.main-content .news_line, .sidebar h2 {
    /*font-size: 1.8rem;*/
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}

.news_line {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.main-content a {
  text-decoration: none;
  
}
.main-content .article {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.main-content .article img {
    flex: 0 0 150px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    object-fit: cover;
}

/* Teks artikel */
.main-content .article .text {
    display: flex;
    flex-direction: column;
}

/* Judul artikel */
.main-content .article h3 {
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 0 0px;
    color: #222;
    text-align: justify;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.main-content .article .divider {
    height: 1px;
    background-color: #ddd;
    margin-bottom: 10px;
}

/* Deskripsi artikel */
.main-content .article p {
    font-size: 1rem;
    line-height: 1.2;
    color: #555;
    text-align: justify;
    text-overflow: ellipsis;
    white-space: normal;
}

.sidebar {
    padding: 0;
    background-color: white;
    border-left: 1px solid #ccc;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

.sidebar::-webkit-scrollbar-track {
    background-color: #f9f9f9;
}

.sidebar .ad {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    background-color: #fff;
    font-size: 1rem;
    font-style: italic;
    color: #444;
}

.sidebar .ad h3{
  display: none;
}

.sidebar .ad img {
    max-width: 100%;
    height: auto;
    margin-top: 0px;
    border: 1px solid #ccc;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .main-content {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #ccc;
        padding-bottom: 20px;
    }

    .sidebar {
        flex: none;
        padding-top: 20px;
        border-left: none;
    }

    .main-content .article {
        flex-direction: column;
        max-height: none;
    }

    .main-content .article img {
        max-width: 100%;
        max-height: 300px;
        margin-bottom: 10px;
    }

    .main-content .article .text {
        text-align: center;
    }

    .main-content .article h3 {
        font-size: 1rem;
    }

    .main-content .article p {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .container {
        margin: 10px;
        padding: 10px;
    }

    .main-content h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .main-content .article img {
        flex: none;
        max-width: 100%;
        height: auto;
        border-radius: 0;
    }

    .sidebar .ad {
        font-size: 0.9rem;
    }

    .main-content .article h3 {
        font-size: 0.9rem;
    }

    .main-content .article p {
        font-size: 0.8rem;
    }
    .main_container{
        display:flex;
        justify-content: center;
    }
}

/*sidebar css-----------*/

/* Styling for categories */
.sidebar .categories {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    align-items: center;
}

.sidebar .category-item {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: rgba(62 85 126);
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar .category-item:hover {
    background-color: #e6e6e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sidebar .category-item a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: bold;
    display: block;
}

.sidebar .category-item a:hover {
    color: #007BFF;
}
.no_data{
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.no_data h3 {
    color:red;
}

/*back button-------*/

.back-button {
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 20px;
    margin: 5px 0;
    color: #fff;
    background: radial-gradient(rgba(62 85 126), rgb(1, 206, 209, 255));
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    text-align: center;
}

.back-button:hover {
    background: linear-gradient(90deg, #0056b3, #003d82);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


    
    /*------------------------*/
    
    /* Category text hover effect */
.sidebar .category-item a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: bold;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

.sidebar .category-item a:hover {
    color: #007BFF;
}

.sidebar .category-item a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: #007BFF;
    visibility: hidden;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: visibility 0s, transform 0.25s ease-out;
}

.sidebar .category-item a:hover::after {
    visibility: visible;
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Category text with flickering effect */
.sidebar .category-item a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    display: block;
    color: #ffcc00; /* Default yellow color */
    position: relative;
    animation: flickerEffect 1.5s infinite alternate;
}

/* Glowing flickering effect */
@keyframes flickerEffect {
    0% {
        color: rgb(1,206,209,255); /* Yellow */
        text-shadow: 0 0 1px rgb(1,206,209,255), 0 0 1px rgb(1,206,209,255);
    }
    25% {
        color: rgb(1,206,209,255); /* Orange */
        text-shadow: 0 0 1px rgb(1,206,209,255), 0 0 1px rgb(1,206,209,255);
    }
    50% {
        color: #fff; /* Darker orange */
        text-shadow: 0 0 1px #fff, 0 0 1px #fff;
    }
    75% {
        color: rgb(1,206,209,255); /* Yellow */
        text-shadow: 0 0 1px rgb(1,206,209,255), 0 0 1px rgb(1,206,209,255);
    }
    100% {
        color: #fff; /* Dark orange */
        text-shadow: 0 0 1px rgba(62 85 126), 0 0 1px rgba(62 85 126);
    }
}

.article:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/*Pagination css-----------------*/
.pagination-btn {
    display: inline-block;
    margin: 5px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background: rgb(1,206,209,255);
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.pagination-btn:hover {
    background: #0056b3;
}

.pagination-btn.active {
    background: #e13333;
    color: white;
    pointer-events: none;
}
.main-content .article .media img{
    width: 382px;
    height: auto;
    border-radius: 6px;
}
.main-content .article .media div{
    width: 150px; 
    height: 100px; 
    overflow: hidden; 
    border-radius: 6px; 
    position: relative; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.main-content .article{
    display: flex; 
    align-items: flex-start; 
    margin-bottom: 20px; 
    gap: 15px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    padding: 10px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
 
}
.article .text{
    margin: 0; 
    font-size: 0.9rem; 
    color: #555; 
    line-height: 1.5;
}
.article .text p span{
    padding: 0.5rem;
    background: rgb(1,206,209,255);
    border-radius: 15px;
    color: white;
    float: right;
}
video{
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 6px;
}
.blog-extra{
    margin-top:10px; 
    font-size: 0.9rem; 
    color:rgb(122 227 228); 
    display:flex; 
    gap:15px;
    justify-content: space-between;
}
.sidebar h1{
    background: rgb(1, 206, 209, 255);
    color: white;
    margin: 0;
    text-align: center;
    padding: 0;
    padding: 0.5rem;
}
 
        /* Styling for video options and social media buttons */
.video-options {
    margin-top: 15px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid;
}
.social_link_box {
    display: flex;
}

.copy-link {
    background-color: #ff6600;
    color: white;
    padding: 10px 14px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-bottom: 21px;
}

.copy-link:hover {
    background-color: #ff9933;
}

.social-icon {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 10px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.facebook {
    background-color: #3b5998;
}

.facebook:hover {
    background-color: #4c70ba;
}

.twitter {
    background-color: #1da1f2;
}

.twitter:hover {
    background-color: #48a9e6;
}

.linkedin {
    background-color: #0077b5;
}

.linkedin:hover {
    background-color: #004c87;
}
.main-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.tag_line p {
    border: 1px solid;
    padding: 7px 20px;
    border-radius: 20px;
    margin: 0px;
    font-size: 0.9rem;
}
.main-content img,
.main-content video {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

