/********** Template CSS **********/
:root {
    --primary: #EAA636;
    --secondary: #545454;
    --light: #FDF5EB;
    --dark: #1E1916;
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
    font-weight: 600 !important;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#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;
}


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

.btn.btn-primary {
    color: #FFFFFF;
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    padding: 35px 15px;
    color: var(--light);
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.fixed-top {
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, .3);
        background: var(--dark);
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.hero-title{
    color: #0B4EA2;          /* أزرق */
    font-size: 2.5rem;
    font-weight: 700;
    white-space: nowrap;     /* يمنع نزول الكلام لسطر جديد */
    display: inline-block;
    padding-bottom: 12px;
    border-bottom: 6px solid #83C0C4; /* لون مستخرج من الصورة */
    text-transform: uppercase;
    line-height: 1.2;
}
.hero-banner{
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-image{
    width: 100%;
    height: auto;
    display: block;
}

.hero-content{
    position: absolute;
    top: 30%;
    left: 12%;
    z-index: 2;
    animation: fadeSlide 1.5s ease-out;
    max-width: 700px;
}

.hero-content h1{
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 4px 12px rgba(0,0,0,.45);
    letter-spacing: 2px;
}




.about-gallery{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    max-width:600px;
    margin:0 auto 40px;
}

.about-gallery img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:15px;
    transition:.4s;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}

.about-gallery img:hover{
    transform:translateY(-8px) scale(1.03);
}

.about-content{
    max-width:900px;
    margin:auto;
    text-align:center;
}

.about-content p{
    text-align:center;
    line-height:1.9;
    color:#666;
    margin-bottom:20px;
}

.about-content .row{
    justify-content:center;
    text-align:center;
}

@keyframes fadeSlide{
    from{
        opacity:0;
        transform:translateX(-60px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

/* Tablet */
@media (max-width:992px){
    .hero-content{
        top:10%;
        left:5%;
    }

    .hero-content h1{
        font-size:2.8rem;
    }
}

/* Mobile */
@media (max-width:768px){
    .hero-content{
        top:8%;
        left:5%;
    }

    .hero-content h1{
        font-size:1.8rem;
        line-height:1.2;
    }
}



.header-carousel .owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .5);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 600px;
    }

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

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-nav {
    position: relative;
    width: 80px;
    height: 80px;
    margin: -40px auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-carousel .owl-nav::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transform: rotate(45deg);
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    position: relative;
    font-size: 40px;
    color: var(--primary);
    transition: .5s;
    z-index: 1;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.page-header {
    margin-bottom: 6rem;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/* TRUST BADGES */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 50px auto;
    padding: 20px;
}

.badge {
    width: 180px;
    min-height: 150px;
    background: #fff;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    transition: all .3s ease;
}

.badge:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.badge-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #EAA636;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
}

.badge-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

/* Responsive */
@media (max-width:768px) {
    .badge {
        width: 45%;
    }
}

@media (max-width:480px) {
    .badge {
        width: 100%;
    }
}


.spec-section{
    padding: 60px 20px;
    background: #f8f8f8;
}

.section-title{
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
}

.spec-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.spec-card{
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.spec-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.spec-img{
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.spec-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.spec-card:hover .spec-img img{
    transform: scale(1.05);
}

.spec-body{
    padding: 20px;
    text-align: center;
}

.spec-icon{
    font-size: 28px;
    margin-bottom: 10px;
}

.spec-body h3{
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.spec-body p{
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}
/*** Facts ***/
.fact-item {
    transition: .5s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}


/*** About ***/
.img-twice::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    background: var(--primary);
    border: 25px solid var(--light);
    border-radius: 6px;
    z-index: -1;
}


/*** Product ***/
.product-item {
    transition: .5s;
}

.product-item:hover {
    background: var(--primary) !important;
}

.product-item:hover * {
    color: var(--light);
}

.product-item:hover .border-primary {
    border-color: var(--light) !important;
}

.product-item .product-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.product-item:hover .product-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-item .team-text {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light);
    transition: .5s;
}

.team-item:hover .team-title {
    top: -100px;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 100px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    transition: .5s;
}

.team-item .team-social .btn {
    margin: 0 3px;
}

.team-item:hover .team-social {
    top: 0;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 22px;
    color: var(--light);
    background: var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--primary);
    background: var(--dark);
}


/* ===== Bottom Section Layout ===== */
.bottom-section {
  padding: 80px 20px;
  background: #f8f9fa;
}

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

/* ===== Boxes ===== */
.quality-box,
.production-box,
.markets-box {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.quality-box:hover,
.production-box:hover,
.markets-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* ===== Titles ===== */
.bottom-grid h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #1d3557;
  position: relative;
}

.bottom-grid h3::after {
  content: "";
  width: 50px;
  height: 3px;
  background: #e63946;
  position: absolute;
  left: 0;
  bottom: -8px;
  border-radius: 5px;
}

/* ===== Images ===== */
.bottom-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ===== Text ===== */
.bottom-grid p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-top: 10px;
}

/* ===== Buttons ===== */
.quality-btn,
.explore-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: #1d3557;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.quality-btn:hover,
.explore-btn:hover {
  background: #e63946;
}

/* ===== Markets List ===== */
.market-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.market-list li {
  padding: 5px 0;
  font-size: 14px;
  color: #333;
}

.flag {
  margin-right: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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




/*** Footer ***/
.footer-logo{
    width: 100%;
    height: auto;
    display: block;
}

.footer-logos-group{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 210px;
    text-align: center;
}

.footer-logo-main{
    max-width: 300px;
}

.footer-logo-row{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    width: 100%;
}

.footer-logo-alrabie{
    max-width: 155px;
}

.footer-logo-kabaely{
    max-width: 245px;
}

@media (max-width: 991.98px){
    .footer-logos-group{
        margin-top: 25px;
    }
}

@media (max-width: 575.98px){
    .footer-logo-main{
        max-width: 245px;
    }

    .footer-logo-row{
        gap: 18px;
        flex-wrap: wrap;
    }

    .footer-logo-alrabie{
        max-width: 130px;
    }

    .footer-logo-kabaely{
        max-width: 210px;
    }
}
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #111111;
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}
.logo-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.logo-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    width: max-content;
    animation: logoScroll 18s linear infinite;
}

