/*
Theme Name: Webproz
Theme URI: https://webprozz.com
Author: Webproz
Author URI: https://webprozz.com
Description: Webproz custom theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webproz
*/

/* Apply Cairo font when site is in Arabic */

/* Global Alignment Based on RTL/LTR */
html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* Ensure Bootstrap's Grid Aligns Properly */
html[dir="rtl"] .post-excerpt {
    /* flex-direction: row-reverse; */
    text-align:right;
}

html[lang="ar"] body {
    font-family: 'Cairo', sans-serif !important;
}


body{
    background-color:  white !important;
    line-height: normal;
}

body {
    overflow-x: hidden;
}

.contact-details p a{
    color:black;
    text-decoration: none;
}

.contact-details p a:hover{
    color:#a96b41;
}

.wpcf7-form input.wpcf7-submit {
    display: block;
    margin: 0 auto;
}


.footer-widget a, .sidebar a, .blog-post-card a{
    color: black !important;
    text-decoration: none!important;
}

.footer-widget a:hover, .sidebar a:hover{
    color:#a96b41 !important;
}

.footer-widget .widget_nav_menu ul{
    list-style: none;
}
body > footer > div > div.text-center.mt-2 > a{
    text-decoration: none;
    color: black;
    
}
main{
    min-height:120vh;
}

.custom-logo {
    max-height: 50px !important;
    width: auto !important;
    margin-left: 15px !important;
    margin-right: 20px !important;
}

.alignwide {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}

.alignfull {
    width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.main-menu > li {
    margin-right: 15px; /* e.g. 15px spacing */
}
/* Or spacing on both sides */
.main-menu > li {
    margin: 0 10px;
}

/* 1. Background Image Styling */
.header-bg {
    z-index: 1;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    height: 70vh; /* Half the viewport height */
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff; /* Text color for visibility */
    text-align: center;
    overflow: hidden; /* Prevents overflow if content is larger */
    /* Optional: Add a parallax-like effect with background-attachment: scroll; */
    background-attachment: fixed;    
}

.header-bg, .navbar, .container-fluid {
    max-width: 100% !important;
    overflow: hidden;
}

/* 2. Overlay Styling (Optional) */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 11%);    ; /* Adjust opacity as needed */
    z-index: 1;
}

/* 3. Header Content Styling */
.header-content {
    position: relative;
    z-index: 2; /* Ensures content is above the overlay */
    background-color: #2f4f4f52;
    padding: 5px;
    border-radius: 3px;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.header-content p {
    font-size: 1.5rem;
}

.header-content .btn {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
}

.main-content{
    position: relative !important;
    margin-top:55vh;
}

/* 4. Navigation Bar Styling */
.navbar {
    position: relative;
    z-index: 1000;
    background-color: transparent !important;
}

.navbar-light .navbar-nav .nav-link {
    color: white !important; /* Ensures text is visible over background */
    font-weight: bold !important;
}

/* 5. Adjust Navbar Menu Spacing */
.navbar-nav.main-menu > li {
    margin-right: 20px; /* Adjust as needed */
}

.navbar-nav.main-menu > li a{
    color: white !important;
    text-decoration: none !important;
}

.navbar-nav.main-menu > li a:hover{
    color: #a87e58 !important;
}

/* Active Page Underline for All Menus */
.navbar-nav .menu-item.current-menu-item > a::after,
.navbar-nav .menu-item.current_page_item > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px; /* Position the line right below the text */
    width: 50%; /* Length of the underline */
    height: 3px;
    background-color: #b28b67; /* Adjust to match section title decoration */
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

/* Hover Effect - Expands the line slightly */
.navbar-nav .menu-item > a:hover::after {
    width: 60%;
}

/* Ensure Proper Spacing */
.navbar-nav .menu-item > a {
    position: relative;
    padding-bottom: 5px; /* Space for the line */
}


#language-switcher > li.nav-item {
    margin-left: 20px; /* Adjust as needed */
}


/* Slower AOS Animation */
.header-content[data-aos="fade-up"] {
    opacity: 0; /* Initial state for AOS */
    transform: translateY(30px); /* Slightly larger movement */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out; /* Increased duration */
}

.header-content[data-aos="fade-up"].aos-animate {
    opacity: 1; /* Final state after AOS */
    transform: translateY(0); /* Move to original position */
}

/* 8. Additional Enhancements */

/* Hover Effects for Navbar Links */
.navbar-nav.main-menu > li.nav-item > a.nav-link:hover,
#language-switcher > li.nav-item > a.nav-link:hover {
    color: #007bff; /* Bootstrap's primary color or choose your own */
}

/* Active Menu Item Styling */
.navbar-nav.main-menu > li.nav-item.active > a.nav-link {
    font-weight: bold;
    color: #0056b3; /* Darker shade for active link */
}

/* RTL Specific Adjustments */
html[dir="rtl"] .navbar-nav.main-menu > li.nav-item {
    margin-left: 20px; /* Mirror the spacing for RTL */
    margin-right: 0;
}

