
/*** Spinner Start ***/
/*** Spinner ***/
:root {
    --bs-primary: #235b0e;
}

html {
    scroll-behavior: smooth;
}

/*** About (animations + polish) ***/
#about .about-img-float {
    animation: aboutFloat 6s ease-in-out infinite;
    transform-origin: center;
    will-change: transform;
}

@keyframes aboutFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -8px, 0);
    }
}

#about .about-hover-lift {
    transition: transform 220ms ease, box-shadow 220ms ease;
    will-change: transform;
}

#about .about-hover-lift:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
}

#about .about-icon-chip {
    transition: transform 220ms ease, background-color 220ms ease;
}

#about .about-benefit:hover .about-icon-chip {
    transform: translate3d(0, -3px, 0) scale(1.03);
    background-color: rgba(35, 91, 14, 0.08) !important;
}

@media (prefers-reduced-motion: reduce) {
    #about .about-img-float {
        animation: none !important;
    }
    #about .about-hover-lift,
    #about .about-icon-chip {
        transition: none !important;
    }
}

/*** Empty state (no products) ***/
.no-products {
    width: 100%;
    min-height: 45vh;
}

/*** Products (shop cards) ***/
.products-section {
    position: relative;
}

.products-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 600px at 10% 0%, rgba(35, 91, 14, 0.10), transparent 55%),
        radial-gradient(900px 500px at 90% 30%, rgba(0, 0, 0, 0.06), transparent 60%);
    pointer-events: none;
}

.products-section > .container {
    position: relative;
    z-index: 1;
}

.products-title h4 {
    letter-spacing: 0.16em;
}

.filter-container {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

.filter-container .form-label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-container .form-select {
    width: auto;
    flex: 1 1 420px;
    min-width: 220px;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: rgba(255, 255, 255, 0.95);
}

.filter-container .form-control {
    width: auto;
    flex: 1 1 320px;
    min-width: 200px;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Search input group inside filter bar */
.filter-container .product-search-group {
    width: auto;
    flex: 1 1 380px;
    min-width: 280px;
    flex-wrap: nowrap; /* prevent addon stacking above input */
}

.filter-container .product-search-group .input-group-text {
    border-radius: 999px 0 0 999px;
    padding: 10px 14px;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: rgba(255, 255, 255, 0.95);
    color: rgba(0, 0, 0, 0.75);
}

.filter-container .product-search-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
    width: 1%; /* Bootstrap input-group sizing fix */
    border-radius: 0 999px 999px 0;
    border-left: 0;
}

.filter-container .product-search-group .form-control:focus {
    border-left: 1px solid rgba(0, 0, 0, 0.12);
}

@media (max-width: 575.98px) {
    .filter-container {
        flex-wrap: wrap;
    }
    .filter-container .form-label,
    .filter-container .form-select,
    .filter-container .product-search-group,
    .filter-container #reset-filter.btn {
        flex: 1 1 100%;
        min-width: 0;
    }
}

.filter-container #reset-filter.btn {
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.product-card {
    will-change: transform;
}

.product-item {
    position: relative;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.16);
    border-color: rgba(35, 91, 14, 0.28);
}

.product-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(135deg, var(--bs-primary), #0b2a02);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    max-width: calc(100% - 28px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.02));
    overflow: hidden;
}

.product-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0));
    opacity: 0.55;
    transition: opacity 180ms ease;
}

.product-item:hover .product-media::after {
    opacity: 0.35;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 260ms ease;
}

.product-item:hover .product-media img {
    transform: scale(1.06);
}

.product-content {
    position: relative;
    z-index: 2;
    margin: -56px 16px 16px;
    border-radius: 16px;
    padding: 18px 18px 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 220ms ease, box-shadow 220ms ease;
    will-change: transform;
}

.product-content::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--bs-primary), #0b2a02);
    opacity: 0;
    transition: opacity 220ms ease;
    z-index: 0;
}

.product-item:hover .product-content {
    transform: translateY(-10px);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.16);
}

.product-item:hover .product-content::after {
    opacity: 1;
}

.product-content > * {
    position: relative;
    z-index: 1;
}

.product-title {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.25em * 2);
}

.product-title:hover {
    color: var(--bs-primary);
}

