}@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');

img {
    display: block;
    vertical-align: middle;
}

.video-description, .podium-label, .hero-text, .nav-menu {
    line-height: 1.6;
    font-size: 16px; /* or your preferred size */
}

* {
   
    box-sizing: border-box;
    font-family: Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

img {
    display: block;
    width: 100%;
    height: auto;
}



body.fade-in {
    opacity: 1;
}
.story-navbar {
    width: 100%;
    padding: 20px 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff9e6;
    position: sticky; /* sticks to top */
    top: 0;
    z-index: 30;
}

/* Logo */
.nav-logo {
    width: 70px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.1);
}

/* Menu */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* Menu links */
.nav-btn {
    text-decoration: none;
    color: #d62f56;              
    font-weight: 700;
    padding: 8px 25px;
    border: 2px solid #d62f56;    /* Default Pink Border */
    border-radius: 50px;
    transition: all 0.3s ease;
}
.nav-btn:hover {
    background-color: #d62f56;    /* Changes to Yellow on hover */
    border-color: #d62f56;        /* Border matches yellow */
    color: #fff;                  /* White text for contrast */
}
.nav-btn.active {
    color: #f5d34b;               /* Yellow Text */
    background-color: transparent; 
    border-color: #f5d34b;        /* Yellow Border */
}

.nav-btn.active:hover {
    background-color: #f5d34b;    /* Solid yellow when hovering active link */
    color: #fff;
}

