/*
 Theme Name:   Tune Child - Elkhanah
 Theme URI:    https://elkhanah.com
 Description:  Child theme for Elkhanah.com - Press, Projects, Pages with unified styling
 Author:       Mat Dunlap
 Author URI:   https://elkhanah.com
 Template:     tune
 Version:      3.4.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  tune-child
*/


/* Elements to hide site-wide - NOTE: Mobile menu elements removed, handled responsively */
body.elkhanah-unified .lower-menu,
body.elkhanah-unified .cta-container,
body.elkhanah-unified #masthead .socials,
body.elkhanah-unified #masthead .social-links,
body.elkhanah-unified #masthead .wolf-social-icons,
body.elkhanah-unified #header-content .socials,
body.elkhanah-unified a#back-to-top,
body.elkhanah-unified .back-to-top-visible,
body.elkhanah-unified .bumper,
body.elkhanah-unified .nav-search-form,
body.elkhanah-unified p.site-name,
body.elkhanah-unified p.site-description {
    display: none !important;
}

html, body {
    font-family: "agenda", sans-serif;
}

/* ==========================================================================
   MOBILE MENU - Responsive Behavior
   Desktop: Hide mobile menu elements, show desktop nav
   Mobile: Show mobile menu elements, hide desktop nav
   ========================================================================== */

/* Desktop (799px and up): Hide mobile navigation elements */
@media (min-width: 799px) {
    body.elkhanah-unified #mobile-navigation,
    body.elkhanah-unified #mobile-menu-panel,
    body.elkhanah-unified .hamburger-container,
    body.elkhanah-unified #mobile-panel-closer-overlay {
        display: none !important;
    }
}

/* Mobile (798px and below): Show mobile navigation, hide desktop nav */
@media (max-width: 798px) {
    /* Hide desktop navigation elements only - NOT the containers that hold mobile nav */
    body.elkhanah-unified #desktop-navigation,
    body.elkhanah-unified #nav-bar:not(#mobile-bar),
    body.elkhanah-unified .nav-menu-desktop,
body.elkhanah-unified .menu-container {
    display: none !important;
}


    .elkhanah-page-text img {
    max-width: 300px;
}

    /* Upper menu needs to be visible to show mobile nav, but reset its styling */
    body.elkhanah-unified .upper-menu {
        display: block !important;
        padding: 0 !important;
        background: transparent !important;
        position: static !important;
    }
    
    /* CRITICAL: Reset header positioning on mobile so mobile nav can be fixed */
    body.elkhanah-unified #masthead,
    body.elkhanah-unified .site-header {
        position: relative !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    body.elkhanah-unified #header-content {
        position: static !important;
        padding: 0 !important;
    }
    
    /* Show mobile navigation bar - FIXED at top */
    body.elkhanah-unified #mobile-navigation {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9998 !important;
        background: rgba(0, 0, 0, 0.95) !important;
        padding: 12px 5% !important;
    }
    
    body.elkhanah-unified #mobile-bar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    body.elkhanah-unified #mobile-bar .flex-mobile-wrap {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    /* Mobile logo */
    body.elkhanah-unified #mobile-navigation .logo-container {
        flex: 0 0 auto !important;
    }
    
    body.elkhanah-unified #mobile-navigation .logo-img {
        max-height: 23px !important;
        width: auto !important;
    }
    
    body.elkhanah-unified #mobile-navigation .logo-light {
        display: inline-block !important;
    }
    
    body.elkhanah-unified #mobile-navigation .logo-dark {
        display: none !important;
    }
    
    /* Hamburger container and icon */
    body.elkhanah-unified .hamburger-container {
        display: block !important;
        flex: 0 0 auto !important;
    }
    
    body.elkhanah-unified .hamburger-icon {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 24px !important;
        height: 18px !important;
        cursor: pointer !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }
    
    body.elkhanah-unified .hamburger-icon .line {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background-color: #fff !important;
        transition: all 0.3s ease !important;
    }
    
    /* Hamburger animation when menu is open */
    body.elkhanah-unified.mobile-menu-toggle .hamburger-icon .line-1 {
        transform: translateY(8px) rotate(45deg) !important;
    }
    
    body.elkhanah-unified.mobile-menu-toggle .hamburger-icon .line-2 {
        opacity: 0 !important;
    }
    
    body.elkhanah-unified.mobile-menu-toggle .hamburger-icon .line-3 {
        transform: translateY(-8px) rotate(-45deg) !important;
    }
    
    /* Mobile menu panel (slide-out) */
    body.elkhanah-unified #mobile-menu-panel {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        max-width: 85% !important;
        height: 100vh !important;
        background: #1a1a1a !important;
        z-index: 10001 !important;
        transform: translateX(100%) !important; /* hidden off-canvas; transform clips cleanly under html{overflow-x:hidden} */
        transition: transform 0.3s ease !important;
        overflow-y: auto !important;
        padding-top: 30px !important;
    }
    
    body.elkhanah-unified.mobile-menu-toggle #mobile-menu-panel {
        transform: translateX(0) !important;
    }
    
    body.elkhanah-unified #mobile-menu-panel-inner {
        padding: 20px !important;
    }
    
    /* Mobile menu items */
    body.elkhanah-unified #mobile-menu-panel .nav-menu,
    body.elkhanah-unified #mobile-menu-panel .menu {
        display: flex !important;
        flex-direction: column !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body.elkhanah-unified #mobile-menu-panel .nav-menu > li,
    body.elkhanah-unified #mobile-menu-panel .menu > li {
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    body.elkhanah-unified #mobile-menu-panel .nav-menu a,
    body.elkhanah-unified #mobile-menu-panel .menu a {
        display: block !important;
        padding: 15px 0 !important;
        font-family: "agenda", sans-serif !important;
        font-size: 1.2rem !important;
        text-decoration: none !important;
        text-transform: none !important;
        transition: color 0.3s ease !important;
        font-weight: 600 !important;
    }

    /* Menu text lives in span.menu-item-text-container (parent theme markup),
       which carries its own colour — force it white so the links read white */
    body.elkhanah-unified #mobile-menu-panel .nav-menu a .menu-item-inner,
    body.elkhanah-unified #mobile-menu-panel .menu a .menu-item-inner,
    body.elkhanah-unified #mobile-menu-panel .nav-menu a .menu-item-text-container,
    body.elkhanah-unified #mobile-menu-panel .menu a .menu-item-text-container {
        color: #fff !important;
    }
    
    body.elkhanah-unified #mobile-menu-panel .nav-menu a:hover,
    body.elkhanah-unified #mobile-menu-panel .menu a:hover,
    body.elkhanah-unified #mobile-menu-panel .nav-menu a:hover .menu-item-text-container,
    body.elkhanah-unified #mobile-menu-panel .menu a:hover .menu-item-text-container,
    body.elkhanah-unified #mobile-menu-panel .current-menu-item > a,
    body.elkhanah-unified #mobile-menu-panel .current-menu-item > a .menu-item-text-container {
        color: #c92222 !important;
    }
    
    /* Overlay when menu is open */
    body.elkhanah-unified #mobile-panel-closer-overlay {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0,0,0,0.5) !important;
        z-index: 10000 !important;
        cursor: pointer !important;
    }
    
    body.elkhanah-unified.mobile-menu-toggle #mobile-panel-closer-overlay {
        display: block !important;
    }
    
    /* Add padding to page content to account for fixed mobile nav */
    body.elkhanah-unified #page,
    body.elkhanah-unified .site-content {
        padding-top: 24px !important;
    }
    
    /* Home page specific - no extra padding needed due to hero images */
    body.elkhanah-unified.elkhanah-home #page,
    body.elkhanah-unified.elkhanah-home .site-content,
    body.elkhanah-unified.elkhanah-home .page-wrapper {
        padding-top: 0 !important;
    }
    
    /* Center footer/copyright on mobile */
    body.elkhanah-unified #colophon,
    body.elkhanah-unified .site-footer,
    body.elkhanah-unified .bottom-bar,
    body.elkhanah-unified .site-info,
    body.elkhanah-unified .footer-content {
        text-align: center !important;
    }
    
    body.elkhanah-unified .bottom-bar-container,
    body.elkhanah-unified .copyright,
    body.elkhanah-unified .site-info p,
    body.elkhanah-unified .footer-text {
        text-align: center !important;
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ==========================================================================
   HEADER - FIXED POSITION BAR
   Force a consistent header bar regardless of parent theme structure
   ========================================================================== */

body.elkhanah-unified #masthead,
body.elkhanah-unified .site-header,
body.elkhanah-unified header#masthead {
position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    background: transparent !important;
    padding: 45px 12% !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 95rem;
    margin: 0 auto;
}

/* Header content wrapper - full width */
body.elkhanah-unified #header-content {
    width: 100% !important;
}

/* Desktop navigation wrapper - full width */
body.elkhanah-unified #desktop-navigation {
    width: 100% !important;
}

/* Nav bar - full width */
body.elkhanah-unified #nav-bar {
    width: 100% !important;
}

/* ==========================================================================
   FLEX-WRAP - THE KEY CONTAINER
   This is where logo and nav live as siblings
   ========================================================================== */

body.elkhanah-unified #nav-bar .flex-wrap,
body.elkhanah-unified .nav-bar .flex-wrap {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

/* ==========================================================================
   LOGO - Stays on left
   ========================================================================== */

body.elkhanah-unified #nav-bar .logo-container,
body.elkhanah-unified .nav-bar .logo-container {
    flex: 0 0 auto !important;
    margin: 0 !important;
    margin-right: auto !important;
    padding: 0 !important;
        width: 50%;
}

body.elkhanah-unified .logo,
body.elkhanah-unified .site-logo,
body.elkhanah-unified #logo,
body.elkhanah-unified .logo-holder {
    margin: 0 !important;
    padding: 0 !important;
}

body.elkhanah-unified .logo a,
body.elkhanah-unified .site-logo a,
body.elkhanah-unified .logo-link,
body.elkhanah-unified #logo a,
body.elkhanah-unified .site-title a,
body.elkhanah-unified .logo-text,
body.elkhanah-unified .logo-text a,
body.elkhanah-unified #masthead .logo a,
body.elkhanah-unified #masthead .logo-text,
body.elkhanah-unified #header-content .logo a,
body.elkhanah-unified #header-content .logo-text,
.single-projects .logo a,
.single-projects .logo-text,
.single-projects .logo-text a,
.post-type-archive-projects .logo a,
.post-type-archive-projects .logo-text,
.post-type-archive-projects .logo-text a {
    font-family: "agenda", sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: #fff !important;
    text-decoration: none !important;
    letter-spacing: 0.01em !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

/* Force override any theme logo text sizing */
body .logo-text,
body .logo a,
body #logo a,
#masthead .logo-text,
#masthead .logo a,
.site-header .logo-text,
.site-header .logo a {
    font-size: 1.5rem !important;

}

/* ==========================================================================
   LOGO IMAGE - Constrain size for image-based logos
   CRITICAL: Force small logo size on all pages
   ========================================================================== */

/* Nuclear option for logo images - target every possible selector */
body .logo img,
body .logo-img,
body .logo-light,
body .logo-dark,
body .site-logo img,
body #logo img,
body .logo-container img,
body .logo-link img,
body #masthead .logo img,
body #masthead .logo-img,
body #masthead .logo-light,
body #masthead .logo-dark,
body #nav-bar .logo img,
body #nav-bar .logo-light,
body #nav-bar .logo-dark,
body.elkhanah-unified .logo img,
body.elkhanah-unified .logo-img,
body.elkhanah-unified .logo-light,
body.elkhanah-unified .logo-dark,
body.single-projects .logo img,
body.single-projects .logo-img,
body.single-projects .logo-light,
body.single-projects .logo-dark,
.single-projects .logo img,
.single-projects .logo-img,
.single-projects .logo-light,
.single-projects .logo-dark,
.post-type-archive-projects .logo img,
.post-type-archive-projects .logo-img,
img.logo-img,
img.logo-light,
img.logo-dark {
    max-height: 34px;
    height: 34px;
    width: auto;
    max-width: initial;
    object-fit: contain;
    display: inline-block;
}

/* Slightly smaller logo on scroll/sticky */
body.elkhanah-unified.sticky-menu .logo img,
body.elkhanah-unified.sticky-menu .logo-img,
body.sticky-menu .logo img,
body.sticky-menu .logo-img {
    max-height: 35px !important;
    height: 35px !important;
}


@media (max-width: 1100px) {
        body.elkhanah-unified #masthead, 
body.elkhanah-unified .site-header, 
body.elkhanah-unified header#masthead {
      padding: 25px 3% !important;  
}


.elkhanah-page-hero,
.elkhanah-projects-hero {
    background-size: 160% !important;
        min-height: 380px !important;
    background-position: center, center !important;      
}

.elkhanah-container {
    padding-left: 5% !important;   
    padding-right: 5% !important;   
}
    
}

/* Below 950px: shrink the logo to 25px tall (covers image logo + sticky) */
@media (max-width: 949px) {
    body .logo,
    body.elkhanah-unified .logo {
        max-height: 25px !important;
    }
    body .logo img,
    body .logo-img,
    body .logo-light,
    body .logo-dark,
    body.elkhanah-unified .logo img,
    body.elkhanah-unified.sticky-menu .logo img,
    body.sticky-menu .logo img,
    body.sticky-menu .logo-img {
        max-height: 25px !important;
        height: 25px !important;
        width: auto !important;
    }
    
    body.elkhanah-unified #masthead, 
body.elkhanah-unified .site-header, 
body.elkhanah-unified header#masthead {
      padding: 25px 3% !important;  
}

body.elkhanah-unified .nav-menu a, body.elkhanah-unified .menu a, body.elkhanah-unified #menu-main-menu a, body.elkhanah-unified nav ul a, body.elkhanah-unified #desktop-navigation a, body.elkhanah-unified .primary-navigation a {
    padding: 0 1rem 0 0 !important;
    
}

.elkhanah-page-hero,
.elkhanah-projects-hero {
    background-size: 160% !important;
        min-height: 380px !important;
    background-position: center, center !important;      
}

.elkhanah-container {
    padding-left: 5% !important;   
    padding-right: 5% !important;   
}

.elkhanah-projects-grid {
    grid-column-gap: 1rem !important;   
    grid-row-gap: 1rem !important;   
}

.elkhanah-slideshow-section {
    padding: 0 3% !important;
}

.elkhanah-project-card-subtitle {
    line-height: 110% !important;
}

}

/* Hide .logo-dark on light backgrounds (default to light logo on hero) */
body.skin-dark .logo .logo-dark {
    display: none !important;
}

body.skin-light .logo .logo-light {
    display: inline-block !important;
}

