/* style.css - Combined styles for NewsWeek */

:root {
    --primary-red: #d71920;
    --dark-red: #b0151b;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #212529;
    --text-light: #6c757d;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

/* Titles - Keep in Oswald */
h1, h2, h3, h4, h5, h6, .logo, .nav-link, .section-title, .category-title, .article-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}

/* Content text - Apply Encode Sans Condensed */
p, .small-text, .list-unstyled li, .form-control, .btn, footer, footer p, footer li, .post-content, .post-excerpt, .article-content {
    font-family: 'Encode Sans Condensed', sans-serif;
}

/* Specific classes for content */
.content-text, .article-content, .post-description, .news-excerpt {
    font-family: 'Encode Sans Condensed', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Adjust specific elements for better readability */
.small-text {
    font-family: 'Encode Sans Condensed', sans-serif;
    font-weight: 400;
}

p {
    font-family: 'Encode Sans Condensed', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Card content */
.card-effect p, .card-effect .small-text {
    font-family: 'Encode Sans Condensed', sans-serif;
}

/* Footer text */
footer p, footer a, footer li {
    font-family: 'Encode Sans Condensed', sans-serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-red);
}

/* Top Bar */
.top-bar {
    background-color: var(--dark-bg);
    color: #fff;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
}

.top-bar a {
    color: #ccc;
}

.top-bar a:hover {
    color: #fff;
}

/* Logo */
.logo {
    font-size: 52px;
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.15);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary-red), transparent);
}

/* Navbar */
.navbar {
    border-bottom: 3px solid var(--primary-red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background: #fff !important;
}

.nav-link {
    font-weight: 500;
    padding: 12px 18px !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background-color: var(--primary-red);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--primary-red) !important;
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 10px;
    min-width: 220px;
    margin-top: 8px !important;
    border-top: 3px solid var(--primary-red);
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 3px;
    transition: var(--transition);
    font-family: 'Encode Sans Condensed', sans-serif;
    font-weight: 400;
    position: relative;
}

.dropdown-item:hover {
    background-color: rgba(215, 25, 32, 0.08);
    color: var(--primary-red);
    padding-left: 20px;
}

.dropdown-item:hover::before {
    content: '→';
    position: absolute;
    left: 10px;
    color: var(--primary-red);
}

.dropdown-divider {
    margin: 8px 0;
    border-color: rgba(0,0,0,0.1);
}

.dropdown-header {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: var(--dark-bg);
    padding: 8px 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-toggle::after {
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Mega Dropdown for World category */
.dropdown-mega {
    position: static !important;
}

.dropdown-menu-mega {
    width: 100%;
    left: 0;
    right: 0;
    padding: 25px;
    border-radius: 0 0 8px 8px;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mega-menu-column h6 {
    color: var(--primary-red);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(215, 25, 32, 0.2);
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 8px;
}

.mega-menu-column ul li a {
    color: var(--text-dark);
    padding: 6px 0;
    display: block;
    transition: var(--transition);
    font-family: 'Encode Sans Condensed', sans-serif;
}

.mega-menu-column ul li a:hover {
    color: var(--primary-red);
    padding-left: 8px;
}

.mega-menu-column ul li a i {
    width: 20px;
    color: var(--text-light);
    font-size: 12px;
}

/* Search Bar */
.search-bar-container {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.search-bar-container.active {
    height: 80px;
    opacity: 1;
}

.search-bar {
    padding: 20px 0;
}

.search-bar .input-group {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 30px;
    overflow: hidden;
}

.search-bar .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 30px 0 0 30px;
}

.search-bar .btn {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 0 30px 30px 0;
    transition: var(--transition);
}

.search-bar .btn:hover {
    background: linear-gradient(135deg, var(--dark-red), #9a1217);
}

/* Article Page Styles */
.article-header {
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-meta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-meta-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
}

.article-meta-item i {
    margin-right: 8px;
    color: var(--primary-red);
}

.article-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.article-excerpt {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
    border-left: 3px solid var(--primary-red);
    padding-left: 20px;
}

/* Article Thumbnail */
.article-thumbnail {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Article Content */
.article-content-wrapper {
    margin-bottom: 50px;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 25px;
}

.article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.article-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-red);
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f9fa;
    font-style: italic;
    font-size: 20px;
    color: var(--text-dark);
}

.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

/* Author Info */
.author-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 25px;
    border: 3px solid var(--primary-red);
}

.author-details h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.author-bio {
    color: var(--text-light);
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social a {
    color: var(--text-light);
    font-size: 18px;
    transition: var(--transition);
}

.author-social a:hover {
    color: var(--primary-red);
}

/* Social Share */
.social-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: var(--transition);
}

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

.share-fb {
    background: #3b5998;
}

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

.share-pinterest {
    background: #bd081c;
}

.share-linkedin {
    background: #0077b5;
}

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

/* Related Posts */
.related-posts {
    margin: 60px 0;
}

.related-post-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: #fff;
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.related-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.related-post-card:hover .related-post-image {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-post-title a {
    color: var(--text-dark);
}

.related-post-title a:hover {
    color: var(--primary-red);
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
}

/* Search Page Styles */
.search-header {
    background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)), url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 50px;
}

.search-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: white;
}