html[dir="rtl"] #language-switcher > li.nav-item {
    margin-right: 20px; /* Mirror the spacing for RTL */
    margin-left: 0;
}


/* Section Wrapper */
.custom-section {
    padding: 80px 0;
}

/* Image Styling */
.image-container {
    text-align: center;
}

.styled-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.styled-image:hover {
    transform: scale(1.05);
}

/* Text Styling */
.text-container {
    text-align: left;
}

html[dir="rtl"] .text-container {
    text-align: right;
}

/* Read More Button */
.read-more-btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #5a3e2b !important; /* Dark beige/brown text */
    background-color: #f5deb3 !important; /* Beige yellowish color */
    border: none;
    border-radius: 5px;
    text-decoration: none !important;
    transition: background-color 0.3s ease-in-out, transform 0.2s;
}

.read-more-btn:hover {
    color: #442e1f !important;;
    background-color: #e0c195 !important; /* Slightly darker beige on hover */
    transform: scale(1.05); /* Subtle hover effect */
}

/* Latest Posts Section */
.latest-posts {
    padding: 80px 0;
    text-align: center;
    background-color: #f3f3f3;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    margin-bottom: 80px;
    font-weight: bold;
}

/* Post Card */
.post-card {
    text-align: left;
    width:400px !important;
    margin: 0 auto !important;
    margin-bottom: 60px !important;
    background-color:#fff;
    min-height:500px;
    padding: 0!important;
    border-radius: 5px;
}

html:not([dir="rtl"]) .post-card {
    text-align: left;
    max-width: 400px !important;
    margin: 0 auto !important;
    margin-bottom: 60px !important;
    background-color: #fff;
    min-height: 500px;
    padding: 0 !important;
    border-radius: 5px;
}


.post-card p{
    padding: 10px !important;
}

/* Post Image */
.post-image {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust height */
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 5px;
}

.post-title-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1.7), rgba(0, 0, 0, 0)); /* Dark at bottom, fades at top */
    padding: 10px 15px;
}

h3.post-title{
    color: white!important;
    font-size: 1.5rem!important;
    margin: 0;
    text-align: center!important;
}

html[dir="rtl"] .post-title {
    color: black;
    font-size: 2rem;
    margin: 0;
    text-align: right;
    margin-bottom: 20px;
}
html[dir="ltr"] .post-title {
    color: black;
    font-size: 2rem;
    margin: 0;
    text-align: left;
    margin-bottom: 20px;

}

/* Excerpt */
.post-excerpt {
    margin-top: 15px;
    font-size: 1rem;
    color: #555;
    padding:10px;
}

.post-link {
    text-decoration: none !important; /* Remove underline from the entire link */
    color: inherit !important; /* Ensure text uses normal colors */
}

.post-link p {
    text-decoration: none !important; /* Remove underline from paragraph */
    margin: 0; /* Optional: Adjust spacing */
    line-height: normal;
}


/* Read More Button */
.read-more-btn {
    display: inline-block;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #5a3e2b !important;
    background-color: #f5deb3 !important;
    border-radius: 5px;
    text-decoration: none !important;
    transition: background-color 0.3s ease-in-out, transform 0.2s;
}

.read-more-btn:hover {
    background-color: #e0c195 !important;
    transform: scale(1.05);
}

.section-title2 {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

/* Non-Straight Underline */
.section-title2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 80px; /* Adjust width */
    height: 6px; /* Adjust thickness */
    background: url('http://www.w3.org/2000/svg') no-repeat center;
    background-size: contain;
    transform: translateX(-50%);
}

/* Alternative: Angled Underline */
.section-title2.angled::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 180px;
    height: 5px;
    background-color: #f5deb3; /* Beige Yellow */
    transform: translateX(-50%) skewX(-40deg);
    border-radius: 2px;
}
.contact-page .contact-title{
    position:relative;
    display: inline-block;
}

.contact-page .contact-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 140px;
    height: 5px;
    background-color: #f5deb3; /* Beige Yellow */
    transform: translateX(-50%) skewX(-40deg);
    border-radius: 2px;
}

.section-title2 {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

/* Non-Straight Underline */
.section-title2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 80px; /* Adjust width */
    height: 6px; /* Adjust thickness */
    background-size: contain;
    transform: translateX(-50%);
}

/* Alternative: Angled Underline */
.section-title2.angled::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 180px;
    height: 5px;
    background-color: #f5deb3; /* Beige Yellow */
    transform: translateX(-50%) skewX(-40deg);
    border-radius: 2px;
}


.single-post-layout {
    display: flex;
    flex-direction: row;
}

.single-post-layout {
    margin-top: 60vh; /* Matches the height of the header */
}

#post-content {
    order: 1;
}

.single-post-sidebar {
    order: 2;
}

html[dir="rtl"] #post-content {
    order: 2; /* Place content second for RTL */
}

