/*
Theme Name: Bodour
Theme URI: https://your-site.com
Author: Your Name
Author URI: https://your-site.com
Description: Custom WordPress theme compatible with Elementor
Version: 1.0
License: GPL v2 or later
Text Domain: bodour
*/

/* Header Styles */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

@font-face {
    font-family: 'Canela';
    src: url('./assets/fonts/Canela-Medium.woff2') format('woff2'),
        url('./assets/fonts/Canela-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Canela';
    src: url('./assets/fonts/Canela-Black.woff2') format('woff2'),
        url('./assets/fonts/Canela-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Canela';
    src: url('./assets/fonts/Canela-Regular.woff2') format('woff2'),
        url('./assets/fonts/Canela-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Canela';
    src: url('./assets/fonts/Canela-Thin.woff2') format('woff2'),
        url('./assets/fonts/Canela-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}


body {
	background: #27140a !important;	
}

body.loading {
    overflow: hidden;
}

body.modalLoaded, body.modalLoaded .event-modal {
    overflow: hidden;
}

.site-header {
    background-color: transparent !important;
    
	padding: 0 !important;
    position: relative;
	z-index: 1;
    width: 100%;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 14px 48px;
}

.appendMainMenu ul.primary-menu {
    /* float: right; */
    justify-content: right;
	margin-top: 20px;
}

.brownLinks.appendMainMenu ul.primary-menu a {
    color: #4C1A0F !important;
}

.appendMainMenu ul.primary-menu a {
	color: #FFF6E9 !important;
}

.appendMainMenu ul.primary-menu a.active {
    color: #CAAA71 !important;
}


.brownLinks.appendMainMenu ul.primary-menu a.active {
    color: #CAAA71 !important;
}

.spacer a {
    display: none !important;
}

.addDash:after {
    content: "|";
    color: #D4A989;
    position: relative;
    left: 15px;
    top: -1px;
}

.appendMainMenu ul.primary-menu .addDash:after {
    color: #fff!important;
}

.brownLinks.appendMainMenu ul.primary-menu .addDash:after {
	color: #4C1A0F !important;
}



.header-left {
    position: relative;
}

/* Logo styling - max height 80px */
.header-left .custom-logo {
    max-height: 46px;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: rotateClockwise 10s linear infinite;
	
}
div#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #1e0c04;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 111111;
}

div#preloader img {
    max-width: 300px;
}

/* Add the keyframes animation */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Apply it to your existing class */
.preloader-text {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #fff;
    color: #1e0c04;
    font-size: 14px;
    padding: 8px 16px;
    line-height: 1;
    border-radius: 5px;
    animation: blink 1s ease-in-out infinite;
}

.spinme img {
	animation: rotateClockwise 10s linear infinite;
}
@keyframes rotateClockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Site title styling (if no logo) */
.site-title {
    margin: 0;
    font-size: 24px;
}

.site-title a {
    text-decoration: none;
    color: #333;
}

/* Menu styling - on the right with items next to each other */
.header-right {
    border-radius: 9999px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 2px;
    background: linear-gradient(135deg, rgba(72, 32, 12, 0.55) 0%, rgba(48, 20, 6, 0.55) 100%);
    border: 1px solid rgba(232, 200, 144, 0.32);
    box-shadow: 0 8px 28px rgba(60, 24, 8, 0.45), inset 0 1px 0 rgba(255, 220, 170, 0.14);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
}

.main-navigation {
    display: flex;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px; /* Space between menu items */
}

.primary-menu li {
    margin: 0;
    padding: 0;
}

.primary-menu li a {
    text-decoration: none;
    color: #D4A989;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 8px 0;
    font-family: 'Canela';
    font-weight: 500;
    font-style: normal;
}

.primary-menu li a:hover {
    color: #D4A989;
    text-decoration: underline;
}

.fullStretch img {
    width: 100% !important;
	max-height: 470px;
}

button.carousel-nav.prev-btn {
    position: absolute;
    top: 0;
    right: 80px;
	background: none;
    box-shadow: none;
}

button.carousel-nav.next-btn {
    position: absolute;
    right: 0;
    top: 0;
	background: none;
    box-shadow: none;
}

.boudorButton a {
    width: 100% !important;
    display: block !important;
    min-width: 140px;
    padding: 10px;
	box-shadow: 0 4px 4px 0 rgb(0,0,0,0.25) !important;
	border: 1px solid #FCF5E9;
}

.boudorButton a:hover {
	box-shadow: none !important;
	border: 1px solid;
}

.boudorButton2 a {
    width: 100% !important;
    display: block !important;
    min-width: 140px !important;
	max-width: 140px !important;
    padding: 10px;
	box-shadow: 0 4px 4px 0 #27140A !important;
	border: 1px solid #FCF5E9;
	
}

.boudorButton2 a:hover {
	box-shadow: none !important;
	border: 1px solid;
}

.boudorButton2.defaultWidth a {
    width: 200px !important;
    margin: 0 auto;
	min-width: 200px !important;
	max-width: 200px !important;
    
}

span#nf-form-title-2 {
    display: none;
}

div#nf-field-5-container {
    padding: 0;
    margin: 0;
}

div#nf-form-2-cont {
    margin-top: 10px;
    margin-left: -5px;
	max-width: 500px;
}

