/* General Styling */
body {
    background-color: rgb(245, 245, 245);
    font-size: 16px;
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

#wrapper {
    background-color: #fff; /* White background */
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0; /* Rounded corners */
}

.header-yellow {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    margin: 0;
    padding-top: 30px;
    background-color: #f4d651;
    border-radius: 8px 8px 0 0; /* Rounded corners */
}

/* Header Styles */
.logo {
    margin: 5px auto;
    text-align: center;
}
.logo img {
    width: 20%;
    height: auto;
}

/* Flags */
.flags {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin: 0;
    background-color: #f4d651;
}
.flags img {
    width: 30px;
    height: auto;
    cursor: pointer;
}

.english-flag {
    margin-right: 5px;
}

/* Navbar */
.navbar {
    background: linear-gradient(to right, #636466, #444);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 0 8px 8px; /* Rounded corners */
}

.navbar-toggler {
    border: 3px solid rgb(244, 214, 81);
    width: 50px;
    height: 50px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0 auto;
}

.navbar-toggler div {
    width: 70%;
    height: 5px;
    background-color: rgb(244, 214, 81);
    margin: 3px 0;
}

.navbar-nav {
    text-align: center;
}

.navbar-nav .nav-item {
    margin: 0.5rem 0;
}

.navbar-nav .nav-link {
    color: #fff !important;
    padding: 15px;
    font-size: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-right: 15px;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(244, 214, 81, 0.2);
    color: #f4d651 !important;
}

.navbar-nav .flags-in-menu img {
    width: 25px;
    margin: 0 5px;
}

/* Main Image Container */
.main-image {
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Image Styling */
.responsive-img {
    width: 100%;   /* Ensures the image takes up 100% of the parent div's width */
    height: auto;  /* Keeps the aspect ratio of the image */
    display: block; /* Removes any spacing below the image */
    object-fit: cover; /* Ensures the image fills the container while maintaining its aspect ratio */
}

/* Image Gallery */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0;
}

.image-container {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    min-width: 30%; /* Ensures at least 30% width for each image */
    max-width: 33%; /* Ensures no more than 33% width for each image */
    height: 250px; /* Set a fixed height for the container */
    margin-bottom: 0px;
    background-color:  rgb(99, 100, 102, 0.5);
}

.news-container {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: scale(1.05);
}

.image-container img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover; /* Crop the image to fit the container while maintaining aspect ratio */
    object-position: center; /* Keeps the image centered if it gets cropped */
    display: block;
    transition: transform 0.5s ease-in-out; /* Smooth zoom transition */
}

.image-container .description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    text-align: center;
}

/* News container */

/* News Container */
#news-container {
    display: flex; /* Use flexbox to arrange children in a row */
    flex-wrap: wrap; /* Allow wrapping if necessary */
    justify-content: center; /* Center content */
    gap: 20px; /* Space between image containers */
}

.description a {
    color: rgb(244, 214, 81);
    text-decoration: none;
    transition: color 0.3s ease;
}

.description a:hover {
    color: #fff;
}

