/* ============================================
   CUSTOM CSS OVERRIDES AND RTL SUPPORT
   ============================================
   
   This file contains:
   1. Custom component overrides and fixes
   2. Comprehensive RTL (Right-to-Left) CSS framework for Arabic support
   3. Intentional style overrides that extend/modify base styles from style.css
   
   IMPORT ORDER (in styles.css):
   - bootstrap.min.css (base framework)
   - style.css (base template styles)
   - custom.css (this file - custom overrides and RTL support)
   - style-responsive.css (responsive overrides - loads after this file)
   
   NOTE: Rules in this file intentionally override base styles using !important
   where necessary. This is by design to ensure RTL support and custom fixes
   take precedence over base template styles.
   ============================================ */

/* ============================================
   COMPONENT-SPECIFIC OVERRIDES
   ============================================ */

/* Logo positioning override */
.nav-logo-right {
  top: 0;
  left: auto;
  right: 0;
}

/* Typewriter component styles */
.Typewriter,
.typewrite {
  display: inline-block;
}
/* Note: Base .typewrite margin is in style.css. RTL override is below. */

/* Navigation submenu hover behavior - Desktop only */
@media (min-width: 1025px) {
  .mn-has-sub:hover + *,
  .mn-has-sub + *:hover {
    display: block !important;
    z-index: 1;
  }
}

/* Fade-in text animation */
.fadeInText {
  animation: animationFadeText 0.5s linear 0s 1;
}
@keyframes animationFadeText {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   BASE HTML AND GLOBAL STYLES
   ============================================ */
a {
  cursor: pointer;
}

/* ============================================
   MOBILE NAVIGATION OVERRIDES
   Intentional overrides for mobile menu behavior
   ============================================ */
.mobile-on .desktop-nav {
  height: fit-content;
  max-height: 0px;
  display: block !important;
  overflow: scroll;
  transition: 0.6s;
}
@media (max-width: 1024px) {
  .mobile-on .js-opened .mn-sub.mobile-sub-active {
    max-height: 1000px;
  }
}

/* Body scroll lock for mobile menu */
body.menu-open {
  overflow: hidden !important;
}

/* Mobile menu open state */
.desktop-nav.js-opened {
  max-height: calc(100vh - 60px) !important;
}

/* ============================================
   HEADER TEXT SHADOW
   ============================================ */

/* Add simple shadow to navigation links */
.inner-nav ul li a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Add simple shadow to button text */
.btn-mod,
a.btn-mod {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  text-align: center;
  line-height: 1.4;
  vertical-align: middle;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ensure button text is properly visible */
.hero-slide-layout-1 .btn-mod.btn-w,
.hero-slide-layout-2 .btn-mod.btn-w,
.hero-slide-layout-3 .btn-mod.btn-w,
.hero-slide-layout-4 .btn-mod.btn-w {
  color: var(--color-white) !important;
  background: var(--color-primary-1) !important;
  box-shadow: 0 4px 12px rgba(0, 23, 79, 0.3), 0 2px 6px rgba(0, 23, 79, 0.2);
}

.hero-slide-layout-1 .btn-mod.btn-w:hover,
.hero-slide-layout-2 .btn-mod.btn-w:hover,
.hero-slide-layout-3 .btn-mod.btn-w:hover,
.hero-slide-layout-4 .btn-mod.btn-w:hover {
  color: var(--color-white) !important;
  background: var(--color-primary-2) !important;
  box-shadow: 0 6px 16px rgba(255, 110, 90, 0.4), 0 3px 8px rgba(255, 110, 90, 0.3);
  transform: translateY(-2px);
}

.hero-slide-layout-5 .btn-mod.btn-border-w {
  color: var(--color-primary-1) !important;
  border-color: var(--color-primary-1) !important;
  background: transparent !important;
  box-shadow: 0 2px 8px rgba(0, 23, 79, 0.2);
}

.hero-slide-layout-5 .btn-mod.btn-border-w:hover {
  color: var(--color-white) !important;
  border-color: var(--color-primary-1) !important;
  background: var(--color-primary-1) !important;
  box-shadow: 0 4px 12px rgba(0, 23, 79, 0.3), 0 2px 6px rgba(0, 23, 79, 0.2);
  transform: translateY(-2px);
}

/* Add simple shadow to animated button text */
.btn-animate-y-1,
.btn-animate-y-2 {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ============================================
   FORM OVERRIDES
   ============================================ */

.btn-mod.btn-w:hover,
.btn-mod.btn-w:focus {
  background: none;
}

/* ============================================
   ARABIC TEXT RENDERING AND ANIMATIONS
   ============================================ */

/* Arabic text rendering - ensure characters connect properly */
[dir="rtl"] .splitting .char,
.splitting[dir="rtl"] .char {
  unicode-bidi: embed;
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: "liga" 1, "kern" 1;
  font-feature-settings: "liga" 1, "kern" 1;
  /* Keep inline-block for animations but ensure proper Arabic rendering */
  white-space: nowrap;
}

/* Adjust transform origin for RTL text animations */
[dir="rtl"] .appear-animate .charsAnimInLong .char {
  transform-origin: 100% 50%;
}

[dir="rtl"] .appear-animate .charsAnimIn .char {
  transform-origin: 100% 50%;
}

/* ============================================
   COMPREHENSIVE RTL CSS FRAMEWORK
   ============================================
   
   This section provides comprehensive RTL (Right-to-Left) support for Arabic
   and other RTL languages. Rules are organized by component type.
   
   IMPORTANT: These rules intentionally override base styles to ensure proper
   RTL layout. The use of !important is intentional and necessary for RTL support.
   ============================================ */

/* Base RTL Setup */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* Apply Almarai font globally - override Bootstrap and other styles */
/* Note: CSS variables are defined in style.css :root, using them here for consistency */

html[dir="rtl"],
html[dir="rtl"] body,
body[dir="rtl"] {
  font-family: var(--font-global) !important;
}

/* Utility Classes - Float */
[dir="rtl"] .left {
  float: right !important;
}

[dir="rtl"] .right {
  float: left !important;
}

/* ============================================
   TEXT ALIGNMENT RTL
   Consolidated text alignment rules for RTL layout
   ============================================ */
/* Basic text alignment - swap left/right, preserve center */
[dir="rtl"] .text-left {
  text-align: right;
}

[dir="rtl"] .text-right {
  text-align: left;
}

/* Preserve centered content - don't flip text-center */
[dir="rtl"] .align-center,
[dir="rtl"] .text-center,
[dir="rtl"] [class*="text-center"] {
  text-align: center;
}

/* Bootstrap 5+ text alignment utilities - only flip where reading flow requires it */
[dir="rtl"] .text-start:not(.text-center):not([class*="text-center"]) {
  text-align: right;
}

[dir="rtl"] .text-end:not(.text-center):not([class*="text-center"]) {
  text-align: left;
}

/* Preserve centered layouts using logical properties */
[dir="rtl"] .mx-auto {
  margin-inline: auto;
}

/* Form Elements RTL */
[dir="rtl"] .form input[type="text"],
[dir="rtl"] .form input[type="email"],
[dir="rtl"] .form input[type="number"],
[dir="rtl"] .form input[type="password"],
[dir="rtl"] .form textarea,
[dir="rtl"] .form select {
  direction: rtl;
  text-align: right;
  padding-inline-start: 20px;
  padding-inline-end: 20px;
}

[dir="rtl"] .form input::placeholder,
[dir="rtl"] .form textarea::placeholder {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .form input.input-lg,
[dir="rtl"] .form textarea.input-lg {
  padding-inline-start: 20px;
  padding-inline-end: 20px;
}

/* Navigation RTL */
[dir="rtl"] .inner-nav ul {
  direction: rtl;
}

[dir="rtl"] .inner-nav ul li {
  margin-inline-start: 16px;
  margin-inline-end: 16px;
}

[dir="rtl"] .inner-nav ul li:first-child {
  margin-inline-start: 0;
}

[dir="rtl"] .inner-nav ul li:last-child {
  margin-inline-end: 0;
}

/* Navigation menu - preserve design intent: keep menu on right side in RTL */
/* Don't flip justify-content-end for navigation - it should stay on the right (start in RTL) */
[dir="rtl"] .inner-nav ul.justify-content-end {
  justify-content: flex-end; /* Keep on right side (start in RTL) */
}

/* Only flip justify-content where text flow requires it, not for layout positioning */
[dir="rtl"] .justify-content-start:not(.inner-nav ul):not(.inner-nav ul *) {
  justify-content: flex-end;
}

/* Mobile Menu RTL */
[dir="rtl"] .mobile-nav {
  left: auto;
  right: 0;
  margin-inline: auto -15px;
  padding-inline: 15px;
}

/* Remove border from mobile nav toggler on home page only */
@media (max-width: 1024px) {
  .home-page .mobile-nav {
    border: none !important;
    outline: none;
  }
}

/* Logo positioning - preserve design intent */
[dir="rtl"] .nav-logo-wrap {
  /* Logo should stay on left side (end in RTL) - preserve original positioning */
  margin-inline-end: auto;
  margin-inline-start: 0;
}

/* Mobile Menu Items RTL */
[dir="rtl"] .mobile-on .desktop-nav ul li a {
  text-align: center;
  padding-inline-start: 10px;
  padding-inline-end: 10px;
}

/* Footer RTL */
[dir="rtl"] .text-lg-start {
  text-align: right;
}

[dir="rtl"] .text-lg-end {
  text-align: left;
}

[dir="rtl"] .fw-top-link {
  direction: rtl;
}

[dir="rtl"] .fw-top-link .icon {
  margin-inline-start: 0.25rem;
}

/* Spacing Utilities - Logical Properties */
[dir="rtl"] .ms-1 {
  margin-inline-end: 0.25rem;
  margin-inline-start: 0;
}

/* Offset Classes */
[dir="rtl"] .offset-md-1 {
  margin-inline-start: 8.333333%;
  margin-inline-end: 0;
}

/* Typewriter margin fix */
[dir="rtl"] .typewrite {
  margin-left: 0;
  margin-inline-start: 10px;
}

/* Carousel/Slider Controls RTL */
[dir="rtl"] .owl-prev {
  left: auto;
  right: 0;
}

[dir="rtl"] .owl-next {
  right: auto;
  left: 0;
}

[dir="rtl"] .owl-pagination {
  direction: ltr; /* Keep pagination dots LTR for consistency */
}

/* Animation Direction Fixes */
[dir="rtl"] .fadeInLeft {
  animation-name: fadeInRight;
}

[dir="rtl"] .fadeInRight {
  animation-name: fadeInLeft;
}

[dir="rtl"] .wow.fadeInLeft {
  animation-name: fadeInRight;
}

[dir="rtl"] .wow.fadeInRight {
  animation-name: fadeInLeft;
}

/* Hero Section - Preserve Centered Layouts */
[dir="rtl"] .home-content {
  text-align: right; /* Text should align right for RTL reading */
}

/* Hero Paragraph - Desktop positioning on left side */


/* Hero Images Animation Fix */


/* Social Links RTL */
[dir="rtl"] .hs-social-link {
  margin-inline-end: 0.25rem;
  margin-inline-start: 0;
}

[dir="rtl"] .fw-social-inline {
  direction: rtl;
}

[dir="rtl"] .fw-social-inline-item {
  margin-inline-start: 0.5rem;
  margin-inline-end: 0;
}

/* ============================================
   BREADCRUMBS RTL
   Note: This rule is intentionally defined here and not in style-responsive.css
   to avoid duplication. Responsive overrides are handled in style-responsive.css.
   ============================================ */

/* Buttons RTL - preserve centered button text */
[dir="rtl"] .btn {
  text-align: center;
}

/* Lists RTL */
[dir="rtl"] ul {
  padding-inline-start: 1.5em;
  padding-inline-end: 0;
}

[dir="rtl"] .clearlist {
  padding-inline-start: 0;
}

/* Numbers and Dates - Keep LTR */
[dir="rtl"] .number,
[dir="rtl"] [class*="number"],
[dir="rtl"] .date {
  direction: ltr;
  display: inline-block;
  unicode-bidi: embed;
}

/* Tables RTL */
[dir="rtl"] table {
  direction: rtl;
}

[dir="rtl"] th,
[dir="rtl"] td {
  text-align: right;
}

/* Accordion RTL & Arabic Typography */

[dir="rtl"] .accordion-button::after {
  margin-inline-start: 0;
  margin-inline-end: auto;
  transform: scaleX(-1);
}

/* Accordion Arabic Typography Optimization */
.accordion-1.accordion-1-slick {
  font-family: var(--font-global, "Almarai", sans-serif);
}

.accordion-1.accordion-1-slick > dt {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-global, "Almarai", sans-serif);
}

.accordion-1.accordion-1-slick > dt > a {
  font-family: var(--font-global, "Almarai", sans-serif);
}

.accordion-1.accordion-1-slick > dt > a > span {
  font-family: var(--font-global, "Almarai", sans-serif);
  line-height: 1.5;
  letter-spacing: 0;
}

.accordion-1.accordion-1-slick > dt > a > span:before {
  background: var(--color-primary-1);
}

.accordion-1.accordion-1-slick > dd,
.accordion-1.accordion-1-slick > dd.black {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0;
  font-family: var(--font-global, "Almarai", sans-serif);
  color: var(--color-gray-1);
}

/* Responsive Accordion Typography */
@media (max-width: 768px) {
  .accordion-1.accordion-1-slick > dt {
    font-size: 20px;
    line-height: 1.5;
  }

  .accordion-1.accordion-1-slick > dt > a {
    padding: 30px 30px 30px 0;
  }

  .accordion-1.accordion-1-slick > dd {
    font-size: 17px;
    line-height: 1.75;
  }
}

@media (max-width: 576px) {
  .accordion-1.accordion-1-slick > dt {
    font-size: 18px;
    line-height: 1.5;
  }

  .accordion-1.accordion-1-slick > dt > a {
    padding: 25px 30px 25px 0;
  }

  .accordion-1.accordion-1-slick > dd {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 30px;
  }
}

/* Tabs RTL */

/* Pagination RTL */
[dir="rtl"] .pagination {
  direction: rtl;
}

/* Badges and Labels RTL */

[dir="rtl"] .label {
  direction: rtl;
}

/* Code blocks - Keep LTR */

[dir="rtl"] pre {
  direction: ltr;
  text-align: left;
  unicode-bidi: embed;
}


/* Video elements */
[dir="rtl"] video {
  direction: ltr; /* Video controls should stay LTR */
}

/* Alert RTL */
[dir="rtl"] .alert {
  direction: rtl;
  text-align: right;
}

/* Grid system RTL adjustments */
[dir="rtl"] .row > * {
  padding-inline-start: calc(var(--bs-gutter-x) * 0.5);
  padding-inline-end: calc(var(--bs-gutter-x) * 0.5);
}

/* Print styles RTL */
@media print {
  [dir="rtl"] {
    direction: rtl;
  }
}

/* ============================================
   THIRD-PARTY LIBRARIES RTL SUPPORT
   ============================================ */

/* Bootstrap RTL Support */
[dir="rtl"] .dropdown-toggle::after {
  margin-inline-start: 0.255em;
}

/* Swiper RTL - Additional fixes */
[dir="rtl"] .swiper {
  direction: rtl;
}

/* Fix transition direction for portfolio sliders in RTL */
/* Override owl-carousel display: none for Swiper components */
.content-slider.swiper,
.owl-carousel.swiper {
  display: block !important;
}

[dir="rtl"] .content-slider.swiper {
  direction: rtl;
}

[dir="rtl"] .content-slider .swiper-wrapper {
  transform: translate3d(0, 0, 0);
}

/* Ensure slides transition in correct direction for RTL */
[dir="rtl"] .content-slider .swiper-slide {
  direction: rtl;
}

/* Fix pagination direction - keep dots in LTR order for consistent visual transition */
[dir="rtl"] .content-slider .owl-pagination.swiper-pagination {
  direction: ltr;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
}

/* PhotoSwipe Gallery RTL */
[dir="rtl"] .pswp__button--arrow--prev {
  left: auto;
  right: 10px;
}

[dir="rtl"] .pswp__button--arrow--next {
  right: auto;
  left: 10px;
}

/* Owl Carousel RTL (if used) */
[dir="rtl"] .owl-carousel {
  direction: rtl;
}

/* Jarallax RTL */
[dir="rtl"] .jarallax {
  direction: rtl;
}

/* WOW.js animations - ensure they work in RTL */
[dir="rtl"] .wow {
  visibility: visible;
}

/* Fix for Arabic text clipping in hero title */
.hs-title-5.overflow-hidden {
  padding-bottom: 0.2em;
  min-height: fit-content;
}

.hs-title-5 .d-block {
  line-height: 1.2;
  padding-bottom: 0.1em;
}

/* Responsive margin for titleLine2 in PageHero - RTL support */
/* Shifted on all screens with proportional margins that don't break the design */
.hs-title-5 .title-line-2 {
  margin-right: 1rem;
}

/* Responsive margins for different screen sizes - proportional scaling */
@media (min-width: 576px) {
  .hs-title-5 .title-line-2 {
    margin-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .hs-title-5 .title-line-2 {
    margin-right: 2.5rem;
  }
}

@media (min-width: 992px) {
  .hs-title-5 .title-line-2 {
    margin-right: 3.5rem;
  }
}

@media (min-width: 1200px) {
  .hs-title-5 .title-line-2 {
    margin-right: 4.5rem;
  }
}

/* ============================================
   HERO SECTION - ARABIC ALMARAI FONT OPTIMIZATION
   Scoped styles for hero section only
   ============================================ */

/* Responsive adjustments for hero section */

/* ============================================
   WORK AREAS SECTION
   Luxury grid design for work areas display
   ============================================ */
.work-areas-section {
  position: relative;
}

.work-areas-section .row {
  justify-content: center;
  /* display: flex removed - Bootstrap .row already has it */
}

[dir="rtl"] .work-areas-section .row {
  justify-content: center;
}

.work-areas-section .section-title-inline-1 {
  color: var(--color-white) !important;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  margin-bottom: 80px;
  margin-left: 0;
  margin-right: 0;
  line-height: 1.3;
  display: block;
  text-align: center;
  width: 100%;
}

@media (max-width: 1024px) {
  .work-areas-section .section-title-inline-1 {
    color: var(--color-white) !important;
    font-size: 48px;
    margin-bottom: 60px;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.5;
  }

  .work-area-item {
    padding: 20px 15px;
    gap: 20px;
  }

  .work-area-item:hover,
  .work-area-item.active {
    transform: translateY(-6px) scale(1.03);
  }

  .work-area-image {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 5 / 3;
  }

  .work-area-title {
    font-size: 28px;
  }

  .work-area-card-description {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .work-areas-section .section-title-inline-1 {
    color: var(--color-white) !important;
    font-size: 40px;
    margin-bottom: 50px;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.5;
  }

  .work-area-item {
    padding: 20px 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .work-area-item:hover,
  .work-area-item.active {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.4);
  }

  .work-area-image {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 5 / 3;
    margin-bottom: 0;
    border-radius: 8px;
  }

  .work-area-title {
    font-size: 24px;
  }

  .work-area-card-description {
    font-size: 14px;
    line-height: 1.5;
  }

  .work-area-card-description.visible {
    max-height: 150px;
  }
}

@media (max-width: 576px) {
  .work-areas-section .section-title-inline-1 {
    color: var(--color-white) !important;
    font-size: 32px;
    margin-bottom: 40px;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.5;
  }
}

.work-area-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px 20px;
  transition: transform 0.4s var(--ease-out-short),
              background-color 0.4s var(--ease-out-short),
              box-shadow 0.4s var(--ease-out-short),
              backdrop-filter 0.4s var(--ease-out-short);
  background: #fff;
  border: none;
  border-radius: 12px;
  height: auto;
  min-height: auto;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  outline: none;
}

.work-area-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-primary-2), transparent);
  z-index: 1;
}

.work-area-item:focus-visible {
  outline: 2px solid var(--color-primary-1, #00174f);
  outline-offset: 4px;
}

.work-area-item:hover,
.work-area-item.active {
  transform: translateY(-8px) scale(1.05);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
              0 0 0 1px rgba(255, 255, 255, 0.5);
}

.work-area-image {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 5 / 3;
  margin-bottom: 0;
  flex-shrink: 0;
  display: block;
  border-radius: 8px;
  transition: transform 0.4s var(--ease-out-short),
              filter 0.4s var(--ease-out-short);
  overflow: hidden;
}

.work-area-item:hover .work-area-image,
.work-area-item.active .work-area-image {
  transform: scale(1.05) translateY(-4px);
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.4)) 
          drop-shadow(0 0 30px rgba(255, 255, 255, 0.15));
}