textarea#nf-field-6 {
    max-height: 150px;
}

input#nf-field-7 {
    float: right;
    font-size: 18px;
    background: #FCF5E9;
    border: 0;
    padding: 10px 50px;
    font-family: 'Canela';
    color: #4C1A0F;
    margin-top: -20px;
}

.nf-response-msg p {
    color: #fff;
    font-weight: bold;
}

.nf-form-fields-required {
    display: none;
}

.nf-field-label {
    display: none;
}

span#nf-form-title-3 {
    display: none;
}

input#nf-field-10 {
    margin-top: 20px;
    padding: 15px 10px;
}

input#nf-field-9 {
    float: right;
    font-size: 18px;
    background: #FCF5E9;
    border: 0;
    padding: 10px 50px;
    font-family: 'Canela';
    color: #4C1A0F;
    margin-top: -10px;
}

div#nf-form-3-cont {
    max-width: 400px;
}

input#nf-field-8 {
    padding: 15px 5px;
    margin-top: 20px;
}

a[lang="en-US"], a[lang="ar"] {
    font-family: 'Canela';
    /* font-size: 12px !important; */
    font-weight: 300 !important;
}

li#menu-item-301-en {
    margin-left: 20px;
	text-transform: uppercase;
}

li#menu-item-301-ar {
    text-transform: uppercase;
}

li#menu-item-301-en:after {
    content: "|";
    color: #D4A989;
    position: relative;
    left: 15px;
}

.df-popup-thumb.df-popup-thumb {
    width: 100% !important;
    padding: 0;
    margin: 0 !important;
}

.df-popup-thumb .df-book-cover {
    padding: 0 !important;
    background: #5a3a1b !important;
    border: 0 !important;
    box-shadow: none !important;
    background: red;
}

.languageSwitcher {
	text-transform: uppercase;
}

nav.main-navigation.hiddenNavigation {
    display: none;
}

div#animatedDisk {
    background: url(/wp-content/uploads/2026/05/hp11.webp);
    background-size: 700px;
    background-repeat: no-repeat;
    background-position: -1163px -285px;
    animation: zoomBackground 8s ease-in-out infinite alternate;
	width: 300px;
	height: 300px;
	border-radius: 100%;
}

@keyframes zoomBackground {
    0% {
        background-size: 700px;
    }
    100% {
        background-size: 3000px;
    }
}



div#diskParent {
    background: url(/wp-content/uploads/2026/04/bookcover.webp);
    background-size: 700px;
    background-repeat: no-repeat;
    /* background-position: -1163px -285px; */
    border-radius: 100%;
	width: 300px;
	height: 300px;
	padding: 0;
}

