/**
 * BeTheme Child - Content Widget Styles
 * Version: 1.0.0
 */

/* ========== BASE WRAPPER STYLES ========== */
.content-widget-wrapper {
    display: flex;
    width: 100%;
    position: relative;
}

.content-widget-content,
.content-widget-media {
    position: relative;
}

/* ========== LAYOUT: SIDE BY SIDE ========== */
.content-widget-wrapper.layout-side-by-side {
    flex-direction: row;
    align-items: center;
}

.content-widget-wrapper.layout-side-by-side.content-right {
    flex-direction: row-reverse;
}

.content-widget-content-wrapper,
.content-widget-media-wrapper {
    display: block;
}

/* ========== LAYOUT: STACKED ========== */
.content-widget-wrapper.layout-stacked {
    flex-direction: column;
}

/* ========== LAYOUT: OVERLAY ========== */
.content-widget-wrapper.layout-overlay {
    position: relative;
}

.content-widget-wrapper.layout-overlay .content-widget-content {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px;
}

.content-widget-wrapper.layout-overlay .content-widget-media {
    width: 100%;
}

/* ========== LAYOUT: CONTAINED ========== */
.content-widget-wrapper.layout-contained {
    flex-direction: row;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.content-widget-wrapper.layout-contained .content-widget-content {
    padding: 40px;
}

/* ========== CONTENT STYLES ========== */
.content-widget-content {
    display: flex;
    flex-direction: column;
}

.content-widget-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.content-widget-subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #667eea;
    margin: 0 0 15px 0;
}

.content-widget-description {
    font-size: 16px;
    line-height: 1.8;
    color: #5a6c7d;
    margin: 0 0 30px 0;
}

.content-widget-description p {
    margin-bottom: 15px;
}

.content-widget-description p:last-child {
    margin-bottom: 0;
}

/* ========== BUTTON STYLES ========== */
.content-widget-buttons {
    display: flex;
    flex-wrap: nowrap; /* Keep buttons inline on desktop */
    align-items: center;
}

.content-widget-button,
.content-widget-button-2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #667eea;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}

.content-widget-button:hover,
.content-widget-button-2:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.content-widget-button .button-icon,
.content-widget-button-2 .button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 18px; /* Default size */
}

.content-widget-button .button-icon svg,
.content-widget-button-2 .button-icon svg {
    width: 1em;
    height: 1em;
}

.content-widget-button .button-icon i,
.content-widget-button-2 .button-icon i {
    font-size: inherit;
    line-height: 1;
}

.content-widget-button .button-text,
.content-widget-button-2 .button-text {
    display: inline-block;
    line-height: 1;
}