.product-item:hover .product-title,
.product-item:hover .product-price,
.product-item:hover .product-price span,
.product-item:hover .product-price i {
    color: #fff;
}

.product-item:hover .product-title:hover {
    color: rgba(255, 255, 255, 0.85);
}

.product-price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #0b2a02;
    margin-top: auto;
    padding-top: 6px;
}

.product-price i {
    opacity: 0.9;
}

#show-more-btn.btn {
    border-radius: 999px;
    padding: 12px 18px;
    border: 1px solid rgba(35, 91, 14, 0.25);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
}

#show-more-btn.btn:hover {
    background: var(--bs-primary);
    color: #fff;
}

#show-more-btn .badge {
    border-radius: 999px;
}

.navbar-logo {
    height: 42px;
    width: auto;
    display: block;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

.btn.btn-primary {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    font-family: 'Roboto', sans-serif;
    border: none;
    font-weight: 400;
    transition: 0.5s;
}

.btn.btn-primary:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-light) !important;
}

.btn.btn-dark {
    background: var(--bs-dark) !important;
    color: var(--bs-white) !important;
    font-family: 'Roboto', sans-serif;
    border: none;
    font-weight: 400;
    transition: 0.5s;
}

.btn.btn-dark:hover {
    background: var(--bs-white) !important;
    color: var(--bs-dark) !important;
}

.btn.btn-light {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    font-family: 'Roboto', sans-serif;
    border: none;
    font-weight: 400;
    transition: 0.5s;
}

.btn.btn-light:hover {
    background: var(--bs-white) !important;
    color: var(--bs-dark) !important;
}
/*** Topbar Start ***/
.topbar {
    padding: 2px 10px 2px 20px;
    position: relative;
    overflow: hidden;
}

/* Same layering as .container-fluid.sticky-top: dark fill + pattern overlay */
.topbar > .position-absolute.bg-dark {
    z-index: 0;
}

.topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.08) 1px, transparent 1.8px),
        radial-gradient(circle at 0 0, rgba(35, 91, 14, 0.18) 1px, transparent 1.8px),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 16px);
    background-size: 44px 44px, 52px 52px, auto;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

.topbar > .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .topbar {
        display: none;    
    }
}
/*** Topbar End ***/

/*** Navbar ***/
/* Keep Bootstrap's position:sticky (avoid position:relative / overflow:hidden on this block). */
.container-fluid.sticky-top::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.08) 1px, transparent 1.8px),
        radial-gradient(circle at 0 0, rgba(35, 91, 14, 0.18) 1px, transparent 1.8px),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 16px);
    background-size: 44px 44px, 52px 52px, auto;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

.container-fluid.sticky-top > .position-absolute.bg-dark {
    z-index: 0;
}

.container-fluid.sticky-top > .container {
    position: relative;
    z-index: 2;
}

.sticky-top,
.sticky-top .container {
    transition: 0.5s !important;
}

.navbar .navbar-nav .nav-item.nav-link,
.navbar .navbar-nav .nav-link {
    color: var(--bs-dark) !important;
}

.navbar .navbar-nav .nav-item {
    position: relative;
    margin: 0 5px !important;
}

.navbar .navbar-nav .nav-item::before,
.navbar .navbar-nav .nav-item::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border: 0px solid var(--bs-primary);
    transition: 0.5s;
}

.navbar .navbar-nav .nav-item::before {
    top: 0;
    left: 0;
}
.navbar .navbar-nav .nav-item::after {
    bottom: 0;
    right: 0;
}

.navbar .navbar-nav .nav-item:hover::after,
.navbar .navbar-nav .nav-item:hover::before,
.navbar .navbar-nav .nav-item.active::after,
.navbar .navbar-nav .nav-item.active::before {
    width: 100%;
    border-width: 1px;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.sticky-top .navbar .navbar-nav .nav-link:hover,
.sticky-top .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107" !important;
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        margin-top: 20px !important;
        transition: .5s;
        opacity: 0;
        z-index: 9;
    }
}

@media (max-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        margin-top: 15px !important;
        transition: 0.5s;
    }
}

@media (max-width: 991px) {
    .navbar .navbar-nav .nav-item.nav-link {
        margin: 15px 0 !important;
    }

}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-white);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    margin-top: 20px !important;
    transition: .5s;
    opacity: 1;
}

