/* PNK Opportunities Page Styles */

/* Namespace all styles under opportunities page */
.opportunities-page .opportunities-content {
    /* Reset any theme conflicts */
}

.opportunities-page .opportunities-content * {
    box-sizing: border-box;
}

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

/* Section Heading Icons */
.opportunities-page .column-content h3 i,
.opportunities-page .speculative-section > h3 i,
.opportunities-page .land-section > h3 i {
    margin-right: 0.75rem;
    color: var(--brand-primary-blue);
}

/* Hero Section */
.opportunities-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 - match Advantages page layout */
.opportunities-hero .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;
}

/* Main Content */
.opportunities-content {
    padding: 3rem 0;
}

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

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

.content-section > div {
    max-width: 100%;
}

/* Two Column Layouts */
.opportunities-page .two-column-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .opportunities-page .two-column-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.opportunities-page .column-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.opportunities-page .column-content p {
    color: #404040;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.opportunities-page .column-image {
    width: 100%;
}

.opportunities-page .column-image img {
    width: 100%;
    height: auto;
    display: block;
}

.opportunities-page .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;
}

/* Features List */
.opportunities-page .features-list {
    margin-top: 1rem;
    padding-left: 0;
    border-left: none;
    list-style: none;
}

.opportunities-page .features-list li {
    padding-left: 0;
    border-left: none;
    list-style: none;
    margin-bottom: 0.5rem;
    color: #404040;
    font-size: 0.9375rem;
    line-height: 1.5rem;
}

.opportunities-page .features-list li:last-child {
    margin-bottom: 0;
}

.opportunities-page .features-list li i {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-right: 0.5rem;
}

/* Feature Highlight Card */
.opportunities-page .feature-highlight-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: #e8e8e8;
    padding: 2rem;
    margin-bottom: 3rem;
}

