/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
}

/* Header Styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.header-top {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.ad-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 500;
}

/* Navigation */
.main-nav {
    background-color: #2c3e50 !important;
    padding: 0;
}

.main-nav .navbar-nav .nav-link {
    color: #ecf0f1;
    font-weight: 500;
    padding: 15px 20px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
    color: #3498db;
    background-color: rgba(255,255,255,0.1);
}

.main-nav .dropdown-menu {
    background-color: #34495e;
    border: none;
    border-radius: 0;
}

.main-nav .dropdown-item {
    color: #ecf0f1;
    padding: 10px 20px;
}

.main-nav .dropdown-item:hover {
    background-color: #3498db;
    color: white;
}

.main-nav .form-control {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.main-nav .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Slider */
.news-slider {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.swiper-slide {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
}

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

.slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.slide-description {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.slide-category {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.slide-category:hover {
    background-color: #2980b9;
    color: white;
    transform: translateY(-2px);
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
}

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

.news-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.news-category {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
}

.news-category:hover {
    text-decoration: underline;
}

.news-date {
    color: #999;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
}

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

.news-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-tags {
    margin-top: 15px;
}

.tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
    text-decoration: none;
}

.tag:hover {
    background-color: #3498db;
    color: white;
}

/* Sidebar */
.sidebar {
    padding-left: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
    color: #2c3e50;
    font-family: 'Poppins', sans-serif;
}

.popular-news-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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

.popular-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.popular-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-content h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.popular-content h4 a:hover {
    color: #3498db;
}

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

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #2c3e50;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.category-list a:hover {
    color: #3498db;
}

.category-count {
    background-color: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* News Detail */
.news-detail {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.news-detail-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
}

.news-detail-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.detail-category {
    background-color: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
}

.detail-date {
    color: #999;
    font-size: 0.95rem;
}

.news-detail-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.news-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-family: 'Poppins', sans-serif;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.news-detail-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.news-tags-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-widget h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-contact p {
    margin-bottom: 15px;
    color: #bdc3c7;
}

.footer-contact i {
    width: 20px;
    margin-right: 10px;
    color: #3498db;
}

.footer-bottom {
    background-color: #1a252f;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #34495e;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #666;
}

/* Pagination */
.pagination {
    margin-top: 40px;
}

.page-link {
    color: #3498db;
    border: 1px solid #dee2e6;
}

.page-link:hover {
    color: #2980b9;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: #3498db;
    border-color: #3498db;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .sidebar {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .news-detail-title {
        font-size: 1.8rem;
    }
    
    .news-detail-image {
        height: 350px;
    }
}

@media (max-width: 767.98px) {
    .header-top .col-md-8 {
        display: none;
    }
    
    .slide-title {
        font-size: 1.4rem;
    }
    
    .news-detail {
        padding: 25px;
    }
    
    .news-detail-title {
        font-size: 1.6rem;
    }
    
    .news-detail-image {
        height: 250px;
    }
    
    .news-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .swiper-slide {
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .logo img {
        max-height: 50px;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-detail-content {
        font-size: 1rem;
    }
    
    .swiper-slide {
        height: 250px;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ============================================
   HOME PAGE SPECIFIC STYLES
   ============================================ */

/* Section Titles */
.section-header {
    position: relative;
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 15px;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

.section-line {
    height: 1px;
    background: linear-gradient(to right, #3498db, transparent);
    margin-top: -15px;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.featured-card {
    position: relative;
}

.featured-card .news-content {
    position: relative;
    z-index: 2;
}

/* Swiper Customization */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #3498db;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.5);
}

/* Breaking News Ticker */
.breaking-news {
    background: #e74c3c;
    color: white;
    padding: 12px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

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

.breaking-news-label {
    background: #c0392b;
    padding: 5px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    margin-right: 20px;
}

.breaking-news-content {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.breaking-news-ticker {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

.breaking-news-ticker a {
    color: white;
    text-decoration: none;
    margin-right: 40px;
    font-weight: 500;
}

.breaking-news-ticker a:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Category Cards */
.category-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.category-card:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.category-card:nth-child(6) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.category-card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-card .count {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    display: inline-block;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.category-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover:before {
    opacity: 1;
}

/* Video Section */
.video-section {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
    padding: 60px 0;
    border-radius: 15px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.video-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23000000" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.video-container {
    position: relative;
    z-index: 1;
}

.video-placeholder {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.video-placeholder i {
    font-size: 4rem;
    color: white;
    transition: all 0.3s ease;
}

.video-placeholder:hover i {
    color: #3498db;
    transform: scale(1.1);
}

.video-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.video-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 60px 0;
    border-radius: 15px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(-50px, -50px) rotate(360deg);
    }
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-form .input-group {
    max-width: 500px;
}

.newsletter-form .form-control {
    padding: 15px 20px;
    border: none;
    border-radius: 8px 0 0 8px;
}

.newsletter-form .btn {
    padding: 15px 30px;
    border-radius: 0 8px 8px 0;
    background: #e74c3c;
    border: none;
    font-weight: 600;
}

.newsletter-form .btn:hover {
    background: #c0392b;
}

.newsletter-privacy {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 15px;
}

/* Trending Tags */
.trending-tags {
    margin: 40px 0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag-cloud a {
    padding: 8px 20px;
    background: #f8f9fa;
    color: #495057;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.tag-cloud a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    border-color: #3498db;
}

.tag-cloud a.tag-size-1 { font-size: 1rem; }
.tag-cloud a.tag-size-2 { font-size: 1.1rem; }
.tag-cloud a.tag-size-3 { font-size: 1.2rem; }
.tag-cloud a.tag-size-4 { font-size: 1.3rem; }
.tag-cloud a.tag-size-5 { font-size: 1.4rem; }

/* Responsive Homepage */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .video-title {
        font-size: 1.6rem;
    }
    
    .newsletter-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.4rem;
    }
    
    .breaking-news-label {
        display: block;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .video-placeholder {
        height: 250px;
        margin-bottom: 30px;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        border-radius: 8px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .newsletter-form .btn {
        border-radius: 8px;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.3rem;
    }
    
    .category-card {
        height: 120px;
        margin-bottom: 15px;
    }
    
    .category-card h3 {
        font-size: 1rem;
    }
    
    .tag-cloud {
        gap: 8px;
    }
    
    .tag-cloud a {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* ============================================
   HEADER SPECIFIC STYLES
   ============================================ */

/* Main Header */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.logo img {
    max-height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

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

/* Breaking News */
.breaking-news {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 10px 0;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.breaking-news: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: shimmer 3s infinite;
}

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

.breaking-news-label {
    background: rgba(0,0,0,0.2);
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
}

.breaking-news-content {
    overflow: hidden;
    position: relative;
}

.breaking-news-ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 40s linear infinite;
}

.breaking-news-ticker a {
    color: white;
    text-decoration: none;
    margin-right: 40px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breaking-news-ticker a:hover {
    color: #f1c40f;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Main Navigation */
.main-nav {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    padding: 0;
    border-radius: 0 0 8px 8px;
}

.main-nav .navbar-nav .nav-link {
    color: #ecf0f1;
    font-weight: 500;
    padding: 15px 20px;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
    color: #3498db;
    background-color: rgba(255,255,255,0.1);
}

.main-nav .navbar-nav .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background-color: #3498db;
    border-radius: 2px 2px 0 0;
}

/* Dropdown Menu */
.main-nav .dropdown-menu {
    background-color: #2c3e50;
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-top: 0;
    border-top: 3px solid #3498db;
}

.main-nav .dropdown-item {
    color: #ecf0f1;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.main-nav .dropdown-item:hover {
    background-color: #3498db;
    color: white;
    padding-left: 25px;
}

/* Search Form */
.search-form .input-group {
    max-width: 300px;
}

.search-form .form-control {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 4px 0 0 4px;
}

.search-form .form-control:focus {
    background-color: rgba(255,255,255,0.15);
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
    color: white;
}

.search-form .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-form .btn {
    border-radius: 0 4px 4px 0;
    background-color: #3498db;
    border-color: #3498db;
}

.search-form .btn:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Advertisement Placeholder */
.ad-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px dashed #a0aec0;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
    border-color: #38b2ac;
    color: #2c7a7b;
}

/* User Dropdown */
.btn-outline-light {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: white;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
    content: "›";
    font-size: 1.2rem;
    line-height: 1;
}

/* Main Content */
.main-content {
    padding-top: 20px;
    min-height: 60vh;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .header-top .col-md-8 {
        display: none;
    }
    
    .logo {
        text-align: center;
    }
    
    .logo img {
        max-height: 60px;
    }
    
    .breaking-news-label {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .breaking-news-ticker {
        animation: ticker 60s linear infinite;
    }
    
    .main-nav .navbar-nav {
        padding: 10px 0;
    }
    
    .main-nav .navbar-nav .nav-link {
        padding: 10px 15px;
    }
    
    .search-form {
        margin-top: 15px;
        width: 100%;
    }
    
    .search-form .input-group {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .header-top {
        padding: 15px 0;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    .breaking-news {
        font-size: 0.85rem;
    }
    
    .main-nav .navbar-nav .nav-link {
        padding: 8px 15px;
        font-size: 0.95rem;
    }
    
    .breadcrumb {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .logo img {
        max-height: 45px;
    }
    
    .breaking-news-label {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .breaking-news-ticker a {
        margin-right: 20px;
    }
    
    .main-nav .navbar-toggler {
        padding: 4px 8px;
        font-size: 0.9rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        font-size: 1rem;
    }
}

/* Animation for page loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Loading animation for images */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.ad-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    border-radius: 5px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.main-nav {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
    padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.search-form {
    max-width: 300px;
}

.search-form .input-group {
    border-radius: 25px;
    overflow: hidden;
}

.search-form input {
    border: none;
    padding-left: 20px;
}

.search-form button {
    border-radius: 0 25px 25px 0;
    padding: 0 20px;
}

/* Breaking News */
.breaking-news {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 8px 0;
    overflow: hidden;
}

.breaking-news-label {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.breaking-news-content {
    overflow: hidden;
}

.breaking-news-ticker {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.breaking-news-ticker a {
    color: white;
    text-decoration: none;
    padding: 0 20px;
    transition: color 0.3s;
}

.breaking-news-ticker a:hover {
    color: #ffdddd;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Slider */
.news-slider {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}

.swiper-slide {
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
}

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

.slide-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 600px;
}

.slide-category {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.slide-category:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.section-line {
    height: 3px;
    width: 80px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    border-radius: 3px;
    margin-top: 10px;
}

/* Category Cards */
.categories-section .row {
    margin: -10px;
}

.category-card {
    display: block;
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    height: 100%;
    border: 1px solid #eee;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.category-card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.category-card-content .count {
    font-size: 0.9rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 3px 10px;
    border-radius: 15px;
    display: inline-block;
}

.category-card.view-all {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
}

.category-card.view-all h3,
.category-card.view-all .count {
    color: white;
}

.category-card.view-all .count {
    background: rgba(255, 255, 255, 0.2);
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
}

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

.news-image-container {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.category-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

.news-author,
.news-date {
    display: flex;
    align-items: center;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

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

.news-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-read-more:hover {
    color: #2980b9;
}

.news-stats {
    display: flex;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Featured News Cards */
.featured-card {
    border: 2px solid #3498db;
}

.featured-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

/* Sidebar */
.sidebar-widget {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.widget-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.widget-content {
    padding: 20px;
}

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

.category-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.category-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    flex-grow: 1;
}

.category-list a:hover {
    color: #3498db;
}

.category-list .count {
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Popular News */
.popular-news-list {
    margin: 0;
    padding: 0;
}

.popular-news-item {
    padding: 0;
}

.popular-news-image {
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
}

.popular-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-news-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-news-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

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

.popular-news-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #dee2e6;
}

.tag:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-link.youtube {
    background: #ff0000;
}

.social-link:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Newsletter Sections */
.newsletter-section {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 40px 0;
    border-radius: 10px;
    margin-top: 50px;
}

.newsletter-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.newsletter-description {
    opacity: 0.9;
    font-size: 1.1rem;
}

.newsletter-form .input-group {
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form input {
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
    border-radius: 0 50px 50px 0;
    font-weight: 500;
}

.sidebar-widget.newsletter-widget {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
}

.newsletter-widget .widget-header {
    background: rgba(0, 0, 0, 0.2);
}

.newsletter-widget .widget-content {
    color: white;
}

.newsletter-widget input {
    border-radius: 5px 0 0 5px;
}

.newsletter-widget button {
    border-radius: 0 5px 5px 0;
}

/* Animation for cards */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .news-slider {
        height: 400px;
    }

    .slide-overlay {
        padding: 25px;
    }

    .slide-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .news-slider {
        height: 300px;
    }

    .slide-overlay {
        padding: 15px;
    }

    .slide-title {
        font-size: 1.4rem;
    }

    .slide-description {
        font-size: 0.95rem;
    }

    .breaking-news-label {
        display: none;
    }

    .logo img {
        max-height: 40px;
    }

    .search-form {
        margin-top: 15px;
        max-width: 100%;
    }

    .news-image-container {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-meta {
        flex-direction: column;
        gap: 5px;
    }

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