@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #E53935;
    color: white;
}

.btn-primary:hover {
    background-color: #C62828;
    transform: scale(1.02);
}

.btn-outline {
    border: 2px solid #E53935;
    color: #E53935;
    background: transparent;
}

.btn-outline:hover {
    background-color: #E53935;
    color: white;
}

html {
    scroll-behavior: smooth;
}

.loading {
    width: 40px;
    height: 40px;
    border: 4px solid #F4F6F8;
    border-top-color: #E53935;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F4F6F8;
}

::-webkit-scrollbar-thumb {
    background: #E53935;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C62828;
}

.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-overlay:hover::after {
    opacity: 1;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #E53935;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
}

.stats-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(229, 57, 53, 0.2);
}

.stats-card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background-color: rgba(229, 57, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E53935;
    font-size: 28px;
}

.stats-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #E53935;
    margin-bottom: 0.5rem;
}

.stats-card p {
    color: #424242;
    font-size: 0.875rem;
}

.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-section .content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    animation: fadeInUp 1s ease-out 1s both;
}

.scroll-text {
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
}

.mouse-scroll {
    display: flex;
    justify-content: center;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
    animation: mouse-float 2s ease-in-out infinite;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel-scroll 2s ease-in-out infinite;
}

@keyframes mouse-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes wheel-scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        min-height: 500px;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-text {
        font-size: 0.75rem;
    }

    .mouse {
        width: 22px;
        height: 36px;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}