/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Container Spacing */
.container {
    padding-right: 15px;
    padding-left: 15px;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* Top Bar */
.top-bar {
    background-color: #1a1a1a;
    color: #fff;
    font-size: 12px;
}

.top-info {
    color: #ddd;
}

.top-info i {
    margin-right: 5px;
}

.top-info span {
    font-size: 12px !important;
}

.social-links {
    display: inline-flex;
    gap: 0;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 16px;
    transition: color 0.3s;
    display: inline-block;
}

.social-links a:first-child {
    margin-left: 0;
}

.social-links a:hover {
    color: #dc3545;
}

/* Top Menu */
.top-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.top-menu a,
.top-menu li a {
    color: #ddd;
    text-decoration: none;
    font-size: 12px;
    padding: 5px 12px;
    border-right: 1px solid #444;
    transition: color 0.3s;
    white-space: nowrap;
    display: inline-block;
}

.top-menu a:last-child,
.top-menu li:last-child a {
    border-right: none;
}

.top-menu a:hover,
.top-menu li a:hover {
    color: #dc3545;
}

/* WordPress menu list in top-menu */
.top-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.top-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Top Bar Toggler */
.top-bar-toggler {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s;
}

.top-bar-toggler:hover {
    color: #dc3545;
}

/* Top Bar Mobile Menu */
.top-bar-mobile-menu {
    padding: 15px 0;
    border-top: 1px solid #444;
    margin-top: 10px;
}

.top-bar-mobile-menu a {
    display: block;
    color: #ddd;
    text-decoration: none;
    padding: 8px 0;
    font-size: 13px;
    transition: color 0.3s;
}

.top-bar-mobile-menu a:hover {
    color: #dc3545;
}

/* WordPress menu list in mobile menu */
.top-bar-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-bar-mobile-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-bar-mobile-social {
    padding: 10px 0;
    display: flex;
    gap: 15px;
}

.top-bar-mobile-social a {
    color: #ddd;
    font-size: 18px;
    transition: color 0.3s;
}

.top-bar-mobile-social a:hover {
    color: #dc3545;
}

/* Header Leaderboard Ads */
.newsflash-header-ads {
    text-align: center;
    padding: 15px 0;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    margin: 0;
    width: 100%;
}

.newsflash-header-ads .container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.newsflash-header-ads img,
.newsflash-header-ads iframe {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.newsflash-header-ads ins {
    display: inline-block !important;
}

/* Responsive Ads */
@media (max-width: 768px) {
    .newsflash-header-ads {
        padding: 10px 0;
    }

    .newsflash-header-ads .container {
        min-height: 80px;
    }
}

@media (max-width: 480px) {
    .newsflash-header-ads {
        padding: 8px 0;
    }

    .newsflash-header-ads .container {
        min-height: 60px;
    }
}

/* Navigation */
.navbar-main {
    position: relative;
}

.navbar-top {
    background-color: #fff;
}

.navbar-top  .custom-logo {
    max-height: 60px;
    max-width: 250px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.navbar-brand {
    max-width: 250px;
    height: 60px;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.navbar-brand h2 {
    font-size: 28px;
    letter-spacing: -1px;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: #dc3545;
    text-decoration: none;
    transition: color 0.3s;
}

.site-title a:hover {
    color: #c82333;
}

.site-description {
    font-size: 13px;
    color: #6c757d;
    margin: 4px 0 0 0;
    line-height: 1.4;
}

/* Search Bar */
.navbar-search {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    z-index: 5;
    font-size: 16px;
}

.search-wrapper input[type="search"] {
    padding: 10px 15px 10px 42px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s ease;
    height: 42px;
}

.search-wrapper input[type="search"]:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    outline: none;
}

.search-wrapper input[type="search"]::placeholder {
    color: #adb5bd;
}

/* Mobile Search */
.mobile-search {
    padding-top: 15px;
}

/* Navigation Actions */
.navbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-action {
    background: transparent;
    border: none;
    color: #495057;
    font-size: 20px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-action:hover {
    background-color: #f8f9fa;
    color: #dc3545;
    transform: scale(1.05);
}

.btn-action:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Navigation Menu */
.navbar-bottom {
    background-color: #fff;
}

.navbar-bottom .navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-bottom .navbar-toggler:focus {
    box-shadow: none;
}

#searchModal .input-group input:focus {
    border-color: #dc3545;
    box-shadow: none;
}

#searchModal .input-group .btn {
    border-radius: 0 10px 10px 0;
    padding: 0 25px;
}

/* Navbar Bottom */
.navbar-bottom {
    background-color: #fff;
    padding: 12px 0;
    overflow: visible;
}

.navbar-menu-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.navbar-menu-wrapper::-webkit-scrollbar {
    display: none;
}

.navbar-nav-scroll {
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    white-space: nowrap;
}

.navbar-nav-scroll .nav-item {
    position: relative;
    overflow: visible;
}

.navbar-nav-scroll .nav-link {
    color: #333;
    font-weight: 600;
    padding: 8px 18px !important;
    transition: all 0.3s;
    border-radius: 5px;
    text-decoration: none;
    display: block;
}

.navbar-nav-scroll .nav-link:hover,
.navbar-nav-scroll .nav-link.active {
    color: #fff;
    background-color: #dc3545;
}

/* Dropdown Menu */
.navbar-nav-scroll .dropdown-toggle::after {
    margin-left: 5px;
    vertical-align: middle;
}

.navbar-nav-scroll .nav-item {
    position: relative;
}

/* Dropdown Menu Styles */
.navbar-nav-scroll .dropdown-menu {
    display: none;
    min-width: 200px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    background-color: #fff;
    list-style: none;
}

/* Show dropdown on hover (Desktop) - using both methods for compatibility */
.navbar-nav-scroll .nav-item.dropdown:hover .dropdown-menu,
.navbar-nav-scroll .dropdown:hover .dropdown-menu {
    display: block;
}

/* Show dropdown on click (Mobile/Touch) */
.navbar-nav-scroll .nav-item.dropdown.show .dropdown-menu,
.navbar-nav-scroll .dropdown.show .dropdown-menu {
    display: block;
}

.navbar-nav-scroll .dropdown-item {
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
    display: block;
    text-decoration: none;
}

.navbar-nav-scroll .dropdown-item:hover {
    background-color: #dc3545;
    color: #fff;
}

.navbar-nav-scroll .dropdown-divider {
    margin: 8px 0;
    border-color: #e9ecef;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e9ecef;
}

body.dark-mode .navbar-main,
body.dark-mode .navbar-top,
body.dark-mode .navbar-bottom {
    background-color: #2d2d2d !important;
}

body.dark-mode .navbar-brand span {
    color: #e9ecef !important;
}

body.dark-mode .search-wrapper .form-control {
    background-color: #1a1a1a;
    border-color: #444;
    color: #e9ecef;
}

body.dark-mode .search-wrapper .form-control::placeholder {
    color: #999;
}

body.dark-mode .btn-action {
    background-color: #1a1a1a;
    border-color: #444;
    color: #e9ecef;
}

body.dark-mode .btn-action:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

body.dark-mode .navbar-nav-scroll .nav-link {
    color: #e9ecef;
}

body.dark-mode .navbar-nav-scroll .nav-link:hover,
body.dark-mode .navbar-nav-scroll .nav-link.active {
    color: #fff;
    background-color: #dc3545;
}

body.dark-mode .navbar-nav-scroll .dropdown-menu {
    background-color: #2d2d2d;
    border-color: #444;
}

body.dark-mode .navbar-nav-scroll .dropdown-item {
    color: #e9ecef;
}

body.dark-mode .navbar-nav-scroll .dropdown-item:hover {
    background-color: #dc3545;
    color: #fff;
}

body.dark-mode .navbar-nav-scroll .dropdown-divider {
    border-color: #444;
}

body.dark-mode .card,
body.dark-mode .article-detail,
body.dark-mode .widget,
body.dark-mode .comments-section {
    background-color: #2d2d2d;
}

body.dark-mode .card-title a,
body.dark-mode .article-title,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #e9ecef !important;
}

body.dark-mode .text-dark {
    color: #e9ecef !important;
}

body.dark-mode .text-muted {
    color: #999 !important;
}

body.dark-mode .border-top,
body.dark-mode .border-bottom {
    border-color: #444 !important;
}

body.dark-mode .widget ul li {
    border-bottom-color: #444;
}

body.dark-mode .widget ul li a {
    color: #e9ecef;
}

body.dark-mode .widget input[type="text"],
body.dark-mode .widget input[type="email"],
body.dark-mode .widget input[type="search"],
body.dark-mode .widget select {
    background-color: #1a1a1a;
    border-color: #444;
    color: #e9ecef;
}

body.dark-mode .widget_tag_cloud .tagcloud a {
    background-color: #2d2d2d;
    color: #e9ecef;
    border-color: #444;
}

body.dark-mode .widget_calendar thead th {
    background-color: #1a1a1a;
    color: #e9ecef;
}

body.dark-mode .widget_calendar th,
body.dark-mode .widget_calendar td {
    border-color: #444;
    color: #e9ecef;
}

body.dark-mode .widget .list-group-item {
    color: #e9ecef;
    border-bottom-color: #444 !important;
}

body.dark-mode .widget .list-group-item:hover {
    color: #ff6b6b;
}

body.dark-mode .popular-link:hover {
    color: #ff6b6b !important;
}

body.dark-mode .breadcrumb-item a {
    color: #9ca3af;
}

body.dark-mode .breadcrumb-item a:hover {
    color: #ff6b6b;
}

body.dark-mode .breadcrumb-item.active {
    color: #6c757d;
}

body.dark-mode .archive-title,
body.dark-mode .search-title {
    color: #e9ecef;
}

body.dark-mode .archive-description {
    color: #9ca3af;
}

body.dark-mode .carousel-caption-custom {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 60%, transparent 100%);
}