/* ============================================
   FIXED HEADER ON SCROLL
   ============================================ */

/* Default header state */
.site-header {
    position: fixed;
    width: 100%;
    transition: all 0.4s ease;
    background-color: transparent !important;
}

/* Fixed header state when scrolling */
.site-header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #27140a !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 0 !important;
    animation: slideDown 0.4s ease;
}

/* Optional: Logo size adjustment when fixed */
.site-header.fixed .custom-logo {
    max-height: 50px;
}

/* Header container adjustment when fixed */
.site-header.fixed .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header.fixed .header-left {
    position: relative;
    left: 25px;
    top: 5px;
}

/* Smooth slide down animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add padding to body when header is fixed to prevent content jump */
body.header-fixed {
    padding-top: 80px;
}

input#forminator-field-email-1_69f4ac0ec1e98 {
    margin-top: 20px;
    padding: 15px 10px;
}

div#email-1, .forminator-field {
    max-width: 450px;
}

.forminator-label {
    display: none !important;
}

.forminator-input.forminator-email--field {
    font-family: 'Canela';
    letter-spacing: 1px;
    padding: 15px !important;
}

.forminator-error-message {
    background: none !important;
    color: #fff !important;
}

button.forminator-button.forminator-button-submit {
    float: right !important;
    font-size: 18px !important;
    background: #FCF5E9 !important;
    border: 0 !important;
    padding: 10px 50px !important;
    font-family: 'Canela' !important;
    color: #4C1A0F !important;
    margin-top: -10px !important;
    /* width: 160px !important; */
    border-radius: 0 !important;
    margin-right: 30px !important;
	font-weight: 400 !important;
}

.df-lightbox-bg {
    background: none !important;
}

.df-bg {
    background: rgb(0,0,0,0.5) !important;
}

.df-ui-btn.df-ui-page, .df-ui-btn.df-ui-thumbnail.df-icon-grid-view.df-sidemenu-trigger, .df-ui-btn.df-ui-fullscreen.df-icon-fullscreen, .df-ui-btn.df-ui-share.df-icon-share, .df-ui-btn.df-ui-more.df-icon-more {
    display: none !important;
}

#socialIcons img {
    width: 25px;
    margin-top: 10px;
}

.site-footer {
    padding-top: 60px;
}

.hidden {
	display: none !important;
}

/* Fix Elementor Background Video to cover full container */
.boudorHeader {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.elementor-background-video-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
}

.elementor-background-video-hosted {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: cover !important;
}

/* Force the container to respect viewport height */
.boudorHeader,
.boudorHeader .e-con-inner {
    min-height: 100vh;
}


/* ============================================
   SECTION SNAP SCROLLING - IMPROVED
   ============================================ */

/* Prevent multiple scroll animations from conflicting */
html, body {
    overflow-x: hidden;
    scroll-behavior: auto; /* Disable native smooth scroll, let JS handle it */
}

/* Ensure sections have proper spacing */
.bodourScroll {
    scroll-margin-top: 30px;
    position: relative;
}

/* Disable wheel events on body when scrolling to prevent conflicts */
body.snapping {
    pointer-events: none;
}

body.snapping * {
    pointer-events: none;
}

/* Optional: Add a subtle progress indicator (only visible on desktop) */
@media (min-width: 1025px) {
    .bodourScroll {
        position: relative;
    }
    
    .bodourScroll:before {
        content: '';
        position: fixed;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 2px;
        height: 0;
        background: #D4A989;
        border-radius: 2px;
        z-index: 9999;
        transition: height 0.3s ease;
    }
}

