/* 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);
        border-radius: 8px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .professional-intro {
        padding: 1.2rem 1rem;
        font-size: 1rem;
        max-width: 98vw;
    }
    .feature-text {
        max-width: 98vw;
        padding: 0.5rem;
    }
    .wrapper {
        max-width: 98vw;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .professional-section h1 {
        font-size: 1.5rem;
    }
}
/* White box styling for Sponsors intro, similar to Professionalism page */
.sponsors-white-box {
    background: rgba(255,255,255,0.92);
    border-radius: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 2rem 3rem;
    margin-bottom: 2.2rem;
    max-width: 700px;
    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;
}

.sponsors-white-box:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
/* Marquee slider styles for sponsor logos */
.wrapper {
    width: 100%;
    overflow: hidden;
    margin: 2rem 0 2rem 0;
}
.marquee {
    display: flex;
    gap: 0.5rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.marquee__group {
    display: flex;
    gap: 5rem;
    justify-content: center;
    align-items: center;
    animation: marquee 9.6s linear infinite;
}
.logo-card{
    /* Square sponsor card wrapper */
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    padding: 0.75rem; /* breathing room for logos */
    box-sizing: border-box;
}

.logo-card .logo{
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain; /* ensure logo scales inside the square */
}

/* Mobile tweaks: make cards smaller and gaps tighter so they don't dominate the viewport */
@media (max-width: 768px) {
    .marquee__group { gap: 1.5rem; }
    .logo-card{
        width: min(36vw, 160px);
        height: min(36vw, 160px);
        padding: 0.5rem;
    }
    .logo-card .logo{ max-width: 90%; max-height: 90%; }

    /* override manual margins that previously offset some logos */
    .logo[alt="Reafco Logo"],
    .logo[alt="EY Logo"],
    .logo[alt="Bain Logo"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Remove custom margins for uniform spacing */
.logo[alt="Reafco Logo"],
.logo[alt="EY Logo"],
.logo[alt="Bain Logo"] {
    margin-left: 0;
    margin-right: 0;
}

.logo[alt="Reafco Logo"] {
    margin-right: 5rem;
}

.logo[alt="EY Logo"] {
    margin-left: 5rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* Styles for Sponsors page */

.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 {
    /* Pillar-style description: centered, larger responsive type, no white box */
    margin-top: 2rem;
    padding: clamp(0.6rem, 2.5vw, 1.2rem) 6vw;
    max-width: 1100px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.05rem, 1.9vw, 1.45rem);
    line-height: 1.6;
    background: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
}

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

