body {
 margin: 0; 
 background-color: hsl(119, 43%, 92%);
 font-family: 'Georgia', sans-serif;
 font-weight: 400;
}

header{
 background-image: url('../images/logo1.png'); 
 background-size: 70%;
 background-repeat: no-repeat; 
 background-position: center 35%; 
 height: 400px; 
 width: 100%;
 background-color: white;
}

p {
 max-width: 75ch;
 line-height: 1.6;
 font-size: 1.125rem;
}

h2 {
 font-weight: 400;
 text-transform: uppercase;
}

ul {
  line-height: 1.6;
  font-size: 1.125rem;
}

.terms{
  max-width: 75ch;
  line-height: 1.6;
  font-size: 1.125rem;
}

/*meny */

.navbar {   
 background-color: hsl(129, 46%, 18%); 
 padding: 0 20px;  
}

@media (max-width: 600px) {
 .navbar ul {
  flex-direction: column;
  align-items: flex-start;
 }
}

@media (max-width: 900px) {
  .navbar ul {
    flex-wrap: wrap; 
    justify-content: center;
  }
}

.navbar ul {
 list-style-type: none; 
 padding: 0px;
 margin: 0px;  
 display: flex;
 justify-content: center;
 align-items: center; 
 gap: 10px;
 width: 100%;   
 font-size: 18px;
}

.navbar a{
 color: white; 
 text-decoration: none;
 padding: 15px; 
 display: block; 
 text-align: center;
}

.navbar a:hover, .dropdown:hover .dropbtn {
 background-color: hsl(136, 88%, 23%);
}

.navbar li.dropdown {
 display: inline-block;  
}

.dropdown-content {
 display: none; 
 position: absolute; 
 background-color: hsl(129, 46%, 18%);
 min-width: 160px; 
 box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
 z-index: 1; 
}

.dropdown-content a {
 color: white; 
 padding: 12px 16px; 
 text-decoration: none; 
 display: block; 
 text-align: left; 
}

.dropdown-content a:hover {
 background-color: hsl(136, 88%, 23%);
}

@media (min-width: 901px) {

  .dropdown:hover .dropdown-content {
   display: block; 
  }

  .dropdown:hover .arrow {
    transform: rotate(180deg);
  }

}

.arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

/* när dropdown är öppen */
.dropdown.open .arrow {
  transform: rotate(180deg);
}

/*meny slut */

/* hamburgermeny */

.hamburger {
  display: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
  padding: 15px;
}

/* mobil + surfplatta */

@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .navbar ul.active {
    display: flex;
  }

  .navbar li {
    width: 100%
  }

  .navbar a {
    width: 100%;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }
}

/* slut på hamburgermeny */

main {
 max-width: 1200px;
 width: 90%; 
 margin: 40px auto; 
 background-color: white; 
 padding: 20px; 
 border-radius: 10px; 
 box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.info {
 max-width: 75ch;
 line-height: 1.6;
 font-size: 1.125rem;
 margin-bottom: 1.5rem;
}

h1 {
 font-size: clamp(2rem, 5vw, 3rem);
 line-height: 1.1;
 text-transform: uppercase;
}

.training, .adventures {
 max-width: 75ch; 
 line-height: 1.6;
 font-size: 1.125rem;
 margin-bottom: 1.5rem;
}

.home-image{
 max-width: 100%; 
 height: auto; 
 display: block; 
 margin: 30px auto 0; 
}

.activities img {
  height: auto;
  width: 100%;
  max-width: 200px;
  margin-top: 15px;
}

.wild {
  width: 300px;
  height: 400px;
}

/* footer */

footer{
 background-color: hsl(129, 46%, 18%); 
 padding: 30px;
 display: flex;
 align-items: center;
 flex-wrap: wrap;  
}

.footer-contact {
  flex: 1;
}

.contact {
 color: white; 
 font-size: 15px;
}

.contact p a {
 color: white;
}

.footer-icons {
 flex: 1;
 display: flex;
 justify-content: center;  
}

footer::after {
 content: ""; 
 flex: 1; 
}

.company-name {
 font-size: 1.5rem;
 font-weight: 500;
 color: white;
 font-family: 'Inter', sans-serif;
}

.icon-bg{
 background-color: white; 
 width: 52px; 
 height: 52px; 
 display: flex; 
 justify-content: center; 
 align-items: center; 
 border-radius: 50%;
 font-size: 50px;
}

.instagram{
 width: 50px; 
 height: 50px; 
 display: flex; 
 justify-content: center; 
 align-items: center; 
 text-decoration: none; 
 background-color: hsl(316, 75%, 47%); 
 color: white; 
 border-radius: 10px;
 margin: 2px 0px 0px 20px;
 font-size: 45px;
}

footer a {
 color: rgb(21, 82, 190);
}

/* slut på footer */

a {
 color: black;
}

/* 'Läs mer' knappar */

a.button {
 display: inline-block; 
 padding: 10px 20px; 
 background-color: hsl(129, 46%, 18%); 
 color: white; 
 text-decoration: none; 
 border-radius: 8px;
}

a.button:hover {
 background-color: hsl(136, 88%, 23%);
}

/* Om kurserna */

@media (max-width: 768px) { 
  .content {
    flex-direction: column;
  }

  .content img {
    width: 100%;
    max-width: 300px;
  }
}

.courses {
 margin-bottom: 40px;
}

.text h2 {
 margin: 0 0 10px 0;
}

.content {
 display: flex;
 gap: 20px;
 align-items: flex-start; 
}

.content img {
  height: auto; 
  width: clamp(120px, 15vw, 180px);
  flex-shrink: 0;
}

.content p {
  max-width: 75ch;
  line-height: 1.6;
}

.text {
  display: flex; 
  flex-direction: column;
}

/*formulär */

form {
 display: flex; 
 flex-direction: column; 
 max-width: 500px; 
}

form label {
 margin-top: 15px; 
 font-weight: 600;
}

form input, form select, form textarea {
 margin-top: 5px;
 padding: 10px; 
 border: 1px solid #ccc; 
 border-radius: 8px;
 font-size: 16px; 
 width: 100%; 
 box-sizing: border-box;
 font-family: 'Inter', sans-serif;  
}

form input:focus, form select:focus, form textarea:focus {
 outline: none; 
 border-color: hsl(129, 54%, 20%); 
 box-shadow: 0 0 5px rgba(0,0,0,0.1); 
}

form button {
 margin-top: 20px; 
 padding: 12px; 
 background-color: hsl(129, 54%, 20%);
 color: white; 
 border: none; 
 border-radius: 8px; 
 cursor: pointer; 
}

form button:hover {
 background-color: hsl(136, 88%, 23%);
}

.checkbox {
 display: flex; 
 align-items: center; 
 gap: 10px; 
 margin-top: 20px; 
 font-weight: 500;
}

.checkbox input {
 width: auto; 
}

.terms-links {
 margin-top: 5px; 
 font-size: 14px; 
}

.terms-links a {
 color: black; 
 text-decoration: underline;
}

.required {
 color:red;
}

#course-dates {
 display: flex; 
 flex-direction: column; 
 gap: 10px; 
 margin-top: 12px; 
}

