/* --- Our Story Hero Section --- */

.our-story-hero {
    height: 55vh; /* Adjust height as needed (percentage of viewport height) */
    min-height: 350px; /* Minimum height for smaller viewports */
    background-image: url('/images/our-story-banner.jpg'); /* --- REPLACE WITH YOUR IMAGE PATH --- */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /* Crucial for positioning child elements absolutely */
    display: flex; /* Use flexbox to center content easily */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center;
    color: #ffffff; /* Default text color */
    overflow: hidden; /* Prevent background text from overflowing if too large */
}

/* Large Background Text ("OUR STORY") */
.hero-background-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(5rem, 20vw, 8rem); /* Responsive font size (min, preferred, max) */
    font-weight: bold; /* Or 700, 800 depending on font */
    color: rgba(255, 255, 255, 0.2); /* Very faint white text */
    text-transform: uppercase;
    letter-spacing: 5px; /* Adds spacing between letters */
    white-space: nowrap; /* Prevent wrapping */
    z-index: 2; /* Place it above the overlay */
    user-select: none; /* Make text non-selectable */
    pointer-events: none; /* Allow clicks to pass through */
}

/* Container for the main text */
.hero-content-container {
    position: relative; /* Ensure it's layered correctly */
    z-index: 3; /* Place main text above the background text and overlay */
    padding: 20px; /* Add some padding */
}

/* Main Text ("A DREAM...") */
.hero-main-text {
    font-size: clamp(1rem, 4vw, 1.8rem); /* Responsive font size */
    font-weight: 600; /* Adjust weight as needed */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
    margin: 0; /* Reset default margin */
    color: #ffffff; /* Ensure it's white */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    
}

/* --- Optional: Styles for content below hero --- */
.page-content {
    padding: 40px 20px;
    background-color: #111; /* Or your standard page background */
}

/* --- Media Queries for Responsiveness --- */

/* Medium Screens (Tablets Landscape, Small Laptops, etc.) */
@media (max-width: 992px) {
    .our-story-hero {
        min-height: 320px; /* Slightly reduce min-height */
    }

    .hero-background-text {
        /* Slightly reduce max size if needed */
        font-size: clamp(3.8rem, 17vw, 7rem);
        letter-spacing: 4px; /* Reduce spacing */
    }

    .hero-main-text {
        font-size: clamp(0.95rem, 3.2vw, 1.6rem); /* Fine-tune clamp */
    }
}

/* Small Screens (Tablets Portrait, Large Phones) */
@media (max-width: 768px) {
    .our-story-hero {
        height: 40vh; /* Can adjust vh if needed */
        min-height: 300px; /* Further reduce min height */
    }

    .hero-background-text {
        font-size: clamp(3.5rem, 16vw, 6rem); /* Further reduce */
        letter-spacing: 3px; /* Further reduce spacing */
        color: rgba(255, 255, 255, 0.12); /* Can make even fainter */
    }

    .hero-main-text {
        font-size: clamp(0.9rem, 3vw, 1.4rem); /* Further reduce */
        letter-spacing: 1px; /* Reduce spacing */
    }

    .page-content {
        padding: 30px 15px; /* Adjust padding */
    }
}

@media (max-width: 631px) {
    .hero-background-text {
        font-size: clamp(3.5rem, 16vw, 5.5rem); /* Further reduce */
        letter-spacing: 3px; /* Further reduce spacing */
        color: rgba(255, 255, 255, 0.12); /* Can make even fainter */
    }
}

/* Extra Small Screens (Phones Portrait) */
@media (max-width: 576px) {
     .our-story-hero {
        height: 38vh; /* Adjust as needed */
        min-height: 280px;
     }

     .hero-background-text {
        font-size: clamp(3rem, 18vw, 5rem); /* Adjust clamp values, vw might need increase now */
        letter-spacing: 2px;
     }

     .hero-main-text {
        font-size: clamp(0.85rem, 4vw, 1.2rem); /* Fine-tune */
        line-height: 1.5; /* Slightly increase for readability */
     }

     .hero-content-container {
        padding: 15px; /* Reduce padding */
        max-width: 95%; /* Allow slightly more width usage */
     }

     .page-content {
        padding: 25px 10px; /* Further adjust padding */
     }
}

@media (max-width: 521px) {
    .our-story-hero {
        height: 35vh; /* Adjust as needed */
        min-height: 250px;
     }
     
    .hero-background-text {
        font-size: clamp(3rem, 18vw, 4rem); /* Adjust clamp values, vw might need increase now */
        letter-spacing: 2px;
     }
     
     .hero-main-text {
        font-size: clamp(0.85rem, 4vw, 1.5rem); /* Fine-tune */
        line-height: 1.5; /* Slightly increase for readability */
     }
}

@media (max-width: 426px) {
    .hero-background-text {
        font-size: clamp(3rem, 16vw, 3.5rem); /* Adjust clamp values, vw might need increase now */
        letter-spacing: 2px;
     }
}

/* Very Small Screens (Optional refinement) */
@media (max-width: 380px) {
    .our-story-hero {
        height: 25vh;
        min-height: 200px;
    }
    
    .hero-background-text {
        font-size: clamp(2.5rem, 15vw, 3.2rem);
        letter-spacing: 1.5px;
    }
    .hero-main-text {
        font-size: clamp(0.8rem, 3.5vw, 1.1rem);
    }
}

@media (max-width: 321px) {
    .hero-background-text {
        font-size: clamp(2.5rem, 14vw, 3rem);
        letter-spacing: 1.5px;
    }
    .hero-main-text {
        font-size: clamp(0.8rem, 3vw, 1.1rem);
    }
}