/* PNK Advantages Page Styles */

/* Reset h4 default margin */
.advantages-page h4 {
    margin-block-start: 0;
}

/* Extra top padding for specific H2 */
body > main > div > div > div > h2:nth-child(3) {
    padding-top: 4rem;
}

/* Hero Section */
.advantages-hero {
    position: relative;
    height: 600px;
    background-color: var(--bg-dark);
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-placeholder {
    background-color: #404040;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    color: white;
    font-size: 1.125rem;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 0 3rem 0;
    max-width: none; /* Override style.css 800px limit - use full width */
    display: block; /* Override style.css flex - allow container to center with margin auto */
}

.hero-info-card {
    background-color: transparent;
    backdrop-filter: none;
    padding: 0;
    max-width: 1280px;
}

.hero-info-card h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: #ffffff;
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 400;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: left;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Main Content */
.advantages-content {
    padding: 0; /* Let blocks handle their own spacing */
}

.advantages-content .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section {
    background-color: transparent;
    border: none;
    padding: 0;
}

/* Constrain paragraph widths and ensure consistent line-height */
.advantages-content p {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
    line-height: 1.6;
}

/* Constrain heading widths to match paragraphs */
.advantages-content h1,
.advantages-content h2,
.advantages-content h3 {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.content-section h2 {
    font-size: 1.875rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Assembly Overview Section */
.assembly-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .assembly-content {
        grid-template-columns: 1fr 1fr;
    }
}

.assembly-visual {
    width: 100%;
}

.assembly-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.placeholder-image {
    background-color: var(--text-secondary);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

.assembly-description p {
    color: #404040;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.assembly-description p:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-item i {
    color: var(--brand-primary-blue);
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    line-height: 1.5rem;
}

.benefit-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.benefit-content p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin: 0;
}

/* Section Title - Global */
.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

/* Manufacturing Plants Section - Two Row Alternating Layout */
.manufacturing-plants-section {
    /* padding: 4rem 0; */
    padding: 0 0 4rem 0;
}

/* Construction Technology Section - Header only */
.construction-technology-section {
    padding: 0; /* Removed top padding */
}

/* Features Accordion Section - Remove top padding since header is separate */
.advantages-features-accordion {
    padding: 0 0 4rem 0;
}

/* Plant Rows Wrapper */
.plants-rows-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Reduced from 3rem to 1.5rem */
}

/* Plant Row - Two Column Layout */
.plant-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch; /* Changed from center to stretch for equal height */
    gap: 1rem; /* Reduced from 2rem to 1rem */
}

@media (min-width: 1024px) {
    .plant-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* First row: Features left, Image right */
.plant-row-left .plant-features {
    order: 1;
}

.plant-row-left .plant-image {
    order: 2;
}

/* Second row: Image left, Features right */
.plant-row-right .plant-features {
    order: 2;
}

.plant-row-right .plant-image {
    order: 1;
}

/* Plant Features Column */
.plant-features {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Reduced from 1.5rem to 1rem */
    height: 100%; /* Ensure full height */
}

.plant-header {
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start */
    gap: 1rem;
}

.plant-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--brand-primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.plant-icon i {
    font-size: 1.5rem;
}

.plant-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 3rem; /* Match icon height */
}

.plant-title h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin: 0; /* Removed bottom margin */
    font-weight: 600;
    line-height: 1.2;
}

.plant-title p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0; /* Added top margin only */
    line-height: 1.3;
}

.plant-capabilities {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.capability-item {
    background-color: var(--brand-light-blue-gray);
    border: 1px solid #e5e5e5;
    padding: 1rem;
}

.capability-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.capability-header span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.125rem; /* Increased from 0.9375rem to 1.125rem (18px) */
}

.capability-header i {
    display: none; /* Hide icons */
}

.capability-item p {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.5;
}

/* Plant Image Column */
.plant-image {
    position: relative;
    height: 100%; /* Changed from 400px to 100% for equal height with features */
    overflow: hidden;
}

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

.plant-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.plant-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.plant-image-placeholder span {
    font-size: 1.125rem;
}

/* Manufacturing Gallery */
.manufacturing-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.manufacturing-gallery .gallery-item {
    width: 100%;
    overflow: hidden;
}

.manufacturing-gallery .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

@media (min-width: 769px) and (max-width: 1023px) {
    .manufacturing-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Video Section */
.video-container {
    position: relative;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.uploaded-video {
    width: 100%;
    height: auto;
    display: block;
    background-color: #000000;
}

.video-placeholder {
    background-color: var(--text-secondary);
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.video-placeholder:hover {
    background-color: #404040;
}

.play-button {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
}

.video-info {
    text-align: center;
}

.video-info div {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.video-info p {
    font-size: 0.875rem;
    color: #d4d4d4;
    margin: 0;
}

.video-duration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Video Section - Background Video Style */
.advantages-video-section {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 4rem auto;
    padding: 0 var(--spacing-sm, 1rem);
    box-sizing: border-box;
    overflow: hidden;
}

.video-background {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    z-index: 1;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.video-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 4rem 0;
}

.video-section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* CTA Section */
.advantages-cta {
    background-color: #ffffff;
    padding: 4rem 0;
}

.advantages-cta .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.advantages-cta .cta-content {
    text-align: center;
}

.btn-cta-orange {
    display: inline-block;
    background-color: var(--brand-primary-orange);
    color: #ffffff;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    border-radius: 0;
}

.btn-cta-orange:hover {
    background-color: var(--brand-primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(216, 127, 69, 0.3);
}

.btn-cta-orange:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 767px) {
    .advantages-hero {
        height: 500px;
    }

    .hero-info-card h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .advantages-video-section {
        padding: 0 1rem;
    }

    .video-section-title {
        font-size: 1.875rem;
    }

    .video-content {
        padding: 3rem 0;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .content-section {
        padding: 1rem;
    }

    /* Remove inner padding to match header width */
    .content-section p,
    .content-section h1,
    .content-section h2,
    .content-section h3,
    .content-section .two-column-section,
    .content-section .manufacturing-plants-section,
    .content-section .advantages-video-section,
    .content-section .advantages-features-accordion,
    .content-section .button-block {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .video-placeholder {
        height: 300px;
    }

    /* Manufacturing Plants Mobile */
    .plants-rows-wrapper {
        gap: 2rem;
    }

    .plant-row-left .plant-image,
    .plant-row-right .plant-image {
        order: -1;
    }

    .plant-image {
        height: 300px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .plant-image {
        height: 350px;
    }
}
