/* Our Story Page Specific Styles */
body.our-story-page-body {
    background-color: rgb(0, 0, 26); /* Dark Navy Blue */
    color: rgb(255, 255, 255); /* White text */
    font-family: 'Helvetica', sans-serif;
    line-height: 1.8;
    padding-top: 80px; /* Adjust as needed to prevent content from hiding behind fixed header */
    background-image: linear-gradient(to bottom, rgba(0, 0, 26, 0.98), rgba(0, 0, 26, 0.95), rgba(0, 0, 26, 0.98)), url('../assets/images/story/story2.webp');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-blend-mode: overlay;
}

/* Ensure navbar is visible on Our Story page */
.our-story-page-body #main-navbar {
    display: block !important; /* Force display */
    visibility: visible !important;
    opacity: 1 !important;
    background-color: transparent !important; /* Completely transparent background */
    z-index: 1000 !important; /* Ensure it's above other elements */
}

/* Desktop navigation styling */
.our-story-page-body .desktop-nav-left {
    display: flex !important;
}

@media (max-width: 768px) {
    .our-story-page-body .desktop-nav-left {
        display: none !important; /* Hide on mobile */
    }
}

.our-story-page-body #main-navbar .desktop-nav-left .nav-links { /* Made selector more specific */
    color: #ffffff !important; /* White text for better visibility */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7) !important; /* Text shadow for better readability */
}

/* Mobile menu styling for Our Story page - White background with dark text */
/* Mobile navigation menu styling - visible only on mobile and when activated */
/*
.our-story-page-body .mobile-nav-menu,
.our-story-page-body #mobile-nav-menu-list {
    background-color: #ffffff !important; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    display: none !important; 
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
}

.our-story-page-body .mobile-nav-menu .nav-links,
.our-story-page-body #mobile-nav-menu-list .nav-links {
    color: rgb(0, 0, 26) !important; 
    display: block !important;
    padding: 15px !important;
    text-align: center !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 26, 0.1) !important;
    font-weight: 500 !important; 
}

.our-story-page-body .mobile-nav-menu .nav-links:hover,
.our-story-page-body #mobile-nav-menu-list .nav-links:hover,
.our-story-page-body .mobile-nav-menu .nav-links:active,
.our-story-page-body #mobile-nav-menu-list .nav-links:active {
    background-color: #f0f0f0 !important; 
    color: rgb(255, 191, 0) !important; 
    transition: all 0.2s ease-in-out !important;
}
*/

/* Mobile menu responsive behavior */
/* Hamburger icon - hidden on desktop, visible on mobile */
/*
.our-story-page-body #mobile-menu {
    display: none !important; 
}
*/

/* Mobile navigation menu - always hidden by default */
/*
.our-story-page-body #mobile-nav-menu-list {
    display: none !important; 
}
*/

/* When mobile menu is active, show it */
/*
.our-story-page-body #mobile-nav-menu-list.active {
    display: flex !important;
    flex-direction: column !important;
}
*/

/* Mobile-specific rules */
/*
@media (max-width: 768px) {
    .our-story-page-body #mobile-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}
*/

/* This section was removed to eliminate duplication */

/* Hamburger menu icon styling - ensuring three separate bars */
/*
.our-story-page-body #main-navbar .menu-toggle .bar {
    background-color: #ffffff !important; 
    display: block !important; 
    width: 25px !important; 
    height: 3px !important; 
    margin: 5px auto !important; 
    border-radius: 1px !important; 
}
*/

/* Animation styling for hamburger menu when active */
/*
.our-story-page-body .menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform-origin: center !important;
    transform: translateY(8px) rotate(45deg) !important;
}

.our-story-page-body .menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0 !important;
}

.our-story-page-body .menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform-origin: center !important;
    transform: translateY(-8px) rotate(-45deg) !important;
}
*/

.our-story-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    text-align: justify;
    position: relative;
    z-index: 1;
}

.our-story-content h1 {
    font-family: 'Antipasto Pro', sans-serif;
    font-size: 42px;
    color: rgb(255, 191, 0); /* Gold */
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.our-story-content h1::after {
    content: '';
    display: block;
    width: 100px; /* Shorter underline for the page title */
    height: 3px;
    background: linear-gradient(to right, transparent, rgb(255, 191, 0), transparent);
    margin: 15px auto 0;
}

.our-story-content h2 {
    font-family: 'Antipasto Pro', sans-serif;
    font-size: 28px;
    color: rgb(255, 191, 0); /* Gold */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 191, 0, 0.3);
    padding-bottom: 10px;
}

.our-story-content h3 {
    font-family: 'Antipasto Pro', sans-serif;
    font-size: 22px; /* Slightly smaller than h2 */
    color: rgb(255, 191, 0); /* Gold */
    margin-top: 30px;
    margin-bottom: 15px;
}

