/* Custom styles for Stegn.si */

/* General styles */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background: url('../images/background/bg_stegn.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Light overlay for better content readability */
    z-index: -1;
}

/* Carousel section */
.carousel-section {
    margin-bottom: 2rem;
}

.carousel-section .container {
    padding: 0;
}

.carousel {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-item {
    height: 400px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    bottom: 50%;
    transform: translateY(50%);
    width: 80%;
    left: 10%;
    right: 10%;
}

.carousel-caption h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 3rem;
}

.carousel-caption .lead {
    font-size: 1.5rem;
}

/* About section */
.about-section {
    padding: 3rem 0;
}

.about-section .card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
}

.about-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-section .card-body {
    padding: 2rem;
}

/* Navbar */
.navbar {
    background: url('../images/background/bg_menu.png') repeat-x !important;
    background-size: contain !important;
}

/* Language switcher */
.language-switcher {
    display: flex;
    align-items: center;
}

.lang-toggle {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-toggle.active {
    background-color: #fff;
    color: #343a40;
}

/* Accordion styles */
.accordion-button:not(.collapsed) {
    background-color: rgba(52, 58, 64, 0.1);
    color: #343a40;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(52, 58, 64, 0.25);
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.125);
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
}

/* Footer */
footer {
    margin-top: 3rem;
    background-color: rgba(52, 58, 64, 0.9) !important; /* Semi-transparent dark background */
    border-radius: 10px 10px 0 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .carousel-item {
        height: 350px;
    }

    .carousel-caption h1 {
        font-size: 2.5rem;
    }

    .carousel-caption .lead {
        font-size: 1.3rem;
    }

    .about-section .card-body {
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption .lead {
        font-size: 1.1rem;
    }

    .about-section .card-body {
        padding: 1.5rem;
    }

    .accordion-body .row {
        flex-direction: column;
    }

    .accordion-body .col-md-6:first-child {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 250px;
    }

    .carousel-caption {
        padding: 10px;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .carousel-caption .lead {
        font-size: 1rem;
    }

    .language-switcher {
        margin-top: 1rem;
    }
}