/**
 * Need A Bespoke Course Section Block Styles
 * 
 * Colors:
 * - Primary Green: #006a3c
 * - Orange Accent: #f7b119
 * - Text Dark: #252525
 * - White: #ffffff
 * - Light Gray: #f5f6f6
 * 
 * Fonts:
 * - Roboto Bold
 * - Roboto Regular
 */

/* ============================================
   Block Container
   ============================================ */
.need-a-bespoke-course-section-block {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

/* ============================================
   Background Wrapper
   ============================================ */
.nabcs-background-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    overflow: hidden;
}

/* Background Image - Full Width */
.nabcs-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Overlay Image */
.nabcs-overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.nabcs-overlay-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* ============================================
   Container - Uses WordPress Layout Width
   ============================================ */
.nabcs-container {
    position: relative;
    z-index: 3;
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Card - White Content Box
   ============================================ */
.nabcs-card {
    background-color: #ffffff;
    padding: 60px 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* ============================================
   Title
   ============================================ */
.nabcs-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
    color: #252525;
    margin: 0 0 20px 0;
}

/* ============================================
   Description
   ============================================ */
.nabcs-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #252525;
    margin: 0 0 20px 0;
}

.nabcs-description p {
    margin: 0 0 1em 0;
}

.nabcs-description p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Subtitle
   ============================================ */
.nabcs-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5;
    color: #252525;
    margin: 0 0 30px 0;
}

/* ============================================
   Features - Two Column Layout
   ============================================ */
.nabcs-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 0 0 40px 0;
    text-align: left;
}

.nabcs-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Feature Item with Checkmark */
.nabcs-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ============================================
   Checkmark Icon
   ============================================ */
.nabcs-checkmark {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nabcs-checkmark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   Feature Text
   ============================================ */
.nabcs-feature-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: #252525;
}

/* ============================================
   Button
   ============================================ */
.nabcs-button-wrapper {
    margin: 0;
}

.nabcs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 14px;
    background-color: #f7b119;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nabcs-button:hover, 
.nabcs-button:focus {
    background-color: #006a3c;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.nabcs-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 106, 60, 0.3);
}