/* Better scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #27140a;
}

::-webkit-scrollbar-thumb {
    background: #D4A989;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #CAAA71;
}

/* Mobile adjustments - more natural scrolling */
@media (max-width: 768px) {
    .bodourScroll {
        scroll-margin-top: 15px;
    }
    
    /* Allow more natural scrolling on mobile */
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Mobile menu - responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
		align-items: flex-start !important;
    }
    
    .primary-menu {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #27140A !important;
    color: #333333;
    padding: 20px;
    text-align: left;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding: 0 120px;
}

.copyright {
    font-size: 16px;
    font-family: 'Canela';
    color: #FCF5E9;
	text-align: center;
}

/* Main content */
#main-content {
    min-height: 500px;
}

/* Ensure Elementor full-width works */
.elementor-page #main-content {
    padding: 0;
    margin: 0;
}

/* Basic body styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
}


/* ============================================
   BURGER MENU STYLES
   ============================================ */

/* Hide burger button by default on desktop */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    position: relative;
}

.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: #FFF6E9;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Burger menu animation when open */
.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   MOBILE & TABLET STYLES
   ============================================ */

/* Tablet and Mobile (up to 1024px) */
@media (max-width: 1024px) {
	
	.appendMainMenu ul.primary-menu {
		display: none !important;
	}
    /* Show burger button */
    .burger-menu {
		display: block;
		position: fixed;
		right: 10px;
		top: 10px;
		background: #27140A;
	}
	
	li.langSwitch {
		width: 50% !important;
		float: left;
		padding: 0;
		margin: 0;
		border: 0;
	}
	
	li.langSwitch:after {
		display: none;
	}
	
	li.langSwitch a {
		border: 0 !important;
		margin: 0;
		padding: 0 !important;
	}
    
    /* Navigation container */
    .header-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding-top: 80px;
        overflow-y: auto;
    }
    
    /* When menu is open */
    .header-right.open {
        right: 0;
		top: -85px;
    }
	
	.header-right.open .menu-primary-menu-container {
		width: 100%;
	}
    
    /* Overlay when menu is open */
    .header-right.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: -1;
    }
    
    /* Menu styling */
    .main-navigation {
        width: 100%;
    }
    
    .primary-menu {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }
    
    .primary-menu li {
        width: 100%;
        text-align: center;
    }
    
    .primary-menu li a {
        display: block;
        padding: 12px 20px;
        font-size: 18px;
        border-bottom: 1px solid #eee;
    }
    
    .primary-menu li a:hover {
        background: #f5f5f5;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* ============================================
   DESKTOP STYLES (1025px and above)
   ============================================ */
@media (min-width: 1025px) {
    /* Ensure menu is always visible on desktop */
    .header-right {
        display: block !important;
    }
    
    .primary-menu {
        display: flex !important;
        flex-direction: row;
        gap: 30px;
        margin: 0;
        padding: 0;
    }
    
    .primary-menu li {
        margin: 0;
        padding: 0;
    }
    
    .primary-menu li a {
        padding: 8px 0;
    }
}

/* ============================================
   SMALL MOBILE (up to 480px)
   ============================================ */
@media (max-width: 480px) {
    .header-right {
        width: 100%;
        max-width: 100%;
    }
    
    .primary-menu li a {
        font-size: 16px;
        padding: 10px 15px;
    }
}

/* Header container adjustments for mobile */
/* Tablet Styles (max-width: 1024px) */
@media (max-width: 1024px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .header-left {
        z-index: 1001;
    }
    
    div#homeLeftSide {
        max-height: 420px;
    }
    
    div#homeRightSide {
        max-height: 420px;
    }
    
    div#homeMiddleSide {
        max-height: 400px;
    }
    
    div#homeRightSide .headTitle1 {
        font-size: 18px !important;
    }
    
    div#homeRightSide .headTitle2 {
        font-size: 26px !important;
    }
    
    div#homeRightSide .headTitle3 {
        font-size: 12px;
    }
    
    div#homeRightSide .headTitle4 {
        font-size: 16px;
        inset-block-start: 235px;
    }
    
    div#homeRightSide .headTitle5 {
        inset-block-start: 265px;
    }
    
    div#rightSideButtons {
        top: 290px;
    }
    
    .AboutLeftTitle {
        font-size: 30px !important;
    }
    
    div#diskParent {
        width: 260px;
        height: 260px;
    }
    
    
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    div#homeLeftSide {
        max-height: 340px !important;
        background-position: 0px 37px;
    }
    
    div#homeLeftSide h2 {
        font-size: 14px;
        padding: 25px;
    }
    
    div#homeMiddleSide {
        max-height: 330px;
    }
    
    div#homeRightSide {
        max-height: 340px !important;
        background-position: -575px 37px;
    }
    
    div#homeRightSide .headTitle1 {
        font-size: 14px !important;
        inset-block-start: 115px;
    }
    
    div#homeRightSide .headTitle2 {
        font-size: 20px !important;
        inset-block-start: 135px;
    }
    
    div#homeRightSide .headTitle3 {
        font-size: 9px;
        inset-block-start: 175px;
    }
    
    div#homeRightSide .headTitle4 {
        font-size: 12px;
        inset-block-start: 205px;
    }
    
    div#homeRightSide .headTitle5 {
        inset-block-start: 230px;
    }
    
    div#rightSideButtons {
        top: 250px;
    }
    
    div#rightSideButtons a {
        font-size: 11px;
        width: auto !important;
        display: inline-block !important;
        padding: 7px;
        width: 20% !important;
        min-width: 115px !important;
    }
    
    .review-card {
        display: flex !important;
        align-items: center !important;
    }
    
    .review-thumbnail {
        width: 262px !important;
        height: auto !important;
        overflow: hidden !important;
        background: #fff !important;
    }
	
	div#author .e-con-inner {
        display: block !important;
    }
    
    div#aboutLeftSide, div#aboutMiddleSide, div#aboutRightSide {
        width: 100%;
    }
    
    div#author .e-con-inner h2 br {
        display: none;
    }
    
    div#journalLeftSide {
        width: 50%;
    }
    
    .audio-player-wrapper {
        flex-direction: row !important;
    }
}

