/* Case Detail New Styles */

/* Hero Section */
.case-hero-section {
    position: relative;
    min-height: 80vh;
    overflow: hidden;
}

.case-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.case-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 55, 204, 0.63), rgba(237, 242, 250, 0.5));
    z-index: 2;
}

.case-hero-content {
    position: relative;
    z-index: 3;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.case-hero-title {
    color: white;
    font-size: 45px;
    font-weight: bold;
    margin-bottom: 30px;
    max-width: 900px;
    font-family: system-ui, sans-serif;
}

.case-hero-title p {
    margin-bottom: 10px;
    line-height: 1.4;
}

.project-config-box {
    background: rgba(0, 55, 204, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-config-box h2 {
    color: white;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: system-ui, sans-serif;
}

.project-config-box p {
    color: white;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 24px;
    font-family: system-ui, sans-serif;
}

.project-config-box ul {
    color: white;
    font-size: 22px;
    font-weight: 600;
    list-style-type: disc;
    list-style-position: inside;
    font-family: system-ui, sans-serif;
    padding-left: 0;
}

.project-config-box li {
    margin-bottom: 8px;
}

/* Case Gallery Styles */
.case-gallery-section {
    margin-top: 60px;
    padding: 50px 20px;
    background: transparent;
}

.case-gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.case-swiper {
    width: 100%;
    max-width: 900px;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    margin: 0 auto;
}

.case-swiper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, transparent 10%, transparent 90%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 5;
    pointer-events: none;
}

.case-swiper .swiper-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-swiper .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-out;
}

.case-swiper:hover .gallery-image {
    transform: scale(1.02);
}

/* Pagination */
.gallery-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 30px;
}

.gallery-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.gallery-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.15);
}

.gallery-pagination-bullet-active {
    background-color: #E38838;
    border-color: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(227, 136, 56, 0.6);
}

/* Slide Counter */
.gallery-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-family: system-ui, sans-serif;
    font-weight: 500;
}

/* Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.gallery-nav-prev {
    left: 20px;
}

.gallery-nav-next {
    right: 20px;
}

.gallery-nav::before {
    content: '';
    width: 12px;
    height: 12px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
}

.gallery-nav-prev::before {
    transform: rotate(135deg);
    margin-left: 3px;
}

.gallery-nav-next::before {
    transform: rotate(-45deg);
    margin-right: 3px;
}

/* Case Container */
.case-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Challenge Section */
.challenge-section {
    background: #fff;
}

.challenge-section .section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a2e;
    font-family: system-ui, sans-serif;
}

.challenge-section .challenge-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.challenge-section .challenge-content {
    font-size: 20px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    padding-left: 30px;
    font-family: system-ui, sans-serif;
}

/* Solution Section */
.solution-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 100%);
}

.solution-section .solution-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #1a1a2e;
    font-family: system-ui, sans-serif;
}

.solution-section .solution-description {
    font-size: 20px;
    line-height: 1.8;
    color: #444;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 40px;
    font-family: system-ui, sans-serif;
}

/* Device Cards */
.device-cards-container {
    display: flex;
    flex-wrap: justify;
    justify-content: center;
    gap: 24px;
    min-height: 200px;
}

.device-card {
    width: calc(20% - 20px);
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.device-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.device-card-header {
    height: 120px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.device-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.device-card-name {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a2e;
    font-family: system-ui, sans-serif;
}

.device-card-image {
    width: 100%;
    height: auto;
}

/* Core Values Section */
.core-values-section {
    background: #fff;
}

.core-values-section .section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: #1a1a2e;
    font-family: system-ui, sans-serif;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.core-value-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 30px;
}

.core-value-item.large {
    min-height: 1100px;
}

.core-value-item.small {
    min-height: 350px;
}

.core-value-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.core-value-content {
    position: relative;
    z-index: 2;
    padding: 50px 30px;
    max-width: 1600px;
    margin: 0 auto;
}

.core-value-number {
    font-size: 8rem;
    font-weight: bold;
    color: #E38838;
    font-family: system-ui, sans-serif;
    line-height: 1;
}

.core-value-title {
    font-size: 28px;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 15px;
    font-family: system-ui, sans-serif;
}

.core-value-description {
    font-size: 20px;
    color: #333;
    line-height: 1.6;
    text-align: justify;
    font-family: system-ui, sans-serif;
}

/* Scenarios Styles */
.scenarios-section {
    margin-top: 30px;
    padding: 0 30px;
}

.scenario-title {
    font-size: 22px;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 15px;
    font-family: system-ui, sans-serif;
}

.scenario-content {
    font-size: 19px;
    line-height: 1.6;
    color: #444;
    text-align: justify;
    font-family: system-ui, sans-serif;
    margin-bottom: 20px;
}

.scenario-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Benefits Section */
.benefits-section {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
}

.benefits-section .benefits-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.benefits-section .benefits-title {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    font-family: system-ui, sans-serif;
}

.benefits-section .benefits-content {
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-family: system-ui, sans-serif;
}

/* Consultation Section */
.consultation-section {
    background: #fff;
}

.consultation-section .row {
    align-items: center !important;
}

.consultation-section .col-md-6:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
    padding: 40px 30px;
}

.consultation-section .consultation-title {
    font-size: 32px;
    font-weight: bold;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 25px;
    font-family: system-ui, sans-serif;
}

.consultation-section .consultation-description {
    font-size: 20px;
    line-height: 1.7;
    color: #444;
    text-align: center;
    margin-bottom: 20px;
    font-family: system-ui, sans-serif;
}

