/* Magazine-style front page inspired by editorial news layouts */

.front-page-main {
    padding: 0;
}

.fp-news-bar {
    background: #0a1f3d;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fp-news-bar .fp-news-label {
    color: #fff;
    font-weight: 700;
    margin-right: 0.35rem;
}

.fp-news-bar .fp-news-text {
    color: rgba(255, 255, 255, 0.75);
}

.fp-hero-section {
    padding: 1.5rem 0 2rem;
    background: #fff;
}

.fp-block-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 0.25rem;
    overflow: hidden;
    background: #111;
    box-shadow: 0 4px 24px rgba(10, 31, 61, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.fp-block-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(10, 31, 61, 0.14);
    color: inherit;
}

.fp-block-card--video {
    cursor: default;
}

.fp-block-card--video:hover {
    transform: none;
    box-shadow: 0 4px 24px rgba(10, 31, 61, 0.08);
}

.fp-block-card--video .fp-block-body {
    position: static;
    background: #111;
}

.fp-block-card--trending.fp-block-card--video .fp-block-body {
    background: #fff;
}

.fp-block-story-link {
    color: inherit;
    text-decoration: none;
}

.fp-block-story-link:hover {
    color: inherit;
    text-decoration: underline;
}

.fp-block-card--trending.fp-block-card--video .fp-block-story-link {
    color: #212529;
}

.fp-block-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1a1a2e;
}

.fp-block-media img,
.fp-block-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fp-block-card--hero-main .fp-block-media {
    min-height: 420px;
    aspect-ratio: 4 / 3;
}

.fp-block-card--hero-side-top .fp-block-media {
    min-height: 200px;
    aspect-ratio: 16 / 9;
}

.fp-block-card--hero-side-small .fp-block-media {
    min-height: 180px;
    aspect-ratio: 4 / 3;
}

.fp-block-card--trending .fp-block-media {
    min-height: 160px;
    aspect-ratio: 16 / 10;
}

.fp-block-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 70%);
    pointer-events: none;
}

.fp-block-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.35rem;
    z-index: 2;
}

.fp-block-card--hero-main .fp-block-body {
    padding: 1.75rem 1.5rem;
}

.fp-category-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    color: #fff;
    margin-bottom: 0.65rem;
}

.fp-cat-beauty { background: #dc3545; }
.fp-cat-politics { background: #6f42c1; }
.fp-cat-technology { background: #fd7e14; }
.fp-cat-travel { background: #0d6efd; }
.fp-cat-design { background: #d63384; }
.fp-cat-fashion { background: #20c997; }
.fp-cat-news { background: #0a1f3d; }
.fp-cat-music { background: #b91c1c; }
.fp-cat-culture { background: #198754; }
.fp-cat-default { background: #495057; }

.fp-block-title {
    color: #fff;
    font-family: var(--font-display, "Playfair Display", serif);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

.fp-block-card--hero-main .fp-block-title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.fp-block-card--hero-side-top .fp-block-title,
.fp-block-card--hero-side-small .fp-block-title {
    font-size: 1rem;
}

.fp-block-card--trending .fp-block-title {
    font-size: 0.95rem;
}

.fp-block-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.78);
}

.fp-block-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.fp-video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.fp-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    pointer-events: auto;
}

.fp-video-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    min-height: 12rem;
    border: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 0.9rem;
}

.fp-video-locked i {
    font-size: 2rem;
}

.fp-video-controls {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    display: flex;
    gap: 0.35rem;
}

.fp-video-btn {
    border: none;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
}

.fp-video-btn:hover {
    background: rgba(185, 28, 28, 0.9);
}

/* Carousel / gallery slider */
.fp-carousel-section {
    padding: 2rem 0 2.5rem;
    background: #f8f6f2;
    border-top: 1px solid #e8e4dc;
}

.fp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.fp-section-title {
    font-family: var(--font-display, "Playfair Display", serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #0a1f3d;
    margin: 0;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #0a1f3d;
    display: inline-block;
}

.fp-slider-wrap {
    position: relative;
}

.fp-slider-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0;
}

.fp-slider-track::-webkit-scrollbar {
    display: none;
}

.fp-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #0a1f3d;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.fp-slider-arrow:hover {
    background: #0a1f3d;
    color: #fff;
}

.fp-slider-arrow--prev { left: -0.5rem; }
.fp-slider-arrow--next { right: -0.5rem; }

.fp-carousel-card {
    flex: 0 0 min(340px, 85vw);
    scroll-snap-align: start;
    display: flex;
    gap: 0.85rem;
    background: #fff;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(10, 31, 61, 0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.fp-carousel-card:hover {
    box-shadow: 0 6px 24px rgba(10, 31, 61, 0.12);
    color: inherit;
}

.fp-carousel-card--video {
    cursor: default;
}

.fp-carousel-card--video:hover {
    box-shadow: 0 2px 16px rgba(10, 31, 61, 0.06);
}

.fp-carousel-title-link {
    color: inherit;
    text-decoration: none;
}

.fp-carousel-title-link:hover {
    color: inherit;
    text-decoration: underline;
}

.fp-carousel-card--video .fp-carousel-thumb {
    position: relative;
    z-index: 1;
}

.fp-carousel-thumb {
    flex: 0 0 120px;
    height: 100px;
    background: #1a1a2e;
    overflow: hidden;
}

.fp-carousel-thumb img,
.fp-carousel-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-carousel-body {
    padding: 0.85rem 0.85rem 0.85rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.fp-carousel-body .fp-category-badge {
    font-size: 0.62rem;
    margin-bottom: 0.4rem;
}

.fp-carousel-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.35rem;
    color: #212529;
}

.fp-carousel-date {
    font-size: 0.72rem;
    color: #6c757d;
}

/* Trending section */
.fp-trending-section {
    padding: 2rem 0 3rem;
    background: #f0ebe3;
}

.fp-trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.fp-block-card--trending {
    background: #fff;
    box-shadow: 0 2px 12px rgba(10, 31, 61, 0.06);
}

.fp-block-card--trending .fp-block-body {
    position: static;
    padding: 0.85rem 0 0;
    background: transparent;
}

.fp-block-card--trending .fp-block-title {
    color: #212529;
}

.fp-block-card--trending .fp-block-meta {
    color: #6c757d;
}

.fp-block-card--trending .fp-block-overlay {
    display: none;
}

@media (max-width: 991.98px) {
    .fp-slider-arrow--prev { left: 0; }
    .fp-slider-arrow--next { right: 0; }

    .fp-block-card--hero-main .fp-block-media {
        min-height: 280px;
    }
}

@media (max-width: 575.98px) {
    .fp-carousel-card {
        flex: 0 0 min(300px, 92vw);
    }

    .fp-carousel-thumb {
        flex: 0 0 100px;
        height: 90px;
    }
}