/**
 * Our Training Courses Section Block Styles
 * 
 * @package ACF Child Theme
 * @subpackage Assets/CSS
 */

/* CSS Variables */
:root {
    --green-primary: #006a3c;
    --orange-accent: #f7b119;
    --dark-text: #252525;
    --white: #ffffff;
}

/* Main Section Container */
.our-training-courses-section-block {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Title Section with Green Background */
.otcs-title-section {
    background-color: var(--green-primary);
    width: 100%;
    padding: 60px 0;
}

.otcs-title-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

.otcs-section-title {
    color: var(--white);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

/* Courses Section with Background Image */
.otcs-courses-section {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
}

.otcs-courses-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.otcs-courses-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.otcs-courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: start;
}

/* Course Card */
.otcs-course-card {
    background-color: var(--white);
    padding: 60px 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.otcs-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.otcs-card-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.otcs-course-title {
    color: var(--dark-text);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    margin: 0;
}

.otcs-course-description {
    color: var(--dark-text);
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

/* Course Button */
.otcs-course-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--orange-accent);
    color: var(--white);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    padding: 10px 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    width: fit-content;
    border-radius: 0;
}

.otcs-course-button:hover {
    background-color: var(--green-primary);
    transform: translateX(5px);
}

.otcs-button-text {
    color: var(--white);
}

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

.otcs-button-icon svg {
    width: 100%;
    height: 100%;
    color: var(--white);
}

/* Responsive Design */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .otcs-section-title {
        font-size: 40px;
    }
    
    .otcs-course-card {
        padding: 50px 40px;
    }
    
    .otcs-course-title {
        font-size: 32px;
    }
    
    .otcs-course-description {
        font-size: 16px;
    }
    
    .otcs-courses-grid {
        gap: 30px;
    }
}

/* Mobile Landscape (768px) */
@media (max-width: 768px) {
    .otcs-title-section {
        padding: 50px 0;
    }
    
    .otcs-section-title {
        font-size: 36px;
    }
    
    .otcs-courses-section {
        padding: 60px 0;
    }
    
    .otcs-courses-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .otcs-course-card {
        padding: 40px 30px;
    }
    
    .otcs-course-title {
        font-size: 28px;
    }
    
    .otcs-course-description {
        font-size: 16px;
    }
    
    .otcs-course-button {
        font-size: 16px;
        padding: 14px 28px;
    }
}

/* Mobile Portrait (576px) */
@media (max-width: 576px) {
    .otcs-title-section {
        padding: 40px 0;
    }
    
    .otcs-title-container {
        padding: 0 15px;
    }
    
    .otcs-section-title {
        font-size: 28px;
    }
    
    .otcs-courses-section {
        padding: 40px 0;
    }
    
    .otcs-courses-container {
        padding: 0 15px;
    }
    
    .otcs-courses-grid {
        gap: 20px;
    }
    
    .otcs-course-card {
        padding: 30px 20px;
    }
    
    .otcs-course-title {
        font-size: 24px;
    }
    
    .otcs-course-description {
        font-size: 15px;
    }
    
    .otcs-card-content {
        gap: 20px;
    }
    
    .otcs-course-button {
        font-size: 15px;
        padding: 12px 24px;
        gap: 10px;
    }
    
    .otcs-button-icon {
        width: 16px;
        height: 18px;
    }
}

/* Extra Small Mobile (480px) */
@media (max-width: 480px) {
    .otcs-title-section {
        padding: 30px 0;
    }
    
    .otcs-section-title {
        font-size: 24px;
    }
    
    .otcs-courses-section {
        padding: 30px 0;
    }
    
    .otcs-course-card {
        padding: 25px 15px;
    }
    
    .otcs-course-title {
        font-size: 22px;
    }
    
    .otcs-course-description {
        font-size: 14px;
    }
    
    .otcs-course-button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Print Styles */
@media print {
    .our-training-courses-section-block {
        background: white;
    }
    
    .otcs-courses-section::before {
        display: none;
    }
    
    .otcs-course-button {
        background-color: var(--dark-text) !important;
    }
}

