/* Reset default styles for all elements */
* {
   box-sizing: border-box;  
   margin: 0;
   padding: 0;
   font-family: 'kumbh sans', sans-serif;
 }

body, .article, .article__container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* --- Global Styles --- */
html {
  scroll-behavior: smooth;
}

a {
  color: #7fad79; /* Endrer link tekst farge */
  text-decoration: none; /* Remove underline */
}

/* --- Page Layout Styles --- */
.page-divider {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #2eb91b 0%, #7fad79 100%);
  margin: 0 0 32px 0;
  border-radius: 3px;
}

/* --- Navbar Styles --- */
.navbar {
   background: #ffffff;
   height: 100px;
   display: flex;
   justify-content: center;
   align-items: center;
   font-size: 1.2rem;
   top: 0;
   z-index: 999;
   max-width:1280px; /* Add a max-width value to limit the width of the navbar */
   margin: 0 auto; /* Blir center på siden */
}

/* Container for navbar content */
.navbar__container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 80px;
  z-index: 1;
  width: 100%;

  margin: 0 auto;
  padding: 0 50px;
}

/* Logo container (adjust alignment as needed) */
.navbar__logo-container {
   display: flex;
   align-items: center; /* Adjust this property to vertically center the logo */
}

/* Styling for the logo (adjust font size and margins) */
#navbar__logo {
   background-color: #7fad79;
   background-image: linear-gradient(to top, #000000 0%, #7fad79 100%);
   background-size: 100%;
   -webkit-background-clip: text;
   -moz-background-clip: text;
   -webkit-text-fill-color: transparent;
   -moz-text-fill-color: transparent;
   cursor: pointer;
   text-decoration: none;
   font-size: 4rem; /* Adjust this value to make the logo bigger */
   margin-left: 20px;
   margin-top: 10px;
}

#navbar__logo img {
   margin-top: 20px;
   max-width: 150px;
   max-height: 150px;
}

/* Styling for the menu items */
.navbar__menu {
   display: flex;
   align-items: center;
   list-style: none;
   text-align: center;
}

/* Individual menu item styling (adjust height if needed) */
.navbar__item {
   height: 80px;
}

/* Styling for menu links */
.navbar__links {
   color: #7fad79;
   display: flex;
   align-items: center;
   justify-content: center;
   text-decoration: none;
   padding: 0 1rem;
   height: 100%;
}

/* Hover effect for menu links */
.navbar__links:hover {
   color: #7fad79;
   transition: all 0.3s ease;
}


.navbar__btn {
   display: flex;
   justify-content: center;
   align-items: center;
   padding: 0 1rem;
   width: 100%;
}

/* Styling for buttons in main menu(adjust padding, background, and color) */
.button {
   display: flex;
   justify-content: center;
   align-items: center;
   text-decoration: none;
   padding: 10px 20px;
   height: 100%;
   width: 100%;
   border: none;
   outline: none;
   border-radius: 4px;
   background: #7fad79;
   color: #fff;
}

/* Button hover effect */
.button:hover {
   background: #4837ff;
   transition: all 0.3s ease;
}

/* Main section styling - properties moved to end of file for grid layout */

.main__container {
   display: flex;
   flex-direction: row; /* Aligns children horizontally */
   justify-content: space-between; /* Adds space between the children */
   align-items: center; 
   justify-self: center;
   margin: 0 auto;
   height: 410px;
   background-color: #ffffff;
   z-index: 1;
   width: 100%;
   max-width: 1280px;
   padding: 0 50px;

}

.main__container.odd {
  background: #f4f8f4;
  border-radius: 48px;
  position: relative;

  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  /* Optional: add vertical padding for separation */
  padding-top: 20px;
  padding-bottom: 20px;
}

.text__container h1 {
   font-size: 2rem; /* Adjust as needed */
   color: #333; /* Adjust as needed */
   margin-top: 20px; /* Adds some space above the h2 element */
}


.text__container h2 {
   font-size: 1rem; /* Adjust as needed */
   color: #333; /* Adjust as needed */
   margin-top: 20px; /* Adds some space above the h2 element */
}


.main__content p {
   margin-top: 1rem;
   font-size: 2rem;
   font-weight: 700;
   color:#ffffff
}


.main__btn {
   font-size: 1rem;
   background-image: linear-gradient(to top, #2eb91b 0%, #2eb91b
   100%);
   padding: 14px 32px;
   border: none;
   border-radius: 4px;
   color: #ffffff;
   margin-top: 2rem;
   cursor: pointer;
   transition: all 0.35s;
   outline: none;
}

.main__btn:after {
   content: '';
   top: 0;
   left: 0;
   width: 0;
   height: 100%;
   background: #4837ff;
   transition: all 0.35s;
   border-radius: 4px;
}

