/*
Theme Name: Blocksy Child
Description: Blocksy Child theme
Author: Creative Themes
Template: blocksy
Text Domain: blocksy
*/


/* =========================================================
   FTALE DYNAMIC HERO
========================================================= */

.ftale-hero {
    position: relative;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    min-height: 680px;
    overflow: hidden;
    background: #111;
}

.ftale-hero-slides {
    position: relative;
    width: 100%;
    height: 680px;
}

.ftale-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background-image: var(--ftale-desktop-image);
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}

.ftale-hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.ftale-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.55) 45%,
            rgba(0, 0, 0, 0.15) 100%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.75) 0%,
            transparent 55%
        );
}

.ftale-hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 80px 0 110px;
    color: #fff;
}

.ftale-hero-category {
    display: inline-block;
    margin-bottom: 22px;
    padding: 5px 10px;
    background: #ff3a19;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
}

.ftale-hero-title {
    max-width: 850px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.ftale-hero-excerpt {
    max-width: 650px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.6;
}

.ftale-hero-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ftale-hero-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ftale-hero-buttons a:hover {
    color: #ff3a19;
    background: #fff;
}

.ftale-hero-readmore {
    background: #ff3a19;
    color: #fff;
}

.ftale-hero-watch {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.ftale-hero-dots {
    position: absolute;
    z-index: 5;
    bottom: 35px;
    left: 50%;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.ftale-hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.ftale-hero-dot.active {
    width: 24px;
    border-radius: 10px;
    background: #fff;
}


/* =========================================================
   FTALE QUICK FACT - DID YOU KNOW
========================================================= */

.ftale-did-you-know {
    margin-bottom: 35px;
    padding: 28px 26px;
    background: #ff3a19;
    border-radius: 4px;
    color: #fff;
}

.ftale-did-you-know-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.ftale-did-you-know-icon {
    font-size: 28px;
    line-height: 1;
}

.ftale-did-you-know-text {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   HOME PAGE SPACING
========================================================= */

body.home .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .ftale-hero {
    margin-top: 0 !important;
}

body.home .site-main > .ct-container {
    padding-top: 0 !important;
}

body.home main#main {
    --theme-content-vertical-spacing: 0px !important;
}


/* =========================================================
   FTALE HOMEPAGE
   QUICK FACTS + TRENDING
========================================================= */

.ftale-home-content {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0 70px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
    gap: 48px;
    box-sizing: border-box;
}


/* =========================================================
   QUICK FACTS
========================================================= */

.ftale-quick-facts {
    min-width: 0;
    overflow: hidden;
}

.ftale-quick-facts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ftale-quick-facts-title {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
}

.ftale-quick-facts-arrows {
    display: flex;
    gap: 10px;
}

.ftale-quick-facts-arrows button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: #25282c;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.ftale-quick-facts-arrows button:hover {
    background: #ff6b00;
}

.ftale-quick-facts-arrows button:disabled {
    opacity: 0.35;
    cursor: default;
}

.ftale-quick-facts-slider {
    width: 100%;
    overflow: hidden;
}

.ftale-quick-facts-track {
    display: flex;
    gap: 12px;
    transition: transform 0.5s ease;
}

.ftale-quick-fact-card {
    position: relative;
    flex: 0 0 calc((100% - 24px) / 3);
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
    background: #202328;
}

.ftale-quick-fact-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.ftale-quick-fact-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.25) 65%,
            rgba(0, 0, 0, 0.05) 100%
        );
}

.ftale-quick-fact-content {
    position: absolute;
    inset: auto 24px 22px 24px;
    z-index: 2;
}

.ftale-quick-fact-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
}

.ftale-quick-fact-readmore {
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-decoration: none;
}

.ftale-quick-fact-readmore:hover {
    color: #ff6b00;
}


/* =========================================================
   TRENDING
========================================================= */

.ftale-latest-stories {
    min-width: 0;
}

.ftale-latest-stories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ftale-latest-stories-title {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
}

.ftale-latest-stories-viewall {
    color: rgba(255, 255, 255, 0.65);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    white-space: nowrap;
}

