/* Responsive breakpoints for mobile and tablet, matching index.html */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    main {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .professional-section {
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: initial !important;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        position: relative;
        width: 100%;
        max-width: 100vw;
    }
    .professional-section h1 {
        /* Match zeta-nu responsive hero: vertically centered, fluid size, subtle background */
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        width: 100vw;
    /* reduced fluid range so headers are smaller on mobile */
    font-size: clamp(1.2rem, 6vw, 2rem);
        margin: 0 auto;
        color: white;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
        z-index: 2;
        padding: 0 5vw;
        box-sizing: border-box;
    /* remove translucent box on mobile */
    background: none;
    border-radius: 0;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .professional-intro {
        padding: 1.2rem 1rem;
        font-size: 1rem;
        max-width: 98vw;
    }

    /* Stack events vertically on mobile */
    .events-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding: 0 1rem;
    }

    .signature-event {
        width: 100%;
        max-width: 300px;
    }

    /* Feature section mobile - image above, text below and centered */
    .feature-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .feature-image {
        order: -1 !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .feature-text {
        text-align: center !important;
        order: 1 !important;
    }

    .feature-text div {
        text-align: center !important;
    }

    .feature-text p {
        text-align: center !important;
    }

    /* Center the person's name on mobile (override inline style) */
    .feature-text div[style*="text-align: right"] {
        text-align: center !important;
    }

    /* Carousel mobile */
    .carousel-main-image {
        height: auto;
        max-width: 100%;
    }

    /* Show full photo on mobile instead of center-cropping */
    .carousel-main-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    .carousel-thumbnails {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .carousel-thumb {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .professional-section {
        height: 40vh;
        min-height: 250px;
        background-position: center center;
        background-size: cover;
    }

    .professional-section h1 {
        font-size: 1.1rem;
    }

    .events-section h2 {
        font-size: 2rem;
    }

    .circular-img {
        width: 220px;
        height: 220px;
    }

    .img-fade-container {
        width: 220px;
        height: 220px;
    }

    .signature-event {
        width: 220px;
    }

    .carousel-main-image {
        height: auto;
    }

    .carousel-thumb {
        width: 50px;
        height: 38px;
    }
}

@media (max-width: 360px) {
    .professional-section h1 {
        font-size: 0.95rem;
    }
}
.professional-carousel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

.carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 700px;
}

.carousel-main-image {
    width: 100%;
    max-width: 720px;
    height: 408px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}
.carousel-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    transition: opacity 0.3s;
    opacity: 1;
}

.carousel-thumbnails {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.carousel-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
    transition: border 0.2s, opacity 0.2s;
}
.carousel-thumb.active {
    opacity: 1;
    border: 2px solid #111;
}
.professional-divider {
    border: none;
    border-top: 3px solid #111;
    width: 75vw;
    max-width: 1200px;
    margin: 3rem auto 3.5rem auto;
    display: block;
}

.professional-feature {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3.5rem;
}

.feature-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    max-width: 900px;
    width: 100%;
}

.feature-image img {
    width: 320px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.feature-text {
    flex: 1;
    text-align: center; /* center like Brotherhood/Contact pages */
    font-size: clamp(1.12rem, 1.8vw, 1.36rem);
    line-height: 1.7;
    max-width: 920px;
    margin: 0 auto;
}
.feature-text span[style*="font-weight: bold;"] {
    font-size: clamp(1.18rem, 1.6vw, 1.4rem);
    display: block;
    margin-bottom: 0.6rem;
}
.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.feature-text p {
    font-size: 1.15rem;
    line-height: 1.7;
}
.professional-section,
.professional-intro,
.events-section {
    margin-bottom: 3.5rem;
}
.events-section h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}
.professional-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 70vh;
    background-size: cover;
    background-position: center 70%;
    background-attachment: fixed; 
    color: white; /* White text */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Text shadow for better readability */
    text-align: center;
    padding: 0 1rem;
    background-image: url('Web Images/6-Professionalism.JPEG');
}

.professional-section h1 {
    /* Smaller, responsive hero heading to match other pillars */
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    margin-bottom: 0rem;
    font-weight: 600;
}

.events-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.signature-event {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 264px;
}

.img-fade-container {
    position: relative;
    width: 264px;
    height: 264px;
}
.img-fade-container .img-base {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.4s;
}
.img-fade-container .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s;
}
.img-fade-container:hover .img-hover {
    opacity: 1;
}
.img-fade-container:hover .img-base {
    opacity: 0;
}

.circular-img {
    width: 264px;
    height: 264px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: box-shadow 0.2s;
}

.circular-img:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.event-text-box {
    margin-top: 2.2rem;
    text-align: center;
}

.event-text-box .bold {
    font-weight: bold;
    font-size: 1.2rem;
}

.small-text {
    font-size: 0.95rem;
    color: #888;
    margin-top: 0.3rem;
}

.professional-intro {
    margin-top: 2rem;
    padding: 2.5rem 6vw; /* viewport padding for breathing room */
    background: none; /* remove white boxed background to match Contact/Brotherhood */
    border-radius: 0;
    max-width: 1100px; /* allow wider centered content */
    box-shadow: none;
    text-align: center; /* center like Contact page */
    margin-left: auto;
    margin-right: auto;
    /* make intro static: no entrance animation, always visible */
    opacity: 1;
    transform: none;
}

/* removed hover shadow to keep intro visually static */

@media (max-width: 768px) {
    .professional-intro {
        padding: 1.2rem 4vw;
        max-width: 98vw;
        margin-top: 1rem;
    }
    .feature-text {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 1rem;
    }
}

@keyframes pull-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Square featured image for Professionalism page */
.feature-image .square-img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    /* Shift focal point up so heads aren't cropped */
    object-position: center 30%;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    display: block;
}

@media (max-width: 768px) {
    .feature-image .square-img {
        width: 220px;
        height: 220px;
        object-position: center 25%;
    }
}

@media (max-width: 480px) {
    .feature-image .square-img {
        width: 160px;
        height: 160px;
        object-position: center 20%;
    }
}

