/* Justify text in section paragraphs, but not headers */
.section .text {
  text-align: justify;
}
.section .text h2 {
  text-align: left;
}
/* Text color for .section.alt .text and its children (dark green background) */
.section.alt .text,
.section.alt .text h2,
.section.alt .text p,
.section.alt .text span {
  color: #f6f0e1 !important;
}
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700&display=swap');

    h1, h2, h3 {
      font-family: 'Almarai', sans-serif;
    }

    body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      font-weight: 300;
      background-color: #f6f0e1;
      color: #2e3d30;
    }

    .hero {
      background: url('images/hero.png') center/cover no-repeat;
      height: 90vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    }

    .hero-logo {
      height: 40vh;
      flex-shrink: 0;
    }

    /* Page hero for resources and contact pages */
    .page-hero {
      background: linear-gradient(135deg, #2e3d30 0%, #4b624f 100%);
      padding: 4rem 2rem;
      text-align: center;
      color: #f6f0e1;
    }

    .page-hero h1 {
      font-size: 3.5rem;
      font-weight: 700;
      margin-bottom: 1rem;
    }

    .page-hero p {
      font-size: 1.3rem;
      font-weight: 300;
      max-width: 800px;
      margin: 0 auto;
    }

    .section {
      display: flex;
      flex-wrap: wrap;
      padding: 3rem 10rem;
      align-items: center;
      gap: 2rem;
    }
    .section.intro iframe {
      width: 100%;
      height: auto;
      aspect-ratio: 16/9;
      border-radius: 12px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }
    .section.alt {
      background-color: #899f8c;
    }

    .text {
      flex: 1 1 400px;
    }

    .image {
      flex: 1 1 400px;
    }

    .image img {
      width: 100%;
      border-radius: 12px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    }

    /* Before-After Slider Styles */
    .before-after-container {
      position: relative;
      width: 100%;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0,0,0,0.1);
      cursor: col-resize;
      user-select: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
    }

    .before-after-container img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 0;
      box-shadow: none;
      pointer-events: none;
      user-select: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      -webkit-user-drag: none;
      -khtml-user-drag: none;
      -moz-user-drag: none;
      -o-user-drag: none;
    }

    .before-image {
      position: relative;
      z-index: 1;
    }

    .after-image {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 2;
      clip-path: inset(0 0 0 50%);
      transition: clip-path 0.1s ease;
    }

    .slider-handle {
      position: absolute;
      top: 0;
      left: 50%;
      width: 4px;
      height: 100%;
      background: #ffffff;
      z-index: 3;
      cursor: col-resize;
      transform: translateX(-50%);
      box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }

    .slider-handle::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 20px;
      height: 20px;
      background: #ffffff;
      border: 2px solid #4b624f;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .slider-handle::after {
      content: '⟷';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: #4b624f;
      font-size: 12px;
      font-weight: bold;
      pointer-events: none;
    }

    .before-after-labels {
      position: absolute;
      top: 20px;
      left: 0;
      right: 0;
      z-index: 4;
      display: flex;
      justify-content: space-between;
      padding: 0 20px;
      pointer-events: none;
    }

    .label {
      background: rgba(75, 98, 79, 0.8);
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 14px;
      font-weight: 700;
      text-shadow: none;
    }

    ul {
      padding-left: 1.2rem;
    }

    ul li {
      margin-bottom: 1rem;
    }

    ul li img {
      display: block;
      margin-top: 0.5rem;
      max-width: 300px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    footer {
      background: linear-gradient(135deg, #2e3d30 0%, #4b624f 100%);
      color: white;
      text-align: center;
      padding: 2rem;
      font-size: 2.7rem;
      font-weight: 300;
    }

    footer .footer-logos {
      justify-content: center;
      align-items: center;
      gap: 2rem;
      margin-bottom: 1rem;
    }

    footer .footer-logos img {
      height: 70px;
      width: 25%;
      object-fit: contain;
      padding: 0.25rem;
    }

    footer a {
      color: #ffffff;
      font-size: 2.7rem; 
      font-weight: 700;
      text-decoration: underline;
    }

    footer a:hover {
      text-decoration: none;
    }

    h2 {
      font-size: 2.5rem;      
      font-weight: 400;
      margin-bottom: 1.5rem;
      color: #2e3d30;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    h2 .icon {
      height: 1.2em;
      width: auto;
      vertical-align: middle;
    }

    .section p {
      font-size: 1.5rem;
      font-weight: 300;
      line-height: 1.3;
      letter-spacing: 0.2px;
      color: #2e3d30;
    }

    a {
      color: #576881;
      text-decoration: underline;
      font-weight: 700;
    }

    a:hover {
      text-decoration: none;
    }

    /* --- Simple responsive adjustments --- */
    @media (max-width: 768px) {
      .hero {
        height: auto;
        padding: 2rem 1rem;
      }

      .hero-logo {
        height: 120px;
      }

      .page-hero h1 {
        font-size: 2.5rem;
      }

      .page-hero p {
        font-size: 1.2rem;
      }

      .section {
        flex-direction: column;
        padding: 2rem 1rem;
      }

      /* Force text to appear before images on mobile */
      .text {
        flex: 1 1 100%;
        order: 1;
      }

      .image {
        flex: 1 1 100%;
        order: 2;
      }

      h2 {
        font-size: 2.5rem;
      }

      .section p {
        font-size: 1.5rem;
      }

      footer .footer-logos {
        flex-direction: row;
        gap: 1rem;
      }

      footer .footer-logos img {
        max-height: 35px;
        width: 25%;
        object-fit: contain;
      }

      footer {
        padding: 1.5rem 1rem;
      }

      footer p, footer a {
        font-size: 1.5rem;
      }
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .logo-fade-in {
      opacity: 0;
      animation: fadeInUp 1s ease-out forwards;
    }

    .logo-fade-in:nth-child(1) {
      animation-delay: 0.2s;
    }
    .logo-fade-in:nth-child(2) {
      animation-delay: 0.4s;
    }
    .logo-fade-in:nth-child(3) {
      animation-delay: 0.6s;
    }