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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f4f4f4;
}

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

html {
    scroll-behavior: smooth;
}

/* Header and Navigation */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Bar with Date and Social */
.top-bar {
    background-color: #34495e;
    padding: 0.8rem 0;
    border-bottom: 1px solid #2c3e50;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-date {
    color: #ffffff;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #3498db;
}

/* Navbar */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
}

.navbar-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    margin-left: 2rem;
}

/* Search Bar */
.search-bar {
    display: flex;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    width: 250px;
}

.search-bar input {
    border: none;
    padding: 0.5rem 1rem;
    outline: none;
    flex: 1;
}

.search-bar button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #2980b9;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    color: #ffffff !important;
}

.nav-links a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3498db !important;
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: transparent;
    color: #ecf0f1;
    font-size: 1.1rem;
    cursor: pointer;
}

.mobile-nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.navbar-headline-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #1a2635;
}

.navbar-headline-inner {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 38px;
}

.navbar-headline-label {
    flex-shrink: 0;
    background: #e74c3c;
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.2px;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.navbar-headline-ticker {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.navbar-headline-track {
    --headline-duration: 36s;
    --headline-scroll-distance: 0px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-width: max-content;
    white-space: nowrap;
    will-change: transform;
    animation: navbar-headline-scroll var(--headline-duration) linear infinite;
    color: #ffffff !important;
}

.navbar-headline-track.is-static {
    min-width: 0;
    width: 100%;
    animation: none;
}

.navbar-headline-item,
.navbar-headline-link {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.navbar-headline-item:hover,
.navbar-headline-link:hover {
    color: #3498db !important;
}

.navbar-headline-link {
    width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#navbar-headline-text {
    color: #ffffff !important;
    font-weight: 700;
}

.navbar-headline-separator {
    color: #ff4d4d;
    font-size: 1rem;
    line-height: 1;
}

@keyframes navbar-headline-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-1 * var(--headline-scroll-distance)));
    }
}

/* Category Menu */
.category-menu {
    background-color: #2c3e50;
    border-top: 2px solid #3498db;
    padding: 0.5rem 0;
    overflow-x: auto;
    color: #ffffff !important;
}

.category-menu.dropdown-open {
    overflow: visible;
    position: relative;
    z-index: 1300;
}

.category-menu ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    padding: 0 20px;
    color: #ffffff !important;
}

.category-menu li {
    padding: 0.5rem 1rem;
    color: #ffffff !important;
}

.category-menu a {
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: 700;
}

.category-menu a:hover {
    background-color: #3498db !important;
    color: #ffffff !important;
    font-weight: 700;
}

.category-more-item {
    display: none;
    position: relative;
}

.category-more-toggle {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 4px;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.category-more-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 170px;
    background: #2c3e50;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    padding: 0.35rem;
    z-index: 1200;
    display: none;
}

.category-more-item.is-open .category-more-dropdown {
    display: block;
}

.category-more-dropdown a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.6rem;
    border-radius: 4px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.category-more-dropdown a:hover {
    background: #3498db;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.main-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 2rem;
    align-items: start;
}

.news-section {
    min-width: 0;
}

.news-section h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.8rem;
    line-height: 1.3;
}