.work-area-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 23, 79, 0) 0%,
    rgba(0, 23, 79, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-short);
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}

.work-area-item:hover .work-area-card-overlay,
.work-area-item.active .work-area-card-overlay {
  opacity: 1;
}

.work-area-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s var(--ease-out-short),
              filter 0.4s var(--ease-out-short);
  display: block;
  position: relative;
  z-index: 0;
}

.work-area-item:hover .work-area-image img,
.work-area-item.active .work-area-image img {
  transform: scale(1.1);
  filter: brightness(1.15) contrast(1.05);
}

.work-area-card-content {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.work-area-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-primary-1, #000);
  margin: 0;
  transition: color 0.4s var(--ease-out-short),
              transform 0.4s var(--ease-out-short);
  position: relative;
}

.light-content .work-area-title {
  color: var(--color-primary-1, #000);
}

.work-area-item:hover .work-area-title,
.work-area-item.active .work-area-title {
  color: var(--color-primary-1, #000);
  transform: translateY(-2px);
}

.work-area-card-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-1, #757575);
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: max-height 0.4s var(--ease-out-short),
              opacity 0.4s var(--ease-out-short),
              transform 0.4s var(--ease-out-short),
              margin-top 0.4s var(--ease-out-short);
  text-align: center;
}

.work-area-card-description.visible {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 8px;
}

.work-area-item:hover .work-area-card-description.visible,
.work-area-item.active .work-area-card-description.visible {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

/* RTL Support for Work Areas */
/* Gradient direction is fine for RTL as it's vertical */

[dir="rtl"] .work-area-card-content {
  text-align: center;
}

[dir="rtl"] .work-area-card-description {
  text-align: center;
}


/* ============================================
   KEY OBJECTIVES SECTION
   Luxury Circular/Radial Objectives Layout
   ============================================ */
.key-objectives-section {
  position: relative;
  width: 100%;
  overflow: visible;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-inline: auto;
  padding-inline: 0;
  padding-top: 0;
  box-sizing: border-box;
}

/* Large screens */
@media (min-width: 1440px) {
  .key-objectives-section {
    min-height: 700px;
  }

  .key-objectives-section .section-title-inline-1 {
    color: var(--color-white) !important;
    font-size: 64px;
    margin-bottom: 80px;
    margin-left: 0;
    margin-right: 0;
  }

  .key-objectives-description {
    max-width: 900px;
  }

  .key-objectives-description-inner {
    padding: 50px 60px;
  }

  .key-objectives-description-text {
    font-size: 22px;
  }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .key-objectives-section {
    min-height: 650px;
  }

  .key-objectives-section .section-title-inline-1 {
    color: var(--color-white) !important;
    font-size: 60px;
    margin-bottom: 80px;
    margin-left: 0;
    margin-right: 0;
  }

  .key-objectives-description {
    max-width: 850px;
  }

  .key-objectives-description-inner {
    padding: 45px 55px;
  }

  .key-objectives-description-text {
    font-size: 21px;
  }
}

/* Ensure container wrapping KeyObjectives is centered and has symmetric padding */
/* This specifically targets the about page structure where bg-primary-1 is inside a parent container */
.page-section .bg-primary-1 > .container,
.bg-primary-1 > .container {
  margin-inline: auto;
  padding-inline: 15px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure the wrapper div inside container with KeyObjectives is centered */
.page-section .bg-primary-1 > .container > div,
.bg-primary-1 > .container > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

/* Override wrapper's justify-content for KeyObjectives to allow proper spacing */
.about-key-objectives-wrapper > .key-objectives-section {
  justify-content: flex-start !important;
}

/* Ensure elements are visible on initial render */
.key-objectives-radial,
.key-objective-center,
.key-objective-item {
  opacity: 1;
  visibility: visible;
}


.key-objectives-section .section-title-inline-1 {
  color: var(--color-white) !important;
  font-size: clamp(24px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 80px;
  line-height: 1.3;
  display: block;
  text-align: center;
  width: 100%;
}

@media (max-width: 1024px) {
  .key-objectives-section .section-title-inline-1 {
    color: var(--color-white) !important;
    font-size: 48px;
    margin-bottom: 60px;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.5;
  }

  .key-objectives-container {
    padding-top: 0;
  }

  .key-objectives-radial {
    max-width: 90vw;
    max-height: 90vw;
  }

  .key-objectives-description {
    padding: 0 15px;
  }

  .key-objectives-description-inner {
    padding: 35px 40px;
  }

  .key-objectives-description-text {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .key-objectives-section {
    min-height: 550px;
  }

  .key-objectives-section .section-title-inline-1 {
    color: var(--color-white) !important;
    font-size: 40px;
    margin-bottom: 50px;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.5;
  }

  .key-objectives-container {
    gap: 35px;
    padding-top: 0;
  }

  .key-objectives-radial {
    max-width: 85vw;
    max-height: 85vw;
  }

  .key-objectives-description {
    padding: 0 15px;
  }

  .key-objectives-description-inner {
    padding: 30px 35px;
  }

  .key-objectives-description-text {
    font-size: 17px;
    line-height: 1.7;
  }
}

@media (max-width: 576px) {
  .key-objectives-section {
    min-height: 500px;
  }

  .key-objectives-section .section-title-inline-1 {
    color: #fff !important;
    font-size: 32px;
    margin-bottom: 40px;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.5;
  }

  .key-objectives-container {
    gap: 30px;
    padding-top: 0;
  }

  .key-objectives-radial {
    max-width: 90vw;
    max-height: 90vw;
  }

  .key-objectives-description {
    padding: 0 10px;
  }

  .key-objectives-description-inner {
    padding: 25px 20px;
  }

  .key-objectives-description-text {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 400px) {
  .key-objectives-section {
    min-height: 450px;
    padding-inline: 10px;
  }

  .key-objectives-section .section-title-inline-1 {
    color: #fff !important;
    font-size: 28px;
    margin-bottom: 40px;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.4;
    padding-inline: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .key-objectives-container {
    gap: 25px;
  }

  .key-objectives-radial {
    max-width: 90vw;
    max-height: 90vw;
  }

  .key-objective-title {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .key-objectives-description {
    padding: 0 8px;
  }

  .key-objectives-description-inner {
    padding: 20px 15px;
  }

  .key-objectives-description-text {
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Very small screens */
@media (max-width: 320px) {
  .key-objectives-section {
    min-height: 400px;
    padding-inline: 8px;
  }

  .key-objectives-section .section-title-inline-1 {
    color: #fff !important;
    font-size: 24px;
    margin-bottom: 40px;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.3;
    padding-inline: 8px;
  }

  .key-objectives-container {
    gap: 20px;
    padding-top: 0;
  }

  .key-objectives-radial {
    max-width: 95vw;
    max-height: 95vw;
  }

  .key-objectives-description {
    padding: 0 6px;
  }

  .key-objectives-description-inner {
    padding: 18px 12px;
  }

  .key-objectives-description-text {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Landscape orientation on mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
  .key-objectives-section {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .key-objectives-section .section-title-inline-1 {
    color: #fff !important;
    margin-bottom: 50px;
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(28px, 4vw, 40px);
  }

  .key-objectives-container {
    gap: 25px;
  }

  .key-objectives-radial {
    max-width: 60vw;
    max-height: 60vw;
  }

  .key-objectives-description {
    padding: 0 15px;
  }

  .key-objectives-description-inner {
    padding: 20px 25px;
  }

  .key-objectives-description-text {
    font-size: clamp(14px, 2vw, 17px);
  }
}

/* Very small landscape */
@media (max-width: 576px) and (orientation: landscape) {
  .key-objectives-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .key-objectives-section .section-title-inline-1 {
    color: #fff !important;
    margin-bottom: 40px;
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(24px, 3.5vw, 32px);
  }

  .key-objectives-container {
    gap: 20px;
    padding-top: 0;
  }

  .key-objectives-radial {
    max-width: 55vw;
    max-height: 55vw;
  }

  .key-objectives-description-inner {
    padding: 15px 20px;
  }

  .key-objectives-description-text {
    font-size: clamp(13px, 1.8vw, 16px);
  }
}

/* Tall/narrow screens */
@media (max-height: 600px) and (orientation: portrait) {
  .key-objectives-section {
    min-height: auto;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .key-objectives-section .section-title-inline-1 {
    color: #fff !important;
    margin-bottom: 40px;
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(28px, 5vw, 40px);
  }

  .key-objectives-container {
    gap: 20px;
    padding-top: 0;
  }

  .key-objectives-radial {
    max-width: 70vw;
    max-height: 70vw;
  }

  .key-objectives-description-inner {
    padding: 20px 25px;
  }

  .key-objectives-description-text {
    font-size: clamp(14px, 2.5vw, 17px);
  }
}

.key-objectives-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 50px);
  overflow: visible;
  margin-inline: auto;
  margin-top: 0;
  padding-top: 0;
  padding-inline: 0;
  box-sizing: border-box;
}

.key-objectives-radial {
  position: relative;
  margin-inline: auto;
  --scale-factor: 1;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.key-objectives-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.key-objective-line {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: calc(2px * var(--scale-factor, 1));
  stroke-dasharray: calc(5px * var(--scale-factor, 1)), calc(5px * var(--scale-factor, 1));
  transition: stroke 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1)),
              stroke-width 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1)),
              stroke-dasharray 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1)),
              filter 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1));
}

.key-objective-line.active {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: calc(3px * var(--scale-factor, 1));
  stroke-dasharray: none;
  filter: drop-shadow(0 0 calc(8px * var(--scale-factor, 1)) rgba(255, 255, 255, 0.3));
}

/* Center Circle */
.key-objective-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  margin: 0;
  padding: 0;
  width: calc(160px * var(--scale-factor, 1));
  height: calc(160px * var(--scale-factor, 1));
  opacity: 1;
  visibility: visible;
}

.key-objective-center-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: calc(2px * var(--scale-factor, 1)) solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 calc(8px * var(--scale-factor, 1)) calc(32px * var(--scale-factor, 1)) rgba(0, 0, 0, 0.3),
    inset 0 calc(1px * var(--scale-factor, 1)) 0 rgba(255, 255, 255, 0.2),
    0 0 0 calc(1px * var(--scale-factor, 1)) rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1)), 
              box-shadow 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1));
  margin: 0;
  padding: 0;
}

.key-objective-center-text {
  font-size: calc(32px * var(--scale-factor, 1));
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.01em;
  text-align: center;
}

