/* Fonts & Container */
.ow-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

/* Left side layout (SVG Column) */
.ow-layout-left {
    flex: 1 1 65%;
    max-width: 725px;
    min-width: 0;
}

.ow-svg-wrapper {
    width: 100%;
    height: auto;
    position: relative;
}

.ow-svg-wrapper svg {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Interactive SVG Groups */
.ow-interactive-group {
    cursor: pointer;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        filter 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center;
}

/* Hover shadow effects for interactive groups */
.ow-interactive-group:hover {
    filter: drop-shadow(0px 8px 16px rgba(89, 75, 158, 0.35));
}

/* Hyperlink SVG Groups */
.ow-link-group {
    cursor: pointer;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.ow-link-group:hover {
    filter: brightness(1.15) drop-shadow(0px 8px 16px rgba(89, 75, 158, 0.2));
    opacity: 0.95;
}

/* Hover opacity control */
.ow-container.has-hover .ow-interactive-group {
    opacity: 0.2;
}

.ow-container.has-hover .ow-interactive-group.is-hovered {
    opacity: 1;
}

/* Clicked/Active opacity control */
.ow-container.has-active .ow-interactive-group {
    opacity: 0.2;
}

.ow-container.has-active .ow-interactive-group.is-active {
    opacity: 1;
}

/* Right side layout (Content Column) */
.ow-layout-right {
    flex: 1 1 35%;
    min-width: 320px;
    max-width: 480px;
    align-self: stretch;
    display: flex;
    align-items: center;
}

/* Common Box Properties */
.ow-detail-box {
    width: 100%;
    min-height: 380px;
    box-sizing: border-box;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* (Placeholder Box Styles removed) */

/* Active Detail Box Styles (Premium glassmorphism and gradient) */
.ow-detail-box {
    background: linear-gradient(45deg, rgba(93, 26, 93, 1) 0%, rgba(34, 33, 77, 1) 100%);
    color: #fff;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: owSlideIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transition: background 0.3s ease;
}

.ow-detail-box.ow-bg-purple {
    background: #5637ab !important;
}

.ow-detail-box.ow-bg-pink {
    background: #ed4596 !important;
}

/* Close button style */
.ow-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    width: 36px;
    height: 36px;
    border-radius: 0% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 !important;
    z-index: 10 !important;
}

/* Detail Header */
.ow-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgb(255 255 255 / 30%);
}

.ow-detail-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ow-detail-icon-img {
    max-width: 32px;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.ow-detail-heading {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

/* Detail Body */
.ow-detail-body {
    font-size: 15px;
    line-height: 1.7;
    color: #fff;
}

.ow-detail-text p {
    margin: 0 0 16px 0;
}

.ow-detail-text p:last-child {
    margin: 0;
}

/* Animations */
@keyframes owSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes owSlideUpMobile {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes owPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ow-container {
        flex-direction: column;
        gap: 20px;
        position: relative;
        padding: 10px;
    }

    .ow-layout-left {
        width: 100%;
        max-width: 100%;
        flex: none !important;
    }

    .ow-layout-right {
        width: 100%;
        max-width: 100%;
        align-self: auto;
        flex: none !important;
    }

    /* Placeholder mobile rules removed */

    /* Detail Box as Popup over SVG */
    .ow-detail-box {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        z-index: 100;
        border-radius: 24px;
        background: rgba(25, 18, 45, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 30px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        animation: owSlideUpMobile 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        min-height: unset;
        overflow-y: auto;
    }

    .ow-detail-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .ow-detail-heading {
        font-size: 22px;
        text-align: center;
    }

    .ow-detail-body {
        font-size: 14px;
    }

    .ow-detail-box.ow-bg-purple {
        background: rgba(86, 55, 171, 0.95) !important;
    }

    .ow-detail-box.ow-bg-pink {
        background: rgba(237, 69, 150, 0.95) !important;
    }
}