/* Repository Container */
.repository-container {
    margin: 40px auto 20px;
    max-width: 800px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.repository-title {
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.repository-group {
    margin-bottom: 20px;
}

.repository-group h3 {
    margin-bottom: 10px;
    color: #444;
}

.repository-item {
    margin-bottom: 5px;
}

.repository-item a {
    text-decoration: none;
    color: rgb(85, 107, 47);
    transition: color 0.3s ease;
}

.repository-item a:hover {
    color: rgb(244, 214, 81);
}

/* Footer */
.footer {
    background-color: rgb(99, 100, 102);
    color: #fff;
    padding: 100px;
    text-align: center;
    border-radius: 0 0 8px 8px;
    max-width: 1200px;
    margin: -20px auto 0;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eu-logo {
    width: 300px;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 0.9em;
    line-height: 1.6;
    text-align: center;
    max-width: 500px;
    color: #fff;
}

/* Move to Top Button */
.move-to-top {
    background-color: rgb(244, 214, 81) !important;
    color: #000 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 15px !important;
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    padding: 0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.move-to-top:hover {
    background-color: rgb(244, 214, 81) !important;
    transform: scale(1.1);
}

/* Carousel Styling */
.carousel-container {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-inner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* News Description */
.news-description {
    margin-top: 20px;
    text-align: center;
}

/* News Title */
#news-title {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Contact styles */

.contact-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-heading {
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.contact-info p {
    margin: 10px 0;
    color: #555;
    font-size: 16px;
    text-align: left; /* Center the text */
}

.contact-info p strong {
    color: #333;
}

.contact-icons i {
    color: rgb(244, 214, 81);
    margin-right: 0px;
    text-align: justify; /* Justify text on both sides */
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

.logos-container img {
    max-width: 150px;
    transition: transform 0.3s ease;
}

.logos-container img:hover {
    transform: scale(1.05);
}

.email-item {
    text-decoration: none;
    color: rgb(85, 107, 47);
    transition: color 0.3s ease;
    margin-bottom: 5px;
}

.email-item:hover {
    color: rgb(244, 214, 81);
}

/* About styles */

.about-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-heading {
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.about-info {
    text-align: left; /* Left-aligned text */
}

.about-info p {
    margin: 10px 0;
    color: #555;
    font-size: 16px;
    text-align: justify; /* Justify text on both sides */
}

.about-info p strong {
    color: #333;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

.logos-container img {
    max-width: 150px;
    transition: transform 0.3s ease;
}

.logos-container img:hover {
    transform: scale(1.05);
}

/* Index.html image arrows - show all news */

/* Container for each image with arrows */
.image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Arrow styling for larger screens */
.arrow {
    position: absolute;
    font-size: 1.5rem;
    color: rgb(244, 238, 81);
    text-decoration: none;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s;
    z-index: 1;
}

/* Position arrows on left and right of the image */
.arrow-left {
    left: 5px;
}

.arrow-right {
    right: 5px;
}

/* Hover Effects */
.arrow:hover {
    transform: scale(1.2);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* New container for the gallery and arrows */
.gallery-container {
    position: relative; /* Make this container relative to allow absolute positioning of arrows */
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%; /* Ensure it takes up the available width */
    margin: 0 auto; /* Center the gallery container */
}

/* Image gallery styling */
.image-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Make image gallery relative for internal absolute elements */
    max-width: 100%; /* Adjust to leave space for the arrows */
}

/* Image containers */
.image-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Arrows styling for larger screens */
.arrow {
    position: absolute;
    font-size: 1.5rem;
    color: rgb(244, 238, 81);
    text-decoration: none;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s;
    z-index: 1;
}

/* Hover effects */
.arrow:hover {
    transform: scale(1.2);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* Hide the mobile arrows by default */
.arrow-left-mobile, .arrow-right-mobile {
    display: none; /* Hide by default */
    position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for the arrow height */
    font-size: 2rem;
    color: rgb(244, 238, 81);
    text-decoration: none;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s;
}

/*<!-- Inline CSS for Gallery Section Styling --> */
/* Gallery2 Container */
.gallery2-container {
    max-width: 800px;
    padding: 20px 30px 5px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin: 30px auto 10px auto;
}

.gallery2-title {
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Grid Layout for Gallery2 Items */
.gallery2-group {
    margin-bottom: 20px;
    text-align: center; /* Center group titles */
}

/* Center group titles */
.gallery2-group h3 {
    margin-bottom: -10px;
    color: #444;
}

.gallery2-message {
    margin: 28px auto 6px auto;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 620px;
}

.gallery2-message-error {
    color: #8a4b00;
}

/* Grid container for images */
.gallery2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns on larger screens */
}

/* Gallery2 Item */
.gallery2-item {
    cursor: pointer;
    display: flex;
    justify-content: center; /* Center image horizontally */
    align-items: center; /* Center image vertically */
}

/* Gallery2 Item Image */
.gallery2-item img {
    width: 100%; /* Make the image fill its container */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 30px;
}

/* Highlight selected image */
.gallery2-item.selected img {
    box-shadow: 0 0 10px 5px rgba(244, 214, 81, 0.8);
    transform: scale(1.05);
}

/* Enlarge on hover */
.gallery2-item img:hover {
    transform: scale(1.1);
}

/* Modal styles */
.modal-img {
    width: 100%;
    height: auto;
}

/* Modal Group Name Styling */
.modal-group-name {
    background-color: rgba(0, 0, 0, 0.5);
    color: rgb(244, 214, 81);
    font-size: 1.2em;
    padding: 10px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 10px 20px;
}

/* Make the modal background transparent */
.modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Responsive Styles */
@media (max-width: 1080px) {
    /* Adjust Navbar Spacing */
    .navbar {
        margin-top: 0px; /* Add margin-top for smaller screens */
    }

    /* Adjust text margin */
    .navbar-nav .nav-link {
        margin-right: 0px;
    }

    .navbar-nav .nav-item {
        margin: -0.2rem 0;
    }

    /* Move flags into the menu on mobile */
    .flags {
        display: none;
    }

    .navbar-nav .flags-in-menu {
        display: flex;
        justify-content: center;
        margin-top: 5px
    }

    /* Image Gallery in Vertical Form */
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }

    .image-container {
        position: relative;
        flex: 1;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        min-width: 100%; /* Ensures at least 30% width for each image */
        max-width: 100%; /* Ensures no more than 33% width for each image */
        max-height: 250px;
        min-height: 250px;
        height: 250px; /* Set a fixed height for the container */
        margin-bottom: 8px;
    }


    /* Hide the arrows inside each image container */
    .image-container .arrow {
        display: none;
    }

    /* Display arrows on mobile and align them with the images */
    .arrow-left-mobile, .arrow-right-mobile {
        display: block;
        position: absolute;
        top: 50%; /* Center vertically */
        transform: translateY(-50%); /* Adjust for the arrow height */
        font-size: 2rem;
        color: rgb(244, 214, 81);
        text-decoration: none;
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        transition: transform 0.3s, background-color 0.3s;
    }

    /* Position the left and right arrows */
    .arrow-left-mobile {
        left: 0; /* Align to the left of the image-gallery */
    }

    .arrow-right-mobile {
        right: 0; /* Align to the right of the image-gallery */
    }

    /* Adjust image gallery to leave space for arrows */
    .image-gallery {
        max-width: 100%; /* Reduce the width to leave space for arrows */
    }

    .image-container .description {
        font-size: 14px
    }

    .logos-container {
        flex-direction: column; /* Stack logos vertically */
        gap: 15px; /* Adjust gap between logos */
    }

    /* News Container */
    #news-container {
        flex-direction: column; /* Stack logos vertically */
        gap: 15px; /* Adjust gap between logos */
    }

    .logos-container a {
        width: 90%; /* Optional: Make logos take full width */
        text-align: center; /* Center logos within the container */
    }

    .logos-container img {
        max-width: 80%; /* Adjust size of logos on mobile */
        height: auto;
    }

    /* Footer */
    .footer {
        background-color: rgb(99, 100, 102);
        color: #fff;
        padding: 50px;
        text-align: center;
        border-radius: 0 0 8px 8px;
        max-width: 1200px;
        margin: -20px auto 0;
        position: relative;
    }

    .gallery2-grid {
        grid-template-columns: 1fr; /* Single column layout on mobile */
    }

    .gallery2-item img {
        width: 70%; /* Full width on mobile */
        height: auto;
    }

    .logo img {
        width: 40%;
        height: auto;
    }

    /* Main Image */
    .main-image {
        height: 100%;
        margin: 20px 0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* Yellow background on logo */
    .header-yellow {
        display: flex;
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
        margin: 0;
        padding-top: 20px;
        padding-bottom: 20px;
        background-color: #f4d651;
        border-radius: 8px 8px 0 0; /* Rounded corners */
    }
}