.main__btn:hover {
   color: #fff;
}

.main__btn:hover {
   color: #fff;
}

.main__btn:hover:after {
   width: 100%;
}



.main__card {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   background: #ffffff;
   padding: 30px;
   border-radius: 10px;
   margin: 10px;
   width: 300px;
   height: auto; /* Maintain aspect ratio */
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

.main__card p {

   top: 400px;
   left: 30px;
}
.main__card a {
   color: #fff;
   text-decoration: none;
}
.main__card img {
   width: 100%; /* Make the image width 100% of its container */
   height: auto; /* Maintain aspect ratio */
   
}
.main__card button {
   color: #ffffff;
   padding: 10px 20px;
   border: none;
   outline: none;
   border-radius: 4px;
   background: #7fad79;
   font-size: 1rem;
   cursor: pointer;
   width: 100%;
   text-decoration: none;
}

.main__card:hover {
   transform: scale(1.075);
   transition: 0.2s ease-in;
   cursor: pointer;
}


/* Main section del 2 styling */

.main__section2 {
   background:  #ffffff;
   justify-content: center;
   max-width: 1280px; /* Match the header/navbar max-width */
   margin: 0 auto; /* Center on the page */
   margin-bottom: 50px; /* Add this line */
   overflow: hidden; /* Hide any overflowing content */
   z-index: 800;
   width: 100%; /* Ensure it doesn't exceed the viewport */
}

.main__container_section2 {
   display: flex;
   flex-direction: row; /* Aligns children horizontally */
   justify-content: space-between; /* Adds space between the children */
   align-items: center;
   justify-self: center;
   margin: 0 auto;
   height: 410px;
   background-color: #ffffff;
   width: 100%;
   max-width: 1280px;
   padding: 0 50px;

   
   

}
.main__container_section2 h1 {
   font-size: 2rem; /* Adjust as needed */
   color: #000000; /* Adjust as needed */
   margin-top: 20px; /* Adds some space above the h2 element */
}

.main__container_section2 h2 {
   font-size: 1rem; /* Adjust as needed */
   color: #000000; /* Adjust as needed */
   margin-top: 20px; /* Adds some space above the h2 element */
}

.main__card {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   background: #ffffff;
   padding: 30px;
   border-radius: 10px;
   margin: 10px;
   width: 300px;
   height: auto; /* Maintain aspect ratio */
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

/* Article section styling */

.article {
   
   background: #ffffff;
   justify-content: center;
   max-width:1280px; /* Add a max-width value to limit the width of the navbar */
   margin: 0 auto; /* Blir center på siden */
   margin-bottom: 50px; /* Add this line */
   margin-top: 70px;
   width: 100%; /* Ensure it doesn't exceed the viewport */
}

/* Frontpage section styling - matches article but with header width */

.frontpage {
   
   background: #ffffff;
   display: flex;
   justify-content: center;
   align-items: center;
   max-width: 1280px; /* Match the header/navbar max-width */
   margin: 0 auto; /* Center on page */
   margin-bottom: 50px;
   margin-top: 70px;
   width: 100%; /* Ensure it doesn't exceed the viewport */
   padding: 0; /* Remove padding to allow card to stretch */
}

.frontpage__container h1, .frontpage__container h2, .frontpage__container h3, .frontpage__container p {
   text-align: justify;
   padding: 0 20px;
}

.frontpage__container h1 {
   font-size: 3rem;   
   background-color: #000000;
   background-image: -o-linear-gradient(to top, #2eb91b 0%, #2eb91b 100%);
   background-size: 100%;
   -webkit-background-clip: text;
   -moz-background-clip: text;
   -webkit-text-fill-color: transparent;
   -moz-text-fill-color: transparent; 
   margin: 10px;
}

.frontpage__container h2 {
   color: #000000;
   margin: 30px;
   padding: 0;
   width: 100%;
   font-size: 1.5rem;
   border-bottom: 2px solid #7fad79;
   padding-bottom: 6px;
   margin-bottom: 24px;
}

.frontpage__container h3 {
   color: #000000;
   margin: 30px;
   padding: 0;
   width: 100%;
   font-size: 1.08em;
   font-weight: 500;
   border-bottom: none;
   padding-bottom: 0;
   margin-bottom: 0.8em;
   margin-top: 2em;
}

.frontpage__container p {
   color: #000000;
   font-size: 1.2rem;
   margin: 10px;
   line-height: 1.5;
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
   font-size: 1.08em;
   font-weight: 400;
   color: #222;
}

.frontpage__container ul {
  margin-left: 2.2em;
  padding-left: 1.5em;
}

.frontpage__container .image {
   width: 75px;
   height: 75px;
}

.frontpage__container .image_article {
   width: 975px;
   height: 575px;
}

/* Frontpage card styles - matching entra-wifi design */
.frontpage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 32px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto 40px auto;
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.frontpage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.frontpage-card__img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  background: linear-gradient(135deg, #7fad79 0%, #2eb91b 100%);
  padding: 30px;
  margin: 0 0 24px 0;
}

.frontpage-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.frontpage-card__title {
  font-size: 1.6rem;
  margin: 0 0 16px 0;
  color: #222;
  text-align: center;
  font-weight: 600;
  line-height: 1.3;
}

.frontpage-card__desc {
  font-size: 1.05rem;
  color: #555;
  margin: 0 0 24px 0;
  text-align: center;
  line-height: 1.7;
}

.frontpage-card__btn {
  background: #7fad79;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  text-align: center;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  display: inline-block;
  transition: background 0.3s, transform 0.2s;
}

.frontpage-card__btn:hover {
  background: #249214;
  transform: scale(1.05);
}

/* Observability section styling */
.observability-section {
  background-color: #7fad79;
  width: 100%;
  padding: 60px 0;
  margin: 80px 0 0 0;
}

.observability-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 50px;
}

.observability-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.observability-text-left h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin: 0 0 20px 0;
  font-weight: 600;
  line-height: 1.3;
}

.observability-text-left p {
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0;
}

.observability-text-right h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin: 0 0 20px 0;
  font-weight: 600;
}