html[dir="rtl"] .single-post-sidebar {
    order: 1; /* Sidebar comes first for RTL */
}

/* Additional Styling */
.single-post-sidebar {
    padding: 15px;
    border-radius: 5px;
}

.single-post-sidebar .widget {
    margin-bottom: 20px;
}

.post-content{
    margin-top: 50px;
}

.breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 20px;
    margin-top: 40px;
    padding: 10px 15px;
    border-radius: 5px;
    color: #555;
}

.breadcrumbs a {
    text-decoration: none;
    margin-right: 5px;
    color: black;
}

.breadcrumbs a:hover {
    color: #442e1f!important;
}

.breadcrumbs span {
    margin: 0 5px;
    color: #888;
}

.widget.sidebar {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

/* Sidebar Styling */
.single-post-sidebar {
    padding: 15px;
    background: #fff;
    border-radius: 5px;
}

/* Footer Styling */
footer {
    background-color: #f3f3f3;
    padding: 40px 20px;
    text-align: center;
    margin-top:100px;
}

/* Footer Widgets Layout */
.footer-widgets {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
    width:100%;
}

/* Each Widget */
.footer-widget {
    padding: 10px;
    text-align: center;
}

/* Widget Titles */
.footer-widget-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Featured Pages Section */
.featured-pages {
    padding: 80px 0;
}

/* Page Card */
.page-card {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}


.page-card:hover {
    transform: scale(1.03);
}

/* Page Image */
.page-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Title Overlay */
.page-title-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 10px 15px;
}

.featured-page-title {
    color: black;
    font-size: 1.5rem;
    margin: 0;
}

/* Page Excerpt */
.page-excerpt {
    padding: 15px;
    font-size: 1rem;
    color: #555;
}

/* Blog Page Layout */
.blog-page-container {
    margin-top: 60vh; /* Pushes content below the header */
}

/* Breadcrumbs */
.blog-breadcrumbs {
    margin-bottom: 20px;
}

/* Blog Title */
.blog-section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

/* Blog Post Card */
.blog-post-card {
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 20px;
}


/* Blog Post Image */
.blog-post-image {
    background-size: cover;
    background-position: center;
    height: 180px;
    border-radius: 10px;
}

/* Blog Post Text */
.blog-post-excerpt {
    padding: 15px;
}

/* Blog Pagination */
.blog-pagination {
    margin-top: 30px;
    text-align: center;
}

/* No Posts Found Message */
.no-blog-posts {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
}

/* Contact Page */
.contact-page {
    margin-top: 70vh;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stack on small screens */
}

.contact-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Center the form and details */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 900px;
}

/* Contact Form Styling */
.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

/* Contact Details Styling */
.contact-details {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* Align Right in RTL */
html[dir="rtl"] .contact-details {
    text-align: center;
}

@media (min-width: 1100px) {
    .main-content{
        margin-top: 65vh;
    }
}

@media (min-width: 992px) { /* pc */
    /* body > div.accessibility_component.accessibility_div_wrap > a.btn_accessibility.accessibility_component{
        margin-top:60px !important;
    } */
    #navbarNav {
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    /* When the website is RTL */
    html[dir="rtl"] #language-switcher {
        margin-right: auto !important; /* Pushes it to the left */
        margin-left: 0 !important;
    }

    /* When the website is LTR */
    html[dir="ltr"] #language-switcher {
        margin-left: auto !important; /* Pushes it to the right */
        margin-right: 0 !important;
    }
}


/* 6. Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-toggler{
        background-color: #f5deb366 !important;
        margin-left: 5px !important;
        padding: 5px !important;
    }

    .navbar-collapse{
        background-color: #00000021 !important;
        padding: 10px !important;
    }

    .navbar-collapse ul li{
        margin-bottom: 12px;
    }
    .single-post-layout {
        flex-direction: column; /* Stack content vertically */
    }

    html[dir="rtl"] #post-content {
        order: 1; /* Main content first */
    }

    .single-post-sidebar {
        order: 2; /* Sidebar comes after content */
    }
    .post-image {
        height: 200px;
    }
    .header-bg {
        height: 50vh; /* Reduce height on smaller screens */
        background-attachment: scroll; /* Disable parallax on mobile */
    }

    .header-content {
        margin-top: 0; /* Reset margin-top */
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    .navbar-nav.main-menu > li,
    #language-switcher > li.nav-item {
        margin-right: 10px;
        margin-left: 10px;
    }

    .row {
        flex-direction: column;
    }

    .text-container, .image-container {
        text-align: center;
        margin-bottom: 20px;
    }
    .footer-widgets {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-widget {
        width: 100%;
        text-align: center;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-form, .contact-details {
        max-width: 100%;
    }

    .blog-page-container {
        margin-top: 40vh; /* Reduce space for smaller screens */
    }

    .single-post-layout {
        margin-top: 40vh; /* 10vh less height of the header */
    }
    .contact-page{
        margin-top:40vh;
    }
    .main-content{
        margin-top:40vh;
    }
}