body.skin-light .logo img.logo-dark {
    display: none !important;
}

.production-team-content.w-richtext h2 {
    line-height: 100%;
    font-size: 20px;
}

/* ==========================================================================
   NAVIGATION - Force to RIGHT side
   ========================================================================== */

body.elkhanah-unified #nav-bar .menu-container,
body.elkhanah-unified .nav-bar .menu-container {
    flex: 0 0 auto !important;
    margin: 0 !important;
    margin-left: auto !important;
    padding: 0 !important;
        align-self: flex-end;
}

body.elkhanah-unified .nav-menu,
body.elkhanah-unified .menu,
body.elkhanah-unified #menu-main-menu,
body.elkhanah-unified .desktop-navigation ul,
body.elkhanah-unified #desktop-navigation ul,
body.elkhanah-unified nav ul,
body.elkhanah-unified .primary-navigation ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

body.elkhanah-unified .nav-menu > li,
body.elkhanah-unified .menu > li,
body.elkhanah-unified #menu-main-menu > li,
body.elkhanah-unified nav ul > li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: relative !important;
}

body.elkhanah-unified .nav-menu a,
body.elkhanah-unified .menu a,
body.elkhanah-unified #menu-main-menu a,
body.elkhanah-unified nav ul a,
body.elkhanah-unified #desktop-navigation a,
body.elkhanah-unified .primary-navigation a {
    font-family: "agenda", sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 400 !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    white-space: nowrap !important;
    padding: 0 1.6rem 0 0 !important;
    display: inline-block !important;
    transition: filter 0.4s ease;
}

body.elkhanah-unified .nav-menu li.current-menu-item a .menu-item-text-container,
body.elkhanah-unified #desktop-navigation li.current-menu-item a .menu-item-text-container{
        border-bottom: none;
}

.nav-menu span.menu-item-text-container {
    padding-top: 11px;
    display: inline-block;
}


body.elkhanah-unified .nav-menu a:hover,
body.elkhanah-unified .menu a:hover,
body.elkhanah-unified nav ul a:hover,
body.elkhanah-unified .nav-menu .current-menu-item > a,
body.elkhanah-unified .menu .current-menu-item > a,
body.elkhanah-unified .nav-menu .current_page_item > a,
body.elkhanah-unified .menu .current_page_item > a {
    color: #3b4c52 !important;
}


.overlay-hero {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
    background: #000;
    opacity: 0.55;
}

.post-type-archive-press .overlay-hero {
        opacity: 0.15;
}

/* Projects hero */
.elkhanah-projects-hero {
    position: relative !important;
    min-height: 380px;
}

.elkhanah-projects-hero-content {
    position: absolute !important;
    bottom: 4rem !important;
    right: 10% !important;
    left: auto !important;
    top: auto !important;
    text-align: right !important;
        padding-bottom: 35px;
}



.elkhanah-projects-hero h1,
.elkhanah-projects-hero-content h1 {
    font-family: "agenda", sans-serif;
    font-size: 4.4rem;
    font-weight: 100;
    line-height: 1.2;
    color: var(--elkhanah-white);
    margin: 0;
    text-shadow: 1px 1px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.03em;
}

/* Press hero */
.elkhanah-press-hero {
    position: relative !important;
    min-height: 380px;
}

.elkhanah-press-hero-content {
    position: absolute;
    bottom: 4rem;
    right: 10%;
    z-index: 2;
    text-align: right;
    padding-bottom: 35px;
}

.elkhanah-press-hero h1,
.elkhanah-press-hero-content h1 {
    font-family: "agenda", sans-serif;
    font-size: 4.4rem;
    font-weight: 100;
    line-height: 1.2;
    color: var(--elkhanah-white);
    margin: 0;
    text-shadow: 1px 1px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.03em;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 798px) {
    body.elkhanah-unified #masthead,
    body.elkhanah-unified .site-header {
        padding: 15px 5% !important;
    }
    
    body.elkhanah-unified .nav-menu a,
    body.elkhanah-unified .menu a,
    body.elkhanah-unified nav ul a {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.75rem !important;
    }
    
    .elkhanah-projects-hero h1,
    .elkhanah-press-hero h1 {
        font-size: 3.5rem !important;
    }
}

@media (max-width: 767px) {
    body.elkhanah-unified #masthead > *,
    body.elkhanah-unified .site-header > *,
    body.elkhanah-unified #header-content {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    
    body.elkhanah-unified .nav-menu,
    body.elkhanah-unified .menu,
    body.elkhanah-unified nav ul {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }
    
    body.elkhanah-unified .nav-menu a,
    body.elkhanah-unified .menu a,
    body.elkhanah-unified nav ul a {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.5rem !important;
    }
    
    .elkhanah-projects-hero h1,
    .elkhanah-press-hero h1 {
        font-size: 2.5rem !important;
    }
    
    body.elkhanah-unified .logo a,
    body.elkhanah-unified .site-title a {
        font-size: 1.4rem !important;
    }
}


/* ==========================================================================
   HOME PAGE STYLES
   ========================================================================== */

/**
 * Elkhanah Home Page Styles
 * Extracted from Webflow CSS for pixel-accurate parity
 * Logo and nav in middle section (white bg) - uses dark logo, black text
 * 
 * @package Tune_Child
 * @version 2.2.0
 */

/* ==========================================================================
   CSS RESET & BASE (from Webflow normalize)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: #f7f7f7;
    font-family: "agenda", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #000;
}

h1 {
    margin-top: 0;
    margin-bottom: 0;
    font-family: "agenda", sans-serif;
      font-weight: 300;
    font-size: 4rem;
    line-height: 1.2;
}

h1.archive-title {
    font-family: "agenda", sans-serif;
    font-weight: 300;
    line-height: 1.3;
    color: var(--elkhanah-black-font);
    margin-top: -7px;
    margin-bottom: 25px;
    font-size: 2.5rem;
    text-align: center;
}

a {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
}

img {
    border: 0;
    max-width: 100%;
    vertical-align: middle;
    display: inline-block;
}

/* ==========================================================================
   PAGE WRAPPER
   ========================================================================== */
.page-wrapper {
    overflow: hidden;
}

/* ==========================================================================
   SECTION BASE
   ========================================================================== */
.section {
    position: relative;
}

.section._20vh {
    height: 20vh;
    min-height: 150px;
    background-color: #fff;
}

/* ==========================================================================
   HERO SECTIONS (viewport-end-left)
   ========================================================================== */
.section.viewport-end-left {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    display: flex;
}

.section.viewport-end-left.height-55 {
    height: 55vh;
}

.section.viewport-end-left.height-55.hero-6-image {
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.section.viewport-end-left.height-55.hero-6-image._40vh {
    height: 40vh;
}

/* ==========================================================================
   PAGE PADDING & LAYOUT UTILITIES
   ========================================================================== */
.page-padding {
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
}

.page-padding.full-height {
    height: 100%;
}

.full-height {
    height: 100%;
}

.flex-vertical {
    flex-direction: column;
    display: flex;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */
.container {
    width: 100%;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.container.max-full {
    width: 95%;
    max-width: 100%;
}

.container.max-full.full-height {
    height: 100%;
}

.container.max-full.full-height.flex-vertical {
    justify-content: center;
}

/* ==========================================================================
   GRID 70-30 (Logo + Nav layout in middle section)
   Matches original Webflow structure
   ========================================================================== */
.grid-70-30 {
    grid-column-gap: 16px;
    grid-row-gap: 16px;
    grid-template-rows: auto;
    grid-template-columns: 1fr .5fr;
    grid-auto-columns: 1fr;
    width: 100%;
    display: grid;
    align-items: center;
}

.grid-70-30.space-vertical-xsmall {
    grid-template-columns: .5fr .5fr;
}

.align-center {
    text-align: center;
}

/* ==========================================================================
   LOGO - In middle section (white bg, dark logo)
   Matches global-styles.css but with dark colors
   ========================================================================== */
.grid-70-30 .logo-container {
    margin: 0;
    padding: 0;
}

.grid-70-30 .logo {
    margin: 0;
    padding: 0;
}

/* Logo as text - black for white background */
.grid-70-30 .logo-text,
.grid-70-30 .logo-text a,
.grid-70-30 .logo a,
.grid-70-30 .logo-link {
    font-family: "agenda", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: normal;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.01em;
    display: inline-block;
    line-height: 1.2;
}

/* Logo as image - show dark, hide light (white background) */
/* Must use !important to override body.elkhanah-unified rules */
body.home .grid-70-30 .logo img,
body.home .grid-70-30 .logo-img,
body.home .grid-70-30 .logo-light,
body.home .grid-70-30 .logo-dark,
.grid-70-30 .logo img,
.grid-70-30 .logo-img,
.grid-70-30 .logo-light,
.grid-70-30 .logo-dark {
    max-height: 80px !important;
    height: auto !important;
    width: auto !important;
    max-width: 470px !important;
    object-fit: contain !important;
    display: inline-block !important;
}

/* Hide light logo, show dark logo (white background) */
/* Must override body.skin-light rules */
body.home.skin-light .grid-70-30 .logo .logo-light,
body.home .grid-70-30 .logo .logo-light,
body.home .grid-70-30 .logo-light,
body.skin-light .grid-70-30 .logo .logo-light,
.grid-70-30 .logo .logo-light,
.grid-70-30 .logo-light {
    display: none !important;
}

body.home.skin-light .grid-70-30 .logo .logo-dark,
body.home .grid-70-30 .logo .logo-dark,
body.home .grid-70-30 .logo-dark,
body.skin-light .grid-70-30 .logo .logo-dark,
.grid-70-30 .logo .logo-dark,
.grid-70-30 .logo-dark {
    display: inline-block !important;
}

/* Logo text styling for home page middle section */
body.home .grid-70-30 .logo a,
body.home .grid-70-30 .logo-text,
body.home .grid-70-30 .logo-text a,
.grid-70-30 .logo a,
.grid-70-30 .logo-text,
.grid-70-30 .logo-text a {
    font-family: "agenda", sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: #000 !important;
    text-decoration: none !important;
    letter-spacing: 0.01em !important;
    display: block !important;
    line-height: 1.2 !important;
}

/* ==========================================================================
   NAVIGATION MENU - In middle section (white bg, black text)
   Matches global-styles.css but with dark colors
   ========================================================================== */
.home-nav-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.grid-70-30 .menu-container {
    margin: 0;
    padding: 0;
}

.grid-70-30 .nav-menu,
.grid-70-30 .nav-menu-desktop,
.grid-70-30 ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
    justify-content: flex-end;
}

.grid-70-30 .nav-menu > li,
.grid-70-30 .nav-menu-desktop > li,
.grid-70-30 ul > li {
    display: inline-block;
    margin: 0;
    padding: 0;
    float: none;
    position: relative;
}

/* Nav links - black text for white background */
/* Must use !important and high specificity to override body.elkhanah-unified rules */
body.home.elkhanah-unified .grid-70-30 .nav-menu a,
body.home.elkhanah-unified .grid-70-30 .nav-menu-desktop a,
body.home.elkhanah-unified .grid-70-30 nav ul a,
body.elkhanah-unified .grid-70-30 .nav-menu a,
body.elkhanah-unified .grid-70-30 .nav-menu-desktop a,
body.elkhanah-unified .grid-70-30 nav ul a,
body.home .grid-70-30 .nav-menu a,
body.home .grid-70-30 .nav-menu-desktop a,
body.home .grid-70-30 ul a,
.grid-70-30 .nav-menu a,
.grid-70-30 .nav-menu-desktop a,
.grid-70-30 ul a {
    font-family: "agenda", sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 300 !important;
    color: #000 !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    white-space: nowrap !important;
    padding: 0.5rem 1rem !important;
    display: inline-block !important;
}

body.home.elkhanah-unified .grid-70-30 .nav-menu a:hover,
body.home.elkhanah-unified .grid-70-30 .nav-menu-desktop a:hover,
body.home.elkhanah-unified .grid-70-30 .current-menu-item > a,
body.elkhanah-unified .grid-70-30 .nav-menu a:hover,
body.elkhanah-unified .grid-70-30 .nav-menu-desktop a:hover,
body.elkhanah-unified .grid-70-30 .current-menu-item > a,
body.home .grid-70-30 .nav-menu a:hover,
body.home .grid-70-30 .nav-menu-desktop a:hover,
body.home .grid-70-30 ul a:hover,
body.home .grid-70-30 .current-menu-item > a,
body.home .grid-70-30 .current_page_item > a,
.grid-70-30 .nav-menu a:hover,
.grid-70-30 .nav-menu-desktop a:hover,
.grid-70-30 ul a:hover,
.grid-70-30 .current-menu-item > a,
.grid-70-30 .current_page_item > a {
    color: #3b4c52 !important;
}

/* Hide menu item inner spans visual styling (keep structure) */
.grid-70-30 .menu-item-inner {
    display: inline;
}

.grid-70-30 .menu-item-text-container {
    display: inline;
}

/* Hide sub-menus on home page for simplicity */
.grid-70-30 .sub-menu {
    display: none;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.margin-bottom-0 {
    margin-bottom: 0;
}

.hide-on-tablet {
    /* Visible by default */
}

/* ==========================================================================
   RESPONSIVE - TABLET (max-width: 798px)
   ========================================================================== */
@media screen and (max-width: 798px) {
    h1 {
        font-size: 3.2rem;
        line-height: 1.4;
    }

    .section.viewport-end-left.height-55.hero-6-image._40vh.home-top-hero {
        height: 50vh;
    }

    .section.viewport-end-left.height-55.hero-6-image._40vh.home-top-hero.margin-bottom-24-responsive {
        margin-bottom: 12px;
    }

    /* Show bottom hero on mobile (was hidden) */
    .section.viewport-end-left.height-55.hero-6-image._40vh.home-bottom-hero.hide-on-tablet {
        display: flex !important;
        height: 50vh;
    }

    .container.max-full {
        width: 100%;
    }

    .container.max-full.full-height.flex-vertical {
        justify-content: center;
    }

    /* On tablet/mobile: Hide the desktop nav in middle section, show only logo */
    body.home .grid-70-30 .home-nav-menu,
    body.home .grid-70-30 .menu-container {
        display: none !important;
    }

    /* Center logo section on mobile */
    .grid-70-30 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .grid-70-30.space-vertical-xsmall {
        grid-template-columns: 1fr;
        grid-row-gap: 0;
    }
    
    /* Middle section with logo - smaller on mobile */
    .section._20vh {
        height: auto;
        min-height: 15vh;
        padding: 2rem 0;
    }
    
    /* Center the logo container */
    .grid-70-30 .logo-container {
        text-align: center;
        margin: 0 auto;
    }
    
    .grid-70-30 .logo {
        text-align: left;
    }
    
    .grid-70-30 .logo-text,
    .grid-70-30 .logo-link {
        font-size: 1.5rem !important;
    }

    .home-nav-menu {
        justify-content: center;
    }

    .grid-70-30 .nav-menu,
    .grid-70-30 .nav-menu-desktop,
    .grid-70-30 ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .grid-70-30 .nav-menu a,
    .grid-70-30 .nav-menu-desktop a {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    
    /* Home page mobile navigation - use dark bg for contrast with white section */
    body.elkhanah-home #mobile-navigation {
        background: rgba(0, 0, 0, 0.95) !important;
    }
    
    /* Center logo on home page middle section */
    body.home .grid-70-30 .logo-container {
        text-align: center;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE LANDSCAPE (max-width: 767px)
   ========================================================================== */
@media screen and (max-width: 767px) {
    h1 {
        font-size: 2.4rem;
    }

    .section._20vh {
        height: auto;
        min-height: 20vh;
        padding: 2rem 0;
    }

    .grid-70-30 .nav-menu a,
    .grid-70-30 .nav-menu-desktop a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    .grid-70-30 .logo-text,
    .grid-70-30 .logo-text a,
    .grid-70-30 .logo a {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE PORTRAIT (max-width: 479px)
   ========================================================================== */
@media screen and (max-width: 479px) {
    h1 {
        font-size: 2rem;
    }

    .section.viewport-end-left.height-55.hero-6-image._40vh.home-top-hero {
        height: 50vh;
    }

    .grid-70-30 .logo-text,
    .grid-70-30 .logo-text a,
    .grid-70-30 .logo a {
        font-size: 1.2rem;
    }

    .grid-70-30 .nav-menu a,
    .grid-70-30 .nav-menu-desktop a {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   RESPONSIVE - Small screens between 799px and 1176px
   ========================================================================== */
@media only screen and (min-width: 799px) and (max-width: 1176px) {
    .grid-70-30 .logo-text,
    .grid-70-30 .logo a {
        font-size: 1.3rem;
    }

    .grid-70-30 .nav-menu a,
    .grid-70-30 .nav-menu-desktop a {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.85rem;
    }
}


/* ==========================================================================
   PAGE STYLES
   For standard WordPress pages and posts
   ========================================================================== */

/**
 * Elkhanah Page & Post Styles
 * Matches the Press/Projects page design
 * Hero section, red background accent, white content box with drop shadow
 *
 * @package Tune_Child
 * @version 1.3.6
 */

/* ==========================================================================
   CSS Variables - Same as Press/Projects
   ========================================================================== */
:root {
    --elkhanah-primary: #3b4c52;
    --elkhanah-secondary: #f03d3d;
    --elkhanah-white: #ffffff;
    --elkhanah-black: #000000;
    --elkhanah-black-font: black;
    --elkhanah-white-font: white;
    --elkhanah-light-bg: #f7f7f7;
    --elkhanah-shadow: 0 0 2.5rem rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   HEADER CLEANUP - Same as Press page
   Hide ALL duplicate/unwanted elements on pages using this template
   ========================================================================== */

/* CRITICAL: Hide duplicate upper-menu rows - only show first one */
.page .upper-menu ~ .upper-menu,
.home .upper-menu ~ .upper-menu,
.single .upper-menu ~ .upper-menu,
.blog .upper-menu ~ .upper-menu,
.archive .upper-menu ~ .upper-menu,
.search .upper-menu ~ .upper-menu {
    display: none !important;
}

/* Hide any duplicate nav-bar elements */
.page #nav-bar ~ #nav-bar,
.home #nav-bar ~ #nav-bar,
.single #nav-bar ~ #nav-bar {
    display: none !important;
}

/* Hide duplicate flex-wrap containers */
.page #nav-bar .flex-wrap ~ .flex-wrap,
.home #nav-bar .flex-wrap ~ .flex-wrap,
.single #nav-bar .flex-wrap ~ .flex-wrap {
    display: none !important;
}

/* Mobile menu handled responsively in GLOBAL STYLES section above */

/* Hide duplicate lower menu */
.page .lower-menu,
.home .lower-menu,
.single .lower-menu,
.blog .lower-menu,
.archive .lower-menu,
.search .lower-menu {
    display: none !important;
}

/* Hide all CTA containers */
.page .cta-container,
.home .cta-container,
.single .cta-container,
.blog .cta-container,
.archive .cta-container,
.search .cta-container {
    display: none !important;
}

/* Hide all social icons in header */
.page #masthead .socials,
.page #masthead .social-links,
.page #masthead .wolf-social-icons,
.home #masthead .socials,
.home #masthead .social-links,
.home #masthead .wolf-social-icons,
.single #masthead .socials,
.single #masthead .social-links,
.single #masthead .wolf-social-icons,
.blog #masthead .socials,
.archive #masthead .socials,
.search #masthead .socials {
    display: none !important;
}

/* Hide "Back to top" link */
.page a#back-to-top,
.home a#back-to-top,
.single a#back-to-top,
.blog a#back-to-top,
.archive a#back-to-top,
.search a#back-to-top {
    display: none !important;
}

/* Hide the bumper div */
.page .bumper,
.home .bumper,
.single .bumper,
.blog .bumper,
.archive .bumper,
.search .bumper {
    display: none !important;
}

/* Hide the search form in nav */
.page .nav-search-form,
.home .nav-search-form,
.single .nav-search-form,
.blog .nav-search-form,
.archive .nav-search-form,
.search .nav-search-form {
    display: none !important;
}

/* Hide stray text in header */
.page #masthead > p,
.page #masthead > .site-name,
.page p.site-name,
.page p.site-description,
.home #masthead > p,
.home #masthead > .site-name,
.single #masthead > p,
.single #masthead > .site-name,
.blog #masthead > p,
.archive #masthead > p,
.search #masthead > p {
    display: none !important;
}

/* Hide direct text nodes in header-content */
.page #header-content,
.home #header-content,
.single #header-content,
.blog #header-content,
.archive #header-content,
.search #header-content {
    font-size: 0;
    line-height: 0;
}

/* Restore font size for child elements */
.page #header-content *,
.home #header-content *,
.single #header-content *,
.blog #header-content *,
.archive #header-content *,
.search #header-content * {
font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 300;
}

/* ==========================================================================
   HEADER - Clean Navigation with Gradient (same as Press)
   ========================================================================== */

.page #masthead,
.page .site-header,
.home #masthead,
.home .site-header,
.single #masthead,
.single .site-header,
.blog #masthead,
.blog .site-header,
.archive #masthead,
.archive .site-header,
.search #masthead,
.search .site-header {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%) !important;
    border: none !important;
    box-shadow: none !important;
}

/* Header content wrapper */
.page #header-content,
.home #header-content,
.single #header-content,
.blog #header-content,
.archive #header-content,
.search #header-content {
    padding: 0 !important;
    background: transparent !important;
}

/* Upper menu container */
.page .upper-menu,
.home .upper-menu,
.single .upper-menu,
.blog .upper-menu,
.archive .upper-menu,
.search .upper-menu {
    display: block !important;
    padding: 0;
    background: transparent !important;
}

/* Desktop navigation container */
.page #desktop-navigation,
.home #desktop-navigation,
.single #desktop-navigation,
.blog #desktop-navigation,
.archive #desktop-navigation,
.search #desktop-navigation {
    display: block !important;
}

