html[dir="rtl"] body {
    overflow-x: hidden;
}
.section,
.bg-cover,
.optech-section-padding,
.cta-bg3 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

html[dir="rtl"] .slick-slider .slick-track {
    left: auto !important;
    right: 0 !important;
}

.wishlist_icon svg path {
    stroke: #000;
    /* default outline color */
    fill: transparent;
    transition: all 0.3s ease;
}

.wishlist_icon:hover svg path {
    fill: #ff4d4d;
    /* hover fill color */
    stroke: #ff4d4d;
}

.wishlist_icon.active svg path {
    fill: #ff4d4d;
    /* active state fill color */
    stroke: #ff4d4d;
}

.optech-hero-slider-item::before {
    content: "";
    left: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    position: absolute;
    background-size: cover;
    background-image: url('../img/hero/overlay.png') !important;
}

.optech-service-contact {
    background-image: url('../img/service/bg.png');
}

.optech-footer-cta-wrap {
    background-image: url('../img/cta/cta.png');
}

.optech-counter-wrap {
    background-image: url('../img/v2/counter-bg.png');
}

.optech-hero-section {
    background-image: url('../img/hero/bg1.png');
}

.optech-service-contact {
    background-image: url('../img/service/bg.png');
}

.custom_image {
    background-image: url('../img/cta/cta-bg2.png');
}

.optech-hero-section4 {
    background-image: url('../img/hero/bg3.png');
}

.tech-agency-img {
    background-image: url('../img/hero/bg2.png');
}

.optech-footer-cta-wrap {
    background-image: url('../img/cta/cta.png');
}

.optech-hero-section8 {
    background-image: url('../img/hero/bg4.png');
}

.custom-image-two {
    background-image: url('../img/cta/cta-bg3.png');
}

.custom-image-two-home {
    background-image: url('../img/cta/cta-bg2.png') !important;
}

.cookie_consent_modal {
    width: 350px;
    padding: 30px;
    background-color: var(--white-color);
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    border: 1px solid #e4e4e4;
    box-shadow: 2px 3px 4px 0 rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.cookie_consent_modal .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 1;
}

.cookie_consent_modal h5 {
    font-size: 22px;
    font-weight: 500;
}

.cookie_consent_modal p {
    font-size: 16px;
    line-height: 27px;
    margin-top: 10px;
}

.cookie_consent_modal .thm-btn-two {
    margin-top: 20px;
}

.shop_sidebar_item_box_main.fst {
    min-height: 240px !important;
    height: 0px !important;
}

.dashbord_sidebar {
    border-radius: 0px !important;
    border-right: 1px solid #e3e3ec;
}

.dashbord_bg {
    background: #fff !important;
    box-shadow: 0 12px 40px 4px rgba(10, 22, 94, 0.0784313725) !important;
}

.dashbord_item {
    padding: 0 !important;
    flex-direction: row !important;
    text-align: start !important;
}

.dashbord_item_icon {
    width: 54px !important;
    height: 54px !important;
}

.dashbord_item_text .d-item-label {
    font-size: 14px !important;
    font-weight: 400 !important;
}

.dashbord_table_main .table thead tr th {
    background: #EEF1FF !important;
    white-space: nowrap !important;
}

.d_review_box_head {
    background: #EEF1FF !important;
}

.dashbord_table_main .table tbody tr td {
    min-width: 150px !important;
}