.observability-text-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.observability-text-right li {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.8;
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
}

.observability-text-right li:before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.3rem;
  color: #2eb91b;
}

/* Tablet view for observability section */
@media (max-width: 900px) {
  .observability-section {
    padding: 50px 0;
    margin: 60px 0 0 0;
  }
  
  .observability-container {
    padding: 0 32px;
  }
  
  .observability-content {
    gap: 40px;
  }
  
  .observability-text-left h2 {
    font-size: 1.9rem;
  }
  
  .observability-text-right h3 {
    font-size: 1.4rem;
  }
}

/* Mobile view for observability section */
@media (max-width: 600px) {
  .observability-section {
    padding: 40px 0;
    margin: 40px 0 0 0;
  }
  
  .observability-container {
    padding: 0 20px;
  }
  
  .observability-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .observability-text-left h2 {
    font-size: 1.6rem;
    margin: 0 0 16px 0;
  }
  
  .observability-text-left p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .observability-text-right h3 {
    font-size: 1.3rem;
    margin: 0 0 16px 0;
  }
  
  .observability-text-right li {
    font-size: 1rem;
    padding-left: 24px;
  }
}

/* Entra ID WiFi Section Styling */
.entra-wifi-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  width: 100%;
  padding: 80px 0;
  margin: 0;
}

.entra-wifi-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 50px;
}

.entra-wifi-header {
  text-align: center;
  margin-bottom: 60px;
}

