/* ----------------------------------
   General Styles
----------------------------------- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-size: 16px;
    /* Tamaño base de fuente */
    line-height: 1.5;
}

.container {
    width: 80%;
    margin: 20px auto;
    padding: 15px;
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 2px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    /* Utilizando el tamaño base */
}

/* ----------------------------------
   Announcement Styles
----------------------------------- */
.container-announcement {
    width: 80%;
    margin: 20px auto;
    padding: 15px;
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 2px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    box-sizing: border-box;
    position: relative;
    font-size: 1rem;
    /* Tamaño base */
}

.container-announcement p {
    margin: 5px 0;
    font-size: 1rem;
    /* Tamaño base */
}

img.img-container {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    margin: 0 auto 10px auto;
    display: block;
    border-radius: 12px;
    image-rendering: -webkit-optimize-contrast;
}

.btn-see-more {
    align-self: flex-end;
    padding: 10px 20px;
    color: #fff;
    background-color: #43883D;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1rem;
    /* Tamaño base */
    transition: background-color 0.3s ease;

}

.btn-see-more:hover {
    background-color: #285f18;
}

.btn-see-more i {
    margin-left: 5px;
    vertical-align: middle;
}

/* Announcement Modal */
#announcement-modal.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
}

#announcement-modal .modal-content {
    background-color: #fefefe;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    max-height: 85vh;
    overflow-y: auto;
    font-size: 1rem;
    /* Tamaño base */
}


/* Experience Modal */
#experience-modal.modal .modal-content {
    background-color: #fefefe;
    /* White background */
    position: relative;
    /* Positioned relative to its normal flow */
    top: 50%;
    /* Center vertically */
    transform: translateY(-50%);
    /* Adjust to align perfectly */
    margin: 0 auto;
    /* Center horizontally */
    padding: 20px;
    /* Internal padding */
    border: 1px solid #888;
    /* Gray border */
    width: 90%;
    /* Responsive width */
    max-width: 1200px;
    /* Limit width for larger screens */
    max-height: 85vh;
    /* Limit height */
    overflow-y: auto;
    /* Enable vertical scrolling */
    border-radius: 10px;
    /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Add shadow */
}

/* ----------------------------------
   Experience Styles
----------------------------------- */
.container-experience {
    width: 80%;
    /* Set the container's width */
    margin: 20px auto;
    /* Centered with margins */
    padding: 15px;
    /* Internal spacing */
    background-color: #FFFFFF;
    /* White background */
    border-radius: 8px;
    /* Rounded corners */
    border: 2px solid #ddd;
    /* Light gray border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    display: flex;
    /* Flex container */
    flex-direction: column;
    /* Stack elements vertically */
    gap: 0.5rem;
    /* Space between elements */
    box-sizing: border-box;
    /* Include padding and border in width */
    position: relative;
    /* Position container relative to its normal flow */
}


img.img-carousel-container {
    width: 100%;
    max-height: 530px;
    object-fit: cover;
    object-position: 30% 30%;
    border-radius: 12px;
    margin-bottom: 10px;
    image-rendering: -webkit-optimize-contrast;
}

/* Modal image styles */
.modal-content img {
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
}

span.carousel-control-prev-icon,
span.carousel-control-next-icon {
    background-color: black;
    /* Black background for navigation icons */
}

/* ----------------------------------
   Comments Section (In English)
----------------------------------- */
.container-announcementComment,
.container-experienceComment {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    /* Base font size for the comment section */
}

.comment-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
}

.comment-item p {
    margin: 0 0 5px;
    font-size: 0.875rem;
    /* Slightly smaller font size for comments */
}

.comment-item small {
    color: #6c757d;
    font-size: 0.75rem;
    /* Smaller font size for dates */
}

/* English translation for comment classes */
.comment-item .comment-text {
    font-size: 1rem;
    color: #333;
}

.comment-item .comment-author {
    font-weight: bold;
}

.comment-item .comment-date {
    color: #6c757d;
}





@media (max-width: 768px) {
    img.img-container {
        max-width: 100%;
        height: auto;
    }
}