/* Modern Cards and Jumbo for NoDuermas Horror Blog */

:root {
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Section Titles */
.section-title {
    border-left: 4px solid var(--accent-red);
    padding-left: 1rem;
    margin-bottom: 2rem !important;
}

.section-title h2,
.section-title h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

/* Jumbo / Featured Block */
.main-carousel .position-relative {
    border-radius: 12px;
    overflow: hidden;
}

.overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.overlay:hover {
    background: linear-gradient(0deg, rgba(139, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
}

.overlay a.h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Secondary Jumbo Items */
.jumbo-small-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 5px;
}

.jumbo-small-item .overlay {
    padding: 1.2rem;
}

.jumbo-small-item .overlay a.h6 {
    font-size: 1rem;
    line-height: 1.4;
}

/* Regular Article Cards (Large) */
.news-lg {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    margin-bottom: 2rem !important;
}

.news-lg:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 0, 0, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.news-lg img {
    transition: var(--transition-smooth);
}

.news-lg:hover img {
    transform: scale(1.05);
}

.news-lg .p-4 {
    padding: 2.5rem !important;
}

/* Regular Article Cards (Grid) */
.news-grid-item {
    transition: var(--transition-smooth);
    margin-bottom: 2.5rem;
}

.news-grid-item .img-container {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    position: relative;
}

.news-grid-item img {
    transition: var(--transition-smooth);
    width: 100%;
    height: auto;
}

.news-grid-item:hover {
    transform: translateY(-5px);
}

.news-grid-item:hover img {
    transform: scale(1.08);
}

.news-grid-item a.h4 {
    color: #fff !important;
    font-size: 1.25rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.news-grid-item:hover a.h4 {
    color: var(--accent-red) !important;
}

.news-grid-item small {
    color: var(--accent-red);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

/* Miscellaneous UI Tweaks */
hr {
    border-color: rgba(255, 255, 255, 0.05) !important;
    margin: 2rem 0;
}

p {
    color: #aaa;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Trending / Sidebar Items */
.trending-item {
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1rem !important;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-img {
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-item a.h6 {
    color: #fff !important;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.trending-item:hover a.h6 {
    color: var(--accent-red) !important;
}

/* Utilities */
.opacity-50 {
    opacity: 0.5;
}

.hover-opacity-100:hover {
    opacity: 1;
}

.bg-dark-soft {
    background-color: rgba(255, 255, 255, 0.02);
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.footer-links a {
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.footer-links a:hover {
    color: #fff !important;
}

@media (max-width: 768px) {
    .overlay a.h2 {
        font-size: 1.8rem;
    }

    .news-lg .p-4 {
        padding: 1.5rem !important;
    }
}