.entra-wifi-header h2 {
  font-size: 2.5rem;
  color: #222;
  margin: 0 0 20px 0;
  font-weight: 600;
  background: linear-gradient(135deg, #2eb91b 0%, #7fad79 100%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

.entra-wifi-intro {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.entra-wifi-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.entra-wifi-feature {
  background: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.entra-wifi-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.entra-wifi-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7fad79 0%, #2eb91b 100%);
  border-radius: 50%;
  padding: 20px;
}

.entra-wifi-img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: none;
  border-radius: 50%;
}

.entra-wifi-feature h3 {
  font-size: 1.5rem;
  color: #222;
  margin: 0 0 16px 0;
  font-weight: 600;
}

.entra-wifi-feature p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.entra-wifi-benefits {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-left: 6px solid #7fad79;
}

.entra-wifi-benefits h3 {
  font-size: 1.8rem;
  color: #222;
  margin: 0 0 24px 0;
  font-weight: 600;
}

.entra-wifi-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.entra-wifi-benefits li {
  color: #555;
  font-size: 1.1rem;
  padding-left: 32px;
  position: relative;
  line-height: 1.6;
}

.entra-wifi-benefits li:before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.4rem;
  color: #2eb91b;
}

/* Tablet view for Entra WiFi section */
@media (max-width: 900px) {
  .entra-wifi-section {
    padding: 60px 0;
  }
  
  .entra-wifi-container {
    padding: 0 32px;
  }
  
  .entra-wifi-header h2 {
    font-size: 2rem;
  }
  
  .entra-wifi-intro {
    font-size: 1.1rem;
  }
  
  .entra-wifi-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .entra-wifi-benefits ul {
    grid-template-columns: 1fr;
  }
}

/* Mobile view for Entra WiFi section */
@media (max-width: 600px) {
  .entra-wifi-section {
    padding: 40px 0;
  }
  
  .entra-wifi-container {
    padding: 0 20px;
  }
  
  .entra-wifi-header {
    margin-bottom: 40px;
  }
  
  .entra-wifi-header h2 {
    font-size: 1.7rem;
  }
  
  .entra-wifi-intro {
    font-size: 1rem;
  }
  
  .entra-wifi-content {
    gap: 24px;
    margin-bottom: 40px;
  }
  
  .entra-wifi-feature {
    padding: 24px;
  }
  
  .entra-wifi-icon {
    width: 100px;
    height: 100px;
    padding: 16px;
  }
  
  .entra-wifi-feature h3 {
    font-size: 1.3rem;
  }
  
  .entra-wifi-feature p {
    font-size: 1rem;
  }
  
  .entra-wifi-benefits {
    padding: 24px;
  }
  
  .entra-wifi-benefits h3 {
    font-size: 1.5rem;
  }
  
  .entra-wifi-benefits li {
    font-size: 1rem;
  }
}

/* Mobile view for frontpage */
@media (max-width: 600px) {
  .frontpage {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 0.5rem;
    margin: 0 auto;
    display: block;
  }
  
  .frontpage__container h1 {
    font-size: 1.8rem !important;
    text-align: left;
    margin: 0.5rem 0;
  }
  
  .frontpage__container h2 {
    font-size: 1.3rem !important;
    text-align: left;
    margin: 1rem 0;
  }
  
  .frontpage__container h3 {
    font-size: 1.1rem !important;
    text-align: left;
    margin: 0.8rem 0;
  }
  
  .frontpage__container p {
    font-size: 1rem !important;
    text-align: left;
    margin: 0.5rem 0;
    padding: 0 0.5rem;
  }
  
  .frontpage__container ul {
    margin-left: 1rem;
    padding-left: 1rem;
  }
  
  .frontpage-card {
    padding: 32px 24px;
    margin: 0 auto 24px auto;
    max-width: 100%;
  }
  
  .frontpage-card__img {
    width: 120px;
    height: 120px;
    padding: 24px;
    margin: 0 auto 20px auto;
  }
  
  .frontpage-card__content {
    width: 100%;
  }
  
  .frontpage-card__title {
    font-size: 1.4rem;
    margin: 0 0 12px 0;
  }
  
  .frontpage-card__desc {
    font-size: 1rem;
    margin: 0 0 20px 0;
  }
  
  .frontpage-card__btn {
    width: auto;
    padding: 12px 28px;
  }
}

.image {
   width: 75px;
   height: 75px;
}

.image_article {
   width: 975px;
   height: 575px;
}

.article__container h1, .article__container h2, .article__container h3, .article__container p {
   text-align: justify; /* Align the text to both left and right margins */
   padding: 0 20px; /* Add horizontal padding */
}

.article__container h1 {
   font-size: 3rem;   
   background-color: #000000;
   background-image: -o-linear-gradient(to top, #2eb91b 0%, #2eb91b 100%);
   background-size: 100%;
   -webkit-background-clip: text;
   -moz-background-clip: text;
   -webkit-text-fill-color: transparent;
   -moz-text-fill-color: transparent; 
   margin:10px;
}

.article__container h2 {
   color: #000000;
   margin: 30px; /* Adjust the margin */
   padding: 0;
   width: 100%;
   font-size: 1.5rem;
   border-bottom: 2px solid #7fad79;
   padding-bottom: 6px;
   margin-bottom: 24px;
}

.article__container h3 {
   color: #000000;
   margin: 30px; /* Adjust the margin */
   padding: 0;
   width: 100%;
   font-size: 1.08em;
   font-weight: 500;
   border-bottom: none;
   padding-bottom: 0;
   margin-bottom: 0.8em;
   margin-top: 2em;
}

.article__container p {
   color: #000000;
   font-size: 1.2rem;
   margin: 10px;
   line-height: 1.5;
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
   font-size: 1.08em;
   font-weight: 400;
   color: #222;
}

.article__container ul {
  margin-left: 2.2em;
  padding-left: 1.5em;
}

/* Service content pages styling (nettverkstjenester, KI-overvaking) */
.service-content {
  background: #ffffff;
  max-width: 1280px;
  margin: 70px auto 50px auto;
  padding: 0 50px;
  width: 100%;
}

.service-content__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 0;
}

.service-content__container h1 {
  font-size: 2.5rem;
  background-color: #000000;
  background-image: linear-gradient(to top, #2eb91b 0%, #2eb91b 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  margin: 0 0 32px 0;
  padding: 0;
  line-height: 1.2;
}

.service-content__container h2 {
  color: #000000;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 32px 0 16px 0;
  padding: 0 0 8px 0;
  border-bottom: 2px solid #7fad79;
}

.service-content__container ul {
  margin: 20px 0 32px 0;
  padding-left: 24px;
  line-height: 1.8;
}

.service-content__container li {
  color: #222;
  font-size: 1.1rem;
  margin-bottom: 12px;
  padding-left: 8px;
}

.service-content__text {
  color: #222;
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 16px 0;
  text-align: left;
}

.service-content__highlight {
  background: #f8f8f8;
  padding: 24px;
  border-radius: 8px;
  border-left: 4px solid #7fad79;
  margin: 32px 0;
}

.service-content__image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 32px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-content__cta {
  margin: 48px 0 0 0;
  padding: 32px 0;
  text-align: center;
  font-size: 1.2rem;
  color: #222;
}

/* Mobile responsive for service content */
@media (max-width: 600px) {
  .service-content {
    padding: 0 20px;
    margin: 32px auto 32px auto;
  }
  
  .service-content__container {
    padding: 16px 0;
  }
  
  .service-content__container h1 {
    font-size: 1.8rem;
    margin: 0 0 24px 0;
  }
  
  .service-content__container h2 {
    font-size: 1.3rem;
    margin: 24px 0 12px 0;
  }
  
  .service-content__container li,
  .service-content__text {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .service-content__highlight {
    padding: 16px;
    margin: 24px 0;
  }
  
  .service-content__image {
    max-width: 100%;
    margin: 24px 0;
  }
  
  .service-content__cta {
    font-size: 1.1rem;
    margin: 32px 0 0 0;
  }
}

/* form layout */
form {
   display: grid;

   align-items: center;
   justify-self: center;
   margin: 0 auto;
   
   background-color: #ffffff;
   z-index: 1;
   width: 100%;
   max-width: 1300px;

}

/* Kontakt skjema section styling */
.centered-form-container {
   margin-top: 100px;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 100%;
}

.form-group {
   margin-bottom: 20px;
}

label {
   display: block;
   margin-bottom: 5px;
}

input, textarea, button {
   width: 100%;
   padding: 8px;
   margin-bottom: 10px;
   border: 1px solid #ddd;
   border-radius: 4px;
}

button {
   background-color: #007bff;
   color: #fff;
   border: none;
   cursor: pointer;
}

button:hover {
   background-color: #0056b3;
}

.blogg {
   background: #ffffff;
   justify-content: center;
   max-width: 1280px; /* Match the header/navbar max-width */
   margin: 0 auto; /* Center on the page */
   margin-top: 50px; /* Add this line */
   z-index: 900;
   
   overflow: hidden; /* Hide any overflowing content */
   flex: 1 0 auto;
}

.blogg-image {
   width: auto; /* adjust as needed */
   height: 500px; /* maintain aspect ratio */
}

.code {
   background-color: #f0f0f0; /* gray background */
   border: 1px solid #000; /* Change the color as needed */
   border-radius: 10px; /* Adjust as needed */
   padding: 10px; /* Adjust as needed */
   margin-top: 20px; /* Adjust as needed */
   margin-bottom: 20px; /* Adjust as needed */
 }

.code-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1em;
  font-weight: 500;
  margin: 0 0 0.2em 2em; /* align with code block */
  color: #333;
}

.copy-btn {
  background: #f4f4f4;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 0.2em 0.8em;
  font-size: 0.95em;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
  margin-left: 1em;
}

.copy-btn:hover {
  background: #e0e0e0;
  border-color: #b0b0b0;
}

a {
  color: #7fad79; /* Endrer link tekst farge */
  text-decoration: none; /* Remove underline */
}

.code-block-wrap {
  position: relative;
  margin: 1.2em 0 1.2em 2em;
}
pre.code {
  background: #f8f8f8;
  color: #222;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1em 1.2em;
  font-size: 1em;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
  overflow-x: auto;
  margin: 0;
  position: relative;
}
.copy-btn-inline {
  position: absolute;
  top: 8px;
  right: 10px;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  padding: 0.1em 0.4em;
  font-size: 0.92em;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
  z-index: 2;
  box-shadow: none;
  min-width: 0;
  min-height: unset;
  line-height: 1.2;
  width: auto;
}
.copy-btn-inline:hover {
  background: #e0e0e0;
  border-color: #b0b0b0;
}

@media screen and (max-width: 960px) {
   .text__container {
      text-align: center; /* Center the text */
      padding: 20px; /* Add some padding */
   }
   .navbar__container {
      justify-content: space-between;
      height: 80px;
      z-index: 1;
      width: 100%;
      max-width: 1300px;
      padding: 0;
   }

   .navbar__menu {
      display: grid;
      grid-template-columns: auto;
      margin: 0;
      width: 100%;
      top: -1000px;
      opacity: 0;
      transition: all 0.5s ease;
      height: 50vh;
      z-index: -1;
     
   }

   .navbar__menu.active {
      background:  #ffffff;
      top: 100%;
      opacity: 1;
      transition: all 0.5s ease;
      z-index: 99;
      height: 50vh;
      font-size: 1.6rem;
   }

   #navbar__logo {
      padding-left: 25px;
   }

   #navbar__logo img {
      max-width: 75px;
      max-height: 75px;
  }

  .navbar__toggle {
   display: block;
   cursor: fixed;
   position:absolute;  /* Position the toggle button */
   right: 20px; /* Adjust the distance from the right edge */
   top: 20px; /* Adjust the distance from the top edge */
}

   .navbar__toggle .bar {
    width: 25px; 
    height: 3px; 
    margin: 5px auto;
    transition: all 0.3 ease-in-out;
    background: #2eb91b;
    display: block;
    cursor: pointer;
   }

   .navbar__item {
      text-align: center;
   }

   .navbar__links {
      text-align: center;
      padding: 2rem;
      width: 100%;
      display: table;
   }

   #mobile-menu {

      top: 4%;
      right: 5%;
      transform: 5%, 20%;
   }

   .navbar__btn {
     padding-bottom: 2rem;
   }

   .button {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 80%;
      height: 80px;
      margin: 0;
   }

   #mobile-menu.is-active .bar:nth-child(2) {
      opacity: 0;
   }

   #mobile-menu.is-active .bar:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
   }

   #mobile-menu.is-active .bar:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
   }
   .main {
      /* Adjust the main container for mobile view */
      padding: 10px; /* Reduce padding */
   }

   .main__container {
      /* Adjust the container for mobile view */
      flex-direction: column; /* Stack children vertically */
      padding: 0 20px; /* Reduce horizontal padding */
      height: auto; /* Adjust height for mobile view */
   }

   .text__container h1 {
      /* Adjust the h1 and h2 for mobile view */
      font-size: 1.2rem; /* Reduce font size */
      text-align: left; /* Center the text */
      margin-top: 10px; /* Reduce top margin */
     color: darkblue
   }
   .text__container h2 {
      /* Adjust the h1 and h2 for mobile view */
      font-size: 0.7rem; /* Reduce font size */
      text-align: left; /* Center the text */
      margin-top: 10px; /* Reduce top margin */
   }

   .main__content p {
      /* Adjust the paragraph for mobile view */
      font-size: 1.5rem; /* Reduce font size */
   }

   .main__btn {
      /* Adjust the button for mobile view */
      padding: 10px 20px; /* Reduce padding */
   }

   .main__card {
      /* Adjust the card for mobile view */
      width: 100%; /* Allow card to take up full width */
      padding: 20px; /* Reduce padding */
      margin: 10px; /* Reduce margin */
   }

   .main__section2 {
      /* Adjust the second section for mobile view */
      padding: 10px; /* Reduce padding */
   }

   .main__container_section2 {
      /* Adjust the container for mobile view */
      flex-direction: column; /* Stack children vertically */
      padding: 0 20px; /* Reduce horizontal padding */
   }

   .main__container_section2 h1,
   .main__container_section2 h2 {
      /* Adjust the h1 and h2 for mobile view */
      font-size: 1.5rem; /* Reduce font size */
      text-align: center; /* Center the text */
      margin-top: 10px; /* Reduce top margin */
   }

   footer {
      background-color:  #2eb91b;


      bottom: 0;  /* holder footer nede */
      width: 100%;
      display: flex; /* Enables flexbox */
      justify-content: center; /* Centers the content horizontally */
   }
}



