/* General Body and Container Styles */
body {
    margin: 0;
    font-family: 'PT Sans Narrow', sans-serif;
    background-color: #f4f4f4; /* Light background for content */
    color: #333;
    line-height: 1.6;
    display: flex; /* Use flex to manage the whole page layout with nav and main-wrapper */
    flex-direction: column; /* Stack header and main content */
    min-height: 100vh; /* Ensure body takes full viewport height */
}

/* Video Background */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Ensures video is behind other content */
}

#backgroundVideo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Covers the entire container */
}

/* Navigation Bar */
.aw {
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
    padding: 15px 30px;
    color: #fff;
    display: flex;
    justify-content: center; /* Center the inner container */
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000; /* Stays on top */
    width: 100%; /* Take full width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.aw .b {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Limit width for better readability */
}

.aw .aaaa a {
    color: #b8860b; /* Golden color for logo */
    text-decoration: none;
    font-size: 2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    white-space: nowrap; /* Prevent wrapping */
}

.aw .aaaa a i {
    margin-right: 10px;
}

.aw .aaa {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between elements */
}

/* New toggle button for sidebar */
.aw .aaa .toggle-sidebar-btn {
    background-color: #b8860b;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.aw .aaa .toggle-sidebar-btn:hover {
    background-color: #a0750a;
}

.aw .aaa #myInput {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 250px;
    font-size: 1em;
}

.aw .aaa .se {
    background-color:goldenrod;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.aw .aaa .se:hover {
    background-color: rgb(188, 143, 27);
}

.aw .aa {
    display: flex;
    gap: 20px;
}

.aw .aa a {
    color: #fff;
    font-size: 1.3em;
    transition: color 0.3s ease;
}

.aw .aa a:hover {
    color: #b8860b; /* Hover color for icons */
}

/* Main Content Wrapper (Sidebar + Main Area) */
.main-content-wrapper {
    display: flex;
    flex: 1; /* Allow wrapper to take remaining vertical space */
    padding-top: 20px; /* Space below fixed navigation */
    position: relative; /* For z-index context if needed */
    z-index: 1; /* Ensure it's above the video background */
}

/* Sidebar Styles */
.sidebar {
    background-color: rgba(17, 17, 17, 0.95);
    color: #fff;
    padding-top: 20px;
    flex-shrink: 0; /* Prevent sidebar from shrinking */
    transition: width 0.3s ease-in-out; /* Smooth transition for width change */
    overflow-y: auto; /* Allow vertical scrolling */
    overflow-x: hidden; /* Hide horizontal overflow */
    height: calc(100vh - 85px); /* Full height minus header height and some top margin */
    position: sticky; /* Keep sidebar visible while scrolling main content */
    top: 85px; /* Adjust based on your header height */
    z-index: 999; /* Below navigation, above content */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);

    /* Hide scrollbar for Chrome, Safari, Opera */
    &::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
    /* Hide scrollbar for Firefox */
    scrollbar-width: none;
    /* Hide scrollbar for IE, Edge */
    -ms-overflow-style: none;
}

.sidebar.collapsed {
    width: 100px; /* **تكبير عرض السايد بار المصغر** */

}

.sidebar.expanded {
    width: 250px; /* **تكبير عرض السايد بار المكبر** */
}

.sidebar a {
    display: flex; /* Use flex for icon and text alignment */
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #ccc;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
}

.sidebar a:hover {
    background-color: #b8860b;
    color: #fff;
}

.sidebar a i {
    font-size: 1.4em;
    min-width: 40px; /* Ensure icon has consistent space */
    text-align: center;
    margin-right: 10px; /* Space between icon and text */
}