/* Slick Slider Arrow Styling for optech-3column-slider2 and similar */
.slick-prev,
.slick-next {
    font-size: 0; /* Hide default text if any */
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block;
    width: 50px;
    height: 50px;
    padding: 0;
    transform: translateY(-50%);
    cursor: pointer;
    color: #ffffff; /* Arrow icon color */
    background: var(--accent-color, #1c449b); /* Button background */
    border: none;
    outline: none;
    border-radius: 50%; /* Circular buttons */
    z-index: 10; /* Ensure they are above other content */
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: .75;
}

.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus {
    background: var(--heading-color, #0a165e); /* Darker on hover/focus */
    opacity: 0.9;
}

.slick-prev {
    left: 0px; /* Position outside the slider content on the left */
}

.slick-next {
    right: 0px; /* Position outside the slider content on the right */
}

/* Using Remix Icons for arrows */
.slick-prev::before,
.slick-next::before {
    font-family: 'remixicon' !important; /* From remixicon.css */
    font-size: 24px; /* Icon size */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.slick-prev::before {
    content: '\ea64'; /* Unicode for ri-arrow-left-s-line */
}

.slick-next::before {
    content: '\ea6e'; /* Unicode for ri-arrow-right-s-line */
}

/* Responsive adjustments: if arrows go outside container, pull them in */
.container .slick-slider .slick-prev {
    left: 0px; /* Adjust if slider is inside a container */
}

.container .slick-slider .slick-next {
    right: 0px; /* Adjust if slider is inside a container */
}

/* Optional: Hide dots if arrows are preferred
.optech-3column-slider2 .slick-dots {
    display: none !important;
}
*/

html[dir="rtl"] .optech-social-icon-box.right-align {
    text-align: left;
}
html[dir="rtl"] .optech-icon-list {
    text-align: right;
}
html[dir="rtl"] .optech-icon-list ul li {
    margin-right: 30px;
}
html[dir="rtl"] .optech-icon-list ul li i {
    right: -30px;
}

/* === IT Services Section Enhancement === */

/* --- Main Section Styling --- */
.it-services-section {
    position: relative; /* Important for positioning floating elements within it */
    overflow: hidden; /* Hides parts of floating elements that go out of bounds */
    background: linear-gradient(229deg, #ce1c06, #1c449b, #1c449b);
    background-size: 180% 180%;
    animation: gradient-animation 10s ease infinite;
    padding-top: 100px; /* Adjust as needed */
    padding-bottom: 100px; /* Adjust as needed */
}

/* Keyframes for the animated background gradient */
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* --- Floating Elements Styling --- */
.floating-element {
    position: absolute;
    display: block;
    border-radius: 50%; /* Example: circular shape, can be changed */
    opacity: 0.3; /* Light transparency */
    animation-name: float-smoothly;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    z-index: 0; /* Ensure they are behind the content */
}

/* Different shapes, sizes, colors, and positions */
.floating-element.shape1 {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    top: 10%;
    left: 5%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.floating-element.shape2 {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 225, 255, 0.2); /* Light cyan */
    top: 70%;
    left: 15%;
    animation-duration: 10s;
    animation-delay: 2s;
}

.floating-element.shape3 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.15); /* Hollow circle */
    border-radius: 50%;
    top: 20%;
    right: 10%;
    animation-duration: 12s;
    animation-delay: 1s;
}

.floating-element.icon1 {
    width: 40px;
    height: 40px;
    /* Example: use an SVG as background-image for better quality */
    /* background-image: url('../images/icon-code.svg'); */
    /* background-size: contain; */
    /* background-repeat: no-repeat; */
    background-color: rgba(255,255,255,0.1); /* Placeholder until icon is set */
    border-radius: 5px; /* Square with rounded corners */
    top: 80%;
    right: 20%;
    animation-duration: 9s;
    animation-delay: 3s;
}

.floating-element.icon2 {
    width: 25px;
    height: 25px;
    background-color: rgba(0, 225, 255, 0.25);
    border-radius: 3px;
    top: 40%;
    left: 2%;
    animation-duration: 7s;
    animation-delay: 0.5s;
}

/* Smooth floating animation for the elements */
@keyframes float-smoothly {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-30px) translateX(20px) rotate(15deg); /* Gentle up/side movement with slight rotation */
        opacity: 0.2;
    }
}

/* --- Text and Content Styling within the section --- */
.it-services-section .optech-section-title h2,
.it-services-section .optech-section-title h4,
.it-services-section .optech-iconbox-data h5,
.it-services-section .optech-iconbox-data p,
.it-services-section .optech-iconbox-data a span,
.it-services-section .optech-iconbox-data a i {
    color: #ffffff !important; /* Ensure text is white and visible */
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3); /* Subtle shadow for readability */
}

.it-services-section .optech-iconbox-data p {
    opacity: 0.9; /* Make paragraph text slightly less stark */
}

.it-services-section .optech-iconbox-wrap {
    background-color: rgba(255, 255, 255, 0.07); /* Light transparent background for service cards */
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 15px; /* May not be needed if items are in a slider */
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative; /* For z-index context if needed */
    z-index: 1; /* Ensure cards are above floating elements */
}

.it-services-section .optech-iconbox-wrap:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px); /* Slight lift on hover */
}

