.ar-vr-intro-section,
.ar-vr-grid-section {
    --ar-vr-bg: #111326;
    --ar-vr-card-bg-hover: rgba(255, 255, 255, 0.015);
    --ar-vr-text-main: #ffffff;
    --ar-vr-text-muted: #8e9aa8;
    --ar-vr-border: #fff;

    /* Sleek Tech Blue Gradient */
    --ar-vr-blue-gradient: linear-gradient(135deg, #7ba4cc, #4c74b9);
    --ar-vr-blue-solid: #5c90d2;

    position: relative;
    background-color: var(--ar-vr-bg);
    color: var(--ar-vr-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}



.ar-vr-intro-section {
    position: relative;
    z-index: 1;
    padding-bottom: max(8vmin, 70px) !important;
    padding-top: max(8vmin, 70px) !important;
}

/* All other page sections, footers, and page components sit above the video modal (z-index: 100) */
body section:not(.ar-vr-intro-section),
.ar-vr-grid-section,
.site-main>*:not(.ar-vr-intro-section),
.page-below-hero,
.site-footer,
footer {
    position: relative;
    z-index: 100;
    background-color: var(--ar-vr-bg, #111326);
}

.ar-vr-grid-section {
    padding: 3.5rem 0 6rem;
}

/* Background Graphic Overlays (Scoped to Grid Section) */
.ar-vr-bg-graphics {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.ar-vr-bg-graphic-left,
.ar-vr-bg-graphic-right {
    display: none;
}

.ar-vr-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    z-index: 2;
    box-sizing: border-box;
}

.ar-vr-intro-section .ar-vr-container,
.ar-vr-grid-section .ar-vr-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

/* Header Area (Section 1) */
.ar-vr-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 24px;
    box-sizing: border-box;
}

.ar-vr-title {
    font-family:
        "Inter",
        -apple-system,
        "Segoe UI",
        sans-serif;
    text-align: center;
    font-size: clamp(28px, 3.2vw, 54px);
    font-weight: 700;
    margin: 0 0 0 0;
    background: linear-gradient(90deg, #8CB5FF 0%, #FFFFFF 38%, #739CE2 72%, #FFFFFF 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradient-flow 7s ease-in-out infinite;
}

/* Gradient highlight text */
/* .ar-vr-title .highlight,
.ar-vr-card-title .highlight {
    background: var(--ar-vr-blue-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--ar-vr-blue-solid);
    display: inline-block;
} */

/* Media Card / Image Holder (Section 1) */
.ar-vr-media-card {
    max-width: 760px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--ar-vr-border);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    position: relative;
    background-color: #03050b;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease, border-radius 0.3s ease, opacity 0.3s ease;
    transform-origin: center center;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    will-change: transform, border-radius;
}

/* Background Backdrop Overlay for Mouse Expansion */
.ar-vr-expand-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 16, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ar-vr-expand-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Fixed state when expanded to cover screen */
.ar-vr-media-card.is-expanding {
    position: fixed;
    top: 50%;
    left: 50%;
    margin: 0;
    width: 92vw;
    height: 86vh;
    max-width: 1400px;
    max-height: 800px;
    aspect-ratio: auto;
    z-index: 99999;
    border-radius: 24px;
    border-color: rgba(123, 164, 204, 0.6);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 60px rgba(92, 144, 210, 0.4);
    transform: translate(-50%, -50%) scale(1) !important;
}

.ar-vr-media-card .ar-vr-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.ar-vr-media-card .ar-vr-video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: inherit;
}

.ar-vr-media-card.is-expanding .ar-vr-video-player {
    opacity: 1;
}

.ar-vr-media-card.is-expanding .ar-vr-image {
    opacity: 0;
}

.ar-vr-media-card.is-expanding .ar-vr-play-btn {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* Close button on expanded media card */
.ar-vr-card-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ar-vr-media-card.is-expanding .ar-vr-card-close {
    opacity: 1;
    pointer-events: auto;
}

.ar-vr-card-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(90deg);
}

/* Play Button Overlay */
.ar-vr-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
    pointer-events: none;
}

.ar-vr-media-card:hover .ar-vr-play-btn {
    background: rgba(0, 0, 0, 0.45);
}

.ar-vr-play-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111326;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.ar-vr-play-icon svg {
    width: 34px;
    height: 34px;
    margin-left: 4px;
}

.ar-vr-media-card:hover .ar-vr-play-icon {
    transform: scale(1.12);
    background: #ffffff;
    box-shadow: 0 0 35px rgba(92, 144, 210, 0.6), 0 0 0 10px rgba(255, 255, 255, 0.18);
}

/* Video Modal Popup View */
.ar-vr-video-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.ar-vr-video-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.ar-vr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 16, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.ar-vr-modal-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(92, 144, 210, 0.25);
    transform: scale(0.88);
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.ar-vr-video-modal.is-active .ar-vr-modal-container {
    transform: scale(1);
}

.ar-vr-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    line-height: 1;
    padding: 0;
}

.ar-vr-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    transform: rotate(90deg) scale(1.08);
}

.ar-vr-modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Two images: centered, slightly wider */
.ar-vr-media-card:has(.ar-vr-image:nth-child(2)):not(:has(.ar-vr-image:nth-child(3))) {
    max-width: 1080px;
    border-radius: 20px;
    border: 1px solid var(--ar-vr-border);
}

