.sdw-card-body { 
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 800px; 
    width: 100%; 
    overflow: hidden; 
    background-color: #f8f9fa; 
    padding: 2rem; 
}

#sdw-interactive-container { 
    position: relative; 
    width: 700px; 
    height: 700px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

#sdw-center-logo { 
    position: absolute; 
    z-index: 10; 
    width: 180px; 
    height: 180px; 
    border-radius: 50%; 
    background-color: #ffffff; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    cursor: default; 
    border: 6px solid rgb(57, 192, 237); 
    transition: transform 0.3s ease; 
}

#sdw-center-logo img { 
    width: 75px; 
    height: auto; 
    margin-bottom: 8px; 
}

#sdw-center-logo h4 { 
    margin: 0; 
    font-family: 'Oswald', sans-serif; 
    color: #333; 
    font-size: 1.8rem; 
}

#sdw-orbit-container {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: simple-rotate 45s linear infinite;
}

#sdw-interactive-container:hover #sdw-orbit-container {
    animation-play-state: paused;
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: 
        translate(-50%, -50%) 
        rotate(var(--angle)) 
        translateY(-300px);
}

.cell-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    cursor: pointer;
    transform: rotate(calc(-1 * var(--angle)));
    animation: counter-rotate 45s linear infinite;
}

@keyframes counter-rotate {
    from { transform: rotate(calc(-1 * var(--angle) + 0deg)); }
    to { transform: rotate(calc(-1 * var(--angle) + -360deg)); }
}

#sdw-interactive-container:hover .cell-card {
    animation-play-state: paused;
}


.cell-logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px;
}

.cell-logo:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgb(50, 173, 214);
}

.cell-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    pointer-events: none;
}

/* Styles for inline SVG cells */
.cell-svg {
    width: 100px;
    height: 100px;
    display: block;
    pointer-events: none;
}

/* Load Montserrat for SVG/text */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');

/* SVG text default styling */
.cell-svg text {
    font-family: 'Montserrat', 'Oswald', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    fill: #222;
}

/* tspan lines spacing is handled inside the SVG via dy; ensure text renders crisply */
.cell-svg text tspan { dominant-baseline: middle; }

/* Center SDW SVG */
#sdw-center-logo svg,#sdw-center-svg {
    width: 140px;
    height: 140px;
    display: block;
}

#sdw-center-svg text { font-family: 'Montserrat', 'Oswald', 'Helvetica Neue', Arial, sans-serif; font-weight: 700; fill: #222; }

.cell-text {
    text-align: center;
}

.cell-text p {
    font-size: 0.85rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

@keyframes simple-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sdw-modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 1050; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease; 
}

.sdw-modal-overlay.show { 
    opacity: 1; 
    visibility: visible; 
}

.sdw-modal-content { 
    background: #fff; 
    padding: 30px 40px; 
    border-radius: 8px; 
    width: 90%; 
    max-width: 800px; 
    max-height: 90vh; 
    overflow-y: auto; 
    position: relative; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); 
    transform: scale(0.95); 
    transition: transform 0.3s ease; 
}

.sdw-modal-overlay.show .sdw-modal-content { 
    transform: scale(1); 
}

#sdw-modal-close-button { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 2.5rem; 
    font-weight: bold; 
    color: #888; 
    cursor: pointer; 
    line-height: 1; 
    transition: color 0.2s ease; 
}

#sdw-modal-close-button:hover { 
    color: #333; 
}

#sdw-modal-body-content .row { 
    align-items: center; 
}

#sdw-modal-body-content img.img-fluid { 
    height: 200px; 
    width: auto; 
    max-width: 100%; 
    object-fit: cover; 
    border-radius: 8px; 
    margin: 0 auto 1rem; 
    display: block; 
}

#sdw-modal-body-content h4 { 
    color: rgb(57, 192, 237); 
    font-family: 'Oswald', sans-serif; 
    margin-bottom: 20px; 
    padding-bottom: 10px; 
    border-bottom: 2px solid #eee; 
}

#sdw-modal-body-content h5 { 
    margin-top: 20px; 
    color: #333; 
}

/* Responsive Design */
@media (max-width: 768px) { 
    .sdw-card-body { min-height: 650px; } 
    #sdw-interactive-container { width: 550px; height: 550px; } 
    #sdw-center-logo { width: 150px; height: 150px; } 
    #sdw-center-logo img { width: 60px; } 
    #sdw-center-logo h4 { font-size: 1.5rem; } 
    .orbit-item { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-225px); }
    .cell-card { width: 100px; }
    .cell-logo { width: 100px; height: 100px; } 
    .cell-logo img { width: 45px; height: 45px; } 
    .cell-svg { width: 45px; height: 45px; }
    .cell-text p { font-size: 0.8rem; } 
}

@media (max-width: 480px) { 
    .sdw-card-body { min-height: 550px; } 
    #sdw-interactive-container { width: 400px; height: 400px; } 
    #sdw-center-logo { width: 120px; height: 120px; } 
    #sdw-center-logo img { width: 45px; } 
    #sdw-center-logo h4 { font-size: 1.2rem; } 
    .orbit-item { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-150px); }
    .cell-card { width: 80px; }
    .cell-logo { width: 80px; height: 80px; } 
    .cell-logo img { width: 35px; height: 35px; } 
    .cell-svg { width: 35px; height: 35px; }
    .cell-text p { font-size: 0.7rem; } 
}