@media screen and (max-width: 768px) {

    /* --- 1. NAVBAR (LOGO TENGAH & NIPIS) --- */
    .story-navbar {
        height: 60px; /* Nipis & Kemas */
        padding: 0 20px;
        
        display: flex;
        align-items: center; 
        justify-content: center; /* Center logo secara melintang */
        
        position: relative; 
        
        /* Background Kaca */
        background-color: rgba(254, 250, 222, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    /* Logo (Duduk betul-betul tengah) */
    .nav-logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        height: 100%;
    }

    .nav-logo {
        height: 45px; 
        width: auto;
    }

    /* Hamburger (Duduk KANAN) */
    .hamburger {
        position: absolute;
        right: 20px; /* Rapatkan ke kanan */
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #c32c53; /* Warna Pink */
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    /* --- 2. MENU DESIGN BARU (BACKGROUND CERAH & TULISAN BESAR) --- */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        
        /* Guna background Cream/Putih (Bukan lagi gradient gelap) */
        background-color: rgba(254, 250, 222, 0.98); 
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px; /* Jarak luas */
        
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 998;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    /* --- 3. STYLE TULISAN (YANG LAWA TU) --- */
    /* Kita reset button style lama dan masukkan style baru */
    .nav-btn {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: auto !important;
        padding: 0 !important;
        
        /* Typography Besar & Tebal */
        font-family: 'Lexend Deca', sans-serif;
        font-size: 32px;  /* Saiz Besar */
        font-weight: 800; /* Sangat Tebal */
        color: #c32c53;   /* Warna Pink Gelap */
        text-transform: uppercase;
        letter-spacing: 2px;
        position: relative;
    }

    /* Garis Kuning Bawah (Animasi) */
    .nav-btn::after {
        content: '';
        display: block;
        width: 0;
        height: 6px;
        background: #f5d34b; /* Kuning */
        transition: width 0.3s;
        margin: 5px auto 0;
        border-radius: 4px;
    }

    .nav-btn:hover::after,
    .nav-btn.active::after {
        width: 100%;
    }
    
    .nav-menu li {
        list-style: none;
    }

    /* --- 4. ANIMASI HAMBURGER --- */
    /* Bila menu buka, hamburger jadi 'X' tapi kekal warna PINK (sebab background cerah) */
    .hamburger.active .bar { 
        background-color: #c32c53; /* Kekal pink */
    } 
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

.video-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 20px auto 100px; /* Top: 20px, Bottom: 100px */
    padding: 0 20px;
}

/* 2. BUTTON FIX: The wrapper MUST be relative so the button knows where 'center' is */
.media-wrapper {
    position: relative; 
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

/* Video Box Adjustments - REMOVED the 850px margin */
.video-container {
    flex: 1;
    max-width: 600px;
}

.story-image {
    width: 100%;
    display: block;
    transition: filter 0.4s ease;
}

/* --- PLAY BUTTON (Should now appear centered on the image) --- */
.play-btn-overlay {
    position: absolute; /* Relative to .media-wrapper now */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;  
    height: 90px;
    font-size: 32px; 
    background-color: #ffffff;
    color: #c42754;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    pointer-events: none; /* Allows click to pass through to the link */
}

/* --- HOVER ANIMATIONS --- */
.world-link:hover .play-btn-overlay {
    background-color: #c42754;
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.1);
}

.world-link:hover .story-image {
    filter: brightness(0.8); /* Darken slightly to make white button pop */
}

/* Description - REMOVED the 850px margin */
.video-description {
    flex: 1;
    max-width: 500px;
    /* This applies the Lexend Deca font */
    font-family: 'Lexend Deca', sans-serif; 
    text-align: justify;
    color: #d62f56;
    line-height: 1.6; /* Adds breathing room between lines */
	font-size: 20px;
}

.video-description p {
    /* Ensure the paragraph inherits the font and color */
    font-family: inherit;
    color: inherit;
    margin: 0;
}



/* ===== LINKS TRANSITION ===== */
a {
    transition: color 0.3s ease, background-color 0.3s ease;
}

:root {
    /* ADJUST THIS NUMBER TO CHANGE ALL CARDS AT ONCE */
    --card-width: 320px; 
    --card-height: 220px;
}

.crew-section {
    max-width: 1100px;
    margin: 60px auto;
    text-align: center;
}

.main-title-container {
    margin-bottom: 50px;
}

.title-img-main {
    max-width: 600px;
    width: 90%;
	margin-left: 250px;
}

/* --- THE FIX FOR THE LEADER --- */
.crew-leader {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

/* This ensures the leader card behaves exactly like a grid item */
.crew-leader .crew-card {
    width: var(--card-width);
}

.crew-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
    padding: 0 20px;
    /* This centers the 3-column grid on the page */
    justify-items: center; 
}

/* --- UNIFIED CARD STYLING --- */
.crew-card {
    width: 100%;
    max-width: var(--card-width);
}
/* Ensure the image looks interactive */
.img-container {
    cursor: pointer;
    overflow: hidden;
    border-radius: 20px;
}

.img-container:hover .member-img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* THE WRAPPER: Makes the white border follow the picture size */
.lightbox-image-wrapper {
    position: relative;
    display: flex;
    width: fit-content;
    height: fit-content;
    border: 5px solid #ffffff; /* The white outline */
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    background-color: white;
    overflow: hidden;
    margin: auto;
}

.lightbox-content {
    display: block;
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
}

/* Ensure the lightbox container uses flex to center everything */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}
.member-img {
    width: 100%;
    height: var(--card-height); 
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
    display: block;
	cursor: pointer;
    transition: transform 0.3s ease;
}
.member-img:hover {
    transform: scale(1.02); /* Slight zoom on hover */
}

/* BASE STYLE: This prevents the overlapping */
.title-img-sub {
    /* Set a fixed height so they all sit on the same line */
    height: 45px; 
    width: auto;
    object-fit: contain;
    
    /* Center it and keep it close to the photo */
    margin: 8px auto 0 auto; 
    display: block;
    transition: transform 0.3s ease;
}

/* INDIVIDUAL CONTROLS: Fine-tuning based on your design */

/* Keep the leader title slightly taller */
.title-highcouncil { height: 50px; } 

/* Make these specific titles slightly wider to be readable */
.title-event { width: 200px; margin-left: 60px; margin-top: 10px; } 
.title-media { width: 180px; } 

/* Short titles keep their auto width from the height above */
.title-website { width: auto; }
.title-design { width: auto; }
.title-activity { width: auto; }
.title-sponsorship { width: auto; }

/* --- Hover Effect --- */
.crew-card:hover .title-img-sub {
    transform: scale(1.08);
}
/* --- Hover Effect --- */
.crew-card:hover .title-img-sub {
    transform: scale(1.05);
}
.crew-card:hover .member-img {
    transform: translateY(-8px);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .crew-grid { 
        grid-template-columns: 1fr; 
    }
}

/* LIGHTBOX CONTAINER */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#crew-lightbox-img {
    /* Keeps the image at its natural proportions */
    width: auto;
    height: auto;
    
    /* Ensures it never gets bigger than the screen */
    max-width: 90%;
    max-height: 85vh; /* vh stands for viewport height */
    
    /* The styling you want */
    border: 4px solid white;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    
    /* Prevents the 'stretched' look */
    object-fit: contain; 
    display: block;
    background-color: #000;
}