.our-story-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.story-image-container {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    position: relative;
    transform: perspective(1000px) rotateX(2deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.story-image-container:hover {
    transform: perspective(1000px) rotateX(0);
    box-shadow: 0 20px 40px rgba(255, 191, 0, 0.2), 0 15px 25px rgba(0, 0, 0, 0.6);
}

.story-image-container img {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: transform 0.8s ease;
}

.story-image-container:hover img {
    transform: scale(1.03);
}

.story-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 26, 0.8);
    color: rgb(255, 191, 0);
    padding: 12px 20px;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.story-image-container:hover .story-image-caption {
    transform: translateY(0);
}

.story-image-left {
    float: left;
    max-width: 45%;
    margin: 5px 30px 20px 0;
}

.story-image-right {
    float: right;
    max-width: 45%;
    margin: 5px 0 20px 30px;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Add more elegant styling to enhance visual appeal */
.story-quote {
    font-style: italic;
    font-size: 1.2em;
    color: rgb(255, 191, 0);
    text-align: center;
    max-width: 80%;
    margin: 50px auto;
    padding: 20px;
    position: relative;
    line-height: 1.6;
}

.story-quote::before,
.story-quote::after {
    content: '"';
    font-family: 'Georgia', serif;
    font-size: 4em;
    position: absolute;
    opacity: 0.3;
    color: rgb(255, 191, 0);
}

.story-quote::before {
    top: -30px;
    left: -20px;
}

.story-quote::after {
    content: '"';
    bottom: -60px;
    right: -20px;
}

.story-section {
    position: relative;
    margin-bottom: 60px;
    padding-bottom: 30px;
}

.story-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 191, 0, 0.3), transparent);
    margin: 40px auto;
    width: 80%;
}

.story-highlight {
    color: rgb(255, 191, 0);
    font-weight: bold;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px auto;
}

.story-grid-item {
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgb(255, 191, 0);
    transition: all 0.3s ease;
}

.story-grid-item:hover {
    background: rgba(255, 191, 0, 0.1);
    transform: translateY(-5px);
}

.story-grid-item h3 {
    margin-top: 0;
}

.story-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
    justify-content: center;
}

.gallery-item {
    width: calc(33.33% - 20px);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 191, 0, 0.15), 0 10px 20px rgba(0,0,0,0.4);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.story-header {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
}

.story-subheading {
    color: rgb(255, 191, 0);
    font-size: 1.1em;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.parallax-section {
    height: 300px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    margin: 60px 0;
    border-radius: 8px;
    overflow: hidden;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 26, 0.6);
    padding: 20px;
}

.parallax-content {
    color: white;
    text-align: center;
    max-width: 80%;
}

.parallax-content h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: rgb(255, 191, 0);
}

.story-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.story-btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.story-btn-primary {
    background-color: rgb(255, 191, 0);
    color: rgb(0, 0, 26);
    border: 2px solid rgb(255, 191, 0);
}

.story-btn-primary:hover {
    background-color: transparent;
    color: rgb(255, 191, 0);
}

.story-btn-secondary {
    background-color: transparent;
    color: rgb(255, 191, 0);
    border: 2px solid rgb(255, 191, 0);
}

.story-btn-secondary:hover {
    background-color: rgb(255, 191, 0);
    color: rgb(0, 0, 26);
}

.values-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
    justify-content: center;
}

.value-item {
    width: calc(50% - 30px);
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(255, 191, 0, 0.3);
}

.value-item:hover {
    background: rgba(255, 191, 0, 0.05);
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2em;
    color: rgb(255, 191, 0);
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body.our-story-page-body {
        padding-top: 70px; /* Adjust for mobile header */
    }

    .our-story-content {
        margin: 20px auto;
        padding: 15px;
    }

    .our-story-content h1 {
        font-size: 32px;
    }

    .our-story-content h2 {
        font-size: 24px;
    }

    .our-story-content p {
        font-size: 15px;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .story-image-left,
    .story-image-right {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }
    
    .gallery-item {
        width: calc(50% - 10px);
    }
    
    .value-item {
        width: 100%;
    }
    
    .story-quote {
        font-size: 1.1em;
        max-width: 90%;
    }
    
    .parallax-section {
        height: 250px;
    }
    
    .parallax-content h2 {
        font-size: 1.8em;
    }
    
    /* Ensure proper spacing for mobile menu items */
    /*
    .our-story-page-body .mobile-nav-menu .nav-links,
    .our-story-page-body #mobile-nav-menu-list .nav-links {
        padding: 15px 20px !important;
        font-size: 16px !important;
    }
    */
    
    /* Improve touch target size */
    /*
    .our-story-page-body #mobile-menu {
        padding: 10px !important;
    }
    */
    
    /* Give the hamburger icon more space */
    /*
    .our-story-page-body #main-navbar .menu-toggle .bar {
        width: 28px !important; 
    }
    */
}

/* Hide default mobile nav when screen is larger than mobile breakpoint */
/*
@media (min-width: 769px) {
    .our-story-page-body #mobile-nav-menu-list,
    .our-story-page-body .mobile-nav-menu {
        display: none !important;
    }
    
    .our-story-page-body .desktop-nav-left {
        display: flex !important;
    }
}
*/

@media (max-width: 480px) {
    .our-story-content h1 {
        font-size: 28px;
    }

    .our-story-content h2 {
        font-size: 20px;
    }
    
    .gallery-item {
        width: 100%;
    }
    
    .story-buttons {
        flex-direction: column;
        align-items: center;
    }
}
