html {
  scroll-behavior: smooth;
}

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

/* ===============================
   BASE TYPOGRAPHY & COLORS
================================*/
:root {
  --primary: #34d1b6;
  --dark: #04121e;
  --text: #030303;
  --light: #f9f9f9;
  --transition: 0.3s ease-in-out;
}

body {
  font-family: "Open Sans", sans-serif;
  background: white;
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  color: var(--dark);
}

p {
  color: #0a0a0a;
  font-size: 18px;
  line-height: 1.6;
  padding: 10px;
}

/* ===============================
   HEADER SECTION
================================*/
.header {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
    url(img/bilde.jpeg) center/cover no-repeat;
  position: relative;
}

nav {
  display: flex;
  padding: 2% 6%;
  justify-content: space-between;
  align-items: center;
}

nav img {
  width: 200px;
}

.nav-links {
  position: relative;
  z-index: 10;
}

.nav-links ul {
  list-style: none;
}

.nav-links ul li {
  display: inline-block;
  padding: 8px 12px;
  position: relative;
}

.nav-links ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links ul li::after {
  content: "";
  width: 0%;
  height: 2px;
  background: var(--primary);
  display: block;
  margin-top: 4px;
  transition: width var(--transition);
}

.nav-links ul li:hover::after {
  width: 100%;
}

.nav-links ul li a:hover {
  color: var(--primary);
}
/* Hindre scrolling når meny er åpen */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}


