/* ====================================
   Welcome Section Styles
==================================== */
.right-image {
    flex: 1;
    background: url('/resources/media/images/nosotros-welcome-img.jpg') no-repeat top center/cover; /* Center the background image */
    border-radius: 15px; /* More rounded corners */
    height: 450px; /* Slightly increased height */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Increased shadow */
}

/* ====================================
   Historia Section Styles
==================================== */
#historia {
    width: 100%; /* Full width */
    padding: 50px 20px; /* Padding around section */
    background: #EEF1EF; 
    color: #201E1F; /* White text color */
    text-align: center; /* Center text alignment */
    overflow: hidden; /* Hide overflow content */
}

/* Timeline Styles */
.timeline-item {
    display: flex; /* Flexbox for layout */
    flex-direction: row; /* Row direction */
    justify-content: space-between; /* Space between items */
    align-items: center; /* Center items vertically */
    margin-bottom: 50px; /* Space below item */
    padding: 20px; /* Padding around item */
    background: #EEF1EF;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Shadow for depth */
    animation: fadeIn 1s ease-in-out; /* Fade in animation */
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse; /* Reverse direction for even items */
}

.timeline-content {
    width: 60%; /* Content width */
    padding: 20px; /* Padding around content */
    display: flex; /* Flexbox for layout */
    flex-direction: column; /* Column direction */
    justify-content: center; /* Center content vertically */
    border-radius: 10px; /* Rounded corners */
}

.timeline-content h3 {
    font-size: 2rem; /* Large font size */
    margin-bottom: 10px; /* Space below heading */
    color: #EF233C;
}

.timeline-content p {
    font-size: 1.2rem; /* Medium font size */
    line-height: 1.8; /* Line height */
}

.timeline-image {
    width: 35%; /* Image container width */
    height: 250px; /* Fixed height for carousel images */
    display: flex; /* Flexbox for layout */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    overflow: hidden; /* Hide overflow content */
    border-radius: 10px; /* Rounded corners */
}

.timeline-image img {
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    object-fit: cover; /* Cover the container */
    border-radius: 10px; /* Rounded corners */
}

/* ====================================
   Declaración Doctrinal Section Styles
==================================== */
#doctrina {
    display: flex; /* Use flexbox */
    flex-direction: column; /* Flex direction column */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    padding: 60px 20px;
    background: #EEF1EF;
    text-align: center;
    overflow: hidden;
    min-height: 100vh; /* Ensure it takes the full viewport height */
}

.doctrina-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.doctrina-item {
    background: #778DA9;
    color: #FFFFFF;
    font-size: 1.2rem;
    line-height: 1.8;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(45% - 10px); /* Adjusted width to fit two items per row */
    margin: 10px;
}

.doctrina-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ====================================
   Mision Section Styles
==================================== */
#mision {
    position: relative; /* Position relative for absolute positioning of children */
    width: 100%; /* Full width */
    height: 100vh; /* Full screen height */
    display: flex; /* Flexbox for centering content */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    background: url('/resources/media/images/about-images/mision.webp') no-repeat center center fixed; /* Parallax background */
    background-size: cover; /* Cover entire section with background image */
    overflow: hidden; /* Hide overflow content */
}

.mision-overlay {
    position: absolute; /* Position absolute for overlay */
    top: 0; /* Start at top */
    left: 0; /* Start at left */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background: linear-gradient(to bottom,#EEF1EF,#eef1efd2);
    z-index: 1; /* Place above background */
}

.content-container {
    position: relative; /* Position relative */
    z-index: 2; /* Place above overlay */
    max-width: 1200px; /* Maximum width */
    margin: 0 auto; /* Center horizontally */
    padding: 40px 20px; /* Padding around content */
}

.mision-content {
    text-align: center; /* Center align text */
}

.mision-text {
    font-size: 1.2rem; /* Medium font size */
    line-height: 1.8; /* Line height */
    margin-bottom: 20px; /* Space below text */
}

/* ====================================
   Responsive Styles
==================================== */
@media (min-width: 769px) {
    .break-text {
        display: inline-block;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Timeline Section Responsive Styles */
    .timeline-item {
        flex-direction: column; /* Column direction on mobile */
    }

    .timeline-item:nth-child(even) {
        flex-direction: column-reverse; /* Reverse direction for even items */
    }

    .timeline-content, .timeline-image {
        width: 100%; /* Full width on mobile */
    }

    .timeline-content {
        text-align: left; /* Left-align text */
    }

    .timeline-image {
        height: 200px; /* Adjusted height for mobile */
    }

    /* Pastor Section Responsive Styles */

    #pastor {
        display: block;
    }
    
    .pastor-content {
        flex-direction: column-reverse; /* Stack content vertically */
        padding: 20px; /* Padding around content */
    }

    .pastor-wrapper {
        flex-direction: column-reverse; /* Stack content vertically */
        gap: 1rem; /* Reduce gap */
    }

    .pastor-image, .pastor-details {
        width: 100%; /* Full width on mobile */
        height: auto; /* Adjust height */
    }

    .pastor-details p {
        font-size: 1rem; /* Adjust font size for mobile */
    }

    /* Mision Section Responsive Styles */
    #mision {
        flex-direction: column;
        background-attachment: scroll; /* Changed from fixed to scroll */
        background-size: cover; /* Cover the container */
        }
    .content-container {
        padding: 20px 10px; /* Adjust padding for mobile */
    }

    .mision-text {
        font-size: 1rem; /* Adjust font size for mobile */
    }

    /* Declaración Doctrinal Section Responsive Styles */

    .doctrina-item {
        font-size: 1rem; /* Adjust font size for mobile */
        padding: 10px 20px; /* Adjust padding for mobile */
        width: 100%; /* Full width on mobile */
    }
}