/* ==========================================================================
   NAVIGATION MENU - White text (same as Press)
   ========================================================================== */

.page .nav-menu a,
.page .nav-menu-desktop a,
.page .nav-menu a,
.page .nav-menu-desktop a,
.single .nav-menu a,
.single .nav-menu-desktop a,
.blog .nav-menu a,
.archive .nav-menu a,
.search .nav-menu a {
    color: var(--elkhanah-white) !important;
    font-family: "agenda", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: capitalize;
}

.page .nav-menu .current-menu-item a,
.single .nav-menu .current-menu-item a,
.blog .nav-menu .current-menu-item a,
.archive .nav-menu .current-menu-item a,
.search .nav-menu .current-menu-item a {
    color: var(--elkhanah-primary) !important;
}

/* ==========================================================================
   LOGO - Show light version (same as Press)
   NOTE: .home is excluded - it handles its own logo in .grid-70-30
   ========================================================================== */

.page .logo-img.logo-dark,
.page img.logo-dark,
.single .logo-img.logo-dark,
.single img.logo-dark,
.blog .logo-img.logo-dark,
.archive .logo-img.logo-dark,
.search .logo-img.logo-dark {
    display: none !important;
}

.page .logo-img.logo-light,
.page img.logo-light,
.single .logo-img.logo-light,
.single img.logo-light,
.blog .logo-img.logo-light,
.archive .logo-img.logo-light,
.search .logo-img.logo-light {
    display: block !important;
    max-height: 50px;
    width: auto;
}

/* ==========================================================================
   Reset/Override Parent Theme Styles
   ========================================================================== */

.page,
.home,
.single,
.blog,
.archive,
.search {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.page #page,
.page #content,
.page #main,
.page .site-content,
.home #page,
.home #content,
.home #main,
.home .site-content,
.single #page,
.single #content,
.single #main,
.single .site-content,
.blog #page,
.blog #content,
.blog #main,
.blog .site-content,
.archive #page,
.archive #content,
.archive #main,
.archive .site-content,
.search #page,
.search #content,
.search #main,
.search .site-content {
padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.page .content-inner,
.home .content-inner,
.single .content-inner,
.blog .content-inner,
.archive .content-inner,
.search .content-inner {
    padding: 0 !important;
}

/* Hide default theme page elements */
.page .entry-header,
.page .page-header,
.page .archive-header,
.page .wolf-post-before,
.page .wolf-page-title,
.page h1.entry-title,
.page h1.page-title,
.page .page-title-container,
.home .entry-header,
.home h1.entry-title,
.single .entry-header,
.blog .page-header,
.archive .archive-header {
    display: none !important;
}

/* ==========================================================================
   PAGE HERO SECTION
   Full-width hero with overlay and title
   ========================================================================== */

.elkhanah-page-hero {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 380px;
    background-color: var(--elkhanah-black);
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0), #000), 
                      url("https://elkhanah.com/wp-content/uploads/2026/02/banner-22.jpg");
    background-position: 0 0, 50% 0;
    background-size: auto, cover;
    background-repeat: repeat, no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
        background-size: 100%;
}

/* Short hero for blog listing */
.elkhanah-page-hero.elkhanah-page-hero-short {
    height: 35vh;
    min-height: 280px;
}

/* Hero content - positioned bottom right */
.elkhanah-page-hero-content {
    position: absolute;
    bottom: 4rem;
    right: 0;
    z-index: 2;
    text-align: right;
    padding-bottom: 35px;
    width: 100%;
    text-align: center;
}


.elkhanah-page-hero h1 {
font-family: "agenda", sans-serif;
    font-size: 3.8rem;
    font-weight: 200;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}

/* Hero tagline */
.elkhanah-page-tagline {
    font-family: "agenda", sans-serif;
    font-size: 1.25rem;
    font-weight: 100;
    color: var(--elkhanah-white);
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

/* ==========================================================================
   PAGE SECTION - Main content area with red background
   ========================================================================== */

.elkhanah-page-section {
    position: relative;
    background-color: var(--elkhanah-light-bg);
    padding: 0;
    min-height: 100px;
    overflow: visible;
    width: 100%;
}

/* Red background element - left 50% */
.elkhanah-page-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
}

/* Content container */
.elkhanah-page-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5%;
    padding-right: 5%;
}

/* ==========================================================================
   CONTENT BOX - White box with drop shadow
   ========================================================================== */

.elkhanah-page-content {
    position: relative;
    z-index: 1;
}

.elkhanah-page-box {
        background-color: #f7f7f7;
    box-shadow: none;
    padding: 2rem 4rem 0;
    margin-top: -4rem; /* Overlap hero */
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   TYPOGRAPHY - Same fonts as Press page
   ========================================================================== */

.elkhanah-page-text {
    font-family: "agenda", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--elkhanah-black-font);
    letter-spacing: 0.02em;

}

.page-id-30 .elkhanah-page-text {
        text-align: center;
}

.elkhanah-page-text h1,
.elkhanah-page-text h2,
.elkhanah-page-text h3,
.elkhanah-page-text h4,
.elkhanah-page-text h5,
.elkhanah-page-text h6 {
    font-family: "agenda", sans-serif;
    font-weight: 300;
    line-height: 1.3;
    color: var(--elkhanah-black-font);
    margin-top: 0;
    margin-bottom: 0;
}
.home footer#colophon {
    display: none;
}

.elkhanah-page-text h1:first-child,
.elkhanah-page-text h2:first-child,
.elkhanah-page-text h3:first-child {
    margin-top: 0;
        text-align: center;
}

.elkhanah-page-text h1 { font-size: 2.5rem; }
.elkhanah-page-text h2 { font-size: 2rem; }
.elkhanah-page-text h3 { font-size: 1.55rem; }
.elkhanah-page-text h4 { font-size: 1.5rem; }
.elkhanah-page-text h5 { font-size: 1.25rem; }
.elkhanah-page-text h6 { font-size: 1.125rem; }

.elkhanah-page-text p {
    margin-bottom: 1.5rem;
}

.elkhanah-page-text p:last-child {
    margin-bottom: 0;
}

.elkhanah-page-text a {
    color: var(--elkhanah-primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

.elkhanah-page-text a:hover {
    color: var(--elkhanah-secondary);
    text-decoration: underline;
}

.elkhanah-page-text ul,
.elkhanah-page-text ol {
    margin: 0 0 1.5rem 1.5rem;
    padding: 0;
}

.elkhanah-page-text li {
    margin-bottom: 0.5rem;
}

.elkhanah-page-text blockquote {
    font-style: italic;
    border-left: 4px solid var(--elkhanah-primary);
    margin: 2rem 0;
    padding: 1rem 2rem;
    background: var(--elkhanah-light-bg);
}

.elkhanah-page-text img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

/* Divider line - Same as Press */
.elkhanah-page-divider {
    background-color: var(--elkhanah-primary);
    width: 3.125rem;
    height: 0.1875rem;
    margin: 1.5rem 0;
}

.page-id-2 .elkhanah-page-text blockquote {
    position: relative;
    max-width: 40ch;
    margin: 0.3rem auto 1rem;
    padding: 1.5rem 1rem 0.4rem;
    border: 0;
    background: none;
    text-align: center;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.5rem, 1rem + 1.8vw, 2.25rem);
    line-height: 1.4;
}

/* Oversized, faded opening quote sitting behind the text */
.page-id-2 .elkhanah-page-text blockquote::before {
    content: "\201C";
    position: absolute;
    top: -0.03em;
    left: -2%;
    transform: translateX(-50%);
    z-index: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-style: normal;
    font-weight: 100;
    font-size: clamp(6rem, 4rem + 15vw, 13rem);
    line-height: 1;
    color: var(--elkhanah-primary);
    opacity: 0.12;
    pointer-events: none;
}

/* Keep the text above the faded quote; kill default <p> spacing */
.page-id-2 .elkhanah-page-text blockquote p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-style: normal;
    font-weight: 100;
    font-size: 2.6rem;
    line-height: 108%;
}