/* Ensure container content is above floating elements */
.it-services-section .container {
    position: relative;
    z-index: 1;
}

/* === Hero Section Visual Enhancements === */

.optech-hero-slider-item {
    position: relative; /* Needed for absolute positioning of the overlay */
    overflow: hidden; /* To contain any effects that might try to escape */
}

.hero-visual-effects-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1; /* Final z-index */
}

.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px); /* زادت شفافية النقطة إلى 0.1 */
    background-size: 30px 30px;
    opacity: 1; /* زادت شفافية العنصر إلى 0.1 */
    z-index: 2; /* Final z-index */
}

/* --- Repeating Logo Shapes --- */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.75;
    z-index: 3;
    display: block;
    visibility: visible;
    width: 50px;
    height: 50px;
    /* تطبيق أنيميشن النبض أولاً، ثم أنيميشن الحركة.
       يمكن فصلهما بفاصلة. سنضبط مدة وتأخير كل منهما بشكل منفصل.
    */
    animation-name: pulse-scale, none; /* 'none' مبدئيًا للحركة، سنحدده لكل شكل */
    animation-duration: 10s, 15s; /* مدة للنبض، مدة للحركة */
    animation-iteration-count: infinite, infinite;
    animation-timing-function: ease-in-out, linear; /* توقيت مختلف لكل أنيميشن */
    /* animation-delay سيتم تحديده لكل شكل على حدة لكل من النبض والحركة */
}

/* Assuming your logo is at '../img/logo-light.png' relative to custom.css */
.logo-shape {
    background-image: url('../img/logo-light.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70%;
}

.hero-shape.shape-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    filter: blur(0.5px);
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.15);
    animation-name: pulse-scale, moveShape1;
    animation-delay: 0s, 0s;
    animation-duration: 10s, 8s; /* تقليل مدة حركة المسار بشكل كبير */
    animation-timing-function: ease-in-out, ease-in-out;
}

.hero-shape.shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 20%;
    filter: blur(0.5px);
    box-shadow: 0 0 15px 4px rgba(255, 255, 255, 0.15);
    animation-name: pulse-scale, moveShape2;
    animation-delay: -2.5s, -0.5s; /* تعديل تأخير الحركة إذا لزم الأمر */
    animation-duration: 10s, 7s; /* تقليل مدة حركة المسار */
    animation-timing-function: ease-in-out, ease-in-out;
}

.hero-shape.shape-3 {
    width: 120px;
    height: 120px;
    top: 25%;
    right: 10%;
    filter: blur(0.5px);
    box-shadow: 0 0 18px 5px rgba(255, 255, 255, 0.15);
    animation-name: pulse-scale, moveShape3;
    animation-delay: -5s, -1s;
    animation-duration: 10s, 9s; /* تقليل مدة حركة المسار */
    animation-timing-function: ease-in-out, ease-in-out;
}

.hero-shape.shape-4 {
    width: 60px;
    height: 60px;
    bottom: 10%;
    right: 25%;
    filter: blur(0.5px);
    box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.15);
    animation-name: pulse-scale, moveShape4;
    animation-delay: -7.5s, 0s;
    animation-duration: 10s, 6s; /* تقليل مدة حركة المسار بشكل كبير */
    animation-timing-function: ease-in-out, ease-in-out;
}

/* --- Keyframes for Shape Movements --- */
@keyframes moveShape1 { /* حركة دائرية أكبر وأسرع */
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, 20px) scale(1); } /* زيادة المسافة */
    50% { transform: translate(0px, 40px) scale(1); }   /* زيادة المسافة */
    75% { transform: translate(-40px, 20px) scale(1); }/* زيادة المسافة */
}

@keyframes moveShape2 { /* حركة أفقية أكبر وأسرع */
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(50px) scale(1); } /* زيادة المسافة */
}

@keyframes moveShape3 { /* حركة عمودية أكبر وأسرع */
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(45px) scale(1); } /* زيادة المسافة */
}

@keyframes moveShape4 { /* حركة قطرية أكبر وأسرع */
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1); } /* زيادة المسافة */
}



@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* --- Unify Service Box Height & Content Alignment (v4 - JS+CSS) --- */

/* The JS will set a fixed height on .slick-slide.
   This CSS ensures the inner content expands to fill that height. */

.optech-4column-slider2 .slick-slide > div,
.optech-4column-slider2 .optech-iconbox-wrap {
    /* height: 100%; */
    display: flex;
    flex-direction: column;
}

