/* CSS moved from index.html */
:root {
    --bs-primary: #2E7D32 !important;
    --bs-primary-rgb: 46,125,50 !important;
    --bs-secondary: #1B5E20 !important;
    --bs-secondary-rgb: 27,94,32 !important;
    --bs-success: #4CAF50 !important;
}
.btn-primary, .bg-primary {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
}
.btn-primary:hover, .bg-primary:hover {
    background-color: #1B5E20 !important;
    border-color: #1B5E20 !important;
}
.text-primary {
    color: #2E7D32 !important;
}
.btn-success, .bg-success {
    background-color: #4CAF50 !important;
    border-color: #4CAF50 !important;
}
.btn-success:hover, .bg-success:hover {
    background-color: #388E3C !important;
    border-color: #388E3C !important;
}
body {
    background-image: url('../assets/Other/mosaique.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}
#newsCarousel .carousel-caption, #newsCarousel p, #newsCarousel .news-overlay {
    text-align: justify !important;
}
/* News carousel specific styles */
#newsCarousel .news-image-wrapper {
    position: relative;
    height: 500px;
    background-color: transparent;
    overflow: hidden;
}
#newsCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#newsCarousel .news-url {
    padding: 1.5rem;
    text-align: center;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
}
#newsCarousel .news-button {
    display: inline-block;
    background-color: var(--bs-primary);
    color: white;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#newsCarousel .news-button:hover {
    background-color: var(--bs-secondary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
    #newsCarousel {
        min-height: 90vw;
        height: 90vw;
        max-height: 100vw;
        position: relative;
    }
    #newsCarousel .carousel-inner {
        min-height: 90vw;
        height: 100%;
    }
    #newsCarousel .carousel-item,
    #newsCarousel .carousel-item.active {
        min-height: 90vw;
        height: 100%;
        position: relative;
    }
    #newsCarousel .news-image-wrapper {
        min-height: 90vw;
        height: 100%;
        width: 100%;
        position: relative;
        overflow: hidden;
    }
    #newsCarousel .carousel-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin: 0;
        padding: 0;
        background: transparent;
        max-width: none;
        max-height: none;
    }
}
@media (max-width: 480px) {
    #newsCarousel {
        min-height: 120vw;
        height: 120vw;
    }
    #newsCarousel .carousel-inner,
    #newsCarousel .carousel-item,
    #newsCarousel .carousel-item.active,
    #newsCarousel .news-image-wrapper {
        min-height: 120vw;
        height: 100%;
    }
}
/* Responsive carousel images: contain on mobile, cover on desktop */
.carousel-inner img, .carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
@media (max-width: 768px) {
    .carousel-inner img, .carousel-item img {
        object-fit: contain !important;
        max-height: 300px !important;
        height: auto !important;
    }
}
@media (max-width: 480px) {
    .carousel-inner img, .carousel-item img {
        max-height: 180px !important;
    }
}
.news-button {
    display: inline-block;
    background-color: #2E7D32;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    min-width: 200px;
    margin: 0 auto;
}
.news-button:hover {
    background-color: #1B5E20;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.news-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.3);
}
.news-url {
    text-align: center;
    background: white;
    padding: 1.5rem;
}
.news-button {
    margin: 0 auto;
    display: inline-block;
}
.carousel-image-wrapper {
    aspect-ratio: 16/9;
    width: 100%;
    background: #f8f9fa;
    position: relative;
}
@media (max-width: 768px) {
    .carousel-image-wrapper {
        aspect-ratio: 4/3;
    }
}
@media (max-width: 480px) {
    .carousel-image-wrapper {
        aspect-ratio: 1/1;
    }
}
.carousel-inner img, .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-image-wrapper, .carousel-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    min-height: 200px;
    /* No aspect-ratio */
}
.news-image, .carousel-image {
    width: auto;
    max-width: 100%;
    height: 60vw;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .news-image, .carousel-image {
        height: 350px;
        max-height: 500px;
    }
}
.carousel-inner img, .carousel-item img {
    width: auto;
    max-width: 100%;
    height: 60vw;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .carousel-inner img, .carousel-item img {
        height: 350px;
        max-height: 500px;
    }
}
.hamburger {
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    width: 2rem;
    height: 2rem;
    position: relative;
    display: inline-block;
    cursor: pointer;
    z-index: 60;
}
.hamburger-bar {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #2E7D32;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.bar1 { top: 6px; }
.bar2 { top: 14px; }
.bar3 { top: 22px; }
.hamburger.active .bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .bar2 {
    opacity: 0;
}
.hamburger.active .bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
}
.mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}
.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
}
.carousel-image, .carousel-inner img, .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    background: #f8f9fa;
}
.carousel-item {
    height: 400px;
    background: #f8f9fa;
}
@media (min-width: 768px) {
    .carousel-item {
        height: 500px;
    }
}
@media (max-width: 767px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-image, .carousel-inner img, .carousel-item img {
        object-fit: contain;
    }
}
@media (max-width: 480px) {
    .carousel-item {
        height: 250px;
    }
}
@media (min-width: 768px) {
    .min-h-\[120vw\] {
        min-height: 400px !important;
    }
}
@media (max-width: 767px) {
    #news .bg-white.bg-opacity-90.rounded-2xl.p-8.shadow-lg {
        padding: 0.5rem !important;
    }
    #newsCarousel {
        min-height: 120vw;
    }
    #newsCarousel .carousel-inner {
        min-height: 120vw;
    }
}
body, h1, h2, h3, h4, h5, h6, p, a, li, label, input, textarea, button, div, span {
    font-family: 'Montserrat', sans-serif !important;
}
/* Carousel container styles */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .carousel-container {
        margin: 0 -0.5rem;
        border-radius: 0;
    }
    
    #news .bg-white.bg-opacity-90.rounded-2xl.p-8.shadow-lg {
        padding: 1rem !important;
        margin: 0.5rem;
    }
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
    }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
}

