/* TODO: Remove old technical information CSS classes when all pages are updated:
   - .offer-technical-section
   - .offer-technical-item
   - .offer-tech-title
   - .offer-tech-content
   - .offer-wide-technical-section
   - .offer-wide-technical-item
   - .offer-wide-tech-title
   - .offer-wide-tech-content
   - .offer-wide-tech-extra
   - .offer-wide-tech-readmore
   - .read-more-link
   - .education-categories-grid-2
   - .education-categories-grid-3
*/

/* WordPress content divs */
.wordpress-content {
    margin: 0 auto 64px auto;
    margin-right: 48px;
    display: flex;
    gap: 32px;
    align-items: center;
    max-width: 1216px;
}

.wordpress-content:not(:first-child) {
    margin-top: 64px;
}

.content-text {
    flex: 0 0 50%;
    width: 50%;
    color: #f4f4f4;
}

.content-text h2 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 1.1;
}

.content-text p {
    font-size: clamp(0.64rem, 1.6vw, 0.832rem);
    line-height: 1.6;
    margin-bottom: 32px;
}


.content-image-container {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-image {
    width: 480px;
    height: 480px;
    overflow: hidden;
    border-radius: 9.6px;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Offer Services Wrapper */
.offer-services-wrapper {
    display: flex;
    align-items: flex-start;
    padding: 0 32px;
    gap: 96px;
    margin: 0 max(8%, 200px) 0 32px;
    flex-wrap: wrap; /* Allow wrapping for mobile layout */
}


.offer-services-content {
    flex: 0 0 calc(100% - min(25%, 240px) - 96px);
    width: calc(100% - min(25%, 240px) - 96px);
    padding: 0;
}

.offer-item {
    margin-bottom: 48px;
}

/* Main Offer Title */
.offer-title {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 700;
    color: #040D81;
    margin-bottom: 16px;
    line-height: 1.2;
    text-align: left;
}

/* Offer Subtitle */
.offer-subtitle {
    font-size: clamp(0.768rem, 1.6vw, 0.96rem);
    font-weight: 400;
    color: #a5a5a5;
    margin-bottom: 32px;
    line-height: 1.4;
    text-align: left;
}

/* Soft Info Section */
.offer-info-section {
    margin-bottom: 128px;
}

.offer-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 128px;
    min-height: 96px;
}

.offer-info-item:nth-child(even) {
    flex-direction: row-reverse;
}

.offer-info-item:nth-child(even) .offer-softinfo-title {
    text-align: left;
}

.offer-info-item:nth-child(even) .offer-info-text {
    text-align: left;
}

.offer-softinfo-title {
    flex: 0 0 50%;
    font-size: 1.76rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0;
    line-height: 1.3;
    padding-right: 16px;
}

.offer-info-item:nth-child(even) .offer-softinfo-title {
    padding-right: 0;
    padding-left: 16px;
}

.offer-info-text {
    flex: 0 0 50%;
    font-size: 0.64rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 0;
    padding-left: 16px;
}

.offer-info-item:nth-child(even) .offer-info-text {
    padding-left: 0;
    padding-right: 16px;
}

.offer-info-text p {
    margin-bottom: 12px;
}

.offer-info-text p:last-child {
    margin-bottom: 0;
}

.offer-info-image {
    margin-top: 16px;
    text-align: center;
}

.offer-info-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6.4px;
}

/* Technical Info Section */
.offer-technical-section {
    margin-bottom: 128px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* Education categories specific grid layouts */
.offer-technical-section.education-categories-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.offer-technical-section.education-categories-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.offer-technical-item {
    background-color: #f8f9fa;
    border-radius: 9.6px;
    padding: 24px;
    border: 1px solid #e9ecef;
}

.offer-tech-title {
    font-size: 1.12rem;
    font-weight: 600;
    color: #040D81;
    margin-bottom: 12px;
    line-height: 1.3;
}

.offer-tech-content {
    font-size: 0.64rem;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 16px;
}

.offer-tech-content p {
    margin-bottom: 12px;
}

.offer-tech-content p:last-child {
    margin-bottom: 0;
}

/* Style list items in offer-tech-content */
.offer-tech-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-tech-content li {
    margin-bottom: 8px;
}

.offer-tech-content li:last-child {
    margin-bottom: 0;
}

.offer-tech-content li a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.792rem;
    padding: 4px 0;
    padding-left: 8px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.offer-tech-content li a:hover {
    color: #040D81;
}

.offer-tech-content li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    width: 0;
    height: 2px;
    background-color: #87CEEB;
    transition: width 0.3s ease;
}

