/* Basic Reset and Global Styles */
body {
    font-family: 'Inter', serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    position: relative;
}

h1, h2 {
    font-family: 'Lato', serif;
}

/* Background Overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../2024-images/t4l-image-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(75, 0, 130, 0.2);
}

/* Content Wrapper */
.content-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header and Footer */
header, footer {
    width: 100%;
    background: rgba(75, 0, 130, 0.9);
    color: #FFD700;
    text-align: center;
}

header {
    padding: 0 0 3em 0;
}

footer {
    padding: 3em 0;
}

footer h2 {
    margin: 0;
}

/* Header Styles */
header h1 {
    margin: 0 0 0.25em 0;
    font-size: 3em;
    color: #FFD700;
}

header h2 {
    margin: 0;
    font-size: 1.8em;
    font-style: italic;
    color: #FFF;
}

header p {
    font-size: 1.5em;
    color: #FFD700;
    margin: 1em 0;
}

/* Video Styles - UPDATED */
.video-wrapper {
    width: 100%;
    background: #000;
    margin: 0 0 3em 0;
    padding: 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 0;
    background: #000;
}

/* Style for the video element */
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: none; /* Initially hidden, shown after clicking thumbnail */
    object-fit: contain; /* Ensures video maintains aspect ratio within container */
}

/* Thumbnail overlay styles */
.video-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail-overlay:hover img {
    transform: scale(1.05);
}

/* Play button styling */
.play-button {
    position: absolute;
    transition: transform 0.2s ease;
}

.video-thumbnail-overlay:hover .play-button {
    transform: scale(1.1);
}

/* Maintain backward compatibility with iframe if needed */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Section Styles */
section {
    width: 100%;
    padding: 4em 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.95); /* Default white background */
}

/* Section background variations */
section.what-is-t4l,
section.how-it-works,
section.concerns,
section.faq,
section.schedule {
    background: rgba(245, 245, 220, 0.95); /* Beige */
}

section.testimonial {
    background: rgba(75, 0, 130, 0.9); /* Deep purple */
    color: #FFD700;
}

/* Section Headers */
section h2 {
    text-align: left;
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 1.5em 0;
    padding-bottom: 0.5em;
    border-bottom: 4px solid #4B0082;
    color: #4B0082;
}

section.testimonial h2 {
    color: #FFD700 !important;
    border-bottom-color: #FFD700;
}

section h3 {
    margin-top: 2.5em;
    color: #4B0082;
}