/* Bold words inside the quote pop in the accent slate */
.page-id-2 .elkhanah-page-text blockquote strong,
.page-id-2 .elkhanah-page-text blockquote b {
    font-weight: 600;
    color: var(--elkhanah-primary);
}


/* ==========================================================================
   BUTTON - Same as Press
   ========================================================================== */

.elkhanah-page-button {
    display: inline-block;
    border: 0.0625rem solid var(--elkhanah-primary);
    background-color: var(--elkhanah-primary);
    color: var(--elkhanah-white-font);
    text-align: center;
    letter-spacing: 0.0625rem;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    font-family: "agenda-condensed", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s, border-color 0.25s, background-color 0.25s;
    margin-top: 1rem;
}

.elkhanah-page-button:hover {
    border-color: var(--elkhanah-secondary);
    background-color: var(--elkhanah-secondary);
    color: var(--elkhanah-white-font);
    text-decoration: none;
}

/* ==========================================================================
   BLOG LIST - For index.php
   ========================================================================== */

.elkhanah-blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.elkhanah-blog-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: transparent;
    position: relative;
    padding: 3rem 0;
}

.elkhanah-blog-item:first-child {
    padding-top: 0;
}

/* Blog item image */
.elkhanah-blog-image {
    flex: 0 0 40%;
    max-width: 400px;
    overflow: hidden;
}

.elkhanah-blog-image a {
    display: block;
}

.elkhanah-blog-image img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.elkhanah-blog-image:hover img {
    transform: scale(1.03);
}

/* Blog item content box */
.elkhanah-blog-box {
    flex: 1;
    background-color: var(--elkhanah-white);
    box-shadow: none;
    padding: 2rem 2.5rem;
    margin-left: -2rem;
    position: relative;
    z-index: 1;
    align-self: center;
}

/* No image - full width box */
.elkhanah-blog-item:not(:has(.elkhanah-blog-image)) .elkhanah-blog-box {
    margin-left: 0;
}

/* Blog meta */
.elkhanah-blog-meta {
    font-family: "agenda-condensed", sans-serif;
    font-size: 0.8125rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.elkhanah-blog-meta span {
    display: inline-block;
}

.elkhanah-blog-meta span + span::before {
    content: " | ";
    margin: 0 0.5rem;
}

.elkhanah-blog-category a {
    color: var(--elkhanah-primary);
    text-decoration: none;
}

/* Blog title */
.elkhanah-blog-title {
    font-family: "agenda", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

.elkhanah-blog-title a {
    color: var(--elkhanah-black-font);
    text-decoration: none;
    transition: color 0.25s ease;
}

.elkhanah-blog-title a:hover {
    color: var(--elkhanah-primary);
}

/* Blog excerpt */
.elkhanah-blog-excerpt {
    font-family: "agenda", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--elkhanah-black-font);
    margin-bottom: 0.5rem;
}

.elkhanah-blog-excerpt p {
    margin: 0;
}

/* ==========================================================================
   SINGLE POST STYLES
   ========================================================================== */

.elkhanah-post-meta {
    font-family: "agenda-condensed", sans-serif;
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.elkhanah-post-meta span {
    display: inline-block;
}

.elkhanah-post-meta span + span::before {
    content: " | ";
    margin: 0 0.5rem;
}

.elkhanah-post-categories a {
    color: var(--elkhanah-primary);
    text-decoration: none;
}

.elkhanah-post-tags {
    font-family: "agenda", sans-serif;
    font-size: 0.875rem;
    color: #666;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.elkhanah-post-tags a {
    color: var(--elkhanah-primary);
    text-decoration: none;
}

/* Post navigation */
.elkhanah-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.elkhanah-post-nav-link {
    flex: 1;
    text-decoration: none;
    padding: 1rem;
    background: var(--elkhanah-light-bg);
    transition: background 0.25s ease;
}

.elkhanah-post-nav-link:hover {
    background: #eee;
}

.elkhanah-post-prev {
    text-align: left;
}

.elkhanah-post-next {
    text-align: right;
}

.elkhanah-post-nav-label {
    display: block;
    font-family: "agenda-condensed", sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 0.25rem;
}

.elkhanah-post-nav-title {
    display: block;
    font-family: "agenda", sans-serif;
    font-size: 1rem;
    color: var(--elkhanah-black-font);
    line-height: 1.4;
}

/* ==========================================================================
   PAGINATION - Same as Press
   ========================================================================== */

.elkhanah-page-section .navigation.pagination {
    padding: 3rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.elkhanah-page-section .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.elkhanah-page-section .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--elkhanah-white);
    color: var(--elkhanah-black);
    text-decoration: none;
    font-family: "agenda", sans-serif;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.elkhanah-page-section .page-numbers:hover,
.elkhanah-page-section .page-numbers.current {
    background: var(--elkhanah-black);
    color: var(--elkhanah-white);
}

/* ==========================================================================
   NO CONTENT / WELCOME SECTION
   ========================================================================== */

.elkhanah-no-content,
.elkhanah-page-welcome {
    text-align: center;
    padding: 2rem 0;
}

.elkhanah-no-content h2,
.elkhanah-page-welcome h2 {
    margin-top: 0;
}

.elkhanah-no-content .elkhanah-page-divider,
.elkhanah-page-welcome .elkhanah-page-divider {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   PAGE LINKS (for paginated posts)
   ========================================================================== */

.elkhanah-page-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-family: "agenda", sans-serif;
}

.elkhanah-page-links .page-links-title {
    margin-right: 0.5rem;
}

.elkhanah-page-links a {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0 0.25rem;
    background: var(--elkhanah-light-bg);
    color: var(--elkhanah-black-font);
    text-decoration: none;
}

.elkhanah-page-links a:hover {
    background: var(--elkhanah-primary);
    color: var(--elkhanah-white);
}

/* ==========================================================================
   WORDPRESS CONTENT CLASSES
   ========================================================================== */

/* Alignments */
.elkhanah-page-text .alignleft {
    float: left;
    margin: 0 2rem 1.5rem 0;
}

.elkhanah-page-text .alignright {
    float: right;
    margin: 0 0 1.5rem 2rem;
}

.elkhanah-page-text .aligncenter {
    display: block;
    margin: 1.5rem auto;
}

/* Captions */
.elkhanah-page-text .wp-caption {
    max-width: 100%;
    margin: 1.5rem 0;
}

.elkhanah-page-text .wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* Galleries */
.elkhanah-page-text .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.elkhanah-page-text .gallery-item {
    margin: 0;
}

/* Tables */
.elkhanah-page-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.elkhanah-page-text th,
.elkhanah-page-text td {
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    text-align: left;
}

.elkhanah-page-text th {
    background: var(--elkhanah-light-bg);
    font-weight: 600;
}

/* ==========================================================================
   FOOTER - Same as Press
   ========================================================================== */

.page #colophon,
.page .site-footer,
.home #colophon,
.home .site-footer,
.single #colophon,
.single .site-footer,
.blog #colophon,
.blog .site-footer,
.archive #colophon,
.archive .site-footer,
.search #colophon,
.search .site-footer {
    background: #f7f7f7;
    color: var(--elkhanah-white);
}

/* ==========================================================================
   HOMEPAGE - New Layout with Slideshow
   ========================================================================== */

/* Homepage uses standard header but with dark logo/fonts */
body.home #masthead,
body.home.elkhanah-home #masthead,
body.elkhanah-home #masthead {
    background: transparent !important;
}

/* CRITICAL: Hide duplicate lower navigation on homepage */
body.home .lower-menu,
body.home #header-content > .lower-menu,
body.home #desktop-navigation.lower-menu,
body.elkhanah-home .lower-menu,
body.elkhanah-home #desktop-navigation.lower-menu {
    display: none !important;
}

/* Dark logo on homepage header (desktop only) */
body.home #masthead .logo .logo-light,
body.home.elkhanah-home #masthead .logo .logo-light,
body.elkhanah-home #masthead .logo .logo-light {
    display: none !important;
}

body.home #masthead .logo .logo-dark,
body.home.elkhanah-home #masthead .logo .logo-dark,
body.elkhanah-home #masthead .logo .logo-dark {
    display: inline-block !important;
}

/* Dark text for homepage nav */
body.home #masthead .nav-menu a,
body.home #masthead .nav-menu-desktop a,
body.home.elkhanah-home #masthead .nav-menu a,
body.elkhanah-home #masthead .nav-menu a {
    color: #000 !important;
    padding: 0.5rem 0 0 1rem !important;
}

body.home #masthead .nav-menu a:hover,
body.home #masthead .nav-menu-desktop a:hover,
body.home.elkhanah-home #masthead .nav-menu a:hover,
body.elkhanah-home #masthead .nav-menu a:hover,
body.home #masthead .current-menu-item > a,
body.elkhanah-home #masthead .current-menu-item > a {
    color: var(--elkhanah-primary, #3b4c52) !important;
}

/* Homepage front page container */
.elkhanah-front-page {
    background: #f7f7f7;
    padding-top: 110px; /* Account for absolutely positioned header */
}

/* ==========================================================================
   HOMEPAGE SLIDESHOW
   ========================================================================== */

.elkhanah-slideshow-section {
    width: 100%;
    padding: 0 12%;
    box-sizing: border-box;
    max-width: 95rem;
    margin: 0 auto;
}

.elkhanah-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.elkhanah-slideshow-track {
    position: relative;
    width: 100%;
    padding-bottom: 55%;
}

.elkhanah-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.elkhanah-slide.active {
    opacity: 1;
    z-index: 2;
}

.elkhanah-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Slideshow navigation dots */
.elkhanah-slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.elkhanah-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.elkhanah-dot:hover,
.elkhanah-dot.active {
    background: rgba(255, 255, 255, 1);
}

/* ==========================================================================
   HOMEPAGE CONTENT SECTION
   ========================================================================== */

.elkhanah-home-content {
    width: 100%;
    padding: 0.2rem 0 0;
    background: transparent;
}

.elkhanah-home-content-inner {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Style content from WordPress editor on homepage */
.elkhanah-home-content-inner p {
    font-family: 'Lato', sans-serif;
    line-height: 130%;
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}

.elkhanah-home-content-inner h1,
.elkhanah-home-content-inner h2,
.elkhanah-home-content-inner h3,
.elkhanah-home-content-inner h4 {
    font-family: "agenda", sans-serif;
    text-align: center;
    color: #000;
    margin-bottom: 1rem;
}

.elkhanah-home-content-inner a {
    color: var(--elkhanah-primary, #3b4c52);
    text-decoration: none;
}

.elkhanah-home-content-inner a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   HOMEPAGE RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 798px) {
    .elkhanah-front-page {
        padding-top: 80px; /* Smaller header on tablet */
    }
    
    .elkhanah-slideshow-section {
        padding: 0 15%;
    }
    
    .elkhanah-home-content-inner {
        max-width: 85%;
    }
    
    .elkhanah-slideshow-track {
        /* Slightly taller on tablet */
        padding-bottom: 75%;
    }
    
    /* MOBILE: Switch homepage header to light logo */
    /* The mobile navigation (#mobile-navigation) shows on smaller screens */
    body.home #mobile-navigation .logo .logo-dark,
    body.home.elkhanah-home #mobile-navigation .logo .logo-dark,
    body.elkhanah-home #mobile-navigation .logo .logo-dark {
        display: none !important;
    }
    
    body.home #mobile-navigation .logo .logo-light,
    body.home.elkhanah-home #mobile-navigation .logo .logo-light,
    body.elkhanah-home #mobile-navigation .logo .logo-light {
        display: inline-block !important;
    }
    
    /* Also swap hamburger icon color to be visible */
    body.home #mobile-navigation .hamburger-icon .line,
    body.elkhanah-home #mobile-navigation .hamburger-icon .line {
        background-color: #ffffff !important;
    }
}

@media screen and (max-width: 479px) {
    .elkhanah-front-page {
        padding-top: 60px; /* Even smaller header on mobile */
    }
    
    .elkhanah-slideshow-section {
        padding: 0;
    }
    
    .elkhanah-home-content-inner {
        max-width: 90%;
        padding: 0 1rem;
    }
    
    .elkhanah-slideshow-track {
        /* Even taller on mobile for better visibility */
        padding-bottom: 80%;
    }
    
    .elkhanah-home-content-inner p {
        font-size: 1rem;
    }
    
    .elkhanah-slideshow-dots {
        bottom: 15px;
    }
    
    .elkhanah-dot {
        width: 8px;
        height: 8px;
    }
}

/* ==========================================================================
   ELKHANAH CUSTOM FOOTER - Matches original Webflow site
   ========================================================================== */

.elkhanah-footer {
    background-color: transparent;
    padding: 4rem 5% 4rem;
    text-align: center;
}

.elkhanah-footer .elkhanah-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Footer Logo/Wordmark */
.elkhanah-footer .elkhanah-footer-logo {
    margin-bottom: 15px;
}

.elkhanah-footer .elkhanah-footer-logo .logo,
.elkhanah-footer .elkhanah-footer-logo .logo-container {
    display: flex;
    justify-content: center;
}

.elkhanah-footer .elkhanah-footer-logo .logo-link {
    text-decoration: none;
}

.elkhanah-footer .elkhanah-footer-logo .logo-img,
.elkhanah-footer .elkhanah-footer-logo img {
    max-height: 40px;
    width: auto;
}

/* Show dark logo in footer (light background) */
.elkhanah-footer .elkhanah-footer-logo .logo-light,
body.skin-light .elkhanah-footer .logo .logo-light,
body.skin-light .elkhanah-footer .elkhanah-footer-logo .logo-light {
    display: none !important;
}

.elkhanah-footer .elkhanah-footer-logo .logo-dark,
body.skin-light .elkhanah-footer .elkhanah-footer-logo .logo-dark,
body.skin-light .elkhanah-footer .logo .logo-dark {
    display: inline-block !important;
}

/* Also handle logo inside footer-inner for theme variations */
body.skin-light .elkhanah-footer-inner .logo .logo-light {
    display: none !important;
}

