/* Consolidated EdEx page styles (banner, video frame, partners) */

/* Banner */
.hero-banner {
    background: url('../images/edex24_banner.webp') no-repeat center bottom;
    background-size: cover;
    background-color: #05153c;
    padding: 30px 20px 25px;
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    color: #fff;
}

.banner-top-links {
    position: absolute;
    left: 180px;
    transform: none;
    top: 84px;
    display: flex;
    gap: 5px;
    z-index: 5;
    background: #0D2154; /* unified pill background */
    padding: 2px 30px; /* increased left/right padding */
    border-radius: 22px;
    align-items: center;
    white-space: nowrap;
}

.edex-link {
    display: inline-block;
    padding: 6px 14px; /* more breathing room left & right */
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    position: relative; /* for absolute underline */
}

.edex-link:hover {
    /* hover only changes text color */
    color: #ffe5b8;
    background: transparent;
}

.edex-active {
    position: relative;
    font-weight: bold;
}

.edex-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 3px;
}

.banner-left {
    position: absolute;
    left: 180px;
    bottom: 24px;
    display: flex;
    align-items: center;
    z-index: 6;
}

.logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.banner-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.event-ended {
    font-weight: bold;
    color: #0D2154;
    font-size: 24px;
    font-family: "Arial Bold";
    text-align: center;
}

/* Small right-content / legacy helpers */
.right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 20px;
    max-width: 400px;
}

.logo-container img { max-height: 85px; }

.banner-container {
    color: #fff;
    padding: 8px 20px;
    font-weight: bold;
    font-size: 22px;
    border-radius: 25px;
    background: linear-gradient(to right, #2F4583, rgba(47, 69, 131, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main content */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.moments-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #142259;
    margin-bottom: 22px;
    text-align: left;
}

/* Subtle decorative background for the moments section */
.edex-main {
    background-image: url('../images/bluedotsbg.webp');
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
}

.video-frame {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.video-inner {
    width: 70%;
    background: #2f4f8a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-inner iframe { width: 100%; height: 360px; border: 0; }

/* YouTube placeholder (click to load iframe) */
.yt-placeholder { position: relative; width: 100%; cursor: pointer; display: block; }
.video-inner .yt-thumb { width: 100%; height: 360px; object-fit: cover; display: block; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; background: rgba(13,33,84,0.6); border-radius: 50%; }
.yt-play::after { content: ''; position: absolute; left: 40%; top: 34%; width: 0; height: 0; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }

.partners { margin-top: 20px; }
.partners-row { display: flex; gap: 20px; align-items: flex-start; }
.partners-column { flex: 1; }
.partners-column h4 {
    font-family:  'Arial Bold';
    color: #1E2F5B;
    font-size: 1.4rem;
    margin-bottom: 30px;
    padding-bottom: 8px;
    font-weight: bold;
    letter-spacing:1px;
    border-bottom: 1px solid #707070;
}




.partner-logos { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.logo-placeholder { min-width: 80px; height: 48px; background: #f5f5f5; color: #222; display: flex; align-items: center; justify-content: center; border-radius: 4px; padding: 6px; font-weight: 700; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }

/* Partner logo images sizing and alignment */
.partner-logo { max-height: 64px; width: auto; display: block; object-fit: contain; padding: 6px 8px; }
.partners-column.collaborator .partner-logo { max-height: 56px; width: 120px; }
.partner-logos img { vertical-align: middle; }

/* Increase WholeSchools logo size by 30% */
.organizer-logos .partner-logo { max-height: 90px; }

/* Increase GPTS logo size by 30% */
.sponsors .partner-logo:first-child { max-height: 83.2px; }

/* Collaborator logos layout: 4 columns (two rows) on wide screens */
.collaborator-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: center; }
.collaborator-logos img { justify-self: center; }

/* Center all partner column titles */
.partners-column h4 { text-align: center; }

/* Responsive tweaks */
@media (max-width: 900px) {
    .hero-banner { min-height: 250px; padding: 20px 15px; }
    .video-inner { width: 100%; }
    .partners-row { flex-direction: column; gap: 30px; }
    .banner-logo { height: 56px; }
    .event-ended { font-size: 16px; }
    .banner-container { font-size: 18px; padding: 6px 16px; }
    .logo-container img { max-height: 70px; }

    /* Fix banner positioning on mobile */
    .banner-left {
        position: static;
        left: auto;
        bottom: auto;
        padding-left: 0;
        margin-top: 20px;
        align-self: center;
    }
    .banner-top-links {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        margin-top: 40px;
        margin-bottom: 20px;
        align-self: center;
    }

    /* reduce partner logo sizes on narrow screens */
    .partner-logo { max-height: 48px; padding: 4px 6px; }
    .partners-column.collaborator .partner-logo { width: 100px; max-height: 44px; }
    .collaborator-logos { grid-template-columns: repeat(2, 1fr); }
    .sponsors .partner-logo:first-child { max-height: 62px; }
    .organizer-logos .partner-logo { max-height: 70px; }

    /* Make banner flex column on mobile */
    .hero-banner { flex-direction: column; align-items: center; text-align: center; }

    /* Adjust moments title */
    .moments-title { font-size: 1.8rem; text-align: center; }

    /* Better spacing for partners section */
    .partners { margin-top: 30px; text-align: center; }
    .partners-row { align-items: center; }
    .partners-column {
        margin-bottom: 25px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* Center all logos on mobile */
    .partner-logos {
        display: flex !important;
        justify-content: center !important;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
    }
    .collaborator-logos {
        display: grid !important;
        justify-items: center !important;
        justify-content: center !important;
        width: 100%;
    }
}

/* Tablet responsiveness */
@media (max-width: 768px) {
    .hero-banner { min-height: 200px; padding: 15px 10px; }
    .banner-top-links { padding: 2px 20px; }
    .edex-link { font-size: 14px; padding: 5px 12px; }
    .moments-title { font-size: 1.6rem; text-align: center; }
    .partners-column h4 { font-size: 17px; text-align: center; }
    .video-inner { background: #2f4f8a; border-radius: 8px; overflow: hidden; }
    .partners-column { text-align: center; }
}

/* Mobile phones */
@media (max-width: 480px) {
    .hero-banner { min-height: 180px; padding: 12px 8px; }
    .banner-top-links { padding: 2px 15px; }
    .edex-link { font-size: 12px; padding: 4px 10px; }
    .banner-logo { height: 48px; }
    .event-ended { font-size: 14px; }
    .moments-title { font-size: 1.4rem; margin-bottom: 18px; text-align: center; }
    .partners-column h4 { font-size: 16px; margin-bottom: 10px; text-align: center; }
    .partner-logo { max-height: 40px; padding: 3px 5px; }
    .partners-column.collaborator .partner-logo { width: 85px; max-height: 38px; }
    .sponsors .partner-logo:first-child { max-height: 52px; }
    .organizer-logos .partner-logo { max-height: 58px; }
    .container { padding: 0 15px; }
    .partners-column { text-align: center; }
}