/* Objective Circles */
.key-objective-item {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(16px * var(--scale-factor, 1));
  cursor: pointer;
  z-index: 5;
  --pos-x: 0px;
  --pos-y: 0px;
  --scale: 1;
  transform: translate(-50%, -50%) translate(var(--pos-x), var(--pos-y)) scale(var(--scale));
  transform-origin: center center;
  transition: transform 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1));
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  min-width: calc(44px * var(--scale-factor, 1));
  min-height: calc(44px * var(--scale-factor, 1));
  /* Button reset styles */
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-align: inherit;
}

.key-objective-item:hover,
.key-objective-item.active {
  z-index: 15;
}

/* Focus styles for keyboard navigation */
.key-objective-item:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
  border-radius: 50%;
  z-index: 15;
}

.key-objective-item:focus-visible .key-objective-circle {
  box-shadow: 
    0 0 0 4px rgba(255, 255, 255, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.key-objective-item:focus-visible .key-objective-title {
  opacity: 1;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

/* Fallback for browsers that don't support :focus-visible */
.key-objective-item:focus {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
  border-radius: 50%;
  z-index: 15;
}

.key-objective-item:focus:not(:focus-visible) {
  outline: none;
}

/* Prevent WOW.js from interfering with positioning */
.key-objective-item.wow,
.key-objective-center.wow {
  opacity: 1;
  transform: translate(-50%, -50%) translate(var(--pos-x, 0px), var(--pos-y, 0px)) scale(var(--scale, 1));
}

.key-objective-item.wow.animated,
.key-objective-center.wow.animated {
  opacity: 1;
  transform: translate(-50%, -50%) translate(var(--pos-x, 0px), var(--pos-y, 0px)) scale(var(--scale, 1));
}

.key-objective-circle {
  width: calc(120px * var(--scale-factor, 1));
  height: calc(120px * var(--scale-factor, 1));
  border-radius: 50%;
  background: var(--color-white);
  border: calc(2px * var(--scale-factor, 1)) solid var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 calc(8px * var(--scale-factor, 1)) calc(24px * var(--scale-factor, 1)) rgba(0, 0, 0, 0.15),
    0 calc(2px * var(--scale-factor, 1)) calc(8px * var(--scale-factor, 1)) rgba(0, 0, 0, 0.1);
  transition: transform 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1)),
              background-color 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1)),
              border-color 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1)),
              box-shadow 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1));
  position: relative;
}

.key-objective-item:hover .key-objective-circle,
.key-objective-item.active .key-objective-circle {
  background: var(--color-secondary-1);
  border-color: var(--color-secondary-1);
  box-shadow: 
    0 calc(12px * var(--scale-factor, 1)) calc(40px * var(--scale-factor, 1)) rgba(0, 23, 79, 0.4),
    0 calc(4px * var(--scale-factor, 1)) calc(12px * var(--scale-factor, 1)) rgba(0, 23, 79, 0.3);
  transform: scale(1.05);
}

.key-objective-icon {
  font-size: calc(48px * var(--scale-factor, 1));
  color: var(--color-primary-1);
  transition: transform 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1));
  display: block;
}

.key-objective-item:hover .key-objective-icon,
.key-objective-item.active .key-objective-icon {
  transform: scale(1.1) rotate(5deg);
}

.key-objective-title {
  font-size: calc(24px * var(--scale-factor, 1));
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1)),
              transform 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1)),
              text-shadow 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1));
  opacity: 0.9;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.key-objective-item:hover .key-objective-title,
.key-objective-item.active .key-objective-title {
  opacity: 1;
  transform: translateY(calc(-2px * var(--scale-factor, 1)));
  text-shadow: 0 calc(2px * var(--scale-factor, 1)) calc(8px * var(--scale-factor, 1)) rgba(255, 255, 255, 0.3);
}

/* Description Container */
.key-objectives-description {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive description container */
@media (min-width: 1200px) {
  .key-objectives-description {
    max-width: 900px;
  }
}

@media (min-width: 1440px) {
  .key-objectives-description {
    max-width: 1000px;
  }
}

@media (max-width: 768px) {
  .key-objectives-description {
    max-width: 100%;
  }
}

.key-objectives-description-inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: clamp(12px, 1.5vw, 16px);
  padding: clamp(20px, 3vw, 40px) clamp(15px, 3.5vw, 50px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: opacity 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1)),
              transform 0.4s var(--ease-out-short, cubic-bezier(0.4, 0, 0.2, 1));
  width: 100%;
  box-sizing: border-box;
}

.key-objectives-description-text {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.7;
  color: #fff;
  text-align: center;
  margin: 0;
  letter-spacing: 0;
  opacity: 0.95;
  animation: fadeInText 0.4s ease-in-out;
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}


/* RTL Support - using logical properties, most rules inherit correctly */
[dir="rtl"] .key-objectives-section .section-title-inline-1 {
  text-align: center;
  margin-inline: 0;
}

[dir="rtl"] .key-objectives-container {
  margin-inline: auto;
  padding-inline: 0;
}

[dir="rtl"] .key-objectives-radial {
  margin-inline: auto;
}

[dir="rtl"] .key-objectives-description {
  margin-inline: auto;
  padding-inline: 20px;
}

[dir="rtl"] .key-objectives-description-text,
[dir="rtl"] .key-objective-title {
  direction: rtl;
}

/* ============================================
   ABOUT PAGE RESPONSIVE STYLES
   ============================================ */

/* Work Areas Section - About Page */
.about-work-areas-wrapper {
  width: 100%;
  max-width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
  padding-inline: 0;
  box-sizing: border-box;
  margin-inline: 0;
}

/* Work Areas Section - About Page - Inner wrapper */
.about-work-areas-wrapper > div {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 15px;
  box-sizing: border-box;
}

/* Work Areas section content padding when inside about page wrapper */
.about-work-areas-wrapper .work-areas-section {
  padding-inline: 0;
}

/* Key Objectives Section - About Page */
.about-key-objectives-wrapper {
  width: 100%;
  max-width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
  padding-inline: 0;
  box-sizing: border-box;
  margin-inline: 0;
}

/* Override inline styles and ensure proper spacing for KeyObjectives in about page */
.about-key-objectives-wrapper .key-objectives-section {
  justify-content: flex-start !important;
  align-items: center;
}

.about-key-objectives-wrapper .key-objectives-section .section-title-inline-1 {
  margin-bottom: 80px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Responsive adjustments for about page wrappers */
@media (max-width: 1024px) {
  .about-work-areas-wrapper,
  .about-key-objectives-wrapper {
    padding-top: 60px;
    padding-bottom: 60px;
    border-radius: 18px;
  }

  .about-key-objectives-wrapper .key-objectives-section .section-title-inline-1 {
    margin-bottom: 60px !important;
  }
}

@media (max-width: 768px) {
  .about-work-areas-wrapper,
  .about-key-objectives-wrapper {
    padding-top: 50px;
    padding-bottom: 50px;
    border-radius: 16px;
    margin-bottom: 40px !important;
  }

  .about-key-objectives-wrapper .key-objectives-section .section-title-inline-1 {
    margin-bottom: 50px !important;
  }

  .about-work-areas-wrapper > div {
    padding-inline: 15px;
  }
}

@media (max-width: 576px) {
  .about-work-areas-wrapper,
  .about-key-objectives-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
    border-radius: 15px;
    margin-bottom: 30px !important;
  }

  .about-key-objectives-wrapper .key-objectives-section .section-title-inline-1 {
    margin-bottom: 40px !important;
  }

  .about-work-areas-wrapper > div {
    padding-inline: 12px;
  }
}

@media (max-width: 480px) {
  .about-work-areas-wrapper,
  .about-key-objectives-wrapper {
    padding-top: 30px;
    padding-bottom: 30px;
    border-radius: 12px;
    margin-bottom: 25px !important;
  }

  .about-key-objectives-wrapper .key-objectives-section .section-title-inline-1 {
    margin-bottom: 40px !important;
  }

  .about-work-areas-wrapper > div {
    padding-inline: 10px;
  }
}


/* ============================================
   PORTFOLIO TABS AND FILTERING
   Clean minimal tabbed interface for portfolio categories
   ============================================ */

.portfolio-filter-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 60px;
}

.portfolio-filter-wrapper .works-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Stagger animation for tabs */
.portfolio-filter-wrapper .works-filter a:nth-child(1) {
  animation-delay: 0.1s;
}

.portfolio-filter-wrapper .works-filter a:nth-child(2) {
  animation-delay: 0.15s;
}

.portfolio-filter-wrapper .works-filter a:nth-child(3) {
  animation-delay: 0.2s;
}

.portfolio-filter-wrapper .works-filter a:nth-child(4) {
  animation-delay: 0.25s;
}

.portfolio-filter-wrapper .works-filter a:nth-child(5) {
  animation-delay: 0.3s;
}

.portfolio-filter-wrapper .works-filter a:nth-child(6) {
  animation-delay: 0.35s;
}

.portfolio-filter-wrapper .works-filter a:nth-child(n+7) {
  animation-delay: 0.4s;
}

.portfolio-filter-wrapper .works-filter a {
  position: relative;
  display: inline-block;
  padding: 12px 28px;
  margin: 0 4px 8px 4px;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-primary-1);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-short);
  white-space: nowrap;
  border: 2px solid var(--color-primary-1);
  border-radius: 50px;
  background: transparent;
  animation: fadeInDown 0.6s ease-out;
  animation-fill-mode: both;
}

.portfolio-filter-wrapper .works-filter a:hover {
  color: var(--color-primary-2);
  border-color: var(--color-primary-2);
  text-decoration: none;
  background: rgba(255, 110, 90, 0.05);
}

.portfolio-filter-wrapper .works-filter a.active {
  color: #fff;
  font-weight: 500;
  background: var(--color-primary-2);
  border-color: var(--color-primary-2);
}

.portfolio-filter-wrapper .works-filter a.active:hover {
  color: #fff;
  background: var(--color-primary-2);
  border-color: var(--color-primary-2);
}

/* Elegant filter variant styling */
.portfolio-filter-wrapper .works-filter.works-filter-elegant a:before {
  display: none;
}

.portfolio-filter-wrapper .works-filter.works-filter-elegant a:after {
  display: none;
}

/* Light content variant */
.light-content .portfolio-filter-wrapper .works-filter a {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
}

.light-content .portfolio-filter-wrapper .works-filter a:hover {
  color: #fff;
  border-color: var(--color-primary-2);
  background: rgba(255, 110, 90, 0.1);
  opacity: 1;
}

.light-content .portfolio-filter-wrapper .works-filter a.active {
  color: #fff;
  background: var(--color-primary-2);
  border-color: var(--color-primary-2);
}

/* Portfolio grid fade animation */
.portfolio-grid-fade {
  animation: fadeInPortfolio 0.4s ease-in-out;
}

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

/* Empty state styling */
.portfolio-tabs-container .text-center p {
  font-size: 18px;
  color: var(--color-gray-1);
  margin: 0;
}

.light-content .portfolio-tabs-container .text-center p {
  color: var(--color-dark-mode-gray-1);
}

/* RTL Support for Portfolio Tabs */
[dir="rtl"] .portfolio-filter-wrapper .works-filter {
  direction: rtl;
}

[dir="rtl"] .portfolio-filter-wrapper .works-filter a {
  margin: 0 8px 8px 8px;
}


/* Responsive adjustments for portfolio filters */
@media (max-width: 768px) {
  .portfolio-filter-wrapper {
    margin-bottom: 40px;
  }

  .portfolio-filter-wrapper .works-filter a {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .portfolio-filter-wrapper {
    margin-bottom: 30px;
  }

  .portfolio-filter-wrapper .works-filter a {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* ============================================
   PORTFOLIO CAROUSEL
   Luxury minimal carousel for home page showcasing one project per category
   ============================================ */

.portfolio-carousel-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 100px;
  margin-top: 0;
  overflow: hidden; /* Clip slides to show only one at a time */
}

.portfolio-carousel {
  width: 100%;
  overflow: hidden; /* Clip slides to show only one at a time */
  padding-bottom: 0;
  padding-top: 8px; /* Add padding to accommodate upward hover transform */
  position: relative;
}

.portfolio-carousel-slide {
  height: auto;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.portfolio-carousel-item {
  width: 100%;
  padding: 0 20px;
  padding-top: 8px; /* Add padding to accommodate upward hover transform */
  display: block;
  box-sizing: border-box;
}

.portfolio-carousel-item .row {
  align-items: center;
  width: 100%;
  min-height: 500px;
  margin: 0;
  box-sizing: border-box;
}

/* Content Container */
.portfolio-carousel-content {
  padding: 40px 0;
  width: 100%;
}

/* Category Badge - Minimal & Elegant */
.portfolio-carousel-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gray-1);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 12px;
  transition: color 0.4s var(--ease-out-short);
}

.portfolio-carousel-category::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--color-primary-2);
  transition: width 0.4s var(--ease-out-short);
}

.portfolio-carousel-item:hover .portfolio-carousel-category {
  color: var(--color-primary-2);
}

.portfolio-carousel-item:hover .portfolio-carousel-category::after {
  width: 40px;
}

.light-content .portfolio-carousel-category {
  color: rgba(255, 255, 255, 0.6);
}

.light-content .portfolio-carousel-item:hover .portfolio-carousel-category {
  color: var(--color-primary-2);
}

/* Title - Refined Typography */
.portfolio-carousel-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 50px;
  color: var(--color-primary-1);
  transition: color 0.4s var(--ease-out-short);
}

.portfolio-carousel-title a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.portfolio-carousel-item:hover .portfolio-carousel-title {
  color: var(--color-primary-1);
}

.light-content .portfolio-carousel-title {
  color: #fff;
}

.light-content .portfolio-carousel-item:hover .portfolio-carousel-title {
  color: #fff;
}

/* Link - Minimal Arrow */
.portfolio-carousel-link {
  margin-top: 20px;
}

.portfolio-carousel-link-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-gray-1);
  text-decoration: none;
  transition: color 0.4s var(--ease-out-short),
              gap 0.4s var(--ease-out-short);
  position: relative;
}

.portfolio-carousel-link-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out-short);
  font-size: 18px;
  line-height: 1;
}

.portfolio-carousel-link-text:hover {
  color: var(--color-primary-2);
  gap: 16px;
}

.portfolio-carousel-link-text:hover .portfolio-carousel-link-arrow {
  transform: translateX(4px);
}

[dir="rtl"] .portfolio-carousel-link-text:hover .portfolio-carousel-link-arrow {
  transform: translateX(-4px);
}

.light-content .portfolio-carousel-link-text {
  color: rgba(255, 255, 255, 0.7);
}

.light-content .portfolio-carousel-link-text:hover {
  color: var(--color-primary-2);
}

/* Carousel Controls - Minimal & Elegant */

/* Minimal Pagination Dots */

/* In RTL mode, reverse the visual order of pagination dots */

.portfolio-carousel-controls .owl-page:hover {
  opacity: 0.8;
  transform: scale(1.2);
}

/* Portfolio Slider Pagination - Fix for Swiper integration */
.content-slider .owl-pagination.swiper-pagination {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  text-align: center;
  line-height: 1;
  z-index: 10;
  direction: ltr; /* Keep pagination dots LTR for consistent visual order */
}

.content-slider .owl-pagination .owl-page.swiper-pagination-bullet {
  display: inline-block;
  padding: 7px;
  position: relative;
  z-index: 1000;
  width: auto;
  height: auto;
  background: transparent;
  opacity: 1;
  margin: 0;
  border-radius: 0;
  cursor: pointer;
}

