/* Hero Section Custom Styles */
.rn-slider-area .content .inner {
    padding-right: 30px;
}

/* Ensure text doesn't overflow into image column */
.rn-slider-area .row {
    margin-left: -15px;
    margin-right: -15px;
}

.rn-slider-area .content {
    max-width: 100%;
    overflow: hidden;
}

/* Add proper spacing for the about-me section */
.about-me-section {
    margin-top: 1.5rem !important;
    padding-right: 20px;
}

.about-me-section .about-me-content {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-me-section .key-facts ul {
    padding-left: 0;
    margin-bottom: 0;
}

.about-me-section .key-facts li {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* Fix for very long text in French */
.rn-slider-area .description {
    max-width: 95%;
    word-wrap: break-word;
}

.rn-slider-area .title {
    word-wrap: break-word;
    max-width: 100%;
}

/* Responsive adjustments */
@media only screen and (max-width: 991px) {
    .rn-slider-area .content .inner {
        padding-right: 0;
    }

    .about-me-section {
        padding-right: 0;
    }

    /* Mobile Image Fix */
    .rn-slider-area .thumbnail {
        text-align: center;
        margin-top: 30px;
    }

    .rn-slider-area .thumbnail .inner {
        display: inline-block;
        width: 100%;
        max-width: 400px;
        /* Limit width on tablets */
    }

    .rn-slider-area .thumbnail img {
        width: 100%;
        height: auto;
        object-fit: contain;
        /* Ensure full image is visible */
        max-height: 500px;
        /* Prevent it from being too tall */
    }
}

/* Mobile specific fixes (phones) */
@media only screen and (max-width: 767px) {
    .rn-slider-area .thumbnail {
        margin-top: 20px;
        padding-bottom: 20px;
        /* Add space at bottom */
    }

    .rn-slider-area .thumbnail .inner {
        max-width: 100%;
        /* Use full width on phones */
    }

    .rn-slider-area .thumbnail img {
        max-height: 400px;
        /* Reduce max height for phones */
    }

    .rn-slider-area .title {
        font-size: 32px;
        line-height: 1.2;
    }
}

/* Ensure proper column spacing on large screens */
@media only screen and (min-width: 992px) {
    .rn-slider-area .order-lg-1 {
        padding-right: 40px;
    }

    .rn-slider-area .order-lg-2 {
        padding-left: 20px;
    }
}