 /* GENERELT */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

.babylonica-regular {
  font-family: "Babylonica", cursive;
  font-weight: 400;
  font-style: normal;
}


.inter-craft-font {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

body{
margin: 0;
font-family: "Inter", sans-serif;
font-size: 16px;
background-color: #ffff;
}

/* white border around page */
main {
  background-color: #EEF3ED;     
  margin: 4rem;                  
  border-radius: 12px;            
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}


/* NAV-BAR-STYLING */
.nav-links {
  list-style: none;
  display: flex;
  gap: 5rem; 
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #0e0e0e;
  font-weight: 500;
  position: relative; 
  padding: 0.2rem 0;  
  transition: color 0.3s ease;
}

/* Line when hover */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;              
  width: 0;
  background-color: #C7B8B7;
  transition: width 0.3s ease;
}

/* hover link */
.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;              /* line glide */
}

/* txt color change when hover */
.nav-links a:hover,
.nav-links a:focus {
  color: #045f42;           
}



/* HEADER */
header{
      background-color: #EEF3ED;
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-evenly;
      align-items: center;  
      position: relative;
      z-index: 10;
}

header nav {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}


  .c-promo{
      background-color: #ffffff;
      color: #0e0e0e;
      text-align: center;
      padding: 4rem 2rem;
      }

      .c-promo p {
  max-width: 800px;          
  margin: 0 auto;            
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Craftsvilla-logoen i Babylonica */
.brand{
  font-family: "Babylonica", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 30px;  
}

/* FARGEFESTIVAL */
    .colorfestival{
      background-color: #EEF3ED;
      color: #0e0e0e;
      text-align: center;
      padding: 4rem 2rem;
      }

      .colorfestival p {
  max-width: 800px;          
  margin: 0 auto;            
  font-size: 1.2rem;
  line-height: 1.6;
}

.colorfestival h2{
   font-family: "Inter", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 2rem;
  color: #0e0e0e;
}

/* CAROUSEL */
.promo-cards {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  overflow-x: auto;            /* muliggjør horisontal scroll */
  scroll-behavior: smooth;
  flex-wrap: nowrap !important;/* sørg for at det IKKE brytes til flere linjer */
  width: 100%;
  box-sizing: border-box;
}

.promo-cards::-webkit-scrollbar {
  height: 8px;                   /* scrollbar-høyde */
}

.promo-cards::-webkit-scrollbar-thumb {
  background-color: #C7B8B7;
  border-radius: 10px;
}

.promo-cards::-webkit-scrollbar-track {
  background-color: #EEF3ED;
}

.card {
  flex: 0 0 30%;                 
  max-width: 30%;
  min-width: 280px;              
  height: 380px;                 
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background-color: white;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.carousel-section {
  background-color: #EEF3ED;
  text-align: center;
  padding: 4rem 2rem;
}

.carousel-section h2 {
  font-family: "Inter", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 2rem;
  color: #0e0e0e;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* selve kort-raden */
.promo-cards {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex-wrap: nowrap;
  width: 80%;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: #C7B8B7 #EEF3ED;
}

/* kortene */
.card {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  min-width: 280px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card:hover {
  transform: translateY(-6px);
}

/* Piler */
.arrow {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease, transform 0.2s ease;
  z-index: 10;
}

.arrow:hover {
  color: #045f42;
  transform: scale(1.2);
}

.arrow.left {
  position: absolute;
  left: 2rem;
}

.arrow.right {
  position: absolute;
  right: 2rem;
}

/* responsiv */
@media (max-width: 800px) {
  .card {
    flex: 0 0 70%;
    max-width: 70%;
  }

  .arrow.left,
  .arrow.right {
    display: none; /* hide arrow*/
  }
}

/* VIDEO */
    .video-section{
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      width: 100%;
      flex-wrap: nowrap;
      filter: sepia(20%) opacity(80%) ;
    }

 .video-section video {
  flex: 1 1 50%; 
  max-width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
}

.video-section2{
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      width: 100%;
      flex-wrap: nowrap;
      filter: sepia(20%) opacity(80%) ;
    }
    .video-section2 video {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* OPPLEV CRAFTSVILLA */
    .opplev-c{
      background-color: #EEF3ED;
      color: #0e0e0e;
      text-align: center;
      padding: 4rem 2rem;
      }

      .opplev-c p{
  max-width: 800px;          
  margin: 0 auto;            
  font-size: 1.2rem;
  line-height: 1.6;
}

.opplev-c h2{
   font-family: "Inter", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 2rem;
  color: #0e0e0e;
}

/* BESTILL KURS-BILDE */
.kursbilder {
width: 100%;
height: 180px; 
overflow: hidden; 
}

.kursbilder img {
   width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}


/* BESTILL KURS SEKSJON */
.kursbilder-content {
  position: relative;
  background-image: url('./pictures/kursbilde3.png'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 2rem;       
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.order-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); 
  z-index: 1;
}

.order-content {
  position: relative;
  z-index: 2; /* sørger for at teksten ligger over overlay */
  max-width: 700px; /* begrenser linjelengde for lesbarhet */
}

.order-content h2 {
  font-family: "Inter", sans-serif;
  font-size: clamp(21px, 4vw, 32px);
  margin-bottom: 1rem;
  color: white;
}

.order-content p {
  font-family: "Inter", sans-serif;
  font-size: clamp(14px, 2.5vw, 24px);
  line-height: 1.5;
  margin-bottom: 2rem;
  color: white;
}

.order-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  color: rgb(18, 18, 18);
  background-color: #c9aead;
  border-radius: 45px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.order-button:hover {
  background-color: #EEF3ED; 
  transform: translateY(-2px);
}



/* FOOTER */
footer{
 background-color: #C7B8B7;
      color: #0b0a0a;
      text-align: center;
      padding: 4rem 2rem;
}

footer a {
  color: #0e0e0e;           
  text-decoration: none;    
}

footer a:hover {
  text-decoration: underline; 
  color: #255647;             
}
