/* Fennys Facts Page Specific Styles - Vintage Black & White Vibe */
:root {
    --primary-teal: #008697;
    --text-black: #000000;
    --bg-white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-white);
    color: var(--text-black);
    margin: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Header Overrides for Fenny's Facts (Default: Black Bg, White Text) */
.site-header {
    background-color: #000000 !important;
    transition: background-color 0.4s ease;
}

.site-header .logo-text {
    color: #ffffff !important;
}

.site-header .menu-toggle .bar {
    background-color: #ffffff !important;
}

.site-header .header-center {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Scrolled State (White Bg, Black Text) */
.site-header.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .logo-text {
    color: #000000 !important;
}

.site-header.scrolled .menu-toggle .bar {
    background-color: #000000 !important;
}

.facts-section {
    padding: 140px 0 60px;
    background: var(--bg-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
    /* Add more padding for buttons */
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    z-index: 10;
}

.heading {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-black);
    letter-spacing: 8px;
    /* Increased letter spacing for vintage look */
    font-weight: 700;
}

.sub-heading {
    color: var(--primary-teal);
    letter-spacing: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.separator {
    width: 40px;
    height: 2px;
    background-color: var(--primary-teal);
    margin: 15px auto;
}

/* --- Carousel 3D Overlay Design --- */
.carousel-3d-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

.carousel-3d-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-3d-item {
    position: absolute;
    width: 500px;
    height: 350px;
    border-radius: 4px;
    /* Sharper corners for vintage look */
    overflow: hidden;
    background: #eee;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
}

.carousel-3d-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    /* Add black background for letterboxing */
    display: block;
    transition: filter 0.8s ease;
}

/* --- States (Vintage B&W Vibe) --- */

/* CENTER ITEM */
.carousel-3d-item.center {
    opacity: 1;
    z-index: 20;
    transform: translate3d(0, 0, 200px);
    pointer-events: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.carousel-3d-item.center img {
    filter: grayscale(0);
    /* Center is in color */
}

/* LEFT ITEM */
.carousel-3d-item.left {
    opacity: 0.6;
    z-index: 10;
    transform: translate3d(-70%, 0, -200px) rotateY(10deg);
}

.carousel-3d-item.left img {
    filter: grayscale(1) brightness(0.8);
    /* B&W Side items */
}

/* RIGHT ITEM */
.carousel-3d-item.right {
    opacity: 0.6;
    z-index: 10;
    transform: translate3d(70%, 0, -200px) rotateY(-10deg);
}

.carousel-3d-item.right img {
    filter: grayscale(1) brightness(0.8);
    /* B&W Side items */
}

/* HIDDEN */
.carousel-3d-item.left-hidden {
    opacity: 0;
    transform: translate3d(-120%, 0, -400px) scale(0.8);
}

.carousel-3d-item.right-hidden {
    opacity: 0;
    transform: translate3d(120%, 0, -400px) scale(0.8);
}

/* --- Controls Overlaid on Carousel --- */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: -30px;
    /* Offset slightly outside on large screens */
    right: -30px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    /* Let clicks pass through to images if needed, but buttons will have pointer-events auto */
    z-index: 50;
    width: calc(100% + 60px);
}

.control-btn {
    background: var(--bg-white);
    border: 1px solid #000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: auto;
    color: var(--text-black);
}

.control-btn:hover {
    background: var(--primary-teal);
    border-color: var(--primary-teal);
    color: #fff;
    transform: scale(1.1);
}

.control-btn svg {
    width: 18px;
    height: 18px;
}

/* --- Mobile View Overhaul --- */
@media (max-width: 1024px) {
    .carousel-3d-item {
        width: 400px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .facts-section {
        padding-top: 130px;
        padding-bottom: 40px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .heading {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .carousel-3d-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        width: 100%;
        padding: 0;
        margin: 0;
        perspective: none;
    }

    .carousel-3d-container {
        width: 100%;
        height: 380px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .carousel-3d-item {
        width: 85vw;
        max-width: 500px;
        height: 380px;
        border-radius: 4px;
    }

    .carousel-3d-item.center {
        transform: translate3d(0, 0, 0) !important;
        opacity: 1 !important;
        position: relative;
        z-index: 20;
    }

    .carousel-3d-item.left,
    .carousel-3d-item.right,
    .carousel-3d-item.left-hidden,
    .carousel-3d-item.right-hidden {
        opacity: 0 !important;
        display: none !important;
        transform: none !important;
        pointer-events: none !important;
    }

    .carousel-controls {
        position: static;
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 25px;
        pointer-events: auto;
        transform: none;
        width: 100%;
    }

    .control-btn {
        width: 44px;
        height: 44px;
        border: 2px solid #000;
        background: #fff;
        pointer-events: auto;
    }

    .control-btn:hover {
        background: var(--primary-teal);
        border-color: var(--primary-teal);
    }

    .control-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .facts-section {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .container {
        padding: 0 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .heading {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
        letter-spacing: 4px;
    }

    .sub-heading {
        font-size: 0.75rem;
    }

    .carousel-3d-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        width: 100%;
        padding: 0;
        margin: 0;
        perspective: none;
    }

    .carousel-3d-container {
        width: 100%;
        height: 320px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .carousel-3d-item {
        width: 90vw;
        max-width: none;
        height: 320px;
        border-radius: 4px;
    }

    .carousel-3d-item.center {
        transform: translate3d(0, 0, 0) !important;
        opacity: 1 !important;
        position: relative;
        z-index: 20;
    }

    .carousel-3d-item.left,
    .carousel-3d-item.right,
    .carousel-3d-item.left-hidden,
    .carousel-3d-item.right-hidden {
        opacity: 0 !important;
        display: none !important;
        transform: none !important;
        pointer-events: none !important;
    }

    .carousel-controls {
        position: static;
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
        pointer-events: auto;
        transform: none;
        width: 100%;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        border: 2px solid #000;
        background: #fff;
        pointer-events: auto;
    }

    .control-btn:hover {
        background: var(--primary-teal);
        border-color: var(--primary-teal);
    }

    .control-btn svg {
        width: 16px;
        height: 16px;
    }
}