body {
    color: var(--text-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Meny */
.navbar a,
.navbar-brand {
    color: var(--link-color);
}

.navbar a:hover,
.navbar a:focus {
    color: var(--link-hover-color);
}
.navbar-nav .current-menu-item > a,
.navbar-nav .current_page_item > a {
    color: var(--active-link-color);
    font-weight: bold;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video,
.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}



.hero-section + * {
    margin-top: 0;
}

.hero-img.fallback {
    background-color: #222;
    width: 100%;
    height: 100%;
}

.hero-video-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    object-fit: cover;
}

#hero-rotator {
    position: relative;
    width: 100%;
    height: 100%;
}

#hero-rotator .rotator-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    width: 100%;
    text-align: center;
}

#hero-rotator .rotator-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}



.hero-section .rotator-item h1,
.hero-section .rotator-item p {
    margin: 0;
    padding: 0;
    transition: all 0.5s ease;
}



.hero-text-wrapper {
    padding-bottom: 60px; /* så knappen inte ligger precis vid kanten */
}
.hero-button-custom {
    margin-top: auto;
}

#mainNavbar {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

#mainNavbar .custom-logo {
    max-height: 40px; /* justera efter behov */
    height: auto;
    width: auto;
}

.navbar-nav {
  padding-right: 2rem;
}

#mainNavbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.bg-almost-black {
  background-color: #0d0d0d !important; /* Nära kolsvart */
}

.page-featured-image {
    width: 100%;
    max-height: 500px; /* Valfritt maxhöjd */
    overflow: hidden;
}

.page-featured-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}
/* Förhindra att AOS skapar sidscroll */


/* Extra skydd mot element som flyttas utanför viewport */
[data-aos] {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    
}
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}
