/* 
  법무사 여환동 사무소 - 메인 홈 CSS
*/

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url('../assets/hero_bg.jpg') no-repeat center center;
    background-size: cover;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-video-bg.playing {
    opacity: 1;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.40); /* Premium Dark Overlay with 40% opacity */
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    z-index: 2;
}

.hero-content {
    opacity: 1;
    max-width: 820px;
}

.badge-gold {
    display: inline-block;
    padding: 2px 0 2px 12px;
    background: none;
    border: none;
    border-left: 3px solid #dfb249; /* Premium Gold border */
    border-radius: 0;
    color: #dfb249; /* Premium Gold text */
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.8s forwards ease-out 0.2s;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #ffffff;
    word-break: keep-all;
    overflow-wrap: break-word;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards ease-out 0.5s;
}

.hero-title span.glow-blue {
    color: #ffffff;
}

.hero-title span.glow-gold {
    color: #dfb249; /* Premium Gold text */
    display: inline-block;
    text-shadow: 0 0 10px rgba(223, 178, 73, 0.25);
}

.hero-desc {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 580px;
    line-height: 1.75;
    word-break: keep-all;
    overflow-wrap: break-word;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards ease-out 0.8s;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.8s forwards ease-out 1.1s;
}

.btn-primary {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    background: #121212;
    border: 1px solid #121212;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(18, 18, 18, 0.15);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
    color: #ffffff;
}

/* Custom styling for Hero section buttons to match Premium Executive Dark Look */
.hero .btn-primary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
    padding: 16px 36px;
    font-size: 1.125rem;
}

.hero .btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #dfb249;
    color: #dfb249;
    box-shadow: 0 6px 20px rgba(223, 178, 73, 0.15);
}

.btn-secondary {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.1);
}

.hero .btn-secondary {
    display: none !important;
}

.btn-secondary.active {
    background: #f8f9fa;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}


.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
    width: 380px;
    height: 380px;
}