body.dark-mode .carousel-title a {
    color: #e9ecef;
}

body.dark-mode .carousel-title a:hover {
    color: #ff4757 !important;
}

body.dark-mode .carousel-excerpt {
    color: #d1d5db;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 10px 0;
    margin-bottom: 0;
    font-size: 14px;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #dc3545;
}

.breadcrumb-item.active {
    color: #999;
}

/* Archive & Search Headers */
.archive-header,
.search-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.archive-title,
.search-title {
    font-size: 26px;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.archive-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* Breaking News Ticker */
.breaking-news {
    background-color: #dc3545;
    color: #fff;
    overflow: hidden;
}

.breaking-news .container {
    padding: 0;
}

.breaking-news .d-flex {
    display: flex;
    align-items: stretch;
    margin: 0;
}

.breaking-label {
    background-color: #fff;
    color: #dc3545;
    padding: 8px 15px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    margin: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.news-ticker {
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 15px;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.news-ticker span {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

.news-ticker:hover span {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

/* Sidebar Ads */
.sidebar-ad {
    position: sticky;
    top: 80px;
}

.ad-placeholder {
    background-color: #e9ecef;
    border: 2px dashed #ced4da;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Widgets */
.widget {
    margin-bottom: 1.25rem;
    background-color: #fff;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 0;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    transition: transform 0.3s;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li:hover {
    transform: translateX(5px);
}

.widget ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    font-size: 13px;
    line-height: 1.4;
}

.widget ul li a:hover {
    color: #dc3545;
}

.widget select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

.widget table {
    width: 100%;
    font-size: 14px;
}

.widget table td {
    padding: 4px 0;
}

.widget input[type="text"],
.widget input[type="email"],
.widget input[type="search"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.widget input[type="submit"],
.widget button[type="submit"] {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.widget input[type="submit"]:hover,
.widget button[type="submit"]:hover {
    background-color: #c82333;
}

/* Widget Title Styling */
.widget h5,
.widget .widget-title,
.widget h2 {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 0.875rem;
    border-left: 4px solid #dc3545;
    padding-left: 12px;
    line-height: 1.3;
}

/* Recent Posts Widget */
.widget_recent_entries ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
}

.widget_recent_entries .post-date {
    display: block;
    color: #6c757d;
    font-size: 12px;
    margin-top: 4px;
}

/* Recent Posts with Thumbnails */
.widget_recent_entries ul li a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget_recent_entries ul li img {
    width: 90px;
    min-width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
}

/* Categories Widget */
.widget_categories ul li,
.widget_archive ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories ul li span,
.widget_archive ul li span {
    background-color: #e9ecef;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #495057;
}

/* NewsFlash Category Widget - Matching index.php */
.widget .card-body {
    padding: 0;
}

.widget .list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget .list-group-item {
    background-color: transparent;
    color: #333;
    text-decoration: none;
    padding: 12px 0;
    border: 0 !important;
    border-bottom: 1px solid #e9ecef !important;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget .list-group-item:last-child {
    border-bottom: none !important;
}

.widget .list-group-item:hover {
    background-color: transparent;
    color: #dc3545;
    transform: translateX(5px);
}

.widget .list-group-item .badge {
    background-color: #6c757d !important;
    font-size: 12px;
    padding: 4px 10px;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget_tag_cloud .tagcloud a {
    background-color: #f8f9fa;
    color: #495057;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px !important;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.widget_tag_cloud .tagcloud a:hover {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

/* Search Widget */
.widget_search form {
    position: relative;
}

.widget_search input[type="search"] {
    padding-right: 45px;
}

.widget_search button[type="submit"],
.widget_search input[type="submit"] {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
}

/* Calendar Widget */
.widget_calendar table {
    border-collapse: collapse;
}

.widget_calendar th,
.widget_calendar td {
    text-align: center;
    padding: 8px 4px;
    border: 1px solid #e9ecef;
}

.widget_calendar thead th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.widget_calendar tbody td a {
    color: #dc3545;
    font-weight: bold;
}

/* RSS Widget */
.widget_rss ul li {
    padding: 12px 0;
}

.widget_rss .rss-date,
.widget_rss cite {
    display: block;
    color: #6c757d;
    font-size: 12px;
    margin-top: 4px;
}

/* Meta Widget */
.widget_meta ul li,
.widget_pages ul li,
.widget_nav_menu ul li {
    padding: 12px 0;
}

/* Text Widget */
.widget_text .textwidget {
    font-size: 14px;
    line-height: 1.6;
}

/* Recent Comments Widget */
.widget_recent_comments ul li {
    padding: 12px 0;
}

.widget_recent_comments .comment-author-link {
    font-weight: 600;
    color: #333;
}

/* Widget with no list */
.widget p {
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.widget p:last-child {
    margin-bottom: 0;
}

/* Cards */
.card {
    border-radius: 8px;
    overflow: hidden;
}

.card-body {
    padding: 1.25rem;
}

.headline-card {
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.headline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.headline-card img {
    transition: transform 0.3s;
    border-radius: 10px;
}

.headline-card:hover img {
    transform: scale(1.05);
}

.news-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.card-title a {
    transition: color 0.3s;
}

.card-title a:hover {
    color: #dc3545 !important;
}

/* Meta Info */
.meta-info {
    margin-top: 10px;
}

/* Section Title */
.section-title h4 {
    display: inline-block;
    padding-right: 20px;
}

/* List News */
.list-news img {
    object-fit: cover;
    height: 100%;
    border-radius: 6px;
}

.list-news .badge {
    font-size: 10px;
    padding: 4px 8px;
    font-weight: 600;
}

.list-news .badge.bg-danger {
    background-color: #dc3545 !important;
}

.list-news .badge.bg-primary {
    background-color: #0d6efd !important;
}

.list-news .badge.bg-success {
    background-color: #198754 !important;
}

.list-news .badge.bg-info {
    background-color: #0dcaf0 !important;
}

.list-news .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.list-news h6 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.list-news h6 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.list-news h6 a:hover {
    color: #dc3545 !important;
}

.list-news .meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.list-news .card {
    margin-bottom: 1.25rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.list-news .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* Social Media Widget */
.social-box {
    transition: transform 0.3s;
}

.social-box:hover {
    transform: translateY(-3px);
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
    margin: 0 auto;
}

.social-icon i {
    font-size: 22px;
    color: white;
}

.social-icon:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.social-box small {
    font-size: 11px;
}

/* Video Section */
.video-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 0;
}

.video-section .section-title h4 {
    font-size: 20px;
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.video-thumbnail img {
    transition: transform 0.3s;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s;
    pointer-events: none;
}

.video-thumbnail:hover .play-button {
    color: #dc3545;
}

/* Footer */
.footer {
    background-color: #1a1a1a !important;
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
}

.footer-widget {
    color: #e9ecef;
}

.footer-widget h5,
.footer-widget h6 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-widget p {
    color: #e9ecef;
    font-size: 14px;
    line-height: 1.6;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
    color: #e9ecef;
    display: inline-block;
}

.footer-links a:hover {
    color: #dc3545 !important;
    padding-left: 5px;
}

.footer .small {
    font-size: 13px;
}

.footer a {
    color: #e9ecef;
    transition: color 0.3s;
}

.footer a:hover {
    color: #dc3545;
}

.social-links-footer a {
    transition: transform 0.3s;
    display: inline-block;
}

.social-links-footer a:hover {
    transform: translateY(-3px);
    color: #dc3545 !important;
}

/* Badge Custom Colors */
.bg-purple {
    background-color: #6f42c1 !important;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.pagination .page-numbers:hover {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.pagination .page-numbers.current {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.pagination .page-numbers.dots {
    border: none;
    pointer-events: none;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* No Results / Not Found */
.no-results {
    background-color: #fff;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.no-results .page-header {
    margin-bottom: 1.5rem;
}

.no-results .page-title {
    font-size: 28px;
    color: #495057;
    margin-bottom: 1rem;
}

.no-results .page-content {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
}

.no-results .page-content p {
    margin-bottom: 1.5rem;
}

.no-results form {
    max-width: 500px;
    margin: 0 auto;
}

/* Side Headlines */
.side-headlines .card {
    transition: transform 0.3s;
}

.side-headlines .card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #c82333;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.back-to-top.show:hover {
    transform: translateY(-5px);
}

.back-to-top:active {
    transform: translateY(-3px);
}

/* Carousel Styles */
.carousel-image {
    height: 500px;
    max-height: 70vh;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-inner {
    border-radius: 10px;
    overflow: hidden;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    padding: 30px 80px 65px 80px;
    text-align: left;
}

.carousel-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.carousel-title a {
    color: #fff;
    text-decoration: none;
}

.carousel-title a:hover {
    color: #dc3545 !important;
}

.carousel-excerpt {
    font-size: 14px;
    color: #f8f9fa;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(220, 53, 69, 0.8);
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    margin-bottom: 25px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
}

.carousel-indicators button.active {
    background-color: #dc3545;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 991px) {
    .navbar-brand h2 {
        font-size: 24px;
    }
    
    .headline-card {
        margin-bottom: 20px;
    }
    
    .side-headlines .card {
        margin-bottom: 15px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .top-bar {
        padding: 3px 0;
        font-size: 10px;
    }
    
    .top-info {
        font-size: 9px;
    }
    
    .top-bar-toggler {
        font-size: 18px;
        padding: 2px;
    }
    
    .navbar-brand h2 {
        font-size: 18px;
    }
    
    .navbar-top .py-3 {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    
    .navbar-search {
        display: none !important;
    }
    
    .mobile-search {
        display: block;
    }
    
    .navbar-actions {
        gap: 4px;
    }
    
    .btn-action {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    
    .mobile-search {
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    .mobile-search .search-wrapper input[type="search"] {
        height: 36px;
        font-size: 13px;
        padding: 8px 12px 8px 36px;
    }
    
    .mobile-search .search-icon {
        font-size: 14px;
        left: 12px;
    }
    
    .navbar-bottom {
        padding: 6px 0 !important;
    }
    
    .navbar-menu-wrapper {
        width: 100%;
        margin-left: -15px;
        margin-right: -15px;
        padding: 0 15px !important;
    }
    
    .navbar-nav-scroll {
        justify-content: flex-start;
        padding-bottom: 6px;
    }
    
    .navbar-nav-scroll .nav-link {
        font-size: 13px;
        padding: 5px 10px !important;
    }
    
    .breaking-label {
        font-size: 9px;
        padding: 6px 10px;
        letter-spacing: 0.5px;
    }
    
    .breaking-news {
        font-size: 12px;
    }
    
    .news-ticker {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Container & Spacing */
    .container {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .my-4 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .mt-4 {
        margin-top: 1rem !important;
    }
    
    /* Single Post/Page Article */
    .single-post {
        background-color: #fff;
        border-radius: 8px;
    }
    
    /* Carousel Mobile Styles */
    .carousel-image {
        height: 33vh !important;
        max-height: 400px !important;
        min-height: 180px !important;
    }
    
    .carousel-caption-custom {
        padding: 10px 15px 25px 15px !important;
    }
    
    .carousel-title {
        font-size: 15px !important;
        margin-bottom: 5px !important;
        line-height: 1.3 !important;
    }
    
    .carousel-excerpt {
        font-size: 11px !important;
        margin-bottom: 4px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 30px !important;
        height: 30px !important;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 14px !important;
        height: 14px !important;
    }
    
    .carousel-control-prev {
        left: 10px !important;
    }
    
    .carousel-control-next {
        right: 10px !important;
    }
    
    .carousel-indicators {
        margin-bottom: 15px !important;
    }
    
    .carousel-indicators button {
        width: 8px !important;
        height: 8px !important;
    }
    
    .headline-card h3 {
        font-size: 20px;
    }
    
    .section-title h4 {
        font-size: 17px;
        margin-bottom: 0.75rem;
    }
    
    /* Archive & Search Headers Mobile */
    .archive-title,
    .search-title {
        font-size: 22px;
    }
    
    .archive-description {
        font-size: 13px;
    }
    
    /* List News Mobile */
    .list-news h6 {
        font-size: 16px;
    }
    
    .list-news .meta-info {
        font-size: 12px;
    }
    
    .list-news .card {
        margin-bottom: 1rem;
    }
    
    /* Sidebar Mobile */
    .sidebar {
        margin-top: 1.5rem;
    }
    
    .social-icon {
        width: 42px;
        height: 42px;
    }
    
    .social-icon i {
        font-size: 20px;
    }
    
    .social-box small {
        font-size: 10px;
    }
    
    /* Video Section Mobile */
    .video-section {
        padding: 1rem 0;
        margin-top: 1rem !important;
    }
    
    .video-section .section-title h4 {
        font-size: 17px;
    }
    
    .play-button {
        font-size: 40px;
    }
    
    .video-section .card-body h6 {
        font-size: 14px;
    }
    
    .video-section .card-body small {
        font-size: 11px;
    }
    
    /* Footer Mobile */
    .footer {
        padding-top: 2rem;
        padding-bottom: 1rem;
        margin-top: 2rem !important;
    }
    
    .footer-widget h5,
    .footer-widget h6 {
        font-size: 15px;
    }
    
    .footer-widget p {
        font-size: 13px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer .small {
        font-size: 11px;
    }
    
    .footer .col-md-3 {
        margin-bottom: 1.5rem;
    }
    
    /* Pagination Mobile */
    .pagination {
        margin-top: 1.5rem;
        flex-wrap: wrap;
    }
    
    .pagination .page-numbers {
        padding: 6px 10px;
        margin: 2px;
        font-size: 13px;
    }
    
    /* No Results Mobile */
    .no-results {
        padding: 2rem 1.5rem;
    }
    
    .no-results .page-title {
        font-size: 22px;
    }
    
    .no-results .page-content {
        font-size: 15px;
    }

    .news-card h5 {
        font-size: 16px;
    }
    
    .play-button {
        font-size: 40px;
    }
    
    /* Back to Top Mobile */
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

/* Extra Small Mobile */
@media (max-width: 575px) {
    .top-bar {
        padding: 2px 0;
        font-size: 9px;
    }
    
    .top-info {
        font-size: 8px;
    }
    
    .top-bar-toggler {
        font-size: 16px;
    }
    
    .navbar-brand h2 {
        font-size: 16px;
    }
    
    .navbar-top .py-3 {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    
    .btn-action {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .mobile-search .search-wrapper input[type="search"] {
        height: 34px;
        font-size: 12px;
    }
    
    .navbar-nav-scroll .nav-link {
        font-size: 12px;
        padding: 4px 8px !important;
    }
    
    .breaking-label {
        font-size: 8px;
        padding: 5px 8px;
    }
    
    .news-ticker {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    /* Container & Spacing */
    .container {
        padding-right: 8px;
        padding-left: 8px;
    }
    
    .my-4 {
        margin-top: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .mb-4 {
        margin-bottom: 0.75rem !important;
    }
    
    /* Carousel Extra Small Mobile */
    .carousel-image {
        height: 33vh !important;
        max-height: 300px !important;
        min-height: 160px !important;
    }
    
    .carousel-caption-custom {
        padding: 8px 10px 20px 10px !important;
    }
    
    .carousel-title {
        font-size: 13px !important;
        margin-bottom: 3px !important;
        line-height: 1.3 !important;
    }
    
    .carousel-excerpt {
        font-size: 10px !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 2;
    }
    
    .carousel-caption-custom small {
        font-size: 9px !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 26px !important;
        height: 26px !important;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 12px !important;
        height: 12px !important;
    }
    
    .carousel-control-prev {
        left: 8px !important;
    }
    
    .carousel-control-next {
        right: 8px !important;
    }
    
    .carousel-indicators {
        margin-bottom: 8px !important;
    }
    
    .carousel-indicators button {
        width: 6px !important;
        height: 6px !important;
        margin: 0 3px !important;
    }
    
    .headline-card h3 {
        font-size: 18px;
    }
    
    .headline-card .card-text {
        font-size: 14px;
    }
    
    .news-card h5 {
        font-size: 15px;
    }
    
    .news-card .card-text {
        font-size: 13px;
    }
    
    .list-news .col-4 {
        flex: 0 0 35%;
        max-width: 35%;
    }
    
    .list-news .col-8 {
        flex: 0 0 65%;
        max-width: 65%;
    }
    
    .list-news h6 {
        font-size: 14px;
    }
    
    .list-news small {
        font-size: 10px;
    }
    
    .list-news .meta-info {
        font-size: 11px;
    }
    
    /* Archive & Search Extra Small */
    .archive-title,
    .search-title {
        font-size: 19px;
    }
    
    .archive-description {
        font-size: 12px;
    }
    
    /* Sidebar Extra Small */
    .social-icon {
        width: 38px;
        height: 38px;
    }
    
    .social-icon i {
        font-size: 18px;
    }
    
    .social-box small {
        font-size: 9px;
    }
    
    /* Video Section Extra Small */
    .video-section {
        padding: 0.75rem 0;
    }
    
    .video-section .section-title h4 {
        font-size: 16px;
    }
    
    .play-button {
        font-size: 35px;
    }
    
    .video-section .card-body h6 {
        font-size: 13px;
    }
    
    .video-section .card-body small {
        font-size: 10px;
    }
    
    /* Footer Extra Small */
    .footer {
        padding-top: 1.5rem;
        margin-top: 1.5rem !important;
    }
    
    .footer-widget h5,
    .footer-widget h6 {
        font-size: 14px;
    }
    
    .footer-widget p {
        font-size: 12px;
    }
    
    .footer-links a {
        font-size: 11px;
    }
    
    .footer .small {
        font-size: 10px;
    }
    
    .footer .col-md-3 {
        margin-bottom: 1.25rem;
    }
    
    /* Pagination Extra Small */
    .pagination {
        margin-top: 1.25rem;
    }
    
    .pagination .page-numbers {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    /* No Results Extra Small */
    .no-results {
        padding: 1.5rem 1rem;
    }
    
    .no-results .page-title {
        font-size: 19px;
    }
    
    .no-results .page-content {
        font-size: 14px;
    }
    
    /* Back to Top Extra Small */
    .back-to-top {
        width: 38px;
        height: 38px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Popular Sidebar */
.popular-sidebar, .latest-sidebar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    padding: 18px;
}

.popular-item, .latest-item {
    transition: transform 0.3s;
}

.popular-item:hover, .latest-item:hover {
    transform: translateX(5px);
}

.popular-thumbnail, .latest-thumbnail {
    width: 90px;
    min-width: 90px;
    height: 65px;
    overflow: hidden;
}

.popular-thumbnail img, .latest-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-number, .latest-number {
    width: 30px;
    min-width: 30px;
}

.popular-number .badge, .latest-number .badge {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.popular-link, .latest-link {
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-link:hover, .latest-link:hover {
    color: #dc3545 !important;
}

/* Extra Small Mobile */
@media (max-width: 575px) {
    .popular-sidebar, .latest-sidebar {
        margin-top: 1rem;
    }

    .popular-thumbnail, .latest-thumbnail {
        width: 70px;
        height: 50px;
    }
    
    .popular-link, .latest-link {
        font-size: 13px;
    }
}

/* Loading Animation */
.card img {
    background-color: #e9ecef;
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* Entry Meta Styles */

/* Style 1 - Horizontal Layout (Default) */
.entry-meta {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.entry-meta i {
    margin-right: 5px;
}

/* Style 2 - Author Profile with Share Buttons */
.entry-meta-style-2 {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.entry-meta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.entry-meta-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 280px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.entry-date {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.entry-date i {
    margin: 0;
}

.entry-share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #fff;
}

.share-facebook {
    background: #3b5998;
}

.share-facebook:hover {
    background: #2d4373;
}

.share-x {
    background: #000000;
}

.share-x:hover {
    background: #333333;
}

.share-whatsapp {
    background: #25D366;
}

.share-whatsapp:hover {
    background: #1fab56;
}

.share-copy-url {
    background: #6c757d;
    border: none;
    cursor: pointer;
    padding: 0;
}

.share-copy-url:hover {
    background: #5a6268;
}

.share-copy-url.copied {
    background: #28a745;
}

.share-copy-url.copied:hover {
    background: #218838;
}

/* Responsive - Style 2 */
@media (max-width: 768px) {
    .entry-meta-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .entry-meta-author {
        min-width: 100%;
    }

    .entry-share-buttons {
        justify-content: flex-start;
    }

    .entry-meta-style-2 {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }

    .share-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .entry-meta-style-2 {
        padding: 0.75rem 0px;
        margin-bottom: 1rem;
        border-left-width: 3px;
    }

    .entry-meta-author {
        gap: 0.75rem;
    }

    .author-avatar {
        width: 45px;
        height: 45px;
    }

    .author-name {
        font-size: 0.9rem;
    }

    .entry-date {
        font-size: 0.8rem;
    }

    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* Breadcrumbs Mobile Styles */
@media (max-width: 768px) {
    .breadcrumb {
        display: inline-flex;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        gap: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .breadcrumb-item {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .breadcrumb-item a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        max-width: 100%;
    }

    .breadcrumb-item.active {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
    }
}

/* Font Size Slider Styles */
.entry-content {
    --font-size-multiplier: 1;
}

.entry-content p,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-content li,
.entry-content blockquote,
.entry-content table,
.entry-content pre,
.entry-content code {
    font-size: calc(1em * var(--font-size-multiplier));
}

.font-size-slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    padding: 0;
    flex-shrink: 0;
    width: 100%;
}

.font-size-slider-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    flex-shrink: 0;
}

.font-size-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.font-size-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    user-select: none;
    cursor: pointer;
    transition: color 0.3s;
    flex-shrink: 0;
}

.font-size-label:hover {
    color: #dc3545;
}

.font-size-label-large {
    font-size: 20px;
}

.font-size-slider {
    width: 200px;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #dc3545 0%, #dc3545 var(--slider-value, 50%), #e9ecef var(--slider-value, 50%), #e9ecef 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    flex-shrink: 0;
}

.font-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dc3545;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
    transition: all 0.3s;
}

.font-size-slider::-webkit-slider-thumb:hover {
    background: #c82333;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.4);
    transform: scale(1.1);
}

.font-size-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dc3545;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
    transition: all 0.3s;
}

.font-size-slider::-moz-range-thumb:hover {
    background: #c82333;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.4);
    transform: scale(1.1);
}

.font-size-slider::-moz-range-track {
    background: transparent;
    border: none;
}

.font-size-value {
    min-width: 45px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: white;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

/* Dark Mode */
body.dark-mode .font-size-slider-title {
    color: #e9ecef;
}

body.dark-mode .font-size-slider-container {
    background: #2d2d2d;
    border-color: #444;
}

body.dark-mode .font-size-label {
    color: #999;
}

body.dark-mode .font-size-label:hover {
    color: #ff6b6b;
}

body.dark-mode .font-size-value {
    color: #e9ecef;
    background: #1a1a1a;
    border-color: #444;
}

body.dark-mode .font-size-slider {
    background: linear-gradient(to right, #ff6b6b 0%, #ff6b6b var(--slider-value, 50%), #444 var(--slider-value, 50%), #444 100%);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .font-size-slider-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .font-size-slider-container {
        gap: 10px;
        padding: 12px 15px;
    }

    .font-size-slider {
        width: 150px;
    }

    .font-size-label {
        font-size: 12px;
    }

    .font-size-label-large {
        font-size: 16px;
    }

    .font-size-value {
        min-width: 40px;
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .navbar,
    .breaking-news,
    .sidebar-ad,
    .footer,
    .social-links {
        display: none;
    }
    
    .card {
        break-inside: avoid;
    }
}