.opportunities-page .feature-icon-large {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.opportunities-page .feature-icon-large i {
    font-size: 5rem;
    color: #ffffff;
}

.opportunities-page .feature-text {
    flex: 1;
}

.opportunities-page .feature-text p {
    color: #404040;
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .opportunities-page .feature-highlight-card {
        flex-direction: column;
        text-align: center;
    }

    .opportunities-page .feature-icon-large {
        width: 80px;
        height: 80px;
    }

    .opportunities-page .feature-icon-large i {
        font-size: 3rem;
    }
}

/* Speculative Construction Section */
.opportunities-page .speculative-section {
    margin-bottom: 3rem;
    background-color: var(--brand-light-blue-gray);
    border: 1px solid #e5e5e5;
    padding: 2rem;
}

.opportunities-page .speculative-section h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.opportunities-page .speculative-section > p {
    color: #404040;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Standard Configuration Heading */
.opportunities-page .speculative-section > h3:last-of-type {
    text-align: center;
}

/* Four Column Grid */
.opportunities-page .four-column-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .opportunities-page .four-column-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .opportunities-page .four-column-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.opportunities-page .spec-feature {
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    padding: 1.5rem;
    text-align: center;
}

.opportunities-page .spec-feature i {
    font-size: 2rem;
    color: var(--brand-primary-blue);
    margin-bottom: 1rem;
    display: block;
}

.opportunities-page .spec-feature h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.opportunities-page .spec-feature p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* PNK Guarantee Section - Full width fix */
/* Use correct body class: page-template-template-opportunities */
/* Make outer WordPress block group container transparent so inner fills it */
/* Must use !important to override WordPress core styles using CSS variables */
/* Note: :has() selectors must be separate due to CSS parsing rules */
.page-template-template-opportunities .wp-block-group.has-cyan-bluish-gray-background-color {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
.opportunities-page .wp-block-group.has-cyan-bluish-gray-background-color {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Make all nested containers full width */
.page-template-template-opportunities .wp-block-group.has-cyan-bluish-gray-background-color > .wp-block-group {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
.opportunities-page .wp-block-group.has-cyan-bluish-gray-background-color > .wp-block-group {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Make guarantee section fill full width */
/* Use ACF color variable if set, otherwise fall back to brand-dark-gray */
.page-template-template-opportunities .pnk-guarantee-section {
    background-color: var(--guarantee-bg-color, var(--brand-dark-gray));
    padding: 2rem 1rem;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
body .pnk-guarantee-section {
    background-color: var(--guarantee-bg-color, var(--brand-dark-gray));
    padding: 2rem 1rem;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.opportunities-page .guarantee-header {
    text-align: center;
    margin-bottom: 1rem;
}

.opportunities-page .guarantee-header h4 {
    font-size: 1.875rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.opportunities-page .guarantee-header p {
    color: #e0e0e0;
    font-size: 1rem;
    margin: 0;
}

.opportunities-page .guarantee-header p:empty,
.opportunities-page .guarantee-card p:empty {
    display: none;
}

.opportunities-page .guarantee-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .opportunities-page .guarantee-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.opportunities-page .guarantee-card {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    text-align: center;
}

.opportunities-page .guarantee-years {
    font-size: 2.25rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.opportunities-page .guarantee-coverage {
    color: #e0e0e0;
    font-size: 1.125rem;
}

/* Land Acquisition Section */
.opportunities-page .land-section {
    text-align: center;
    margin-bottom: 3rem;
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    padding: 2rem;
}

.opportunities-page .land-section h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.opportunities-page .land-section > p {
    color: #404040;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Three Column Grid */
.opportunities-page .three-column-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .opportunities-page .three-column-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.opportunities-page .land-feature {
    background-color: var(--brand-primary-orange);
    border: 1px solid #e5e5e5;
    padding: 1.5rem;
    text-align: center;
}

.opportunities-page .land-feature i {
    font-size: 2rem;
    color: var(--brand-primary-blue);
    margin-bottom: 1rem;
    display: block;
}

.opportunities-page .land-feature h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.opportunities-page .land-feature p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* CTA Box */
.opportunities-page .cta-box {
    background-color: var(--brand-primary-orange);
    color: white;
    padding: 2rem;
    text-align: center;
}

.opportunities-page .cta-box h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.opportunities-page .cta-box p {
    color: #e0e0e0;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.opportunities-page .cta-button {
    display: inline-block;
    background-color: var(--brand-dark-gray);
    color: white;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* border: 2px solid white; */
}

.opportunities-page .cta-button:hover {
    background-color: #2d3845;
    color: white;
}

/* Media Upload Placeholders */
.opportunities-page .media-upload-placeholder {
    background-color: #f5f5f5;
    border: 2px dashed #d4d4d4;
    border-radius: 0.5rem;
    padding: 3rem 2rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.opportunities-page .media-upload-placeholder:hover {
    border-color: var(--brand-primary-blue);
    background-color: #fafafa;
}

.opportunities-page .media-upload-placeholder i {
    font-size: 3rem;
    color: #d4d4d4;
    margin-bottom: 1rem;
}

.opportunities-page .media-upload-placeholder .upload-text {
    color: var(--text-tertiary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.opportunities-page .media-upload-placeholder .upload-hint {
    color: #a3a3a3;
    font-size: 0.875rem;
}

/* Media container for uploaded content */
.opportunities-page .media-container {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.opportunities-page .media-container img,
.opportunities-page .media-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Media placeholder for flexible image/video upload */
.opportunities-page .media-placeholder {
    background-color: #f5f5f5;
    border: 2px dashed #d4d4d4;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opportunities-page .media-placeholder p {
    color: var(--text-tertiary);
    font-size: 1rem;
    margin: 0;
}

/* Style uploaded image/video blocks in column-image */
.opportunities-page .column-image .wp-block-image,
.opportunities-page .column-image .wp-block-video {
    margin: 0;
}

.opportunities-page .column-image .wp-block-image img,
.opportunities-page .column-image .wp-block-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

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

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

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

    .opportunities-page .content-section {
        padding: 0;
    }

    /* Remove inner padding to match header width */
    .opportunities-page .content-section .two-column-section,
    .opportunities-page .content-section .interactive-accordion,
    .opportunities-page .content-section .wp-block-group,
    .opportunities-page .content-section h2,
    .opportunities-page .content-section h3,
    .opportunities-page .content-section p {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .opportunities-page .content-section .land-section {
        padding: 1.5rem 0 !important;
    }

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

    .opportunities-page .column-content h3,
    .opportunities-page .speculative-section h3,
    .opportunities-page .land-section h3 {
        font-size: 1.25rem;
    }

    .opportunities-page .placeholder-image {
        height: 250px;
    }
}

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

/* Video Background Section with Overlay Cards */
.opportunities-page .video-background-section {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    margin-bottom: 3rem;
}

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

.opportunities-page .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.opportunities-page .video-cards-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 600px;
    padding: 10px 0;
}

.opportunities-page .video-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    padding: 0 10px;
}

.opportunities-page .video-card {
    background-color: var(--brand-light-blue-gray);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: 50px;
    display: flex;
    align-items: center;
}

.opportunities-page .video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.opportunities-page .video-card p {
    color: var(--brand-dark-gray);
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

/* Responsive adjustments for video section */
@media (max-width: 767px) {
    .opportunities-page .video-background-section {
        min-height: 700px;
    }

    .opportunities-page .video-cards-container {
        min-height: 700px;
    }

    .opportunities-page .video-cards-row {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .opportunities-page .video-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .opportunities-page .video-cards-row {
        grid-template-columns: repeat(3, 1fr);
    }
}
