/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== HERO SECTION ===== */
.case-hero {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #061a40, #0b3d91, #1565c0);
    color: white;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.case-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.case-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: #ffb347;
}

.hero-content p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #ffb347;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
}

/* ===== MAIN LAYOUT ===== */
.industry-page {
    width: 92%;
    max-width: 1400px;
    margin: -40px auto 60px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    position: relative;
    z-index: 3;
}

/* ===== SIDEBAR ===== */
.industry-sidebar {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px -12px rgba(6, 26, 64, 0.15);
    padding: 30px 20px;
    border: 1px solid rgba(21, 101, 192, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8f0fe;
}

.sidebar-header h2 {
    color: #061a40;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.sidebar-header h2 i {
    color: #0b3d91;
    margin-right: 10px;
}

.sidebar-header p {
    color: #6a8aaa;
    font-size: 14px;
}

.industry-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.industry-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    /* Ensure text is visible */
    color: #1a334f;
}

.industry-item:hover {
    background: #f0f6fe;
    transform: translateX(4px);
    color: #061a40;
}

.industry-item.active {
    background: linear-gradient(135deg, #061a40, #0b3d91);
    color: white !important;
    box-shadow: 0 8px 20px rgba(11, 61, 145, 0.25);
}

.industry-item.active .arrow-icon {
    color: white;
}

.industry-item.active .industry-count {
    color: rgba(255, 255, 255, 0.8) !important;
}

.industry-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.industry-info {
    flex: 1;
    min-width: 0;
}

.industry-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: inherit;
}

.industry-count {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
    color: #6a8aaa;
}

.industry-item.active .industry-count {
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.arrow-icon {
    color: #b0c8e0;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.industry-item.active .arrow-icon {
    transform: translateX(4px);
}

/* ===== CONTENT PANEL ===== */
.industry-content {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 40px -12px rgba(6, 26, 64, 0.12);
    border: 1px solid rgba(21, 101, 192, 0.08);
    min-height: 500px;
}

.industry-panel {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.panel-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.panel-icon {
    font-size: 48px;
    line-height: 1;
}

.panel-header h2 {
    color: #061a40;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.industry-subtitle {
    color: #6a8aaa;
    font-size: 15px;
    margin-top: 4px;
}

.case-count-badge {
    background: linear-gradient(135deg, #e8f0fe, #dce8f8);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #0b3d91;
    white-space: nowrap;
    border: 1px solid rgba(21, 101, 192, 0.1);
}

.panel-divider {
    height: 2px;
    background: linear-gradient(90deg, #e8f0fe, transparent);
    margin-bottom: 25px;
}

.industry-description {
    margin-bottom: 30px;
}

.industry-description p {
    color: #3a5a7a;
    line-height: 1.8;
    font-size: 16px;
}

/* ===== CASE STUDY GRID ===== */
.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 10px;
}

.case-study-card {
    background: #fafcff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e8f0fe;
    transition: all 0.3s ease;
    position: relative;
}

.case-study-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px -10px rgba(6, 26, 64, 0.15);
    border-color: #0b3d91;
}

.card-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0b3d91, #1565c0);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.case-study-card h3 {
    color: #061a40;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.case-study-card p {
    color: #4a6a8a;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #061a40;
}

.video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}

.card-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e8f0fe;
}

.read-more {
    color: #0b3d91;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #061a40;
}

.read-more:hover i {
    transform: translateX(4px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 48px;
    color: #b0c8e0;
    margin-bottom: 16px;
}

.empty-state p {
    color: #6a8aaa;
    font-size: 16px;
}

/* ===== CTA SECTION ===== */
.case-cta {
    background: linear-gradient(135deg, #061a40, #0b3d91);
    padding: 70px 20px;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: white;
    color: #061a40;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .industry-page {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .industry-sidebar {
        position: static;
        padding: 25px;
    }

    .industry-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 8px;
    }

    .industry-item {
        padding: 12px 16px;
    }

    .case-study-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 28px;
    }

    .industry-page {
        width: 95%;
        margin: -20px auto 40px;
    }

    .industry-content {
        padding: 25px 18px;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-header-left {
        width: 100%;
    }

    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-count-badge {
        align-self: flex-start;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .industry-sidebar {
        padding: 20px 15px;
    }

    .industry-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .panel-header h2 {
        font-size: 24px;
    }

    .panel-icon {
        font-size: 36px;
    }

    .industry-description p {
        font-size: 15px;
    }

    .industry-item {
        padding: 12px 14px;
    }

    .industry-name {
        font-size: 14px;
    }
}