/* News Portal - American/European Style Design */
/* CSS3 + ES5 Compatible (IE8+) with polyfills */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #f8f9fa;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
}

/* IE8 box-sizing polyfill */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.news-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.news-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.news-logo span {
    color: #e94560;
}

/* Hero Section with Animation */
.news-hero {
    background: #fff;
    padding: 40px 0 30px;
    border-bottom: 1px solid #e8e8e8;
}

.news-hero-title {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
}

.news-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

.news-hero-subtitle {
    font-size: 18px;
    color: #555;
    max-width: 700px;
}

/* Featured Article */
.featured-article {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 40px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-article img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-article: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.85));
    padding: 40px 30px 30px;
    color: #fff;
}

.featured-tag {
    display: inline-block;
    background: #e94560;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-family: 'Arial', sans-serif;
}

.featured-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-meta {
    font-size: 14px;
    opacity: 0.8;
    font-family: 'Arial', sans-serif;
}

/* Ad Placement - Visible on PC & Mobile */
.news-ad-section {
    background: #f0f0f0;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    border-radius: 4px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-ad-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Arial', sans-serif;
}

.news-ad-content {
    width: 100%;
    min-height: 90px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    border: 1px dashed #ccc;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.news-card.animate-in {
    animation: cardFadeIn 0.5s ease forwards;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.news-card-image:hover {
    opacity: 0.9;
}

.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    font-size: 13px;
    color: #888;
    font-family: 'Arial', sans-serif;
}

.news-card-source {
    color: #e94560;
    font-weight: 600;
}

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

.news-tag {
    font-size: 11px;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
    color: #666;
    font-family: 'Arial', sans-serif;
}

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

.load-more-btn {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(26, 26, 46, 0.4);
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.news-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
    font-family: 'Arial', sans-serif;
}

.news-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.news-footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 1px;
}

.news-footer-section p,
.news-footer-section a {
    font-size: 14px;
    color: #aaa;
    line-height: 2;
    text-decoration: none;
    display: block;
}

.news-footer-section a:hover {
    color: #e94560;
}

.news-footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
}

.news-footer-copyright {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.news-footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.news-footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.news-footer-links a:hover {
    color: #e94560;
}

.news-contact-info {
    font-size: 14px;
    color: #aaa;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-hero h1 {
        font-size: 26px;
    }
    
    .news-hero-subtitle {
        font-size: 16px;
    }
    
    .featured-title {
        font-size: 22px;
    }
    
    .featured-article img {
        height: 280px;
    }
    
    .news-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-ad-section {
        padding: 15px;
        margin: 20px 0;
    }
    
    .load-more-btn {
        padding: 12px 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .news-container {
        padding: 0 15px;
    }
    
    .news-logo {
        font-size: 22px;
    }
    
    .news-hero {
        padding: 30px 0 20px;
    }
    
    .featured-overlay {
        padding: 25px 20px 20px;
    }
    
    .news-card-content {
        padding: 15px;
    }
}

/* IE8 Fallback */
.ie8 .news-grid {
    display: block;
}

.ie8 .news-card {
    display: inline-block;
    width: 30%;
    margin: 10px;
    vertical-align: top;
}

.ie8 .news-footer-grid {
    display: block;
}

.ie8 .news-footer-section {
    display: inline-block;
    width: 30%;
    margin: 10px;
    vertical-align: top;
}