/* Default second button style (outline) */
.content-widget-button-2 {
    background-color: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.content-widget-button-2:hover {
    background-color: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

/* ========== MEDIA BASE STYLES ========== */
.content-widget-media {
    width: 100%;
}

.content-widget-media-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.content-widget-media-inner img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* ========== MEDIA TYPE: SINGLE IMAGE ========== */
.media-type-single-image img {
    border-radius: 8px;
    object-fit: cover;
    object-position: center center;
}

/* Ensure images don't get distorted when height is set */
.content-widget-media-inner.media-type-single-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== MEDIA TYPE: OVERLAPPING IMAGES ========== */
.overlapping-images {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    min-height: 400px;
}

.overlap-image {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.overlap-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlap-image-back {
    width: 70%;
    height: 70%;
    z-index: 1;
}

.overlap-image-front {
    width: 60%;
    height: 60%;
    z-index: 2;
}

/* Overlap Position Variations */
.overlapping-images.overlap-top-left .overlap-image-back {
    top: 0;
    left: 0;
}

.overlapping-images.overlap-top-left .overlap-image-front {
    bottom: 0;
    right: 0;
}

.overlapping-images.overlap-top-right .overlap-image-back {
    top: 0;
    right: 0;
}

.overlapping-images.overlap-top-right .overlap-image-front {
    bottom: 0;
    left: 0;
}

.overlapping-images.overlap-bottom-left .overlap-image-back {
    bottom: 0;
    left: 0;
}

.overlapping-images.overlap-bottom-left .overlap-image-front {
    top: 0;
    right: 0;
}

.overlapping-images.overlap-bottom-right .overlap-image-back {
    bottom: 0;
    right: 0;
}

.overlapping-images.overlap-bottom-right .overlap-image-front {
    top: 0;
    left: 0;
}

/* ========== MEDIA TYPE: CAROUSEL ========== */
.content-widget-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* ========== MEDIA TYPE: VIDEO ========== */
.content-widget-video,
.media-type-video iframe {
    width: 100%;
    height: auto;
    min-height: 400px;
    border-radius: 12px;
}

/* ========== MEDIA TYPE: STACKED IMAGES ========== */
.stacked-images {
    position: relative;
    width: 100%;
    padding-bottom: 80%;
    min-height: 450px;
}

.stacked-image {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.stacked-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stacked-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.stacked-image-1 {
    width: 50%;
    height: 50%;
    top: 0;
    left: 0;
    z-index: 3;
}

.stacked-image-2 {
    width: 55%;
    height: 55%;
    top: 25%;
    left: 25%;
    z-index: 2;
}

.stacked-image-3 {
    width: 60%;
    height: 60%;
    top: 40%;
    left: 40%;
    z-index: 1;
}

/* ========== MEDIA TYPE: ICON BOX ========== */
.icon-box-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
}

.icon-box-large svg,
.icon-box-large i {
    font-size: 150px;
    color: rgba(255, 255, 255, 0.9);
}

/* ========== MEDIA TYPE: GRADIENT SHAPE ========== */
.gradient-shape {
    width: 100%;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-shape.shape-circle {
    border-radius: 50%;
    aspect-ratio: 1;
}

.gradient-shape.shape-rounded {
    border-radius: 30px;
}

.gradient-shape.shape-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.gradient-shape.shape-blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph 8s ease-in-out infinite;
}

@keyframes blob-morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* ========== RESPONSIVE STYLES ========== */

/* Tablet */
@media (max-width: 1024px) {
    .content-widget-wrapper.layout-side-by-side .content-widget-content-wrapper,
    .content-widget-wrapper.layout-side-by-side .content-widget-media-wrapper {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .content-widget-wrapper.layout-side-by-side,
    .content-widget-wrapper.layout-side-by-side.content-right,
    .content-widget-wrapper.layout-contained {
        flex-direction: column !important;
    }
    
    .content-widget-title {
        font-size: 32px;
    }
    
    .content-widget-description {
        font-size: 15px;
    }
    
    .content-widget-buttons {
        flex-wrap: wrap; /* Allow wrapping on tablet if needed */
    }
    
    .content-widget-button,
    .content-widget-button-2 {
        white-space: normal; /* Allow text wrapping on smaller screens */
    }
    
    /* Fix image responsiveness on tablet */
    .content-widget-media-inner img {
        width: 100% !important;
        height: auto !important;
        max-height: 500px;
        object-fit: cover;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .icon-box-large svg,
    .icon-box-large i {
        font-size: 120px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .content-widget-wrapper.layout-side-by-side,
    .content-widget-wrapper.layout-side-by-side.content-right,
    .content-widget-wrapper.layout-contained {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .content-widget-wrapper.layout-side-by-side .content-widget-content-wrapper,
    .content-widget-wrapper.layout-side-by-side .content-widget-media-wrapper,
    .content-widget-wrapper.layout-side-by-side .content-widget-content,
    .content-widget-wrapper.layout-side-by-side .content-widget-media {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .content-widget-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .content-widget-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .content-widget-description {
        font-size: 14px;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .content-widget-button,
    .content-widget-button-2 {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
        white-space: normal;
    }
    
    .content-widget-buttons {
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        gap: 12px !important;
    }
    
    /* Fix image responsiveness on mobile */
    .content-widget-media-inner img {
        width: 100% !important;
        height: auto !important;
        max-height: 400px;
        object-fit: cover;
    }
    
    .content-widget-wrapper.layout-overlay .content-widget-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .content-widget-wrapper.layout-contained .content-widget-content {
        padding: 30px 20px;
    }
    
    .overlapping-images {
        min-height: 300px;
        padding-bottom: 100%;
    }
    
    .stacked-images {
        min-height: 350px;
        padding-bottom: 100%;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .icon-box-large {
        min-height: 300px;
    }
    
    .icon-box-large svg,
    .icon-box-large i {
        font-size: 100px;
    }
    
    .gradient-shape {
        min-height: 350px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .content-widget-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .content-widget-subtitle {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .content-widget-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .content-widget-button,
    .content-widget-button-2 {
        padding: 12px 20px;
        font-size: 13px;
        gap: 8px;
    }
    
    .content-widget-buttons {
        gap: 10px !important;
    }
    
    /* Fix image responsiveness on small mobile */
    .content-widget-media-inner img {
        max-height: 300px;
    }
    
    .overlapping-images {
        min-height: 250px;
    }
    
    .stacked-images {
        min-height: 280px;
    }
    
    .icon-box-large {
        min-height: 250px;
    }
    
    .icon-box-large svg,
    .icon-box-large i {
        font-size: 80px;
    }
    
    .gradient-shape {
        min-height: 300px;
    }
}

/* ========== UTILITY CLASSES ========== */
.content-widget-wrapper.no-gap {
    gap: 0 !important;
}

.content-widget-content.text-center {
    align-items: center;
    text-align: center;
}

.content-widget-content.text-center .content-widget-button {
    align-self: center;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.elementor-widget-content-widget.elementor-widget {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== PRINT STYLES ========== */
@media print {
    .content-widget-wrapper {
        page-break-inside: avoid;
    }
    
    .carousel-nav {
        display: none;
    }
}

/* ========== COMPLETION PROGRESS WIDGET ========== */

/* Arrow View */
.completion-arrow-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0;
    align-items: center;
}

.completion-arrow-item {
    position: relative;
    flex: 1 1 0;
    min-width: 200px;
    height: 80px;
    margin-left: -100px; /* Overlap to connect arrows based on SVG shape */
}

.completion-arrow-item:first-child {
    margin-left: 0;
}

.completion-arrow-item .arrow-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.completion-arrow-item .arrow-content {
    position: absolute;
    top: 0;
    left: 80px;
    right: 100px;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.completion-arrow-item .completion-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    line-height: 1;
}

/* List View */
.completion-list-view {
    width: 100%;
}

.completion-list {
    width: 100%;
}

.completion-list-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #E0E0E0;
}

.completion-list-item:last-child {
    border-bottom: none;
}

.completion-list-item .completion-percentage {
    flex: 0 0 80px;
    font-size: 24px;
    font-weight: 700;
    color: #00A896;
    line-height: 1.2;
}

.completion-list-item .completion-description {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .completion-arrow-container {
        flex-direction: column;
        gap: 15px !important;
    }
    
    .completion-arrow-item {
        width: 100% !important;
        flex: 1 1 100% !important;
        margin-left: 0 !important;
        min-width: 100%;
        height: 70px;
    }
    
    .completion-arrow-item .arrow-content {
        left: 60px;
        right: 80px;
    }
    
    .completion-arrow-item .completion-title {
        font-size: 15px;
        letter-spacing: 1px;
    }
    
    .completion-list-item {
        padding: 18px 0;
    }
    
    .completion-list-item .completion-percentage {
        flex: 0 0 70px;
        font-size: 22px;
    }
    
    .completion-list-item .completion-description {
        font-size: 14px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .completion-arrow-container {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .completion-arrow-item {
        width: 100% !important;
        flex: 1 1 100% !important;
        margin-left: 0 !important;
        min-width: 100%;
        height: 60px;
    }
    
    .completion-arrow-item .arrow-content {
        left: 40px;
        right: 60px;
    }
    
    .completion-arrow-item .completion-title {
        font-size: 13px;
        letter-spacing: 0.5px;
        white-space: normal;
        line-height: 1.2;
    }
    
    .completion-list-item {
        flex-direction: column;
        padding: 15px 0;
        gap: 8px;
    }
    
    .completion-list-item .completion-percentage {
        flex: 0 0 auto;
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .completion-list-item .completion-description {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .completion-arrow-item {
        height: 50px;
    }
    
    .completion-arrow-item .arrow-content {
        left: 30px;
        right: 50px;
    }
    
    .completion-arrow-item .completion-title {
        font-size: 11px;
        letter-spacing: 0.3px;
    }
    
    .completion-list-item {
        padding: 12px 0;
    }
    
    .completion-list-item .completion-percentage {
        font-size: 18px;
    }
    
    .completion-list-item .completion-description {
        font-size: 12px;
    }
}

/* ========== CTA BANNER WIDGET ========== */

/* Base CTA Styles */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    gap: 30px;
    background-color: #ffffff;
}

.cta-banner.button-bottom {
    flex-direction: column;
    align-items: stretch;
}

.cta-banner.align-center {
    text-align: center;
}

.cta-banner.align-center .cta-content {
    align-items: center;
}

.cta-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.cta-description {
    font-size: 15px;
    line-height: 1.6;
    color: #7f8c8d;
    margin: 0;
}

.cta-button-wrapper {
    flex-shrink: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.cta-button .button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cta-button .button-icon svg,
.cta-button .button-icon i {
    width: 1em;
    height: 1em;
}

/* Style 1 - Border Box */
.cta-banner.cta-style-1 {
    border: 2px solid #c49b63;
    background-color: #ffffff;
}

/* Style 2 - Filled Background */
.cta-banner.cta-style-2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-banner.cta-style-2 .cta-title {
    color: #ffffff;
}

.cta-banner.cta-style-2 .cta-description {
    color: rgba(255, 255, 255, 0.9);
}

.cta-banner.cta-style-2 .cta-button {
    background: #ffffff;
    color: #667eea;
}

.cta-banner.cta-style-2 .cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Style 3 - Shadow Card */
.cta-banner.cta-style-3 {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background-color: #ffffff;
}

/* Style 4 - Gradient Background */
.cta-banner.cta-style-4 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
}

.cta-banner.cta-style-4 .cta-title {
    color: #ffffff;
}

.cta-banner.cta-style-4 .cta-description {
    color: rgba(255, 255, 255, 0.95);
}

.cta-banner.cta-style-4 .cta-button {
    background: #ffffff;
    color: #f5576c;
}

/* Style 5 - Outlined Button */
.cta-banner.cta-style-5 {
    border: 2px solid #e0e0e0;
    background-color: #f8f9fa;
}

.cta-banner.cta-style-5 .cta-button {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.cta-banner.cta-style-5 .cta-button:hover {
    background: #667eea;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        padding: 25px 20px;
        text-align: center;
    }
    
    .cta-banner .cta-content {
        align-items: center;
    }
    
    .cta-banner .cta-button {
        width: 100%;
    }
    
    .cta-title {
        font-size: 20px;
    }
    
    .cta-description {
        font-size: 14px;
    }
}

/* ========== VIDEO BUTTON WIDGET ========== */

.video-button-wrapper {
    width: 100%;
}

.video-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.video-button:hover {
    transform: translateY(-2px);
}

.video-button .button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.video-button .button-icon svg {
    width: 1em;
    height: 1em;
}

.video-button .button-text {
    line-height: 1;
}

/* Video Modal */
.video-modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 90%;
    max-height: 90vh;
    background: transparent;
    animation: scaleIn 0.3s ease;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    z-index: 100;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.video-modal-close:hover {
    opacity: 0.7;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .video-modal-content {
        max-width: 95%;
    }
    
    .video-modal-close {
        top: -40px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .video-button {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* ========== HEADER MENU BURGER LANGUAGE SWITCHER ========== */
.mfn-header-tmpl-menu-sidebar-wrapper {
    position: relative;
}

.mfn-header-language-switcher {
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 100;
    padding: 0;
    margin: 0;
}

.mfn-header-language-switcher * {
    margin: 0;
}

.mfn-header-language-switcher a {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 2px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.mfn-header-language-switcher a:hover {
    opacity: 0.7;
}

/* Adjust close icon to make room if needed */
.mfn-header-tmpl-menu-sidebar-wrapper .mfn-close-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 100;
}

/* Adjust menu content to account for top items */
.mfn-header-tmpl-menu-sidebar-wrapper .mfn-header-menu {
    padding-top: 80px;
}

