/* Homepage-specific styles */

/* Hero Section */ 
.hero {
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d95d39 0%, #c14d2d 50%, #a73e1f 100%);
    overflow: hidden;
    margin-bottom: 5rem;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
        pointer-events: none;
    }

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.06;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 3rem 2rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-family: var(--heading-font);
    font-size: 4.5rem;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dark mode hero adjustments */
body.dark-mode .hero {
    background: linear-gradient(135deg, #8b3a1f 0%, #6d2e18 50%, #4f2212 100%);
}

/* Container */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Titles */
.section-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    text-align: center;
    margin: 0 0 3rem 0;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, var(--accent-primary), #f0a07c);
        border-radius: 2px;
    }

/* Featured Categories */
.featured-categories {
    margin-bottom: 5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--bg-header);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .category-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--accent-primary), #f0a07c);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 32px rgba(217, 93, 57, 0.15);
        border-color: var(--accent-primary);
    }

        .category-card:hover::before {
            transform: scaleX(1);
        }

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.category-card h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
}

.category-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Featured Articles */
.featured-articles {
    margin-bottom: 5rem;
    background: linear-gradient(180deg, transparent 0%, var(--accent-light) 100%);
    padding: 4rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.featured-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    height: 400px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .featured-card.large {
        grid-row: span 2;
        height: 816px;
    }

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

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    transition: background 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

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

    .featured-card:hover .featured-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    }

.featured-tag {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.featured-title {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin: 0 0 0.75rem 0;
    color: white;
}

.featured-card.large .featured-title {
    font-size: 2.5rem;
}

.featured-excerpt {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* All Articles Section */
.all-articles {
    margin-bottom: 5rem;
}

    .all-articles .card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2.5rem;
        margin-top: 3rem;
    }

    .all-articles .card {
        display: flex;
        flex-direction: column;
        background: var(--bg-header);
        border-radius: 16px;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        transition: all 0.3s ease;
        border: 1px solid var(--border-color);
        height: 100%;
    }

        .all-articles .card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
            border-color: var(--accent-primary);
        }

body.dark-mode .all-articles .card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.all-articles .card-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
    margin: 0;
    border-radius: 0;
}

.all-articles .card:hover .card-thumb {
    transform: scale(1.08);
}

.all-articles .card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.all-articles .card-title {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: var(--accent-primary);
    line-height: 1.4;
}

.all-articles .card-desc {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 35vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .featured-card.large {
        grid-row: span 1;
        height: 400px;
    }

        .featured-card.large .featured-title {
            font-size: 1.8rem;
        }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: 35vh;
        margin-bottom: 3rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .container-wide {
        padding: 0 1rem;
    }

    .featured-categories,
    .featured-articles,
    .all-articles {
        margin-bottom: 3rem;
    }

    .featured-articles {
        padding: 2rem 0;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .category-card {
        padding: 2rem 1.5rem;
    }

    .category-icon {
        font-size: 2.5rem;
    }

    .featured-card {
        height: 350px;
    }

    .featured-overlay {
        padding: 1.5rem;
    }

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

    .featured-excerpt {
        font-size: 0.95rem;
    }

    .all-articles .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .all-articles .card-thumb {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

    .section-title {
        font-size: 1.75rem;
    }

    .category-card h3 {
        font-size: 1.2rem;
    }

    .all-articles .card-title {
        font-size: 1.1rem;
    }
}