.news-section h1 {
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

/* Featured News Section */
.featured-section {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.featured-news-item {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    padding: 2rem;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.featured-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.featured-category {
    background-color: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
}

.featured-date {
    color: #999;
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.sidebar-title {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.sidebar-content {
    padding: 1rem;
}

.popular-news-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
    cursor: pointer;
    transition: transform 0.3s;
}

.popular-news-item:last-child {
    border-bottom: none;
}

.popular-news-item:hover {
    transform: translateX(5px);
}

.popular-news-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.popular-news-text h4 {
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.popular-news-text p {
    font-size: 0.8rem;
    color: #999;
}

/* Advertisement */
.ad-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

.ad-banner h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.ad-banner p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.ad-banner a {
    background: white;
    color: #667eea;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}

.ad-banner a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #e0e0e0;
}

.news-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-category {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    width: fit-content;
}

.news-category.national {
    background-color: #e74c3c;
}

.news-category.international {
    background-color: #9b59b6;
}

.news-category.politics {
    background-color: #f39c12;
}

.news-category.corporate {
    background-color: #1abc9c;
}

.news-category.education {
    background-color: #2ecc71;
}

.news-category.health {
    background-color: #3498db;
}

.news-category.sports {
    background-color: #e67e22;
}

.news-category.technology {
    background-color: #34495e;
}

.news-category.lifestyle {
    background-color: #e91e63;
}

.news-category.feature {
    background-color: #673ab7;
}

.news-category.law {
    background-color: #607d8b;
}

.news-category.religion {
    background-color: #795548;
}

.news-title {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: #2c3e50;
    line-height: 1.4;
    flex-grow: 1;
}

.news-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.news-date {
    color: #999;
    font-size: 0.8rem;
    margin-top: auto;
}

.news-card:hover .news-title {
    color: #3498db;
}

/* Footer */
footer {
    background-color: #2680da;
    color: rgb(57, 36, 211);
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-news-item {
        grid-template-columns: 1fr;
    }

    .search-bar {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    header {
        background-color: #edeef1;
        padding: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    }

    .navbar-headline-bar {
        background: #2c3e50;
        border-top: none;
    }

    .navbar-headline-inner {
        min-height: 34px;
        gap: 0.5rem;
    }

    .navbar-headline-label {
        font-size: 0.66rem;
        padding: 0.18rem 0.42rem;
    }

    .navbar-headline-item,
    .navbar-headline-link {
        font-size: 0.8rem;
    }

    .navbar-headline-separator {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 14px;
    }

    main {
        padding: 1.2rem 0;
    }

    .navbar .container {
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        min-height: 88px;
        gap: 0;
    }

    .logo-link {
        display: none;
    }

    .logo-img {
        height: 44px;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        order: 1;
        border: none;
        width: 64px;
        height: 64px;
        color: #61656b;
        font-size: 2rem;
        background: transparent;
    }

    .navbar-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        margin-left: 0;
        width: auto;
        order: 2;
        border-top: 1px solid #e8ebef;
        padding: 0.9rem 14px 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
        z-index: 1400;
    }

    .navbar-content.is-open {
        display: flex;
    }

    .search-bar {
        width: 100%;
        margin-bottom: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.4rem;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.45rem 0.55rem;
        border-radius: 4px;
        color: #2c3e50 !important;
        text-decoration: none;
        font-weight: 600;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
        color: #1f7cb8 !important;
        background: #eef5fb;
    }

    .nav-links a.active {
        color: #1f7cb8 !important;
        background: #eaf3fb;
    }

    .btn-logout {
        width: 100%;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .category-menu ul {
        padding: 0 10px;
        gap: 0.2rem;
        overflow: visible;
    }

    .category-menu a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .category-menu .mobile-collapsed-category {
        display: none;
    }

    .category-more-item {
        display: block;
        margin-left: auto;
        padding: 0.35rem 0.2rem;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .featured-image {
        height: 250px;
    }

    .featured-content h2 {
        font-size: 1.5rem;
    }

    .news-section h2 {
        font-size: 1.4rem;
    }

    .sidebar {
        gap: 1.5rem;
    }

    .contact-links {
        width: 100%;
        flex-direction: column;
        gap: 0.4rem !important;
    }

    .contact-links a {
        font-size: 0.86rem;
        text-align: center;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    main {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-img {
        height: 40px;
    }

    .nav-links {
        gap: 0.3rem;
        font-size: 0.9rem;
    }

    .nav-links a {
        padding: 0.35rem 0.45rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-section h2 {
        font-size: 1.2rem;
    }

    .featured-content h2 {
        font-size: 1.2rem;
    }

    .featured-image {
        height: 200px;
    }

    .search-bar {
        font-size: 0.8rem;
    }

    .search-bar input {
        padding: 0.4rem 0.6rem;
    }

    .search-bar button {
        padding: 0.4rem 0.6rem;
    }

    .sidebar-title {
        font-size: 1rem;
        padding: 0.7rem;
    }

    .popular-news-image {
        width: 60px;
        height: 60px;
    }

    .contact-links a {
        font-size: 0.8rem;
    }
}

/* Admin Panel Styles */
.admin-wrapper {
    max-width: 600px;
    margin: 2rem auto;
}

.admin-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-form {
    text-align: center;
}

.login-form h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.news-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.news-form h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.btn-submit {
    width: 100%;
    padding: 0.8rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #2980b9;
}

.btn-logout {
    padding: 0.6rem 1.2rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #c0392b;
}

.btn-delete {
    padding: 0.4rem 0.8rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.btn-edit {
    padding: 0.4rem 0.8rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    margin-right: 0.5rem;
}

.btn-edit:hover {
    background-color: #2980b9;
}

.btn-cancel-edit {
    width: 100%;
    padding: 0.8rem;
    background-color: #95a5a6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-cancel-edit:hover {
    background-color: #7f8c8d;
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.recent-news {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recent-news h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.admin-news-item {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 1rem;
    background-color: #f9f9f9;
}

.admin-news-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.admin-news-header h4 {
    flex: 1;
    color: #2c3e50;
}

.admin-news-actions {
    display: flex;
    align-items: center;
}

.admin-news-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.admin-news-item p:not(.admin-news-meta) {
    color: #555;
}

/* Popular Items in Sidebar */
.popular-item {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item:hover {
    background-color: #f5f5f5;
}

.popular-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
}

.popular-content {
    flex: 1;
}

.popular-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.popular-category {
    font-size: 0.8rem;
    color: #999;
}

/* News Banner Style (Like TV News) */
.news-banner {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #c00000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.news-banner:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.news-banner-image {
    width: 100%;
    height: clamp(220px, 52vw, 540px);
    object-fit: contain;
    display: block;
    background: #9a0000;
    border-radius: 4px 4px 0 0;
}

.news-banner-media {
    position: relative;
    width: 100%;
    background: #9a0000;
    padding: 0.75rem 0.75rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-banner-corner-logo {
    position: absolute;
    top: 0.95rem;
    right: 0.95rem;
    width: clamp(56px, 8vw, 86px);
    height: auto;
    padding: 0.2rem 0.35rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}
.news-banner-caption {
    width: 100%;
    background: linear-gradient(180deg, #c80000 0%, #b10000 100%);
    padding: 1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.news-banner-title {
    color: #fff;
    font-size: clamp(1.15rem, 2vw, 1.7rem);
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.35);
}
.news-banner-meta {
    color: #ffe4e4;
    font-size: 0.82rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}
.news-banner-date,
.news-banner-author {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.news-banner-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.2px;
}
.channel-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
}
/* Multiple Banner Grid */
.news-banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.news-banner-small {
    height: auto;
    margin-bottom: 0;
}
.news-banner-small .news-banner-media {
    padding: 0.55rem 0.55rem 0;
}
.news-banner-small .news-banner-image {
    height: clamp(180px, 38vw, 300px);
}
.news-banner-small .news-banner-corner-logo {
    width: clamp(48px, 7vw, 70px);
    top: 0.7rem;
    right: 0.7rem;
}
.news-banner-small .news-banner-title {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
}
/* Responsive Banner */
@media (max-width: 768px) {
    .news-banner-media {
        padding: 0.6rem 0.6rem 0;
    }
    .news-banner-image {
        height: clamp(180px, 65vw, 360px);
    }
    .news-banner-corner-logo {
        width: clamp(50px, 16vw, 72px);
        top: 0.7rem;
        right: 0.7rem;
    }
    .news-banner-caption {
        padding: 0.85rem 1rem 1rem;
        gap: 0.6rem;
    }
    .news-banner-title {
        font-size: clamp(1rem, 4.5vw, 1.25rem);
    }
    .news-banner-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
    .news-banners-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .news-banner-media {
        padding: 0.45rem 0.45rem 0;
    }
    .news-banner-image {
        height: clamp(160px, 72vw, 300px);
    }
    .news-banner-corner-logo {
        width: clamp(44px, 18vw, 62px);
        top: 0.55rem;
        right: 0.55rem;
    }
    .news-banner-caption {
        padding: 0.75rem 0.85rem 0.9rem;
    }
    .news-banner-title {
        font-size: clamp(0.95rem, 4.8vw, 1.1rem);
        line-height: 1.32;
    }
    .news-banner-meta {
        font-size: 0.72rem;
        gap: 0.45rem;
    }
}

/* News Detail Page Styles */
.detail-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.news-detail {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
}

.detail-header {
    margin-bottom: 1.5rem;
}

.detail-category {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.detail-title {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0.5rem 0;
    line-height: 1.3;
}

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

.detail-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.detail-author {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.detail-posted-by {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.detail-image-wrapper {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.detail-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.detail-body {
    margin: 2rem 0;
}

.detail-description {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.detail-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

.back-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: #2980b9;
}

/* Detail Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.sidebar-section .sidebar-title {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem;
    margin: 0;
    font-size: 1rem;
}

#related-news {
    padding: 1rem;
}

.related-item {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
    cursor: pointer;
    transition: all 0.3s;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item:hover {
    background-color: #f9f9f9;
    padding-left: 1.5rem;
}

.related-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.related-category {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
}

/* Logo Image */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Responsive Detail Page */
@media (max-width: 768px) {
    .detail-wrapper {
        grid-template-columns: 1fr;
    }

    .news-detail {
        padding: 1.5rem;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .detail-meta {
        font-size: 0.8rem;
        gap: 1rem;
    }

    .detail-description {
        font-size: 1rem;
    }
}

/* Modern News Banner Grid - Like TV News */
.news-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-modern-banner {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-modern-banner:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.news-modern-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-modern-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(192, 0, 0, 0.95) 60%, #c00000 100%);
    padding: 2rem;
    min-height: 45%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.news-modern-title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.35;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-modern-meta {
    color: #ffcccc;
    font-size: 0.85rem;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: center;
}

.news-modern-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-modern-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.7rem;
    border-radius: 3px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
}

.news-modern-author {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
}

/* Small variant for sidebar */
.news-modern-small {
    height: 250px;
}

.news-modern-small .news-modern-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .news-modern-grid {
        grid-template-columns: 1fr;
    }

    .news-modern-banner {
        height: 300px;
    }

    .news-modern-title {
        font-size: 1.2rem;
    }

    .news-modern-overlay {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-modern-banner {
        height: 240px;
    }

    .news-modern-overlay {
        padding: 1rem;
    }

    .news-modern-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
        margin-bottom: 0.5rem;
    }

    .news-modern-meta {
        font-size: 0.75rem;
        gap: 0.8rem;
    }
}

/* Print and PDF Button Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
}

.btn i {
    font-size: 1rem;
}

.btn-print {
    background-color: #3498db;
    color: white;
}

.btn-print:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.detail-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

/* Share Buttons Styling */
.share-buttons {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.share-buttons h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
}

.share-btn i {
    font-size: 1.1rem;
}

.share-facebook {
    background-color: #1877f2;
}

.share-facebook:hover {
    background-color: #166fe5;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

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

.share-twitter:hover {
    background-color: #1a91da;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

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

.share-whatsapp:hover {
    background-color: #1ebd59;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.share-email {
    background-color: #666;
}

.share-email:hover {
    background-color: #555;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 102, 102, 0.4);
}

/* Responsive Design for Print/PDF Buttons */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header h2 {
        width: 100%;
    }

    .action-buttons {
        width: 100%;
    }

    .btn {
        flex: 1;
        justify-content: center;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions .btn {
        width: 100%;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ===================== PRINT STYLES ===================== */
@media print {
    @page {
        margin: 10mm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html,
    body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: inherit !important;
        color: inherit !important;
    }

    header {
        position: static !important;
        top: auto !important;
    }

    body {
        background-color: #f4f4f4 !important;
    }

    /* Keep key UI background colors in print */
    header,
    footer,
    .navbar-headline-bar,
    .category-menu,
    .sidebar-title,
    .news-category,
    .detail-category,
    .news-banner,
    .news-modern-banner {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
.footer{
    background:#111;
    color:#fff;
    padding:40px 20px;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container{
    max-width:1200px;
    margin:auto;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
    margin-bottom:30px;
}

.footer-box{
    line-height:1.8;
}

.footer-title{
    font-size:28px;
    font-weight:700;
    margin-bottom:18px;
}

.footer-name{
    font-size:20px;
    font-weight:500;
    margin-bottom:8px;
}

.footer-text{
    font-size:16px;
    color:#ddd;
    margin-bottom:15px;
}

.footer-link{
    color:#64b5f6;
    text-decoration:none;
    font-size:16px;
    transition:0.3s;
}

.footer-link:hover{
    color:#fff;
}

.ad-title{
    margin-top:25px;
}

.social-box{
    text-align:center;
}

.social-icons{
    display:flex;
    justify-content:center;
    gap:18px;
    margin-top:20px;
}

.social-icons a{
    color:#64b5f6;
    font-size:34px;
    transition:0.3s;
}

.social-icons a:hover{
    color:#fff;
    transform:translateY(-3px);
}

.footer-divider{
    border:none;
    border-top:1px solid #333;
    margin:20px 0;
}

.copyright{
    text-align:center;
    padding-top:15px;
}

.copyright p{
    margin:0;
    font-size:15px;
    color:#aaa;
}

.copyright small{
    color:#777;
}

.copyright a{
    color:#fff;
    text-decoration:none;
}

.copyright a:hover{
    color:#64b5f6;
}

/* Responsive */
@media(max-width:768px){

    .footer-grid{
        grid-template-columns:1fr;
        text-align:center;
    }

    .social-icons{
        justify-content:center;
    }
}