/* PREMIUM HERO */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 350px;
    overflow: hidden;
    border-bottom: 2px solid #ddd;
}

/* Dark gradient overlay for readability */
.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.00),
        rgba(0,0,0,0.00)
    );
    z-index: 5;
    pointer-events: none;
}

/* Slides */
.slide {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: left 0.8s ease;
}

/* Text content */
.hero-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 10; /* above gradient */
    color: #222;
    text-shadow: 0 0 4px rgba(255,255,255,0.4);
}

.hero-text h1 {
    font-size: 2.4rem;
    margin: 0;
}

.hero-text p {
    font-size: 1.2rem;
    margin-top: 8px;
}

/* Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    z-index: 20;
    border-radius: 6px;
    transition: background 0.2s;
}

.hero-arrow:hover {
    background: rgba(0,0,0,0.5);
}

/* Correct classes for new template */
.hero-prev {
    left: 10px;
}

.hero-next {
    right: 10px;
}

/* Clickable overlay */
.hero-link {
    position: absolute;
    inset: 0;
    z-index: 6; /* above gradient, below text */
}

/* Timer dots */
.hero-timer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px; /* litt større avstand */
    z-index: 15;
}

.hero-timer div {
    width: 14px;
    height: 14px;
    background: rgba(0, 200, 0, 0.4); /* grønn-ish */
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
}

.hero-timer .active {
    background: rgba(0, 255, 0, 0.9); /* sterk grønn */
    transform: scale(1.25); /* gjør aktiv dot mer synlig */
}


/* MOBILE FIX FOR HERO ARROWS */
@media (max-width: 600px) {
  .hero-arrow {
    font-size: 1.8rem;
    padding: 0 6px;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }
}

/* -------------------------------------------------- */
/* FLOATING BADGES FOR SLIDE 1 */
/* -------------------------------------------------- */

.hero-floating {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 40px;
    z-index: 12; /* above text, below arrows */
    pointer-events: none; /* badges skal ikke blokkere klikk */
}

.hero-badge {
    font-weight: 800;
    font-size: 1.6rem;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.85);
    color: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: rotate(var(--rot, 0deg));
    backdrop-filter: blur(4px);
    white-space: nowrap;
    pointer-events: auto; /* gjør at hover funker hvis du vil */
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .hero-floating {
        gap: 10px;
        padding: 20px;
    }

    .hero-badge {
        font-size: 1rem;
        padding: 8px 12px;
        border-radius: 8px;
    }
}

/* -------------------------------------------------- */
/* CRM SLIDE (stram stil) */
/* -------------------------------------------------- */

.crm-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    color: white;
    text-align: center;
    position: relative;
}

.crm-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.crm-slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.crm-slide h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.crm-slide-intro {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.crm-slide-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crm-slide-highlights li {
    font-size: 1.2rem;
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.25);
}

@media (max-width: 600px) {
    .crm-slide h1 {
        font-size: 2rem;
    }

    .crm-slide-intro {
        font-size: 1rem;
    }

    .crm-slide-highlights li {
        font-size: 1rem;
    }
}