/* Mobile Styles (max-width: 425px) */
@media (max-width: 450px) {
   div#homeLeftSide h2 {
		font-size: 20px;
		padding: 75px;
	}
	
	div#homeMiddleSide {
		max-height: 330px;
		width: 79%;
		margin: 0 auto;
	}
	
	div#homeRightSide {
		max-height: 340px !important;
		background-position: -352px 37px;
	}
	
	div#homeRightSide .headTitle1 {
		font-size: 20px !important;
		inset-block-start: 73px;
	}
	
	div#homeRightSide .headTitle2 {
		font-size: 28px !important;
		inset-block-start: 105px;
	}
	
	div#homeRightSide .headTitle3 {
		font-size: 20px;
		inset-block-start: 155px;
	}
	
	div#homeRightSide .headTitle4 {
		font-size: 20px;
		inset-block-start: 195px;
	}
	
	div#searchingQuote {
		margin-top: 20px;
	}
	
	div#searchingQuote h2 {
		font-size: 20px;
	}
	
	.review-card {
		display: block !important;
		align-items: center !important;
	}
	
	div#journalLeftSide {
		width: 100%;
	}
	
	div#diskParent {
		width: 260px;
		height: 260px;
		margin: 0 auto;
	}
	
	div#book .boudorButton2 {
		position: relative;
		margin-top: 29px !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	
	div#book .boudorButton2 a {
		width: 100% !important;
		margin: 0 auto;
		display: block !important;
		min-width: 100% !important;
	}
	
	#bottomJournalLeft {
		min-height: auto !important;
	}
	
	input#nf-field-7, input#nf-field-9 {
		width: 100%;
	}
	
	#followCol h3 {
		padding: 0;
		margin: 0;
	}
	
	.footer-container {
		padding: 0 0;
	}
}