/* THE CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 20px;                 /* Distance from top */
    right: 30px;                /* Distance from right */
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
    transition: 0.3s ease;
    user-select: none;
}

.close-btn:hover {
    color: #d62f56;            /* Turns pink on hover */
    transform: scale(1.1);
}
/* --- Flipbook Title Image Styling --- */
.flipbook-title-wrapper {
    text-align: center; /* Centers the image */
    width: 100%;
    margin-bottom: 30px; /* Space between title image and the book */
}

.flipbook-title-img {
    /* ADJUST THIS TO CHANGE SIZE */
    width: 500px; 
    max-width: 90%; /* Ensures it doesn't break on mobile */
    height: auto;   /* Keeps proportions correct */
    display: inline-block;
}

/* --- Responsive Tweak --- */
@media (max-width: 768px) {
    .flipbook-title-img {
        width: 300px; /* Smaller title for mobile phones */
    }
}
/* Container to center and size the book */
.flipbook-container {
    max-width: 1000px; 
    margin: 60px auto; /* Clean spacing: 60px top/bottom, auto left/right */
	padding: 0 20px;}

/* The frame that makes it look "nice" */
.flipbook-frame {
    position: relative;
    padding-bottom: 65%; /* This maintains a book-like aspect ratio */
    height: 0;
    overflow: hidden;
    border: 8px solid #d62f56; /* Your D.I.V.E. Pink */
    border-radius: 30px; /* Matches your crew/video rounded corners */
    background-color: #000; /* Looks better while loading */
    box-shadow: 0 15px 35px rgba(214, 47, 86, 0.2); /* Soft pink shadow */
}

.flipbook-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-section {
    position: relative;
    width: 100%;
    /* height: 1400px;  <-- REMOVE THIS */
    padding: 60px 0;    /* Adds consistent space top and bottom */
    text-align: center;
    background-color: #fff9e6;
}

/* Update the Title */
.gallery-title {
    position: relative; /* Change from absolute to relative */
    top: 0;             /* Reset manual top */
    left: 0;            /* Reset manual left */
    transform: none;    /* Reset transform */
    margin: 0 auto 40px auto; /* Centers the image with bottom spacing */
    width: 700px;
    max-width: 90%;
    display: block;
}

.gallery-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 clean columns */
    gap: 30px; /* Space between the images */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* LIGHTBOX OVERLAY */
.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

/* THE WRAPPER - This is the hit-box for the button */
.close-btn-wrapper {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10001;
    
    /* ANIMATION */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* REMOVE GHOSTS: These lines kill any extra X icons */
    font-size: 0 !important;      /* Kills the &times; text if it exists */
    color: transparent !important;
    background: none !important;
}

/* Kills any X made with pseudo-elements from previous code */
.close-btn-wrapper::before,
.close-btn-wrapper::after {
    content: none !important;
    display: none !important;
}

