/* ── News Card Styles ───────────────────────────── */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.news-card__image-container {
    height: 500px !important;
    background-color: #f8f9fa;
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
    will-change: transform;
}

.news-card:hover .news-card__image {
    transform: scale(1.05);
}

.news-card__placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.news-card__title {
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__title a {
    transition: color 0.2s ease;
}

.news-card:hover .news-card__title a {
    color: #d52b1e !important;
}

.news-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__date,
.news-card__meta {
    font-size: 0.85rem;
}

.news-badge {
    font-size: 0.7rem;
    border-radius: 3px;
    padding: 0.25em 0.6em;
    font-weight: 500;
}

/* ── Read More Button ───────────────────────────── */
.btn-read-more {
    background-color: #e8e9ea;
    color: #495057;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-read-more:hover {
    background-color: #d52b1e;
    color: #ffffff;
    border-color: #d52b1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(213, 43, 30, 0.2);
}

.btn-read-more:focus-visible {
    outline: 2px solid #d52b1e;
    outline-offset: 2px;
    background-color: #d52b1e;
    color: #ffffff;
}

.btn-read-more:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(213, 43, 30, 0.2);
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(4px);
}

a.topic {
    text-decoration: none !important;
}

/* Focus styles for accessibility */
.news-card a:focus-visible {
    outline: 2px solid #d52b1e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Hero Section ───────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(213, 43, 30, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(213, 43, 30, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.logo-badge {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    padding: 5px;
    transition: all 0.3s ease;
}

.logo-badge:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.15),
        0 0 0 4px rgba(213, 43, 30, 0.2);
}

.logo-image {
    width: 200%;
    height: 150%;
    object-fit: contain;
}

.site-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
    line-height: 1;
}

.site-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.hero-bottom-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        #d52b1e 20%,
        #d52b1e 80%,
        transparent 100%);
}

/* ── Button Shine Effect ────────────────────────── */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    transition: left 0.5s ease;
}

.btn:hover .btn-shine {
    left: 100%;
}

/* ── Hover Lift Animation ───────────────────────── */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(213, 43, 30, 0.3) !important;
}

.hover-lift:active {
    transform: translateY(-4px);
}

.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(220, 53, 69, 0.2) !important;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 575.98px) {
    .news-card__image-container {
        height: 180px;
        aspect-ratio: 4 / 3;
    }

    .news-card__image {
        object-position: center 20%;
    }

    .news-card__title {
        font-size: 1rem;
    }

    .news-card__excerpt {
        font-size: 0.85rem;
    }

    .btn-read-more {
        font-size: 0.85rem;
        padding: 0.45rem 0.9rem;
    }

    .hero-section {
        border-radius: 12px;
    }

    .logo-badge {
        width: 75px;
        height: 75px;
    }

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

    .site-subtitle {
        font-size: 0.8rem;
    }

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

    .btn-lg {
        padding: 0.75rem 2rem !important;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .news-card__image-container {
        aspect-ratio: 4 / 3;
    }

    .news-card__image {
        object-position: center 20%;
    }
}

@media (min-width: 992px) {
    .news-card__image-container {
        height: 220px;
    }
}

@media (max-width: 991.98px) {
    .logo-badge {
        width: 90px;
        height: 90px;
    }

    .site-title {
        font-size: 2rem;
    }

    .site-subtitle {
        font-size: 0.85rem;
    }

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

    .lead {
        font-size: 1rem;
    }
}

/* ── Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .news-card,
    .news-card__image,
    .btn-read-more,
    .btn-read-more i,
    .hover-lift,
    .btn-shine,
    .logo-badge {
        transition: none;
    }

    .news-card:hover {
        transform: none;
    }

    .news-card:hover .news-card__image {
        transform: none;
    }

    .btn-read-more:hover {
        transform: none;
    }

    .btn-read-more:hover i {
        transform: none;
    }

    .hover-lift:hover,
    .logo-badge:hover {
        transform: none;
    }

    .btn:hover .btn-shine {
        left: -100%;
    }
}