/* List Styles */
ul, ol {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

ul li, ol li {
    margin: 0.5em 0;
}

ul li ul, ol li ul {
    margin-left: 1em;
}

section ul {
    margin-left: 0;
}

/* Section Specific List Styles */
section.challenges ul li, 
section.who-is-t4l-for ul li, 
section.how-it-works ul li, 
section.concerns ul li, 
section.faq ul li {
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom: 0.5em;
    color: #4B0082;
}

/* List Icons */
section.challenges ul li::before {
    content: "👉 ";
}

section.who-is-t4l-for ul li::before {
    content: "👥 ";
}

section.features ul li::before {
    content: "👑";
    margin-right: 0.5em;
    color: #FFD700;
}

section.outcome ul li::before {
    content: "🏆 ";
}

section.concerns ul li::before {
    content: "🙋‍♀️ ";
}

section.concerns ul li:nth-of-type(even)::before {
    content: "🙋‍♂️ ";
}

section.faq ul li::before {
    content: "❓ ";
}

section.how-it-works ul li::before {
    content: "🎓 ";
}

section.how-it-works ul li:nth-of-type(2)::before {
    content: "💼 ";
}

section.how-it-works ul li:nth-of-type(3)::before {
    content: "🤝 ";
}

section.how-it-works ul li:nth-of-type(4)::before {
    content: "🛠️ ";
}

/* Blockquote Styles */
blockquote {
    font-size: 1.1em;
    margin: 0 0 1em 0;
    padding: 0.5em 1em;
    quotes: """ """ "'" "'";
    border-left: 5px solid #FFD700;
}

blockquote::before, 
blockquote::after {
    font-size: 2em;
    line-height: 0.1em;
    margin-right: 0.25em;
    vertical-align: -0.4em;
    color: #FFD700;
}

/* GIF Styles */
.gif-figure {
    width: 100vw;
    margin: 0;
    padding: 0;
    text-align: center;
    background: #000;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.gif-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    margin: 0;
}

.gif-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-caption-wrapper {
    width: 100%;
    margin: 0;
    padding: 1em 0;
    background: #fff;
}

.gif-caption {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    font-style: italic;
    font-size: 0.9em;
}

/* R.J. Nestor Section */
section.rj-nestor {
    overflow: hidden;
}

.rj-nestor-figure {
    float: right;
    margin: 0 0 1em 1.5em;
    max-width: 200px;
    width: 100%;
    height: auto;
    text-align: center;
}

.rj-nestor-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rj-nestor-figure figcaption {
    font-family: 'Inter', serif;
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5em;
}

/* Call to Action Button */
.cta-button {
    display: block;
    width: fit-content;
    margin: 3em auto 2em auto;
    padding: 1em 1.5em;
    background-color: #FFD700;
    color: #4B0082;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #EEB300;
}

span.button-text {
    font-size: 1.5em;
    font-weight: 700;
}

span.button-price {
    font-size: 1em;
}

/* Highlight Price */
.highlight-price {
    font-weight: bold;
    color: #4B0082;
    background-color: #FFD700;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Early Bird Banner */
.early-bird-banner {
    background: linear-gradient(135deg, #4B0082 0%, #800080 100%);
    color: #FFD700;
    text-align: center;
    padding: 1em;
    font-weight: bold;
    border-bottom: 3px solid #FFD700;
    border-top: 3px solid #FFFFFF;
}

.early-bird-banner .smaller {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Why Now Section */
section.why-now {
    background: rgba(255, 255, 255, 0.97);
    border-top: 3px solid #FFD700;
    border-bottom: 3px solid #FFD700;
}

section.why-now ul li {
    color: #4B0082;
    font-weight: bold;
    margin-bottom: 1em;
}

section.why-now ul li::before {
    content: "🎯 ";
}

/* Mobile Leadership Section */
section.mobile-leadership {
    background: rgba(255, 205, 255, 1);
}

section.mobile-leadership ul li {
    color: #4B0082;
    font-weight: bold;
    margin-bottom: 1em;
}

section.mobile-leadership ul li::before {
    content: "📱 ";
}

section.ai-leadership ul li {
    color: #4B0082;
    font-weight: bold;
    margin-bottom: 1em;
}

section.ai-leadership ul li::before {
    content: "🤖 ";
}

/* Gift Callout Box */
.gift-callout {
    background: rgba(255, 205, 255, 1);
    border: 2px solid #4B0082;
    border-radius: 8px;
    padding: 2em;
    margin: 2em 6em;
    position: relative;
}

.gift-callout h3 {
    color: #4B0082;
    margin-top: 0;
}

/* Media Queries */
@media screen and (min-width: 2000px) {
    .gif-figure {
        max-width: 2000px;
        margin-left: calc((2000px - 100vw) / 2);
        margin-right: calc((2000px - 100vw) / 2);
    }
}

@media screen and (max-width: 1040px) {
    .content-wrapper {
        padding: 0 20px;
    }
}

@media screen and (max-width: 768px) {
    header h1 { font-size: 2em; }
    header h2 { font-size: 1.1em; }
    header p { font-size: 1em; }
    
    section {
        padding: 3em 0;
    }
    
    .rj-nestor-figure {
        float: none;
        display: block;
        margin: 1em auto;
    }
    
    .gift-callout {
        margin: 2em 2em;
    }
    
    /* Video player responsive styles */
    .play-button svg {
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 480px) {
    .content-wrapper {
        padding: 0 15px;
    }
    
    section {
        padding: 2em 0;
    }
    
    .gift-callout {
        margin: 2em 0;
    }
    
    /* Video player responsive styles */
    .play-button svg {
        width: 48px;
        height: 48px;
    }
}