.nabcs-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.nabcs-button-icon svg {
    width: 14px;
    height: 14px;
    color: #ffffff;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Desktop - Large (1400px+) */
@media (min-width: 1400px) {
    .nabcs-background-wrapper {
        min-height: 650px;
        padding: 100px 20px;
    }
    
    .nabcs-card {
        padding: 70px 100px;
    }
    
    .nabcs-title {
        font-size: 52px;
        margin-bottom: 30px;
    }
    
    .nabcs-description {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .nabcs-subtitle {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .nabcs-features {
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .nabcs-column {
        gap: 25px;
    }
    
    .nabcs-feature-text {
        font-size: 20px;
    }
    
    .nabcs-checkmark {
        width: 32px;
        height: 32px;
    }
    
    .nabcs-button {
        font-size: 18px;
        padding: 14px 14px;
    }
}

/* Desktop - Standard (1200px - 1399px) */
@media (max-width: 1399px) {
    .nabcs-background-wrapper {
        min-height: 600px;
        padding: 80px 20px;
    }
    
    .nabcs-card {
        padding: 60px 80px;
    }
    
    .nabcs-title {
        font-size: 48px;
    }
    
    .nabcs-description {
        font-size: 20px;
    }
    
    .nabcs-feature-text {
        font-size: 20px;
    }
}

/* Desktop - Small (992px - 1199px) */
@media (max-width: 1199px) {
    .nabcs-background-wrapper {
        min-height: 550px;
        padding: 70px 20px;
    }
    
    .nabcs-card {
        padding: 50px 60px;
    }
    
    .nabcs-title {
        font-size: 42px;
        margin-bottom: 25px;
    }
    
    .nabcs-description {
        font-size: 18px;
        margin-bottom: 18px;
    }
    
    .nabcs-subtitle {
        font-size: 17px;
        margin-bottom: 35px;
    }
    
    .nabcs-features {
        gap: 35px;
        margin-bottom: 45px;
    }
    
    .nabcs-column {
        gap: 18px;
    }
    
    .nabcs-feature-text {
        font-size: 18px;
    }
    
    .nabcs-checkmark {
        width: 30px;
        height: 30px;
    }
    
    .nabcs-button {
        font-size: 19px;
        padding: 16px 40px;
    }
}

/* Tablet - Standard (768px - 991px) */
@media (max-width: 991px) {
    .nabcs-background-wrapper {
        min-height: 500px;
        padding: 60px 20px;
    }
    
    .nabcs-card {
        padding: 45px 50px;
    }
    
    .nabcs-title {
        font-size: 38px;
        margin-bottom: 22px;
    }
    
    .nabcs-description {
        font-size: 17px;
        margin-bottom: 16px;
    }
    
    .nabcs-subtitle {
        font-size: 20px;
        margin-bottom: 32px;
    }
    
    .nabcs-features {
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .nabcs-column {
        gap: 16px;
    }
    
    .nabcs-feature-text {
        font-size: 17px;
    }
    
    .nabcs-checkmark {
        width: 28px;
        height: 28px;
    }
    
    .nabcs-button {
        font-size: 18px;
        padding: 15px 38px;
    }
}

/* Tablet - Small and Mobile (< 768px) */
@media (max-width: 767px) {
    .nabcs-background-wrapper {
        min-height: auto;
        padding: 50px 15px;
    }
    
    .nabcs-card {
        padding: 40px 30px;
    }
    
    .nabcs-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .nabcs-description {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .nabcs-subtitle {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .nabcs-features {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 35px;
    }
    
    .nabcs-column {
        gap: 14px;
    }
    
    .nabcs-feature-text {
        font-size: 16px;
    }
    
    .nabcs-checkmark {
        width: 26px;
        height: 26px;
    }
    
    .nabcs-button {
        font-size: 17px;
        padding: 14px 35px;
    }
}

/* Mobile - Standard (400px - 576px) */
@media (max-width: 576px) {
    .nabcs-background-wrapper {
        padding: 40px 10px;
    }
    
    .nabcs-card {
        padding: 35px 25px;
    }
    
    .nabcs-title {
        font-size: 28px;
        margin-bottom: 18px;
    }
    
    .nabcs-description {
        font-size: 15px;
        margin-bottom: 14px;
    }
    
    .nabcs-subtitle {
        font-size: 20px;
        margin-bottom: 28px;
    }
    
    .nabcs-features {
        gap: 22px;
        margin-bottom: 32px;
    }
    
    .nabcs-column {
        gap: 12px;
    }
    
    .nabcs-feature-text {
        font-size: 15px;
    }
    
    .nabcs-checkmark {
        width: 24px;
        height: 24px;
    }
    
    .nabcs-button {
        font-size: 16px;
        padding: 13px 32px;
    }
}

/* Mobile - Extra Small (< 400px) */
@media (max-width: 399px) {
    .nabcs-background-wrapper {
        padding: 35px 10px;
    }
    
    .nabcs-card {
        padding: 30px 20px;
    }
    
    .nabcs-title {
        font-size: 26px;
        margin-bottom: 16px;
    }
    
    .nabcs-description {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .nabcs-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
    }
    
    .nabcs-features {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .nabcs-column {
        gap: 10px;
    }
    
    .nabcs-feature-text {
        font-size: 14px;
    }
    
    .nabcs-checkmark {
        width: 22px;
        height: 22px;
    }
    
    .nabcs-button {
        font-size: 15px;
        padding: 12px 28px;
        gap: 6px;
    }
    
    .nabcs-button-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   Accessibility Features
   ============================================ */

/* Focus styles for keyboard navigation */
.nabcs-button:focus-visible {
    outline: 3px solid #006a3c;
    outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nabcs-card {
        border: 2px solid #000000;
    }
    
    .nabcs-title,
    .nabcs-description,
    .nabcs-feature-text {
        color: #000000;
    }
    
    .nabcs-button {
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nabcs-button {
        transition: none;
    }
    
    .nabcs-button:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .nabcs-background-wrapper {
        min-height: auto;
        padding: 20px;
    }
    
    .nabcs-background-image,
    .nabcs-overlay-image {
        display: none;
    }
    
    .nabcs-card {
        box-shadow: none;
        border: 1px solid #000000;
        padding: 30px;
    }
    
    .nabcs-button {
        border: 1px solid #000000;
        background-color: transparent;
        color: #000000;
    }
}

/* ============================================
   WordPress Editor Styles
   ============================================ */

/* Ensure proper display in Gutenberg editor */
.wp-block[data-type="acf/need-a-bespoke-course-section"] {
    max-width: 100%;
}

/* Preview mode adjustments */
.acf-block-preview .need-a-bespoke-course-section-block {
    margin: 0 auto;
}

/* ============================================
   Alignment Support
   ============================================ */

/* Wide alignment */
.need-a-bespoke-course-section-block.alignwide {
    max-width: var(--theme-wide-container-max-width, 1600px);
}

/* Full alignment (default) */
.need-a-bespoke-course-section-block.alignfull {
    max-width: 100%;
    width: 100%;
}