body.skin-light .elkhanah-footer-inner .logo .logo-dark {
    display: inline-block !important;
}

.elkhanah-footer .elkhanah-footer-logo .logo-text,
.elkhanah-footer .elkhanah-footer-wordmark {
    font-family: "agenda", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.02em;
}

/* Footer Navigation */
.elkhanah-footer .elkhanah-footer-nav {
    margin: 0;
}

.elkhanah-footer .elkhanah-footer-nav ul,
.elkhanah-footer .elkhanah-footer-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.elkhanah-footer .elkhanah-footer-nav li,
.elkhanah-footer .elkhanah-footer-menu li {
    margin: 0;
    padding: 0;
}

/* Footer nav links - qualified to not affect header */
.elkhanah-footer .elkhanah-footer-nav ul a,
.elkhanah-footer .elkhanah-footer-menu a,
body.elkhanah-unified .elkhanah-footer-nav ul a {
    font-family: "agenda", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #000000 !important;
    text-decoration: none;
    transition: color 0.25s ease;
}

.elkhanah-footer .elkhanah-footer-nav ul a:hover,
.elkhanah-footer .elkhanah-footer-menu a:hover {
    color: var(--elkhanah-primary, #3b4c52) !important;
}

.elkhanah-footer .elkhanah-footer-nav .current-menu-item a,
.elkhanah-footer .elkhanah-footer-menu .current-menu-item a {
    color: var(--elkhanah-primary, #3b4c52) !important;
}

/* Footer Social Icons */
.elkhanah-footer .elkhanah-footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin: 0.5rem 0;
}

.elkhanah-footer .elkhanah-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: color 0.25s ease, transform 0.25s ease;
}

.elkhanah-footer .elkhanah-social-link:hover {
    color: var(--elkhanah-primary, #3b4c52);
    transform: scale(1.1);
}

.elkhanah-social-link svg {
    width: 24px;
    height: 24px;
}

/* Also style any wolf theme social icons in footer */
.elkhanah-footer .wolf-social-icons,
.elkhanah-footer .socials {
    display: flex !important;
    justify-content: center;
    gap: 1.25rem;
}

.elkhanah-footer .wolf-social-icons a,
.elkhanah-footer .socials a {
    color: #000 !important;
    font-size: 1.25rem;
}

.elkhanah-footer .wolf-social-icons a:hover,
.elkhanah-footer .socials a:hover {
    color: var(--elkhanah-primary, #3b4c52) !important;
}

/* Footer Copyright */
.elkhanah-footer-copyright {
    margin-top: 0.5rem;
}

.elkhanah-footer-copyright p {
    font-family: "agenda", sans-serif;
    font-size: 0.875rem;
    color: #000;
    margin: 0;
}

/* Hide default theme bottom bar elements we don't need */
.elkhanah-footer ~ .bottom-bar,
.elkhanah-footer ~ #bottom-bar {
    display: none;
}

/* Hide duplicate footer section with social icons and copyright */
.elkhanah-footer ~ .site-infos,
.site-infos.clearfix,
#colophon .site-infos,
.site-footer .site-infos {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE - Tablet (798px)
   ========================================================================== */

@media screen and (max-width: 798px) {
    /* Mobile navigation handled in GLOBAL STYLES section */
    
    .elkhanah-page-hero {
        height: 35vh;
        min-height: 280px;
    }
    
    .elkhanah-page-hero h1 {
        font-size: 3.5rem;
    }
    
    .elkhanah-page-hero-content {
        right: 5%;
        bottom: 2rem;
    }
    
    .elkhanah-page-box {
        padding: 2rem 2.5rem;
    }
    
    .elkhanah-page-bg {
        width: 100%;
    }
    
    .elkhanah-blog-item {
        flex-direction: column;
    }
    
    .elkhanah-blog-image {
        flex: 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    .elkhanah-blog-image img {
        min-height: 200px;
    }
    
    .elkhanah-blog-box {
        margin-left: 0;
        width: 100%;
    }
}

/* ==========================================================================
   RESPONSIVE - Mobile (767px)
   ========================================================================== */

@media screen and (max-width: 767px) {
    .elkhanah-page-hero {
        height: 30vh;
        min-height: 220px;
    }
    
    .elkhanah-page-hero-content {
        padding: 1.5rem 5%;
        bottom: 1.5rem;
    }
    
    .elkhanah-page-hero h1 {
        font-size: 2.5rem;
    }
    
    .elkhanah-page-tagline {
        font-size: 1rem;
    }
    
    .elkhanah-page-box {
        padding: 1.5rem;
        margin-top: -2rem;
    }
    
    .elkhanah-page-text h1 { font-size: 2rem; }
    .elkhanah-page-text h2 { font-size: 1.75rem; }
    .elkhanah-page-text h3 { font-size: 1.5rem; }
    
    .elkhanah-blog-title {
        font-size: 1.25rem;
    }
    
    .elkhanah-post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Footer mobile */
    .elkhanah-footer {
        padding: 3rem 5% 2rem;
    }
    
    .elkhanah-footer .elkhanah-footer-inner {
        gap: 0.5rem;
    }
    
    .elkhanah-footer .elkhanah-footer-menu {
        gap: 1.5rem;
    }
    
    .elkhanah-footer .elkhanah-footer-menu a {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   RESPONSIVE - Small Mobile (479px)
   ========================================================================== */

@media screen and (max-width: 479px) {
    .elkhanah-page-hero h1 {
        font-size: 2rem;
    }
    
    .elkhanah-page-box {
        padding: 0.8rem 1.25rem 1.25rem;
    }
    
    .elkhanah-page-button {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    /* Footer small mobile */
    .elkhanah-footer {
        padding: 2rem 5% 2rem;
    }
    
    .elkhanah-footer .elkhanah-footer-inner {
        gap: 0.5rem;
    }
    
    .elkhanah-footer .elkhanah-footer-menu {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .elkhanah-footer .elkhanah-footer-logo .logo-img,
    .elkhanah-footer .elkhanah-footer-logo img {
        max-height: 32px;
    }
}


/* ==========================================================================
   PRESS ARCHIVE STYLES
   ========================================================================== */

/**
 * Elkhanah Press Archive Styles
 * Exact match to Webflow design at elkhanah.com/press
 *
 * @package Tune_Child
 * @version 1.0.9
 */

/* ==========================================================================
   CSS Variables - Exact Webflow values
   ========================================================================== */
:root {
    --elkhanah-primary: #3b4c52;
    --elkhanah-secondary: #f03d3d;
    --elkhanah-white: #f7f7f7;
    --elkhanah-black: #000000;
    --elkhanah-black-font: black;
    --elkhanah-white-font: white;
    --elkhanah-light-bg: #f7f7f7;
}

/* ==========================================================================
   HEADER CLEANUP - Hide ALL duplicate/unwanted elements
   ========================================================================== */

/* Hide the mobile menu panel that's showing on desktop */
/* Mobile menu handled responsively in GLOBAL STYLES section */

/* Hide duplicate lower menu */
.post-type-archive-press .lower-menu {
    display: none !important;
}

/* Hide all CTA containers */
.post-type-archive-press .cta-container {
    display: none !important;
}

/* Hide all social icons in header */
.post-type-archive-press #masthead .socials,
.post-type-archive-press #masthead .social-links,
.post-type-archive-press #masthead .wolf-social-icons,
.post-type-archive-press #header-content .socials {
    display: none !important;
}

/* Hide "Back to top" link */
.post-type-archive-press a#back-to-top,
.post-type-archive-press .back-to-top-visible {
    display: none !important;
}

/* Hide the bumper div */
.post-type-archive-press .bumper {
    display: none !important;
}

/* Hide the search form */
.post-type-archive-press .nav-search-form {
    display: none !important;
}

/* Hide stray text in header */
.post-type-archive-press #masthead > p,
.post-type-archive-press #masthead > .site-name,
.post-type-archive-press .site-header > p,
.post-type-archive-press p.site-name,
.post-type-archive-press p.site-description {
    display: none !important;
}

/* Hide direct text nodes in header-content */
.post-type-archive-press #header-content {
    font-size: 0;
    line-height: 0;
}

/* Restore font size for child elements */
.post-type-archive-press #header-content * {
 font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 300;
}

/* ==========================================================================
   HEADER - Clean Single Navigation with Gradient
   ========================================================================== */

/* Make header with gradient background */
.post-type-archive-press #masthead,
.post-type-archive-press .site-header {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%) !important;
    border: none !important;
    box-shadow: none !important;
}

/* Header content wrapper */
.post-type-archive-press #header-content {
    padding: 0 !important;
    background: transparent !important;
}

/* Desktop navigation container */
.post-type-archive-press #desktop-navigation {
    display: block !important;
}

.post-type-archive-press #desktop-navigation .nav-bar,
.post-type-archive-press #desktop-navigation #nav-bar,
.post-type-archive-press .nav-bar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent !important;
    padding: 0 !important;
}

.post-type-archive-press .nav-bar .flex-wrap {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* ==========================================================================
   LOGO - Force image logo, hide text logo
   ========================================================================== */

.post-type-archive-press .logo-container {
    display: block !important;
}

/* Hide text-based logo */
.post-type-archive-press .logo-text,
.post-type-archive-press .site-title,
.post-type-archive-press .logo a:not(:has(img)),
.post-type-archive-press .logo-container .site-title {
    display: none !important;
}

/* Force show logo images */
.post-type-archive-press .logo img,
.post-type-archive-press .logo-link img,
.post-type-archive-press .custom-logo {
    display: block !important;
    max-height: 50px;
    width: auto;
}

/* Hide dark logo by default, show light logo (for dark hero background) */
.post-type-archive-press .logo-img.logo-dark,
.post-type-archive-press img.logo-dark {
    display: none !important;
}

.post-type-archive-press .logo-img.logo-light,
.post-type-archive-press img.logo-light {
    display: block !important;
    max-height: 50px;
    width: auto;
}

/* When sticky/scrolled, flip logos */
.post-type-archive-press.sticking .logo-img.logo-dark,
.post-type-archive-press.sticking img.logo-dark {
    display: block !important;
}

.post-type-archive-press.sticking .logo-img.logo-light,
.post-type-archive-press.sticking img.logo-light {
    display: none !important;
}

/* ==========================================================================
   NAVIGATION MENU
   ========================================================================== */

.post-type-archive-press .menu-container {
    display: block !important;
}

.post-type-archive-press .nav-menu,
.post-type-archive-press .nav-menu-desktop {
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.post-type-archive-press .nav-menu .menu-item,
.post-type-archive-press .nav-menu-desktop .menu-item {
    display: block !important;
    margin: 0;
    padding: 0;
}

.post-type-archive-press .nav-menu .menu-link,
.post-type-archive-press .nav-menu-desktop .menu-link,
.post-type-archive-press .nav-menu a,
.post-type-archive-press .nav-menu-desktop a {
    color: var(--elkhanah-white) !important;
    font-family: "agenda", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: capitalize;
    transition: opacity 0.2s ease;
}

.post-type-archive-press .nav-menu .menu-link:hover,
.post-type-archive-press .nav-menu-desktop .menu-link:hover,
.post-type-archive-press .nav-menu a:hover,
.post-type-archive-press .nav-menu-desktop a:hover {
    opacity: 0.7;
}

/* Current menu item - red */
.post-type-archive-press .nav-menu .current-menu-item a,
.post-type-archive-press .nav-menu-desktop .current-menu-item a {
    color: var(--elkhanah-primary) !important;
}

/* ==========================================================================
   STICKY HEADER STATE - Also with gradient
   ========================================================================== */

.post-type-archive-press.sticking #masthead,
.post-type-archive-press.sticking .site-header {
    position: fixed !important;
    background: linear-gradient(to bottom, rgb(0 0 0 / 90%) 0%, rgb(0 0 0 / 39%) 70%, rgb(0 0 0 / 0%) 100%) !important;
    box-shadow: none !important;
}

/* Keep menu links white on sticky (since background is dark gradient) */
.post-type-archive-press.sticking .nav-menu a,
.post-type-archive-press.sticking .nav-menu-desktop a {
    color: var(--elkhanah-white) !important;
}

.post-type-archive-press.sticking .nav-menu .current-menu-item a,
.post-type-archive-press.sticking .nav-menu-desktop .current-menu-item a {
    color: var(--elkhanah-primary) !important;
}

.post-type-archive-press.sticking .logo-text {
    color: var(--elkhanah-white) !important;
}

/* Keep showing light logo when sticky (dark gradient background) */
.post-type-archive-press.sticking .logo-img.logo-dark,
.post-type-archive-press.sticking img.logo-dark {
    display: none !important;
}

.post-type-archive-press.sticking .logo-img.logo-light,
.post-type-archive-press.sticking img.logo-light {
    display: block !important;
}

/* ==========================================================================
   Reset/Override Parent Theme Styles
   ========================================================================== */

.post-type-archive-press {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.post-type-archive-press #page,
.post-type-archive-press #content,
.post-type-archive-press #main,
.post-type-archive-press .site-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    padding-top: 0 !important;
}

.post-type-archive-press .content-inner {
    padding: 0 !important;
}

/* ==========================================================================
   Hide Default Theme Page Elements
   ========================================================================== */

.post-type-archive-press .entry-header,
.post-type-archive-press .page-header,
.post-type-archive-press .archive-header,
.post-type-archive-press .wolf-post-before,
.post-type-archive-press .wolf-page-title,
.post-type-archive-press h1.entry-title,
.post-type-archive-press h1.page-title,
.post-type-archive-press .hero:not(.elkhanah-press-hero),
.post-type-archive-press .page-title-container {
    display: none !important;
}

/* ==========================================================================
   Press Hero Section
   ========================================================================== */

.elkhanah-press-hero {
    position: relative;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0), #000), 
                      url("https://elkhanah.com//wp-content/uploads/2026/02/banner-66.jpg");
    background-position: 0 0, 50% 0;
    background-size: auto, cover;
    background-repeat: repeat, no-repeat;
    height: 40vh;
    min-height: 380px;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
}




.elkhanah-press-hero h1 {
    font-family: "agenda", sans-serif;
    font-size: 4.4rem;
    font-weight: 100;
    line-height: 1.2;
    color: var(--elkhanah-white);
    margin: 0;
    text-shadow: 1px 1px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.03em;
}

/* ==========================================================================
   Press Section - Main Container
   ========================================================================== */

.elkhanah-press-section {
    position: relative;
    width: 100%;
    overflow: visible;
        padding-top: 30px;
}

.elkhanah-press-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5%;
    padding-right: 5%;
}

/* ==========================================================================
   Red Background - Left 50%
   ========================================================================== */

