/* Case Detail Page Styles */

/* Case Hero Banner - full width background */
.case-hero-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    padding: 40px 0;
}

.case-hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.case-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    color: #fff;
}

.case-hero-breadcrumb {
    font-size: 14px;
    margin-bottom: 15px;
}

.case-hero-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.case-hero-breadcrumb span {
    margin: 0 5px;
    color: #fff;
}

.case-hero-inner h1 {
    font-size: 42px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.case-hero-inner p {
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
    max-width: 900px;
    margin: 0;
}

@media (max-width: 768px) {
    .case-hero-banner {
        min-height: 280px;
        padding: 30px 0;
    }

    .case-hero-inner h1 {
        font-size: 28px;
    }

    .case-hero-inner p {
        font-size: 14px;
    }

    .case-quick-facts-table th,
    .case-quick-facts-table td {
        padding: 10px;
        font-size: 14px;
    }
}

/* Quick Facts Section */
.case-quick-facts {
    margin: 80px 0 80px;
}

.case-quick-facts h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.case-quick-facts-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #333;
}

.case-quick-facts-table th,
.case-quick-facts-table td {
    border: 1px solid #333;
    padding: 14px 18px;
    text-align: left;
    font-size: 15px;
    vertical-align: top;
}

.case-quick-facts-table thead th {
    font-weight: bold;
    color: #fff;
}

.case-quick-facts-table thead th:first-child {
    background: #e60012;
}

.case-quick-facts-table thead th:last-child {
    background: #11438F;
}

.case-quick-facts-table tbody tr:nth-child(even) {
    background: #f5f5f5;
}

.case-quick-facts-table tbody td:first-child {
    width: 25%;
    font-weight: 600;
    color: #333;
}

.case-quick-facts-table tbody td:last-child {
    width: 75%;
    color: #555;
}

/* Project Overview Section */
.case-project-overview {
    padding :80px 0 80px;
}

.case-project-overview-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.case-project-overview-body {
    display: flex;
    gap: 40px;
    align-items:center;
}

.case-project-overview-text {
    max-width: 50%;
}

.case-project-overview-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 18px;
}

.case-project-overview-list {
    margin: 0 0 18px 20px;
    padding: 0;
}

.case-project-overview-list li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 8px;
    list-style: disc;
}

.case-project-overview-image {

    max-width:100%;
}

.case-project-overview-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

@media (max-width: 768px) {
    .case-project-overview-body {
        flex-direction: column;
        gap: 25px;
    }

    .case-project-overview-image {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }
}

/* Solution & Equipment Section */
.case-solution-equipment {
    margin: 80px 0;
}

.case-solution-equipment-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.case-solution-equipment-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.case-solution-equipment-image {

    display: flex;
max-width: 50%;
    justify-content: center;
}

.case-solution-equipment-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.case-solution-equipment-text {
}

.case-solution-equipment-text h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0 12px;
    color: #333;
}

.case-solution-equipment-text h3:first-child {
    margin-top: 0;
}

.case-solution-equipment-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 18px;
}

.case-solution-equipment-list {
    margin: 0 0 18px 20px;
    padding: 0;
}

.case-solution-equipment-list li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 8px;
    list-style: disc;
}

@media (max-width: 768px) {
    .case-solution-equipment-body {
        flex-direction: column;
        gap: 25px;
    }

    .case-solution-equipment-image {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }
}

/* Application Section */
.case-application {
    padding: 80px 0 80px;
}

.case-application-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.case-application-body {
    display: flex;
    gap: 40px;
    align-items: center;
}

.case-application-text {
 max-width: 50%;
}

.case-application-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 18px;
}

.case-application-image {

    max-width: 100%;

}

.case-application-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

@media (max-width: 768px) {
    .case-application-body {
        flex-direction: column;
        gap: 25px;
    }

    .case-application-image {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }
}

/* Equipment Specifications & Why EZHONG Section */
.case-equipment-why {
    margin: 50px 0;
}

.case-equipment-why-title {
    font-size: 36px;
    font-weight: bold;
    margin: 40px 0 20px;
    color: #333;
    text-align: center;
}

.case-equipment-why-title:first-child {
    margin-top: 0;
}

