/* Responsive breakpoints for mobile and tablet, matching index.html */
@media (max-width: 768px) {
    .professional-section {
        min-height: 40vw;
        height: 40vw;
        max-height: 60vw;
        padding-top: 3.5rem;
        background-position: center 20% !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-attachment: initial !important;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        position: relative;
    }
    .professional-section h1 {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        margin: 0 auto;
        color: white;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
        z-index: 2;
        padding: 1.8rem 5vw 1.2rem 5vw;
        box-sizing: border-box;
        /* background: rgba(0,0,0,0.15); */
        background: none;
        border-radius: 8px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .professional-intro {
        margin-top: 0.5rem !important;
        padding: 1.2rem 1rem;
        font-size: 1rem;
        max-width: 98vw;
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
    }
    .sponsor-headshot-person {
        width: 90vw !important;
        max-width: 320px;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .sponsor-headshot-img {
        width: 80vw !important;
        max-width: 220px;
        height: 80vw !important;
        max-height: 220px;
        object-fit: cover !important;
        /* nudge focal point so the tops of heads remain visible on narrow phones */
        object-position: center 35% !important;
        border-radius: 18px;
        box-shadow: 0 2px 16px rgba(0,0,0,0.10);
        margin-bottom: 1.2rem;
        aspect-ratio: 1 / 1 !important;
    }
    .sponsor-us-white-box {
        max-width: 100vw !important;
        width: 100vw !important;
        border-radius: 0 !important;
        padding: 2rem 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
    }
}

@media (max-width: 480px) {
    .professional-section h1 {
        font-size: 1.5rem;
    }
}
/* White box styling for Sponsor Us intro, similar to Professionalism page */
.sponsor-us-white-box {
    /* Pillar-style description: centered, responsive type, no white box */
    margin: 0 auto 1.6rem auto;
    max-width: 1100px;
    /* reduce horizontal padding so description can use more width */
    padding: clamp(0.6rem, 2.5vw, 1.2rem) 4vw;
    text-align: center;
    background: none;
    border-radius: 0;
    box-shadow: none;
    font-size: clamp(1.05rem, 1.9vw, 1.45rem);
    line-height: 1.6;
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
}

/* Large heading inside the description */
.sponsor-us-white-box .bold {
    display: block;
    margin-bottom: 1.2rem;
    font-size: clamp(1.25rem, 2.8vw, 2.2rem);
}

/* Paragraph/description inside the box */
.sponsor-us-white-box > div {
    font-size: clamp(1rem, 1.9vw, 1.15rem);
    /* Allow description to take more horizontal space; override inline max-width if present */
    max-width: 100% !important;
    width: min(100%, 980px) !important;
    margin: 0 auto;
    padding: 0 0.5rem;
}
/* Styles for Sponsor Us page (copied and adapted from sponsors.css) */

.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;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 0 1rem;
}

.professional-section h1 {
    font-size: 3.2rem;
    margin-bottom: 0rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.professional-intro {
    margin-top: 2rem;
    padding: 2rem 3rem;
    max-width: 900px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    animation: pull-in 0.7s cubic-bezier(.6,-0.28,.74,.05) 0.1s forwards;
    transition: box-shadow 0.3s;
}

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

.feature-text {
    margin: 0 auto;
    padding: 2rem 0 0 0;
}

.bold {
    font-weight: bold;
    font-size: 1.4rem;
}

/* Larger headshots and text on wider screens to reduce white space */
@media (min-width: 769px) {
    .professional-intro {
        max-width: 1100px;
        padding: 2rem 4rem;
    }

    .sponsor-headshots-mobile {
        gap: 4rem;
        justify-content: center;
        align-items: center;
        margin-top: 2rem;
    }

    /* scaled up 25% from previous sizes (260 -> 325, 360 -> 450, text increased ~25%) */
    .sponsor-headshot-person {
        width: 450px;
        max-width: 50vw;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sponsor-headshot-img {
        width: 325px !important;
        height: 325px !important;
        max-width: 100%;
        max-height: 325px;
        object-fit: cover !important;
        object-position: center 45% !important; /* keep slightly lower focal point on larger screens */
        border-radius: 20px;
        box-shadow: 0 6px 36px rgba(0,0,0,0.14);
        margin-bottom: 0.9rem;
    }


/* Style phone numbers: prefer plain purple text and neutralize tel links on mobile */
.phone {
    color: #6a1b9a; /* purple */
    text-decoration: none;
}

/* If the browser auto-converts numbers to tel links, make them non-interactive and purple */
a[href^="tel"] {
    color: #6a1b9a !important;
    text-decoration: none !important;
    pointer-events: none !important;
    cursor: default !important;
}
    .sponsor-headshot-person div {
        text-align: center;
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .sponsor-headshot-person .bold {
        font-size: 1.8rem;
    }
}
