* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}




/* Sidebar Container */
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

/* Logo */
.sidebar .logo {
    padding: 20px;
    text-align: center;
}

.sidebar .logo img {
    width: 100px;
}

/* Menu */
.sidebar .menu {
    padding: 10px 20px;
}

.sidebar .menu ul {
    list-style: none;
}

.sidebar .menu li {
    margin-bottom: 10px;
}

.sidebar .menu .menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f5f5f5;
    cursor: pointer;
    border-radius: 4px;
}

.sidebar .menu .search-item {
    display: block;
    padding: 10px;
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.sidebar .menu .search-item::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
}

.sidebar .menu .search-item:hover {
    background-color: #e0e0e0;
}

/* Submenu (Sliding) */
.sidebar .submenu {
    position: absolute;
    top: 0;
    left: 250px;
    width: 250px;
    height: 100%;
    background-color: #fafafa;
    transition: left 0.3s ease;
    padding: 20px;
    z-index: 1100;
}

.sidebar .submenu.active {
    left: 0;
}

.sidebar .submenu a {
    display: block;
    padding: 8px;
    text-decoration: none;
    color: #333;
}

.sidebar .submenu a:hover {
    background-color: #e0e0e0;
}

.sidebar .submenu .back {
    padding: 10px;
    background-color: #f5f5f5;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Advertisement */
.sidebar .ad {
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.sidebar .ad img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

/* Copyright */
.sidebar .copyright {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #666;
    z-index: 1000;
}

/* Hamburger Icon */
.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1100;
    display: none;
    color: #000;
}

/* Main Content */
.content {
    padding: 10px;
    min-height: 100vh;
    transition: margin-left 0.3s ease-in-out;
}

/* Ensure content doesn’t overlap sidebar on PC */
@media (min-width: 768px) {
    .content {
        padding-left: 270px; /* Sidebar width + padding */
    }
}

/* Responsive Design for Mobile */
@media (max-width: 767px) {
    .sidebar {
        left: -250px;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .content {
        max-width: 100%;
        padding: 20px;
        margin: 0 auto;
    }

    .hamburger {
        display: block;
    }

    .sidebar .logo img {
        width: 80px;
    }

    .sidebar .ad img {
        width: 150px;
        height: 150px;
    }
}

/* Center child elements within content */
.content img, .content p, .content h1 {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.sidebar .menu .home-item {
    display: block;
    padding: 10px;
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.sidebar .menu .home-item::before {
    content: '\f015'; /* Font Awesome icon for 'home' */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
}

.sidebar .menu .home-item:hover {
    background-color: #e0e0e0;
}

.sidebar .menu .search-item-new {
    display: block;
    padding: 10px;
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.sidebar .menu .search-item-new::before {
    content: '\f002'; /* Font Awesome icon for 'search' */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
}

.sidebar .menu .search-item-new:hover {
    background-color: #e0e0e0;
}



/* content*/

.primary-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 15px;
}

.dual-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-panel {
    flex: 1 1 50%;
    min-width: 350px;
}

.feature-panel .hero-image {
    width: 100%;
    height: 370px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 10px;
}

.feature-panel .caption-link {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    text-decoration: none;
    color: #fff;
    text-transform: capitalize;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    text-align: center;
    max-width: 80%;
}

.grid-panel {
    flex: 1 1 45%;
    min-width: 250px;
}

.thumbnail-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.thumbnail-item {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 10px;
}

.thumbnail-item .label-link {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dual-sections {
        flex-direction: column;
    }

    .feature-panel, .grid-panel {
        flex: 1 1 100%;
    }

    .feature-panel .hero-image {
        height: 300px;
    }

    .thumbnail-item {
        height: 140px;
    }

    .thumbnail-item .label-link {
        font-size: 0.85rem;
        padding: 6px;
        bottom: 10px;
    }

    .feature-panel .caption-link {
        font-size: 1rem;
        padding: 8px;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .feature-panel .hero-image {
        height: 250px;
    }

    .thumbnail-group {
        grid-template-columns: 1fr;
    }

    .thumbnail-item {
        height: 180px;
    }

    .thumbnail-item .label-link {
        bottom: 10px;
        font-size: 0.9rem;
        padding: 8px;
    }
}



/*-------------------------------------movie posters----------------------------------------------------*/




/*------ article list------*/
/* article list--------------------------------------------------------------------------------------------- */

.content-wrapper {
    padding: 20px;
    text-align: center;
}

.content-wrapper h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.news-page {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

.news-content {
    flex: 4;
    min-width: 300px;
    max-width: 900px;
}

.news-sidebar {
    flex: 1;
    min-width: 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Article list styles */
.news-feed {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    align-items: center;
}

.news-item img {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-title:hover {
    color: #007bff;
}

.news-button {
    padding: 8px 16px;
    background: #a10000;
    background: linear-gradient(90deg, rgba(161, 0, 0, 1) 0%, rgba(3, 1, 1, 0.91) 100%, rgba(0, 0, 0, 0) 71%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    width: fit-content;
}

.news-button:hover {
    background: #000000;
}

/* YouTube iframe */
.news-video {
    margin: 20px 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.news-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Sticky sidebar elements */
.promo-box,
.event-slider {
    width: 300px;
    height: 300px;
    border-radius: 8px;
    position: sticky;
    margin-bottom: 20px;
}

.promo-box {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
}

.ad-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.event-slider {
    overflow: hidden;
}

.event-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.event-card {
    flex: 0 0 300px;
    height: 300px;
    position: relative;
    border-radius: 8px;
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.event-caption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

.event-prev,
.event-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
}

.event-prev:hover,
.event-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.event-prev {
    left: 10px;
}

.event-next {
    right: 10px;
}

/* Loading animation */
#loading {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #333;
}

.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-page {
        flex-direction: column;
    }

    .news-content,
    .news-sidebar {
        max-width: none;
        width: 100%;
    }

    .news-item {
        flex-direction: column;
        align-items: stretch;
    }

    .news-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 220 / 150;
    }

    .news-info {
        align-items: stretch;
    }

    .news-title {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        text-align: left;
    }

    .news-button {
        width: 100%;
        text-align: center;
    }

    .promo-box,
    .event-slider {
        position: static;
        width: 100%;
        height: 250px;
        top: auto !important;
    }

    .news-sidebar > * {
        box-sizing: border-box;
        margin: 0;
        margin-bottom: 20px;
    }

    .event-card {
        flex: 0 0 100%;
        height: 250px;
    }

    .event-card img {
        height: 100%;
    }

    .news-video {
        padding-bottom: 56.25%;
    }
}

@media (max-width: 576px) {
    .news-title {
        font-size: 16px;
    }

    .news-button {
        font-size: 12px;
        padding: 6px 12px;
    }

    .promo-box,
    .event-slider {
        height: 200px;
    }

    .event-card {
        height: 200px;
    }
}



/* something new */