.text-box {
  width: 90%;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.text-box h1 {
  font-size: 62px;
  letter-spacing: 1px;
  color: white;
}

.text-box p {
  margin: 10px 0 40px;
  font-size: 18px;
  color: #fff;
  position: relative;
  z-index: 5;
}
.text-box-knapp {
  display: inline-block;
  text-decoration: none;
  color:#fff;
  border: 2px solid #fff;
  padding: 12px 34px;
  font-size: 18px;
  border-radius: 30px;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.text-box-knapp:hover{
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}


.hero-btn {
  display: inline-block;
  text-decoration: none;
  color:#000;
  border: 2px solid #fff;
  padding: 12px 34px;
  font-size: 18px;
  border-radius: 30px;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}



.hero-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

nav .fa-solid {
  display: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ===============================
   RESPONSIVE NAVIGATION
================================*/
@media (max-width: 700px) {
  .text-box h1 {
    font-size: 28px;
  }

  .nav-links ul li {
    display: block;
    margin: 20px 0;
  }

  .nav-links {
    position: absolute;
    background: var(--primary);
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;
    text-align: left;
    z-index: 2;
    transition: 0.8s;
  }

  nav .fa-solid {
    display: block;
    margin: 10px;
  }

  .nav-links ul {
    padding: 30px;
  }
}

/* ===============================
   PROBLEM SECTION    
================================*/
/* PROBLEM SECTION */
.problem {
  width: 80%;
  margin: 100px auto;
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.problem h1 {
  font-size: 36px;
  color: var(--dark);
  margin-bottom: 40px;
}

.problem-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.point {
  background: #f1f7f5;
  padding: 15px 25px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.point:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(52, 209, 182, 0.25);
}

.problem p {
  margin-top: 20px;
  font-size: 18px;
}


/* ===============================
   COURSES SECTION
================================*/
.courses {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 200px;
}

h1 {
  font-size: 36px;
  font-weight: 600;
}

.row {
  margin-top: 5%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;
}

.courses-col {
  flex-basis: 30%;
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  box-sizing: border-box;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.courses-col:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(52, 209, 182, 0.3);
}

h3 {
  text-align: center;
  font-weight: 600;
  margin: 10px;
}

/* CAMPUS SECTION*/
.campus {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 150px;
  padding-bottom: 100px;
}

.campus-col {
  
  flex: 1;                      
  min-width: 280px;                
  border-radius: 10px;
  background: #f1f7f5;
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

}

.campus-col img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
    
}
.rekke {
  display: flex;                   
  justify-content: space-between;  
  align-items: stretch;           
  gap: 40px;                       
  flex-wrap: wrap;                 
}
.campus p{
  margin-top: 100px;
}


.layer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(52, 209, 182, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.layer:hover {
  opacity: 1;
}

.layer h3 {
  color: #0a0606;
  font-size: 26px;
  font-weight: 500;
  text-align: center;
  padding: 0 10px;
}
/* På mobil: vises alltid */
@media (max-width: 700px) {
  .layer {
    opacity: 1 !important; /* alltid synlig */
  }
}

/* ===============================
   FACILITIES SECTION
================================*/
.facilities {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

.facilities-col {
  flex-basis: 45%;
  border-radius: 10px;
  margin-bottom: 5%;
  text-align: left;
  background: #fff;
  padding: 20px;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.facilities-col:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(52, 209, 182, 0.2);
}

.facilities-col img {
  width: 100%;
  height: 250x;
  border-radius: 10px;
  margin-bottom: 15px;
  object-fit: cover;
  margin-bottom: 15px;

}

.facilities-col h3 {
  color: var(--dark);
  margin-bottom: 10px;
}


/* ===============================
   PILOT SECTION    
================================*/
.pilot {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
  background-color: #f1f7f5;
  border-radius: 12px;
}

.pilot:hover {
  box-shadow: 0 10px 25px rgba(52, 209, 182, 0.2);
  transform: translateY(-5px);
}

/* ===============================
   ABOUT SECTION                                
================================*/
.about {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

.about h2{
  margin-bottom: 20px;
  font-size: 36px;
  font-weight: 600;
}

/* ===============================
   CTA SECTION
================================*/
.cta {
  margin: 100px auto;
  width: 80%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(img/kontakt.jpg) center/cover;
  border-radius: 12px;
  text-align: center;
  padding: 100px 40px;
  color: #fff;
}

.cta h1 {
  margin-bottom: 40px;
  color: #fff;
}

.cta a {
  display: inline-block;
  background: var(--primary);
  color: #000;
  padding: 12px 34px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.cta a:hover {
  background: #fff;
  color: var(--dark);
}


/* ===============================
   Faq SECTION
/===============================*/
.wrapper {
  max-width: 75%;
  margin: auto;
}

.wrapper > p,
.wrapper > h1 {
  margin: 1.5rem 0;
  text-align: center;
}



.accordion {
  background-color: white;
  color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  font-size: 1.2rem;
  width: 100%;
  padding: 2rem 2.5rem;
  border: none;
  outline: none;
  transition: 0.4s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.accordion i {
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}

.accordion.active i {
  transform: rotate(180deg);
}

.active,
.accordion:hover {
  background-color: #f1f7f5;
}
.panel {
  display: none;
  padding: 0 2rem 2.5rem 2rem;
  background-color: white;
  overflow: hidden;
  background-color: #f1f7f5;
}
.panel p {
  color: rgba(0, 0, 0, 0.7);
  font-size: 1.2rem;
  line-height: 1.4;
 
}

.faq {
  border: 1px solid rgba(0, 0, 0, 0.2);
  margin: 10px 0;
}
.faq.active {
  border: none;
}



/* ===============================
   FOOTER
================================*/
.footer {
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.footer p {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #000;
  letter-spacing: 0.5px;
}

@media (max-width: 700px) {
  .footer {
    font-size: 14px;
    padding: 15px 0;
  }
}

/* ===============================
   MOBILE LAYOUT
================================*/
@media (max-width: 700px) {
  .row {
    flex-direction: column;
  }

  .courses-col,
  .facilities-col {
    flex-basis: 100%;
    margin-bottom: 20px;
  }

   .text-box h1 {
    font-size: 24px;
  }
}


.kontakt{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  background-color: #f1f7f5;
  border-radius: 12px;
  margin: 100px auto;
  width: 80%;
  margin-top: 200px;
  margin-bottom: 250px;
}

.kontakt:hover {
  box-shadow: 0 10px 25px rgba(52, 209, 182, 0.2);
  transform: translateY(-5px);
}



/* ===============================
   FIX: HINDRE SIDEVEIS SCROLL PÅ MOBIL
================================*/
html, body {
  width: 100%;
  overflow-x: hidden !important;
  position: relative;
}

/* Hindrer at flex-rader eller bilder stikker ut */
.row, .rekke, section {
  overflow-x: hidden;
}

/* Fiks for mobilmeny som stikker ut */
@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    transition: right 0.5s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .nav-links ul {
    padding: 0;
    text-align: center;
  }

  .nav-links ul li {
    margin: 15px 0;
  }

  nav .fa-solid {
    z-index: 1000;
  }

  body.no-scroll {
    overflow: hidden;
    height: 100vh;
  }
}