/* THE TWO CLEAN LINES (The only X you will see) */
.x-line {
    display: block;
    position: absolute;
    height: 4px; /* Thickness */
    width: 35px; /* Length */
    background-color: #fff;
    border-radius: 10px;
    top: 50%;
    left: 50%;
}

/* Cross them perfectly in the center */
.x-line:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.x-line:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* --- THE HOVER ANIMATION --- */
.close-btn-wrapper:hover {
    transform: rotate(180deg) scale(1.2);
}

.close-btn-wrapper:hover .x-line {
    background-color: #d13d66; /* Changes to your theme pink */
}
/* --- FIXING THE IMAGE --- */
.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 15px;
    /* Ensures the image doesn't get clicked and close the lightbox */
    pointer-events: auto; 
}
/* 1. Set up the container to force 3 columns */
.gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 30px; /* Space between the posters */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 2. Style the boxes */
.gallery-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Keeps them square like posters */
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 3. Ensure images fit perfectly */
.gallery-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 4. Optional: Add a hover effect to make it feel interactive */
.gallery-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(196, 39, 84, 0.3);
}

/* 5. MOBILE VIEW: Make it 1 column on small screens so images aren't tiny */
@media (max-width: 768px) {
    .gallery-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Hide nav bar on desktop */
.gallery-nav {
    display: none !important;
    visibility: hidden !important;
}
.gallery-nav button {
    display: none !important;
    visibility: hidden !important;
}

:root {
    --pink: #c42754;
    --yellow-active: #f5d34b;
    --cream-bg: #fff9e6;
}

body {
    background-color: var(--cream-bg);
    margin: 0;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

/* Rounded Navigation Bar */
.event-bar {
    display: flex;
    border: 2.5px solid var(--pink);
    border-radius: 30px; /* High rounding for the pill shape */
    background: #fefade;
    overflow: hidden;
    margin-bottom: -2.5px; /* Pulls the pink card up to meet the tab */
    position: relative;
    z-index: 2;
}

.event-tab {
    flex: 1;
    padding: 20px 10px;
    text-align: center;
    color: var(--pink);
    font-weight: bold;
    cursor: pointer;
    border-right: 2.5px solid var(--pink);
    transition: all 0.3s ease;
}

.event-tab:last-child {
    border-right: none;
	
}

/* Active State Colors */
.event-tab.active {
    background-color: var(--cream-bg);
    color: var(--yellow-active);
}
.tab-content {
    display: none; /* Hidden by default */
    width: 100%;
    margin: 0;
    padding: 0;
}
.tab-content.active {
    display: block; /* Shown when tab is clicked */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-pink-card {
    background-color: #c42754;
    border-radius: 25px;
    margin-top: 3px;
    padding: 50px;
    color: white;
    min-height: 300px; 
    display: flex;
    align-items: center;
}

/* Flexbox layout to align img and text */
.hero-inner {
    display: flex;
    align-items: center; /* Vertically centers the text next to the image */
    justify-content: space-between;
    gap: 30px; /* Space between image and text */
}

/* ADJUSTABLE: Change the width percentage here to resize the image */
.hero-img-container {
    flex: 0 0 35%; /* The image will take up exactly 35% of the width */
    max-width: 500px; /* Prevents it from getting too huge on big screens */
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    object-fit: cover;
}

/* The text container takes up the remaining space */
.hero-text-container {
    flex: 1;
}

.hero-text {
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0;
	text-align: justify;
	width: 550px;
	margin-left: 110px;
	width: 700px;
}

/* Helper Class: Image on the Right */
.hero-inner.reverse {
    flex-direction: row-reverse;
}

/* Responsive: Stack them on mobile */
@media (max-width: 768px) {
    .hero-inner, .hero-inner.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-img-container {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 20px;
    }
}
/* --- Trash2Cash Section Styling --- */
.winnert2c-container {
    padding: 60px 20px;
    background-color: #fefade; /* Match reference background */
    text-align: center;
}

/* Center and Resize Title */
.winnert2c-title-wrapper {
    margin-bottom: 40px;
    text-align: center;
}

.winnert2c-title-img {
    max-width: 800px; /* Large title as seen in reference */
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Grid Layout (Centers incomplete rows automatically) */
.podium-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers cards in the second row */
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Styling */
.podium-card {
    flex: 0 1 350px; /* Width to fit 3 per row */
    background-color: #c42754; /* Pink background */
    padding: 15px;
    border-radius: 20px; /* Rounded corners */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.podium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Image Styling */
.podium-img-wrapper img {
    width: 100%;
    border-radius: 12px; /* Inner rounded corners */
    aspect-ratio: 16 / 10; /* Rectangular aspect ratio */
    object-fit: cover;
    display: block;
}

/* Label Styling */
.podium-label {
    color: white; /* White text on pink */
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Keeps labels aligned */
}
/* Lightbox Styling */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

#lightbox-img {
    max-width: 85%;
    max-height: 85%;
    border: 3px solid white;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .podium-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .podium-grid { grid-template-columns: 1fr; }
}
/* Container styling */
.gallery-section {
    padding: 40px 10%;
    text-align: center;
    background-color: #fff9e6; /* Matches your cream background */
}
.section-heading {
	color: #c52b52;
}
.section-subheading {
	color: #c52b52;
}

/* --- UPDATED GALLERY GRID --- */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    grid-auto-rows: 250px; /* Increased height for better visibility */
    gap: 15px;
    max-width: 1200px;
    margin: 40px auto;
    grid-auto-flow: dense; /* Vital: fills gaps automatically */
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.section-heading {
	margin-bottom: 10px;
}
/* Ensure images fill their container without stretching */
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.5s ease;
}

/* --- SPANNING LOGIC --- */
.tall { 
    grid-row: span 2; 
}

.wide { 
    grid-column: span 2; 
}

/* --- HOVER EFFECTS --- */
.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(196, 39, 84, 0.3);
    z-index: 10;
}

.grid-item:hover img {
    transform: scale(1.08);
}
.podium-grid-penghargaan {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 25px; /* Slightly increased for better breathing room */
    max-width: 1200px;
    margin: 40px auto; 
}

.podium-card-penghargaan {
    flex: 0 1 320px;
    background-color: #c52b52; /* Your specific pink color */
    border-radius: 20px;       /* Rounded corners for the box */
    padding: 15px;             /* Space between pink edge and image */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;        /* Centers the label text */
}

.podium-card-penghargaan:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.podium-img-wrapper-penghargaan img {
    width: 100%;
    border-radius: 12px;       /* Inner rounding for the photo */
    display: block;
    margin-bottom: 12px;       /* Space between photo and text */
}

.podium-label-penghargaan {
    color: white;              /* Makes text readable against pink */
    font-weight: bold;
    font-size: 1.1rem;
    margin: 5px 0;
}
.podium-grid-sekolah {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 25px; /* Slightly increased for better breathing room */
    max-width: 1200px;
    margin: 40px auto; 
}

.podium-card-sekolah {
    flex: 0 1 320px;
    background-color: #c52b52; /* Your specific pink color */
    border-radius: 20px;       /* Rounded corners for the box */
    padding: 15px;             /* Space between pink edge and image */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;        /* Centers the label text */
}

.podium-card-sekolah:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.podium-img-wrapper-sekolah img {
    width: 100%;
    border-radius: 12px;       /* Inner rounding for the photo */
    display: block;
    margin-bottom: 12px;       /* Space between photo and text */
}
.podium-label {
	text-align: center;
}
.podium-label-sekolah {
    color: white;              /* Makes text readable against pink */
    font-weight: bold;
    font-size: 1.1rem;
    margin: 5px 0;
}
/* --- LIGHTBOX IMAGE FIX (No Stretching) --- */
.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Keeps original landscape/portrait aspect ratio */
    border-radius: 10px;
    border: 4px solid white;
}

/* --- Center and Resize Titles --- */
.appreciation-title-wrapper, 
.recipient-title-wrapper {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
	margin-top: 70px;
}

/* Match size to reference images 2 and 3 */
.appreciation-title-img, 
.recipient-title-img {
    max-width: 600px; /* Increased to match large titles in reference */
    width: 90%;      /* Responsive sizing */
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
}

.section-subheading-appreciation, 
.section-subheading-recipient {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
}

/* --- Grid Positioning (3 on top, 2 centered below) --- */
.podium-grid-penghargaan, 
.podium-grid-sekolah {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers the 2nd row items */
    gap: 20px;
    max-width: 1150px;       /* Constrains width to force 3 per row */
    margin: 30px auto;
}

/* --- Card Sizing --- */
.podium-card-penghargaan, 
.podium-card-sekolah {
    flex: 0 1 340px;         /* Specific width to fit 3 in the max-width container */
    background-color: #c42754;
    padding: 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.podium-card-penghargaan:hover, 
.podium-card-sekolah:hover {
    transform: translateY(-8px);
}

.podium-img-wrapper img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 16 / 11;   /* Matches the rectangular look in screenshots */
    object-fit: cover;
}

.podium-label {
    color: white;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 12px;
    text-align: center;
    min-height: 3em;         /* Keeps all boxes the same height */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Mobile Tweak: Drop to 2 columns so it's not too cramped */
@media (max-width: 768px) {
    .memory-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}
.year1-header {text-align: center;margin-bottom: 10px;}
.year1-title-img {max-width: 300px; height: auto;animation: fadeIn 1s ease-in; margin-left: 80px; margin-bottom: -50px; }

.year2-header {text-align: center;margin-bottom: 10px;}
.year2-title-img {max-width: 300px; height: auto;animation: fadeIn 1s ease-in; margin-left: 80px; margin-top: 80px; margin-bottom: -50px;}

.year3-header {text-align: center;margin-bottom: 10px;}
.year3-title-img {max-width: 300px; height: auto;animation: fadeIn 1s ease-in; margin-left: 80px;margin-top: 80px; margin-bottom: -50px;}

.year4-header {text-align: center;margin-bottom: 10px;}
.year4-title-img {max-width: 300px; height: auto;animation: fadeIn 1s ease-in; margin-left: 80px; margin-bottom: -50px;}

.year5-header {text-align: center;margin-bottom: 10px;}
.year5-title-img {max-width: 300px; height: auto;animation: fadeIn 1s ease-in; margin-left: 80px;margin-top: 80px; margin-bottom: -50px;}

.year6-header {text-align: center;margin-bottom: 10px;}
.year6-title-img {max-width: 300px; height: auto;animation: fadeIn 1s ease-in; margin-left: 80px;margin-top: 80px; margin-bottom: -50px;}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Tabs Styling */
.tahap-tabs {
    text-align: center;
    margin-bottom: 40px;
	margin-top: 40px;
}

.tahap-btn {
    padding: 10px 30px;
    border: 2px solid #c42754;
    background: transparent;
    color: #c42754;
    border-radius: 50px; /* Cylindrical shape */
    font-weight: bold;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.tahap-btn.active {
    background-color: #c42754;
    color: white;
}
.podium-wrapper {
    width: 100%;
    margin-top: 20px;
}

.winner-header {
    text-align: center;
    margin-bottom: 30px;
}
.winner-title {
    font-size: 5rem;
    color: #c42754;
    font-family: 'Arial Black', sans-serif;
    -webkit-text-stroke: 2px #fdf3d0; /* Optional: outline effect from your image */
    margin-left: 5%;
}
.winner-title-img {
    max-width: 250px; /* Adjust based on your image size */
    height: auto;
	margin-left: 100px;
	margin-bottom: -100px;

}
.podium-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    height: 600px; /* Keeps the floor level consistent */
}

.rise-up {
    animation: thermostatGrow 1s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

/* Ensure boxes are hidden before animation triggers */
.podium-box {
    background-color: #c42754;
    border-radius: 25px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transform-origin: bottom; 
    transform: scaleY(0); 
    opacity: 0;
}

@keyframes thermostatGrow {
    from {
        transform: scaleY(0);
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* 3. Staggered Delays (One by one) */
.third-place .podium-box { height: 350px; width: 400px; animation-delay: 0.1s; }
.second-place .podium-box { height: 400px; width: 400px; animation-delay: 0.3s; }
.first-place .podium-box { height: 450px; width: 400px; animation-delay: 0.5s; }

.podium-img-wrapper img {
    width: 100%;
    border-radius: 15px;
    object-fit: contain;
    height: 90%; /* Adjust based on box height */
}

.podium-text {
    color: white;
    font-weight: bold;
    margin-top: auto;
    padding-bottom: 10px;
}

/* Scroll Animation */
.animate-up {
    animation: slideUp 1.2s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;        /* distance from bottom */
    right: 30px;         /* distance from right */
    width: 50px;
    height: 50px;
    background-color: #c32c53;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 999;
}


/* ===== ARROW (CHEVRON, NO TAIL) ===== */
.scroll-top span {
    width: 14px;
    height: 14px;
    border-left: 4px solid #fefade;
    border-top: 4px solid #fefade;
    transform: rotate(45deg);
    margin-top: 4px; /* optical centering */
}

/* ===== HOVER EFFECT (OPTIONAL) ===== */
.scroll-top:hover {
    transform: translateY(-4px);
    transition: 0.3s ease;
}

.collaboration-section {
    width: 100%;
    padding: 20px 40px; /* Space around the pink bar */
    background-color: #fefade; /* Matches page background */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* THE PINK "PILL" BOX */
.collab-box {
    position: relative;
    width: 250%;
    max-width: 1485px; /* Adjust based on your container width */
    height: 120px;
    background-color: #c42754;
    border: 2px solid #fefade; /* Thin light border like the image */
    border-radius: 30px; /* Rounded corners for the pill look */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

/* CONTAINER FOR LOGOS (Inside the pink box) */
.footer-content-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Left side (Socials) */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center; /* Keeps icons vertically centered */
}

.social-icons img {
    width: 60px;
    height: auto;
    display: block;
    margin-top: 30px; /* Removed fixed top margin to let flexbox handle it */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    cursor: pointer;
}

/* Hover Effect: Icon grows and brightens */
.social-icons a:hover img {
    transform: scale(1.2); /* Grows 20% larger */
    filter: brightness(1.2);
}

/* Click Effect: Icon shrinks slightly when pressed */
.social-icons a:active img {
    transform: scale(0.9);
    transition: transform 0.1s;
}
/* Right side (Collab Text + Logos) */
.collab-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Keeps everything aligned to the right */
    gap: 12px;             /* Space between the title image and the logos */
}
.collab-tagline {
    font-family: 'NegritaPro', sans-serif;
    color: #fff;
    font-size: 18px;
    margin: 0;
}
.collab-title-img {
    width: 200px;          /* Adjust this width based on your image size */
    height: auto;
    display: block;
    margin-bottom: -10px;    /* Extra fine-tuning for the gap */
}

.partner-logos {
    display: flex;
    gap: 15px;
    align-items: center;
}

.partner-logos img {
    height: 60px;
    width: auto;
}

/* --- COPYRIGHT FOOTER --- */
.site-footer {
    width: 100%;
    background-color: transparent;
    padding: 20px 0;
    text-align: center;
	margin-bottom: -30px;
}

.site-footer p {
    color: #c42754; /* Pink text on yellow background */
    font-size: 16px;
    font-weight: 500px;
	margin-top: 5px;
}