.footer {
   background-color: #7fad79;
   padding: 20px;
   width: 100%;
   display: flex;
   justify-content: center;
   margin-top: auto; /* This pushes the footer to the bottom if content is short */
   position: static;
   bottom: unset;
}

.footer-content {
   text-align: center;
   color: #ffffff;
}

/* --- Sticky footer pattern: footer at bottom if content is short, but not fixed --- */
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.article {
  flex: 1 0 auto;
}
.footer {
  margin-top: auto;
  position: static;
  bottom: unset;
}

/* Remove flexbox sticky footer layout from body */
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Remove flex: 1 0 auto from .main, .article, .blogg to avoid width stretching */

@media (max-width: 600px) {
  .main__container,
  .main__container_section2 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important; /* changed from flex-start to center */
    gap: 8px !important;
    padding: 0 2vw !important;
    max-width: 100vw;
    height: auto;
    margin-bottom: 18px !important;
    margin-top: 18px !important;
  }
  .main__container.odd {
    background: #f4f8f4 !important;
    border-radius: 32px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .main__card {
    width: 40vw !important;
    max-width: 120px !important;
    min-width: 80px !important;
    padding: 4px !important;
    margin: 0 !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .main__card img, #main__img {
    width: 100% !important;
    max-width: 120px !important;
    height: auto !important;
    margin: 0 0 0 0 !important;
    display: block;
  }
  .text__container {
    width: 60vw !important;
    max-width: 60vw !important;
    min-width: 120px !important;
    padding: 0 0 0 8px !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center; /* ensures vertical centering */
    height: 100%;
  }
  .text__container h1 {
    font-size: 1rem;
    margin: 0 0 4px 0;
    color: darkblue;
    text-align: left;
  }
  .text__container h2 {
    font-size: 0.7rem;
    margin: 0 0 4px 0;
    text-align: left;
  }
  .main__container button {
    width: 100%;
    margin: 0.5em 0 1em 0;
    font-size: 0.8rem;
    padding: 6px 0;
  }
}