/* ==========================================================================
   Press Item Layout - Exact Webflow: .press-feature5_item
   ========================================================================== */

.elkhanah-press-item {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 0;
    padding-bottom: 5rem;
}

/* ==========================================================================
   Press Image - Exact Webflow: .press-feature5_image
   max-width: 70%, min-height: 34.375rem
   ========================================================================== */

.elkhanah-press-image {
    flex: 1;
    max-width: 62%;
    min-height: 34.375rem;
    margin-right: auto;
    position: relative;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.elkhanah-press-image img {
    width: 100%;
    height: 100%;
    min-height: 34.375rem;
    display: block;
    object-fit: cover;
}

.elkhanah-press-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Press Content Box - Centered vertically with box shadow
   width: 31.25rem, padding: 2.5rem
   ========================================================================== */

.elkhanah-press-box {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background-color: var(--elkhanah-white);
    width: 31.25rem;
    max-width: 31.25rem;
    padding: 2.5rem 0 2.5rem 2.5rem;
    box-shadow: none;
}

/* No image layout */
.elkhanah-press-item.no-image {
    justify-content: flex-start;
}

.elkhanah-press-item.no-image .elkhanah-press-box {
    position: static;
    width: 100%;
    max-width: 50rem;
    margin-left: 6.25rem;
}

/* ==========================================================================
   Typography - Exact Webflow values
   ========================================================================== */

/* Date - small uppercase text */
.elkhanah-press-date {
    font-family: "agenda", sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--elkhanah-black-font);
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    margin-bottom: 0;
    opacity: 0.7;
}

/* Publication - h5 italic style */
.elkhanah-press-publication {
    font-family: "agenda", sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    font-style: normal;
    color: var(--elkhanah-primary);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.5rem;
}


.elkhanah-press-title {
    font-family: "agenda", sans-serif;
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1;
    color: var(--elkhanah-black-font);
    margin-top: 0;
    margin-bottom: 20px;
}

/* Divider line - Exact: .press-feature5_line
   width: 3.125rem, height: 0.1875rem */
.elkhanah-press-divider {
    background-color: var(--elkhanah-primary);
    width: 5.125rem;
    height: 0.1875rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
        display: none;
}

/* Excerpt/description text */
.elkhanah-press-excerpt {
    font-family: "agenda", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--elkhanah-black-font);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    display: none;
}

.elkhanah-press-excerpt p {
    margin: 0;
}

/* ==========================================================================
   Blockquote - With quote icon background
   ========================================================================== */

.elkhanah-press-quote {

        font-family: "agenda", sans-serif;
    font-style: normal;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--elkhanah-black);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0 0 0 3rem;
    border: none;
    position: relative;
    background-image: url("https://cdn.prod.website-files.com/6554e81d585976b660224507/6554e81d585976b660224519_quote-icon.svg");
    background-position: 0% 0%;
    background-repeat: no-repeat;
    background-size: auto 2.15rem;
    margin-left: 0;
    margin-right: 0;
}

/* ==========================================================================
   Button - Exact Webflow: .button
   ========================================================================== */

.elkhanah-press-button {
    display: inline-block;
    border: 0.0625rem solid var(--elkhanah-primary);
    background-color: var(--elkhanah-primary);
    color: var(--elkhanah-white-font);
    text-align: center;
    letter-spacing: 0.0625rem;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}

.elkhanah-press-button:hover {
    border-color: #191919;
    background-color: #191919;
    color: var(--elkhanah-white-font);
    text-decoration: none;
}

/* ==========================================================================
   No Press Found
   ========================================================================== */

.elkhanah-no-press {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--elkhanah-white);
    font-family: "agenda", sans-serif;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.post-type-archive-press .navigation.pagination {
    padding: 3rem 5%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.post-type-archive-press .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-type-archive-press .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--elkhanah-white);
    color: var(--elkhanah-black);
    text-decoration: none;
    font-family: "agenda", sans-serif;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.post-type-archive-press .page-numbers:hover,
.post-type-archive-press .page-numbers.current {
    background: var(--elkhanah-black);
    color: var(--elkhanah-white);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.post-type-archive-press #colophon,
.post-type-archive-press .site-footer {
    background: #f7f7f7;
    color: var(--elkhanah-white);
}

/* ==========================================================================
   Responsive - Tablet (798px)
   Webflow breakpoint adjustments
   ========================================================================== */

@media screen and (max-width: 798px) {
    /* Hide desktop menu, show mobile */
    .post-type-archive-press .upper-menu,
    .post-type-archive-press #desktop-navigation {
        display: none !important;
    }
    
    .post-type-archive-press #mobile-navigation {
        display: block !important;
    }
    
    .post-type-archive-press .hamburger-container {
        display: block !important;
    }
    
    .elkhanah-press-hero {
        height: 35vh;
        min-height: 280px;
    }
    
    .elkhanah-press-hero-content {
        right: 5%;
        bottom: 2rem;
    }
    
    .elkhanah-press-hero h1 {
        font-size: 3.5rem;
    }
    
    /* Webflow tablet: .press-feature5_item */
    .elkhanah-press-item {
        flex-direction: column;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Webflow tablet: .press-feature5_image */
    .elkhanah-press-image {
        flex: 0 auto;
        width: 100%;
        max-width: 100%;
        min-height: 18.75rem;
    }
    
    .elkhanah-press-image img {
        min-height: 18.75rem;
    }
    
    /* Webflow tablet: .press-feature5_box */
    .elkhanah-press-box {
        position: static;
        top: auto;
        transform: none;
        width: 100%;
        max-width: none;
        padding: 2rem;
        box-shadow: none;
    }
    
    .elkhanah-press-item.no-image .elkhanah-press-box {
        margin-left: 0;
    }
    
    .elkhanah-press-bg {
        width: 100%;
    }
    
    /* Webflow tablet: max-width: 25rem on larger tablets */
    .elkhanah-press-box {
        max-width: 100%;
    }
}

/* ==========================================================================
   Responsive - Mobile (767px)
   ========================================================================== */

@media screen and (max-width: 767px) {
    .elkhanah-press-hero {
        height: 30vh;
        min-height: 220px;
    }
    
    .elkhanah-press-hero-content {
        right: 5%;
        bottom: 1.5rem;
    }
    
    .elkhanah-press-hero h1 {
        font-size: 2.5rem;
    }
    
    /* Webflow mobile: .press-feature5_item */
    .elkhanah-press-item {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .elkhanah-press-box {
        padding: 1.5rem;
    }
    
    .elkhanah-press-title {
        font-size: 1.5rem;
    }
    
    .elkhanah-press-publication {
        font-size: 1.125rem;
    }
    
    /* Press quote - smaller and more full width on mobile */
    .elkhanah-press-quote {
        font-size: 0.875rem;
        padding-left: 2rem;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        background-size: auto 1.75rem;
    }
}

/* ==========================================================================
   Responsive - Small Mobile (479px)
   ========================================================================== */

@media screen and (max-width: 479px) {
    .elkhanah-press-hero h1 {
        font-size: 2.5rem;
    }
    
    .elkhanah-press-box {
        padding: 1.25rem;
    }
    
    .elkhanah-press-title {
        font-size: 1.25rem;
    }
    
    .elkhanah-press-publication {
        font-size: 1rem;
    }
    
    .elkhanah-press-button {
        display: block;
        text-align: center;
        width: 100%;
    }
}


/* ==========================================================================
   PROJECTS ARCHIVE STYLES
   ========================================================================== */

/**
 * Elkhanah Projects Styles
 * Styling for Projects archive and single project pages.
 * Matches Webflow design at elkhanah.com/projects
 *
 * @package Tune_Child
 * @version 2.0.0
 */

/* ==========================================================================
   CSS Variables (matching Webflow :root)
   ========================================================================== */
:root {
    --black-font: black;
    --primary-font: #344a52;
    --secondary-font: #f03d3d;
    --black: black;
    --secondary: #f03d3d;
    --white: white;
    --white-font: white;
    --light-bg: #f7f7f7;
    --primary: #3b4c52;
    --form-bg: #e2e2e2;
    --dark-bg: #3f3f3f;
    --dark-grey-font: #3f3f3f;
}

/* ==========================================================================
   GLOBAL RESETS FOR PROJECTS
   ========================================================================== */

.post-type-archive-projects,
.single-projects {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.post-type-archive-projects #page,
.post-type-archive-projects #content,
.post-type-archive-projects #main,
.post-type-archive-projects .site-content,
.single-projects #page,
.single-projects #content,
.single-projects #main,
.single-projects .site-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Hide default theme elements */
.post-type-archive-projects .entry-header,
.post-type-archive-projects .page-header,
.post-type-archive-projects .archive-header,
.post-type-archive-projects .wolf-page-title,
.single-projects .entry-header,
.single-projects .wolf-page-title {
    display: none !important;
}

/* ==========================================================================
   HEADER STYLES (Dark overlay nav)
   ========================================================================== */

/* Hide duplicate/unwanted elements - Mobile menu handled in GLOBAL STYLES */
.post-type-archive-projects .lower-menu,
.post-type-archive-projects .cta-container,
.post-type-archive-projects #masthead .socials,
.post-type-archive-projects #masthead .social-links,
.post-type-archive-projects a#back-to-top,
.post-type-archive-projects .bumper,
.post-type-archive-projects .nav-search-form,
.post-type-archive-projects #masthead > p,
.post-type-archive-projects p.site-name,
.post-type-archive-projects .nav-index,
.post-type-archive-projects .nav-index.nav-has-bg,
.single-projects .lower-menu,
.single-projects .cta-container,
.single-projects #masthead .socials,
.single-projects #masthead .social-links,
.single-projects a#back-to-top,
.single-projects .bumper,
.single-projects .nav-search-form,
.single-projects #masthead > p,
.single-projects p.site-name,
.single-projects .nav-index,
.single-projects .nav-index.nav-has-bg {
    display: none !important;
}

/* CRITICAL: Hide the "Main Page" nav-index element with header image */
.nav-index,
.nav-index.nav-has-bg,
.nav-index .img-bg,
.nav-index .internal-link,
.nav-index-icon {
    display: none !important;
}

/* Hide entire single-post-pagination on projects pages */
.single-projects .single-post-pagination,
.post-type-archive-projects .single-post-pagination {
    display: none !important;
}

/* ============================================================
   CRITICAL: Hide theme's default hero on single project pages
   We use our own custom hero in the template
   ============================================================ */
.single-projects #hero,
.single-projects #hero-inner,
.single-projects #hero-overlay,
.single-projects .img-bg.parallax,
body.single-projects #hero {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* ============================================================
   CRITICAL: Hide entire single-post-pagination navigation
   This is the bottom nav that shows "Main Page" and "Next"
   with large background images
   ============================================================ */
nav.single-post-pagination,
.single-post-pagination,
body.single-projects nav.single-post-pagination,
body.single-projects .single-post-pagination,
.single-projects nav.single-post-pagination.clearfix,
.single-projects .nav-previous,
.single-projects .nav-next,
.single-projects .nav-index,
.single-projects .nav-has-bg,
.single-projects .nav-next.nav-has-bg,
.single-projects .nav-index.nav-has-bg {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Force hide any element with nav-has-bg class globally on projects */
body.single-projects .nav-has-bg,
body.single-projects [class*="nav-"] .img-bg,
body.single-projects .single-post-pagination .img-bg {
    display: none !important;
}

/* Header with gradient background */
.post-type-archive-projects #masthead,
.post-type-archive-projects .site-header,
.single-projects #masthead,
.single-projects .site-header {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%) !important;
    border: none !important;
    box-shadow: none !important;
}

.post-type-archive-projects #header-content,
.single-projects #header-content {
    padding: 0 !important;
    background: transparent !important;
}

.post-type-archive-projects .upper-menu,
.single-projects .upper-menu {
    display: block !important;
    padding: 0 ;
    background: transparent !important;
}

/* Navigation */
.post-type-archive-projects #desktop-navigation,
.single-projects #desktop-navigation {
    display: block !important;
}

.post-type-archive-projects .nav-menu a,
.post-type-archive-projects .nav-menu-desktop a,
.single-projects .nav-menu a,
.single-projects .nav-menu-desktop a {
    color: #f7f7f7 !important;
    font-family: "agenda", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.post-type-archive-projects .nav-menu .current-menu-item a,
.single-projects .nav-menu .current-menu-item a {
    color: var(--primary) !important;
}

/* Logo styling */
.post-type-archive-projects .logo-text,
.post-type-archive-projects .site-title,
.single-projects .logo-text,
.single-projects .site-title {
    display: none !important;
}

.post-type-archive-projects .logo-img.logo-dark,
.single-projects .logo-img.logo-dark {
    display: none !important;
}

.post-type-archive-projects .logo-img.logo-light,
.single-projects .logo-img.logo-light {
    display: block !important;
}

/* ==========================================================================
   WEBFLOW CORE CLASSES (from elkhanah.shared.d3808019d.css)
   ========================================================================== */

/* Layout Grid */
.w-layout-grid {
    grid-row-gap: 16px;
    grid-column-gap: 16px;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    display: grid;
}

/* Section */
.section {
    position: relative;
}

.section.viewport-end {
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    display: flex;
}

.section.viewport-end.height-80vh {
    background-position: 100% 35%;
    background-size: cover;
    background-repeat: no-repeat;
    justify-content: flex-end;
    align-items: center;
    height: 38vh;
}

.section.padding-vertical-small {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
}

.section.padding-vertical-medium {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Background colors */
.background-lightgrey {
    background-color: var(--light-bg);
}

.background-white {
    background-color: #f7f7f7;
}

/* Page padding */
.page-padding {
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
}

.home .page-padding {
    padding-left: 8%;
    padding-right: 8%;
    position: relative;
}

.page-padding.space-vertical-large {
    margin-top: 6.25rem;
    margin-bottom: 2.25rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.container.container-full-width {
    max-width: 100%;
}

/* Gradient overlay */
.gradient-overlay {
    background-color: rgba(19, 18, 18, 0.4);
    position: absolute;
    inset: 0%;
}

/* Hero component */
.hero4_component {
    position: relative;
    z-index: 2;
}

/* Hero title */
.h1-xlarge {
    font-family: "agenda", sans-serif;
    font-size: 5rem;
    font-weight: 100;
    line-height: 1.2;
    margin: 0;
}

.text-light {
    color: var(--white-font);
}

/* ==========================================================================
   SINGLE PROJECT - TWO-COLUMN GRID
   ========================================================================== */

/* Main grid - Webflow: .invididual2_grid-copy */
.invididual2_grid-copy {
    grid-column-gap: 3.5rem;
    grid-row-gap: 1.5rem;
    grid-template-rows: auto;
    grid-template-columns: 1fr .75fr;
}

/* Left column */
.left-content {
    /* Contains: subtitle, credits, hr, reviews */
}

/* Right column - hidden on mobile */
.right-content {
    /* Contains: photos grid, videos */
}

/* Intro text (subtitle) */
.intro-text-rtf.margin-bottom-40 {
    margin-bottom: 2.5rem;
}

.intro-text-rtf.margin-bottom-40 h5 {
    font-family: "agenda", sans-serif;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--black-font);
    margin: 0;
}

.intro-text-rtf.margin-bottom-40 h5 em {
    font-style: italic;
}

/* Long description / Credits */
.long-desc-rtf {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--black-font);
}

.long-desc-rtf p {
    margin-bottom: 1rem;
}

.long-desc-rtf strong {
    font-weight: 600;
}

/* Horizontal rule */
.hr {
    border: 0 solid #464646;
    border-top: 1px solid #ada9a9;
    margin: 2rem 0;
}

/* Mobile-only photo gallery */
.appear-on-mobile {
    display: none;
}

/* ==========================================================================
   REVIEWS SECTION
   ========================================================================== */

.reviews-section {
    margin-top: 2rem;
}

.reviews-heading {
    font-family: "agenda", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--black-font);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ada9a9;
    padding-bottom: 0.5rem;
}