.ftale-latest-stories-viewall:hover {
    color: #ff6b00;
}

.ftale-latest-stories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ftale-latest-story {
    display: flex;
    min-height: 82px;
    overflow: hidden;
    border-radius: 4px;
    background: #202328;
    text-decoration: none;
}

.ftale-latest-story-image {
    flex: 0 0 82px;
    background-size: cover;
    background-position: center;
}

.ftale-latest-story-content {
    padding: 13px 14px;
}

.ftale-latest-story-category {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.ftale-latest-story-title {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.ftale-latest-story:hover .ftale-latest-story-title {
    color: #ff6b00;
}


/* =========================================================
   LATEST STORIES CAROUSEL
========================================================= */

.ftale-latest-stories-carousel {
    margin-top: 50px;
    min-width: 0;
    overflow: hidden;
}

.ftale-latest-stories-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* Title on the left */

.ftale-latest-stories-carousel-title {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
}

/* VIEW ALL + arrows on the right */

.ftale-latest-stories-carousel-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ftale-latest-stories-carousel-arrows {
    display: flex;
    gap: 10px;
}

.ftale-latest-stories-carousel-prev,
.ftale-latest-stories-carousel-next {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: #25282c;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.ftale-latest-stories-carousel-prev:hover,
.ftale-latest-stories-carousel-next:hover {
    background: #ff6b00;
}

.ftale-latest-stories-carousel-prev:disabled,
.ftale-latest-stories-carousel-next:disabled {
    opacity: 0.35;
    cursor: default;
}

.ftale-latest-stories-carousel-slider {
    width: 100%;
    overflow: hidden;
}

.ftale-latest-stories-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.ftale-latest-story-carousel-card {
    flex: 0 0 calc((100% - 24px) / 2);
    min-width: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #202328;
}

.ftale-latest-story-carousel-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}

.ftale-latest-story-carousel-content {
    padding: 20px;
}

.ftale-latest-story-carousel-date {
    display: block;
    margin-bottom: 9px;
    color: #999;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ftale-latest-story-carousel-title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.ftale-latest-story-carousel-readmore {
    display: inline-block;
    color: #ff6b00;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.ftale-latest-story-carousel-readmore:hover {
    color: #fff;
}


/* =========================================================
   CATEGORY CAROUSELS
========================================================= */

.ftale-category-carousel {
    margin-top: 50px;
    min-width: 0;
    overflow: hidden;
}

.ftale-category-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ftale-category-carousel-title {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* VIEW ALL + arrows on the right */

.ftale-category-carousel-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ftale-category-carousel-arrows {
    display: flex;
    gap: 10px;
}

.ftale-category-carousel-prev,
.ftale-category-carousel-next {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: #25282c;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.ftale-category-carousel-prev:hover,
.ftale-category-carousel-next:hover {
    background: #ff6b00;
}

.ftale-category-carousel-prev:disabled,
.ftale-category-carousel-next:disabled {
    opacity: 0.35;
    cursor: default;
}

.ftale-category-carousel-slider {
    width: 100%;
    overflow: hidden;
}

.ftale-category-carousel-track {
    display: flex;
    gap: 12px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.ftale-category-story-card {
    position: relative;
    flex: 0 0 calc((100% - 24px) / 3);
    height: 200px;
    min-width: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #202328;
}

.ftale-category-story-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ftale-category-story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0) 100%
    );
}

.ftale-category-story-content {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2;
}

.ftale-category-story-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.ftale-category-story-readmore {
    display: inline-block;
    color: #ff6b00;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.ftale-category-story-readmore:hover {
    color: #fff;
}


/* =========================================================
   ARCHIVE / POST META
========================================================= */

/* Remove "Category" prefix from category archive titles */

.ct-title-label {
    display: none !important;
}


/* Hide author information site-wide */

.ct-meta-element-author,
.author,
.byline,
.entry-meta .author,
.entry-meta .byline {
    display: none !important;
}


/* Remove remaining author spacing */

.entry-meta .meta-author {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Remove separator after hidden author */

.entry-meta .meta-author::after {
    display: none !important;
    content: none !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1023px) {

    .ftale-home-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .ftale-quick-fact-card {
        flex-basis: calc((100% - 12px) / 2);
    }

    .ftale-category-story-card {
        flex-basis: calc((100% - 12px) / 2);
    }

    .ftale-mobile-did-you-know {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

}


/* =========================================================
   DESKTOP ONLY
========================================================= */

@media (min-width: 1024px) {

    .ftale-mobile-did-you-know {
        display: none !important;
    }

}


/* =========================================================
   MOBILE HERO
========================================================= */

@media (max-width: 767px) {

    .ftale-hero {
        min-height: 620px;
    }

    .ftale-hero-slides {
        height: 620px;
    }

    .ftale-hero-slide {
        align-items: flex-end;
        background-position: center;
        background-image: var(--ftale-mobile-image);
    }

    .ftale-hero-content {
        width: calc(100% - 32px);
        padding: 40px 0 85px;
    }

    .ftale-hero-title {
        font-size: clamp(38px, 11vw, 54px);
    }

    .ftale-hero-excerpt {
        font-size: 16px;
        line-height: 1.5;
    }

    .ftale-hero-buttons a {
        min-height: 44px;
        padding: 0 18px;
    }

    .ftale-did-you-know {
        margin-bottom: 30px;
        padding: 24px 20px;
    }

    .ftale-did-you-know-heading {
        font-size: 16px;
    }

    .ftale-did-you-know-text {
        font-size: 15px;
    }

    .ftale-home-content {
        width: calc(100% - 32px);
        padding: 40px 0 50px;
        gap: 45px;
    }

    .ftale-quick-fact-card {
        flex-basis: 100%;
        height: 250px;
    }

    .ftale-quick-fact-content {
        inset: auto 20px 20px 20px;
    }

    .ftale-quick-fact-title {
        font-size: 19px;
    }

    .ftale-latest-stories-carousel {
        margin-top: 45px;
    }

    .ftale-latest-story-carousel-card {
        flex-basis: 100%;
    }

    .ftale-latest-story-carousel-content {
        padding: 18px;
    }

    .ftale-latest-story-carousel-title {
        font-size: 19px;
    }

    .ftale-category-carousel {
        margin-top: 45px;
    }

    .ftale-category-story-card {
        flex-basis: 100%;
        height: 250px;
    }

    .ftale-category-story-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .ftale-category-story-title {
        font-size: 19px;
    }

}

/* =========================================================
   FTALE ALL STORIES REPOSITORY
   ========================================================= */

.ftale-all-stories-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
	width: 100%;
}

.ftale-all-story-card {
	background: #202328;
	border-radius: 4px;
	overflow: hidden;
	min-width: 0;
}

.ftale-all-story-image {
	display: block;
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.ftale-all-story-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ftale-all-story-content {
	padding: 20px;
}

.ftale-all-story-category {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	color: #ff6b00;
	margin-bottom: 8px;
}

.ftale-all-story-title {
	margin: 0 0 12px;
	font-size: 21px;
	line-height: 1.25;
}

.ftale-all-story-title a {
	color: #fff;
	text-decoration: none;
}

.ftale-all-story-excerpt {
	color: #aeb2b7;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 16px;
}

.ftale-all-story-readmore {
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: .04em;
}

.ftale-all-story-readmore:hover {
	color: #ff6b00;
}

.ftale-all-stories-pagination {
	margin-top: 45px;
	text-align: center;
}

.ftale-all-stories-pagination ul {
	display: flex;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ftale-all-stories-pagination a,
.ftale-all-stories-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	background: #25282c;
	color: #fff;
	text-decoration: none;
	border-radius: 2px;
}

.ftale-all-stories-pagination .current,
.ftale-all-stories-pagination a:hover {
	background: #ff6b00;
	color: #fff;
}

@media (max-width: 1024px) {
	.ftale-all-stories-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ftale-all-stories-grid {
		grid-template-columns: 1fr;
	}
}