/* --- Custom Mobile Menu (Independent) --- */
@media (max-width: 600px) {
  #custom-mobile-menu-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 5000;
    width: 56px;
    height: 56px;
    background: #7fad79;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background 0.2s;
    padding: 0;
  }
  #custom-mobile-menu-btn:active,
  #custom-mobile-menu-btn:hover {
    background: #249214;
  }
  #custom-mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 6px;
    background: #fff;
    border-radius: 2px;
    margin: 0 0 5px 0;
    transition: 0.2s;
  }
  #custom-mobile-menu-btn span:last-child {
    margin-bottom: 0;
  }
  #custom-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    min-width: unset;
    min-height: unset;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    z-index: 5100;
    padding: 80px 0 0 0;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    animation: fadeInMenu 0.2s;
  }
  #custom-mobile-menu.open {
    display: flex;
  }
  #custom-mobile-menu a {
    color: #2eb91b;
    text-decoration: none;
    padding: 18px 32px;
    font-size: 1.3rem;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    transition: background 0.15s;
  }
  #custom-mobile-menu a:hover {
    background: #f4f8f4;
    color: #249214;
  }
}
@media (min-width: 601px) {
  #custom-mobile-menu-btn, #custom-mobile-menu {
    display: none !important;
  }
}
@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Desktop menu styles - right of logo, more to the right */
.navbar__container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.navbar__logo-container {
  display: flex;
  align-items: center;
}
#mainpage-desktop-menu {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  background: none;
  border: none;
  padding: 0;
  position: static;
  z-index: 100;
}
#mainpage-desktop-menu > a,
#mainpage-desktop-menu .dropdown-toggle {
  color: #222;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  display: block;
}
#mainpage-desktop-menu > a:hover,
#mainpage-desktop-menu .dropdown-toggle:hover {
  background: #f0f0f0;
  color: #0078d7;
}

