/* Root variables */
:root {
    --primary-color: #003255;
    --secondary-color: #00223f;
    --accent-color: #333;
    --light-color: #fff;
    --font-primary: "Playfair Display", serif;
    --font-secondary: "Cinzel", serif;
    --font-default: "Arial", sans-serif;
    --header-height: 60px;
    --transition-speed: 0.5s;
}

/* General styles */
body {
    background: white;
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    color: var(--accent-color);
    display: flex;
    flex-direction: column;     
    min-height: 100vh;
}

.homeImg {
    
    width: 80%; 
    height: auto; 
    display: block; 
    margin: 20px auto; 
    border-radius: 10px;
}

/* Header styles */
header {
    background: linear-gradient(
        to right,
        var(--secondary-color),
        var(--primary-color)
    );
    color: var(--light-color);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: var(--header-height);
    width: auto;
    max-width: 50%;
}

.logo span {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-left: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav a {
    color: var(--light-color);
    text-decoration: none;
}

.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -250px;
    height: 100%;
    width: 250px;
    background: linear-gradient(
        to right,
        var(--secondary-color),
        var(--primary-color)
    );
    overflow-x: hidden;
    transition: right var(--transition-speed) ease;
    z-index: 1001;
    padding-top: var(--header-height);
}

.mobile-menu .menu-close-icon {
    display: flex;
    justify-content: flex-end;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu li {
    margin: 1.5rem 0;
}

.mobile-menu a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 1rem;
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu.show .menu-close-icon {
    display: block;
}

/* Main content styles */
.main-section {
    margin-top: 0;
    flex: 1;
    padding: 2rem;
    text-align: center;
    font-size: 1.2rem;
}

#naslovnica {
    /* background: url("your-image-url.jpg") no-repeat center center/cover; */
    color: var(--accent-color);
    padding: 4rem 2rem;
    font-size: 1.5rem;
}

.subsection {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    margin: 5px;
}

.subsection1 {
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    margin: 5px;
}



/* General carousel styles */
.carousel {
    width: 500px; /* Increased width for the carousel container */
    height: 400px; /* Increased height for the carousel container */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Hide overflow to keep images within bounds */
    margin-right: 20px; /* Add margin if needed */
    border: 2px solid transparent; /* Invisible border to maintain layout */
    border-radius: 20px;
}

.carousel img {
    width: 100%; /* Ensure image fits within the width of the carousel container */
    height: 100%; /* Ensure image fits within the height of the carousel container */
    object-fit: cover; /* Cover the container without distortion */
}

.carousel img.hidden {
    display: none;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--light-color);
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 1.5em;
    z-index: 2; /* Ensure buttons are above images */
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.subsection-content {
    flex: 1;
    padding: 20px;
    max-width: 50%;
}

.section-title,
.subsection-title {
    font-family: var(--font-primary);
}

.separator {
    border-top: 1px solid rgba(200, 200, 200, 0.8);
    margin: 20px 0;
}

.contact-info {
    text-align: center;
    margin: 0 auto;
}

.contact-info h3,
.contact-info p {
    margin: 0.5em 0;
}

/* Footer styles */
footer {
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 1rem;
    text-align: center;
}

footer a {
    color: var(--light-color);
    text-decoration: none;
}

footer .social-media {
    margin-top: 10px;
}

footer .social-media a {
    margin: 0 10px;
    color: var(--light-color);
    font-size: 1.5rem;
}

footer .social-media a:hover {
    color: var(--light-color);
}

/* Media Queries */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .subsection {
        flex-direction: column;
    }

    .carousel {
        width: 100%; /* Make the carousel full width on smaller screens */
        height: 200px; /* Adjust the height for mobile view */
    }

    .subsection-content {
        max-width: 100%;
    }

    .subsection1-content {
        max-width: 100%;
    }
}


/* Additional CSS for section image */
.section-title-container {
    position: relative;
    text-align: center;
    margin-bottom: 0;
}

.section-title-container .section-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--light-color);
    font-size: 2.5rem;
    z-index: 2;
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-title-container .section-image {
    position: relative;
    width: 100%;
    height: calc(100vh); 
    overflow: hidden;
}

.section-title-container .section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container without distortion */
    display: block;
}

/* Add gradient overlay */
.section-title-container .section-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        var(--secondary-color),
        var(--primary-color)
    );
    opacity: 0.5; /* Adjust the opacity as needed */
    z-index: 1;
}

/* Accordion */
.accordion-item {
    margin-bottom: 10px;
}

.accordion-question {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* Remove gray background */
    border: none; /* Remove border */
    text-align: center; /* Center text */
}

.accordion-content {
    display: none;
    padding: 10px;
    text-align: center; /* Align content text */
}

.accordion-content.show {
    display: block;
}

.accordion-question::after {
    content: "+";
    font-size: 1.2rem;
}

.accordion-item.active .accordion-question::after {
    content: "-";
}
