body, html {
  overflow-x: hidden;
  max-width: 100vw;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Hero Section */
.info-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  overflow: hidden;
  padding-top: 260px;
}

.info-page-header {
  text-align: center;
  z-index: 2;
  position: relative;
  padding: 0 20px;
}

.info-t-1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: #1e293b;
  margin: 0;
  line-height: 1;
  font-style: italic;
}

.info-t-2 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: #57a3f5;
  margin: 5px 0 15px;
  text-transform: uppercase;
  letter-spacing: -2px;
}

.info-sub {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: #64748b;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

/* Table of Contents */
.toc-section {
  padding: 40px 20px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.toc {
  max-width: 800px;
  margin: 0 auto;
}

.toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #1e293b;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.toc-item:hover {
  background: #57a3f5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(87, 163, 245, 0.2);
}

.toc-icon {
  font-size: 1.2rem;
}

/* Base Sections */
.info-wrapper {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.alternate-bg {
  background-color: #f1f5f9;
  border-radius: 20px;
  margin: 40px auto;
}

.section-title {
  font-size: clamp(1.8rem, 8vw, 2.5rem);
  color: #1e293b;
  margin-bottom: 10px;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
}

.section-subtitle {
  color: #57a3f5;
  font-style: italic;
  font-weight: 400;
}

.section-desc {
  text-align: center;
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.text-link {
  color: #57a3f5;
  font-weight: bold;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}

/* Grid Layouts - Fagpakker */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.info-card {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-color: #57a3f5;
}

.info-card-icon {
  font-size: 3rem;
  color: #57a3f5;
  margin-bottom: 15px;
}

.info-card h3 {
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 10px;
}

.info-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Betaling Flex Boxes */
.info-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.info-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid #57a3f5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.info-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.info-box-header ion-icon {
  font-size: 1.5rem;
  color: #57a3f5;
}

.info-box h3 {
  margin: 0;
  color: #1e293b;
  font-size: 1.2rem;
}

.info-box p, .info-list li {
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.info-list {
  padding-left: 20px;
  margin: 0;
}

.info-list li {
  margin-bottom: 8px;
}

.highlight-text {
  color: #ef4444;
  font-weight: bold;
}

.info-highlight-box {
  background: #1e293b;
  color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: left;
}

.info-highlight-box h3 {
  color: #57a3f5;
  margin-top: 0;
  font-size: 1.4rem;
}

.info-highlight-box p {
  color: #cbd5e1;
  line-height: 1.6;
}

/* Process Grid - Bli privatlærer */
.process-title {
  text-align: center;
  margin-bottom: 30px;
  color: #1e293b;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  position: relative;
}

.process-step {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e2e8f0;
  position: relative;
  transition: transform 0.3s;
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: #57a3f5;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #57a3f5;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 6px rgba(87,163,245,0.3);
}

.process-step ion-icon {
  font-size: 2.5rem;
  color: #1e293b;
  margin: 15px 0;
}

/* Accordions for Terms and Privacy */
.accordion-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: white;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.3s;
  text-align: left;
}

.accordion-header:hover {
  background: #f8fafc;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: #57a3f5;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  background: #f8fafc;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 0 20px 20px;
}

.accordion-content p, .accordion-content ul {
  color: #475569;
  line-height: 1.6;
  margin: 15px 0 0 0;
}

/* Media Queries */
@media (max-width: 768px) {
  .info-hero { padding-top: 280px; }
  .toc-item { flex: 1 1 100%; justify-content: center; }
  .alternate-bg { margin: 20px 10px; padding: 40px 10px; }
}