.brutalist-graphic-container {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.orbit-ring-1 {
    width: 330px;
    height: 330px;
    border: 2px dashed rgba(223, 178, 73, 0.25); /* Subtle Gold Orbit */
    animation: rotateCW 40s linear infinite;
}

.orbit-ring-2 {
    width: 260px;
    height: 260px;
    border: 1px dashed rgba(223, 178, 73, 0.12); /* Subtle Gold Orbit */
    animation: rotateCCW 25s linear infinite;
}

.graphic-center-core {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: linear-gradient(135deg, #121212 0%, #2a2a2a 100%);
    border: 1px solid #333333;
    box-shadow: var(--glass-shadow);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: var(--transition-smooth);
}

.graphic-center-core::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transform: scale(1);
    transition: all 0.4s ease;
    z-index: -1;
}

.brutalist-graphic-container.node-hovered .graphic-center-core::before {
    animation: corePulse 1.8s infinite ease-in-out;
}

.brutalist-graphic-container:hover .graphic-center-core {
    transform: scale(1.03);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.law-scale {
    position: relative;
    width: 110px;
    height: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brutalist-graphic-container.node-hovered .law-scale {
    opacity: 0;
    transform: scale(0.7) rotate(-15deg);
}

.scale-pillar {
    width: 6px;
    height: 52px;
    background: #dfb249; /* Premium Gold scale pillar */
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.scale-base {
    width: 40px;
    height: 6px;
    background: #dfb249; /* Premium Gold scale base */
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.scale-beam {
    width: 76px;
    height: 6px;
    background: #dfb249; /* Premium Gold scale beam */
    position: absolute;
    top: 25px;
    left: 17px;
    border-radius: 3px;
    transform-origin: center;
    animation: swingBeam 5s ease-in-out infinite alternate;
}

.scale-pan-left,
.scale-pan-right {
    position: absolute;
    top: 3px;
    width: 24px;
    height: 46px;
    transform-origin: top center;
}

.scale-pan-left {
    left: -12px;
    animation: stabilizeLeft 5s ease-in-out infinite alternate;
}

.scale-pan-right {
    right: -12px;
    animation: stabilizeRight 5s ease-in-out infinite alternate;
}

.scale-pan-left::before,
.scale-pan-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 22px solid rgba(223, 178, 73, 0.85); /* Gold hanger */
}

.scale-pan-left::after,
.scale-pan-right::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 8px;
    background: #dfb249; /* Gold pan */
    border-radius: 0 0 12px 12px;
}

.core-hover-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 11;
}

.brutalist-graphic-container.node-hovered .core-hover-info {
    opacity: 1;
    transform: scale(1);
}

.core-hover-icon {
    font-size: 2.2rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.core-hover-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.orbit-nodes-wrapper {
    position: absolute;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    animation: rotateCW 40s linear infinite;
    z-index: 12;
}

.node-wrapper {
    position: absolute;
    width: 50px;
    height: 50px;
    animation: rotateCCW 40s linear infinite;
    pointer-events: none;
}

.brutalist-graphic-container:hover .orbit-nodes-wrapper,
.brutalist-graphic-container:hover .node-wrapper {
    animation-play-state: paused;
}

.nw-1 { top: 10px; left: 165px; }
.nw-2 { top: 100px; right: 15px; }
.nw-3 { bottom: 50px; right: 45px; }
.nw-4 { bottom: 50px; left: 45px; }
.nw-5 { top: 100px; left: 15px; }

.service-node {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    pointer-events: auto;
}

.service-node:hover {
    transform: scale(1.15) translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

.service-node::after {
    content: attr(data-label);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background: #121212;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-node:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary), rgba(79, 70, 229, 0));
    position: relative;
    overflow: hidden;
    display: block;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--primary);
    animation: scrollAnim 2.2s infinite cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 6px var(--primary);
}

@keyframes scrollAnim {
    0% { transform: translateY(-15px); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(50px); opacity: 0; }
}

@keyframes rotateCW {
    to { transform: rotate(360deg); }
}

@keyframes rotateCCW {
    to { transform: rotate(-360deg); }
}

@keyframes swingBeam {
    0% { transform: rotate(-8deg); }
    100% { transform: rotate(8deg); }
}

@keyframes stabilizeLeft {
    0% { transform: rotate(8deg); }
    100% { transform: rotate(-8deg); }
}

@keyframes stabilizeRight {
    0% { transform: rotate(8deg); }
    100% { transform: rotate(-8deg); }
}

@keyframes floatNode {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

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

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes corePulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.6; }
}

@media (max-width: 400px) {
    .brutalist-graphic-container {
        transform: scale(0.8);
    }
    .hero-graphic {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100dvh;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 80px;
        padding-bottom: 50px;
        text-align: center;
        background: url('../assets/hero_bg.png') no-repeat center center;
        background-size: cover;
        position: relative;
    }
    
    .hero-video-overlay {
        background: rgba(0, 0, 0, 0.45);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 0;
        width: 100%;
    }
    
    .hero-content {
        margin: 0 auto;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content .badge-gold {
        background: none;
        border: none;
        border-left: 3px solid #dfb249;
        border-radius: 0;
        color: #dfb249;
        padding: 2px 0 2px 12px;
        margin-bottom: 16px;
    }
    
    .hero-title {
        font-size: clamp(1.9rem, 7vw, 2.4rem);
        color: #ffffff;
        line-height: 1.3;
        margin-bottom: 20px;
        word-break: keep-all;
        overflow-wrap: break-word;
        padding: 0 15px;
    }
    
    
    .hero-desc {
        display: block;
        font-size: 0.9rem;
        color: #cbd5e1;
        margin-top: 12px;
        margin-bottom: 24px;
        max-width: 480px;
        line-height: 1.6;
        word-break: keep-all;
        overflow-wrap: break-word;
        padding: 0 16px;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.8s forwards ease-out 0.8s;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 12px;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        display: flex !important;
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 15px 24px;
        font-size: 1.05rem;
    }
    
    .hero .hero-buttons .btn-primary,
    .hero .hero-buttons .btn-secondary {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        box-shadow: none !important;
    }
    
    .hero .hero-buttons .btn-primary:hover,
    .hero .hero-buttons .btn-primary:active,
    .hero .hero-buttons .btn-secondary:hover,
    .hero .hero-buttons .btn-secondary:active {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: #dfb249 !important;
        color: #dfb249 !important;
    }
    
    .hero-graphic {
        display: none;
    }
    
    .scroll-indicator {
        display: flex;
    }
    
    .scroll-line {
        background: linear-gradient(to bottom, var(--primary), rgba(79, 70, 229, 0));
    }
    
    .scroll-line::after {
        background: var(--primary);
        box-shadow: 0 0 6px var(--primary);
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-graphic {
        order: -1;
        margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Statistics Section */
.stats {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary);
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .stats {
        display: block;
        padding: 40px 0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }
    .stat-item h3 {
        font-size: 1.8rem;
    }
    .stat-item p {
        font-size: 0.85rem;
    }
}

/* Profile Section (Intro) */
.profile-section {
    position: relative;
}

.profile-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.profile-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background-color: #ffffff;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-stamp {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px dashed var(--primary);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 0.95rem;
    transform: rotate(-15deg);
    pointer-events: none;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.profile-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.profile-subtitle {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.profile-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.profile-history {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    display: flex;
    gap: 20px;
    border-left: 2px solid rgba(79, 70, 229, 0.15);
    padding-left: 20px;
    position: relative;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.2);
}

.history-year {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    min-width: 70px;
}

.history-text {
    font-size: 0.95rem;
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .profile-image-container {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Services Grid Section */
.services-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    box-shadow: var(--glass-shadow);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    margin-bottom: 24px;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.service-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-more svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 30px;
        min-height: auto;
    }
}

/* Success Stories Carousel & Track Layout */
.success-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 40px;
}

.success-carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
}

/* The track generated by server.js is <ol class="carousel-list" ...> */
.carousel-list {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    width: max-content;
}

/* Each slide card wrapper */
.story-card-wrapper {
    flex: 0 0 calc((100% - 48px) / 3); /* default: 3 items on PC screen */
    width: calc((100% - 48px) / 3);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.story-card-wrapper .story-card {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Control Buttons (Arrows) */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.2);
}

.carousel-control:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.carousel-control.prev {
    left: -24px;
}

.carousel-control.next {
    right: -24px;
}

/* Indicators (Dots) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.35;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .carousel-control.prev {
        left: -12px;
    }
    .carousel-control.next {
        right: -12px;
    }
    
    .story-card-wrapper {
        flex: 0 0 calc((100% - 24px) / 2); /* 2 items on medium screens */
        width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 768px) {
    .success-carousel-container {
        padding: 0;
    }
    
    .story-card-wrapper {
        flex: 0 0 100%; /* 1 item on mobile */
        width: 100%;
    }
    
    .carousel-control {
        display: none; /* Hide arrows on mobile, rely on touch swipe */
    }
}

.story-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.story-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.08);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.story-stars {
    color: #fbbf24; /* Warm Gold stars */
    font-size: 1.15rem;
    letter-spacing: 2px;
}

.story-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1.2;
}

/* Category Specific Badge Styling */
.badge-coin { background: rgba(3, 105, 161, 0.08); color: #0369a1; }
.badge-gambling { background: rgba(139, 92, 246, 0.08); color: #8b5cf6; }
.badge-business { background: rgba(4, 120, 87, 0.08); color: #047857; }
.badge-life { background: rgba(180, 83, 9, 0.08); color: #b45309; }
.badge-phishing { background: rgba(6, 182, 212, 0.08); color: #06b6d4; }
.badge-medical { background: rgba(185, 28, 28, 0.08); color: #b91c1c; }
.badge-general { background: rgba(107, 114, 128, 0.08); color: #6b7280; }

.story-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.story-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
    flex-grow: 1;
    text-align: left;
}

.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 16px;
    margin-top: auto;
}

.story-client {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.client-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.client-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.story-metric {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

/* Liquidation Guarantee Principle Selection Cards */
.liquidation-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.liquidation-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.liquidation-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.liquidation-card.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.liquidation-card strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: inherit;
}

.liquidation-card span {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.liquidation-card.active span {
    color: rgba(255, 255, 255, 0.9) !important;
}
