/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
    --text-color: #333;
    --text-light: #7f8c8d;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #c0392b;
    color: white;
}

/* Header Styles */
.top-bar {
    background-color: var(--dark-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: white;
    margin-left: 15px;
    font-size: 16px;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.main-header {
    padding: 20px 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    color: var(--gray-color);
}

.ad-space {
    width: 300px;
    height: 100px;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
}

/* Navigation */
.main-nav {
    background-color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li a {
    color: white;
    padding: 15px 20px;
    display: block;
    font-weight: 500;
}

.main-nav li a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu {
    display: none;
    background-color: var(--dark-color);
    padding: 15px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li a {
    color: white;
    padding: 10px 0;
    display: block;
}

.mobile-menu li a:hover {
    color: var(--secondary-color);
}

/* Breaking News */
.breaking-news {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 0;
}

.breaking-label {
    font-weight: bold;
    margin-right: 15px;
}

.ticker {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.ticker a {
    color: white;
    margin-right: 30px;
    position: relative;
}

.ticker a:after {
    content: "•";
    position: absolute;
    right: -18px;
}

.ticker a:last-child:after {
    display: none;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Featured Post */
.featured-post {
    padding: 40px 0;
    background-color: #f1f1f1;
}

.featured-post .container {
    display: flex;
    gap: 30px;
    align-items: center;
}

.featured-content {
    flex: 1;
}

.featured-image {
    flex: 1;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.featured-image img {
    transition: transform 0.3s ease;
}

.featured-image:hover img {
    transform: scale(1.03);
}

.category-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
}

.featured-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-content h2 a {
    color: var(--dark-color);
}

.featured-content h2 a:hover {
    color: var(--secondary-color);
}

.excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
}

.meta {
    font-size: 14px;
    color: var(--gray-color);
}

.meta .time {
    margin-right: 15px;
}

/* News Grid */
.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    font-family: var(--font-heading);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card-content h3 a {
    color: var(--dark-color);
}

.card-content h3 a:hover {
    color: var(--secondary-color);
}

/* Popular News */
.popular-news {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.popular-card {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.popular-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
}

.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.popular-content h3 a {
    color: var(--dark-color);
}

.popular-content h3 a:hover {
    color: var(--secondary-color);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
}

.tab.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.category-post {
    margin-bottom: 30px;
}

.category-post .post-image {
    height: 180px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.category-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-post:hover .post-image img {
    transform: scale(1.05);
}

.category-post h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.view-all {
    display: inline-block;
    margin-top: 20px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Newsletter */
.newsletter {
    padding: 40px 0;
    background-color: var(--primary-color);
    color: white;
}

.newsletter .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    width: 100%;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #c0392b;
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col p {
    margin-bottom: 15px;
    color: #bdc3c7;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col li a {
    color: #bdc3c7;
}

.footer-col li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    background-color: #1a252f;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #bdc3c7;
    margin-bottom: 10px;
}

.footer-bottom ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.footer-bottom li {
    margin: 0 10px;
}

.footer-bottom li a {
    color: #bdc3c7;
    font-size: 14px;
}

.footer-bottom li a:hover {
    color: var(--secondary-color);
}

/* Post News Page */
.post-news {
    padding: 40px 0;
}

.post-news h1 {
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 16px;
}

.form-group textarea {
    min-height: 150px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.help-text {
    font-size: 13px;
    color: var(--gray-color);
    margin-top: 5px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Category Page */
.category-page {
    padding: 40px 0;
}

.category-header {
    margin-bottom: 40px;
    text-align: center;
}

.category-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.category-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.category-layout {
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 2;
}

.sidebar {
    flex: 1;
}

.category-post {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.category-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-post .post-image {
    width: 250px;
    height: 180px;
    border-radius: 5px;
    overflow: hidden;
}

.category-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-post:hover .post-image img {
    transform: scale(1.05);
}

.category-post .post-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.sidebar-widget {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    font-family: var(--font-heading);
}

.popular-list .popular-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.popular-list .popular-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-list h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list li a {
    display: block;
    padding: 8px 0;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
}

.category-list li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.ad-widget {
    text-align: center;
    padding: 30px;
}

.placeholder-ad {
    background-color: #f1f1f1;
    padding: 20px;
    color: var(--gray-color);
    border-radius: 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-post .container {
        flex-direction: column;
    }
    
    .featured-content {
        margin-bottom: 30px;
    }
    
    .newsletter .container {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-content {
        margin-bottom: 20px;
    }
    
    .category-layout {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .category-post {
        flex-direction: column;
    }
    
    .category-post .post-image {
        width: 100%;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        margin-top: 10px;
    }
    
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    .featured-content h2 {
        font-size: 24px;
    }
}

#live-clock {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 1; }
    100% { opacity: 0.8; }
}

.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.post-header {
    margin-bottom: 30px;
}

.post-header h1 {
    font-size: 2.5rem;
    margin: 15px 0;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
}

.post-meta .views {
    margin-left: 15px;
}

.post-image {
    margin: 30px 0;
}

.post-image img {
    width: 100%;
    border-radius: 8px;
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

.related-posts {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.error-page {
    text-align: center;
    padding: 100px 20px;
}

.error-page h1 {
    font-size: 5rem;
    color: #e74c3c;
}

