/* ==========================================
   Hero Section Styles
   ========================================== */

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    position: relative;
    background-color: #1a4480;
    background: linear-gradient(rgba(26, 68, 128, 0.35), rgba(26, 68, 128, 0.35)),
                url('../webpagedesignimages/header.png') center/cover no-repeat;
    min-height: 350px;
    display: flex;
    align-items: center;
    padding: 40px 20px;
    color: #ffffff;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    animation: fadeInHero 1s ease forwards;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    max-width: 750px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}



/* ==========================================
   About Us Section Styles
   ========================================== */

.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px 20px;
    display: flex;
    gap: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.about-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safety nets: this section starts invisible and JavaScript fades it in.
   If JavaScript is switched off, or the visitor asked for less motion, show it straight away. */
@media (scripting: none), (prefers-reduced-motion: reduce) {
    .about-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.about-text {
    flex: 1.1;
}

.about-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #222222;
    margin-bottom: 25px;
    margin-left: 20px;
}

.about-text p {
    text-align: justify;
    font-size: 17px;
    color: #555555;
    margin-bottom: 18px;
    margin-left: 20px;
    margin-right: 20px;
    line-height: 1.7;
}

.about-gallery {
    flex: 0.9;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* The pictures can now be reached with the keyboard (Tab), so show where the focus is */
.about-gallery img:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 2px;
}

@media (max-width: 850px) {
    .about-section {
        flex-direction: column;
        opacity: 1;
        transform: translateY(0);
    }

    .about-text h2,
    .about-text p {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .about-gallery {
        grid-template-columns: 1fr;
    }
}