.radio-card {
 display: flex; 
 align-items: center;  
 padding: 12px 16px; 
 border: 1px solid #ccc; 
 border-radius: 10px;
 cursor: pointer; 
 transition: 0.2s ease; 
 background-color: #fff;
}

.radio-card input {
 display: none; 
}

/*hover-effekt */
.radio-card:hover {
 border-color: #666;
 background-color: #f5f5f5;
}

/* när den är vald */
.radio-card input:checked + span {
 font-weight: bold; 
}

.radio-card input:checked {
 accent-color: transparent; 
}

/* gör hela kortet markerat när valt */
.radio-card:has(input:checked) {
 border-color: #000;
 background-color: #eaeaea;
}

@media (max-width: 600px) {
 
 #course-dates {
  gap: 8px; 
 }

 .radio-card {
  padding: 14px; 
  font-size: 16px;
  border-radius: 12px; 
 }
}

/* slut på formulär */

/* bildspel galleri */

.carousel-container {
 width: 100%;
 max-width: 900px; 
 margin: auto; 
 overflow: hidden;
 position: relative;
}

.carousel-slide {
 display: flex; 
 transition: transform 0.4s ease-in-out;
}

.carousel-slide img {
 width: 100%; 
 height: 500px; 
 object-fit: cover; 
 flex: 0 0 100%;
}

#prevBtn {
 position: absolute; 
 top: 50%;
 transform: translateY(-50%);
 z-index: 10;
 background: rgba(0,0,0,0.4);
 left: 10px;
 border: none; 
 color: white; 
 padding: 10px; 
 cursor: pointer;
}

#nextBtn {
 position: absolute; 
 top: 50%;
 transform: translateY(-50%);
 z-index: 10;
 background: rgba(0,0,0,0.4);
 right: 10px;
 border: none; 
 color: white; 
 padding: 10px; 
 cursor: pointer;
}

.dots {
 display: flex; 
 justify-content: center; 
 gap: 8px; 
 margin-top: 10px; 
}

.dot {
 width: 10px;
 height: 10px; 
 border-radius: 50%; 
 background: #ccc; 
 cursor: pointer; 
}

.dot.active {
 background: #333;
}

/* Bild galleri */

.gallery {
 display: grid; 
 grid-template-columns: repeat(2, 1fr); 
 gap: 20px;
 max-width: 800px;
 margin: 80px auto 0 auto;
 align-content: center;
 justify-content: center; 
}

@media (max-width: 600px) {
 .gallery {
   grid-template-columns: 1fr;
  }
}

.gallery img {
 width: 100%;
 height: auto; 
 object-fit: cover; 
 border-radius: 10px; 
 display: block; 
 aspect-ratio: 1 / 1; 
}

/* slut på bild galleri */
