/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.hero-text {
    flex: 1;
    padding-right: 20px;
}

.hero-text h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    color: #222;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin-top: 0;
}

.hero-text p {
    font-size: 18px;
    color: #555;
}

.hero-video {
    flex: 1;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* About Page Header and Content */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header p {
    margin-top: 10px;
}

.about-content {
    padding: 20px;
}

.about-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-bullets li {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.about-bullets li strong {
    color: #1a3c80;
}

.about-bullets li a {
    color: #2196F3;
    text-decoration: none;
    font-weight: bold;
}

.about-bullets li a:hover {
    text-decoration: underline;
}

/* Brochure / About Page Styles */
.scroll-container {
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}


.brochure-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: clamp(3rem, 6vw, 5rem) max(var(--page-gutter), calc((100% - var(--container-width)) / 2 + var(--page-gutter)));
    gap: clamp(1.75rem, 4vw, 3rem);
    border-bottom: 1px solid #eaeaea;
}

.brochure-section.alternate {
    background-color: #f9f9f9;
}

.brochure-section .content {
    flex: 1 1 380px;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.brochure-section h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1.25;
    margin-top: 0;
    color: #1a3c80;
    margin-bottom: 20px;
}

.brochure-section p {
    font-size: 1.0625rem;
    max-width: 72ch;
    color: #555;
    line-height: 1.6;
}

.video-placeholder {
    flex: 1 1 380px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #333;
    border-radius: 8px;
    margin: 0;
}

/* Brochure media */
.image-box {
    flex: 1 1 380px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* New styling for the video box */
.video-box {
    flex: 1 1 380px;
    min-height: 200px;
    /* Adjusted height */
    max-height: 300px;
    /* Added max-height */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
}

.video-box video {
    width: 100%;
    height: 100%;
    /* Adjusted to scale the video */
    object-fit: cover;
    /* Ensures the video scales properly */
    border-radius: 8px;
}

/* Hero Section Specific for About Page */
.hero-section {
    flex-direction: column;
    text-align: center;
    padding: 80px 20px;
    background-color: #f1f1f1;
}

.hero-section .content {
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 3em;
    color: #1a3c80;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.5em;
    color: #555;
}

/* New styling for the JJ Ben-Joseph section */
.jj-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.photo-container {
    flex: 0 0 auto;
    max-width: 250px;
}

.photo-container img {
    width: 100%;
    border-radius: 8px;
}

.jj-text {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .jj-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .photo-container {
        max-width: 200px;
        margin-bottom: 0;
    }

    .jj-text {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 16px;
    }

    /* Keep a consistent reading margin on phones. */
    .brochure-section {
        padding: 3rem var(--page-gutter);
    }

    /* Reduce margins and allow image boxes to use more of the available width */
    .image-box,
    .video-box {
        margin: 0;
        flex: 1 1 auto;
    }

    /* Optional: Adjust hero-section padding if needed */
    .hero-section {
        padding: 40px 10px;
        /* reduced vertical padding for hero-section */
    }
}