/* Dropdown menu for desktop */
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 4px;
  padding: 0.5rem 0;
  margin-top: 0;
  z-index: 1000;
}
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
  z-index: 999;
}
.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.3rem;
  color: #222;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: #f0f0f0;
  color: #0078d7;
}

/* Mobile dropdown menu */
.mobile-dropdown-toggle {
  position: relative;
}
.mobile-dropdown-toggle:after {
  content: ' ▼';
  font-size: 0.8em;
  margin-left: 0.3em;
}
.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  background: #f4f8f4;
  width: 100%;
  padding: 0;
  margin: 0;
}
.mobile-dropdown-menu.open {
  display: flex;
}
.mobile-dropdown-menu a {
  padding: 14px 32px 14px 48px !important;
  font-size: 1.1rem !important;
  width: 100%;
  text-align: left;
  display: block;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  #mainpage-desktop-menu {
    display: none !important;
  }
}
@media (min-width: 601px) {
  #custom-mobile-menu,
  #custom-mobile-menu-btn,
  .mobile-dropdown-toggle,
  .mobile-dropdown-menu {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .dropdown {
    display: none !important;
  }
}

body {
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto !important;
  height: auto !important;
}
html {
  height: auto !important;
}

/* --- BLOGG & ANSIBLE ARTICLE LIST STYLES --- */
@media (max-width: 600px) {
  .blogg, #blogg-container, #blogg-container > div,
  .ansible-artikkel-list, .ansible-artikkel-list > div {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem !important;
    margin: 0 auto !important;
  }
  .blogg h1, .article__container h2, .article__container h3, .article__container p {
    font-size: 1.4rem !important;
    text-align: left;
    margin-bottom: 1rem;
    color: #111;
  }
  #blogg-container > div, .ansible-artikkel-list > div {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 0;
    padding: 1rem 0.5rem;
  }
  #blogg-container h2, .ansible-artikkel-list h2 {
    font-size: 1.1rem !important;
    margin: 0.5rem 0;
    text-align: left;
    word-break: break-word;
    color: #111;
    display: flex;
    align-items: center;
  }
  #blogg-container h2 a, .ansible-artikkel-list h2 a {
    color: #111;
    text-decoration: none;
    display: inline-block;
    text-align: left;
  }
  #blogg-container h2 a:hover, .ansible-artikkel-list h2 a:hover {
    text-decoration: underline;
  }
  .article__container img {
    max-width: 80vw !important;
    height: auto;
    display: block;
    margin: 0 auto 12px auto;
  }
  ul {
    padding-left: 18px;
    margin: 0 0 0 0;
  }
  h2 a {
    font-size: 1.1rem;
    word-break: break-word;
  }
}
@media (min-width: 601px) {
  .blogg, .ansible-artikkel-list {
    max-width: 900px;
    margin: 2rem auto 0 auto;
    padding: 0 2rem;
  }
  .blogg h1, .article__container h2 {
    font-size: 2rem;
    color: #111;
    margin-bottom: 2rem;
    text-align: left;
    letter-spacing: 0.01em;
  }
  #blogg-container, .ansible-artikkel-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  #blogg-container > div, .ansible-artikkel-list > div {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 1.5rem 2rem;
    margin: 0;
    transition: box-shadow 0.2s, transform 0.2s, border 0.2s;
    border: 1.5px solid #e0e0e0;
  }
  #blogg-container > div:hover, .ansible-artikkel-list > div:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    border: 1.5px solid #0078d7;
    transform: translateY(-4px) scale(1.02);
    background: #f8fbff;
  }
  #blogg-container h2, .ansible-artikkel-list h2 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: #111;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
  }
  #blogg-container h2 a, .ansible-artikkel-list h2 a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    text-align: left;
  }
  #blogg-container h2 a:hover, .ansible-artikkel-list h2 a:hover {
    color: #005fa3;
    text-decoration: none;
  }
}

