/* Global Home Styles */
/* body {
    font-family: "Inter", sans-serif;
}
h1,
h2,
h3,
.serif-font {
    font-family: "DM Serif Display", serif;
} */
.gradient-overlay {
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* FAQ Accordion */
.faq-answer {
    transition: max-height 0.3s ease;
}



/* Timed Cards Section */
/* @import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500;600&display=swap"); */

#timed-cards-section {
    --primary-color: #ecad29;
    --text-color: rgba(255, 255, 255, 0.87);
    font-family: "ABCNormal", sans-serif;
}
#timed-cards-section .card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    border-radius: 0px;
    overflow: hidden;
}
#timed-cards-section .card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0px;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

#timed-cards-section .card-content {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text-color);
    padding-left: 16px;
    pointer-events: none;
}

#timed-cards-section .content-place {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
}

#timed-cards-section .content-title-1,
#timed-cards-section .content-title-2 {
    font-weight: 600;
    font-size: 20px;
    font-family: "Juana", serif;
    text-transform: uppercase;
}

#timed-cards-section .content-start {
    width: 30px;
    height: 5px;
    border-radius: 99px;
    background-color: var(--text-color);
}

#timed-cards-section .details {
    z-index: 22;
    position: absolute;
    top: 100px;
    left: 60px;
    pointer-events: none; /* Let clicks pass through if needed, though buttons need pointer-events: auto */
    max-height: calc(100vh - 200px); /* Ensure content fits in viewport */
    overflow: hidden; /* Allow scrolling if content overflows */
}
#timed-cards-section .details > * {
    pointer-events: auto;
}

#timed-cards-section .details .place-box {
    height: 46px;
    overflow: hidden;
}
#timed-cards-section .details .place-box .text {
    padding-top: 16px;
    font-size: 20px;
    position: relative;
}
#timed-cards-section .details .place-box .text:before {
    top: 0;
    left: 0;
    position: absolute;
    content: "";
    width: 30px;
    height: 4px;
    border-radius: 99px;
    background-color: white;
}

#timed-cards-section .details .title-1,
#timed-cards-section .details .title-2 {
    font-weight: 600;
    font-size: 64px; /* Slightly smaller than original 72px for better fit */
    font-family: "Juana", serif;
    line-height: 1.1;
    text-transform: uppercase;
}

#timed-cards-section .details .title-box-1,
#timed-cards-section .details .title-box-2 {
    margin-top: 2px;
    height: 80px; /* Adjusted height */
    overflow: hidden;
}

#timed-cards-section .details .desc {
    margin-top: 16px;
    width: 500px;
    max-width: 90vw;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

#timed-cards-section .details .cta {
    width: 500px;
    margin-top: 24px;
    display: flex;
    align-items: center;
}

#timed-cards-section .details .cta .bookmark {
    border: none;
    background-color: var(--primary-color);
    width: 36px;
    height: 36px;
    border-radius: 99px;
    color: white;
    display: grid;
    place-items: center;
    cursor: pointer;
}

#timed-cards-section .details .cta .discover {
    border: 1px solid #ffffff;
    background-color: transparent;
    height: 36px;
    border-radius: 99px;
    color: #ffffff;
    padding: 4px 24px;
    font-size: 12px;
    margin-left: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
#timed-cards-section .details .cta .discover:hover {
    background-color: white;
    color: black;
}

#timed-cards-section .indicator {
    position: absolute; /* Changed from fixed */
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    z-index: 60;
    background-color: var(--primary-color);
}

#timed-cards-section .pagination {
    position: absolute;
    left: 0px;
    top: 0px; /* Will be positioned by JS */
    display: inline-flex;
}

#timed-cards-section .pagination .arrow {
    z-index: 60;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.33);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
#timed-cards-section .pagination .arrow:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}
#timed-cards-section .pagination .arrow:nth-child(2) {
    margin-left: 20px;
}

#timed-cards-section .pagination .progress-sub-container {
    margin-left: 24px;
    z-index: 60;
    width: 300px; /* Reduced width */
    height: 50px;
    display: flex;
    align-items: center;
}

#timed-cards-section .pagination .progress-sub-background {
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
}
#timed-cards-section .pagination .progress-sub-foreground {
    height: 3px;
    background-color: var(--primary-color);
    width: 0;
}

#timed-cards-section .pagination .slide-numbers {
    width: 50px;
    height: 50px;
    overflow: hidden;
    z-index: 60;
    position: relative;
    margin-left: 20px;
}

#timed-cards-section .pagination .slide-numbers .item {
    width: 50px;
    height: 50px;
    position: absolute;
    color: white;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    font-size: 32px;
    font-weight: bold;
    font-family: "Juana", serif;
}

#timed-cards-section #play-pause-btn {
    position: absolute;
    bottom: 50px;
    left: 60px;
    z-index: 60;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.33);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

#timed-cards-section #play-pause-btn:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

#timed-cards-section .cover {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* Loading cover */
    z-index: 100;
}

@media (max-width: 768px) {
    #timed-cards-section .details .title-1,
    #timed-cards-section .details .title-2 {
        font-size: 40px;
    }
    #timed-cards-section .details .desc {
        width: 100%;
        font-size: 14px;
        padding-right: 20px; /* Prevent text hitting edge */
    }
    #timed-cards-section .details {
        left: 20px;
        top: 80px; /* Moved up for better space utilization */
        width: calc(100% - 40px);
        max-height: calc(100vh - 160px); /* Ensure content fits on mobile */
        overflow: hidden; /* Allow scrolling on mobile if needed */
    }
    #timed-cards-section .details .cta {
        width: 100%; /* Full width */
        margin-top: 20px;
    }

    /* Mobile Pagination/Controls */
    #timed-cards-section .pagination {
        display: flex; /* Show controls */
        top: auto !important;
        bottom: 30px;
        left: 20px !important;
        transform: none !important; /* Override JS positioning if needed */
        width: calc(100% - 40px);
        justify-content: space-between;
        align-items: flex-end; /* Align to bottom */
    }

    #timed-cards-section .pagination .arrow {
        width: 40px; /* Smaller arrows */
        height: 40px;
        border-color: rgba(255, 255, 255, 0.5);
        background: rgba(
            0,
            0,
            0,
            0.3
        ); /* Add background for visibility over image */
    }

    #timed-cards-section .pagination .slide-numbers {
        display: none; /* Hide numbers on mobile to save space */
    }

    #timed-cards-section .pagination .progress-sub-container {
        display: none; /* Hide progress bar on mobile */
    }

    #timed-cards-section #play-pause-btn {
        width: 40px;
        height: 40px;
        border-color: rgba(255, 255, 255, 0.5);
        background: rgba(0, 0, 0, 0.3);
        bottom: 80px; /* Stack above pagination */
        left: 20px;
    }
}

/* Noise Overlay */
.noise-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: noiseAnimation 0.2s infinite;
}

@keyframes noiseAnimation {
    0% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(-5%, -5%);
    }
    20% {
        transform: translate(-10%, 5%);
    }
    30% {
        transform: translate(5%, -10%);
    }
    40% {
        transform: translate(-5%, 15%);
    }
    50% {
        transform: translate(-10%, 5%);
    }
    60% {
        transform: translate(15%, 0);
    }
    70% {
        transform: translate(0, 10%);
    }
    80% {
        transform: translate(-15%, 0);
    }
    90% {
        transform: translate(10%, 5%);
    }
    100% {
        transform: translate(5%, 0);
    }
}

/* Text Generation Animation */

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
