@import url("../global.css");

/* =========================================
   1. DESKTOP LAYOUT (Grid)
   ========================================= */
.main-container {
    display: grid;
    width: 100%;
    max-width: 1200px;
    height: 90vh; /* Match other pages */
    gap: 20px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;

    /* Fixed Row Heights */
    grid-template-rows: 80px 2fr 1.2fr 80px; 
    grid-template-columns: 1fr 1fr 1fr;
    
    grid-template-areas: 
        "header header header"
        "hero   hero   hero"
        "img    miss   feat"  /* Left | Center | Right */
        "footer footer footer";
}



/* --- HERO SECTION --- */
.story-hero-card {
    grid-area: hero;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background-image: url('../assets/images/bg-3.png');
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* Optional: Add a background image if you have one for story */
    /* background-image: url('../assets/images/story-bg.png'); */
    background-size: cover;
    background-position: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--text-color);
    margin-bottom: 15px;
    font-family: 'Hidayatullah', serif;
}

.hero-content p {
    font-size: 0.75rem;
    line-height: 1.6;
    max-width: 600px;
    opacity: 0.9;
    color: var(--text-color);
    margin-top: 20px;
}

/* --- 3 BOXES LAYOUT (Mission - Tagline - Vision) --- */

/* Wrapper: Invisible on desktop to let Grid handle placement */
.carousel-wrapper {
    display: contents; 
}

/* Generic Card Styles */
.card-mission, .card-features {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    padding: 30px;
    box-sizing: border-box;

}
.card-mission span{
    color: var(--card-bg);
}

/* 1. MISSION (Left Box) */
.card-mission:first-of-type {
    grid-area: img; /* Left Column */
    background-image: url('../assets/images/bg-3.png');/* Orange */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 2. TAGLINE (Center Box) */
.card-features {
    grid-area: miss; /* Center Column */
    background-image: url('../assets/images/bg-3.png');/* Orange */
    color: white; /* Text Color */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-features h3 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
}

/* 3. VISION (Right Box) */
.card-mission:last-of-type {
    grid-area: feat; /* Right Column */
    background-image: url('../assets/images/bg-3.png');/* Orange */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-content span,
.card-features span {
    color: var(--card-bg);
}

/* Typography for Mission/Vision */
.card-mission h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
    font-family: 'Hidayatullah', serif;
}
.card-mission p {
    font-size: 0.75rem;
    line-height: 1.5;
    opacity: 0.9;
    color: white;
}






/* =========================================
   2. MOBILE LAYOUT (Peeking Carousel)
   ========================================= */
@media (max-width: 768px) {
    
    .main-container {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 15px;
        overflow-x: hidden;
    }

.footer-card {
        margin: 0px 15px 90px 15px !important;
        /* 1. Force Row Layout */
        display: flex !important;
        flex-direction: row !important; 
        justify-content: space-between;
        align-items: center;
        
        /* 2. Tight Padding to maximize space */
        padding: 0 10px; 
        gap: 2px;
        
        height: 50px; /* Fixed small height */
        min-height: auto;
    }
/* Hide logo on mobile */
.logo-circle { display: none; }

    /* 3. HERO */
    .story-hero-card {
        margin: 15px;
        min-height: 380px;
        border-radius: 30px;
        padding: 25px;
    }
    .story-hero-card h1 { font-size: 1.8rem; }
    .hero-content p {
        font-size: 0.5rem;
        line-height: 1.6;
    }
    .card-features h3 {
        font-size: 1.5rem;
    }
    .card-mission p {
        font-size: 0.5rem;
        line-height: 1.4;
    }

    /* 4. CAROUSEL WRAPPER (Horizontal Scroll) */
    .carousel-wrapper {
        display: flex;       
        flex-direction: row; 
        overflow-x: auto;    
        gap: 15px;           
        padding: 0 20px;      
        margin-bottom: 20px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none; 
        width: 100%;
    }
    .carousel-wrapper::-webkit-scrollbar { display: none; }

    /* 5. CAROUSEL CARDS */
    .card-mission, .card-features {
        min-width: 85%;
        width: 85%;
        height: 320px;
        flex-shrink: 0;
        scroll-snap-align: center;
        border-radius: 25px;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }


}