.case-equipment-specs-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #333;
    margin-bottom: 25px;
}

.case-equipment-specs-table th,
.case-equipment-specs-table td {
    border: 1px solid #333;
    padding: 14px 18px;
    text-align: left;
    font-size: 15px;
    vertical-align: top;
}

.case-equipment-specs-table thead th {
    font-weight: bold;
    color: #fff;
}

.case-equipment-specs-table thead th:first-child {
    background: #e60012;
}

.case-equipment-specs-table thead th:last-child {
    background: #11438F;
}

.case-equipment-specs-table tbody tr:nth-child(even) {
    background: #f5f5f5;
}

.case-equipment-specs-table tbody td:first-child {
    width: 25%;
    font-weight: 600;
    color: #333;
}

.case-equipment-specs-table tbody td:last-child {
    width: 75%;
    color: #555;
}

.case-product-button {
    display: inline-block;
    color: #11438F;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 40px;
}

.case-product-button:hover {
    text-decoration: underline;
}

.case-why-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.case-key-advantages-title {
    font-size: 18px;
    font-weight: bold;
    margin: 25px 0 15px;
    color: #333;
}

.case-key-advantages-list {
    margin: 0 0 18px 20px;
    padding: 0;
}

.case-key-advantages-list li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
    list-style: disc;
}

@media (max-width: 768px) {
    .case-equipment-specs-table th,
    .case-equipment-specs-table td {
        padding: 10px;
        font-size: 14px;
    }
}

/* We Provide Gallery Section */
.case-provide-gallery {
    padding: 60px 0 40px;
}

.case-provide-gallery-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.case-provide-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.case-provide-gallery-item {
    overflow: hidden;
}

.case-provide-gallery-item img {
    width: 100%;
    height: 200px;
    display: block;
}

.case-provide-gallery-caption {
    padding: 20px 20px;
    margin: 0;
    font-size: 20px;
    color: #333;
    text-align: left;
    border-top: 1px solid #333;
    background: #fff;
    text-align: center;
}

@media (max-width: 768px) {
    .case-provide-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-provide-gallery-caption {
        font-size: 14px;
        padding: 12px;
    }
}

/* Project Timeline Section - Horizontal */
.case-timeline-section {
    padding: 80px 0 80px;
}

.case-timeline-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.case-timeline {
    display: flex;
    position: relative;
    padding-top: 12px;
}

.case-timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 30px;
}

.case-timeline-item::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #333;
    z-index: 1;
}

.case-timeline-item:last-child::after {
    display: none;
}

.case-timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #333;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.case-timeline-stage {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
}

.case-timeline-date {
    font-size: 13px;
    color: #666;
}

@media (max-width: 768px) {
    .case-timeline {
        flex-direction: column;
        padding-top: 0;
        padding-left: 10px;
    }

    .case-timeline-item {
        text-align: left;
        padding-top: 0;
        padding-left: 35px;
        padding-bottom: 28px;
        position: relative;
    }

    .case-timeline-item::after {
        top: 20px;
        left: 9px;
        width: 2px;
        height: 100%;
    }

    .case-timeline-item:last-child::after {
        display: none;
    }

    .case-timeline-dot {
        top: 0;
        left: 0;
        transform: none;
    }
}

/* CTA Section */
.case-cta {
    padding: 70px 0 50px;
    background: #f5f5f5;
   
    text-align: center;
}

.case-cta-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.case-cta-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-width: 860px;
    margin: 0 auto 30px;
}

.case-cta-button {
    display: inline-block;
    padding: 14px 40px;
    background: #11438F;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.case-cta-button:hover {
    background: white;
}

@media (max-width: 768px) {
    .case-cta {
        padding: 35px 20px;
    }

    .case-cta-title {
        font-size: 22px;
    }

    .case-cta-button {
        padding: 12px 30px;
        font-size: 15px;
    }
}

/* Alternating Section Background - Full Width (background only, content stays in place) */
.case-section-gray {
    position: relative;
    z-index: 0;
}

.case-section-gray::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: #f5f5f5;
    z-index: -1;
}