.navbar .navbar-toggler {
    padding: 8px 15px;
    color: var(--bs-white);
    background: var(--bs-primary);
    border-color: rgba(255, 255, 255, 0.35);
}

.navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

#searchModal .modal-content {
    background: rgba(250, 250, 250, .6);
}
/*** Navbar End ***/

/*** Carousel Header Start ***/
.header-carousel .header-carousel-item {
    position: relative;
    height: 850px;
    overflow: hidden;
    z-index: 1;
}

.header-carousel .header-carousel-item-img-1,
.header-carousel .header-carousel-item-img-2,
.header-carousel .header-carousel-item-img-3 {
    height: 100%;
}

.header-carousel .header-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owl-prev,
.owl-next {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px 20px;
    border-radius: 40px;
    background: var(--bs-primary);
    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.owl-prev {
    left: 30px;
}

.owl-next {
    right: 30px;
}

.owl-prev:hover,
.owl-next:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-white) !important;
}

.header-carousel .header-carousel-item-img-1,
.header-carousel .header-carousel-item-img-2,
.header-carousel .header-carousel-item-img-3 {
    position: relative;
    overflow: hidden;
}

.header-carousel .header-carousel-item-img-1::before,
.header-carousel .header-carousel-item-img-2::before,
.header-carousel .header-carousel-item-img-3::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: -300px;
    right: -300px;
    border-radius: 300px;
    border: 100px solid rgba(37, 150, 190, 0.2);
    animation: RotateMoveCircle 10s linear infinite;
    background: transparent;
    z-index: 2 !important;
}

@keyframes RotateMoveCircle {
    0% {top: -400px;}
    50%   {right: -200px;}
    75%   {top: -200px;}
    100%  {top: -400px;}
}

.header-carousel .header-carousel-item-img-1::after,
.header-carousel .header-carousel-item-img-2::after,
.header-carousel .header-carousel-item-img-3::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 1200px;
    top: -150px;
    left: 70px;
    transform: rotate(-30deg);
    background: rgba(37, 150, 190, 0.2);
    animation: RotateMoveRight 5s linear infinite;
    z-index: 2 !important;
}

@keyframes RotateMoveRight {
    0%   {left: 0px;}
    50%   {left: 70px;}
    100%  {left: 0px;}
}

.header-carousel .header-carousel-item::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 1200px;
    top: -150px;
    left: -265px;
    transform: rotate(-30deg);
    background: var(--bs-dark);
    animation: RotateMoveLeft 5s linear infinite;
    opacity: 0.7;
    z-index: 2 !important;
}

@keyframes RotateMoveLeft {
    0%   {left: -240px;}
    50%   {left: -300px;}
    100%  {left: -240px;}
}

.header-carousel .header-carousel-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2 !important;
}

/* Avoid left:50% + translateX(-50%) here: with Owl Carousel + dir=rtl + overflow:hidden,
   stacked transforms clip Arabic hero text on phones. Center with flex + full-width inset instead. */
.header-carousel .header-carousel-item .carousel-caption {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(0.75rem, 4vw, 2.5rem);
    box-sizing: border-box;
    z-index: 9;
    overflow: visible;
}

.header-carousel .header-carousel-item .carousel-caption-inner {
    width: 100%;
    max-width: min(52rem, 100%);
    min-width: 0;
    margin-inline: auto;
    box-sizing: border-box;
}

@media (min-width: 993px) {
    .header-carousel .header-carousel-item .carousel-caption-inner {
        max-width: 80%;
    }
}

/* Hero typography: display-1 is too wide for small viewports — keep text inside the slide */
.header-carousel .carousel-caption-inner .display-1 {
    font-size: clamp(1.5rem, 5.5vw, 3.25rem);
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.header-carousel .carousel-caption-inner p.fs-5 {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem) !important;
    line-height: 1.55;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 992px) {
    .header-carousel .header-carousel-item {
        height: 700px;
    }
    .header-carousel-item img {
        height: 700px;
        object-fit: cover;
    }

    .header-carousel .header-carousel-item .carousel-caption {
        padding-top: 4.5rem;
        padding-bottom: 2rem;
    }

    .owl-prev,
    .owl-next {
        top: 40px !important;
    }

    .owl-prev {
        left: 65%;
    }
}

