/* ============================================================
   ACADEMY LUXURY MEDIA & VIDEO PLAYER (PARALLAX SAFE)
============================================================ */

/* Brand & Player Variables */
:root {
    --theme-blue: #123B8F;
    --luxury-gold: #D6B56A;
    --luxury-gold-soft: #E8D39A;
    --luxury-gold-glow: rgba(214, 181, 106, 0.28);
    --luxury-blue-glow: rgba(18, 59, 143, 0.22);

    /* Plyr Theme Overrides */
    --plyr-color-main: #D6B56A;
    --plyr-video-background: #0d0f12;
    --plyr-video-controls-background: linear-gradient(rgba(0, 0, 0, 0), rgba(10, 12, 16, 0.88));
    --plyr-video-control-color: #f1f5f9;
    --plyr-video-control-color-hover: #ffffff;
    --plyr-badge-text-color: #0d0f12;
    --plyr-range-thumb-height: 14px;
    --plyr-range-thumb-background: #ffffff;
    --plyr-range-thumb-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    --plyr-control-radius: 12px;
}

/* ------------------------------------------------------------
   Airy & Soft Gold-Dominant Backlight with Blue Accent-
------------------------------------------------------------ */
.service-details-thumb {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 30px auto 50px auto;
    overflow: hidden !important; 
    background: #000;
padding: 6px;
/* ADD OR UPDATE THESE PROPERTIES: */
    border: 2px solid #D6B56A; /* Subtle gold rim */
    border-radius: 18px;
    /* Optional: An inner 'inner-glow' highlights the bezel edge */
       box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3), /* Deep shadow */
        inset 0 0 0 1px rgba(255, 255, 255, 0.2); /* The inner "metallic bevel" shine */
    
    overflow: hidden; /* Keeps the video inside the frame */
    transition: all 0.4s ease;
}

/* Hover: Elegant slight shimmer, remains soft */
.service-details-thumb:hover {
    transform: translateY(-4px);
    border-color: #fff; /* Border turns bright white on hover */
    box-shadow: 
        0 25px 50px rgba(18, 59, 143, 0.25),
        inset 0 0 0 1px rgba(214, 181, 106, 0.5);
}


/* ------------------------------------------------------------
   2. Parallax Image (Full aspect fit, zero overflow leaks)
------------------------------------------------------------ */
.service-details-thumb img.luxury-media-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 18px;
    box-shadow: none !important; /* Clean shadow inheritance from parent */
}

/* ------------------------------------------------------------
   3. Video Card & Plyr Player
------------------------------------------------------------ */
.luxury-video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #0d0f12;
}

.luxury-video-card .plyr,
.service-details-thumb .plyr {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
}

.luxury-video-card .plyr video,
.service-details-thumb .plyr video {
    object-fit: cover;
}

/* Big Center Play Button Glow */
.plyr--video .plyr__control--overlaid {
    background: rgba(214, 181, 106, 0.92) !important;
    box-shadow: 0 0 30px rgba(214, 181, 106, 0.55);
    backdrop-filter: blur(8px);
    padding: 22px;
    transform: translate(-50%, -50%) scale(1) !important;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.35s ease, 
                background 0.35s ease !important;
}

.plyr--video .plyr__control--overlaid:hover,
.plyr--video .plyr__control--overlaid:focus {
    transform: translate(-50%, -50%) scale(1.08) !important;
    background: #D6B56A !important;
    box-shadow: 0 0 45px rgba(214, 181, 106, 0.85) !important;
}

/* Floating Bottom Controls */
.plyr--video .plyr__controls {
    padding: 16px 22px !important;
    backdrop-filter: blur(10px);
}

/* ------------------------------------------------------------
   4. Mobile Responsive
------------------------------------------------------------ */
@media (max-width: 768px) {
    .service-details-thumb {
        border-radius: 14px !important;
        margin-bottom: 25px;
    }
    
    .service-details-thumb img.luxury-media-img,
    .luxury-video-card,
    .luxury-video-card .plyr {
        border-radius: 14px !important;
        aspect-ratio: 16 / 10;
    }
}
/* ============================================================
   LUXURY EDITORIAL STYLING FOR DYNAMIC CKEDITOR CONTENT
   ============================================================ */

/* 1. Subtle ambient stage behind the whole content area */
.academy-editorial-wrapper {
    position: relative;
    max-width: 960px;
    margin: 40px auto 70px auto;
    padding: 40px 45px;
    background: #ffffff;
    border-radius: 20px;
    /* Soft elevation + frosted ambient feel */
    border: 1px solid rgba(214, 181, 106, 0.22);
    box-shadow: 
        0 15px 40px rgba(18, 59, 143, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.02);
    direction: rtl;
    text-align: right;
}

/* Subtle decorative gold top-accent line */
.academy-editorial-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D6B56A, transparent);
    border-radius: 3px;
}

/* 2. Intro Paragraph / First Line Treatment */
.academy-content-body > p:first-of-type {
    font-size: 1.15rem;
    font-weight: 600;
    color: #123B8F; /* Brand Royal Blue */
    line-height: 2.1;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(214, 181, 106, 0.35);
}

/* Standard Paragraphs */
.academy-content-body p {
    font-size: 1rem;
    line-height: 2.2;
    color: #3b4252;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}

/* 3. Automatic Transformation of Bullet Lists (<ul> <li>) into Luxury Pillars */
.academy-content-body ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 25px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.academy-content-body ul li {
    position: relative;
    padding: 16px 22px 16px 45px !important; /* extra right padding for RTL gold bullet */
    background: #fbfbfd;
    border-radius: 12px;
    border-right: 3.5px solid #D6B56A; /* Warm gold vertical pill */
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    border-left: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 0.98rem;
    line-height: 1.9;
    color: #2c3345;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover on list item: micro-lift & glow */
.academy-content-body ul li:hover {
    background: #ffffff;
    border-right-color: #123B8F; /* Shifts to brand blue */
    box-shadow: 0 8px 20px rgba(18, 59, 143, 0.08);
    transform: translateX(-4px); /* subtle RTL nudge */
}

/* 4. Highlighted Bold Text (CKEditor <strong> or <b>) */
.academy-content-body strong,
.academy-content-body b {
    color: #123B8F;
    font-weight: 700;
    margin-left: 4px;
}

/* 5. Headings if used in CKEditor (H2, H3, H4) */
.academy-content-body h2,
.academy-content-body h3,
.academy-content-body h4 {
    color: #123B8F;
    font-weight: 800;
    margin-top: 35px;
    margin-bottom: 16px;
    position: relative;
}

.academy-content-body h2 {
    font-size: 1.5rem;
}
.academy-content-body h3 {
    font-size: 1.25rem;
}

/* Mobile responsive padding */
@media (max-width: 768px) {
    .academy-editorial-wrapper {
        padding: 24px 18px;
        margin: 25px 15px 50px 15px;
        border-radius: 14px;
    }
    .academy-content-body ul li {
        padding: 14px 16px !important;
        font-size: 0.92rem;
    }
}