@media (max-width: 480px) {
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Carousel base styles */
.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 400px;
    position: relative;
    overflow: hidden;
}

.carousel-image, .carousel-inner img, .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Desktop styles */
@media (min-width: 768px) {
    .carousel-item {
        height: 500px;
    }
}

/* Mobile styles */
@media (max-width: 767px) {
    .carousel-item {
        height: 100%;
        min-height: 300px;
    }
    
    .carousel-inner {
        height: 100%;
        min-height: 300px;
    }
    
    #newsCarousel {
        min-height: 300px;
    }
    
    #newsCarousel .carousel-inner {
        min-height: 300px;
    }
    
    #newsCarousel .news-image-wrapper {
        height: 300px;
        position: relative;
        overflow: hidden;
    }
    
    #newsCarousel .news-image-wrapper img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        min-height: 250px;
    }
    
    .carousel-inner {
        min-height: 250px;
    }
    
    #newsCarousel {
        min-height: 250px;
    }
    
    #newsCarousel .carousel-inner {
        min-height: 250px;
    }
    
    #newsCarousel .news-image-wrapper {
        height: 250px;
    }
}

/* Remove any background colors that might show through */
.carousel-item,
.carousel-inner,
.news-image-wrapper,
.carousel-image-wrapper {
    background: transparent !important;
}

@media (max-width: 768px) {
    /* Make all carousels taller on mobile */
    .carousel,
    .carousel-inner,
    .carousel-item,
    .carousel-item.active,
    .news-image-wrapper,
    .carousel-image-wrapper {
        min-height: 120vw !important;
        height: 120vw !important;
        max-height: 140vw !important;
        width: 100% !important;
        position: relative !important;
        overflow: hidden !important;
    }
    /* Ensure all carousel images fill the div and are fully visible */
    .carousel img,
    .carousel-item img,
    .carousel-image,
    .news-image {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        max-width: none !important;
        max-height: none !important;
    }
}
@media (max-width: 480px) {
    .carousel,
    .carousel-inner,
    .carousel-item,
    .carousel-item.active,
    .news-image-wrapper,
    .carousel-image-wrapper {
        min-height: 160vw !important;
        height: 160vw !important;
        max-height: 180vw !important;
    }
} 