.sidebar-text {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.sidebar.collapsed .sidebar-text {
    opacity: 0;
    width: 0; /* Hide text space when collapsed */
    overflow: hidden;
}

.sidebar-header {
    padding: 0 20px 20px;
    color: #b8860b;
    text-align: center; /* Center the title in expanded state */
    font-size: 1.2em;
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.sidebar.collapsed .sidebar-header {
    opacity: 0;
    height: 0;
    overflow: hidden;
    padding-bottom: 0; /* Remove padding when hidden */
}


/* Main Content Area */
.content-area {
    flex-grow: 1; /* Allow content to take remaining width */
    padding: 0 20px; /* Padding for the content itself */
    transition: margin-left 0.3s ease-in-out; /* Smooth transition when sidebar expands/collapses */
    margin-left: 90px; /* **تعديل الـ margin-left الأولي ليتناسب مع عرض السايد بار المصغر الجديد** */
    box-sizing: border-box; /* Include padding in width */
}

/* Service Cards */
.service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Space between cards */
    padding: 50px 0px; /* Padding around the entire service list */
    max-width: 1200px; /* Limit width for better readability */
    margin: 0 auto; /* Center the content within content-area */
    
    border-radius: 8px; /* مع الاحتفاظ بالـ border-radius */
}

.service-card {
    background-color: rgba(255, 255, 255, 0.695); /* **جعل الخلفية شبه شفافة هنا** */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    width: 310px; /* Fixed width for cards */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space vertically */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; /* إضافة transition للخلفية */
    border: 1px solid rgba(238, 238, 238, 0.5); /* **جعل الـ border شفافًا بعض الشيء** */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.929); /* **زيادة وضوح الخلفية عند المرور عليها** */
}

.service-card img {
    max-width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: contain; /* Ensures image fits without cropping */
    border-radius: 4px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.6em;
    color: #b8860b;
    margin-top: 10px;
    margin-bottom: 10px;
}

.service-card p.en {
    font-size: 0.95em;
    color: #555;
    flex-grow: 1; /* Allows description to take up available space */
    margin-bottom: 10px;
    min-height: 60px; /* Ensure consistent height for descriptions */
}

.service-card p.category {
    font-size: 0.85em;
    color: #777;
    font-style: italic;
    margin-bottom: 15px;
    min-height: 40px; /* Ensure consistent height for category info */
}

.service-card .rating {
    color: #ffc107; /* Star color */
    margin-bottom: 15px;
}

.service-card .rating span {
    color: #555;
    font-size: 0.9em;
    margin-left: 5px;
}

.service-card .price {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 20px;
}

.service-card .price strong {
    color: #b8860b;
}

.service-card .button {
    background-color: #b8860b;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    text-decoration: none; /* For the anchor tag with button class */
    transition: background-color 0.3s ease;
}

.service-card .button:hover {
    background-color: #a0750a;
}

/* Animation for service cards */



/* Footer Styles */
.footer {
    background-color: #232f3e;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
    margin-top: auto; /* Push footer to the bottom */
    width: 100%; /* Ensure footer spans full width */
    box-sizing: border-box;
}

.footer-top a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #37475a;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.footer-top a:hover {
    background-color: #485769;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    text-align: left;
}

.footer-links div {
    flex: 1;
    min-width: 200px; /* Ensure columns don't get too narrow */
    margin: 15px;
}

.footer-links h4 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #b8860b;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-social {
    margin-top: 30px;
    margin-bottom: 20px;
}

.footer-social a {
    color: #fff;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #b8860b;
}

.footer-logo {
    display: flex;
    flex-direction: column; /* Stack logo elements */
    align-items: center;
    margin-top: 20px;
}

.footer-logo i {
    font-size: 68px;
    color: #b8860b;
    height: auto; /* Auto height to fit font size */
    margin-bottom: 10px; /* Space below the icon */
}

.footer-lang {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-lang button {
    background-color: #37475a;
    color: #fff;
    border: 1px solid #555;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-lang button:hover {
    background-color: #485769;
    border-color: #777;
}

.footer-bottom {
    margin-top: 30px;
    border-top: 1px solid #37475a;
    padding-top: 20px;
    color: #ccc;
}