/* Three or more images: full width screen */
.ar-vr-media-card:has(.ar-vr-image:nth-child(3)) {
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    border: none;
}

.ar-vr-image {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ar-vr-grid-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: max(8vmin, 70px) !important;
    padding-top: max(8vmin, 70px) !important;
}

.ar-vr-bg-container {
    position: relative;
    width: 100%;
}

/* Cards Grid Panel (Section 2) */
.ar-vr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, rgba(255, 255, 255, 1.0) 0%, rgba(72, 115, 183, 0.36) 43%, rgba(255, 255, 255, 0.68) 100%) 1;
    background: rgba(0, 0, 0, 0.55);
    position: relative;
}

/* Styling for background video or image inside the grid */
.ar-vr-grid-bg-video,
.ar-vr-grid-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: -1;
    opacity: 1;
}

.ar-vr-card {
    padding: 100px 20%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    transition: background-color 0.4s ease;
    box-sizing: border-box;
    overflow: hidden;
}

/* Micro-interaction on card hover */
.ar-vr-card:hover {
    background-color: var(--ar-vr-card-bg-hover);
}



/* Standard desktop border layout: 
   Row 1: Two cards (split right)
   Row 2: One card (spans 2, top/bottom borders)
   Row 3: Two cards (split right)
*/
.ar-vr-card:nth-child(1) {
    border-right: 1px solid;
    border-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(72, 115, 183, 0.15) 50%, rgba(255, 255, 255, 0.15) 100%) 1;
}

.ar-vr-card:nth-child(3) {
    grid-column: span 2;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, rgba(255, 255, 255, 0.2) 0%, rgba(72, 115, 183, 0.15) 50%, rgba(255, 255, 255, 0.15) 100%) 1;
    padding: 120px 30%;
    align-items: center;
    text-align: center;
}

.ar-vr-card:nth-child(4) {
    border-right: 1px solid;
    border-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(72, 115, 183, 0.15) 50%, rgba(255, 255, 255, 0.15) 100%) 1;
}

/* Card Content Typography */
.ar-vr-card-content {
    position: relative;
    z-index: 2;
}

.ar-vr-card-title {
    font-size: clamp(28px, 3.2vw, 38px) !important;
    line-height: 1.25 !important;
    margin-top: clamp(1rem, 5vh, 5rem) !important;
    margin-bottom: 1.5rem !important;
    background: linear-gradient(90deg, #8CB5FF 0%, #FFFFFF 38%, #739CE2 72%, #FFFFFF 100%) !important;
    background-size: 220% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    animation: gradient-flow 7s ease-in-out infinite !important;
}

.ar-vr-card-desc {
    font-size: clamp(14px, 1.6vw, 20px);
    line-height: 1.7;
    color: var(--ar-vr-text-muted);
    margin: 0;
    font-weight: 400;
}

/* CTA Bottom Area (Section 2) */
.ar-vr-action {
    text-align: center;
    margin-top: 3.5rem;
}

.ar-vr-btn {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: clamp(10px, 0.9vw, 14px) clamp(24px, 2.2vw, 38px) !important;
    font-size: clamp(14px, 1vw, 16px) !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 5px !important;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.4s ease-out;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.ar-vr-btn:hover {
    background: linear-gradient(120deg, #1b1c4e 0%, #ffffff 100%) !important;
    background-size: 200% 200% !important;
    color: #FFFFFF !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 17, 37, 0.4);
}

.ar-vr-btn:active {
    transform: translateY(0);
}

/* Responsive Design & Mobile Tuning */
@media (max-width: 1200px) {
    .ar-vr-card {
        padding: 80px 15%;
    }

    .ar-vr-card:nth-child(3) {
        padding: 100px 15%;
    }
}

@media (max-width: 991px) {
    .ar-vr-card {
        padding: 60px 10%;
    }

    .ar-vr-card:nth-child(3) {
        padding: 80px 10%;
    }
}

@media (max-width: 767px) {
    .ar-vr-intro-section {
        padding: 60px 0 30px;
    }

    .ar-vr-grid-section {
        padding: 30px 0 60px;
    }

    .ar-vr-media-card {
        max-width: calc(100% - 32px);
        margin: 0 auto;
        border-radius: 12px;
        flex-direction: column;
        aspect-ratio: auto;
        height: auto;
    }

    .ar-vr-media-card:has(.ar-vr-image:nth-child(3)) {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        border: none;
        /* border-right: none; */
    }

    .ar-vr-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .ar-vr-grid {
        grid-template-columns: 1fr;
        border-bottom: none;
    }

    /* Remove vertical desktop borders and add stacking horizontal bottom borders */
    .ar-vr-card {
        grid-column: span 1 !important;
        border-right: none !important;
        border-bottom: 1px solid var(--ar-vr-border) !important;
        padding: 40px 24px !important;
    }

    /* Normalize row 2 borders for mobile */
    .ar-vr-card:nth-child(3) {
        border-top: none !important;
        border-bottom: 1px solid var(--ar-vr-border) !important;
        padding: 40px 24px !important;
    }

    /* Remove border on the last item */
    .ar-vr-card:last-child {
        border-bottom: none !important;
    }

    .ar-vr-btn {
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
        margin-top: 2rem;
    }

    .ar-vr-bg-graphic-left {
        width: 300px;
        height: 300px;
    }

    .ar-vr-bg-graphic-right {
        width: 350px;
        height: 350px;
    }
}