.logo-item {
    flex: 0 0 auto;
    padding: 0 40px;
}

.logo-item img {
    max-height: 90px;
    width: auto;
    display: block;
}

/* ðŸ”¥ Ø§Ù„Ø­Ø±ÙƒØ© */
@keyframes logoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* â¸ï¸ Ø¥ÙŠÙ‚Ø§Ù Ø¹Ù†Ø¯ hover */
.logo-slider:hover .logo-track {
    animation-play-state: paused;
}


/* Kabaely company page main navigation buttons */
.kabaely-nav-btn {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px 26px !important;
    margin: 8px 10px;
    border-radius: 6px;
    line-height: 1.2;
}

.kabaely-nav-btn:hover,
.kabaely-nav-btn.active {
    background-color: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}

/* Contact page redesigned section */
.contact-redesign-section {
    background: #ffffff;
}

.contact-modern-wrap {
    display: grid;
    grid-template-columns: 1fr 1.18fr;
    gap: 34px;
    align-items: stretch;
}

.contact-info-panel {
    position: relative;
    padding: 38px 38px 34px;
    background: #ffffff;
    border: 1px solid rgba(229, 169, 48, 0.35);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.contact-info-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: linear-gradient(180deg, #003b2f, #f1a92f);
}

.contact-info-panel h3,
.contact-form-panel h3 {
    color: #002e25;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    letter-spacing: .5px;
}

.contact-title-line,
.form-heading span {
    display: block;
    width: 55px;
    height: 3px;
    background: #f1a92f;
    margin-bottom: 16px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 19px 0;
    border-bottom: 1px solid rgba(229, 169, 48, 0.35);
}

.contact-info-icon {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    border: 2px solid #f1a92f;
    border-radius: 50%;
    color: #f1a92f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.contact-info-item h5 {
    color: #002e25;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.contact-info-item p {
    color: #333333;
    font-size: 16px;
    margin-bottom: 0;
}

.branch-details {
    margin-top: 26px;
}

.branch-details h4 {
    color: #002e25;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    color: #444444;
    font-size: 15px;
}

.contact-slogan {
    color: #f1a92f;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.25;
    margin: 30px 0 0;
}

.contact-form-panel {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(229, 169, 48, 0.5);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    padding: 42px 40px 34px;
    overflow: hidden;
}

.form-top-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 92px;
    background: #003b2f;
    clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
    color: #f1a92f;
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-top-icon i {
    width: 66px;
    height: 66px;
    border: 2px solid #f1a92f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-heading {
    padding-left: 150px;
    margin-bottom: 28px;
}

.form-heading h3 {
    margin-bottom: 10px;
}

.form-heading p {
    color: #555555;
    margin-bottom: 0;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #777777;
    font-size: 18px;
    z-index: 2;
}

.input-icon-wrap .form-control {
    height: 58px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding-left: 54px;
    font-size: 16px;
    color: #333333;
    background: #ffffff;
    box-shadow: none;
}

.input-icon-wrap .form-control:focus {
    border-color: #f1a92f;
}

.textarea-wrap i {
    top: 24px;
    transform: none;
}

.textarea-wrap textarea.form-control {
    min-height: 135px;
    padding-top: 17px;
    resize: vertical;
}

.contact-submit-btn {
    background: #003b2f;
    color: #ffffff;
    border: 2px solid #f1a92f;
    border-radius: 12px;
    padding: 15px 58px;
    font-weight: 800;
    letter-spacing: .4px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
    transition: .3s;
}

.contact-submit-btn i {
    margin-left: 10px;
    color: #f1a92f;
}

.contact-submit-btn:hover {
    background: #f1a92f;
    color: #002e25;
}

.contact-submit-btn:hover i {
    color: #002e25;
}

@media (max-width: 991.98px) {
    .contact-modern-wrap {
        grid-template-columns: 1fr;
    }

    .form-heading {
        padding-left: 0;
        padding-top: 92px;
    }
}

@media (max-width: 575.98px) {
    .contact-info-panel,
    .contact-form-panel {
        padding: 30px 22px;
    }

    .contact-info-item {
        align-items: flex-start;
        gap: 15px;
    }

    .contact-info-icon {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
        font-size: 22px;
    }

    .branch-grid {
        grid-template-columns: 1fr;
    }

    .contact-submit-btn {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* Partners logo marquee animation */
.partners-logo-section {
    overflow: hidden;
}

.partners-marquee {
    width: 100%;
    overflow: hidden;
    padding: 12px 0;
    position: relative;
}

.partners-marquee-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    animation: partnersMoveLeft 28s linear infinite;
}

.partners-marquee:hover .partners-marquee-track {
    animation-play-state: paused;
}

.partner-logo-card {
    flex: 0 0 auto;
    width: 220px;
    height: 150px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.partner-logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes partnersMoveLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    .partner-logo-card {
        width: 170px;
        height: 115px;
        padding: 16px;
    }

    .partners-marquee-track {
        gap: 16px;
        animation-duration: 22s;
    }
}

/* Force footer and copyright bars to span the full browser width on every page */
.footer,
.copyright {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
}

.footer .container,
.copyright .container {
    max-width: 1140px;
}

@media (min-width: 1400px) {
    .footer .container,
    .copyright .container {
        max-width: 1320px;
    }
}

@media (max-width: 767.98px) {
    .footer,
    .copyright {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
}

/* Our Story section - index page */
.our-story-section {
    position: relative;
    overflow: hidden;
    padding: 70px 0 52px;
    background:
        radial-gradient(circle at 86% 0%, rgba(196, 148, 47, 0.09), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #fbfbf8 100%);
}

.our-story-section::before,
.our-story-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0.08;
    background-repeat: no-repeat;
    background-size: contain;
}

.our-story-section::before {
    width: 330px;
    height: 360px;
    left: -80px;
    top: 120px;
    background-image:
        radial-gradient(ellipse at center, #0b3b2c 0 48%, transparent 50%),
        radial-gradient(ellipse at center, #0b3b2c 0 48%, transparent 50%),
        radial-gradient(ellipse at center, #0b3b2c 0 48%, transparent 50%);
    background-size: 130px 210px, 110px 180px, 100px 150px;
    background-position: 0 60px, 120px 0, 160px 170px;
}

.our-story-section::after {
    width: 420px;
    height: 520px;
    right: -95px;
    top: 25px;
    background-image:
        radial-gradient(ellipse at center, #0b3b2c 0 48%, transparent 50%),
        radial-gradient(ellipse at center, #0b3b2c 0 48%, transparent 50%),
        radial-gradient(ellipse at center, #0b3b2c 0 48%, transparent 50%),
        radial-gradient(circle, rgba(11,59,44,.55) 0 3px, transparent 4px);
    background-size: 135px 210px, 125px 200px, 105px 170px, 14px 14px;
    background-position: 235px 40px, 80px 120px, 230px 250px, 0 0;
}

.story-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #c99533;
    font-weight: 800;
    letter-spacing: 8px;
    font-size: 17px;
    margin-bottom: 6px;
}

.story-kicker::after {
    content: "";
    width: 105px;
    height: 2px;
    background: #c99533;
    display: inline-block;
}

.story-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(56px, 8vw, 112px);
    line-height: 0.95;
    margin: 0 0 18px;
    font-weight: 700;
    color: #d19a36;
}

.story-title span {
    color: #063a2d;
}

.story-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: #0a3a2d;
    max-width: 180px;
}

.story-divider span {
    height: 3px;
    width: 72px;
    background: #0a3a2d;
}

.story-copy {
    max-width: 1120px;
    color: #111;
    font-size: 24px;
    line-height: 1.42;
    font-weight: 500;
}

.story-copy p {
    margin-bottom: 28px;
    position: relative;
}

.story-copy p:not(:last-child)::after {
    content: "";
    display: block;
    width: 65px;
    height: 3px;
    background: #c99533;
    margin-top: 16px;
}

.story-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    margin-top: 18px;
}

.story-feature {
    display: grid;
    grid-template-columns: 86px 1fr;
    align-items: center;
    gap: 18px;
    padding-right: 28px;
    border-right: 1px solid rgba(201, 149, 51, 0.55);
}

.story-feature:last-child {
    border-right: 0;
}

.story-feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #073b2d;
    color: #fff;
    border: 4px solid #c99533;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 22px rgba(0,0,0,.14);
}

.story-feature h4 {
    margin: 0 0 6px;
    color: #073b2d;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: .4px;
}

.story-feature p {
    margin: 0;
    color: #222;
    font-size: 17px;
    line-height: 1.4;
}

@media (max-width: 991.98px) {
    .our-story-section {
        padding: 55px 0 42px;
    }

    .story-copy {
        font-size: 19px;
    }

    .story-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .story-feature {
        border-right: 0;
        border-bottom: 1px solid rgba(201, 149, 51, 0.45);
        padding: 0 0 22px;
    }

    .story-feature:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .story-kicker {
        font-size: 13px;
        letter-spacing: 5px;
    }

    .story-kicker::after {
        width: 60px;
    }

    .story-copy {
        font-size: 17px;
        line-height: 1.6;
    }

    .story-feature {
        grid-template-columns: 62px 1fr;
        gap: 14px;
    }

    .story-feature-icon {
        width: 58px;
        height: 58px;
        font-size: 23px;
    }

    .story-feature h4 {
        font-size: 17px;
    }

    .story-feature p {
        font-size: 15px;
    }
}


/* Company story split section */
.company-story-section {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbf8 100%);
}

.company-story-card {
    background: #ffffff;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(6, 58, 45, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.company-story-content {
    padding: 52px 48px;
    height: 100%;
}

.company-story-content .display-6 {
    line-height: 1.15;
}

.company-story-content p {
    color: #222222;
    font-size: 1.06rem;
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

.company-story-content .row [class*="col-"] {
    font-weight: 500;
}

.company-story-visual {
    position: relative;
    min-height: 100%;
    background: #f6f4ef;
}

.company-story-visual img {
    width: 100%;
    height: 100%;
    min-height: 720px;
    object-fit: cover;
    display: block;
}

@media (max-width: 1199.98px) {
    .company-story-content {
        padding: 44px 38px;
    }

    .company-story-visual img {
        min-height: 640px;
    }
}

@media (max-width: 991.98px) {
    .company-story-content {
        padding: 38px 28px 28px;
    }

    .company-story-visual img {
        min-height: 420px;
        max-height: 560px;
    }
}

@media (max-width: 575.98px) {
    .company-story-card {
        border-radius: 24px;
    }

    .company-story-content {
        padding: 30px 20px 22px;
    }

    .company-story-content p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .company-story-visual img {
        min-height: 320px;
    }
}

/* Static partners logo grid */
.partners-logo-grid-section {
    background: #ffffff;
}

.partners-logo-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.partners-logo-box {
    height: 108px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partners-logo-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.partners-logo-box img {
    max-width: 100%;
    max-height: 78px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 1199.98px) {
    .partners-logo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .partners-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .partners-logo-box {
        height: 96px;
        padding: 12px 16px;
    }
}

@media (max-width: 420px) {
    .partners-logo-grid {
        grid-template-columns: 1fr;
    }
}


/* Responsive device and link QA fixes */
* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
}

img {
    height: auto;
}

.container,
.container-fluid {
    max-width: 100%;
}

/* Avoid horizontal scroll where old product rows were placed directly under body */
body > .row {
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(12px, 3vw, 36px);
    padding-right: clamp(12px, 3vw, 36px);
}

.py-6 {
    padding-top: clamp(3rem, 7vw, 6rem);
    padding-bottom: clamp(3rem, 7vw, 6rem);
}

.my-6 {
    margin-top: clamp(3rem, 7vw, 6rem);
    margin-bottom: clamp(3rem, 7vw, 6rem);
}

.navbar {
    min-height: 78px;
    background: rgba(30, 25, 22, 0.88);
    backdrop-filter: blur(3px);
}

.navbar-brand img {
    width: auto !important;
    max-width: 150px;
    max-height: 94px;
    object-fit: contain;
    display: block;
}

.navbar-toggler {
    border-color: rgba(255,255,255,.35);
}

.navbar-collapse {
    width: 100%;
}

.hero-banner {
    min-height: clamp(380px, 46vw, 720px);
    background: #1e1916;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: clamp(380px, 46vw, 720px);
    object-fit: cover;
    object-position: center;
}

.hero-content {
    top: 50%;
    left: clamp(20px, 7vw, 12%);
    transform: translateY(-50%);
    max-width: min(700px, 82vw);
}

.hero-content h1 {
    font-size: clamp(1.65rem, 4.6vw, 3.35rem);
    line-height: 1.1;
    word-break: normal;
}

.header-carousel .owl-carousel-item {
    min-height: clamp(360px, 54vw, 700px);
}

.header-carousel .owl-carousel-item img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center;
}

.page-header {
    margin-bottom: clamp(3rem, 6vw, 6rem);
}

/* Product pages: equal, clean product tiles on desktop/tablet/mobile */
.product-item {
    min-height: 100%;
    box-shadow: 0 8px 26px rgba(0,0,0,.06);
}

.product-item > .position-relative {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: clamp(12px, 2vw, 22px);
}

.product-item .img-fluid {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: contain;
}

/* Al Rabie / About split story keeps text readable and image proportional */
.company-story-card .row {
    min-height: 0;
}

.company-story-content {
    padding: clamp(26px, 4.2vw, 52px);
}

.company-story-content p {
    font-size: clamp(.98rem, 1.15vw, 1.08rem);
    line-height: 1.75;
}

.company-story-visual {
    overflow: hidden;
}

.company-story-visual img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    object-position: center;
}

/* Logos grid: responsive like the reference image */
.partners-logo-grid-section {
    overflow: hidden;
}

.partners-logo-grid {
    grid-template-columns: repeat(6, minmax(145px, 1fr));
    gap: clamp(10px, 1.25vw, 16px);
}

.partners-logo-box {
    min-width: 0;
    height: clamp(88px, 8vw, 112px);
    padding: clamp(10px, 1.4vw, 22px);
    border-radius: 10px;
}

.partners-logo-box img {
    max-width: 100%;
    max-height: 76px;
    object-fit: contain;
}

/* Kabaely content cards */
.spec-grid,
.bottom-grid {
    width: min(1200px, calc(100% - 32px));
}

.spec-img img,
.cert-icons img,
.factory-preview img,
.market-map img,
.bottom-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer .row {
    row-gap: 32px;
}

.footer-logo-main {
    max-width: min(300px, 82vw);
}

.footer-logo-row {
    gap: clamp(14px, 3vw, 34px);
}

.footer-logo-alrabie {
    max-width: min(155px, 38vw);
}

.footer-logo-kabaely {
    max-width: min(245px, 54vw);
}

@media (max-width: 1199.98px) {
    .partners-logo-grid {
        grid-template-columns: repeat(4, minmax(130px, 1fr));
    }
}

@media (max-width: 991.98px) {
    .navbar {
        min-height: 72px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .navbar-brand img {
        max-width: 118px;
        max-height: 78px;
    }

    .navbar .navbar-nav {
        border-radius: 0 0 12px 12px;
        padding: 12px 18px !important;
    }

    .navbar .navbar-nav .nav-link {
        padding: 12px 0;
    }

    .hero-banner,
    .hero-image {
        min-height: 430px;
    }

    .hero-content {
        left: 24px;
        max-width: calc(100% - 48px);
    }

    .company-story-card {
        border-radius: 24px;
    }

    .company-story-visual img {
        min-height: 390px;
        max-height: 520px;
    }

    .story-title {
        font-size: clamp(46px, 11vw, 82px);
    }

    .story-copy {
        font-size: clamp(17px, 2.7vw, 20px);
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    .hero-banner,
    .hero-image {
        min-height: 380px;
    }

    .hero-content h1 {
        letter-spacing: 1px;
    }

    .header-carousel .owl-carousel-item {
        min-height: 380px;
    }

    .about-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .about-gallery img {
        height: 170px;
    }

    .partners-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .partners-logo-box {
        height: 92px;
        padding: 10px 12px;
    }

    .partners-logo-box img {
        max-height: 68px;
    }

    .product-item > .position-relative {
        aspect-ratio: 4 / 3;
    }

    .footer,
    .copyright {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .footer .btn.btn-link {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        max-width: 104px;
        max-height: 68px;
    }

    .hero-banner,
    .hero-image {
        min-height: 330px;
    }

    .hero-content {
        left: 18px;
        max-width: calc(100% - 36px);
    }

    .hero-content h1 {
        font-size: clamp(1.35rem, 8vw, 1.85rem);
    }

    .page-header .display-4 {
        font-size: 2rem;
    }

    .company-story-content {
        padding: 24px 18px;
    }

    .company-story-visual img {
        min-height: 300px;
        max-height: 390px;
    }

    .story-kicker {
        letter-spacing: 4px;
    }

    .story-divider span {
        width: 54px;
    }

    .partners-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partners-logo-box {
        height: 82px;
        padding: 8px 10px;
    }

    .partners-logo-box img {
        max-height: 58px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 360px) {
    .partners-logo-grid {
        grid-template-columns: 1fr;
    }
}


/* Custom edits: larger Kabaely company text and partner logos */
.kabaely-intro-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.kabaely-intro-section .kabaely-intro-copy {
    max-width: 1180px;
    margin: 0 auto;
}

.kabaely-intro-section h1 {
    font-size: clamp(2.35rem, 4vw, 4.6rem);
    line-height: 1.18;
    margin-bottom: 28px;
}

.kabaely-intro-section p {
    font-size: clamp(1.25rem, 1.55vw, 1.65rem);
    line-height: 2.05;
    letter-spacing: 0.2px;
    margin-bottom: 0;
}

.kabaely-intro-section .trust-badges {
    gap: 28px;
    margin-top: 60px;
}

.kabaely-intro-section .badge {
    width: 230px;
    min-height: 190px;
    padding: 32px 24px;
}

.kabaely-intro-section .badge-icon {
    width: 76px;
    height: 76px;
    font-size: 34px;
    margin-bottom: 20px;
}

.kabaely-intro-section .badge-label {
    font-size: 18px;
    line-height: 1.65;
}

.partners-logo-grid {
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    gap: clamp(16px, 1.8vw, 26px);
}

.partners-logo-box {
    height: clamp(130px, 11vw, 170px);
    padding: clamp(10px, 1.2vw, 18px);
}

.partners-logo-box img {
    max-width: 112%;
    max-height: 132px;
}

@media (max-width: 1199.98px) {
    .partners-logo-grid {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .kabaely-intro-section h1 {
        font-size: 2rem;
    }
    .kabaely-intro-section p {
        font-size: 1.08rem;
        line-height: 1.85;
    }
    .partners-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .partners-logo-box {
        height: 116px;
    }
    .partners-logo-box img {
        max-height: 96px;
    }
}

@media (max-width: 420px) {
    .partners-logo-grid {
        grid-template-columns: 1fr;
    }
}


/* Factory tour gallery - Kabaely company page */
.factory-tour-section {
    position: relative;
    padding: 90px 20px;
    background:
        radial-gradient(circle at top left, rgba(234,166,54,0.18), transparent 34%),
        linear-gradient(135deg, #101820 0%, #1d3557 56%, #0b1320 100%);
    overflow: hidden;
}

.factory-tour-section::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    pointer-events: none;
}

.factory-tour-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.factory-tour-heading {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
    color: #fff;
}

.factory-tour-heading span {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(234,166,54,0.18);
    color: #f4c66a;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 13px;
}

.factory-tour-heading h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 16px;
}

.factory-tour-heading p {
    color: rgba(255,255,255,0.78);
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
}

.factory-tour-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 18px;
}

.factory-tour-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #111;
    box-shadow: 0 24px 55px rgba(0,0,0,0.28);
}

.factory-tour-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.factory-tour-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.55s ease, filter 0.55s ease;
}

.factory-tour-card:hover img {
    transform: scale(1.09);
    filter: saturate(1.12) contrast(1.04);
}

.factory-tour-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
}

.factory-tour-overlay h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 8px;
}

.factory-tour-overlay p {
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.market-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-list .flag {
    min-width: 28px;
    margin-right: 0;
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .factory-tour-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 230px;
    }
}

@media (max-width: 575.98px) {
    .factory-tour-section {
        padding: 70px 14px;
    }
    .factory-tour-section::before {
        inset: 12px;
        border-radius: 20px;
    }
    .factory-tour-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 235px;
    }
    .factory-tour-card-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    .factory-tour-overlay {
        padding: 22px;
    }
}


