/* LearnMore.css - Updated: About Us / Why boxes now identical to Learn More boxes + smaller h2 */

.content {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    max-width: 1200px;
    padding-top: 280px;
    text-align: center;
    box-sizing: border-box;
}

/* Headings - matched to Index */
h1 {
    font-size: 44px;
    margin: 0 0 30px 0;
    color: #ff9900;
    font-family: "CyberDyne", Arial, sans-serif;
    text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black;
}

h2 {
    font-size: 22px;
    margin: 0 0 40px 0;
    line-height: 1.6;
    color: #ffffff;
}

/* Resources container */
.resources {
    width: 100%;
    margin-bottom: 120px;
}

/* Text boxes - same styling for Learn More AND About Us / Why */
.text-box {
    border: 4px solid #ff9900;
    background-color: black;
    margin: 25px auto;
    max-width: 60%;
    padding: 14px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-box:hover {
    transform: scale(1.02);
}

.text-box h3,
.text-box h2 {                     /* ← Covers both Learn More h3 and Why h2 */
    margin: 0;
    color: #ff9900;
    font-family: "Orbitron", Arial, sans-serif;
    text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px 1px 0 black,
        1px 1px 0 black;
}

/* Smaller headline inside Why boxes */
.text-box h2 {
    font-size: 20px;               /* ← Reduced slightly as requested */
}

/* Expanding content - same for both sections */
.resource-list,
.text-box-text {
    display: none;
    margin-top: 14px;
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: 19px;
    color: #ffffff;
    line-height: 1.5;
}

.text-box.active .resource-list,
.text-box.active .text-box-text {
    display: block;
}

/* Orange links with visibility shadow */
.resource-list a,
.text-box-text a {
    color: #ff9900;
    text-decoration: underline;
}

.resource-list a:hover,
.text-box-text a:hover {
    color: #ffcc66;
}

/* About / What We Do / Why sections - increased top margin from previous */
.Om_oss_og_målet,
.hva_vi_gjør,
.hvorfor {
    margin-top: 80px;
    margin-bottom: 120px;
}

.sub-text {
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
    max-width: 900px;
    margin: 20px auto;
}

/* Hide scrollbar */
.content::-webkit-scrollbar {
    display: none;
}

.content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ── RESPONSIVE BREAKPOINTS (exact from your latest Index.css) ───────────── */

@media (max-width: 480px) {
  .content {
    width: 85%;
    padding: 140px 15px 80px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 18px;
  }

  .text-box {
    max-width: 90%;
    padding: 12px;
  }

  .text-box h2 {
    font-size: 18px;               /* Scaled down proportionally */
  }

  .resource-list,
  .text-box-text {
    font-size: 15px;
  }

  .sub-text {
    font-size: 16px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .content {
    width: 90%;
    padding: 180px 20px 100px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 20px;
  }

  .text-box {
    max-width: 80%;
  }

  .text-box h2 {
    font-size: 19px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .content {
    width: 88%;
    padding: 220px 30px 100px;
  }

  h1 {
    font-size: 40px;
  }

  .text-box h2 {
    font-size: 20px;
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .content {
    max-width: 1100px;
    padding: 260px 40px 120px;
  }
}

@media (min-width: 1441px) {
  .content {
    max-width: 1200px;
    padding: 300px 60px 140px;
  }

  h1 {
    font-size: 48px;
  }

  .text-box h2 {
    font-size: 20px;
  }

  .resource-list,
  .text-box-text {
    font-size: 19px;
  }
}

@media (min-width: 2560px) {
  .content {
    max-width: 1400px;
    padding: 320px 80px 160px;
  }

  h1 {
    font-size: 56px;
  }

  .text-box h2 {
    font-size: 22px;
  }

  .resource-list,
  .text-box-text {
    font-size: 22px;
  }
}