.content-slider .owl-pagination .owl-page.swiper-pagination-bullet span {
  width: 8px;
  height: 8px;
  display: block;
  background: none;
  border: 1px solid var(--color-primary-1);
  position: relative;
  border-radius: 50%;
  transition: var(--transition-default);
}

.content-slider .owl-pagination .owl-page.swiper-pagination-bullet-active.active span,
.content-slider .owl-pagination .owl-page.active span {
  background: var(--color-primary-2);
  border: 1px solid var(--color-primary-2);
}

.light-content .content-slider .owl-pagination .owl-page.swiper-pagination-bullet span {
  border: 1px solid var(--color-white) !important;
  box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1) !important;
}

.light-content .content-slider .owl-pagination .owl-page.swiper-pagination-bullet-active.active span,
.light-content .content-slider .owl-pagination .owl-page.active span {
  background: var(--color-primary-2) !important;
  border: 1px solid var(--color-primary-2) !important;
}

.content-slider .owl-pagination .owl-page.swiper-pagination-bullet:hover {
  opacity: 0.8;
  transform: scale(1.2);
}

/* Portfolio Slider Navigation Buttons - Dark Blue */
.content-slider .owl-prev,
.content-slider .owl-next {
  color: var(--color-slider-nav) !important;
  opacity: 0.9;
}

.content-slider .owl-prev:hover,
.content-slider .owl-next:hover {
  color: var(--color-slider-nav-hover) !important;
  opacity: 1;
}

.content-slider .owl-prev svg,
.content-slider .owl-next svg {
  fill: currentColor;
  color: var(--color-slider-nav) !important;
}

.content-slider .owl-prev:hover svg,
.content-slider .owl-next:hover svg {
  color: var(--color-slider-nav-hover) !important;
}

.light-content .content-slider .owl-prev,
.light-content .content-slider .owl-next {
  color: var(--color-slider-nav) !important;
}

.light-content .content-slider .owl-prev:hover,
.light-content .content-slider .owl-next:hover {
  color: var(--color-slider-nav-hover) !important;
}

.light-content .content-slider .owl-prev svg,
.light-content .content-slider .owl-next svg {
  color: var(--color-slider-nav) !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.light-content .content-slider .owl-prev:hover svg,
.light-content .content-slider .owl-next:hover svg {
  color: var(--color-slider-nav-hover) !important;
}

/* Elegant Navigation Arrows */

.portfolio-carousel-controls .owl-prev:hover,
.portfolio-carousel-controls .owl-next:hover {
  color: var(--color-primary-2, #000);
  background: rgba(255, 255, 255, 1);
  border-color: var(--color-primary-2, #000);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.portfolio-carousel-controls .owl-prev:active,
.portfolio-carousel-controls .owl-next:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.light-content .portfolio-carousel-controls .owl-prev:hover,
.light-content .portfolio-carousel-controls .owl-next:hover {
  color: var(--color-primary-2, #fff);
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-primary-2, #fff);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.portfolio-carousel-controls .owl-prev:hover .owl-arrow-icon,
.portfolio-carousel-controls .owl-next:hover .owl-arrow-icon {
  transform: scale(1.1);
}

/* RTL arrow direction - flip arrows to match reading direction */

/* Ensure hover scale works with RTL flip */
[dir="rtl"] .portfolio-carousel-controls .owl-prev:hover .owl-arrow-prev,
[dir="rtl"] .portfolio-carousel-controls .owl-next:hover .owl-arrow-next {
  transform: scaleX(-1) scale(1.1);
}

/* Image Hover Effect - Subtle & Elegant */
.portfolio-carousel-item .portfolio-3-image {
  transition: transform 0.6s var(--ease-out-short);
  width: 100%;
  height: auto;
  overflow: visible; /* Allow hover transform to be visible */
  border-radius: 18px; /* Preserve rounded corners */
  position: relative;
  z-index: 1; /* Ensure hover effect appears above other elements */
}

.portfolio-carousel-item:hover .portfolio-3-image {
  transform: translateY(-8px);
}

.portfolio-carousel-item .portfolio-3-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* Show full image without cropping */
  object-position: center;
  transform: scale(1); /* Remove scale transform that causes cutoff */
  border-radius: 18px; /* Preserve rounded corners on image */
}

.portfolio-carousel-item .portfolio-3-image a {
  display: block;
  border-radius: 18px; /* Preserve rounded corners on link */
  overflow: hidden; /* Clip image to rounded corners */
}

.portfolio-carousel-item .portfolio-3-image a:hover img {
  transform: scale(1); /* Keep scale at 1 on hover to prevent cutoff */
}

/* Ensure Swiper wrapper doesn't break layout */

/* Desktop: Stack pagination and buttons vertically */

/* Tablet adjustments */
@media (max-width: 992px) {
  .portfolio-carousel-wrapper {
    margin-bottom: 80px;
  }

  .portfolio-carousel {
    padding-bottom: 130px;
  }

  .portfolio-carousel-content {
    padding: 30px 0;
  }

  .portfolio-carousel-category {
    font-size: 11px;
    margin-bottom: 30px;
  }

  .portfolio-carousel-title {
    font-size: 42px;
    margin-bottom: 40px;
    line-height: 1.3;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .portfolio-carousel-wrapper {
    margin-bottom: 60px;
  }

  .portfolio-carousel {
    padding-bottom: 120px;
  }

  .portfolio-carousel-item {
    padding: 0 15px;
  }

  .portfolio-carousel-item .row {
    min-height: auto;
  }

  .portfolio-carousel-content {
    padding: 30px 0 20px;
  }

  .portfolio-carousel-category {
    font-size: 11px;
    margin-bottom: 25px;
    padding-bottom: 10px;
  }

  .portfolio-carousel-title {
    font-size: 36px;
    margin-bottom: 30px;
    line-height: 1.3;
  }

  .portfolio-carousel-link {
    margin-top: 15px;
  }
}

/* ============================================
   HERO CAROUSEL STYLES
   ============================================ */

/* Hero Carousel Wrapper */
.hero-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-carousel {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
}

.hero-carousel-slide {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
}

.hero-carousel-slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

/* Full-screen background image */
.hero-carousel-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-carousel-image-wrapper img {
  object-fit: cover;
  object-position: center;
}

/* Overlay gradients for text readability */
.hero-carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background-color: rgba(224, 224, 224, 0.95);
}

/* Container and row styles */
.hero-carousel-slide .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.hero-carousel-slide .container .row {
  width: 100%;
  margin: 0;
  min-height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.hero-carousel-slide .container .row > [class*="col-"] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: visible;
}

/* General button styles for all hero layouts */
.hero-slide-layout-1 .btn-mod,
.hero-slide-layout-2 .btn-mod,
.hero-slide-layout-3 .btn-mod,
.hero-slide-layout-4 .btn-mod,
.hero-slide-layout-5 .btn-mod,
.hero-slide-layout-6 .btn-mod {
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.4;
  vertical-align: middle;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  word-wrap: normal;
  word-break: normal;
}

/* Layout-specific overlays */

/* ============================================
   NEW HERO CAROUSEL LAYOUTS
   ============================================ */

/* Layout 1: Split Screen Editorial */
.hero-slide-layout-1 {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 60px;
  align-items: center;
  width: 100%;
  min-height: 60vh;
  padding: 60px 0 120px;
  overflow: visible;
}

.hero-layout-1-left {
  position: relative;
  text-align: left;
}

[dir="rtl"] .hero-layout-1-left {
  text-align: right;
}

.hero-layout-1-category {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary-2);
  margin-bottom: 20px;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-layout-1-title {
  font-size: clamp(48px, 6vw, 85px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: var(--color-primary-1);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero-layout-1-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
  align-items: center;
}

[dir="rtl"] .hero-layout-1-right {
  text-align: right;
  align-items: center;
}

.hero-layout-1-right .btn-mod {
  display: inline-block;
  max-width: 100%;
  width: auto;
  min-width: 180px;
  align-self: center;
  text-align: center;
  padding: 13px 25px 12px;
  margin: 0 auto;
}

[dir="rtl"] .hero-layout-1-right .btn-mod {
  align-self: center;
  text-align: center;
  margin: 0 auto;
}

.hero-layout-1-description {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-primary-1);
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-layout-1-divider {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 80%;
  background: linear-gradient(180deg, transparent, var(--color-primary-2), transparent);
  z-index: 1;
}

[dir="rtl"] .hero-layout-1-divider {
  left: auto;
  right: 60%;
  transform: translate(50%, -50%);
}

.hero-layout-1-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 110, 90, 0.1);
  z-index: 0;
}

.hero-layout-1-shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  right: -50px;
  animation: float 6s ease-in-out infinite;
}

[dir="rtl"] .hero-layout-1-shape-1 {
  right: auto;
  left: -50px;
}

.hero-layout-1-shape-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: -30px;
  animation: float 8s ease-in-out infinite reverse;
}

[dir="rtl"] .hero-layout-1-shape-2 {
  left: auto;
  right: -30px;
}

/* Layout 2: Full-Width Centered Impact */
.hero-slide-layout-2 {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 0 120px;
  width: 100%;
}

.hero-layout-2-category {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary-2);
  margin-bottom: 30px;
  display: inline-block;
  padding: 8px 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-layout-2-title {
  font-size: clamp(56px, 8vw, 95px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-primary-1);
  margin: 0 0 30px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-layout-2-description {
  font-size: 20px;
  line-height: 1.7;
  color: var(--color-primary-1);
  margin: 0 0 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-layout-2-btn {
  margin-top: 20px;
  display: inline-block;
  max-width: 100%;
  width: auto;
  min-width: 180px;
  text-align: center;
  padding: 13px 25px 12px;
  margin-left: auto;
  margin-right: auto;
}

.hero-layout-2-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.hero-layout-2-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-primary-2);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat 10s ease-in-out infinite;
}

.hero-layout-2-particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

[dir="rtl"] .hero-layout-2-particle:nth-child(1) {
  left: auto;
  right: 20%;
}

.hero-layout-2-particle:nth-child(2) {
  top: 60%;
  right: 25%;
  animation-delay: 3s;
}

[dir="rtl"] .hero-layout-2-particle:nth-child(2) {
  right: auto;
  left: 25%;
}

.hero-layout-2-particle:nth-child(3) {
  bottom: 30%;
  left: 30%;
  animation-delay: 6s;
}

[dir="rtl"] .hero-layout-2-particle:nth-child(3) {
  left: auto;
  right: 30%;
}

/* Layout 3: Modern Card-Based Design */
.hero-slide-layout-3 {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  min-height: 70vh;
  padding: 60px 20px 120px;
  overflow: visible;
}

@media (max-width: 1200px) {
  .hero-slide-layout-3 {
    padding: 55px 20px 110px;
    max-width: 850px;
  }

  .hero-layout-3-body {
    padding: 38px 35px;
  }
}

@media (max-width: 992px) {
  .hero-slide-layout-3 {
    padding: 50px 20px 100px;
  }
}

.hero-layout-3-header {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
  width: 100%;
}

.hero-layout-3-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary-2);
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid var(--color-primary-2);
  display: inline-block;
  align-self: flex-start;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

[dir="rtl"] .hero-layout-3-category {
  align-self: flex-end;
}

.hero-layout-3-title {
  font-size: clamp(48px, 6.5vw, 72px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary-1);
  margin: 0;
  letter-spacing: -0.02em;
  text-align: left;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
  max-width: 100%;
}

[dir="rtl"] .hero-layout-3-title {
  text-align: right;
}

.hero-layout-3-body {
  display: flex;
  flex-direction: column;
  gap: 35px;
  width: 100%;
  padding: 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 23, 79, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

.hero-layout-3-description {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-primary-1);
  margin: 0;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  text-align: left;
}

[dir="rtl"] .hero-layout-3-description {
  text-align: right;
}

.hero-layout-3-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  width: 100%;
}

[dir="rtl"] .hero-layout-3-content {
  align-items: flex-end;
}

.hero-layout-3-content .btn-mod {
  display: inline-block;
  max-width: 100%;
  width: auto;
  min-width: 180px;
  align-self: flex-start;
  text-align: center;
  padding: 13px 25px 12px;
  margin: 0;
}

[dir="rtl"] .hero-layout-3-content .btn-mod {
  align-self: flex-end;
}

.hero-layout-3-accent {
  position: absolute;
  top: -15px;
  right: 30px;
  width: 60px;
  height: 4px;
  background: var(--color-primary-2);
  border-radius: 2px;
  z-index: 2;
}

[dir="rtl"] .hero-layout-3-accent {
  right: auto;
  left: 30px;
}

.hero-layout-3-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid var(--color-primary-1);
  border-radius: 50%;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.hero-layout-3-decoration-1 {
  top: -50px;
  right: -50px;
}

[dir="rtl"] .hero-layout-3-decoration-1 {
  right: auto;
  left: -50px;
}

.hero-layout-3-decoration-2 {
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
}

[dir="rtl"] .hero-layout-3-decoration-2 {
  left: auto;
  right: -80px;
}

/* Layout 4: Magazine-Style Editorial */
.hero-slide-layout-4 {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0px 120px;
  text-align: center;
  width: 100%;
}

.hero-layout-4-category {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
}

.hero-layout-4-category span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary-2);
  display: block;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-layout-4-category-underline {
  width: 80px;
  height: 2px;
  background: var(--color-primary-2);
  margin: 0 auto;
}