@media (max-width: 576px) {
    .header-carousel .carousel-caption-inner .display-1 {
        font-size: clamp(1.35rem, 6vw, 2rem);
    }
}
/*** Header Carousel End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0 60px 0;
}

.bg-breadcrumb .breadcrumb-item a {
    color: var(--bs-white) !important;
}

.bg-breadcrumb .bg-breadcrumb-single {
    position: absolute;
    width: 500px;
    height: 1200px;
    top: 0px;
    left: 0;
    margin-left: 30px;
    transform: rotate(-30deg);
    background: var(--bs-dark);
    animation: RotateMoveLeft 5s linear infinite;
    opacity: 0.7;
    z-index: 2 !important;
}


.bg-breadcrumb::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    top: -150px;
    right: -150px;
    border-radius: 200px;
    border: 80px solid rgba(37, 150, 190, 0.2);
    animation: RotateMoveCircle 10s linear infinite;
    background: transparent;
    z-index: 2 !important;
}

@keyframes RotateMoveCircle {
    0% {top: -200px;}
    50%   {right: -100px;}
    75%   {top: -100px;}
    100%  {top: -200px;}
}


.bg-breadcrumb::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 1200px;
    top: -150px;
    left: 0;
    margin-left: 160px;
    transform: rotate(-30deg);
    background: rgba(37, 150, 190, 0.2);
    animation: RotateMoveRight 5s linear infinite;
    z-index: 2 !important;
}
/*** Single Page Hero Header End ***/


/*** About Start ***/
.about .text {
    position: relative;
}

.about .text::after {
    content: "";
    width: 4px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bs-primary);
}
/*** About End ***/

/*** Service Start ***/
.service.has-bg {
    position: relative;
    background-image:   url("../img/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service .row > [class*="col-"] {
    display: flex;
}

.service .service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service .service-item .service-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.service .service-item .service-img img {
    transition: 0.5s;
    width: 100%;
    height: clamp(160px, 18vw, 220px);
    object-fit: cover;
}

.service .service-item:hover .service-img img {
    transform: scale(1.2);
}

.service .service-item .service-img::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    right: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(37, 150, 190, 0.4);
    transition: 0.5s;
}

.service .service-item:hover .service-img::after {
    width: 100% !important;
    height: 100% !important;
}

.service .service-item .service-content {
    position: relative;
    flex: 1;
    display: flex;
}

.service .service-item .service-content::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-dark);
    transition: 0.5s;
    z-index: 1;
}

.service .service-item:hover .service-content::after {
    width: 100% !important;
    height: 100% !important;
}

.service .service-item .service-content .service-content-inner {
    transition: 0.5s;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service .service-item .service-content .service-content-inner .btn {
    margin-top: auto;
}

.service .service-item:hover .service-content .service-content-inner {
    position: relative;
    color: var(--bs-white) !important;
    transition: 0.5s;
    z-index: 2;
}

.service .service-item:hover .service-content .service-content-inner a.h4 {
    color: var(--bs-white) !important;
    transition: 0.5s;
}

.service .service-item:hover .service-content .service-content-inner a.h4:hover {
    color: var(--bs-primary) !important;
}
/*** Service End ***/

/*** Project Start ***/
.project {
    position: relative;
}

.project::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 1px 1px, rgba(35, 91, 14, 0.16) 1px, transparent 1px) 0 0 / 18px 18px,
        radial-gradient(900px 450px at 10% 0%, rgba(35, 91, 14, 0.08), transparent 60%),
        radial-gradient(800px 420px at 90% 35%, rgba(0, 0, 0, 0.05), transparent 62%);
    pointer-events: none;
    z-index: 0;
}

.project > .container {
    position: relative;
    z-index: 1;
}

.project .project-carousel.owl-carousel {
    height: 100%;
}

/* Owl: avoid flex-like overflow clipping long Arabic lines inside slides */
.project .project-carousel .owl-item {
    min-width: 0;
}

.project .project-carousel .project-item {
    position: relative;
    /* Allow caption to paint fully (RTL + Owl transforms); image zoom stays clipped in .project-img */
    overflow: visible;
}

