/* Base styles */
body {
    margin: 30px;
    font-family: 'Poppins', sans-serif;
    background-color: #f8de89;
    color: #000000;
}

/* Custom cursor for entire site */
body,
a,
.accordion-trigger,
.slide,
.arrow,
* {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><circle cx="15" cy="15" r="15" fill="%23b6681a"/></svg>') 15 15, auto !important;
}

/* Global link hover effect */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: #b6681a !important;
}

/* Section 1 - Header */
header {
    text-align: center;
    padding: 20px 0;
    position: relative;
}

.header-info {
    position: relative;
    max-width: calc(100% - 60px);
    margin: 0 auto;
    height: 40px;
    /* Give it a specific height */
}

header small {
    font-size: 1.5em;
    position: absolute;
    top: 20px;
}

header small:first-child {
    left: 0;
}

header small:last-child {
    right: 0;
}

header h1 {
    font-size: 8em;
    line-height: 1.1em;
    font-family: 'Platypi', sans-serif;
    margin: 10px 0;
    padding-top: 100px;
}

header p {
    font-size: 1.5em;
    margin: auto;
    max-width: 820px;
    line-height: 1.4em;
    padding-top: 75px;
    padding-bottom: 80px;
}

.divider {
    border-bottom: 1px solid #000000;
    margin: 0 30px;
    clear: both;
    /* Add this to prevent float issues */
}

/* Section 2 - IFrame */
.iframe-container {
    position: relative;
    width: auto;
    /* Changed from 100% */
    margin: 30px;
    /* Match divider margins */
    overflow: hidden;
    padding-top: calc(56.25% - 33.75px);
    /* Adjusted for margins */
}

.iframe-container video,
iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

/* Brighten hero video if it appears too dark */
.iframe-container video {
    filter: brightness(1.5) contrast(1.1);
}

.image-credit {
    text-align: center;
    font-size: 1em;
    padding-bottom: 30px;
    padding-top: 10px;
}

/* Section 3 - Accordion */
.accordion {
    margin: 0;
}

.accordion div {
    cursor: pointer;
}

h3 {
    font-family: 'Platypi', sans-serif;
    font-size: 3em;
    padding-left: 30px;
    transition: color 0.3s ease;
    /* Add smooth transition */
}

/* Subsection styling */
.subsection {
    margin-bottom: 40px;
}

.subsection-title {
    font-family: 'Platypi', sans-serif;
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 20px;
    padding-left: 20px;
    font-weight: 600;
}

.accordion-trigger:hover h3,
.accordion .content.open+h3 {
    color: #b6681a;
    /* or any color you prefer for hover text */
}

.accordion .content {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 10px;
    background-color: #f8de89;
    box-sizing: border-box;
}

.accordion-content.open {
    display: flex;
    flex-direction: column;
}

.accordion .content .title {
    text-align: left;
    font-size: 1.5em;
}

.accordion-item {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
    align-items: flex-start;
    padding-left: 15ppx;
}

.text,
.media-container {
    flex: 1;
    padding: 15px 30px;
}

.text {
    max-width: 40%;
    padding-right: 80px;
    padding-left: 20px;
    box-sizing: border-box;
    font-size: 1.3em;
    padding-top: -20px;
    justify-content: center;
}

.text h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    color: #000000;
    margin-bottom: 5px;
    /* Add this to reduce space */
}

.text p {
    margin-top: 0;
    /* Add this to ensure no extra space from paragraph */
}

/* Updated media container styles */
.media-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: flex-start;
    align-items: flex-end;
    padding-right: 30px;
}

/* Container for images to align horizontally */
.media-container .image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
}

.media-container img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* Prevent images from shrinking too much */
}

.media-container video {
    width: 50vw; /* Half viewport width */
    max-width: 100%; /* Don't exceed container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* Use margin instead of padding for videos */
}

/* Legacy support for .image class */
.image {
    width: 100%;
    display: flex;
    justify-content: right;
    padding-right: 30px;
}

.image img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-position: right;
    padding-top: 50px;
}

.text a {
    color: #000000;
    text-decoration: underline;
    line-height: 3em;
}

/* Video specific styles */
video {
    background-color: #f8de89;
}

