:root {
    --black: #000000;
    --white: #ffffff;
    --soft-grey: #f4f4f4;
    --border-light: #e0e0e0;
    --text-muted: #555555;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

.premium-masterclass {
    padding: 50px 20px;
    background-color: var(--white);
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styling */
.intro-block {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Poppins', 'sans-serif';
    font-size: 3rem;
    color: var(--black);
    margin-bottom: 25px;
    letter-spacing: -1px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

/* Grid & Positioning */
.grid-wrapper {
    display: flex;
    justify-content: center;
}

/* The Luxe Card */
.luxe-card {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border: 1px solid var(--border-light);
    transition: var(--ease) 0.4s;
    overflow: hidden;
    border-radius: 15px;
}

.luxe-card:hover {
    border-color: var(--black);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    transform: translateY(-10px);
    cursor: pointer;
}

/* Image Handling */
.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--soft-grey);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.luxe-card:hover .image-container img {
    transform: scale(1.08);
}

/* Content Area */
.card-details {
    padding: 40px;
    text-align: center;
}

/* Added Course Language Styling */
.course-language {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.course-heading {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.course-text {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 35px;
}

/* The Premium Button */
.btn-premium {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid var(--black);
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: all 0.3s var(--ease);
}

.btn-premium:hover {
    background: var(--black);
    color: var(--white);
}

/* Responsive Tweak */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .card-details {
        padding: 30px 20px;
    }
}

/* =========================================
   AFC BULLETPROOF VIDEO MODAL
   ========================================= */

/* Locks the background scroll */
body.afc-no-scroll { overflow: hidden; }

/* Modal Container */
#afc-video-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 999999; /* Stays above the sticky header */
    display: flex; justify-content: center; align-items: center;
    opacity: 1; transition: opacity 0.4s ease, visibility 0.4s ease;
}

#afc-video-modal.afc-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Blurred Overlay */
.afc-modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

/* Content Box (16:9) */
.afc-modal-content {
    position: relative;
    width: 90%;
    max-width: 950px;
    aspect-ratio: 16 / 9; /* Modern, perfect 16:9 ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    z-index: 2;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#afc-video-modal.afc-hidden .afc-modal-content {
    transform: scale(0.95);
}

/* YouTube Iframe Wrapper */
.afc-yt-iframe-wrapper {
    width: 100%; height: 100%;
    /* Prevents clicking the video to pause BEFORE they unmute */
    pointer-events: none; 
}
.afc-yt-iframe-wrapper iframe {
    width: 100%; height: 100%; border: none;
}

/* Close Button - Pinned to Window Top Right */
.afc-close-btn {
    position: fixed; /* Fixed relative to window */
    top: 25px; right: 30px;
    width: 45px; height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff; font-size: 32px; line-height: 1;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    cursor: pointer; z-index: 999999;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    padding: 0; margin: 0;
}
.afc-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Unmute Button - Pinned to Bottom Left of Video */
.afc-unmute-btn {
    position: absolute;
    bottom: 30px; left: 30px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600;
    padding: 12px 24px; border-radius: 50px;
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    animation: afc-pulse 2s infinite;
}
.afc-unmute-btn i { font-size: 20px; }
.afc-unmute-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}
.afc-unmute-btn.afc-hidden { display: none; } /* Hides button when unmuted */

@keyframes afc-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
    70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (max-width: 768px) {
    .afc-close-btn { top: 15px; right: 15px; width: 35px; height: 35px; font-size: 24px; }
    .afc-unmute-btn { bottom: 15px; left: 15px; padding: 8px 16px; font-size: 13px; }
}