.project .project-carousel .project-item .project-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.project .project-carousel .project-item .project-img::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(37, 150, 190, 0.4);
    transition: 0.5s;
}

.project .project-carousel .project-item:hover .project-img::after {
    height: 100%;
}

.project .project-carousel .project-item .project-img img {
    height: 580px;
    object-fit: cover;
    transition: 0.5s;
}

.project .project-carousel .project-item:hover .project-img img {
    transform: scale(1.2);
}

.project .project-carousel .project-item .project-content {
    position: relative;
    width: min(75%, calc(100% - 1.5rem));
    height: auto;
    margin-inline: auto;
    margin-top: -100px;
    margin-bottom: 0;
    left: auto;
    right: auto;
    bottom: auto;
    /* Avoid translateX(-50%) here — it stacks badly with Owl RTL translate3d and clips captions */
    transform: none;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    overflow: visible;
}

.project .project-carousel .project-item .project-content::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px !important;
    background: var(--bs-dark);
    transition: 0.5s;
}

.project .project-carousel .project-item .project-content .project-content-inner {
    position: relative;
    z-index: 2;
    text-align: start;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.project .project-carousel .project-item:hover .project-content .project-content-inner p,
.project .project-carousel .project-item:hover .project-content .project-content-inner a.h4,
.project .project-carousel .project-item:hover .project-content .project-content-inner .project-icon i {
    color: var(--bs-white) !important;
    transition: 0.5s;
}

.project .project-carousel .project-item:hover .project-content .project-content-inner a.h4:hover {
    color: var(--bs-primary) !important;
}

.project .project-carousel .project-item:hover .project-content::after {
    height: 100%;
}

.project-carousel .owl-dots {
    position: absolute;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -120px;
    transition: 0.5s;
}

.project-carousel .owl-dots .owl-dot {
    width: 20px;
    height: 20px;
    border-radius: 20px;
    margin-right: 15px;
    background: var(--bs-dark);
    transition: 0.5s;
}

.project-carousel .owl-dots .owl-dot.active {
    width: 30px;
    height: 30px;
    border-radius: 40px;
    border: 8px solid var(--bs-primary);
}

@media (max-width: 767.98px) {
    .project .project-carousel .project-item .project-content {
        width: min(92%, calc(100% - 1rem));
        margin-top: -72px;
    }
}
/*** Project End ***/

/*** Footer Start ***/
.footer {
    background: var(--bs-dark);
    position: relative;
    overflow: hidden;
}

/* Pattern overlay for footer background (subtle, readable) */
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.10) 1px, transparent 1.6px),
        radial-gradient(circle at 0 0, rgba(35, 91, 14, 0.22) 1px, transparent 1.6px),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 12px),
        radial-gradient(1200px 700px at 20% 0%, rgba(35, 91, 14, 0.18), transparent 55%),
        radial-gradient(900px 600px at 90% 30%, rgba(0, 0, 0, 0.35), transparent 65%);
    background-size: 40px 40px, 48px 48px, auto, auto, auto;
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

/* Make footer content readable on dark background */
.footer,
.footer .footer-item,
.footer .footer-item-post,
.footer .footer-item p,
.footer .footer-item-post p,
.footer .footer-item-post .text-body,
.footer .footer-item-post a.text-body {
    color: var(--bs-white) !important;
}

.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-white) !important;
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.70) !important;
}

.footer .footer-item-post a {
    transition: 0.5s;
}

.footer .footer-item-post a:hover {
    color: rgba(255, 255, 255, 0.70) !important;
}

.footer .footer-item-post .footer-btn a {
    transition: 0.5s;
}

.footer .footer-item-post .footer-btn a:hover {
    color: var(--bs-dark);
}
/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark) !important;
    position: relative;
    overflow: hidden;
}

.copyright::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 16px 16px, rgba(255, 255, 255, 0.08) 1px, transparent 1.8px),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 18px);
    background-size: 48px 48px, auto;
    opacity: 0.75;
    pointer-events: none;
    z-index: 0;
}

.copyright > .container {
    position: relative;
    z-index: 1;
}

.copyright,
.copyright .text-body {
    color: var(--bs-white) !important;
}
/*** copyright end ***/