/* Full height image header */
.bgimg-1 {
    background-position: center;
    background-size: cover;
    background-image: url("/media/images/bamboo.jpg");
    min-height: 100%;
}

.w3-bar .w3-button {
    padding: 16px;
}

.w3-card {
    height: 100%;
}

.w3-card h3,
.w3-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    padding: 64px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

/* --------------------
           Title
        -------------------- */
.about-title {
    text-align: center;
    font-size: 2rem;
    font-weight:700;
    color: #1f3d2b;
    margin-bottom: 56px;
    position: relative;
}

.about-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    background: #4caf50;
    margin: 20px auto 0;
    border-radius: 2px;
}

/* --------------------
           Text Styling
        -------------------- */
.lead {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 32px;
}

p {
    margin-bottom: 22px;
    font-size: 1.05rem;
}

h4 {
    font-size: 1.6rem;
    margin: 48px 0 18px;
    color: #1f3d2b;
}

/* --------------------
           Quote
        -------------------- */
blockquote {
    margin: 48px 0;
    padding: 28px 36px;
    background: #f1f8f4;
    border-left: 6px solid #4caf50;
    border-radius: 10px;
    font-style: italic;
    font-size: 1rem;
}

blockquote span {
    display: block;
    margin-top: 14px;
    font-style: normal;
    font-weight: 600;
    color: #2e7d32;
}

/* --------------------
           Divider
        -------------------- */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #cccccc, transparent);
    margin: 56px 0;
}

/* --------------------
           Link
        -------------------- */
.about-link {
    display: inline-block;
    margin-top: 32px;
    font-weight: 600;
    font-size: 1.05rem;
    color: #2e7d32;
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-link:hover {
    color: #1b5e20;
    transform: translateX(6px);
}

/* --------------------
           Program Scroll Container
        -------------------- */
.program-scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.program-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.program-scroll-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* --------------------
           Team Description Ellipsis
        -------------------- */

/* Description clamp */
.team-description {
    display: -webkit-box;
    -webkit-line-clamp: 4;      /* max lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-description {
    display: -webkit-box;
    -webkit-line-clamp: 4;      /* max lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =====================================================
           RESPONSIVE DESIGN
        ===================================================== */

/* Tablets */
@media (max-width: 1024px) {
    .about-container {
        padding: 48px;
    }

    .about-title {
        font-size: 2.6rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .about-section {
        padding: 80px 16px;
    }

    .about-container {
        padding: 36px 24px;
        border-radius: 14px;
    }

    .about-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .lead {
        font-size: 1.35rem;
    }

    p {
        font-size: 1rem;
    }

    blockquote {
        padding: 22px 24px;
        font-size: 1.05rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .about-title {
        font-size: 2rem;
    }

    .about-container {
        padding: 28px 18px;
    }

    .lead {
        font-size: 1.25rem;
    }
}