/* ScubaFun Website Styles */

/* Base styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  color: #626262;
  background-color: #ffffff;
  line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #041543;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: #7197ee;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #4a76d1;
}

/* Container */
.container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
  max-width: 1200px;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Header */
header {
  background-color: #041543;
  color: #ffffff;
  padding: 1rem 0;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  display: block;
  padding: 0.5rem 0;
}

header .logo img {
  height: 50px;
  width: auto;
}

header nav {
  display: flex;
  align-items: center;
}

header .nav-items {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

header .nav-item {
  margin-left: 1.5rem;
}

header .nav-item a {
  color: #ffffff;
  font-weight: 700;
  padding: 0.5rem 0;
  position: relative;
}

header .nav-item a:hover, 
header .nav-item a.active {
  color: #7197ee;
}

header .nav-item a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #7197ee;
  transition: width 0.3s;
}

header .nav-item a:hover::after, 
header .nav-item a.active::after {
  width: 100%;
}

header .mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  header nav {
    width: 100%;
    justify-content: space-between;
    margin-top: 1rem;
  }
  
  header .mobile-toggle {
    display: block;
  }
  
  header .nav-items {
    flex-direction: column;
    width: 100%;
    display: none;
  }
  
  header .nav-items.active {
    display: flex;
  }
  
  header .nav-item {
    margin: 0.5rem 0;
    margin-left: 0;
  }
}

/* Main content */
main {
  padding: 2rem 0;
}

/* Footer */
footer {
  background-color: #041543;
  color: #ffffff;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

footer a {
  color: #ffffff;
}

footer a:hover {
  color: #7197ee;
}

footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}

footer .footer-section {
  flex: 1;
  margin-bottom: 2rem;
  min-width: 200px;
  padding-right: 1rem;
}

footer .footer-section h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
}

footer .footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: #7197ee;
}

footer .footer-section ul {
  padding: 0;
  list-style: none;
}

footer .footer-section ul li {
  margin-bottom: 0.5rem;
}

footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
}

footer .social-icons {
  display: flex;
  gap: 1rem;
}

footer .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

footer .social-icons a:hover {
  background-color: #7197ee;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-primary:active, .btn-secondary:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: #041543;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #030e2c;
  color: #ffffff;
}

.btn-secondary {
  background-color: #7197ee;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #5a7fd6;
  color: #ffffff;
}

/* Hero section */
.hero-section {
  background-color: #041543;
  color: #ffffff;
  padding: 4rem 0;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(4, 21, 67, 0.8), rgba(4, 21, 67, 0.9));
  z-index: 1;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-section .hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-section .hero-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #7197ee;
}

.hero-section .hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .hero-section .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .hero-content h2 {
    font-size: 1.25rem;
  }
  
  .hero-section .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Feature section */
.featured-section {
  padding: 4rem 0;
  background-color: #f5f7fd;
}

.featured-section .feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.featured-section .feature-item {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.featured-section .feature-item:hover {
  transform: translateY(-10px);
}

.featured-section .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.featured-section .feature-item h3 {
  margin-bottom: 1rem;
}

@media (max-width: 992px) {
  .featured-section .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .featured-section .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* About section */
.about-section {
  padding: 4rem 0;
}

.about-section .about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-section .about-text {
  flex: 1;
}

.about-section .about-image {
  flex: 1;
}

.about-section .about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .about-section .about-content {
    flex-direction: column-reverse;
  }
}

/* Content pages */
.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.content-container h1 {
  margin-bottom: 2rem;
  text-align: center;
}

/* Markdown Content Styling */
.markdown-content {
  line-height: 1.7;
  color: #626262;
}

.markdown-content h1, 
.markdown-content h2, 
.markdown-content h3, 
.markdown-content h4, 
.markdown-content h5, 
.markdown-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #041543;
}

.markdown-content h1 {
  font-size: 2.25rem;
  border-bottom: 2px solid #f5f7fd;
  padding-bottom: 0.5rem;
}

.markdown-content h2 {
  font-size: 1.75rem;
  border-bottom: 1px solid #f5f7fd;
  padding-bottom: 0.5rem;
}

.markdown-content h3 {
  font-size: 1.5rem;
}

.markdown-content p {
  margin-bottom: 1.2rem;
}

.markdown-content ul, 
.markdown-content ol {
  margin-bottom: 1.2rem;
  padding-left: 2rem;
}

.markdown-content li {
  margin-bottom: 0.5rem;
}

.markdown-content a {
  color: #7197ee;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.2s ease;
}

.markdown-content a:hover {
  border-bottom-color: #7197ee;
}

.markdown-content blockquote {
  border-left: 4px solid #7197ee;
  padding-left: 1rem;
  margin-left: 0;
  margin-right: 0;
  font-style: italic;
  color: #626262;
}

.markdown-content code {
  background-color: #f5f7fd;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
  font-size: 0.9rem;
}