.search-header .lead {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
}

/* Search Form */
.search-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-form .input-group {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    overflow: hidden;
}

.search-form .form-control {
    border: none;
    padding: 20px 25px;
    font-size: 18px;
    border-radius: 50px 0 0 50px;
}

.search-form .btn-search {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border: none;
    padding: 20px 35px;
    border-radius: 0 50px 50px 0;
    transition: var(--transition);
    font-weight: 600;
    font-size: 18px;
}

.search-form .btn-search:hover {
    background: linear-gradient(135deg, var(--dark-red), #9a1217);
    transform: translateX(2px);
}

.search-stats {
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* Search Filters */
.search-filters {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.filter-title {
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 30px;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(215, 25, 32, 0.2);
}

.sort-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.sort-select {
    padding: 10px 15px;
    border-radius: 5px;
    border: 2px solid #e9ecef;
    background: white;
    color: var(--text-dark);
    font-family: 'Encode Sans Condensed', sans-serif;
    min-width: 200px;
}

/* Post Tiles Grid */
.post-tile {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
    transition: var(--transition);
    height: 100%;
    margin-bottom: 30px;
    position: relative;
}

.post-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.post-tile:hover .post-image img {
    transform: scale(1.05);
}

.post-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: white;
    padding: 6px 15px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.post-title a {
    color: var(--text-dark);
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--primary-red);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 15px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: var(--text-light);
    font-size: 14px;
}

.post-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #eee;
}

.post-date {
    display: flex;
    align-items: center;
}

.post-date i {
    margin-right: 5px;
    color: var(--primary-red);
}

/* Pagination */
.pagination-container {
    margin: 50px 0;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 10px;
}

.page-link {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--text-dark);
    border: 2px solid #e9ecef;
    font-weight: 600;
    transition: var(--transition);
}

.page-link:hover, .page-link.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(215, 25, 32, 0.2);
}

.page-link.prev, .page-link.next {
    width: auto;
    padding: 0 20px;
}

/* Trending Searches */
.trending-searches {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-top: 50px;
}

.trending-title {
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trending-tag {
    background: white;
    border: 1px solid #e9ecef;
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 30px;
    transition: var(--transition);
    font-size: 14px;
}

.trending-tag:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(215, 25, 32, 0.2);
}

/* Category Page Title */
.category-title {
    font-size: 36px;
    color: var(--text-dark);
    padding-bottom: 10px;
    margin-bottom: 30px;
    position: relative;
    border-bottom: 3px solid #eee;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 150px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-red), var(--dark-red));
}

/* Category Badge */
.category-badge {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(215, 25, 32, 0.2);
}

/* Post Cards */
.post-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: #fff;
    margin-bottom: 30px;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-dark);
}

.post-title a:hover {
    color: var(--primary-red);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.meta-item i {
    margin-right: 5px;
    color: var(--primary-red);
}

.read-more {
    color: var(--primary-red);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--dark-red);
    transform: translateX(5px);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    padding: 40px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(215, 25, 32, 0.2);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(215, 25, 32, 0.3);
    color: white;
}

.load-more-btn i {
    margin-left: 8px;
    transition: var(--transition);
}

.load-more-btn:hover i {
    transform: translateX(5px);
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    margin-bottom: 30px;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    padding: 15px 20px;
    font-size: 18px;
}

.sidebar-content {
    padding: 20px;
}

/* Tags Section */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 15px;
    background: #f8f9fa;
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid #eee;
}

.tag:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(215, 25, 32, 0.2);
}

/* Category List with Submenus */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
    position: relative;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 5px;
    background: #f8f9fa;
    transition: var(--transition);
    color: var(--text-dark);
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.category-item:hover {
    background: rgba(215, 25, 32, 0.08);
    color: var(--primary-red);
    transform: translateX(5px);
}