/* Al Rabie EX story image: large exterior photo beside text */
.alrabie-story-visual {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    background: #f8f5ef;
    min-height: 100%;
}

.alrabie-story-visual img {
    width: 100%;
    height: 100%;
    min-height: 760px;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

@media (min-width: 1200px) {
    .alrabie-story-visual img {
        min-height: 820px;
    }
}

@media (max-width: 991.98px) {
    .alrabie-story-visual img {
        height: auto;
        min-height: 420px;
        max-height: none;
        object-fit: cover;
    }
}

@media (max-width: 575.98px) {
    .alrabie-story-visual img {
        min-height: 320px;
    }
}

/* Kabaely: keep all trust badges in one clean row on desktop */
.kabaely-intro-section .trust-badges {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: clamp(10px, 1.2vw, 18px);
    max-width: 1220px;
    margin: 46px auto 20px;
    padding: 0 clamp(12px, 2vw, 22px);
}

.kabaely-intro-section .trust-badges .badge {
    flex: 1 1 0;
    width: auto;
    max-width: 220px;
    min-width: 0;
    min-height: 154px;
    padding: clamp(18px, 1.6vw, 26px) clamp(10px, 1.2vw, 18px);
}

.kabaely-intro-section .trust-badges .badge-icon {
    width: clamp(50px, 4.5vw, 66px);
    height: clamp(50px, 4.5vw, 66px);
    font-size: clamp(22px, 2.1vw, 30px);
    margin-bottom: 14px;
}

.kabaely-intro-section .trust-badges .badge-label {
    font-size: clamp(13px, 1.05vw, 16px);
    line-height: 1.45;
}

@media (max-width: 767.98px) {
    .kabaely-intro-section .trust-badges {
        flex-wrap: wrap;
    }
    .kabaely-intro-section .trust-badges .badge {
        flex: 1 1 calc(50% - 14px);
        max-width: none;
    }
}

@media (max-width: 480px) {
    .kabaely-intro-section .trust-badges .badge {
        flex-basis: 100%;
    }
}


/* Final partner page redesign with supplied logos */
.partner-showcase-section {
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 90px;
    background:
        radial-gradient(circle at 15% 10%, rgba(220, 53, 69, 0.10), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(29, 53, 87, 0.10), transparent 30%),
        linear-gradient(180deg, #fffaf1 0%, #ffffff 48%, #f7f9fc 100%);
}

.partner-showcase-section::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(29, 53, 87, 0.10);
    border-radius: 34px;
    pointer-events: none;
}

.partner-showcase-title {
    max-width: 620px;
    position: relative;
    z-index: 1;
}

.partner-showcase-title h1 {
    color: #1d3557;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.partner-title-line {
    width: 110px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #dc3545, #f6b536, #1d3557);
    margin: 0 auto;
}

.partner-featured-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: clamp(22px, 2.3vw, 34px);
}