.optech-4column-slider2 .optech-iconbox-data {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow this container to grow and fill the space */
}

/* Push the button to the bottom of the card */
.optech-4column-slider2 .optech-iconbox-data .optech-icon-btn {
    margin-top: auto;
}

/* === Breadcrumb Animations === */

@keyframes breadcrumbFadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.optech-breadcrumb .post__title {
    animation: breadcrumbFadeInSlideUp 0.7s ease-out 0.2s forwards;
    opacity: 0; /* يبدأ مخفيًا */
}

.optech-breadcrumb .breadcrumbs li {
    animation: breadcrumbFadeInSlideUp 0.6s ease-out forwards;
    opacity: 0; /* تبدأ مخفية */
}

/* تأخير متتالي لعناصر مسار التنقل */
.optech-breadcrumb .breadcrumbs li:nth-child(1) {
    animation-delay: 0.4s;
}
.optech-breadcrumb .breadcrumbs li:nth-child(2) {
    animation-delay: 0.6s;
}
.optech-breadcrumb .breadcrumbs li:nth-child(3) { /* إذا كان هناك عنصر ثالث */
    animation-delay: 0.8s;
}

/* تأكد من أن محتوى الـ container فوق أي تراكبات مستقبلية قد نضيفها */
.optech-breadcrumb .container {
    position: relative;
    z-index: 1;
}

.optech-breadcrumb {
    position: relative; /* ضروري لتحديد موضع ::before */
    overflow: hidden; /* لمنع أي تجاوزات من التدرج */
}

.optech-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(35, 71, 182, 0.9), /* لون بداية التدرج - أزرق داكن شفاف - زيادة العتامة */
        rgba(37, 51, 201, 0.8), /* لون وسط التدرج - بنفسجي شفاف - زيادة العتامة */
        rgba(23, 32, 58, 0.9)  /* لون نهاية التدرج - أزرق داكن شفاف - زيادة العتامة */
    );
    background-size: 400% 400%; /* حجم كبير للتدرج للسماح بالحركة */
    animation: animatedBreadcrumbGradient 8s ease infinite; /* تقليل المدة لجعلها أسرع */
    z-index: 0; /* خلف محتوى الـ container */
}

@keyframes animatedBreadcrumbGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
/* === End Breadcrumb Animations === */

/* Ensure Hero Content is above the visual effects overlay */
.optech-hero-section6 .container {
    position: relative;
    z-index: 5; /* Ensure content is on top */
}