.category-item .category-text {
    display: flex;
    align-items: center;
}

.category-item .category-text i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.category-item .category-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-item .count {
    background: var(--primary-red);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    min-width: 30px;
    text-align: center;
}

.category-arrow {
    color: var(--text-light);
    font-size: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 16px;
    text-align: center;
}

.category-item.active .category-arrow {
    transform: rotate(180deg);
    color: var(--primary-red);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fff;
    border-radius: 5px;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.submenu.active {
    max-height: 300px;
    padding: 10px 0;
}

.submenu li {
    margin: 0;
}

.submenu a {
    display: block;
    padding: 8px 15px 8px 30px;
    color: var(--text-light);
    font-size: 13px;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.submenu a:hover {
    color: var(--primary-red);
    background: rgba(215, 25, 32, 0.05);
}

.submenu a::before {
    content: '•';
    position: absolute;
    left: 15px;
    color: var(--primary-red);
    font-size: 12px;
}

.simple-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 5px;
    background: #f8f9fa;
    transition: var(--transition);
    color: var(--text-dark);
    text-decoration: none;
}

.simple-category:hover {
    background: rgba(215, 25, 32, 0.08);
    color: var(--primary-red);
    transform: translateX(5px);
}

.simple-category .category-text {
    display: flex;
    align-items: center;
}

.simple-category .category-text i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.simple-category .count {
    background: var(--primary-red);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    min-width: 30px;
    text-align: center;
}

/* Trending Posts with Images */
.trending-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.trending-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.trending-post:hover {
    transform: translateX(5px);
}

.trending-number {
    background: var(--primary-red);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.trending-image {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
    transition: var(--transition);
}

.trending-post:hover .trending-image {
    transform: scale(1.05);
}

.trending-content {
    flex: 1;
}

.trending-content h6 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.trending-content h6 a {
    color: var(--text-dark);
}

.trending-content h6 a:hover {
    color: var(--primary-red);
}

.trending-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

/* Featured Post in Sidebar */
.featured-sidebar {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.featured-sidebar img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.featured-sidebar:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 15px;
    color: white;
}

.featured-overlay h5 {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.featured-overlay h5 a {
    color: white;
}

.featured-overlay h5 a:hover {
    color: #ffcccc;
}

/* Badges */
.badge-red {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    font-weight: 400;
    padding: 6px 12px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(215, 25, 32, 0.2);
    transition: var(--transition);
}

.badge-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(215, 25, 32, 0.3);
}

/* Breaking News */
.breaking {
    background: linear-gradient(90deg, var(--dark-red), var(--primary-red));
    color: #fff;
    padding: 12px 0;
    position: relative;
    overflow: hidden;
}

.breaking::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.breaking strong {
    font-size: 16px;
    margin-right: 10px;
}

.breaking i {
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Card Effects (for home page) */
.card-effect {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: #fff;
}

.card-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Images */
.post-img {
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 4px;
    overflow: hidden;
}

.hero-img {
    height: 420px;
    box-shadow: var(--shadow);
    border-radius: 6px;
}

.thumb-img {
    height: 90px;
    width: 120px;
    border-radius: 4px;
    object-fit: cover;
}

.grid-img {
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
}

/* Hybrid Design Post Images */
.hybrid-large-img {
    height: 280px;
    border-radius: 8px;
}

.hybrid-medium-img {
    height: 200px;
    border-radius: 6px;
}

.hybrid-small-img {
    height: 140px;
    border-radius: 4px;
}

/* Image Hover Effects */
.post-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.thumb-img:hover {
    transform: scale(1.05);
}

/* Fresh Stories List */
.list-unstyled li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.list-unstyled li:hover {
    padding-left: 10px;
    background-color: rgba(215, 25, 32, 0.03);
}

.list-unstyled li:last-child {
    border-bottom: none;
}

.list-unstyled a {
    position: relative;
    padding-left: 15px;
}

.list-unstyled a::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 10px;
    transition: var(--transition);
}

.list-unstyled a:hover::before {
    left: 5px;
}

/* Popular Section Items */
.d-flex.mb-3 {
    padding: 12px;
    border-radius: 6px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.d-flex.mb-3:hover {
    background-color: rgba(0,0,0,0.02);
    border-left: 3px solid var(--primary-red);
    transform: translateX(5px);
}

/* Small Text */
.small-text {
    font-size: 13px;
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: #aaa;
    padding: 40px 0 20px;
    border-top: 3px solid var(--primary-red);
}

footer h5 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
}

footer a {
    color: #aaa;
    transition: var(--transition);
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(215, 25, 32, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}

/* Hybrid Grid Layout */
.hybrid-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.hybrid-item-1 {
    grid-column: span 6;
    grid-row: span 2;
}

.hybrid-item-2 {
    grid-column: span 3;
}

.hybrid-item-3 {
    grid-column: span 3;
    grid-row: span 2;
}

.hybrid-item-4 {
    grid-column: span 4;
}

.hybrid-item-5 {
    grid-column: span 4;
}

.hybrid-item-6 {
    grid-column: span 4;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo {
        font-size: 42px;
    }
    
    .search-header h1 {
        font-size: 32px;
    }
    
    .search-form .form-control {
        padding: 15px 20px;
    }
    
    .search-form .btn-search {
        padding: 15px 25px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .sort-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-image {
        height: 180px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .sidebar {
        margin-top: 40px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-thumbnail {
        height: 300px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .category-title {
        font-size: 28px;
    }
    
    .trending-image {
        width: 50px;
        height: 50px;
    }
    
    .category-item, .simple-category {
        padding: 10px 12px;
    }
    
    .hero-img {
        height: 300px;
    }
    
    .hybrid-large-img {
        height: 220px;
    }
    
    .hybrid-medium-img {
        height: 160px;
    }
    
    .hybrid-small-img {
        height: 120px;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .social-share {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .hybrid-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .hybrid-item-1, .hybrid-item-3 {
        grid-column: span 6;
    }
    
    .hybrid-item-2, .hybrid-item-4, .hybrid-item-5, .hybrid-item-6 {
        grid-column: span 3;
    }
}

@media (max-width: 576px) {
    .hybrid-grid {
        grid-template-columns: 1fr;
    }
    
    .hybrid-item-1, .hybrid-item-2, .hybrid-item-3, 
    .hybrid-item-4, .hybrid-item-5, .hybrid-item-6 {
        grid-column: span 1;
    }
}
.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

/* Social Icons in Sidebar */
.social-sidebar .social-icons {
    gap: 10px;
    margin-bottom: 15px;
}

.social-sidebar .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-sidebar .social-icon:hover {
    transform: translateY(-3px);
}

.social-sidebar .social-icon.facebook { background-color: #3b5998; }
.social-sidebar .social-icon.twitter { background-color: #1da1f2; }
.social-sidebar .social-icon.instagram { 
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}
.social-sidebar .social-icon.linkedin { background-color: #0077b5; }
.social-sidebar .social-icon.youtube { background-color: #ff0000; }
.social-sidebar .social-icon.rss { background-color: #ff6600; }

/* Social Stats */
.social-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-stat-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.social-stat-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.social-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
}

.social-stat-icon.facebook { background-color: #3b5998; }
.social-stat-icon.twitter { background-color: #1da1f2; }
.social-stat-icon.instagram { 
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}
.social-stat-icon.linkedin { background-color: #0077b5; }

.social-stat-info {
    flex: 1;
}

.social-stat-name {
    font-weight: 600;
    font-size: 14px;
}

.social-stat-count {
    font-size: 12px;
    color: #666;
}

.social-stat-arrow {
    color: #999;
}

/* Social Buttons */
.btn-social {
    flex: 1;
    margin: 0 5px;
    padding: 8px 12px;
    font-size: 14px;
}

.btn-social.facebook {
    background-color: #3b5998;
    color: white;
    border: none;
}

.btn-social.twitter {
    background-color: #1da1f2;
    color: white;
    border: none;
}

.btn-social:hover {
    opacity: 0.9;
}

/* Title Thumbnail Styles */
.title-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.title-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.title-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.title-thumbnail:hover img {
    transform: scale(1.02);
}

.thumbnail-caption {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    padding: 0 1rem;
}

/* Author Info Below Title */
.title-author-info {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.author-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-right: 12px;
}

.author-details-small {
    flex: 1;
}

.author-details-small h6 {
    font-weight: 600;
    margin-bottom: 2px;
}

.author-details-small p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.article-actions {
    display: flex;
    gap: 8px;
}

.article-actions .btn {
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 0.85rem;
}

.article-actions .btn:hover {
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .title-author-info {
        flex-wrap: wrap;
    }
    
    .article-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .title-thumbnail {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }
}