.offer-tech-content li a:hover::after {
    width: calc(100% - 8px);
}

.offer-tech-image {
    margin-top: 16px;
    text-align: center;
}

.offer-tech-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6.4px;
}

/* Offer Links Section */
.offer-links {
    background-color: #f8f9fa;
    border-radius: 9.6px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
}

.offer-links h4 {
    font-size: 1.04rem;
    font-weight: 600;
    color: #040D81;
    margin-bottom: 16px;
    line-height: 1.3;
}


/* Wide Technical Information Section */
.offer-wide-technical-section {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    margin-bottom: 64px;
    padding: 0 64px;
}

.offer-wide-technical-item {
    background-color: #f8f9fa;
    border-radius: 9.6px;
    padding: 25.6px;
    width: 100%;
    flex: none;
}

.offer-wide-tech-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #040D81;
    margin-bottom: 16px;
    line-height: 1.3;
    text-align: left;
}

.offer-wide-tech-content {
    font-size: 0.64rem;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 16px;
    text-align: left;
}

.offer-wide-tech-extra {
    font-size: 0.64rem;
    line-height: 1.6;
    color: #000000;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: left;
}

.offer-wide-tech-readmore {
    text-align: right;
    margin-top: 12px;
}

.read-more-link {
    color: #040D81;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.608rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.read-more-link:hover {
    color: #0000ff;
    text-decoration: underline;
}


/* Force three columns on larger screens */
@media (min-width: 1200px) {
    .offer-info-section,
    .offer-technical-section {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive layout for screens < 1200px */
@media (max-width: 1199px) {
    .wordpress-content {
        flex-direction: column;
        gap: 30px;
        max-width: 100%;
        padding: 0 40px;
    }

    .content-text {
        flex: none;
        width: 100%;
        order: 2;
    }

    .content-image-container {
        flex: none;
        width: 100%;
        order: 1;
    }

    .content-image {
        width: 100%;
        max-width: 600px;
        height: 400px;
    }

    .offer-services-wrapper {
        flex-direction: column;
        padding: 0 20px;
        gap: 30px;
        margin: 0 20px; /* Remove the large right margin for full width */
    }

    .offer-services-content {
        flex: none;
        width: 100%;
        padding: 0;
        order: 1; /* Ensure content appears first */
    }

    .contact-form-mobile {
        order: 2; /* Ensure mobile contact form appears after content */
    }

    .offer-info-item,
    .offer-technical-item,
    .offer-links {
        padding: 25px;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .offer-services-wrapper {
        flex-direction: column;
        padding: 0 20px;
        gap: 30px;
    }

    .offer-technical-section.education-categories-grid-2 {
        grid-template-columns: 1fr;
    }

    .offer-services-content {
        flex: none;
        width: 100%;
        padding: 0;
        order: 1; /* Place before contact */
    }

    .offer-item {
        margin-bottom: 40px;
    }

    .offer-info-section {
        margin-bottom: 60px;
    }

    .offer-info-item {
        flex-direction: column !important;
        text-align: left;
        margin-bottom: 30px;
        padding-left: 0;
        padding-right: 0;
    }

    .offer-info-item:nth-child(even) {
        flex-direction: column !important;
    }

    .offer-softinfo-title {
        flex: none;
        padding: 0 0 15px 0 !important;
        text-align: left !important;
        font-size: 1.2rem;
    }

    .offer-info-text {
        flex: none;
        padding: 0 !important;
        text-align: left !important;
    }

    .offer-wide-technical-section {
        flex-direction: column;
        gap: 20px;
    }

    .offer-technical-item,
    .offer-wide-technical-item,
    .offer-links {
        padding: 20px;
        margin-bottom: 20px;
    }

    .offer-wide-tech-title {
        font-size: 1.4rem;
    }

}