.project-features {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.project-features h6 {
    color: #1c449b;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    width: 100%;
}

.feature-list > li {
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.sub-feature-list {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    margin-bottom: 0;
}

.sub-feature-list li {
    color: #666;
    font-size: 13px;
    margin-bottom: 4px;
    position: relative;
    padding-left: 15px;
}

.sub-feature-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1c449b;
}

/* Feature Styles */
.feature-detail-content,
.subfeature-detail-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.feature-title,
.subfeature-title {
    color: #1c449b;
    margin-bottom: 20px;
    font-size: 28px;
}

.feature-description,
.subfeature-description {
    color: #666;
    line-height: 1.8;
}

.feature-image,
.subfeature-image {
    border-radius: 8px;
    overflow: hidden;
}

.feature-image img,
.subfeature-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.feature-image img:hover,
.subfeature-image img:hover {
    transform: scale(1.02);
}

.sub-features-list {
    margin-top: 40px;
}

.sub-feature-card {
    background: #f8f9fa;
    padding: 15px;
    margin: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
}

.sub-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sub-feature-link {
    color: inherit;
    text-decoration: none;
}

.sub-feature-link h4 {
    color: #1c449b;
    margin-bottom: 10px;
    font-size: 18px;
}

.sub-feature-link p {
    color: #666;
    margin-bottom: 0;
    font-size: 14px;
}

.feature-sidebar,
.subfeature-sidebar {
    position: sticky;
    top: 20px;
}

.project-info-card,
.feature-info-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.project-info-card h4,
.feature-info-card h4 {
    color: #1c449b;
    margin-bottom: 20px;
    font-size: 20px;
}

.project-info-card ul,
.feature-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-info-card li,
.feature-info-card li {
    margin-bottom: 15px;
    color: #666;
}

.project-info-card strong,
.feature-info-card strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.project-info-card a,
.feature-info-card a {
    color: #1c449b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-info-card a:hover,
.feature-info-card a:hover {
    color: #0d2b6b;
}

.subfeature-gallery {
    margin-top: 40px;
}

.subfeature-gallery h3 {
    color: #1c449b;
    margin-bottom: 20px;
    font-size: 24px;
}

.subfeature-gallery img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.subfeature-gallery img:hover {
    transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .feature-sidebar,
    .subfeature-sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .feature-detail-content,
    .subfeature-detail-content {
        padding: 20px;
    }

    .feature-title,
    .subfeature-title {
        font-size: 24px;
    }

    .sub-feature-card {
        margin-bottom: 20px;
    }
}

.nav-item-has-children:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    /* transform: translateY(0); */
}

.mega-menu-wrapper {
    /* max-width: 1200px; */
    margin: 0 auto;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.project-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.project-item.active {
    border-color: #051870;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
    transform: translateY(-3px);
}

.project-item.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #c70c0c;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-item:hover,
.project-item.active {
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.project-item h5 {
    padding: 5px;
    margin: 0;
    font-size: 14px;
    text-align: center;
    color: #333;
}

/* Features List */
.features-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.feature-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.feature-item h5 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
}

.feature-item p {
    color: #666;
    margin: 8px 0;
    font-size: 14px;
}

.sub-features {
    margin-top: 10px;
    padding-left: 20px;
    list-style-type: none;
}

.sub-features li {
    position: relative;
    padding: 5px 0;
    padding-left: 20px;
    color: #555;
    font-size: 14px;
}

.sub-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #007bff;
    font-size: 18px;
    line-height: 1;
}

/* Loading and Messages */
.loading,
.no-features,
.error {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.loading i,
.no-features i,
.error i {
    margin-right: 8px;
    color: #007bff;
}

.error {
    color: #dc3545;
}

.error i {
    color: #dc3545;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 15px;
        display: none;
    }

    .nav-item-has-children.active .mega-menu {
        display: block;
    }

    .projects-grid {
        grid-template-columns: repeat(1, 1fr);
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Feature Styles */
.optech-pd-sidebar-item .feature-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.optech-pd-sidebar-item .feature-list > li {
    margin-bottom: 15px;
}

.optech-pd-sidebar-item .feature-link {
    color: #1c449b;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: color 0.3s ease;
}

.optech-pd-sidebar-item .feature-link i {
    margin-right: 8px;
    color: #1c449b;
}

.optech-pd-sidebar-item .feature-link:hover {
    color: #0d2b6b;
}

.optech-pd-sidebar-item .sub-feature-list {
    list-style: none;
    padding-left: 25px;
    margin-top: 8px;
}

.optech-pd-sidebar-item .sub-feature-list li {
    margin-bottom: 6px;
}

.optech-pd-sidebar-item .sub-feature-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.optech-pd-sidebar-item .sub-feature-link:hover {
    color: #1c449b;
}

.optech-pd-sidebar-item .view-more-link {
    color: #1c449b;
    text-decoration: none;
    font-size: 13px;
    font-style: italic;
    transition: color 0.3s ease;
}

.optech-pd-sidebar-item .view-more-link:hover {
    color: #0d2b6b;
}

/* Portfolio Features Styling */
.optech-pd-sidebar-item {
    margin-bottom: 30px;
}

.optech-pd-sidebar-item span {
    display: block;
    font-weight: 600;
    color: #1c449b;
    margin-bottom: 15px;
    font-size: 16px;
}

/* Feature List Styling */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list > li {
    margin-bottom: 20px;
    /* border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 15px; */
}

.feature-list > li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Feature Link Styling */
.feature-link {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f8f9fa;
}

.feature-link:hover {
    background: #1c449b;
    color: #fff;
}

.feature-link:hover i {
    color: #fff;
}

.feature-link i {
    margin-right: 10px;
    color: #1c449b;
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Sub-feature List Styling */
.sub-feature-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 35px;
}

.sub-feature-list li {
    margin-bottom: 8px;
    position: relative;
}

.sub-feature-list li:before {
    content: "•";
    position: absolute;
    left: -15px;
    color: #1c449b;
}

/* Sub-feature Link Styling */
.sub-feature-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.sub-feature-link:hover {
    color: #1c449b;
    padding-left: 5px;
}

/* View More Link Styling */
.view-more-link {
    color: #1c449b;
    text-decoration: none;
    font-size: 13px;
    font-style: italic;
    display: inline-block;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.view-more-link:hover {
    color: #0d2b6b;
    text-decoration: underline;
}

/* Responsive Styling */
@media (max-width: 991px) {
    .optech-pd-sidebar-item {
        margin-bottom: 20px;
    }

    .feature-link {
        padding: 6px 10px;
    }

    .sub-feature-list {
        margin-left: 25px;
    }
}

@media (max-width: 767px) {
    .optech-pd-sidebar-item span {
        font-size: 15px;
    }

    .feature-link {
        font-size: 14px;
    }

    .sub-feature-link {
        font-size: 13px;
    }
}

/* Mega Menu Styles */
@media (min-width: 991px) {
    .mega-menu {
        position: absolute;
        top: 100%;
        /* left: 0; */
        right: -280px;
        width: 1200px;
        margin: 0 auto;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 30px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 999;
        box-sizing: border-box;  /* Include padding in width calculation */
        border-radius: 8px;
    }

    .nav-item-has-children:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Mobile Mega Menu Styles */
@media (max-width: 991px) {
    .mega-menu {
        position: static;
        box-shadow: none;
        padding: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: block; /* Changed from none to block */
        background-color: #f8f9fa;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        margin-top: 10px;
    }

    .nav-item-has-children:hover .mega-menu {
        display: block;
    }

    .mega-menu-projects {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .mega-menu-features {
        padding-left: 0;
        border-left: none;
    }
}

.mega-menu-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}
.mega-menu-project {
    background-color: #1c449b;
    border-radius: 8px;
}
.mega-menu-projects {
    padding: 10px;
}

.mega-menu-projects h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.project-item {
    background: #f8f9fa;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-item:hover {
    transform: translateY(-5px);
}

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

.project-thumb {
    position: relative;
    /* padding-top: 75%; */
    overflow: hidden;
}

.project-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover .project-thumb img {
    transform: scale(1.1);
}

.project-item h5 {
    padding: 5px;
    margin: 0;
    font-size: 16px;
    color: var(--heading-color);
    text-align: center;
}

.mega-menu-features {
    padding: 20px;
    border-left: 1px solid #c1c0c0;
}

.features-content {
    margin-bottom: 20px;
}

.features-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.features-content p {
    color: #666;
    margin-bottom: 0;
}

.features-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.feature-group {
    margin-bottom: 20px;
}

.feature-group:last-child {
    margin-bottom: 0;
}

.feature-group h5 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.feature-group h5 a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-group h5 a:hover {
    color: var(--accent-color);
}

.sub-features {
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

.sub-features li {
    margin-bottom: 8px;
}

.sub-features li:last-child {
    margin-bottom: 0;
}

.sub-features a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.sub-features a:hover {
    color: var(--accent-color);
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
}

/* Scrollbar Styling */
.projects-grid::-webkit-scrollbar,
.features-list::-webkit-scrollbar {
    width: 6px;
}

.projects-grid::-webkit-scrollbar-track,
.features-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.projects-grid::-webkit-scrollbar-thumb,
.features-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .mega-menu {
        position: static;
        box-shadow: none;
        padding: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: block; /* Hide by default on mobile */
        background-color: #f8f9fa;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        margin-top: 10px;
    }

    .mega-menu-projects {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .mega-menu-features {
        padding-left: 0;
        border-left: none;
    }

    .projects-grid {
        grid-template-columns: repeat(1, 1fr);
        max-height: 300px; /* Limit height on mobile */
    }

    .features-list {
        max-height: 300px; /* Limit height on mobile */
    }

    /* Improve project item display on mobile */
    .project-item {
        background: #fff;
        border: 1px solid #eee;
    }

    /* Make sure project thumbs are visible */
    .project-thumb {
        /* padding-top: 60%; */
    }

    /* Ensure text is readable */
    .project-item h5 {
        font-size: 14px;
        padding: 10px;
    }

    /* Improve feature group spacing */
    .feature-group {
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .feature-group:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .feature-group h5 {
        font-size: 16px;
    }

    .sub-features a {
        font-size: 13px;
    }

    /* Improve loading and error messages */
    .loading, .error, .no-features {
        padding: 15px 10px;
        font-size: 14px;
    }
}