.hero-layout-4-title {
  font-size: clamp(50px, 7vw, 68px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary-1);
  margin: 0 0 50px;
  font-style: italic;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero-layout-4-quote {
  position: relative;
  margin: 0 0 50px;
  padding: 0 40px;
  direction: ltr;
}

[dir="rtl"] .hero-layout-4-quote {
  direction: rtl;
}

.hero-layout-4-quote-mark {
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 120px;
  font-weight: 300;
  color: var(--color-primary-2);
  opacity: 0.3;
  line-height: 1;
  font-family: Georgia, serif;
}

[dir="rtl"] .hero-layout-4-quote-mark {
  left: auto;
  right: 0;
}

.hero-layout-4-description {
  font-size: 19px;
  line-height: 1.9;
  color: var(--color-primary-1);
  margin: 0;
  font-style: italic;
  letter-spacing: 0.01em;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-layout-4-btn {
  margin-top: 0px;
  display: inline-block;
  max-width: 100%;
  width: auto;
  min-width: 180px;
  text-align: center;
  padding: 13px 25px 12px;
  margin-left: auto;
  margin-right: auto;
}

.hero-layout-4-border {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.hero-layout-4-border-top {
  top: 0;
}

.hero-layout-4-border-bottom {
  bottom: 0;
}

/* Layout 5: Minimalist Floating Elements */
.hero-slide-layout-5 {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 0 120px;
  width: 100%;
}

.hero-layout-5-title {
  font-size: clamp(48px, 7vw, 65px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-primary-1);
  margin: 0 0 40px;
  letter-spacing: 0.1em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero-layout-5-description {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-primary-1);
  margin: 0 0 50px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-layout-5-btn {
  margin-top: 30px;
  display: inline-block;
  max-width: 100%;
  width: auto;
  min-width: 180px;
  text-align: center;
  padding: 13px 25px 12px;
  margin-left: auto;
  margin-right: auto;
}

.hero-layout-5-category {
  position: absolute;
  top: 20%;
  right: 10%;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary-2);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .hero-layout-5-category {
  right: auto;
  left: 10%;
  transform: rotate(0deg);
}

.hero-layout-5-shape {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.hero-layout-5-shape-1 {
  width: 100px;
  height: 100px;
  top: 15%;
  left: 15%;
  animation-delay: 0s;
}

[dir="rtl"] .hero-layout-5-shape-1 {
  left: auto;
  right: 15%;
}

.hero-layout-5-shape-2 {
  width: 60px;
  height: 60px;
  bottom: 25%;
  right: 20%;
  animation-delay: 2s;
}

[dir="rtl"] .hero-layout-5-shape-2 {
  right: auto;
  left: 20%;
}

.hero-layout-5-shape-3 {
  width: 80px;
  height: 80px;
  top: 60%;
  left: 10%;
  animation-delay: 4s;
}

[dir="rtl"] .hero-layout-5-shape-3 {
  left: auto;
  right: 10%;
}

/* Layout 6: Bold Statement with Gradient */
.hero-slide-layout-6 {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 0 180px;
  width: 100%;
}

.hero-layout-6-category {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary-2);
  margin-bottom: 30px;
  display: inline-block;
  padding: 10px 25px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-layout-6-title {
  font-size: clamp(60px, 9vw, 110px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 50px;
  color: var(--color-primary-1);
  letter-spacing: -0.02em;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-layout-6-description {
  font-size: 19px;
  line-height: 1.8;
  color: var(--color-primary-1);
  margin: 0 0 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-layout-6-btn {
  background: var(--color-primary-1);
  border: none;
  color: var(--color-white);
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 30px;
  box-shadow: 0 8px 25px rgba(0, 23, 79, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
  max-width: 100%;
  width: auto;
  min-width: 180px;
  text-align: center;
  line-height: 1.4;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  margin-left: auto;
  margin-right: auto;
}

.hero-layout-6-btn:hover {
  transform: translateY(-3px);
  background: var(--color-primary-2);
  box-shadow: 0 12px 35px rgba(255, 110, 90, 0.6);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-30px) translateX(20px);
    opacity: 1;
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Responsive Styles for New Layouts */
@media (max-width: 992px) {
  .hero-slide-layout-1 {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 80px;
  }

  .hero-layout-1-divider {
    display: none;
  }

  .hero-layout-2-title {
    font-size: clamp(48px, 7vw, 75px);
  }

  .hero-slide-layout-3 {
    padding: 50px 20px 100px;
    max-width: 100%;
  }

  .hero-layout-3-header {
    gap: 20px;
    margin-bottom: 30px;
  }

  .hero-layout-3-category {
    font-size: 11px;
    padding: 7px 16px;
    align-self: center;
  }

  [dir="rtl"] .hero-layout-3-category {
    align-self: center;
  }

  .hero-layout-3-title {
    text-align: center;
    font-size: clamp(42px, 6vw, 65px);
  }

  [dir="rtl"] .hero-layout-3-title {
    text-align: center;
  }

  .hero-layout-3-body {
    padding: 35px 30px;
    gap: 30px;
  }

  .hero-layout-3-description {
    text-align: center;
    font-size: 17px;
  }

  [dir="rtl"] .hero-layout-3-description {
    text-align: center;
  }

  .hero-layout-3-content {
    align-items: center;
  }

  [dir="rtl"] .hero-layout-3-content {
    align-items: center;
  }

  .hero-layout-3-content .btn-mod {
    align-self: center;
  }

  [dir="rtl"] .hero-layout-3-content .btn-mod {
    align-self: center;
  }

  .hero-layout-3-accent {
    right: 50%;
    transform: translateX(50%);
  }

  [dir="rtl"] .hero-layout-3-accent {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .hero-layout-3-decoration {
    display: none;
  }

  .hero-layout-4-title {
    font-size: clamp(42px, 6vw, 58px);
  }

  .hero-layout-5-title {
    font-size: clamp(40px, 6vw, 55px);
  }

  .hero-layout-6-title {
    font-size: clamp(50px, 8vw, 90px);
  }
}

@media (max-width: 768px) {
  .hero-slide-layout-1,
  .hero-slide-layout-2,
  .hero-slide-layout-3,
  .hero-slide-layout-5 {
    padding: 40px 20px 80px;
  }

  .hero-slide-layout-4,
  .hero-slide-layout-6 {
    padding: 40px 20px 140px;
  }

  .hero-layout-1-title {
    font-size: clamp(36px, 8vw, 60px);
  }

  .hero-layout-2-title {
    font-size: clamp(40px, 9vw, 65px);
  }

  .hero-layout-2-description {
    font-size: 17px;
  }

  .hero-slide-layout-3 {
    padding: 40px 15px 80px;
  }

  .hero-layout-3-header {
    gap: 18px;
    margin-bottom: 25px;
  }

  .hero-layout-3-category {
    font-size: 10px;
    padding: 6px 14px;
    align-self: center;
  }

  [dir="rtl"] .hero-layout-3-category {
    align-self: center;
  }

  .hero-layout-3-title {
    font-size: clamp(36px, 7.5vw, 55px);
    text-align: center;
  }

  [dir="rtl"] .hero-layout-3-title {
    text-align: center;
  }

  .hero-layout-3-body {
    padding: 30px 20px;
    gap: 25px;
  }

  .hero-layout-3-description {
    font-size: 16px;
    text-align: center;
    line-height: 1.7;
  }

  [dir="rtl"] .hero-layout-3-description {
    text-align: center;
  }

  .hero-layout-3-content {
    align-items: center;
  }

  [dir="rtl"] .hero-layout-3-content {
    align-items: center;
  }

  .hero-layout-3-content .btn-mod {
    align-self: center;
  }

  [dir="rtl"] .hero-layout-3-content .btn-mod {
    align-self: center;
  }

  .hero-layout-3-accent {
    right: 50%;
    transform: translateX(50%);
    width: 50px;
  }

  [dir="rtl"] .hero-layout-3-accent {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .hero-layout-3-decoration {
    display: none;
  }

  .hero-layout-4-title {
    font-size: clamp(36px, 7vw, 50px);
  }

  .hero-layout-4-quote {
    padding: 0 20px;
  }

  .hero-layout-5-title {
    font-size: clamp(34px, 7vw, 48px);
  }

  .hero-layout-6-title {
    font-size: clamp(42px, 9vw, 75px);
  }

}

@media (max-width: 576px) {
  .hero-slide-layout-1,
  .hero-slide-layout-2,
  .hero-slide-layout-3,
  .hero-slide-layout-5 {
    padding: 30px 15px 60px;
  }

  .hero-slide-layout-4,
  .hero-slide-layout-6 {
    padding: 30px 15px 120px;
  }

  .hero-layout-1-title {
    font-size: clamp(32px, 10vw, 50px);
  }

  .hero-layout-1-description {
    font-size: 16px;
  }

  .hero-layout-2-title {
    font-size: clamp(36px, 10vw, 55px);
  }

  .hero-layout-2-description {
    font-size: 16px;
  }

  .hero-slide-layout-3 {
    padding: 30px 15px 60px;
    min-height: auto;
  }

  .hero-layout-3-header {
    gap: 15px;
    margin-bottom: 20px;
  }

  .hero-layout-3-category {
    font-size: 9px;
    padding: 6px 12px;
    align-self: center;
    letter-spacing: 0.15em;
  }

  [dir="rtl"] .hero-layout-3-category {
    align-self: center;
  }

  .hero-layout-3-title {
    font-size: clamp(32px, 8vw, 48px);
    text-align: center;
  }

  [dir="rtl"] .hero-layout-3-title {
    text-align: center;
  }

  .hero-layout-3-body {
    padding: 25px 18px;
    gap: 20px;
  }

  .hero-layout-3-description {
    font-size: 15px;
    text-align: center;
    line-height: 1.65;
  }

  [dir="rtl"] .hero-layout-3-description {
    text-align: center;
  }

  .hero-layout-3-content {
    align-items: center;
  }

  [dir="rtl"] .hero-layout-3-content {
    align-items: center;
  }

  .hero-layout-3-content .btn-mod {
    align-self: center;
    min-width: 140px;
  }

  [dir="rtl"] .hero-layout-3-content .btn-mod {
    align-self: center;
  }

  .hero-layout-3-accent {
    right: 50%;
    transform: translateX(50%);
    width: 40px;
    height: 3px;
  }

  [dir="rtl"] .hero-layout-3-accent {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .hero-layout-3-decoration {
    display: none;
  }

  .hero-layout-4-title {
    font-size: clamp(30px, 8vw, 42px);
  }

  .hero-layout-4-description {
    font-size: 16px;
  }

  .hero-layout-5-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .hero-layout-5-description {
    font-size: 16px;
  }

  .hero-layout-6-title {
    font-size: clamp(36px, 10vw, 60px);
  }

  .hero-layout-6-description {
    font-size: 16px;
  }

  .hero-slide-layout-1 .btn-mod,
  .hero-slide-layout-2 .btn-mod,
  .hero-slide-layout-3 .btn-mod,
  .hero-slide-layout-4 .btn-mod,
  .hero-slide-layout-5 .btn-mod,
  .hero-slide-layout-6 .btn-mod {
    min-width: 150px;
    padding: 12px 20px 11px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .hero-slide-layout-1 .btn-mod,
  .hero-slide-layout-2 .btn-mod,
  .hero-slide-layout-3 .btn-mod,
  .hero-slide-layout-4 .btn-mod,
  .hero-slide-layout-5 .btn-mod,
  .hero-slide-layout-6 .btn-mod {
    min-width: 140px;
    padding: 11px 18px 10px;
    font-size: 13px;
  }
}

/* RTL Support for New Layouts */
[dir="rtl"] .hero-slide-layout-1 {
  direction: rtl;
}

[dir="rtl"] .hero-layout-1-divider {
  left: auto;
  right: 60%;
  transform: translate(50%, -50%);
}

[dir="rtl"] .hero-slide-layout-3 {
  direction: rtl;
}

[dir="rtl"] .hero-layout-3-title {
  text-align: right;
  padding-top: 0;
  margin-top: 0;
}

[dir="rtl"] .hero-slide-layout-4 {
  direction: rtl;
}

[dir="rtl"] .hero-slide-layout-5 {
  direction: rtl;
}

[dir="rtl"] .hero-slide-layout-6 {
  direction: rtl;
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-layout-1-shape,
  .hero-layout-3-shape,
  .hero-layout-5-shape,
  .hero-layout-2-particle,
  .hero-layout-6-title {
    animation: none !important;
  }
}

/* Old content class - no longer used, kept for backward compatibility */

/* Ensure proper spacing between content elements */

/* Prevent any negative margins that could cause overlap */

/* Override Bootstrap margin classes to prevent conflicts */

/* Ensure responsive margins don't conflict */

/* Center button for centered content */

/* RTL button alignment */

/* Content Box Style 1: Minimalist - Glassmorphism (default, enhanced) */

/* Content Box Style 2: Split Screen - Floating card */

/* Content Box Style 3: Full Bleed - Elevated card */

/* Content Box Style 4: Text Overlay - Transparent with blur */

/* Content Box Style 5: Grid-Based - Multiple sections */

.hero-carousel-content-style-5::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary-2), transparent);
}

/* Content Box Style 6: Magazine-Style - Text blocks */

.hero-carousel-slide .container {
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-carousel-slide .container .row {
  width: 100%;
  margin: 0;
  min-height: 100%;
}

/* Ensure row uses flexbox properly */
.hero-carousel-slide .container .row {
  display: flex;
  flex-wrap: wrap;
}

/* Color Accent System */

/* Typography Style 1: Minimalist - Large bold */

/* Typography Style 2: Split Screen - Medium with extended */

/* Typography Style 3: Full Bleed - Extra large minimal */

/* Typography Style 4: Text Overlay - Serif-inspired elegant */

/* Typography Style 5: Grid-Based - Structured grid-aligned */

/* Only apply justify for centered content in typography-5 */

/* Typography Style 6: Magazine-Style - Mixed sizes bold */

/* Animation Variations */

/* Animation Style 1: Minimalist - Fade-in */

/* Animation Style 2: Split Screen - Slide-in from side */

/* Animation Style 3: Full Bleed - Scale-up */

/* Animation Style 4: Text Overlay - Typography reveal */

/* Animation Style 5: Grid-Based - Staggered appearance */

/* Animation Style 6: Magazine-Style - Typewriter effect */

/* Navigation Controls */
.hero-carousel-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  min-height: 0;
}

.hero-carousel-controls .owl-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-carousel-controls .owl-prev,
.hero-carousel-controls .owl-next {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  max-width: 52px;
  max-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  background: var(--color-primary-1);
  border: 1px solid var(--color-primary-1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0, 23, 79, 0.3), 0 2px 6px rgba(0, 23, 79, 0.2);
  transform: none !important;
  transform-origin: center center;
  top: auto !important;
  flex-shrink: 0;
}

.hero-carousel-controls .owl-prev:hover,
.hero-carousel-controls .owl-next:hover {
  color: var(--color-white);
  background: var(--color-primary-2);
  border-color: var(--color-primary-2);
  box-shadow: 0 6px 20px rgba(255, 110, 90, 0.4), 0 3px 10px rgba(255, 110, 90, 0.3);
  transform: scale(1.05) !important;
  transform-origin: center center;
}

.hero-carousel-controls .owl-prev:active,
.hero-carousel-controls .owl-next:active {
  transform: scale(0.98) !important;
  box-shadow: 0 3px 10px rgba(0, 23, 79, 0.3);
  background: var(--color-primary-1);
}

.hero-carousel-controls .owl-prev:focus-visible,
.hero-carousel-controls .owl-next:focus-visible {
  outline: 3px solid var(--color-primary-2);
  outline-offset: 3px;
  background: var(--color-primary-1);
  box-shadow: 0 0 0 2px var(--color-primary-2), 0 6px 20px rgba(0, 23, 79, 0.3);
}

/* Fallback for browsers that don't support :focus-visible */
.hero-carousel-controls .owl-prev:focus:not(:focus-visible),
.hero-carousel-controls .owl-next:focus:not(:focus-visible) {
  outline: none;
}

.hero-carousel-controls .owl-prev svg,
.hero-carousel-controls .owl-next svg {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-controls .owl-prev:hover svg,
.hero-carousel-controls .owl-next:hover svg {
  transform: scale(1.1);
}

/* Pagination Dots */
.hero-carousel-pagination {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  flex-shrink: 0;
}

.hero-carousel-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  margin: 0 4px;
  position: relative;
  touch-action: manipulation;
}

.hero-carousel-pagination .swiper-pagination-bullet-active {
  width: 32px;
  border-radius: 5px;
  background: var(--color-primary-2);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-carousel-pagination .swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.hero-carousel-pagination .swiper-pagination-bullet:focus-visible {
  outline: 3px solid var(--color-primary-2);
  outline-offset: 3px;
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
  border-radius: 50%;
}

/* Fallback for browsers that don't support :focus-visible */
.hero-carousel-pagination .swiper-pagination-bullet:focus:not(:focus-visible) {
  outline: none;
}

/* Scroll Down Arrow */
.hero-carousel-wrapper .scroll-down-wrap-2 {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Social Media Links */
.hero-carousel-wrapper .hs-social {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Responsive Styles */
@media (max-width: 992px) {

  /* Typography responsive adjustments */

  .hero-carousel-wrapper .hs-social {
    left: 20px;
    gap: 14px;
  }

  .hero-carousel-controls {
    bottom: 30px;
    gap: 28px;
  }

  .hero-carousel-controls .owl-prev,
  .hero-carousel-controls .owl-next {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
  }

  .hero-carousel-controls .owl-prev svg,
  .hero-carousel-controls .owl-next svg {
    width: 20px;
    height: 20px;
  }

  .hero-carousel-wrapper .scroll-down-wrap-2 {
    bottom: 110px;
    z-index: 9;
  }
}

@media (max-width: 768px) {

  /* Typography responsive adjustments */

  /* Content box responsive adjustments */
  
  .hero-carousel-slide .container .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-carousel-wrapper .hs-social {
    left: 12px;
    gap: 10px;
    top: auto;
    bottom: 140px;
    transform: none;
    z-index: 9;
  }

  .hero-carousel-controls {
    bottom: 20px;
    gap: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 400px;
    z-index: 10;
  }

  .hero-carousel-controls .owl-buttons {
    gap: 10px;
  }

  .hero-carousel-controls .owl-prev,
  .hero-carousel-controls .owl-next {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
  }

  .hero-carousel-controls .owl-prev svg,
  .hero-carousel-controls .owl-next svg {
    width: 18px;
    height: 18px;
  }

  .hero-carousel-pagination {
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .hero-carousel-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    margin: 0 3px;
  }

  .hero-carousel-pagination .swiper-pagination-bullet-active {
    width: 24px;
  }

  .hero-carousel-wrapper .scroll-down-wrap-2 {
    bottom: 90px;
    z-index: 8;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 576px) {

  /* Typography responsive adjustments */

  .hero-carousel-wrapper .hs-social {
    left: 10px;
    gap: 8px;
    bottom: 130px;
  }

  .hero-carousel-controls {
    bottom: 15px;
    gap: 20px;
    width: calc(100% - 60px);
  }

  .hero-carousel-controls .owl-buttons {
    gap: 8px;
  }

  .hero-carousel-controls .owl-prev,
  .hero-carousel-controls .owl-next {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
  }

  .hero-carousel-controls .owl-prev svg,
  .hero-carousel-controls .owl-next svg {
    width: 16px;
    height: 16px;
  }

  .hero-carousel-pagination {
    gap: 5px;
  }

  .hero-carousel-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    min-width: 7px;
    min-height: 7px;
    margin: 0 2px;
  }

  .hero-carousel-pagination .swiper-pagination-bullet-active {
    width: 20px;
  }

  .hero-carousel-wrapper .scroll-down-wrap-2 {
    bottom: 75px;
  }
}

/* RTL Support */
[dir="rtl"] .hero-carousel-wrapper .hs-social {
  left: auto;
  right: 40px;
}

/* RTL Bootstrap offset fixes */
[dir="rtl"] .hero-carousel-slide .offset-lg-2 {
  margin-right: 16.666667% !important;
  margin-left: 0 !important;
}

/* Ensure proper column behavior in RTL */
[dir="rtl"] .hero-carousel-slide .container {
  direction: rtl;
}

/* REMOVED: Redundant direction: rtl - HTML dir="rtl" attribute is sufficient */

[dir="rtl"] .hero-carousel-slide .container .row > [class*="col-"] {
  direction: rtl;
}

/* RTL Support for Design Variations */
/* Grid accent line works in both directions */

/* Ensure animations work correctly in RTL */

/* Accessibility: Respect prefers-reduced-motion */

/* Accessibility: Ensure sufficient contrast for all text variations */
/* Base contrast is maintained through text shadows and background */

@media (max-width: 992px) {
  [dir="rtl"] .hero-carousel-wrapper .hs-social {
    right: 20px;
    left: auto;
  }
}

@media (max-width: 768px) {
  [dir="rtl"] .hero-carousel-wrapper .hs-social {
    right: 12px;
    left: auto;
    bottom: 140px;
    top: auto;
    transform: none;
  }
}

@media (max-width: 576px) {
  [dir="rtl"] .hero-carousel-wrapper .hs-social {
    right: 10px;
    left: auto;
    bottom: 130px;
  }
}

/* Small mobile adjustments */
@media (max-width: 576px) {
  .portfolio-carousel-wrapper {
    margin-bottom: 50px;
  }

  .portfolio-carousel {
    padding-bottom: 100px;
  }

  .portfolio-carousel-content {
    padding: 25px 0 15px;
  }

  .portfolio-carousel-category {
    font-size: 10px;
    margin-bottom: 20px;
    padding-bottom: 8px;
  }

  .portfolio-carousel-title {
    font-size: 28px;
    margin-bottom: 25px;
    line-height: 1.2;
  }

  .portfolio-carousel-link-text {
    font-size: 13px;
  }
}

/* RTL Support for Portfolio Carousel */

[dir="rtl"] .portfolio-carousel-item .text-md-end {
  text-align: right;
}

/* RTL button order is handled in JSX, no need to reverse flex-direction */

/* ============================================
   PORTFOLIO 3 TITLE COLOR FIXES
   Ensure portfolio titles always use primary color
   Optimized selectors - reduced specificity and !important usage
   ============================================ */

/* Base color moved to style.css - keeping only overrides here */

/* Links and all descendants - ensure color doesn't break underline animation */
.portfolio-3-title a,
.portfolio-3-title a * {
  color: var(--color-primary-1);
  /* Keep animation from style.css - don't override background-image */
}

/* Hover state - let animation work */
.portfolio-3-title a:hover,
.portfolio-3-title a:hover * {
  color: inherit; /* Let underline animation work */
  /* Don't override background-size - let style.css handle it */
}

/* Light content variant - using higher specificity to override base styles */
.light-content .portfolio-3-title,
.light-content .portfolio-3-title a,
.light-content .portfolio-3-title a * {
  color: #fff;
}

.light-content .portfolio-3-title a:hover,
.light-content .portfolio-3-title a:hover * {
  color: var(--color-primary-2);
}

/* ============================================
   UTILITY CLASSES FOR INLINE STYLES
   Reusable classes to replace inline styles in components
   ============================================ */

/* Font weight utilities */
.font-weight-bold {
  font-weight: 700;
}

/* Text alignment utilities */
.text-align-center {
  text-align: center;
}

/* Margin utilities for hero title positioning */
.hero-title-line-2 {
  text-align: center;
  margin-left: 40%;
}

@media (max-width: 768px) {
  .hero-title-line-2 {
    margin-left: 0;
  }
}

/* Image sizing utilities */
.img-fit-content {
  height: fit-content;
  width: fit-content;
}

/* Scroll down arrow filter - primary color */
.scroll-down-arrow-primary {
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(325deg) brightness(102%) contrast(101%);
}

/* Social media link colors - all use secondary (coral red) color */
.hs-social-link-instagram {
  border-color: var(--color-secondary-1) !important;
  color: var(--color-secondary-1);
}

.hs-social-link-instagram i,
.hs-social-link-instagram svg {
  color: var(--color-secondary-1);
}

.hs-social-link-instagram svg path {
  fill: currentColor;
}

.light-content .hs-social-link-instagram {
  border-color: var(--color-secondary-1) !important;
  color: var(--color-secondary-1);
}

.hs-social-link-snapchat {
  border-color: var(--color-secondary-1) !important;
  color: var(--color-secondary-1);
}

.hs-social-link-snapchat .snapchat-icon,
.hs-social-link-snapchat svg {
  color: var(--color-secondary-1);
  width: 1em;
  height: 1em;
  display: block;
}

.hs-social-link-snapchat svg path {
  fill: currentColor;
}

.light-content .hs-social-link-snapchat {
  border-color: var(--color-secondary-1) !important;
  color: var(--color-secondary-1);
}

.hs-social-link-tiktok {
  border-color: var(--color-secondary-1) !important;
  color: var(--color-secondary-1);
}

.hs-social-link-tiktok i,
.hs-social-link-tiktok svg {
  color: var(--color-secondary-1);
}

.hs-social-link-tiktok svg path {
  fill: currentColor;
}

.light-content .hs-social-link-tiktok {
  border-color: var(--color-secondary-1) !important;
  color: var(--color-secondary-1);
}

.hs-social-link-x {
  border-color: var(--color-secondary-1) !important;
  color: var(--color-secondary-1);
}

.hs-social-link-x i,
.hs-social-link-x svg {
  color: var(--color-secondary-1);
}

.hs-social-link-x svg path {
  fill: currentColor;
}

.light-content .hs-social-link-x {
  border-color: var(--color-secondary-1) !important;
  color: var(--color-secondary-1);
}

.hs-social-link-whatsapp {
  border-color: var(--color-secondary-1) !important;
  color: var(--color-secondary-1);
}

.hs-social-link-whatsapp i,
.hs-social-link-whatsapp svg {
  color: var(--color-secondary-1);
}

.hs-social-link-whatsapp svg path {
  fill: currentColor;
}

.light-content .hs-social-link-whatsapp {
  border-color: var(--color-secondary-1) !important;
  color: var(--color-secondary-1);
}

/* Page hero background */
.page-hero-background {
  background-image: url(/assets/images/demo-modern/page-hero-background.png);
}

/* Dynamic page hero background using Next.js optimized images via CSS */
.page-hero-dynamic-bg {
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ============================================
   ABOUT PAGE - TWO COLUMN SECTION
   ============================================ */

/* About Page Container - Base Styles */
.about-page-container {
  font-family: var(--font-global, "Almarai", sans-serif);
  padding-inline: 15px;
  box-sizing: border-box;
}

/* Company Logo Wrapper */
.company-logo-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 40px;
  width: 100%;
}

[dir="rtl"] .company-logo-wrapper {
  justify-content: flex-start;
}

.company-logo {
  max-width: 100%;
  height: auto;
  display: block;
  width: auto;
}

/* About Story Column */
.about-story-column {
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* About Page - Text Color Consistency & Arabic Typography */
.about-page-container .section-title-inline-1 {
  color: var(--color-primary-1);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 30px;
  display: block;
  line-height: 1.5;
  font-family: var(--font-global, "Almarai", sans-serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.about-page-container .section-descr-extralarge {
  font-family: var(--font-global, "Almarai", sans-serif);
  width: 100%;
}

.about-page-container .section-descr-extralarge p {
  color: var(--color-gray-1);
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.9;
  font-weight: 400;
  letter-spacing: 0;
  font-family: var(--font-global, "Almarai", sans-serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin-bottom: 0;
  text-align: justify;
  word-spacing: 0.1em;
}

[dir="rtl"] .about-page-container .section-descr-extralarge p {
  text-align: justify;
}

.ceo-message-column {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* CEO Message Card */
.ceo-message-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.ceo-message-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.ceo-message-card-header {
  padding: clamp(20px, 4vw, 35px) clamp(20px, 4vw, 35px) clamp(15px, 3vw, 25px) clamp(20px, 4vw, 35px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, rgba(0, 23, 79, 0.03) 0%, rgba(0, 23, 79, 0.01) 100%);
  position: relative;
  text-align: center;
  box-sizing: border-box;
}

.ceo-message-card-header .section-title-inline-1 {
  color: var(--color-primary-1);
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0;
  display: block;
  line-height: 1.5;
  font-family: var(--font-global, "Almarai", sans-serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ceo-message-card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 23, 79, 0.2), transparent);
  border-radius: 2px;
}

[dir="rtl"] .ceo-message-card-header {
  text-align: center;
}

.ceo-message-card-body {
  padding: clamp(20px, 4vw, 35px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.ceo-message-content {
  line-height: 1.8;
  margin-bottom: 0;
  font-family: var(--font-global, "Almarai", sans-serif);
}

.ceo-message-text {
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.9;
  color: var(--color-dark-1);
  margin-bottom: 0;
  text-align: justify;
  font-weight: 400;
  letter-spacing: 0;
  font-family: var(--font-global, "Almarai", sans-serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-spacing: 0.1em;
}

[dir="rtl"] .ceo-message-text {
  text-align: justify;
}

/* CEO Signature */
.ceo-signature {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: clamp(20px, 4vw, 35px);
  margin-top: clamp(20px, 4vw, 35px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

[dir="rtl"] .ceo-signature {
  text-align: center;
}

.ceo-signature p {
  margin-bottom: 5px;
}

.ceo-signature .font-weight-bold {
  font-weight: 600;
  font-size: 1.1em;
}

/* CEO Image */
.ceo-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  margin-top: 0;
  position: relative;
}

.ceo-image {
  width: clamp(120px, 20vw, 180px);
  height: clamp(120px, 20vw, 180px);
  border-radius: 50%;
  object-fit: cover;
  border: clamp(3px, 0.5vw, 5px) solid rgba(0, 23, 79, 0.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.ceo-image:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  border-color: rgba(0, 23, 79, 0.15);
}

/* CEO Name Wrapper */
.ceo-name-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ceo-name {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  color: var(--color-primary-1);
  letter-spacing: 0;
  margin: 0;
  line-height: 1.5;
  font-family: var(--font-global, "Almarai", sans-serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ceo-title {
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 400;
  color: var(--color-gray-1);
  letter-spacing: 0;
  margin: 0;
  line-height: 1.7;
  text-transform: none;
  font-family: var(--font-global, "Almarai", sans-serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive adjustments for two-column layout */
@media (max-width: 991px) {
  .about-story-column,
  .ceo-message-column {
    margin-bottom: 0;
  }

  .about-page-container {
    padding-inline: 15px;
  }

  /* Stack columns on tablet and mobile */
  .about-page-container .row.mb-100 {
    margin-bottom: 60px !important;
  }

  .about-page-container .col-lg-7,
  .about-page-container .col-lg-5 {
    margin-bottom: 40px;
  }

  .company-logo-wrapper {
    margin-bottom: 30px;
    justify-content: center;
  }

  .company-logo {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* Ensure proper spacing between columns on desktop */
@media (min-width: 992px) {
  .about-story-column {
    padding-inline-end: 30px;
  }

  .ceo-message-column {
    padding-inline-start: 30px;
  }

  .about-page-container {
    padding-inline: 30px;
  }
}

/* Large desktop adjustments */
@media (min-width: 1200px) {
  .about-page-container {
    padding-inline: 40px;
  }

  .about-story-column {
    padding-inline-end: 40px;
  }

  .ceo-message-column {
    padding-inline-start: 40px;
  }
}

/* Responsive Typography Adjustments */
@media (max-width: 1024px) {
  .about-page-container {
    padding-inline: 20px;
  }

  .about-page-container .section-title-inline-1 {
    font-size: clamp(24px, 3.5vw, 28px);
    line-height: 1.5;
    margin-bottom: 25px;
  }

  .ceo-message-card-header .section-title-inline-1 {
    font-size: clamp(22px, 3vw, 24px);
    line-height: 1.5;
  }

  .about-page-container .section-descr-extralarge p {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.85;
  }

  .ceo-message-text {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.85;
  }
}

@media (max-width: 768px) {
  .about-page-container {
    padding-inline: 15px;
  }

  .about-page-container .section-title-inline-1 {
    font-size: clamp(22px, 4vw, 26px);
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .about-page-container .section-descr-extralarge p {
    font-size: clamp(15px, 2.2vw, 17px);
    line-height: 1.85;
  }

  .ceo-message-card-header {
    padding: 25px 25px 20px 25px;
  }

  .ceo-message-card-header .section-title-inline-1 {
    font-size: clamp(20px, 3vw, 22px);
    line-height: 1.5;
  }

  .ceo-message-card-body {
    padding: 25px;
  }

  .ceo-message-text {
    font-size: clamp(15px, 2.2vw, 18px);
    line-height: 1.85;
  }

  .ceo-name {
    font-size: clamp(20px, 3vw, 22px);
    line-height: 1.5;
  }

  .ceo-title {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.7;
  }

  .ceo-image {
    width: 150px;
    height: 150px;
  }
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .about-page-container {
    padding-inline: 15px;
  }

  .company-logo-wrapper {
    margin-bottom: 25px;
    justify-content: center;
  }

  .company-logo {
    max-width: 85%;
  }

  .about-page-container .section-title-inline-1 {
    font-size: clamp(20px, 5vw, 24px);
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .about-page-container .section-descr-extralarge p {
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.8;
  }

  .ceo-message-card {
    margin-bottom: 0;
  }

  .ceo-message-card-header {
    padding: 20px 20px 15px 20px;
  }

  .ceo-message-card-header .section-title-inline-1 {
    font-size: clamp(18px, 4vw, 20px);
    line-height: 1.5;
  }

  .ceo-message-card-body {
    padding: 20px;
  }

  .ceo-message-text {
    font-size: clamp(14px, 2.5vw, 17px);
    line-height: 1.8;
  }

  .ceo-signature {
    margin-top: 20px;
    padding-top: 20px;
  }

  .ceo-image {
    width: 130px;
    height: 130px;
    border-width: 4px;
  }

  .ceo-name {
    font-size: clamp(18px, 4vw, 20px);
    line-height: 1.5;
  }

  .ceo-title {
    font-size: clamp(13px, 2.5vw, 15px);
    line-height: 1.7;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 400px) {
  .about-page-container {
    padding-inline: 12px;
  }

  .company-logo {
    max-width: 80%;
  }

  .about-page-container .section-title-inline-1 {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .about-page-container .section-descr-extralarge p {
    font-size: 14px;
    line-height: 1.8;
  }

  .ceo-message-card-header {
    padding: 18px 18px 12px 18px;
  }

  .ceo-message-card-header .section-title-inline-1 {
    font-size: 17px;
    line-height: 1.5;
  }

  .ceo-message-card-body {
    padding: 18px;
  }

  .ceo-message-text {
    font-size: 14px;
    line-height: 1.8;
  }

  .ceo-signature {
    margin-top: 18px;
    padding-top: 18px;
  }

  .ceo-image {
    width: 120px;
    height: 120px;
    border-width: 3px;
  }

  .ceo-name {
    font-size: 18px;
    line-height: 1.5;
  }

  .ceo-title {
    font-size: 13px;
    line-height: 1.7;
  }
}

/* ============================================
   RESPONSIVE SECTION TITLES FOR ARABIC ALMARAI FONT
   Scale down titles appropriately on smaller screens
   ============================================ */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
  .section-caption {
    font-size: 20px;
  }

  .section-title-inline-1 {
    font-size: 22px;
  }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
  .section-caption {
    font-size: 18px;
  }

  .section-title-inline-1 {
    font-size: 20px;
  }

  .hs-title-5 {
    font-size: 56px !important;
  }
}

/* Mobile portrait */
@media (max-width: 576px) {
  .section-caption {
    font-size: 16px;
  }

  .section-title-inline-1 {
    font-size: 18px;
  }

  .hs-title-5 {
    font-size: 42px !important;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .section-caption {
    font-size: 15px;
  }

  .section-title-inline-1 {
    font-size: 16px;
  }

  .hs-title-5 {
    font-size: 36px !important;
  }
}

/* ============================================
   ABOUT PAGE - ADDITIONAL RESPONSIVE FIXES
   ============================================ */

/* Ensure proper spacing and layout on all screen sizes */
.about-page-container .row {
  margin-inline: 0;
}

.about-page-container .row > [class*="col-"] {
  padding-inline: 15px;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .about-page-container .row > [class*="col-"] {
    padding-inline: 15px;
    margin-bottom: 30px;
  }

  .about-page-container .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Button responsive adjustments */
.about-page-container .btn {
  font-family: var(--font-global, "Almarai", sans-serif);
  font-weight: 500;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 576px) {
  .about-page-container .mt-70 {
    margin-top: 40px !important;
  }
}

@media (max-width: 400px) {
  .about-page-container .mt-70 {
    margin-top: 30px !important;
  }
}

/* ============================================
   SERVICES PAGE - IMAGE STYLING
   ============================================ */

/* Services Page Image Wrapper */
.services-page-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Modern Vector Container */
.services-vector-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, 
    rgba(0, 23, 79, 0.03) 0%, 
    rgba(0, 23, 79, 0.08) 50%,
    rgba(0, 23, 79, 0.03) 100%);
  border-radius: 24px;
  border: 1px solid rgba(0, 23, 79, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08),
              0 4px 16px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.services-vector-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, 
    rgba(0, 23, 79, 0.05) 0%, 
    transparent 70%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.services-vector-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.services-page-image-wrapper:hover .services-vector-container {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12),
              0 8px 24px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 23, 79, 0.12);
}

.services-page-image-wrapper:hover .services-vector-container::before {
  opacity: 1;
}

.services-page-image-wrapper:hover .services-vector-container::after {
  opacity: 1;
}

.services-vector-logo {
  width: 100%;
  height: auto;
  max-width: 100%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-page-image-wrapper:hover .services-vector-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
}

.services-page-image-wrapper:hover .services-page-image {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18),
              0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .services-page-image-wrapper {
    padding: 15px;
    margin-top: 20px;
  }

  .services-vector-container {
    padding: 50px 30px;
    border-radius: 20px;
  }
}

@media (max-width: 768px) {
  .services-page-image-wrapper {
    padding: 10px;
    margin-top: 0;
  }

  .services-vector-container {
    padding: 40px 25px;
    border-radius: 16px;
  }
}

@media (max-width: 576px) {
  .services-vector-container {
    padding: 35px 20px;
    border-radius: 14px;
  }
}

@media (min-width: 992px) {
  .about-page-container .col-lg-4 {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ============================================
   PRINT STYLES
   Optimized styles for printing
   ============================================ */
@media print {
  /* Hide non-essential elements */
  
  .portfolio-filter-wrapper,
  .mobile-nav,
  .desktop-nav,
  .hs-social-link,
  .scroll-down-arrow,
  .owl-buttons,
  .owl-pagination,
  .key-objectives-lines {
    display: none !important;
  }

  /* Optimize colors for printing */
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Ensure proper page breaks */
  .work-area-item,
  .key-objective-item,
  .portfolio-carousel-item,
  .ceo-message-card {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Optimize images */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Remove animations and transitions */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  /* Optimize typography */
  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid;
    break-after: avoid;
  }

  /* Remove backdrop filters and effects */
  .key-objective-center-inner,
  .key-objectives-description-inner {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ============================================
   CONTACT PAGE RESPONSIVE & TYPOGRAPHY STYLES
   Optimized for Arabic Almarai font
   ============================================ */

/* Contact Page Container */
.contact-page-container {
  position: relative;
  padding-inline: 15px;
}

/* Contact Page Row */
.contact-page-row {
  margin-inline: 0;
}

.contact-page-row > [class*="col-"] {
  padding-inline: 15px;
  box-sizing: border-box;
}

/* Contact Info Column - Typography Optimization */
.contact-info-column {
  margin-bottom: 60px;
}

.contact-info-content {
  font-family: var(--font-global, "Almarai", sans-serif) !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Contact Page Section Captions - Consistent Styling */
.contact-info-content .section-caption,
.contact-form-caption,
.contact-info-content .section-caption.black,
.contact-form-caption.black {
  font-family: var(--font-global, "Almarai", sans-serif) !important;
  font-weight: 700;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.5;
  letter-spacing: 0;
  margin-bottom: 20px;
  color: var(--color-primary-1) !important;
  text-transform: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.contact-form-wrapper {
  width: 100%;
}

.contact-form-caption {
  margin-bottom: 25px;
}

.contact-info-content p {
  font-family: var(--font-global, "Almarai", sans-serif) !important;
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.85;
  letter-spacing: 0;
  margin-bottom: 20px;
  color: var(--color-gray-1);
}

.contact-info-content p:last-of-type {
  margin-bottom: 25px;
}

.contact-info-content .text-link {
  font-family: var(--font-global, "Almarai", sans-serif) !important;
  font-weight: 400;
  letter-spacing: 0;
}

.contact-social-links {
  margin-top: 25px;
}

/* Contact Form Column */
.contact-form-column {
  margin-bottom: 40px;
}

/* Contact Form - Typography & Responsive */
.contact-form {
  font-family: var(--font-global, "Almarai", sans-serif) !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.contact-form-row {
  margin-inline: -15px;
}

.contact-form-row > [class*="col-"] {
  padding-inline: 15px;
}

.contact-form-field {
  margin-bottom: 20px;
}

.contact-form-field input,
.contact-form-field textarea {
  font-weight: 400;
  line-height: 1.4;

  width: 100%;
  padding: 10px 10px;
  border-radius: 50px;
  transition: all 0.3s ease;
  color: var(--color-dark-1) ;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder,
.contact-message-field textarea::placeholder {
  font-family: var(--font-global, "Almarai", sans-serif) !important;
  font-weight: 400;
  line-height: 1.8;
  overflow: visible;
  letter-spacing: 0;
  opacity: 0.6;
  color: var(--color-gray-2) !important;
}

.contact-message-field {
  margin-bottom: 40px;
}

.contact-message-field textarea {
  min-height: 130px;
  resize: vertical;
  font-family: var(--font-global, "Almarai", sans-serif) !important;
  line-height: 1.4;
  color: var(--color-dark-1) !important;
}

/* Ensure consistent text colors in all states */
.contact-form-field input:focus,
.contact-form-field input:hover,
.contact-form-field textarea:focus,
.contact-form-field textarea:hover,
.contact-message-field textarea:focus,
.contact-message-field textarea:hover {
  color: var(--color-dark-1) !important;
}

/* Ensure consistent placeholder colors in all states */
.contact-form-field input:hover::placeholder,
.contact-form-field input:focus::placeholder,
.contact-form-field textarea:hover::placeholder,
.contact-form-field textarea:focus::placeholder,
.contact-message-field textarea:hover::placeholder,
.contact-message-field textarea:focus::placeholder {
  color: var(--color-gray-2) !important;
  opacity: 0.6;
}

/* Contact Form Actions */
.contact-form-actions {
  margin-inline: -15px;
  align-items: center;
}

.contact-form-actions > [class*="col-"] {
  padding-inline: 15px;
}

.contact-submit-button .btn {
  font-family: var(--font-global, "Almarai", sans-serif) !important;
  font-weight: 500;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
}

.contact-form-tip {
  margin-top: 20px;
}

.contact-form-tip .form-tip {
  font-family: var(--font-global, "Almarai", sans-serif) !important;
  font-weight: 400;
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Contact Page CTA Text */
.contact-page-cta {
  font-family: var(--font-global, "Almarai", sans-serif) !important;
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   RESPONSIVE BREAKPOINTS - CONTACT PAGE
   ============================================ */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .contact-page-container {
    padding-inline: 30px;
  }

  .contact-info-column {
    padding-inline-end: 30px;
  }

  .contact-form-column {
    padding-inline-start: 30px;
  }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .contact-page-container {
    padding-inline: 25px;
  }

  .contact-info-column {
    padding-inline-end: 25px;
  }

  .contact-form-column {
    padding-inline-start: 25px;
  }
}

/* Tablet Landscape (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .contact-page-container {
    padding-inline: 20px;
  }

  .contact-info-column {
    margin-bottom: 50px;
    padding-inline: 15px;
  }

  .contact-form-column {
    padding-inline: 15px;
  }

  .contact-info-content .section-caption,
  .contact-form-caption {
    font-size: 20px;
    margin-bottom: 18px;
  }

  .contact-info-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 18px;
  }

  .contact-form-field input,
  .contact-form-field textarea {
    font-size: 17px;
    padding: 14px 14px;
  }

  .contact-message-field textarea {
    min-height: 120px;
  }

  .contact-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-submit-button {
    margin-bottom: 20px;
  }

  .contact-form-tip {
    margin-top: 0;
  }

  .contact-form-tip .form-tip {
    font-size: 14px;
  }
}

/* Mobile Landscape & Small Tablets (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .contact-page-container {
    padding-inline: 15px;
  }

  .contact-info-column {
    margin-bottom: 40px;
    padding-inline: 15px;
  }

  .contact-form-column {
    padding-inline: 15px;
  }

  .contact-info-content .section-caption,
  .contact-form-caption {
    font-size: 19px;
    margin-bottom: 16px;
  }

  .contact-info-content p {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 16px;
  }

  .contact-form-field {
    margin-bottom: 18px;
  }

  .contact-form-field input,
  .contact-form-field textarea {
    font-size: 16px;
    padding: 13px 17px;
  }

  .contact-message-field {
    margin-bottom: 35px;
  }

  .contact-message-field textarea {
    min-height: 110px;
  }

  .contact-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-submit-button {
    margin-bottom: 18px;
  }

  .contact-form-tip {
    margin-top: 0;
  }

  .contact-form-tip .form-tip {
    font-size: 13px;
    line-height: 1.75;
  }

  .contact-page-cta {
    font-size: 17px;
  }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
  .contact-page-container {
    padding-inline: 12px;
  }

  .contact-page-row {
    margin-inline: -12px;
  }

  .contact-page-row > [class*="col-"] {
    padding-inline: 12px;
  }

  .contact-info-column {
    margin-bottom: 35px;
  }

  .contact-form-column {
    margin-bottom: 30px;
  }

  .contact-info-content .section-caption,
  .contact-form-caption {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.5;
  }

  .contact-info-content p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 15px;
  }

  .contact-info-content p:last-of-type {
    margin-bottom: 20px;
  }

  .contact-social-links {
    margin-top: 20px;
  }

  .contact-form-row {
    margin-inline: -12px;
  }

  .contact-form-row > [class*="col-"] {
    padding-inline: 12px;
  }

  .contact-form-field {
    margin-bottom: 16px;
  }

  .contact-form-field input,
  .contact-form-field textarea {
    font-size: 16px;
    line-height: 1.65;
    padding: 12px 16px;
    border-radius: 50px;
  }

  .contact-form-field input::placeholder,
  .contact-form-field textarea::placeholder,
  .contact-message-field textarea::placeholder {
    font-size: 15px;
    color: var(--color-gray-2) !important;
    opacity: 0.6;
  }

  .contact-message-field {
    margin-bottom: 30px;
  }

  .contact-message-field textarea {
    min-height: 100px;
    line-height: 1.75;
  }

  .contact-form-actions {
    margin-inline: -12px;
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form-actions > [class*="col-"] {
    padding-inline: 12px;
  }

  .contact-submit-button {
    margin-bottom: 16px;
  }

  .contact-submit-button .btn {
    font-size: 15px;
    padding: 12px 24px;
  }

  .contact-form-tip {
    margin-top: 0;
  }

  .contact-form-tip .form-tip {
    font-size: 12px;
    line-height: 1.8;
    text-align: right;
  }

  .contact-page-cta {
    font-size: 16px;
    line-height: 1.85;
  }
}

/* Extra Small Mobile (up to 400px) */
@media (max-width: 400px) {
  .contact-page-container {
    padding-inline: 10px;
  }

  .contact-page-row {
    margin-inline: -10px;
  }

  .contact-page-row > [class*="col-"] {
    padding-inline: 10px;
  }

  .contact-info-column {
    margin-bottom: 30px;
  }

  .contact-info-content .section-caption,
  .contact-form-caption {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .contact-info-content p {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 12px;
  }

  .contact-form-row {
    margin-inline: -10px;
  }

  .contact-form-row > [class*="col-"] {
    padding-inline: 10px;
  }

  .contact-form-field input,
  .contact-form-field textarea {
    font-size: 15px;
    padding: 11px 15px;
  }

  .contact-form-field input::placeholder,
  .contact-form-field textarea::placeholder,
  .contact-message-field textarea::placeholder {
    font-size: 14px;
    color: var(--color-gray-2) !important;
    opacity: 0.6;
  }

  .contact-message-field {
    margin-bottom: 25px;
  }

  .contact-message-field textarea {
    min-height: 90px;
  }

  .contact-form-actions {
    margin-inline: -10px;
  }

  .contact-form-actions > [class*="col-"] {
    padding-inline: 10px;
  }

  .contact-submit-button .btn {
    font-size: 14px;
    padding: 11px 20px;
  }

  .contact-form-tip .form-tip {
    font-size: 11px;
    line-height: 1.85;
  }

  .contact-page-cta {
    font-size: 15px;
  }
}

/* RTL Specific Adjustments for Contact Page */
[dir="rtl"] .contact-page-container {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .contact-form {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .contact-form-field input,
[dir="rtl"] .contact-form-field textarea {
  text-align: right;
  padding-right: 20px;
  padding-left: 20px;
}

[dir="rtl"] .contact-form-tip {
  text-align: right;
}

[dir="rtl"] .contact-form-tip .form-tip {
  text-align: right;
}

/* Ensure proper text alignment for contact info */
[dir="rtl"] .contact-info-content {
  text-align: right;
}

[dir="rtl"] .contact-info-content p {
  text-align: right;
}

/* Ensure consistent caption colors in all contexts */
[dir="rtl"] .contact-info-content .section-caption,
[dir="rtl"] .contact-form-caption,
[dir="rtl"] .contact-info-content .section-caption.black,
[dir="rtl"] .contact-form-caption.black {
  color: var(--color-primary-1) !important;
}

.theme-modern .contact-info-content .section-caption,
.theme-modern .contact-form-caption,
.theme-modern .contact-info-content .section-caption.black,
.theme-modern .contact-form-caption.black {
  color: var(--color-primary-1) !important;
}

/* Print Styles for Contact Page */
@media print {
  .contact-page-container {
    padding-inline: 0;
  }

  .contact-info-column,
  .contact-form-column {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .contact-form {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

/* ============================================
   SUCCESS PARTNERS SECTION SPACING FIX
   Reduce padding-top to match spacing with Services section
   Services section ends with mb-0, so spacing is just Services padding-bottom (120px)
   To match this, SuccessPartners should have padding-top: 0
   ============================================ */
#partners.page-section {
  padding-top: 0 !important;
}

#partners.page-section .container > div:first-child {
  margin-top: 0;
}

/* Responsive styles for services section buttons */
@media (max-width: 767px) {
  #services .section-descr {
    font-size: 14px !important;
    line-height: 1.6 !important;
    max-width: 100%;
  }
  
  #services .btn-mod.btn-medium {
    font-size: 13px;
    padding: 10px 18px;
    white-space: nowrap;
  }
}

@media (max-width: 575px) {
  #services .section-descr {
    font-size: 13px !important;
  }
  
  #services .btn-mod.btn-medium {
    font-size: 12px;
    padding: 8px 16px;
  }
}

/* ============================================
   SERVICE COMPONENT - CREATIVE MARKETING AGENCY DESIGN
   Mobile-first responsive design with brand identity
   ============================================ */

/* Container for services grid */
.services-creative-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
}

/* Service Creative Card - Mobile First (Base Styles) */
.service-creative-card {
  position: relative;
  margin-bottom: 0;
  padding: 3rem 1.5rem 2rem;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  transform-origin: center center;
  will-change: transform;
}

/* Gradient Background Layer */
.service-card-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 23, 79, 0.05) 0%, 
    rgba(0, 15, 58, 0.03) 100%);
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.service-creative-card:hover .service-card-gradient-bg {
  background: linear-gradient(135deg, 
    rgba(0, 23, 79, 0.12) 0%, 
    rgba(0, 15, 58, 0.08) 100%);
}

/* Service Number Badge */
.service-number-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary-1);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 23, 79, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  direction: ltr;
  text-align: center;
  line-height: 50px;
}

.service-number-text {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 50px;
  margin: 0;
  padding: 0;
  display: inline-block;
  text-align: center;
  width: 100%;
  height: 100%;
  vertical-align: middle;
}

.service-creative-card:hover .service-number-badge {
  transform: scale(1.1);
  background: var(--color-primary-2);
  box-shadow: 0 6px 20px rgba(255, 110, 90, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
  line-height: 55px;
}

.service-creative-card:hover .service-number-text {
  line-height: 55px;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(255, 110, 90, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(255, 110, 90, 0.6);
  }
}

/* Service Card Wrapper */
.service-card-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
}

/* Service Image Container */
.service-image-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  order: 1;
}

.service-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 23, 79, 0.1) 0%, 
    rgba(0, 15, 58, 0.05) 100%);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.service-creative-card:hover .service-image-overlay {
  opacity: 1;
}

.service-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-creative-card:hover .service-image-wrapper {
  transform: scale(1.1) rotate(2deg);
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 23, 79, 0.1));
  transition: filter 0.3s ease;
}

.service-creative-card:hover .service-image-wrapper img {
  filter: drop-shadow(0 8px 20px rgba(0, 23, 79, 0.2));
}

/* Service Content Wrapper */
.service-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  flex: 1;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  order: 2;
}

/* Service Title */
.service-title {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-dark-1);
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-title-text {
  position: relative;
  z-index: 1;
}

.service-title:hover,
.service-title:focus {
  outline: none;
  color: var(--color-primary-2);
}

.service-title:active {
  transform: scale(0.98);
}

/* Service Description */
.service-description {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease, margin-top 0.4s ease;
  margin-top: 0;
}

.service-description-text {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  line-height: 1.7;
  color: var(--color-gray-1);
  margin: 0;
  padding: 10px;
  text-align: center;
}

.service-description.active {
  opacity: 1;
  max-height: 500px;
  margin-top: 0.5rem;
}

/* Animated Border */
.service-card-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.service-card-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, 
    var(--color-primary-1) 0%, 
    rgba(0, 15, 58, 0.8) 50%,
    var(--color-primary-1) 100%);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderGradient 3s linear infinite;
}

.service-creative-card:hover .service-card-border {
  opacity: 1;
}

@keyframes borderGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Featured Services */
.service-creative-card.featured {
  background: linear-gradient(135deg, 
    rgba(0, 23, 79, 0.08) 0%, 
    rgba(0, 15, 58, 0.05) 100%);
}

.service-creative-card.featured .service-card-gradient-bg {
  background: linear-gradient(135deg, 
    rgba(0, 23, 79, 0.1) 0%, 
    rgba(0, 15, 58, 0.06) 100%);
}

/* Light Content Theme Adjustments */
.light-content .service-creative-card {
  background: rgba(255, 255, 255, 0.05);
}

.light-content .service-card-gradient-bg {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
}

.light-content .service-creative-card:hover .service-card-gradient-bg {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.1) 100%);
}

.light-content .service-title {
  color: #fff;
}

.light-content .service-description-text {
  color: var(--color-dark-mode-gray-1);
}

.light-content .service-creative-card.featured {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.07) 100%);
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
  .services-creative-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  .service-creative-card {
    padding: 3.5rem 2rem 2.5rem;
    min-height: 320px;
  }

  .service-number-badge {
    width: 60px;
    height: 60px;
    top: 1.5rem;
    right: 1.5rem;
    line-height: 60px;
  }

  .service-number-text {
    font-size: 1.125rem;
    line-height: 60px;
  }

  .service-creative-card:hover .service-number-badge {
    line-height: 66px;
  }

  .service-creative-card:hover .service-number-text {
    line-height: 66px;
  }

  .service-image-container {
    width: 140px;
    height: 140px;
  }

  .service-title {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
  }

  .service-description-text {
    font-size: clamp(1rem, 2vw, 1.125rem);
  }

  .service-description.active {
    margin-top: 0.75rem;
  }

  /* Enhanced hover effects on tablet */
  .service-creative-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 23, 79, 0.15);
    z-index: 5;
    position: relative;
  }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
  .services-creative-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .service-creative-card {
    padding: 4rem 2.5rem 3rem;
    min-height: 380px;
  }

  .service-number-badge {
    width: 70px;
    height: 70px;
    top: 2rem;
    right: 2rem;
    line-height: 70px;
  }

  .service-number-text {
    font-size: 1.25rem;
    line-height: 70px;
  }

  .service-creative-card:hover .service-number-badge {
    line-height: 77px;
  }

  .service-creative-card:hover .service-number-text {
    line-height: 77px;
  }

  .service-image-container {
    width: 180px;
    height: 180px;
  }

  .service-title {
    font-size: clamp(1.75rem, 2.5vw, 2rem);
  }

  .service-description-text {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    max-width: 100%;
  }

  .service-description.active {
    margin-top: 1rem;
  }

  /* Alternating Layouts */
  .service-creative-card.variant-left .service-card-wrapper {
    flex-direction: column;
  }

  .service-creative-card.variant-right .service-card-wrapper {
    flex-direction: column;
  }

  /* Desktop hover effects - show description on hover */
  .service-creative-card:hover .service-description,
  .service-creative-card:focus-within .service-description {
    opacity: 1;
    max-height: 500px;
    margin-top: 1rem;
  }

  /* Active state (from click) takes precedence */
  .service-creative-card .service-description.active {
    opacity: 1 !important;
    max-height: 500px !important;
    margin-top: 1rem !important;
  }

  /* Advanced hover transformations */
  .service-creative-card {
    transform-origin: center center;
    will-change: transform;
    margin: 0;
  }

  .service-creative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .service-creative-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 23, 79, 0.2);
    z-index: 5;
    position: relative;
    margin: 0;
  }

  /* Featured services get extra emphasis */
  .service-creative-card.featured:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(0, 23, 79, 0.25);
    z-index: 6;
  }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .services-creative-grid {
    gap: 4rem;
  }

  .service-creative-card {
    padding: 4.5rem 3rem 3.5rem;
    min-height: 420px;
  }

  .service-number-badge {
    width: 80px;
    height: 80px;
    top: 2.5rem;
    right: 2.5rem;
    line-height: 80px;
  }

  .service-number-text {
    font-size: 1.5rem;
    line-height: 80px;
  }

  .service-creative-card:hover .service-number-badge {
    line-height: 88px;
  }

  .service-creative-card:hover .service-number-text {
    line-height: 88px;
  }
}

/* Override old services-4 styles to prevent conflicts */

/* ============================================
   UTILITY CLASSES FOR INLINE STYLES
   Replaces common static inline styles for better performance
   ============================================ */

/* Image object-fit utilities */
.img-fit-cover {
  object-fit: cover;
}

.img-fit-contain {
  object-fit: contain;
}

/* Full-size image container */
.img-full {
  width: 100%;
  height: 100%;
}

/* Block display for images */
.img-block {
  display: block;
}

/* Background image container - absolute positioning for Next.js Image backgrounds */
.bg-image-container {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* Icon size utilities */
.icon-size-lg {
  font-size: 1.1em;
}

/* ============================================
   ADDITIONAL UTILITY CLASSES
   Replaces inline styles for better performance and maintainability
   ============================================ */

/* Color Variables - Alert & Status Colors */
:root {
  --color-danger: #dc3545;
  --color-danger-light: #f8d7da;
  --color-danger-dark: #721c24;
  --color-danger-border: #f5c6cb;
  --color-success: #28a745;
  --color-success-light: #d4edda;
  --color-success-dark: #155724;
  --color-success-border: #c3e6cb;
  --color-info: #007bff;
  --color-info-light: #d1ecf1;
  --color-info-dark: #0c5460;
  --color-info-border: #bee5eb;
  --color-border-gray: #dee2e6;
  --color-bg-light: #f8f9fa;
  --color-text-muted: #6c757d;
  --color-text-muted-light: #adb5bd;
  --color-slider-nav: #1a237e;
  --color-slider-nav-hover: #283593;
  --z-index-modal-overlay: 9998;
  --z-index-toast: 9999;
  --z-index-modal: 10000;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-index-modal-overlay);
}

/* Modal Content */
.modal-content {
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--z-index-toast);
  min-width: 300px;
  padding: 15px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
}

.toast-notification-success {
  background-color: var(--color-success-light);
  border: 1px solid var(--color-success-border);
  color: var(--color-success-dark);
}

.toast-notification-error {
  background-color: var(--color-danger-light);
  border: 1px solid var(--color-danger-border);
  color: var(--color-danger-dark);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Button Variants */
.btn-danger {
  background-color: var(--color-danger);
  border-color: var(--color-danger);
  color: var(--color-white);
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: #c82333;
  border-color: #bd2130;
  color: var(--color-white);
}

.btn-border-danger {
  border-color: var(--color-danger);
  color: var(--color-danger);
  background-color: transparent;
}

.btn-border-danger:hover,
.btn-border-danger:focus {
  background-color: var(--color-danger);
  border-color: var(--color-danger);
  color: var(--color-white);
}

/* Image Thumbnail */
.img-thumbnail {
  max-width: 200px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.img-thumbnail-small {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
}

/* Image Container for Next.js Image */
.img-container-thumbnail {
  width: 80px;
  height: 60px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.img-container-preview {
  width: 200px;
  height: 200px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

/* File Upload Drop Zone */
.file-upload-dropzone {
  border: 2px dashed var(--color-border-gray);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background-color: transparent;
  transition: all 0.3s ease;
  position: relative;
}

.file-upload-dropzone.dragging {
  border-color: var(--color-info);
  background-color: var(--color-bg-light);
}

/* Spacing Utilities */
.gap-10 {
  gap: 10px;
}

.gap-15 {
  gap: 15px;
}

.gap-20 {
  gap: 20px;
}

/* Alert Message Styles (for dynamic HTML injection) */
.alert-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
}

.alert-message-success {
  background-color: var(--color-success-light);
  color: var(--color-success-dark);
  border: 1px solid var(--color-success-border);
}

.alert-message-error {
  background-color: var(--color-danger-light);
  color: var(--color-danger-dark);
  border: 1px solid var(--color-danger-border);
}

/* Text Utilities */
.text-primary-link {
  color: var(--color-info);
  text-decoration: underline;
}

.text-muted-light {
  color: var(--color-text-muted-light, #adb5bd);
  font-size: 12px;
}

/* Cursor utilities */
.cursor-pointer {
  cursor: pointer;
}

/* Text color utilities */
.text-info {
  color: var(--color-info);
}

/* Text size and weight utilities */
.text-medium {
  font-size: 16px;
  font-weight: 500;
}

.fw-bold {
  font-weight: bold;
}

/* ============================================
   SLIDER UTILITIES
   ============================================ */

/* Slider container */
.slider-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Aspect ratio containers */
.aspect-ratio-16-9 {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
}

.aspect-ratio-video {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[dir="rtl"] .aspect-ratio-video {
  inset-inline-start: 0;
  inset-inline-end: auto;
}

/* Responsive image */
.img-responsive {
  max-width: 100%;
  height: auto;
}

/* Disabled state */
.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Video Preview */
.video-preview {
  max-width: 300px;
  max-height: 200px;
}

/* 404 Page Specific Styles */
.error-404-display {
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary-1, #333);
  letter-spacing: -0.02em;
}

.error-404-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-message-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  color: var(--color-dark-1, #1a1a1a);
}

.error-message-text {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--color-gray-1, #666);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.error-link {
  color: var(--color-primary-1, #667eea);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

.error-link:hover {
  text-decoration: underline;
}

.btn-min-width {
  min-width: 200px;
}

/* Hidden Input */
.input-hidden {
  display: none;
}

