/* ========================================= */
/* VOYAGE HERO STYLES                        */
/* ========================================= */
.voyage-hero-section {
    background-color: #050505 !important; /* Dark background */
    min-height: 650px !important; /* Taller height for elegance */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* --- DYNAMIC BACKGROUND --- */
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.4); /* Darker and more blur */
    transform: scale(1.2); 
    transition: background-image 0.6s ease-in-out;
    z-index: 0;
}

.dark-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* Stronger overlay so text pops */
    z-index: 1;
}

/* --- CONTAINER --- */
.voyage-container {
    width: 100%;
    max-width: 1200px;
    height: 550px !important;
    position: relative;
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.voyage-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* --- THE CARD --- */
.voyage-card {
    position: absolute;
    width: 340px;  /* Slightly wider */
    height: 500px; /* Taller for portrait look */
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    /* Default State (Hidden) */
    opacity: 0;
    transform: scale(0.6) translateY(50px);
}

.voyage-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Dark by default */
    transition: filter 0.7s;
}

/* --- CARD TEXT OVERLAY --- */
.card-content {
    position: absolute;
    bottom: 50px;
    left: 20px;
    right: 20px;
    text-align: center;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    z-index: 20;
}

.card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.card-content .separator {
    width: 50px;
    height: 3px;
    background: #fff;
    margin: 15px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.card-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* --- STATES (The 3D Magic) --- */

/* 1. CENTER (Active) */
.voyage-card.active {
    transform: translateX(0) scale(1.1) rotateY(0deg);
    z-index: 20;
    opacity: 1;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
}
.voyage-card.active img {
    filter: brightness(1.1); /* Brighter than normal */
}
.voyage-card.active .card-content {
    opacity: 1;
    transform: translateY(0);
}

/* 2. LEFT SIBLING (Folded Wing) */
.voyage-card.prev {
    transform: translateX(-360px) scale(0.9) rotateY(30deg); 
    z-index: 10;
    opacity: 0.6; /* Faded */
}
.voyage-card.prev img {
    filter: brightness(0.3); /* Very dark */
}

/* 3. RIGHT SIBLING (Folded Wing) */
.voyage-card.next {
    transform: translateX(360px) scale(0.9) rotateY(-30deg);
    z-index: 10;
    opacity: 0.6; /* Faded */
}
.voyage-card.next img {
    filter: brightness(0.3); /* Very dark */
}

/* 4. HIDDEN OTHERS */
.voyage-card.hidden-left {
    transform: translateX(-700px) scale(0.6) rotateY(45deg);
    opacity: 0;
    z-index: 0;
}
.voyage-card.hidden-right {
    transform: translateX(700px) scale(0.6) rotateY(-45deg);
    opacity: 0;
    z-index: 0;
}

/* --- NAV BUTTONS --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-btn:hover { 
    background: white; 
    color: black; 
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}
.prev-btn { left: 5%; }
.next-btn { right: 5%; }

/* ========================================= */
/* TRUE BENTO GRID STYLES                    */
/* ========================================= */
.bento-section {
    padding: 80px 5%;
    background: #f4f7f6;
}

.bento-grid {
    display: grid;
    /* Create a grid with flexible columns (roughly 250px wide each) */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Auto-rows ensures empty spots are filled nicely */
    grid-auto-rows: 250px; 
    gap: 15px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    grid-auto-flow: dense; /* Crucial: This packs the grid tightly to remove gaps */
}
.bento-section h3 { text-align: center;  font-size: 36px; font-weight: 900; color: #051937; margin-bottom: 50px; /* Adds space between title and cards */ position: relative; display: block; /* Ensures it takes full width to center properly */ }
.bento-section h3::after {content: ''; display: block; width: 60px; height: 4px; background: #00b4d8; margin: 10px auto 0 auto; /* 'auto' on left/right centers the line */ border-radius: 2px; }
/* --- THE CARD --- */
.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-5px); /* Lift effect */
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-item:hover img {
    transform: scale(1.1); /* Zoom effect */
}

/* --- SIZING CLASSES (The Magic) --- */

/* Wide Item (Spans 2 columns) */
.span-2 {
    grid-column: span 2;
}

/* Tall Item (Spans 2 rows) */
.row-2 {
    grid-row: span 2;
}

/* ========================================= */
/* MOBILE BENTO FIX (Keep the irregular grid)*/
/* ========================================= */
@media (max-width: 768px) {
    .bento-grid {
        /* Force 2 columns on mobile so we can have Big vs Small items */
        grid-template-columns: repeat(2, 1fr) !important; 
        
        /* Make rows slightly shorter on mobile so tall images fit better */
        grid-auto-rows: 180px !important; 
        
        gap: 10px; /* Smaller gap for mobile screens */
    }

    /* 1. WIDE ITEMS (Span-2) */
    /* These will stretch across the full screen width (2 columns) */
    .span-2 {
        grid-column: span 2 !important;
    }

    /* 2. TALL ITEMS (Row-2) */
    /* Keep them tall! They will be skinny but tall (1 column x 2 rows) */
    .row-2 {
        grid-row: span 2 !important;
        grid-column: span 1 !important;
    }
    
    /* 3. BIG BOXES (Span-2 AND Row-2) */
    /* If an item has BOTH classes, it stays big and square */
    .span-2.row-2 {
        grid-column: span 2 !important;
        grid-row: span 2 !important;
    }
    /* ========================================= */
/* MOBILE VOYAGE FIX (See the full 3D effect)*/
/* ========================================= */

    
    /* 1. Reduce Container Height */
    .voyage-hero-section {
        min-height: 500px !important;
    }
    .voyage-container {
        height: 450px !important;
    }

    /* 2. Shrink the Card Size significantly */
    .voyage-card {
        width: 200px; /* Was 340px - Shrinking this allows side cards to fit */
        height: 320px;
    }

    /* 3. Adjust Text Size for smaller cards */
    .card-content h3 {
        font-size: 16px; /* Smaller text */
        letter-spacing: 1px;
    }
    .card-content p {
        font-size: 12px;
    }
    .card-content {
        bottom: 20px; /* Move text up a bit */
    }

    /* --- THE 3D TRANSFORMS FOR MOBILE --- */
    
    /* Active Card: Keep it centered but simpler */
    .voyage-card.active {
        transform: translateX(0) scale(1) rotateY(0deg);
        z-index: 20;
    }

    /* Left Card: Pull it much closer (-160px instead of -360px) */
    .voyage-card.prev {
        transform: translateX(-160px) scale(0.85) rotateY(30deg);
        opacity: 0.8; /* Make side cards brighter so people notice them */
        z-index: 10;
    }

    /* Right Card: Pull it much closer (160px instead of 360px) */
    .voyage-card.next {
        transform: translateX(160px) scale(0.85) rotateY(-30deg);
        opacity: 0.8;
        z-index: 10;
    }

    /* Hidden Cards: Keep them out of the way */
    .voyage-card.hidden-left {
        transform: translateX(-250px) scale(0.5);
    }
    .voyage-card.hidden-right {
        transform: translateX(250px) scale(0.5);
    }

    /* 4. Fix Buttons */
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        background: rgba(0,0,0,0.5); /* Darker background to see arrows better */
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }

}

/* --- OVERLAY & TEXT --- */
.bento-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px;
}

.bento-item:hover .bento-overlay {
    opacity: 1;
}

.bento-text h4 {
    color: white;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.bento-text p {
    color: #ddd;
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
}

.bento-btn {
    width: 40px;
    height: 40px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: 0.2s;
}

.bento-btn:hover {
    background: #d32f2f; /* Red Theme */
    color: white;
}