.markdown-content pre {
  background-color: #f5f7fd;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.markdown-content pre code {
  background-color: transparent;
  padding: 0;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 1rem 0;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.markdown-content th, 
.markdown-content td {
  border: 1px solid #e1e4e8;
  padding: 0.5rem 1rem;
}

.markdown-content th {
  background-color: #f5f7fd;
  font-weight: bold;
}

.markdown-content tr:nth-child(even) {
  background-color: #fafbfd;
}

.markdown-content .task-list-item {
  list-style-type: none;
  margin-left: -1rem;
}

.markdown-content .task-list-item input[type="checkbox"] {
  margin-right: 0.5rem;
}

.metadata {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #f5f7fd;
  font-size: 0.9rem;
  color: #888888;
}

/* Content List Styling */
.content-list {
  margin-top: 2rem;
}

.content-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f5f7fd;
}

.content-item:last-child {
  border-bottom: none;
}

.content-item h2 {
  margin-bottom: 0.5rem;
}

.content-item .description {
  margin-bottom: 0.5rem;
  color: #626262;
}

.content-item .last-modified {
  font-size: 0.9rem;
  color: #888888;
}

.content-item a {
  text-decoration: none;
  color: #041543;
  transition: color 0.2s ease;
}

.content-item a:hover {
  color: #7197ee;
}

/* Responsive utilities */
.d-none {
  display: none;
}

@media (max-width: 576px) {
  .d-sm-none {
    display: none;
  }
}

@media (max-width: 768px) {
  .d-md-none {
    display: none;
  }
}

@media (max-width: 992px) {
  .d-lg-none {
    display: none;
  }
}

/* Accessibility */
:focus {
  outline: 3px solid rgba(113, 151, 238, 0.5);
  outline-offset: 2px;
}

/* Home Page / Forside Styles */
.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  text-align: center;
  padding: 6rem 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(rgba(4, 21, 67, 0.7), rgba(4, 21, 67, 0.8));
  z-index: 1;
}

.hero-banner .container {
  position: relative;
  z-index: 2;
}

.hero-banner h1 {
  font-size: 3.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-banner .lead {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-banner .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 4rem 0;
    min-height: 450px;
  }
  
  .hero-banner h1 {
    font-size: 2.5rem;
  }
  
  .hero-banner .lead {
    font-size: 1.25rem;
  }
}

/* Features Section */
.features-section {
  background-color: #f8f9fa;
  padding: 2rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-item {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.feature-icon {
  color: #041543;
  font-size: 1.5rem;
  margin-right: 1rem;
}

.feature-item p {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Content Section */
.content-section {
  padding: 4rem 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* Courses Section */
.courses-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: #041543;
}

.section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.course-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-10px);
}

.course-image {
  height: 200px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.1);
}

.course-content {
  padding: 1.5rem;
}

.course-content h3 {
  margin-bottom: 1rem;
  color: #041543;
}

.course-content p {
  margin-bottom: 1.5rem;
  min-height: 80px;
}

.courses-cta {
  text-align: center;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .course-content p {
    min-height: auto;
  }
}

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 0;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  display: none;
  padding: 2rem;
  text-align: center;
}

.testimonial-content {
  position: relative;
  margin-bottom: 2rem;
}

.testimonial-content p {
  font-size: 1.25rem;
  font-style: italic;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -30px;
  left: -20px;
  font-size: 5rem;
  color: #f5f7fd;
  z-index: -1;
}

.testimonial-author h4 {
  margin-bottom: 0.25rem;
}

.testimonial-author p {
  color: #626262;
}

/* CTA Section */
.cta-section {
  background-color: #041543;
  color: #ffffff;
  padding: 4rem 0;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

/* Icon placeholders - Replace with actual icon library if needed */
.icon-check::before {
  content: '✓';
  font-weight: bold;
  color: #7197ee;
}

/* Cookie Consent */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #041543;
    color: #ffffff;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-consent-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 1rem;
}

.cookie-content a {
    color: #7197ee;
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #ffffff;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .cookie-content p {
        margin-bottom: 0;
        margin-right: 1rem;
    }
}

/* Produktkatalog styling */
.products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
  position: relative;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background-color: #f8f9fa;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #041543;
  font-weight: 600;
  line-height: 1.3;
  height: 3.2rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-size: 1.25rem;
  color: #4a76d1;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-actions {
  margin-top: auto;
}

.product-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  text-align: center;
  background-color: #041543;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.product-btn:hover {
  background-color: #7197ee;
  color: #ffffff;
}

/* Produktdetaljer styling */
.product-detail {
  margin-top: 2rem;
}

.product-detail-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.product-detail-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.product-thumbnail {
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.product-thumbnail.active {
  border-color: #7197ee;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  color: #041543;
  margin-bottom: 0.5rem;
}

.product-vendor {
  color: #6c757d;
  margin-bottom: 1rem;
}

.product-price-large {
  font-size: 1.75rem;
  color: #4a76d1;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.product-description {
  margin-top: 1.5rem;
}

.variant-select {
  margin-bottom: 1.5rem;
}

.contact-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #041543;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.contact-btn:hover {
  background-color: #7197ee;
  color: #ffffff;
}