/* Aarhus Center Styles */

/* Dropdown Styles */
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown:hover .desktop-dropdown-arrow {
    transform: rotate(180deg);
}

.desktop-dropdown-arrow {
    transition: transform 0.3s ease;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 1rem);
    margin: 0 0.5rem;
}

.carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Navigation Button Styles */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(36, 154, 62, 0.8);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s;
}

.nav-button:hover {
    background: rgba(36, 154, 62, 1);
}

.nav-button.prev {
    left: 1rem;
}

.nav-button.next {
    right: 1rem;
}

/* Slide Indicators */
.slide-indicators {
    text-align: center;
    padding: 1rem 0;
}

.indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: #249A3E;
}

/* Carousel Controls */
.carousel-control {
    background: rgba(36, 154, 62, 0.8);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0.25rem;
    margin: 0 0.25rem;
    transition: background 0.3s;
}

.carousel-control:hover {
    background: rgba(36, 154, 62, 1);
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(36, 154, 62, 0.3), rgba(27, 125, 48, 0.5));
    z-index: 1;
}

.hero-navigation {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.hero-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-nav-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-nav-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Language Dropdown Styles */
.language-dropdown {
    position: relative;
}

.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 50;
    min-width: 150px;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.language-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s;
    border-radius: 0.5rem;
    margin: 0.25rem;
}

.language-option:hover {
    background-color: #f3f4f6;
}

.language-option.active {
    background-color: #249A3E;
    color: white;
}

/* Flag Icon Styles */
.flag-icon {
    width: 35px;
    height: 30px;
    margin-right: 0.5rem;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
}

.flag-uk {
    background-image: url('../assets/en.png');
}

.flag-me {
    background-image: url('../assets/mne.png');
}

/* Large Flag Icon Styles for Header */
.flag-icon-large {
    width: 32px;
    height: 24px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Extra Large Flag for Current/Selected Language */
.flag-icon-current {
    width: 40px;
    height: 30px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Current Language Display */
.current-language {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

/* Navigation style for language dropdown */
.current-language.nav-style {
    background: transparent;
    color: white;
    border: none;
    box-shadow: none;
    border-radius: 0;
    font-weight: normal;
}

.current-language.nav-style:hover {
    background: #1B7D30;
    transform: none;
    box-shadow: none;
    border: none;
}

.current-language.nav-style:active {
    transform: none;
    box-shadow: none;
}

.dropdown-arrow {
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.language-menu.show ~ .current-language .dropdown-arrow {
    transform: rotate(180deg);
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #249A3E;
    padding: 2rem 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 1rem;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: #4DB86A;
}

.mobile-dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s;
}

.mobile-dropdown-toggle:hover {
    color: #4DB86A;
}

.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: white;
}

.mobile-dropdown.expanded .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1rem;
}

.mobile-dropdown.expanded .mobile-nav-submenu {
    max-height: 200px;
    margin-top: 0.5rem;
}

.mobile-nav-submenu a {
    font-size: 1rem;
    padding: 0.5rem 0;
    border: none;
    display: block;
}

/* Mobile Language Menu Items */
.mobile-language-separator {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-language-item {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s;
}

.mobile-language-item:hover {
    color: #4DB86A;
}

.mobile-language-item.active {
    color: #4DB86A;
    font-weight: 600;
}

.mobile-language-item .flag-icon {
    margin-right: 0.75rem;
}

/* Centers Carousel Styles */
.centers-carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 -12px; /* Compensate for item padding */
}

.centers-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.centers-carousel-item {
    flex-shrink: 0;
    padding: 0 12px;
}

.centers-nav-button {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.centers-nav-button:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.centers-dot {
    transition: all 0.3s ease;
}

.centers-dot:hover {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(100% - 1rem);
    }
    
    .centers-carousel-item {
        width: 100%;
    }
    
    .centers-nav-button {
        padding: 0.75rem;
    }
    
    .centers-nav-button svg {
        width: 1rem;
        height: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-language-selector {
        display: block;
    }
}

@media (min-width: 1025px) {
    .mobile-language-selector {
        display: none;
    }
}