/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* Top Bar */
.top-bar {
    background: var(--dark-bg);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    margin-right: 15px;
}

.top-bar a:hover {
    color: white;
}

.social-links a {
    margin-right: 15px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-brand span {
    color: var(--accent-color);
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 15px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

/* Search Form */
.search-form {
    position: relative;
    max-width: 300px;
}

.search-form input {
    width: 100%;
    padding: 10px 20px;
    padding-right: 40px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 30px;
    transition: var(--transition);
}

.search-form input:focus {
    border-color: var(--accent-color);
    box-shadow: none;
    outline: none;
}

.search-form button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
}

/* Breaking News */
.breaking-news {
    background: var(--primary-color);
}

.breaking-swiper {
    height: 40px;
    overflow: hidden;
}

.breaking-swiper .swiper-slide {
    height: 40px;
    line-height: 40px;
}

/* Hero Section */
.hero-section img {
    border-radius: 10px;
}

/* Section Headers */
.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* Cards */
.card {
    transition: var(--transition);
    border: none;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-text {
    color: #666;
    font-size: 0.95rem;
}

/* Category Cards */
.category-card {
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card .card {
    border: none;
    background: white;
    transition: var(--transition);
}

.category-card:hover .card {
    background: var(--primary-color);
}

.category-card:hover .card-title,
.category-card:hover .fa-folder {
    color: white !important;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    padding: 60px 0;
}

.newsletter-form .form-control {
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    border-radius: 30px 0 0 30px;
}

.newsletter-form .btn {
    padding: 15px 30px;
    border-radius: 0 30px 30px 0;
    background: var(--accent-color);
    border: none;
}

.newsletter-form .btn:hover {
    background: #c0392b;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 50px 0 20px;
}

.footer a {
    color: rgba(255,255,255,0.8);
}

.footer a:hover {
    color: white;
}

.flink {
    background: rgba(255,255,255,0.05);
    padding: 30px 0;
    margin-bottom: 30px;
}

.flink_tit {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.f5 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.f5 li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.f5 li a:hover {
    color: white;
}

/* Footer Links */
.footer-links {
    background: var(--dark-bg);
    color: white;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-links .list-unstyled li {
    margin-bottom: 8px;
}

/* Category Articles */
.category-articles .card {
    margin-bottom: 20px;
}

.category-articles .card-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.category-articles .card-body {
    padding: 15px;
}

.category-articles h6 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.category-articles .text-muted {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin-top: 15px;
    }

    .nav-link {
        padding: 10px 0;
    }

    .nav-link::after {
        display: none;
    }

    .search-form {
        margin-top: 15px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section img {
        height: 300px !important;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 30px;
        margin: 5px 0;
    }

    .category-articles .col-md-6 {
        margin-bottom: 20px;
    }
    
    .footer-links .col-md-6 {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .top-bar {
        text-align: center;
    }

    .social-links,
    .top-bar-right {
        margin: 5px 0;
    }

    .breaking-news .badge {
        display: none;
    }
}

/* Pagination Styles */
.dede_pages {
    margin: 30px 0;
    text-align: center;
}

.pagelist {
    display: inline-block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagelist a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.pagelist a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagelist a.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
} 