/* ==============================
   Bootstrap 5 Custom Overrides
   ============================== */

/* ------------------------------
   Navbar
   ------------------------------ */
#mainNav {
    background-color: white;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#mainNav.scrolled {
    background-color: #ffffff; /* Vit vid scroll */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#mainNav .nav-link {
    color: black; /* Navbar text initial */
    transition: color 0.3s ease;
}

#mainNav .nav-link:hover {
    color: #ffcc00; /* Accentfärg vid hover */
}

#mainNav.scrolled .nav-link {
    color: #002541; /* Navbar text scrollad */
}

/* ------------------------------
   Masthead & Video Background
   ------------------------------ */
.masthead {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    text-align: center;
}

.video-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: -1;
}
.video-background video {
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.punch-quote {
    font-size: 3rem; /* större text */
    text-align: left; /* vänsterjusterat */
    width: 100%;
    margin-top: 20px;
    font-style: italic;
    line-height: 1.3;
 }

.punch-quote span {
    display: block;
    margin-bottom: 0.5rem;
}

.punch-quote .highlight {
    font-weight: 700;
    color: #ffcc00;
    font-size: 1.15em;
    letter-spacing: 1px;
}

/* ------------------------------
   Accent på fler texter
   ------------------------------ */
.page-section h2, 
.page-section h3 {
    color: #ffcc00; /* Rubriker i sektioner */
}

.text-accent {
    color: #ffcc00; /* Viktiga ord eller spans */
}

.page-section ul li.accent-item {
    color: #ffcc00; /* Viktiga listpunkter */
}

footer .highlight-text {
    color: #ffcc00; /* Footer viktiga texter */
}

/* ------------------------------
   Buttons
   ------------------------------ */
.btn-xl {
    padding: 1rem 2rem;
    font-size: 1.25rem;
}

.btn-primary {
    background-color: #002541;
    border-color: #002541;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #001830;
    border-color: #001830;
}

.btn-light {
    background-color: #ffffff;
    color: #002541;
    border: 1px solid #ccc;
}

.btn-light:hover {
    background-color: #f2f2f2;
    color: #002541;
}

/* Accent-knapp */
.btn-accent {
    background-color: #ffcc00;
    border-color: #ffcc00;
    color: #002541;
}

.btn-accent:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    color: #002541;
}

/* ------------------------------
   Sections
   ------------------------------ */
.page-section {
    padding: 6rem 0;
}

.bg-primary {
    background-color: #002541 !important;
}

.bg-light {
    background-color: #ffffff !important;
}

.text-white-50 {
    color: rgba(255,255,255,0.5) !important;
}

/* Divider */
.divider {
    border-top: 2px solid #8B0000;
    width: 60px;
    margin: 1.5rem auto;
}

/* Accent divider */
.divider-accent {
    border-top: 2px solid #ffcc00;
}

.divider-light {
    border-top: 2px solid rgba(255,255,255,0.4);
}

/* ------------------------------
   Ikoner
   ------------------------------ */
.icon-dark-bg {
    color: #ffffff;
}

.icon-light-bg {
    color: #002541;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(0%);
}

/* ------------------------------
   Accordion (Careers)
   ------------------------------ */
.accordion-button {
    font-weight: bold;
}

.accordion-button:focus {
    box-shadow: none;
}

/* ------------------------------
   Partners Section Images
   ------------------------------ */
.img-thumbnail {
    border: none;
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
}
.collaboration-img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

/* ------------------------------
   Footer
   ------------------------------ */
footer {
    font-size: 0.9rem;
    text-align: center;
    color: #ffffff;
    background-color: #002541;
}

footer.bg-light {
    color: #002541;
    background-color: #ffffff;
}

/* Footer accent-länkar */
footer a.accent-link {
    color: #ffcc00;
}

footer a.accent-link:hover {
    color: #e6b800;
}

/* ------------------------------
   Cookie Alert
   ------------------------------ */
.cookiealert {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #343a40;
    color: white;
    padding: 0.25rem 0.75rem;
    z-index: 1050;
}

.cookiealert a {
    color: #ffc107;
    text-decoration: underline;
}

/* ------------------------------
   Responsive tweaks
   ------------------------------ */
@media (max-width: 768px) {
    .masthead {
        height: 95vh;
    }
    .text-clamp {
        -webkit-line-clamp: unset; /* visa hela texten på desktop */
    }
    .video-background video {
        height: 100%; 
        width: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .punch-quote {
    font-size: 3rem; /* större text */
    text-align: left; /* vänsterjusterat */
    width: 100%;
    margin-top: 20px;
    font-style: italic;
    line-height: 1.3;
    }

    .punch-quote .highlight {
        font-size: 1.15em;
    }

	.page-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
	}
}
.text-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* antal rader */
    overflow: hidden;
}

.show-more {
    background: none;
    border: none;
    color: #ffcc00;
    cursor: pointer;
    padding: 0;
    font-weight: bold;
}