video::-webkit-media-controls {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Lazy loading styles */
.lazy, .lazy-video {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded, .lazy-video.loaded {
    opacity: 1;
}

/* Section 4 - Watchlist */
.watchlist {
    text-align: center;
    margin: 50px auto;
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: calc(100% - 60px);
    margin: 30px auto;
}

.slider {
    display: flex;
    overflow: hidden;
    border: 1px solid #000000;
    border-radius: 20px;
    width: 100%;
    height: 300px;
    position: relative;
}

.slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.5s ease-in-out;
}

.slide a {
    color: #000000;
    text-decoration: none;
}

.slide h4 {
    margin-bottom: 10px;
    font-family: 'Platypi', sans-serif;
    font-size: 3em;
    margin-top: -5px;
    color: #000000;
    text-decoration: none;
    line-height: 1.2em;
}

.slide p {
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3em;
    line-height: 2;
    color: #000000;
    text-decoration: none;
}

.arrow {
    cursor: pointer;
    font-size: 1.5em;
    color: #000000;
    user-select: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.arrow.left {
    left: 30px;
}

.arrow.right {
    right: 30px;
}

.slide h4 {
    transition: color 0.3s ease;
}

.slide:hover h4 {
    color: #b6681a;
}

/* Bottom Banner */

.bottom_banner {
    margin-bottom: 50px;
}

.bottom_banner p {
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    padding: 50px 20px -10px;
    margin: auto 20px;
    text-align: center;
    color: #000000;
}

.bottom_banner a {
    color: #000000; /* Will be replaced by editor */
    text-decoration: none;
    padding-bottom: 1px;
    border-bottom: 2px solid #000000; /* Will be replaced by editor */
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.bottom_banner a:hover {
    color: #b6681a; /* Will be replaced by editor */
    border-bottom-color: #000000; /* Will be replaced by editor */
}

/* Media Queries */

@media (max-width: 800px) {

    /* Section 1 adjustemnts */
    header {
        max-width: calc(100% - 40px);
        transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

    .header-info {
        max-width: calc(100% - 40px);
        /* Match mobile divider width */
    }

    header small {
        font-size: 0.9em;
    }

    header small:first-child {
        left: 0;
    }

    header small:last-child {
        right: 0;
    }

    header h1 {
        font-size: 4em;
        line-height: 1em;
        font-family: 'Platypi', sans-serif;
        margin: 10px 0;
        padding-top: 100px;
    }

    header p {
        font-size: 1em;
        margin: auto;
        max-width: 600px;
        line-height: 1.4em;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .divider {
        margin: 0 20px;
    }

    /* Section 2 adjustemnts */
    .iframe-container {
        position: relative;
        overflow: hidden;
        padding-top: 56.25%;
        /* 16:9 Aspect Ratio */
        margin: 10px 20px;
        width: auto;
        height: 0;
        /* This is critical for maintaining the aspect ratio */
        display: block;
        /* Remove flex display which was causing issues */
    }

    .iframe-container video,
    .iframe-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .image-credit {
        text-align: center;
        font-size: 0.9em;
        padding-bottom: 20px;
        padding-top: 20px;
        max-width: 400px;
        margin: auto;
    }

    @media (max-width: 450px) {
        .iframe-container {
            margin: 10px;
        }
    }

    /* Section 3 adjustments */
    .accordion {
        margin: 0;
    }

    .accordion h3 {
        text-align: center;
    }

    .accordion-item {
        display: block !important;
        /* Force single column */
        width: 100%;
        margin-bottom: 30px;
        padding: 0 20px;

    }

    .text {
        max-width: 100% !important;
        /* Override desktop max-width */
        width: 100%;
        padding: 0 !important;
        text-align: center;
    }

    .text h5 {
        font-size: 1.1em;
        margin-bottom: 10px;
        margin-top: -10px;
        text-align: center;
    }

    .text p {
        font-size: 0.9em;
        line-height: 1.2em;
        margin-bottom: 15px;
        text-align: center;
    }

    .media-container {
        padding-right: 20px;
        /* Match mobile margins */
        display: none !important;
        /* Force hide media on mobile */
        align-items: center;
        justify-content: center;
    }

    .media-container video {
        width: 80vw; /* Larger on mobile for better visibility */
        max-width: 100%;
    }

    /* Legacy support */
    .image {
        padding-right: 20px;
        /* Match mobile margins */
        display: none !important;
        /* Force hide images */
    }

    .accordion .content {
        display: none;
        padding: 10px 0;
    }

    .accordion .content.open {
        display: block;
    }

    /* Section 4 adjustments*/
    .watchlist {
        text-align: center;
        margin: 50px auto;
    }

    .slider-container {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: calc(100% - 40px);
        margin: 20px auto;
    }

    .slide h4 {
        margin-bottom: 10px;
        /* Reduce space between title and subtitle */
        font-family: 'Platypi', sans-serif;
        /* Ensure styling matches your design */
        font-size: 2em;
        /* Adjust font size as needed */
        margin-top: -5px;
        padding-left: 40px;
        padding-right: 40px;
        color: #000000;
        text-decoration: none;
        line-height: 1.2em;
    }

    .slide p {
        margin-top: 0;
        /* Remove unnecessary margin on the subtitle */
        font-family: 'Poppins', sans-serif;
        font-size: 1em;
        /* Adjust font size for readability */
        line-height: 1.1em;
        /* Adjust line height for better text spacing */
        color: #000000;
        text-decoration: none;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 20px;

    }

        .header-info {
            max-width: calc(100% - 20px);
            /* Match mobile divider width */
        }

        header small {
            font-size: 0.9em;
            position: relative;
            /* Change from absolute to relative */
            display: inline-block;
            top: auto;
            /* Remove absolute positioning */
            left: auto;
            right: auto;
        }

        header small:first-child {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            /* Center horizontally */
            width: 100%;
            text-align: center;
            margin: 0;
            line-height: 0.9em;
            padding-top: 20px;
        }

        header small:last-child {
            display: none !important;
        }

        header h1 {
            font-size: 2.5em;
            line-height: 1em;
            font-family: 'Platypi', sans-serif;
            margin: 10px 0;
            padding-top: 15px;
            padding-bottom: 10px;
        }

        header p {
            font-size: 0.9em;
            margin: auto;
            max-width: calc(100% - 20px);
            line-height: 1.4em;
            padding-top: 20px;
            padding-bottom: 20px;
        }

        .divider {
            margin: 0 10px;
        }

        /* Section 2 adjustemnts */
        .iframe-container {
            margin: 0px 10px;
            /* Matches the divider's margin */
            display: flex;
            justify-content: center;
            /* Ensures the iframe is centered */
            width: auto;
            /* Allows width to match the divider */
            height: auto;
            /* Enables proportional scaling */
            padding-top: 20px;
        }

        iframe {
            width: 100%;
            /* Ensures the same width as the divider, considering margins */
            max-width: 100%;
            /* Prevents overflow on smaller screens */
            height: 30vh;
            /* Adjust proportionally */
            border: none;
        }

        .image-credit {
            text-align: center;
            font-size: 0.7em;
            padding-bottom: 20px;
            padding-top: 20px;
            max-width: 400px;
            margin: auto;
        }

        /* Section 3 adjustments */
        .accordion {
            margin: 0;
            max-width: calc(100% - 20px);
        }

        .accordion h3 {
            text-align: center;
            font-size: 1.6em;
        }

        .accordion-item {
            display: block !important;
            /* Force single column */
            width: 100%;
            margin-bottom: 30px;
            padding: 0 10px;

        }

        .text {
            max-width: 100% !important;
            /* Override desktop max-width */
            width: 100%;
            padding: 0 !important;
            text-align: center;
        }

        .text h5 {
            font-size: 0.7em;
            margin-bottom: 10px;
            margin-top: -10px;
            text-align: center;
        }

        .text p {
            font-size: 0.7em;
            line-height: 1.2em;
            margin-bottom: 15px;
            text-align: center;
        }

        .media-container {
            padding-right: 10px;
            /* Match mobile margins */
            display: none !important;
            /* Force hide media */
        }

        .media-container video {
            width: 90vw; /* Even larger on very small screens */
            max-width: 100%;
        }

        /* Legacy support */
        .image {
            padding-right: 10px;
            /* Match mobile margins */
            display: none !important;
            /* Force hide images */
        }

        .accordion .content {
            display: none;
            padding: 10px 0;
        }

        .accordion .content.open {
            display: block;
        }

        /* Section 4 adjustments*/
        .watchlist {
            text-align: center;
            margin: 50px auto;
        }

        .slider-container {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            width: calc(100% - 20px);
            margin: 20px auto;
        }

        .slide h4 {
            margin-bottom: 10px;
            /* Reduce space between title and subtitle */
            font-family: 'Platypi', sans-serif;
            /* Ensure styling matches your design */
            font-size: 1.6em;
            /* Adjust font size as needed */
            margin-top: -5px;
            padding-left: 10px;
            padding-right: 10px;
            color: #000000;
            text-decoration: none;
            line-height: 1.2em;
        }

        .slide p {
            margin-top: 0;
            /* Remove unnecessary margin on the subtitle */
            font-family: 'Poppins', sans-serif;
            font-size: 1em;
            /* Adjust font size for readability */
            line-height: 1.1em;
            /* Adjust line height for better text spacing */
            color: #000000;
            text-decoration: none;
            padding-left: 10px;
            padding-right: 10px;
            padding-top: 20px;
        }

        .bottom_banner p {
            display: none;
        }
    }
