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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
.header {
    background: white;
    color: #333;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 101;
    border-bottom: 1px solid #e9ecef;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-family: 'Great Vibes', 'Dancing Script', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: none;
    letter-spacing: 1px;
    color: #2c3e50;
    font-style: normal;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.logo i {
    color: #667eea;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    width: 300px;
    font-size: 1rem;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    color: #999;
}

/* Navigation Menu */
.main-nav {
    background: #667eea;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 76px;
    z-index: 100;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    background: none;
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    min-width: fit-content;
    border-bottom: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    border-bottom-color: rgba(255,255,255,0.5);
}

.nav-item.active {
    background: rgba(255,255,255,0.15);
    border-bottom-color: white;
    color: white;
    font-weight: 600;
}

.nav-item i {
    font-size: 1rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .main-nav {
        top: 120px;
    }
    
    .nav-menu {
        justify-content: flex-start;
        gap: 0;
    }
    
    .nav-item {
        padding: 1rem 1rem;
        font-size: 0.85rem;
        min-width: 120px;
        text-align: center;
    }
    
    .nav-item i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-item {
        padding: 0.75rem 0.75rem;
        font-size: 0.8rem;
        min-width: 100px;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .nav-item i {
        font-size: 1.2rem;
    }
}

/* Category Badge */
.category-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Hero Section */
.hero {
    background: white;
    color: #333;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.hero-content h2 {
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.hero-content p {
    font-family: 'Kalam', 'Comic Sans MS', cursive;
    font-size: 1.3rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #34495e;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ff6b6b;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Articles Section */
.featured-articles {
    padding: 4rem 0;
    background: #f8f9fa;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.featured-grid .article-card {
    border: 2px solid #667eea;
    position: relative;
}

.featured-grid .article-card::before {
    content: '⭐';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    z-index: 2;
}

/* Categories Overview Section */
.categories-overview {
    padding: 4rem 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.category-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-count {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.newsletter-note {
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Featured Article Hero Section */
.featured-hero {
    padding: 0;
    background: white;
}

.featured-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    min-height: 400px;
}

.featured-hero-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.featured-hero-text {
    padding: 3rem;
    background: white;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-hero-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.featured-category-tag {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-hero-title:hover {
    color: #667eea;
}

.featured-hero-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-hero-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.featured-hero-link:hover {
    color: #c82333;
}

.featured-hero-link i {
    transition: transform 0.3s ease;
}

.featured-hero-link:hover i {
    transform: translateX(5px);
}

/* Articles Section */
.articles {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title i {
    color: #667eea;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.loading i {
    margin-right: 0.5rem;
    color: #667eea;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.article-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

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

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

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.3;
}

.article-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #999;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

/* Article Detail Page */
.article-page {
    background: white;
    min-height: 100vh;
}

.article-header {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.back-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.back-button:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.article-detail {
    padding: 3rem 0;
}

.article-detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-detail-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-detail-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #666;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.article-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-detail-image {
    text-align: center;
    margin-bottom: 3rem;
}

.article-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-detail-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-detail-content h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.article-detail-content h4 {
    color: #555;
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 500;
}

.article-detail-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-detail-content ul,
.article-detail-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-detail-content li {
    margin-bottom: 0.5rem;
}

.article-actions {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Great Vibes', 'Dancing Script', cursive;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 1px;
    color: #ecf0f1;
    font-size: 1.8rem;
}

.footer-section h3 i {
    color: #ff6b6b;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section ul li a:hover {
    color: #ecf0f1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        text-align: center;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .featured-grid,
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-hero-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .featured-hero-image {
        height: 250px;
    }
    
    .featured-hero-text {
        height: auto;
        padding: 2rem;
    }
    
    .featured-hero-title {
        font-size: 1.5rem;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .article-detail-title {
        font-size: 2rem;
    }
    
    .article-detail-meta {
        gap: 1rem;
    }
    
    .article-detail-content {
        font-size: 1rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .featured-articles,
    .categories-overview,
    .newsletter,
    .articles {
        padding: 2rem 0;
    }
    
    .article-card {
        margin: 0 10px;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .article-detail {
        padding: 2rem 0;
    }
    
    .article-detail-title {
        font-size: 1.75rem;
    }
}

/* Pagination Styles */
.pagination-container {
    margin-top: 3rem;
    text-align: center;
}

.pagination-info {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #667eea;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-btn:disabled {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.pagination-number {
    background: white;
    border: 2px solid #e9ecef;
    color: #667eea;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-number:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-ellipsis {
    color: #adb5bd;
    padding: 0.75rem 0.5rem;
    font-weight: bold;
    user-select: none;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .pagination-number {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        min-width: 40px;
    }
    
    .pagination-container {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-numbers {
        order: -1;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
        max-width: 200px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
} 