.reviews-subheading {
    font-family: "agenda", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--black-font);
    margin-bottom: 1rem;
    text-transform: none;
}

.review-blockquote {
    background-image: url(https://cdn.prod.website-files.com/6554e81…/6554e81…_quote-icon.svg);
    background-position: 0%;
    background-repeat: no-repeat;
    background-size: auto 2.5rem;
    border-left: none;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0 1rem 3.5rem;
    font-family: "agenda", sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.3;
    color: var(--black-font);
}

.review-blockquote p {
    margin: 0 0 0.75rem 0;
    font-style: italic;
}

.review-blockquote cite {
    font-style: normal;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark-grey-font);
    display: block;
}

/* ==========================================================================
   PHOTOS SECTION (Right Column)
   ========================================================================== */

.photos-section {
    margin-bottom: 2.5rem;
}

.section-label {
    font-family: "agenda", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--black-font);
    margin-bottom: 1rem;
    text-transform: none;
}

/* Photo grid - masonry-style 2-column */
.photo-cms1_list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 0.5rem;
    grid-row-gap: 0.5rem;
}

.photo-cms1_list .w-dyn-item {
    position: relative;
    overflow: hidden;
}

.photo-gallery-cms_image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-gallery-cms_image:hover {
    transform: scale(1.02);
}

/* Lightbox link */
.lightbox.gallery-cms1 {
    display: block;
    position: relative;
    overflow: hidden;
}

/* Hover overlay */
.photos_hover-div {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox.gallery-cms1:hover .photos_hover-div {
    opacity: 1;
}

.photos_hover-icon {
    font-size: 2rem;
    color: #f7f7f7;
    font-weight: 300;
}

.caption.bottom-align {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    color: #f7f7f7;
    text-align: center;
}

/* Mobile photo grid */
.photo-cms1_list-copy-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 0.5rem;
    grid-row-gap: 0.5rem;
    margin-top: 1rem;
}

/* ==========================================================================
   VIDEOS SECTION
   ========================================================================== */

.videos-section {
    margin-top: 2rem;
}

.videos-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-embed-wrapper {
    margin-bottom: 1rem;
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-embed-container iframe,
.video-embed-container video,
.video-embed-container embed,
.video-embed-container object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-title {
    font-family: "agenda", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--black-font);
    margin-top: 0.5rem;
    text-align: center;
}

/* ==========================================================================
   SINGLE PROJECT - NEW LAYOUT STRUCTURE (v3.1)
   1. Full-width content section
   2. Two columns: Photos (left) | Production Team (right)
   3. Full-width reviews
   4. Full-width videos (2-column grid)
   ========================================================================== */

/* Full-width content section */
.project-content-full {
    width: 100%;
    margin-bottom: 2.5rem;
}

.project-content-full .intro-text-rtf.margin-bottom-20 {
    margin-bottom: 1.5rem;
}

.project-content-full .intro-text-rtf h5 {
    font-family: "agenda", sans-serif;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--black-font);
    margin: 0;
}

.project-main-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--black-font);
}

.project-main-content p {
    margin-bottom: 1rem;
}

/* Two-column grid: Photos | Production Team */
.project-details-grid {
     display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1rem;
    grid-row-gap: 0;
    margin-bottom: 2.5rem;
    align-items: start;
    width: 100%;
    margin: 0 auto -10px;
        grid-template-columns: 32% 66%;
}

/* Photos column (left) - 5 columns grid */
.photos-column .photos-section {
    margin-bottom: 0;
}

.photos-column .photo-cms1_list {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    grid-column-gap: 0.35rem !important;
    grid-row-gap: 0.35rem !important;
}

.photos-column .w-dyn-item {
    width: 100% !important;
}

.photos-column .photo-gallery-cms_image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    height: auto;
}

/* Production Team column (right) */
.production-team-column {
    padding-top: 0;
}

.production-team-section {
    margin: 0;
}

.production-team-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--black-font);
}

.production-team-content p {
    margin-bottom: 0.5rem;
}

.production-team-content strong {
    font-weight: 600;
}

/* Full-width reviews section */
.reviews-section-full {
    width: 100%;
    margin: 1.4rem 0;
    padding-top: 0.75rem;
    border-top: 1px solid #42565d61;
    display: none;
}

.reviews-section-full .review-blockquote {
    background-image: none;
    padding-left: 0;
    margin: 0 0 2rem 0;
    max-width: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
    color: var(--black-font);
}

.reviews-section-full .review-blockquote p {
    margin: 0 0 0.5rem 0;
    font-style: normal;
}

.reviews-section-full .review-blockquote cite {
    font-style: normal;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--black-font);
    display: block;
    margin-top: 0.25rem;
}

/* Full-width videos section */
.videos-section-full {
    width: 100%;
    margin: 0rem 0;
    padding-top: 0;
}

.videos-grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1.5rem;
    grid-row-gap: 1.5rem;
}

.videos-grid-two-col .video-embed-wrapper {
    margin-bottom: 0;
}

.videos-grid-two-col .video-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--black-font);
    margin-top: 0.5rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   SINGLE PROJECT - RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 798px) {
    .project-details-grid {
        grid-template-columns: 1fr;
    }
    
    .photos-column .photo-cms1_list {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .videos-grid-two-col {
        grid-template-columns: 1fr;
    }
    
    .production-team-column {
        margin-top: 1.5rem;
    }
}

@media screen and (max-width: 767px) {
    .photos-column .photo-cms1_list {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .project-content-full .intro-text-rtf h5 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 479px) {
    .photos-column .photo-cms1_list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ==========================================================================
   OTHER PRODUCTIONS SECTION
   ========================================================================== */

.other-productions-title {
    font-family: "agenda", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--black-font);
    text-align: center;
    margin-bottom: 2rem;
}

/* 6-column grid - matches mockup */
.other-productions {
    grid-column-gap: 0rem;
    grid-row-gap: 0rem;
    text-align: center;
    grid-template-rows: auto;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-columns: 1fr;
    place-items: start stretch;
    display: grid;
}

.other-production-link {
    display: block;
    text-decoration: none;
}

.other-production-item {
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
 
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.other-production-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.other-production-item:hover .other-production-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.other-production-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1rem;
}

.other-production-title {
    font-family: "agenda", sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #f7f7f7;
    margin: 0;
    line-height: 1.3;
}

/* ==========================================================================
   PROJECTS ARCHIVE PAGE
   ========================================================================== */

/* Archive Hero */
.elkhanah-projects-hero {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 380px;
    background-color: var(--elkhanah-black);
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0), #000), url(https://elkhanah.com/wp-content/uploads/2026/02/banner-22.jpg);
    background-position: 0 0, 50% 0;
    background-size: auto, cover;
    background-repeat: repeat, no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    background-size: 100%;
}

.elkhanah-projects-hero-content {
    position: absolute;
    bottom: 3rem;
    right: 5%;
    text-align: right;
}

.elkhanah-projects-hero h1 {
font-family: "agenda", sans-serif;
    font-size: 4.4rem;
    font-weight: 100;
    line-height: 1.2;
    color: var(--elkhanah-white);
    margin: 0;
    text-shadow: 1px 1px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.03em;
}

/* Archive Grid Section */
.elkhanah-projects-section {
    padding: 1.8rem 0;
    background-color: #f7f7f7;
}

.elkhanah-container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1%;
    padding-right: 1%;
}

/* 2-column grid for archive */
.elkhanah-projects-grid {
display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 2rem;
    grid-row-gap: 1rem;
}

/* Projects archive grid: 3 cols desktop -> 2 cols tablet (max-width:798px block)
   -> 1 col on mobile. Prefixed selector keeps it winning regardless of order. */
@media (max-width: 479px) {
    .post-type-archive-projects .elkhanah-projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Project Card */
.elkhanah-project-card {
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    height: 245px;
    position: relative;
    overflow: hidden;
}

.elkhanah-project-card-link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 11.25rem;
    padding: 2.5rem;
    position: relative;
    text-decoration: none;
}

.elkhanah-project-card-overlay {
    position: absolute;
    inset: 0;
background-color: rgb(0 0 0 / 32%);
    z-index: 1;
    transition: background-color 0.3s ease;
}

.elkhanah-project-card:hover .elkhanah-project-card-overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

.elkhanah-project-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
        opacity: 0;
 transition: all 0.3s linear;
}

.elkhanah-project-card:hover .elkhanah-project-card-content {
           opacity: 1; 
}

.elkhanah-project-card-title {
    color: #000;
    font-family: "agenda", sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.2;
    margin: 10px 0 ;
    text-align: center;
}

