/* ----------------------------------
   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 {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

.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;
    z-index: 2;
}

.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%;
    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;
    gap: 0.5rem;
    font-size: 1rem; /* Base font size */
}

.img-carousel-container {
    max-width: 300px; /* Set maximum width for the image */
    width: 100%; /* Ensure it scales properly within the container */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure the image is cropped to fit the container without distortion */
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}
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;
}
