/**
 * Custom Pro Section - Stylesheet
 * Responsive layout: 1/3 content, 2/3 image
 */

.customprosection-wrapper {
    padding: 60px 0;
    overflow: hidden;
}

.customprosection-row {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 30px;
}

/* Content column - 1/3 width */
.customprosection-content {
    margin-top: 3rem;
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    padding-right: 20px;
}

.customprosection-title {
    font-size: 4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.customprosection-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.customprosection-cta {
    margin-top: 25px;
}

.customprosection-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.customprosection-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Image column - 2/3 width */
.customprosection-image {
    flex: 0 0 calc(66.666% - 10px);
    max-width: calc(66.666% - 10px);
}

.customprosection-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Tablet - Landscape */
@media (max-width: 991px) {
    .customprosection-wrapper {
        padding: 40px 0;
    }

    .customprosection-content {
        flex: 0 0 calc(40% - 15px);
        max-width: calc(40% - 15px);
        padding-right: 15px;
    }

    .customprosection-image {
        flex: 0 0 calc(60% - 15px);
        max-width: calc(60% - 15px);
    }

    .customprosection-title {
        font-size: 1.75rem;
    }

    .customprosection-text {
        font-size: 0.95rem;
    }
}

/* Tablet - Portrait */
@media (max-width: 767px) {
    .customprosection-wrapper {
        padding: 30px 0;
    }

    .customprosection-row {
        flex-direction: column;
        gap: 25px;
    }

    .customprosection-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }

    .customprosection-image {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .customprosection-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .customprosection-text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .customprosection-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .customprosection-wrapper {
        padding: 20px 0;
    }

    .customprosection-row {
        gap: 20px;
    }

    .customprosection-title {
        font-size: 1.35rem;
        margin-bottom: 12px;
    }

    .customprosection-text {
        font-size: 0.875rem;
        margin-bottom: 15px;
    }

    .customprosection-button {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 12px 20px;
    }

    .customprosection-image img {
        border-radius: 6px;
    }
}

/* Accessibility improvements */
.customprosection-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .customprosection-button {
        transition: none;
    }

    .customprosection-button:hover {
        transform: none;
    }
}