.elkhanah-project-card-subtitle {
    color: #f7f7f7;
    font-family: "agenda", sans-serif;
    font-size: 1.175rem;
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.post-type-archive-projects #colophon,
.post-type-archive-projects .site-footer,
.single-projects #colophon,
.single-projects .site-footer {
    background: var(--light-bg);
    color: var(--black);
}

/* ==========================================================================
   RESPONSIVE - Tablet (798px)
   ========================================================================== */

@media screen and (max-width: 798px) {
    /* Hero */
    .h1-xlarge {
        font-size: 3.5rem;
    }
    
    /* Two-column grid becomes single column */
    .invididual2_grid-copy {
        grid-template-columns: 1fr;
    }
    
 
    
    /* Show mobile photo gallery */
    .appear-on-mobile {
        display: block;
    }
    
    /* Mobile photo grid - 2 columns */
    .photo-cms1_list-copy-copy {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Other productions - 2 columns */
    .other-productions {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Archive grid - 2 columns on tablet */
    .elkhanah-projects-grid {
        grid-template-columns: 1fr 1fr;
        padding-left: 10%;
        padding-right: 10%;
        grid-row-gap: 1.2rem;
    }
    
    /* Archive hero */
    .elkhanah-projects-hero {
        height: 35vh;
        min-height: 280px;
    }
    
    .elkhanah-projects-hero h1 {
        font-size: 3.5rem;
    }
    
    /* Mobile nav visibility */
    .post-type-archive-projects .upper-menu,
    .post-type-archive-projects #desktop-navigation,
    .single-projects .upper-menu,
    .single-projects #desktop-navigation {
        display: none !important;
    }
    
    .post-type-archive-projects #mobile-navigation,
    .post-type-archive-projects .hamburger-container,
    .single-projects #mobile-navigation,
    .single-projects .hamburger-container {
        display: block !important;
    }
}

/* ==========================================================================
   RESPONSIVE - Mobile (767px)
   ========================================================================== */

@media screen and (max-width: 767px) {
    .h1-xlarge {
        font-size: 2.8rem;
    }
    
    .section.viewport-end.height-80vh {
        height: 38vh;
    }
    
    .section.padding-vertical-small {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .section.padding-vertical-medium {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .page-padding.space-vertical-large {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
    
    .intro-text-rtf.margin-bottom-40 h5 {
        font-size: 1.4rem;
    }
    
    /* Mobile photo grid - 1 column */
    .photo-cms1_list-copy-copy {
        grid-template-columns: 1fr;
    }
    
    /* Other productions - 1 column */
    .other-productions {
        grid-template-columns: 1fr;
    }
    
 
    
    /* Archive */
    .elkhanah-projects-hero {
        height: 30vh;
        min-height: 220px;
    }
    
    .elkhanah-projects-hero h1 {
        font-size: 2.5rem;
    }
    
    .elkhanah-project-card {
        height: 250px;
    }
}

/* ==========================================================================
   RESPONSIVE - Small Mobile (479px)
   ========================================================================== */

@media screen and (max-width: 479px) {
    .h1-xlarge {
        font-size: 2.5rem;
    }
    
    .section.viewport-end.height-80vh {
        height: 38vh;
    }
    
    .intro-text-rtf.margin-bottom-40 h5 {
        font-size: 1.2rem;
    }
    
    .review-blockquote {
        padding-left: 2.5rem;
        background-size: auto 2rem;
    }
    
    .elkhanah-projects-hero h1 {
        font-size: 2rem;
    }
    
    .elkhanah-project-card {
        height: 220px;
    }
    
    .elkhanah-project-card-title {
        font-size: 2rem;
        line-height: 100%;
    }
}

/* ==========================================================================
   LIGHTBOX / FANCYBOX SUPPORT
   ========================================================================== */

/* Basic Webflow lightbox styles if needed */
.w-lightbox-backdrop {
    cursor: auto;
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.w-lightbox-content {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.w-lightbox-view {
    opacity: 0;
    width: 100vw;
    height: 100vh;
    position: absolute;
}

.w-lightbox-image {
    float: none;
    max-width: 100vw;
    max-height: 100vh;
    display: block;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.w-inline-block {
    max-width: 100%;
    display: inline-block;
}

.w-richtext {
    /* Rich text content styling */
}

.w-richtext p {
    margin-bottom: 1rem;
        margin-top: 0;
}

.w-richtext strong {
    font-weight: 600;
}

.w-dyn-list {
    /* Dynamic list wrapper */
}

.w-dyn-items {
    /* Dynamic items container */
}

.w-dyn-item {
    /* Individual dynamic item */
}


/* ==========================================================================
   SINGLE PROJECT PAGE STYLES
   ========================================================================== */

/**
 * Single Project Page Styles
 * Matches the original Webflow design at elkhanah.com/projects/[slug]
 *
 * Key fixes from original:
 * - Square photo thumbnails with uniform aspect ratio (padding-top: 100%)
 * - Large square "Other Productions" grid (3 columns, no gaps)
 * - Blockquotes with quote icon background
 * - Single .hr divider
 * - Proper h4/h5 heading styles
 *
 * @package Tune_Child
 * @version 2.1.0
 */

/* ==========================================================================
   VARIABLES
   ========================================================================== */

:root {
    --black-font: #000;
    --white-font: #fff;
    --grey-light: #f5f5f5;
    --grey-border: #ada9a9;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.elkhanah-single-project .section.viewport-end.height-80vh {
    min-height: 35vh;
    position: relative;
    display: flex;
    align-items: center;
}

.elkhanah-single-project .gradient-overlay {
    background-color: rgb(24 22 22 / 59%);
    position: absolute;
    inset: 0;
    z-index: 1;
}

.elkhanah-single-project .hero4_component {
    position: relative;
    z-index: 2;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.elkhanah-single-project .h1-xlarge.text-light {
    font-family: "agenda", sans-serif;
    font-size: 3.8rem;
    font-weight: 200;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
        text-align: center;
}

/* ==========================================================================
   MAIN CONTENT SECTION
   ========================================================================== */

.elkhanah-single-project .section.padding-vertical-small {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

.elkhanah-single-project .background-lightgrey {
    background-color: var(--grey-light);
}

.elkhanah-single-project .page-padding {
    padding-left: 12%;
    padding-right: 12%;
}

.elkhanah-single-project .container {
    max-width: 70rem;
    margin: 0 auto;
}

/* ==========================================================================
   2-COLUMN GRID LAYOUT
   ========================================================================== */

.elkhanah-single-project .invididual2_grid-copy {
    grid-column-gap: 2.5rem;
    grid-row-gap: 2.5rem;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    display: grid;
}

.elkhanah-single-project .left-content {
    padding-right: 1rem;
}

/* ==========================================================================
   SUBTITLE / INTRO TEXT
   ========================================================================== */

.elkhanah-single-project .intro-text-rtf {
     margin-bottom: 1.5rem;
}

.elkhanah-single-project .intro-text-rtf h5 {
    color: var(--black-font);
    font-family: "agenda", sans-serif;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.2;
    margin: 0;
}

.elkhanah-single-project .intro-text-rtf h5 em {
    font-style: normal;
}

/* ==========================================================================
   LONG DESCRIPTION / CREDITS
   ========================================================================== */

.elkhanah-single-project .long-desc-rtf {
    font-family: "agenda", sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--black-font);
}

.elkhanah-single-project .long-desc-rtf p {
    margin-bottom: 1rem;
}

.elkhanah-single-project .long-desc-rtf strong {
    font-weight: 600;
}

/* ==========================================================================
   HORIZONTAL RULE - Single divider (matching original)
   ========================================================================== */

.elkhanah-single-project .hr {
    border: 0 solid #464646;
    border-top: 1px solid var(--grey-border);
    margin: 1.5rem 0;
}

/* Hide any extra hr/borders */
.elkhanah-single-project hr:not(.hr),
.elkhanah-single-project .reviews-section .hr {
    display: none;
}

/* ==========================================================================
   HEADINGS (h4, h5, h6) - Matching original Webflow
   ========================================================================== */

.elkhanah-single-project h4,
.elkhanah-single-project .press-rtf h4,
.elkhanah-single-project .videos-section h4,
.elkhanah-single-project .reviews-section h4 {
    color: var(--black-font);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-family: "agenda", sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
}

.elkhanah-single-project h5,
.elkhanah-single-project .reviews-heading {
    color: var(--black-font);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-family: "agenda", sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
}

.elkhanah-single-project h6,
.elkhanah-single-project .section-label,
.elkhanah-single-project .reviews-subheading {
    color: var(--black-font);
    margin-top: 0;
    margin-bottom: 10px;
    font-family: "agenda", sans-serif;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.2;
}

/* ==========================================================================
   BLOCKQUOTES - With quote icon background (matching Webflow exactly)
   ========================================================================== */
@media screen and (max-width: 479px) {
.elkhanah-single-project blockquote,
.elkhanah-single-project .review-blockquote {
    color: #000;
    background-image: none;
    background-position: 0%;
    background-repeat: no-repeat;
    background-size: auto 3.1875rem;
    border-left: none;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 7%;
    padding-left: 1rem;
    font-family: "agenda", sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.35;
    font-style: normal;
    quotes: none;
    margin-right: 0;
    padding-right: 10px;
}
}

.elkhanah-single-project blockquote::before,
.elkhanah-single-project blockquote::after {
    content: none;
}

.elkhanah-single-project blockquote p {
    margin: 0 0 0.5rem 0;
    font-style: normal;
}

.elkhanah-single-project blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: normal;
    font-weight: 400;
    font-size: 1.15rem;
}

/* ==========================================================================
   PHOTO GALLERY - Square thumbnails with uniform aspect ratio
   Key: padding-top: 100% creates a 1:1 square aspect ratio
   ========================================================================== */

/* 5-column grid for photos in left column */
.elkhanah-single-project .photo-cms1_list {
    grid-column-gap: 0.35rem;
    grid-row-gap: 0.35rem;
    text-align: center;
    grid-template-rows: auto;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: 1fr;
    place-items: start stretch;
    display: grid;
}

/* Image wrapper - creates square aspect ratio using padding trick */
.elkhanah-single-project .photo-cms1_image-wrapper {
    padding-top: 100%; /* 1:1 aspect ratio (square) */
    position: relative;
    overflow: hidden;
}

/* Image fills the wrapper absolutely */
.elkhanah-single-project .photo-cms1_image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

/* For images without wrapper, force square aspect ratio */
.elkhanah-single-project .photo-cms1_list .w-dyn-item {
    position: relative;
}

.elkhanah-single-project .photo-cms1_list .lightbox {
    display: block;
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.elkhanah-single-project .photo-cms1_list .lightbox img,
.elkhanah-single-project .photo-cms1_list .photo-gallery-cms_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover overlay */
.elkhanah-single-project .photos_hover-div {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.elkhanah-single-project .lightbox:hover .photos_hover-div,
.elkhanah-single-project .photo-cms1_image-wrapper:hover .photos_hover-div,
.elkhanah-single-project .w-dyn-item:hover .photos_hover-div {
    opacity: 1;
}

.elkhanah-single-project .photos_hover-icon {
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
}

.elkhanah-single-project .photos_hover-div .text-light {
    color: #fff;
    font-family: "agenda", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    padding: 1rem;
}

/* Photo captions */
.elkhanah-single-project .caption {
    color: var(--white-font);
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-family: "agenda", sans-serif;
}

/* ==========================================================================
   VIDEOS SECTION
   ========================================================================== */

.elkhanah-single-project .videos-section {
    margin-top: 2rem;
}

.elkhanah-single-project .videos-grid {
    display: grid;
    gap: 1rem;
}

.elkhanah-single-project .video-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.elkhanah-single-project .video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   MOBILE PHOTO GALLERY (hidden on desktop)
   ========================================================================== */

.elkhanah-single-project .appear-on-mobile {
    display: none;
}

.elkhanah-single-project .photo-cms1_list-copy-copy {
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    text-align: center;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    place-items: start stretch;
    display: grid;
}

/* Apply same square aspect ratio to mobile gallery */
.elkhanah-single-project .photo-cms1_list-copy-copy .lightbox {
    display: block;
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.elkhanah-single-project .photo-cms1_list-copy-copy .lightbox img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   OTHER PRODUCTIONS SECTION - Large square grid (matching original)
   This is the key fix: 3 columns, NO gaps, square items
   ========================================================================== */

.elkhanah-single-project .section.padding-vertical-medium.background-white,
.elkhanah-single-project .other-productions-section {
    padding-top: 0;
    padding-bottom: 20px;
}

.elkhanah-single-project .other-productions-title {
    font-family: "agenda", sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--black-font);
    text-align: center;
    margin: 0 0 1rem 0;
    transition: filter 0.5s ease;
}

.elkhanah-single-project .page-padding-other-productions {
    padding: 0;
}

.elkhanah-single-project .container-full-width {
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.elkhanah-single-project .page-padding-other-productions .container.container-full-width {
    padding: 0;
}

/* Other Productions - 5 across x 2 rows, faded thumbs with centred title overlay */
.elkhanah-single-project .other-productions {
    grid-column-gap: 6px;
    grid-row-gap: 6px;
    text-align: center;
    grid-template-rows: auto;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: 1fr;
    place-items: start stretch;
    display: grid;
    width: 74%;
    margin: 0 auto;
}

/* Each tile: black backing so the faded image reads darker and the title pops */
.elkhanah-single-project .other-production-link {
    display: block;
    text-decoration: none;
    position: relative;
    background: #000;
}

/* Square thumbnail, faded to 75% over the black backing */
.elkhanah-single-project .other-production-item {
    padding-top: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

/* Title centred over the thumbnail — flex centring handles 1- or 2-line
   titles cleanly, no negative offsets needed */
.elkhanah-single-project .other-production-title {
    position: absolute;
    inset: 0;
    z-index: 2;
    margin: 0;
    padding: 0 0.75rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: "agenda", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 0 12px #000;
    transition: opacity 0.3s ease;
}

/* Hover: image goes full colour, title fades out so you see just the thumbnail */
.elkhanah-single-project .other-production-link:hover .other-production-item {
    opacity: 1;
}

.elkhanah-single-project .other-production-link:hover .other-production-title {
    opacity: 0;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* Tablet (798px and below) */
@media (max-width: 798px) {
    .elkhanah-single-project .h1-xlarge.text-light {
        font-size: 3.5rem;
    }
    
    .elkhanah-single-project .invididual2_grid-copy {
        grid-template-columns: 1fr;
        grid-column-gap: 0;
    }
    
    .elkhanah-single-project .left-content {
        padding-right: 0;
    }
    
 
    .elkhanah-single-project .appear-on-mobile {
        display: block;
    }
    
    /* Keep 4 columns on tablet for Other Productions */
    .elkhanah-single-project .other-productions {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .elkhanah-single-project h4,
    .elkhanah-single-project h5,
    .elkhanah-single-project h6,
    .elkhanah-single-project .reviews-heading {
        font-size: 1.75rem;
    }
    
    .elkhanah-single-project blockquote {
        font-size: 1rem;
        padding-left: 3.5rem;
    }
}

/* Mobile Landscape (767px and below) */
@media (max-width: 767px) {
    .elkhanah-single-project .h1-xlarge.text-light {
        font-size: 2.5rem;
    }
    
    .elkhanah-single-project .section.viewport-end.height-80vh {
        min-height: 38vh;
    }
    
    /* Gallery - 3 columns on tablet/mobile */
    .elkhanah-single-project .photo-cms1_list,
    .elkhanah-single-project .photo-cms1_list-copy-copy {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    /* 3 columns on mobile for Other Productions */
    .elkhanah-single-project .other-productions {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }
    
    .elkhanah-single-project .other-productions-title {
        font-size: 1.75rem;
    }
    
    .elkhanah-single-project h4,
    .elkhanah-single-project h5,
    .elkhanah-single-project h6,
    .elkhanah-single-project .reviews-heading {
        font-size: 1.5rem;
    }
    
    /* Smaller blockquotes on mobile */
    .elkhanah-single-project blockquote {
        font-size: 0.9rem;
        padding: 0.75rem;
        padding-left: 2.5rem;
        margin-left: 0;
        margin-right: 0;
        background-size: auto 2rem;
    }
}

/* Mobile Portrait (479px and below) */
@media (max-width: 479px) {
    .elkhanah-single-project .h1-xlarge.text-light {
        font-size: 2rem;
    }
    
    .elkhanah-single-project .section.viewport-end.height-80vh {
        min-height: 38vh;
    }
    
    .elkhanah-single-project .page-padding {
        padding-left: 10%;
        padding-right: 10%;
    }
    
    /* Keep 3 columns for gallery on small mobile */
    .elkhanah-single-project .photo-cms1_list,
    .elkhanah-single-project .photo-cms1_list-copy-copy {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
    }
    
    /* 2 columns for Other Productions on small mobile */
    .elkhanah-single-project .other-productions {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .elkhanah-single-project .other-productions-title {
        font-size: 1.5rem;
    }
    
    .elkhanah-single-project .intro-text-rtf h5 {
        font-size: 1.2rem;
    }
    
    .elkhanah-single-project h4,
    .elkhanah-single-project h5,
    .elkhanah-single-project h6,
    .elkhanah-single-project .reviews-heading {
        font-size: 1.25rem;
    }
    
    .elkhanah-single-project blockquote {
        padding-left: 2.5rem;
        background-size: auto 2rem;
    }
}

.yt-videos,
.fluid-video-container {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
}

.fluid-video {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 56.25%;
}

.fluid-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
 
iframe[src*="youtube.com/embed"],
 iframe[src*="youtube-nocookie.com/embed"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* ==========================================================================
   MOBILE RESPONSIVE HARDENING (v3.4.0)
   Keeps every page within the viewport width so there is no horizontal
   scroll and the fixed mobile nav stays reachable. Added after a mobile
   pass found the off-canvas menu panel and unconstrained media pushing
   pages wider than the screen.
   ========================================================================== */

/* Media should never overflow its container (more specific rules that set an
   explicit height, e.g. slideshow/gallery images, still win over this) */
img,
.elkhanah-single-project img,
.elkhanah-home-content-inner img,
.project-main-content img,
.w-richtext img {
    max-width: 100%;
    height: auto;
}

/* Video embeds: belt-and-suspenders against a fixed-width oembed iframe */
.video-embed-container iframe,
.elkhanah-single-project .video-embed-container iframe,
.videos-grid-two-col iframe {
    max-width: 100% !important;
}

@media screen and (max-width: 798px) {
    /* Clip any stray horizontal overflow. Set on the root element too, since
       iOS Safari ignores overflow-x on body alone; this is what makes the
       off-canvas menu panel stop widening the page. */
    html,
    body.elkhanah-unified {
        overflow-x: hidden !important;
        max-width: 100%;
    }

    /* Full-width single-project sections stay inside the viewport */
    .elkhanah-single-project .project-content-full,
    .elkhanah-single-project .project-details-grid,
    .elkhanah-single-project .reviews-section-full,
    .elkhanah-single-project .videos-section-full,
    .elkhanah-single-project .other-productions {
        max-width: 100%;
    }

    /* Homepage: keep the slideshow and content within the screen edges */
    .elkhanah-front-page,
    .elkhanah-slideshow-section,
    .elkhanah-home-content,
    .elkhanah-home-content-inner {
        max-width: 100%;
        box-sizing: border-box;
    }
}