/* --- Widget Container --- */
.widget {
    margin-bottom: 3rem;
}

.widget-title {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* --- Slide 1 (Full Slider) & Slide 2 (Carousel) --- */
.fn-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.fn-slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.fn-slide-item {
    min-width: 100%;
    /* Slide 1 default */
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    color: #fff;
    flex-shrink: 0;
}

.fn-slider.slide-2 .fn-slide-item {
    min-width: 50%;
    /* Slide 2 Carousel */
    height: 300px;
    border-right: 2px solid #fff;
}

.fn-slide-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    width: 100%;
    padding: 2rem;
}

.fn-slide-content h3 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.fn-slide-content a {
    color: #fff;
    text-decoration: none;
}

.fn-slider-prev,
.fn-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 2;
}

.fn-slider-prev {
    left: 0;
}

.fn-slider-next {
    right: 0;
}

/* --- Hero 1 (1 Big + 2 Small) --- */
.fn-hero-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.hero-card.big {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.hero-card.big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    color: white;
}

.hero-overlay a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-card.small {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.hero-card.small .small-thumb img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.hero-card.small h4 {
    margin: 0;
    font-size: 1rem;
}

.hero-card.small h4 a {
    color: var(--color-text);
    text-decoration: none;
}

/* --- Hero 2 (Overlay Grid) --- */
.fn-hero-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.hero-overlay-card {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
}

.hero-overlay-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hero-overlay-card:hover img {
    transform: scale(1.05);
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, black, transparent);
}

.overlay-content a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}

/* --- Lists (1, 2, 3, 4) --- */
.firenews-grid {
    display: grid;
    gap: 1.5rem;
}

/* List 1: Grid (Like Index) */
.firenews-grid.list-1 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.fn-card.list-1 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.fn-card.list-1 h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.fn-card.list-1 a {
    color: var(--color-text);
    text-decoration: none;
}

/* List 2: Horizontal (Thumb Left) */
.firenews-grid.list-2 {
    grid-template-columns: 1fr;
}

.fn-card.list-2 {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.fn-card.list-2 img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.fn-card.list-2 h3 {
    margin: 0;
    font-size: 1.1rem;
}

.fn-card.list-2 a {
    color: var(--color-text);
    text-decoration: none;
}

/* List 3: Compact Text */
.firenews-grid.list-3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    border: 1px solid #eee;
    padding: 1rem;
}

.fn-card.list-3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.fn-card.list-3:last-child {
    border: none;
    padding: 0;
    margin: 0;
}

.fn-card.list-3 h3 {
    font-size: 1rem;
    margin: 0;
}

.fn-card.list-3 a {
    color: var(--color-text);
    text-decoration: none;
}

.fn-card.list-3 a:before {
    content: "• ";
    color: var(--color-primary);
}

/* List 4: Numbered Trending */
.firenews-grid.list-4 {
    counter-reset: posts;
}

.fn-card.list-4 {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
}

.fn-card.list-4 .counter::before {
    counter-increment: posts;
    content: counter(posts);
    font-size: 2.5rem;
    font-weight: 900;
    color: #eee;
    line-height: 1;
}

.fn-card.list-4 .fn-card-img img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.fn-card.list-4 h3 {
    margin: 0;
    font-size: 1.1rem;
}

.fn-card.list-4 a {
    color: var(--color-text);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .fn-slider.slide-2 .fn-slide-item {
        min-width: 100%;
    }

    .fn-hero-1 {
        grid-template-columns: 1fr;
    }

    .hero-card.big {
        height: 250px;
    }
}