﻿body {
      margin: 0;
      font-family: Arial, sans-serif;
      line-height: 1.6;
      color: #333;
      background-color: #f9f9f9;
    }
    header {
      background: #0077b6;
      color: #fff;
      padding: 15px 0;
      text-align: center;
    }
    nav {
      background: #023e8a;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
    }
    nav a {
      color: #fff;
      padding: 14px 20px;
      text-decoration: none;
    }
    nav a:hover {
      background: #0096c7;
    }
    .hero {
      background: url('../images/home/slider/slider2.jpg') no-repeat center center/cover;
      color: white;
      height: 50vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0 20px;
    }
    .hero h1 {
      font-size: 3rem;
      background: rgba(0, 0, 0, 0.6);
      padding: 20px;
      border-radius: 10px;
    }
    section {
      padding: 50px 20px;
      max-width: 1100px;
      margin: auto;
    }
    section h2 {
      text-align: center;
      margin-bottom: 40px;
      color: #0077b6;
      font-size: 2rem;
    }
    .program-block {
      display: flex;
      flex-wrap: nowrap;
      margin-bottom: 40px;
      gap: 20px;
      align-items: flex-start;
      background: #fff;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .program-block img {
      flex: 1 1 400px;
      max-width: 100%;
      border-radius: 12px;
    }
    .program-text {
      flex: 1 1 400px;
      padding: 0 16px; /* add padding on sides for breathing room */
    }

    /* Make the carousel occupy the left column and the text the right column */
    .program-block > .carousel {
      flex: 0 0 58%; /* left column - carousel */
      min-width: 280px;
      box-sizing: border-box;
      margin: 0; /* remove margin that causes layout issues */
    }
    .program-block > .program-text {
      flex: 0 0 42%; /* right column - text */
      box-sizing: border-box;
      padding: 0 16px; /* ensure text has gap from edges */
    }

    /* Horizontal scrolling carousel for project images */
    .carousel {
      display: flex;
      gap: 16px;
      overflow-x: auto;
      padding: 12px 4px;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      background: transparent;
      margin: 12px 0 40px;
    }

    .carousel::-webkit-scrollbar {
      height: 10px;
    }
    .carousel::-webkit-scrollbar-thumb {
      background: rgba(0,0,0,0.2);
      border-radius: 6px;
    }

    .carousel-item {
      flex: 0 0 100%; /* show 1 item at a time, scroll to reveal next */
      scroll-snap-align: start;
      border-radius: 10px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 6px 18px rgba(4,65,38,0.08);
    }

    .carousel-item img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
    }

    @media (max-width: 840px) {
      .carousel-item {
        flex: 0 0 100%; /* 1 item on smaller screens */
      }
      .carousel-item img {
        height: 180px;
      }
      /* Stack carousel above text on small screens */
      .program-block {
        flex-direction: column;
      }
      .program-block > .carousel,
      .program-block > .program-text {
        flex: 1 1 100%;
        min-width: 0;
      }
    }
    footer {
      background: #023e8a;
      color: #fff;
      text-align: center;
      padding: 20px;
      margin-top: 20px;
    }

    .our-projects-hero.hero {
      width: min(100% - 48px, 1240px);
      min-height: 340px;
      margin: 28px auto 0;
      padding: 46px;
      justify-content: flex-start;
      text-align: left;
      border-radius: 18px;
      background:
        linear-gradient(90deg, rgba(7, 91, 53, 0.9) 0%, rgba(7, 91, 53, 0.68) 44%, rgba(7, 91, 53, 0.08) 100%),
        url('../images/home/slider/slider1.jpeg') center 42%/cover;
      box-shadow: 0 18px 45px rgba(7, 91, 53, 0.18);
    }
    .our-projects-hero.hero h1 {
      max-width: 560px;
      margin: 0;
      padding: 0;
      background: transparent;
      border-radius: 0;
      font-size: clamp(2.4rem, 5vw, 4.5rem);
      line-height: 1;
      text-shadow: 0 4px 18px rgba(0, 0, 0, 0.36);
    }
    @media (max-width: 760px) {
      .our-projects-hero.hero {
        width: min(100% - 28px, 1240px);
        min-height: 260px;
        padding: 32px 24px;
      }
    }