.partner-featured-logo {
    min-height: clamp(190px, 16vw, 250px);
    border-radius: 24px;
    padding: clamp(22px, 2vw, 34px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(29, 53, 87, 0.08);
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.12);
}

.partner-featured-logo:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 28px 60px rgba(16, 24, 40, 0.18);
}

.partner-featured-logo img {
    max-width: 100%;
    max-height: 180px;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.12));
}

@media (max-width: 1199.98px) {
    .partner-featured-grid {
        grid-template-columns: repeat(3, minmax(190px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .partner-showcase-section {
        padding-top: 56px;
        padding-bottom: 62px;
    }
    .partner-showcase-section::before {
        inset: 12px;
        border-radius: 22px;
    }
    .partner-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .partner-featured-logo {
        min-height: 150px;
        border-radius: 18px;
        padding: 16px;
    }
    .partner-featured-logo img {
        max-height: 118px;
    }
}

@media (max-width: 480px) {
    .partner-featured-grid {
        grid-template-columns: 1fr;
    }
    .partner-featured-logo {
        min-height: 170px;
    }
}


/* Larger black content text for company pages */
.large-black-copy p:not(.text-primary),
.large-black-copy span {
    color: #111111 !important;
    font-size: clamp(1.25rem, 1.55vw, 1.65rem);
    line-height: 2.05;
    letter-spacing: 0.2px;
}
.large-black-copy h1 {
    font-size: clamp(2.35rem, 4vw, 4.6rem);
    line-height: 1.18;
    margin-bottom: 28px;
}
.large-black-copy .service-item p {
    font-size: clamp(1.12rem, 1.25vw, 1.35rem);
    line-height: 1.8;
}
@media (max-width: 767.98px) {
    .large-black-copy p:not(.text-primary),
    .large-black-copy span {
        font-size: 1.08rem;
        line-height: 1.8;
    }
}


/* Refined Al Rabie profile section - natural image and cleaner text design */
.alrabie-profile-section {
    background: linear-gradient(180deg, #fffaf1 0%, #ffffff 55%, #f7f4ec 100%);
}

.alrabie-profile-section .company-story-card {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(15, 47, 68, 0.08);
    box-shadow: 0 24px 60px rgba(15, 47, 68, 0.10);
    background: #ffffff;
}

.alrabie-profile-section .company-story-content {
    padding: clamp(32px, 4vw, 58px);
}

.alrabie-profile-section .company-story-content .text-primary {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: .95rem;
    margin-bottom: 12px !important;
}

.alrabie-profile-section .company-story-content h1 {
    color: #123047;
    font-size: clamp(2.1rem, 3.3vw, 3.7rem);
    line-height: 1.12;
    margin-bottom: 28px !important;
}

.alrabie-profile-section .company-story-content p:not(.text-primary) {
    color: #2f3b45 !important;
    font-size: clamp(1rem, 1.02vw, 1.12rem);
    line-height: 1.82;
    margin-bottom: 1rem;
    letter-spacing: 0;
}

.alrabie-profile-section .company-story-content p:not(.text-primary):first-of-type {
    color: #142f43 !important;
    font-size: clamp(1.08rem, 1.2vw, 1.24rem);
    font-weight: 500;
}

.alrabie-profile-section .company-story-content .row.g-3 {
    margin-top: 26px !important;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 47, 68, 0.10);
}

.alrabie-profile-section .company-story-content .row.g-3 [class*="col-"] {
    background: #fbf8f0;
    border: 1px solid rgba(232, 164, 48, 0.22);
    border-radius: 14px;
    padding: 14px 12px;
    color: #123047;
    font-size: .98rem;
    line-height: 1.35;
}

.alrabie-profile-section .company-story-visual,
.alrabie-profile-section .alrabie-story-visual {
    min-height: 0;
    height: auto !important;
    padding: clamp(18px, 2.4vw, 34px);
    background: radial-gradient(circle at top left, rgba(232, 164, 48, 0.18), transparent 35%), #f8f4ea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alrabie-profile-section .company-story-visual img,
.alrabie-profile-section .alrabie-story-visual img {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1600 / 886;
    object-fit: cover;
    object-position: center center;
    border-radius: 24px;
    box-shadow: 0 22px 45px rgba(15, 47, 68, 0.16);
    display: block;
}

@media (min-width: 992px) {
    .alrabie-profile-section .alrabie-story-visual {
        position: sticky;
        top: 110px;
    }
}

@media (max-width: 991.98px) {
    .alrabie-profile-section .company-story-content {
        padding: 32px 24px 20px;
    }
    .alrabie-profile-section .company-story-visual,
    .alrabie-profile-section .alrabie-story-visual {
        padding: 18px 22px 28px;
    }
}

@media (max-width: 575.98px) {
    .alrabie-profile-section .company-story-card {
        border-radius: 22px;
    }
    .alrabie-profile-section .company-story-content .row.g-3 [class*="col-"] {
        font-size: .92rem;
    }
}

/* Al Rabie wide story layout - image enlarged with text wrapping naturally */
.alrabie-wide-story {
    background: linear-gradient(180deg, #fffaf1 0%, #ffffff 50%, #f7f4ec 100%);
}

.alrabie-wide-story .container-fluid.px-lg-5 {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.alrabie-wide-story .company-story-card {
    max-width: none;
    border-radius: 34px;
    overflow: visible;
    border: 1px solid rgba(15, 47, 68, 0.08);
    box-shadow: 0 28px 70px rgba(15, 47, 68, 0.11);
    background:
        radial-gradient(circle at 92% 10%, rgba(232, 164, 48, 0.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #ffffff 62%, #fff8e9 100%);
}

.alrabie-wide-story .company-story-content {
    padding: clamp(34px, 4.4vw, 72px);
    max-width: none;
}

.alrabie-wide-story .company-story-content h1 {
    max-width: 820px;
    margin-bottom: 26px !important;
}

.alrabie-wide-story .company-story-content p:not(.text-primary) {
    max-width: none;
    font-size: clamp(1rem, 1vw, 1.13rem);
    line-height: 1.9;
    margin-bottom: 1.05rem;
}

.alrabie-wide-story .company-story-content .lead-story {
    color: #123047 !important;
    font-size: clamp(1.08rem, 1.18vw, 1.26rem) !important;
    font-weight: 600;
}

.alrabie-story-figure {
    float: right;
    width: min(48%, 660px);
    margin: 2px 0 28px clamp(28px, 3vw, 54px);
    padding: clamp(16px, 1.7vw, 24px);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,248,232,0.92));
    border: 1px solid rgba(232, 164, 48, 0.22);
    box-shadow: 0 24px 55px rgba(15, 47, 68, 0.14);
}

.alrabie-story-figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 1600 / 886;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 47, 68, 0.16);
}

.alrabie-feature-badges {
    clear: both;
    padding-top: 28px !important;
    margin-top: 30px !important;
    border-top: 1px solid rgba(15, 47, 68, 0.10);
}

.alrabie-wide-story .alrabie-feature-badges [class*="col-"] {
    background: linear-gradient(135deg, #fffaf0, #ffffff);
    border: 1px solid rgba(232, 164, 48, 0.28);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 10px 25px rgba(15, 47, 68, 0.06);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .alrabie-story-figure {
        float: none;
        width: 100%;
        margin: 6px 0 28px;
    }
    .alrabie-wide-story .company-story-content {
        padding: 30px 22px;
    }
}

@media (max-width: 575.98px) {
    .alrabie-wide-story .container-fluid.px-lg-5 {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .alrabie-wide-story .company-story-card {
        border-radius: 24px;
    }
    .alrabie-story-figure {
        padding: 12px;
        border-radius: 22px;
    }
    .alrabie-story-figure img {
        border-radius: 16px;
    }
}

/* Language switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    margin-left: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
}
.lang-switcher .lang-btn {
    border: 0;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: transparent;
    transition: all .25s ease;
    cursor: pointer;
}
.lang-switcher .lang-btn.active,
.lang-switcher .lang-btn:hover {
    color: #1b1b1b;
    background: #f5c542;
}
body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
}
body.rtl .navbar-nav,
body.rtl .dropdown-menu,
body.rtl .breadcrumb,
body.rtl .story-copy,
body.rtl .container,
body.rtl section {
    direction: rtl;
}
body.rtl .lang-switcher {
    margin-left: 0;
    margin-right: 14px;
}
body.rtl .navbar .ms-4,
body.rtl .navbar .ms-lg-0 {
    margin-left: 0 !important;
    margin-right: 1.5rem !important;
}
body.rtl .dropdown-menu {
    text-align: right;
}
body.rtl .hero-content,
body.rtl .page-header,
body.rtl .text-center {
    text-align: center !important;
}
@media (max-width: 991.98px) {
    .lang-switcher {
        margin: 10px 24px 18px;
    }
    body.rtl .lang-switcher {
        margin: 10px 24px 18px;
    }
}


/* Language-aware redesigned page banners */
.smart-page-banner {
    position: relative;
    min-height: 420px;
    margin-bottom: 6rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.contact-main-banner.smart-page-banner {
    background-image: linear-gradient(135deg, rgba(14, 22, 36, .78), rgba(190, 139, 44, .52)), url('../img/contact-banner.jpg');
}
.partner-main-banner.smart-page-banner {
    background-image: linear-gradient(135deg, rgba(14, 22, 36, .80), rgba(190, 139, 44, .50)), url('../img/partner.jpg');
}
.smart-banner-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 35%, rgba(255,255,255,.18), transparent 28%), linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.10));
}
.smart-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding-top: 90px;
    padding-bottom: 70px;
}
.smart-banner-content span {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    background: rgba(0,0,0,.22);
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
}
.smart-banner-content h1 {
    margin: 0 auto 18px;
    font-size: clamp(42px, 6vw, 82px);
    font-weight: 800;
    line-height: 1.05;
    text-shadow: 0 14px 35px rgba(0,0,0,.35);
}
.smart-banner-content p {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.7;
    color: rgba(255,255,255,.95);
}
body.rtl .smart-banner-content {
    direction: rtl;
    font-family: 'Tajawal', 'Cairo', Arial, sans-serif;
}
body.rtl .smart-banner-content span {
    letter-spacing: 0;
    font-size: 16px;
}

/* Keep the Al Rabie top carousel visible after switching to Arabic/RTL */
body.rtl .header-carousel,
body.rtl .header-carousel .owl-stage-outer,
body.rtl .header-carousel .owl-stage,
body.rtl .header-carousel .owl-item,
body.rtl .header-carousel .owl-carousel-item {
    direction: ltr !important;
}
body.rtl .header-carousel .owl-carousel-item img,
.header-carousel .owl-carousel-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
body.rtl .header-carousel .owl-nav {
    direction: ltr !important;
}

@media (max-width: 767.98px) {
    .smart-page-banner {
        min-height: 320px;
        margin-bottom: 3rem;
    }
    .smart-banner-content {
        padding-top: 70px;
        padding-bottom: 50px;
    }
}

/* Arabic-only redesigned banner images for Contact and Partners */
.contact-main-banner .smart-banner-content,
.partner-main-banner .smart-banner-content {
    display: none;
}
.contact-main-banner.smart-page-banner,
.partner-main-banner.smart-page-banner {
    min-height: 430px;
    background-size: cover;
    background-position: center center;
}
body.rtl .contact-main-banner.smart-page-banner {
    background-image: url('../img/contact-banner-ar.jpg') !important;
}
body.rtl .partner-main-banner.smart-page-banner {
    background-image: url('../img/partner-ar.jpg') !important;
}
body.rtl .contact-main-banner .smart-banner-shade,
body.rtl .partner-main-banner .smart-banner-shade,
.contact-main-banner .smart-banner-shade,
.partner-main-banner .smart-banner-shade {
    display: none;
}
@media (max-width: 767.98px) {
    .contact-main-banner.smart-page-banner,
    .partner-main-banner.smart-page-banner {
        min-height: 260px;
    }
}