/* We Provide module uses a full-width background image instead of gray */
.case-section-faq-bg::before {
    background-image: url(/image/case/wind-tower/wind-tower-faq.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* FAQ Section - independent styles (do not reference other FAQ classes) */
.case-faq-block {
    margin: 80px 0;
}

.case-faq-block-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.case-faq-block-item {
    border: 1px solid #333;
    margin-bottom: 15px;
    background: #fff;
}

.case-faq-block-question {
    display: block;
    position: relative;
    padding: 18px 50px 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    list-style: none;
}

.case-faq-block-question::-webkit-details-marker {
    display: none;
}

.case-faq-block-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    color: #11438F;
    line-height: 1;
}

.case-faq-block-item[open] .case-faq-block-question::after {
    content: "\2212";
}

.case-faq-block-answer {
    padding: 0 20px 18px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

@media (max-width: 768px) {
    .case-faq-block {
        margin: 50px 0;
    }

    .case-faq-block-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .case-faq-block-question {
        font-size: 15px;
        padding: 15px 44px 15px 16px;
    }

    .case-faq-block-answer {
        padding: 0 16px 15px;
        font-size: 14px;
    }
}

/* Breadcrumb Styles - Tight to top menu */
.case-breadcrumb-tight {
    padding: 5px 0;
    margin-top: -100px;
    margin-bottom: 0;
}

.case-breadcrumb-tight .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.case-breadcrumb-tight .breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.case-breadcrumb-tight .breadcrumb-item.active {
    color: #666;
}

/* Hero Content as Main Theme */
.case-hero-content-main {
    text-align: center;
    margin: 30px 0 50px;
}

.case-hero-title-main {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.3;
    color: #333;
}

.case-hero-title-main .highlight {
    color: #ff8c00;
}

.case-hero-description-main {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    text-align: justify;
}

/* Image Grid - Centered and Fixed Size */
.case-image-grid {
    margin: 40px 0;
}

.case-image-item {
    margin-bottom: 50px;
    text-align: center;
}

.case-content-img {
    width: 900px;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

.case-image-caption {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    font-style: normal;
    padding: 0 50px;
}

/* Breadcrumb Styles */
.case-breadcrumb {
    padding: 20px 0 10px;
}

.case-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.case-breadcrumb .breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.case-breadcrumb .breadcrumb-item.active {
    color: #666;
}

/* Hero Section Styles */
.case-hero-section {
    margin-top: 30px;
    margin-bottom: 50px;
}

.case-hero-img {
    width: 100%;
    height: auto;
}

.case-hero-content {
    padding: 0 20px;
}

.case-hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.2;
}

.case-hero-title .highlight {
    color: #ff8c00;
}

.case-hero-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    text-align: justify;
}

/* Parameter Table Styles */
.case-parameter-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.case-parameter-table thead tr {
    background: #1e73be;
    color: white;
}

.case-parameter-table th {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.case-parameter-table th.text-left {
    text-align: left;
}

.case-parameter-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.case-parameter-table td.text-center {
    text-align: center;
}

.case-parameter-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* Special table cell styles for split columns */
.case-parameter-table td.split-col {
    width: 50%;
}

/* Grouped table styles (for case-rolls-sheet) */
.case-grouped-table td strong {
    display: block;
    margin-bottom: 5px;
}

/* Additional content styles */
.case-content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    text-align: justify;
}

/* Portfolio Page Styles */
.portfolio-section-desc {
    max-width: 800px;
    margin: 15px auto 0;
    color: #666;
}

.portfolio_img_area {
    position: relative;
    overflow: hidden;
}

.portfolio_img_area .overlay {
    position: absolute !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 30% !important;
    max-height: 120px;
    background-color: rgba(30, 115, 190, 0.95) !important;
    transform: translateY(100%) !important;
    transition: transform 0.4s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 15px !important;
}

.portfolio_img_area:hover .overlay {
    transform: translateY(0) !important;
}

.portfolio-case-img {
    width: 100%;
  /*  height: 400px */
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.portfolio_img_area > a {
    display: block;
    overflow: hidden;
}

.portfolio_img_area > a:hover .portfolio-case-img {
    transform: scale(1.05);
}

.portfolio-case-brief {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    display: none;
}