/* --- Card grid layout for home page - matches header width --- */
.main {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 40px !important;
  max-width: 1280px !important;
  margin: 70px auto 50px auto !important;
  padding: 0 50px !important;
  width: 100% !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .main {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 0 32px !important;
    margin: 50px auto 40px auto !important;
  }
}

@media (max-width: 600px) {
  .main {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 0 16px !important;
    margin: 32px auto 32px auto !important;
  }
}

/* --- Grid card layout for article listing page - 3 column grid --- */
.main_article {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  max-width: 1280px !important;
  margin: 0 auto 50px auto !important;
  padding: 0 50px !important;
  width: 100% !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
@media (max-width: 900px) {
  .main_article {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 0 50px !important;
  }
}
@media (max-width: 600px) {
  .main_article {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 50px !important;
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 0 0 24px 0;
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
  min-height: 340px;
  position: relative;
}
.article-card__img {
  width: 140px;
  height: 90px;
  object-fit: contain;
  border-radius: 12px 12px 0 0;
  display: block;
  margin: 0 auto;
  background: #fff;
}
.article-card__title {
  font-size: 1.3rem;
  margin: 18px 0 8px 0;
  color: #222;
  text-align: left;
  width: 100%;
  padding: 0 18px;
  min-height: 48px;
  display: flex;
  align-items: flex-end;
}
.article-card__desc {
  font-size: 1rem;
  color: #444;
  margin: 0 0 16px 0;
  text-align: left;
  width: 100%;
  padding: 0 18px;
  min-height: 60px;
  display: flex;
  align-items: flex-start;
}
.article-card__btn {
  margin-top: auto;
  background: #7fad79;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  width: calc(100% - 36px);
  display: block;
  transition: background 0.2s;
}
.article-card__btn:hover {
  background: #249214;
}
@media (max-width: 600px) {
  .main {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 2vw;
  }
  .article-card {
    max-width: 96vw;
    width: 100%;
    margin: 0 auto;
    min-height: unset;
    position: static;
  }
  .article-card__img {
    width: 70vw;
    height: auto;
    max-width: 90vw;
    max-height: 32vw;
    object-fit: contain;
    position: static;
  }
  .article-card__title, .article-card__desc, .article-card__btn {
    position: static;
    width: 100%;
    padding: 0 6vw;
    margin: 0;
    left: unset;
    right: unset;
    top: unset;
    bottom: unset;
    text-align: left;
    box-sizing: border-box;
  }
  .article-card__title {
    min-height: 38px;
  }
  .article-card__desc {
    min-height: 48px;
  }
  .article-card__btn {
    margin-top: 12px;
    width: 90vw;
    margin-left: 6vw;
    margin-right: 6vw;
  }
}