.consultation-section .consultation-cta {
    font-size: 20px;
    line-height: 1.7;
    color: #444;
    text-align: center;
    margin-bottom: 25px;
    font-family: system-ui, sans-serif;
}

.consultation-section .consultation-link {
    font-size: 18px;
    line-height: 1.6;
    color: #E38838;
    text-align: center;
    display: block;
    margin-bottom: 30px;
    font-family: system-ui, sans-serif;
    text-decoration: underline;
}

.consultation-section .consultation-button {
    min-width: 160px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #E38838 0%, #d47828 100%);
    border: none;
    border-radius: 24px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    font-family: system-ui, sans-serif;
    white-space: nowrap;
}

.consultation-section .consultation-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(227, 136, 56, 0.4);
}

.consultation-section .consultation-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .device-card {
        width: calc(25% - 18px);
        min-width: 180px;
    }
}

@media (max-width: 992px) {
    .case-hero-title {
        font-size: 36px;
    }
    
    .project-config-box {
        padding: 30px 20px;
    }
    
    .project-config-box h2 {
        font-size: 26px;
    }
    
    .project-config-box p {
        font-size: 20px;
    }
    
    .project-config-box ul {
        font-size: 18px;
    }
    
    .case-swiper {
        height: 320px;
    }
    
    .challenge-section .challenge-content {
        padding-left: 0;
        margin-top: 20px;
        font-size: 18px;
    }
    
    .device-card {
        width: calc(33.33% - 16px);
        min-width: 160px;
    }
    
    .core-value-number {
        font-size: 6rem;
    }
    
    .core-value-title {
        font-size: 24px;
    }
    
    .core-value-description {
        font-size: 18px;
    }
    
    .core-value-item.large {
        min-height: 900px;
    }
}

@media (max-width: 768px) {
    .case-hero-section {
        min-height: auto;
    }
    
    .case-hero-content {
        min-height: auto;
        padding: 40px 15px;
    }
    
    .case-hero-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .case-hero-title p {
        font-size: 22px;
        line-height: 1.5;
    }
    
    .project-config-box {
        padding: 20px 15px;
        margin: 10px auto;
    }
    
    .project-config-box h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .project-config-box p {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .project-config-box ul {
        font-size: 16px;
    }
    
    .case-gallery-section {
        margin-top: 40px;
        padding: 30px 15px;
    }
    
    .case-swiper {
        height: 280px;
        border-radius: 12px;
    }
    
    .case-swiper::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 0%, transparent 15%, transparent 85%, rgba(0, 0, 0, 0.15) 100%);
    }
    
    .gallery-counter {
        padding: 6px 12px;
        font-size: 12px;
        top: 15px;
        right: 15px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        top: 45%;
    }
    
    .gallery-nav-prev {
        left: 10px;
    }
    
    .gallery-nav-next {
        right: 10px;
    }
    
    .gallery-pagination {
        padding: 8px 16px;
        bottom: 20px;
        gap: 8px;
    }
    
    .gallery-pagination-bullet {
        width: 10px;
        height: 10px;
    }
    
    .case-container {
        padding: 30px 15px;
    }
    
    .challenge-section .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .challenge-section .challenge-content {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .solution-section .solution-title {
        font-size: 24px;
    }
    
    .solution-section .solution-description {
        font-size: 16px;
    }
    
    .device-card {
        width: calc(50% - 10px);
        min-width: 140px;
    }
    
    .device-card-header {
        height: 100px;
        padding: 16px;
    }
    
    .device-card-icon {
        width: 30px;
        height: 30px;
    }
    
    .device-card-name {
        font-size: 16px;
    }
    
    .core-values-section .section-title {
        font-size: 24px;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .core-value-number {
        font-size: 4rem;
    }
    
    .core-value-title {
        font-size: 20px;
    }
    
    .core-value-description {
        font-size: 16px;
    }
    
    .core-value-content {
        padding: 30px 20px;
    }
    
    .core-value-item.large {
        min-height: auto;
    }
    
    .core-value-item.small {
        min-height: 250px;
    }
    
    .scenarios-section {
        padding: 0 10px;
    }
    
    .scenario-title {
        font-size: 18px;
    }
    
    .scenario-content {
        font-size: 16px;
    }
    
    .benefits-section .benefits-title {
        font-size: 24px;
    }
    
    .benefits-section .benefits-content {
        font-size: 16px;
        margin-top: 20px;
    }
    
    .consultation-section .consultation-title {
        font-size: 24px;
    }
    
    .consultation-section .consultation-description,
    .consultation-section .consultation-cta {
        font-size: 16px;
    }
    
    .consultation-section .consultation-link {
        font-size: 14px;
    }
    
    .consultation-section .consultation-button {
        min-width: 150px;
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .case-hero-title {
        font-size: 22px;
    }
    
    .case-hero-title p {
        font-size: 18px;
    }
    
    .project-config-box h2 {
        font-size: 18px;
    }
    
    .project-config-box p {
        font-size: 16px;
    }
    
    .project-config-box ul {
        font-size: 14px;
    }
    
    .case-swiper {
        height: 180px;
    }
    
    .device-card {
        width: 100%;
        min-width: 100%;
    }
    
    .core-value-number {
        font-size: 3rem;
    }
    
    .benefits-section .benefits-title {
        font-size: 20px;
    }
    
    .consultation-section .consultation-title {
        font-size: 20px;
    }
}
