/* ─── Ragaie Frontend Enhancements ─── */

/* Arabic font support handled inline in frontend.blade.php */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Better card styling */
.service-box, .work-box, .blog, .team-box, .award-box, .approach-box {
  transition: all .35s cubic-bezier(.4,0,.2,1);
}

.service-box:hover, .work-box:hover, .blog:hover, .team-box:hover {
  transform: translateY(-6px);
}

/* Modern shadow on cards */
.service-box, .work-box, .blog, .team-box {
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  border-radius: 16px;
  overflow: hidden;
}

.service-box:hover, .work-box:hover, .blog:hover, .team-box:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

/* Smoother image loading */
img {
  transition: opacity .3s ease;
}

/* Fix: ensure about section content is visible (override GSAP initial opacity) */
.about-area .text-wrapper,
.about-area .btn-wrapper {
  opacity: 1 !important;
  transform: none !important;
}

/* Better buttons */
.rr-btn {
  transition: all .3s cubic-bezier(.4,0,.2,1) !important;
}

.rr-btn:hover {
  transform: translateY(-2px);
}

/* Improved mobile experience */
@media (max-width: 768px) {
  .section-spacing {
    padding: 60px 0 !important;
  }
  .section-spacing-top {
    padding-top: 60px !important;
  }
  .section-spacing-bottom {
    padding-bottom: 60px !important;
  }
  .hero-area .section-title {
    font-size: 2rem !important;
  }
  .service-box .title {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 576px) {
  .section-spacing {
    padding: 40px 0 !important;
  }
  .section-spacing-top {
    padding-top: 40px !important;
  }
  .hero-area .section-title {
    font-size: 1.6rem !important;
  }
  .work-box .title {
    font-size: 1rem !important;
  }
}

/* Language switcher in header */
.language-switcher .dropdown-menu {
  min-width: 120px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
  padding: 8px;
  margin-top: 8px;
}

.language-switcher .dropdown-item {
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .875rem;
  font-weight: 500;
  transition: all .2s ease;
}

.language-switcher .dropdown-item:hover {
  background: rgba(108,92,231,.08);
  color: #6c5ce7;
}

/* Fix for RTL */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .header__nav .main-menu ul li {
  margin-right: 0;
  margin-left: 30px;
}

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

/* Full-width video */
.video-box {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.video-box video,
.video-box iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
  object-fit: cover;
}

/* Contact form modern styling */
.contact-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .95rem;
  transition: all .3s ease;
}

.contact-form .form-control:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 4px rgba(108,92,231,.1);
}

.contact-form .form-label {
  font-weight: 600;
  font-size: .85rem;
  color: #495057;
  margin-bottom: 6px;
}

/* ─── Contact Page Enhancements ─── */

.contact-wrap form {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
  transition: box-shadow .3s ease;
}

.dark .contact-wrap form {
  background: var(--dark-bg, #1a1a2e);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.contact-formfield {
  position: relative;
  margin-bottom: 8px;
}

.contact-formfield label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted, #999);
  display: block;
  margin-bottom: 4px;
}

.contact-formfield input,
.contact-formfield textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--border, #e0e0e0);
  outline: none;
  background: transparent;
  color: var(--primary);
  font-size: 1rem;
  padding: 10px 0 8px;
  transition: border-color .3s ease;
  height: auto;
  font-family: inherit;
}

.contact-formfield input:focus,
.contact-formfield textarea:focus {
  border-color: var(--secondary, #6c5ce7);
}

.contact-formfield input::placeholder,
.contact-formfield textarea::placeholder {
  color: var(--text-muted, #bbb);
  font-weight: 300;
}

.contact-formfield textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.contact-formwrap .message {
  margin-top: 10px;
}

/* Submit button enhancement */
.submit-btn {
  margin-top: 40px;
}

.submit-btn .rr-btn {
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.submit-btn .rr-btn .btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn .rr-btn .text-one,
.submit-btn .rr-btn .text-two {
  font-weight: 600;
  letter-spacing: .02em;
}

/* ─── Service Details Modern ─── */

.hero-area-service-details {
  padding-top: 40px;
}

.hero-area-service-details .service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  margin-bottom: 32px;
}

.hero-area-service-details .service-meta .serial,
.hero-area-service-details .service-meta .tag {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #888;
  background: #f5f5f7;
  padding: 6px 16px;
  border-radius: 100px;
}

.dark .hero-area-service-details .service-meta .serial,
.dark .hero-area-service-details .service-meta .tag {
  background: rgba(255,255,255,.06);
  color: #aaa;
}

.hero-area-service-details .service-meta .next-item {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
}

.hero-area-service-details .service-meta .next-item a {
  color: var(--secondary, #6c5ce7);
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid var(--secondary, #6c5ce7);
  border-radius: 100px;
  transition: all .3s ease;
}

.hero-area-service-details .service-meta .next-item a:hover {
  background: var(--secondary, #6c5ce7);
  color: #fff;
}

.hero-area-service-details .section-header {
  margin-top: 0;
  display: block;
}

.hero-area-service-details .section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  max-width: 800px;
}

.hero-area-service-details .section-content-wrapper {
  margin-top: 48px;
  display: grid;
  gap: 48px 64px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 991px) {
  .hero-area-service-details .section-content-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.hero-area-service-details .section-content .text {
  font-size: 17px;
  line-height: 1.7;
  max-width: 540px;
  color: #555;
}

.dark .hero-area-service-details .section-content .text {
  color: #bbb;
}

.hero-area-service-details .feature-list {
  margin-top: 32px;
}

.hero-area-service-details .feature-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 575px) {
  .hero-area-service-details .feature-list ul {
    grid-template-columns: 1fr;
  }
}

.hero-area-service-details .feature-list li {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  padding: 12px 18px;
  border-radius: 12px;
  transition: all .25s ease;
}

.dark .hero-area-service-details .feature-list li {
  background: rgba(255,255,255,.05);
}

.hero-area-service-details .feature-list li:hover {
  background: var(--secondary, #6c5ce7);
  color: #fff;
  transform: translateX(4px);
}

.hero-area-service-details .feature-list li:before {
  content: "✓";
  font-weight: 700;
  color: var(--secondary, #6c5ce7);
  font-size: 14px;
}

.hero-area-service-details .feature-list li:hover:before {
  color: #fff;
}

.hero-area-service-details .section-thumb {
  position: relative;
}

.hero-area-service-details .section-thumb img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

/* ─── Sidebar ─── */

.service-sidebar {
  background: #f8f9fa;
  border-radius: 20px;
  padding: 32px 28px;
  position: sticky;
  top: 120px;
}

.dark .service-sidebar {
  background: rgba(255,255,255,.04);
}

.service-sidebar .sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.service-sidebar .sidebar-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-sidebar .sidebar-services-list li a {
  display: block;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: all .25s ease;
  background: transparent;
}

.service-sidebar .sidebar-services-list li a:hover {
  background: var(--secondary, #6c5ce7);
  color: #fff;
  transform: translateX(4px);
}

/* ─── Approach / Process ─── */

.approach-area-service-details-page .section-header {
  margin-top: 0;
}

.approach-area-service-details-page .section-title-wrapper {
  display: grid;
  gap: 16px 48px;
  grid-template-columns: auto 1fr;
  align-items: end;
}

@media (max-width: 991px) {
  .approach-area-service-details-page .section-title-wrapper {
    grid-template-columns: 1fr;
  }
}

.approach-area-service-details-page .section-subtitle {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--secondary, #6c5ce7);
}

.approach-area-service-details-page .section-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.2;
  max-width: 700px;
}

.approach-area-service-details-page .approach-wrapper-box {
  margin-top: 60px;
  display: grid;
  gap: 0 60px;
  grid-template-columns: auto 1fr;
  align-items: start;
}

@media (max-width: 991px) {
  .approach-area-service-details-page .approach-wrapper-box {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
}

.approach-area-service-details-page .approach-wrapper-box .steps {
  font-size: 120px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--secondary, #6c5ce7);
  opacity: .3;
  position: sticky;
  top: 120px;
}

@media (max-width: 991px) {
  .approach-area-service-details-page .approach-wrapper-box .steps {
    display: none;
  }
}

.approach-area-service-details-page .approach-wrapper {
  border: none;
}

.approach-area-service-details-page .approach-box {
  display: grid;
  gap: 8px 24px;
  grid-template-columns: 40px 1fr;
  padding: 28px 0;
  border: none;
  border-bottom: 1px solid #eee;
  transition: all .3s ease;
}

.dark .approach-area-service-details-page .approach-box {
  border-color: rgba(255,255,255,.08);
}

.approach-area-service-details-page .approach-box:last-child {
  border-bottom: none;
}

.approach-area-service-details-page .approach-box .number {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary, #6c5ce7);
  grid-row: 1;
}

.approach-area-service-details-page .approach-box .title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.approach-area-service-details-page .approach-box .text {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  grid-column: 2;
}

.dark .approach-area-service-details-page .approach-box .text {
  color: #999;
}

/* ─── Features Grid ─── */

.feature-area {
  background: transparent;
}

.feature-area .features-wrapper {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1199px) {
  .feature-area .features-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .feature-area .features-wrapper {
    grid-template-columns: 1fr;
  }
}

.feature-area .feature-box {
  background: #f8f9fa;
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  border: 1px solid transparent;
  position: relative;
}

.dark .feature-area .feature-box {
  background: rgba(255,255,255,.04);
}

.feature-area .feature-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.06);
  border-color: var(--secondary, #6c5ce7);
}

.feature-area .feature-box:before {
  display: none;
}

.feature-area .feature-box .thumb {
  margin-bottom: 4px;
}

.feature-area .feature-box .thumb img {
  height: 48px;
  width: auto;
}

.feature-area .feature-box .title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--primary);
}

.feature-area .feature-box .text {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.dark .feature-area .feature-box .text {
  color: #999;
}

.feature-area .features-wrapper > *:nth-child(2n) .thumb {
  order: unset;
}

/* ─── Value Area ─── */

.value-area {
  background: transparent;
}

.value-area .section-content-wrapper {
  display: grid;
  gap: 48px 64px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 1199px) {
  .value-area .section-content-wrapper {
    grid-template-columns: 1fr;
  }
}

.value-area .section-thumb {
  margin-top: 0;
  max-width: 100%;
}

.value-area .section-thumb img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.value-area .section-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -.03em;
  max-width: 100%;
  color: var(--primary);
}

.value-area .values-wrapper {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

.value-area .value-box {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 28px 24px;
  transition: all .3s ease;
  border-left: 4px solid var(--secondary, #6c5ce7);
}

.dark .value-area .value-box {
  background: rgba(255,255,255,.04);
}

.value-area .value-box:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
}

.value-area .value-box:not(:first-child) {
  padding-top: 28px;
}

.value-area .value-box .number {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--secondary, #6c5ce7);
  margin-bottom: 8px;
}

.value-area .value-box .text {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.dark .value-area .value-box .text {
  color: #bbb;
}

/* ─── FAQ Modern ─── */

.faq-area .accordion-item {
  border: none;
  border-radius: 16px !important;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f8f9fa;
}

.dark .faq-area .accordion-item {
  background: rgba(255,255,255,.04);
}

.faq-area .accordion-button {
  font-size: 16px;
  font-weight: 600;
  padding: 20px 24px;
  background: transparent;
  box-shadow: none !important;
  border-radius: 16px !important;
}

.faq-area .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--secondary, #6c5ce7);
}

.faq-area .accordion-button::after {
  background-size: 14px;
}

.faq-area .accordion-body {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

.dark .faq-area .accordion-body {
  color: #999;
}

/* RTL adjustments for service details */
[dir="rtl"] .hero-area-service-details .feature-list li:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .service-sidebar .sidebar-services-list li a:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .value-area .value-box {
  border-left: none;
  border-right: 4px solid var(--secondary, #6c5ce7);
}

[dir="rtl"] .value-area .value-box:hover {
  transform: translateX(-6px);
}

[dir="rtl"] .hero-area-service-details .service-meta .next-item {
  margin-left: 0;
  margin-right: auto;
}

/* ─── Blog Page Cards Fix ─── */
.blog-area-2 .blog {
  opacity: 1 !important;
  transform: none !important;
}

.blog-area-2 .blog .thumb {
  border-radius: 16px;
  overflow: hidden;
}

.blog-area-2 .blog .thumb img {
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.blog-area-2 .blog:hover .thumb img {
  transform: scale(1.08);
}

.blog-area-2 .blog .content-wrapper {
  padding: 20px 0;
}

.blog-area-2 .blog .title {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.blog-area-2 .blog .title .arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  margin-top: 2px;
}

.dark .blog-area-2 .blog .title .arrow {
  background: rgba(255,255,255,.08);
}

.blog-area-2 .blog:hover .title .arrow {
  background: var(--secondary, #6c5ce7);
  transform: rotate(45deg);
}

.blog-area-2 .blog .title .arrow svg {
  width: 12px;
  height: 14px;
  transition: all .3s ease;
}

.blog-area-2 .blog .title .arrow svg * {
  fill: var(--primary);
  transition: fill .3s ease;
}

.blog-area-2 .blog:hover .title .arrow svg * {
  fill: #fff;
}

.blog-area-2 .blog .meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: #888;
}

.blog-area-2 .blog .meta .name span {
  font-weight: 600;
  color: var(--primary);
}

.blog-area-2 .blog .meta .has-left-line {
  position: relative;
  padding-left: 16px;
}

.blog-area-2 .blog .meta .has-left-line:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: #ccc;
}

.blog-area-2 .blog:before {
  display: none;
}

/* ─── Portfolio Page Modern ─── */

.page-title-area .page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  font-weight: 600;
}

.works-wrapper-5 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px 0 60px;
}

@media (max-width: 1199px) {
  .works-wrapper-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .works-wrapper-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .works-wrapper-5 {
    grid-template-columns: 1fr;
  }
}

.works-wrapper-5 .work-box {
  opacity: 1 !important;
  transform: none !important;
  min-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: block;
  text-decoration: none;
  background: #f5f5f7;
  transition: all .4s cubic-bezier(.4,0,.2,1);
}

.dark .works-wrapper-5 .work-box {
  background: rgba(255,255,255,.04);
}

.works-wrapper-5 .work-box:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,.12);
}

.works-wrapper-5 .work-box .card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}

.works-wrapper-5 .work-box .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.works-wrapper-5 .work-box:hover .card-bg {
  transform: scale(1.08);
}

.works-wrapper-5 .work-box .thumb {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
}

.works-wrapper-5 .work-box .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.works-wrapper-5 .work-box:hover .thumb img {
  transform: scale(1.08);
}

/* Overlay on hover */
.works-wrapper-5 .work-box::after {
  content: "→";
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  z-index: 2;
}

.works-wrapper-5 .work-box:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.dark .works-wrapper-5 .work-box::after {
  background: #222;
  color: #fff;
}

[dir="rtl"] .works-wrapper-5 .work-box::after {
  right: auto;
  left: 20px;
  content: "←";
}

/* ─── Articles Page Fix ─── */
.art-featured-card,
.art-card-link,
.art-trend-item {
  opacity: 1 !important;
  transform: none !important;
}

/* ─── Services Page Fix ─── */
.service-area-service-page .service-box {
  opacity: 1 !important;
  transform: none !important;
}

/* ─── Blog Details Modern ─── */

.blog-details-area .section-header {
  margin-bottom: 40px;
}

.blog-details-area .section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -.03em;
  line-height: 1.15;
  max-width: 800px;
}

.blog-details-area .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 20px;
  font-size: 14px;
  color: #888;
}

.blog-details-area .meta .name span {
  font-weight: 600;
  color: var(--primary);
}

.blog-details-area .meta .has-left-line {
  position: relative;
  padding-left: 16px;
}

.blog-details-area .meta .has-left-line:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: #ccc;
}

.blog-details-area .image-wrapper {
  margin: 0 50px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

@media (max-width: 991px) {
  .blog-details-area .image-wrapper {
    margin: 0 20px;
  }
}

.blog-details-area .image-wrapper img {
  width: 100%;
  display: block;
}

.blog-details-area .section-details {
  max-width: 800px;
  margin: 48px auto 0;
  padding: 0 20px;
}

.blog-details-area .section-details .text {
  font-size: 17px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.dark .blog-details-area .section-details .text {
  color: #bbb;
}

.blog-details-area .section-details .text:not(:first-child) {
  margin-top: 0;
}

.blog-details-area .section-details .title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 40px 0 16px;
}

.blog-details-area .section-details h1,
.blog-details-area .section-details h2,
.blog-details-area .section-details h3,
.blog-details-area .section-details h4 {
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 36px 0 12px;
}

.blog-details-area .section-details img {
  max-width: 100%;
  border-radius: 16px;
  margin: 24px 0;
}

.blog-details-area .section-details blockquote {
  border-left: 4px solid var(--secondary, #6c5ce7);
  padding: 16px 24px;
  margin: 24px 0;
  background: #f8f9fa;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

.dark .blog-details-area .section-details blockquote {
  background: rgba(255,255,255,.04);
  color: #bbb;
}

.blog-details-area .section-details ul,
.blog-details-area .section-details ol {
  padding-left: 24px;
  margin: 16px 0;
  line-height: 1.8;
  color: #444;
}

.dark .blog-details-area .section-details ul,
.dark .blog-details-area .section-details ol {
  color: #bbb;
}

.blog-details-area .section-details li {
  margin-bottom: 6px;
}

.blog-details-area .section-details a {
  color: var(--secondary, #6c5ce7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-details-area .section-details pre,
.blog-details-area .section-details code {
  background: #f0f0f0;
  border-radius: 8px;
  font-size: .9em;
}

.dark .blog-details-area .section-details pre,
.dark .blog-details-area .section-details code {
  background: rgba(255,255,255,.08);
}

.blog-details-area .section-details pre {
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.blog-details-area .section-details code {
  padding: 2px 6px;
}

.blog-details-area .section-details pre code {
  padding: 0;
  background: transparent;
}

/* Tags */
.blog-details-area .tags-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.dark .blog-details-area .tags-wrapper {
  border-color: rgba(255,255,255,.08);
}

.blog-details-area .tags-wrapper .heading {
  font-size: 14px;
  font-weight: 600;
  color: #888;
}

.blog-details-area .tags-wrapper .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-details-area .tags-wrapper .tag {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 100px;
  background: #f0f0f0;
  color: #555;
}

.dark .blog-details-area .tags-wrapper .tag {
  background: rgba(255,255,255,.08);
  color: #aaa;
}

/* Comment form */
.blog-details-area .comment-wrap {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.dark .blog-details-area .comment-wrap {
  border-color: rgba(255,255,255,.08);
}

.blog-details-area .comment-wrap .title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}

.blog-details-area .comment-formwrap {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.blog-details-area .comment-formwrap .message {
  grid-column: 1 / -1;
}

.comment-formfield input {
  width: 100%;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .95rem;
  font-family: inherit;
  background: transparent;
  color: var(--primary);
  transition: all .3s ease;
}

.comment-formfield input:focus {
  border-color: var(--secondary, #6c5ce7);
  box-shadow: 0 0 0 4px rgba(108,92,231,.1);
  outline: none;
}

.dark .comment-formfield input {
  border-color: rgba(255,255,255,.1);
}

/* Recent posts section */
.blog-area-3 .blog {
  opacity: 1 !important;
  transform: none !important;
}

.blog-area-3 .blog .thumb {
  border-radius: 16px;
  overflow: hidden;
}

.blog-area-3 .blog .thumb img {
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.blog-area-3 .blog:hover .thumb img {
  transform: scale(1.08);
}

/* RTL blog details */
[dir="rtl"] .blog-details-area .section-details blockquote {
  border-left: none;
  border-right: 4px solid var(--secondary, #6c5ce7);
  border-radius: 12px 0 0 12px;
}

[dir="rtl"] .blog-details-area .section-details ul,
[dir="rtl"] .blog-details-area .section-details ol {
  padding-left: 0;
  padding-right: 24px;
}

[dir="rtl"] .blog-details-area .meta .has-left-line {
  padding-left: 0;
  padding-right: 16px;
}

[dir="rtl"] .blog-details-area .meta .has-left-line:before {
  left: auto;
  right: 0;
}

/* ─── Portfolio Details Modern ─── */

.work-details-area .section-title-wrapper {
  display: grid;
  gap: 24px 48px;
  grid-template-columns: 280px 1fr;
  align-items: center;
}

@media (max-width: 767px) {
  .work-details-area .section-title-wrapper {
    grid-template-columns: 1fr;
  }
}

.work-details-area .section-title-wrapper .title-thumb {
  border-radius: 16px;
  overflow: hidden;
  max-width: 280px;
}

.work-details-area .section-title-wrapper .title-thumb img {
  width: 100%;
  display: block;
}

.work-details-area .section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -.03em;
  line-height: 1.1;
}

.work-details-area .meta-wrapper {
  margin-top: 40px;
  margin-bottom: 60px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  background: #f8f9fa;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
}

.dark .work-details-area .meta-wrapper {
  background: rgba(255,255,255,.04);
}

@media (max-width: 991px) {
  .work-details-area .meta-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .work-details-area .meta-wrapper {
    grid-template-columns: 1fr;
  }
}

.work-details-area .meta-item {
  border-top: none;
  padding: 24px 28px;
  border-right: 1px solid rgba(0,0,0,.06);
}

.dark .work-details-area .meta-item {
  border-color: rgba(255,255,255,.06);
}

.work-details-area .meta-item:last-child {
  border-right: none;
}

@media (max-width: 991px) {
  .work-details-area .meta-item:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 575px) {
  .work-details-area .meta-item {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .work-details-area .meta-item:last-child {
    border-bottom: none;
  }
  .dark .work-details-area .meta-item {
    border-color: rgba(255,255,255,.06);
  }
}

.work-details-area .meta-item .title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #999;
  margin-bottom: 6px;
}

.work-details-area .meta-item .text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
  margin-top: 0;
}

.work-details-area .image-wrapper {
  margin: 0 50px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

@media (max-width: 991px) {
  .work-details-area .image-wrapper {
    margin: 0 20px;
  }
}

.work-details-area .image-wrapper img {
  width: 100%;
  display: block;
}

.work-details-area .section-info {
  margin-top: 60px;
  margin-bottom: 60px;
  display: grid;
  gap: 40px 60px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 991px) {
  .work-details-area .section-info {
    grid-template-columns: 1fr;
    margin-top: 40px;
    margin-bottom: 40px;
  }
}

.work-details-area .section-info .title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
  max-width: 100%;
}

.work-details-area .section-info .content {
  margin-top: 0;
}

.work-details-area .section-info .text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: #555;
}

.dark .work-details-area .section-info .text {
  color: #bbb;
}

/* View Project button */
.btn-primary {
  background: var(--secondary, #6c5ce7) !important;
  border: none !important;
  padding: 14px 36px !important;
  border-radius: 100px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: .02em;
  transition: all .3s ease !important;
  box-shadow: 0 8px 24px rgba(108,92,231,.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(108,92,231,.35);
  background: #5a4bd1 !important;
}

/* Recent works */
.recent-works {
  margin-bottom: 60px;
}

.recent-works-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}

.recent-works-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.recent-work-item a {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #f8f9fa;
  text-decoration: none;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}

.dark .recent-work-item a {
  background: rgba(255,255,255,.04);
}

.recent-work-item a:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.08);
}

.recent-work-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.recent-work-item h4 {
  font-size: 15px;
  font-weight: 600;
  padding: 16px 20px;
  margin: 0;
  color: var(--primary);
  letter-spacing: -.01em;
}

/* Pagination */
.work-details-area .pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 60px;
}

.work-details-area .pagination a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 100px;
  transition: all .3s ease;
}

.dark .work-details-area .pagination a {
  border-color: rgba(255,255,255,.1);
  color: #aaa;
}

.work-details-area .pagination a:hover {
  color: var(--secondary, #6c5ce7);
  border-color: var(--secondary, #6c5ce7);
  background: rgba(108,92,231,.06);
  transform: translateY(-2px);
}

.work-details-area .pagination a svg * {
  fill: currentColor;
}

/* RTL */
[dir="rtl"] .work-details-area .meta-item {
  border-right: none;
  border-left: 1px solid rgba(0,0,0,.06);
}

[dir="rtl"] .work-details-area .meta-item:last-child {
  border-left: none;
}

@media (max-width: 991px) {
  [dir="rtl"] .work-details-area .meta-item:nth-child(2n) {
    border-left: none;
  }
}

@media (max-width: 575px) {
  [dir="rtl"] .work-details-area .meta-item {
    border-left: none;
  }
}

.dark [dir="rtl"] .work-details-area .meta-item {
  border-color: rgba(255,255,255,.06);
}

/* Hero section responsive improvements */
@media (max-width: 991px) {
  .hero-area-service-details .section-content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .service-sidebar {
    position: static;
    margin-top: 40px;
  }
}

@media (max-width: 575px) {
  .hero-area-service-details .service-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-area-service-details .service-meta .next-item {
    margin-left: 0;
  }
  
  [dir="rtl"] .hero-area-service-details .service-meta .next-item {
    margin-right: 0;
  }
}

/* Social links enhancement */
.contact-social .social-links {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 12px !important;
}

.contact-social .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-light, #f5f5f5);
  color: var(--primary);
  transition: all .3s ease;
  padding: 0 !important;
}

.dark .contact-social .social-links a {
  background: rgba(255,255,255,.08);
}

.contact-social .social-links a:hover {
  background: var(--secondary, #6c5ce7);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108,92,231,.3);
}

.contact-mail .text a {
  position: relative;
  display: inline-block;
  word-break: break-all;
}

.contact-info-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
}

.contact-info-item svg {
  flex-shrink: 0;
  color: var(--secondary, #6c5ce7);
}

.contact-info-item a,
.contact-info-item span {
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font_sequelsansromanbody);
  letter-spacing: -.02em;
}

.contact-info-item a:hover {
  color: var(--secondary, #6c5ce7);
  text-decoration: underline;
}

#response-message .alert {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .95rem;
  margin-bottom: 20px;
}

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

.loading-form {
  display: none !important;
}

.contact-social {
  margin-top: 36px !important;
}

/* RTL support for contact */
[dir="rtl"] .contact-formfield label {
  text-align: right;
}

[dir="rtl"] .contact-formfield input,
[dir="rtl"] .contact-formfield textarea {
  text-align: right;
}

/* Responsive contact */
@media (max-width: 991px) {
  .contact-area-contact-page .section-content-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-wrap form {
    padding: 30px 24px;
  }
  .contact-area-contact-page .contact-formwrap {
    grid-template-columns: 1fr;
  }
  .contact-area-contact-page .contact-formwrap .message {
    grid-column: auto;
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .contact-mail .text {
    font-size: 18px !important;
  }
  .contact-social .social-links a {
    width: 42px;
    height: 42px;
  }
  .contact-social .social-links a svg {
    width: 18px;
    height: 18px;
  }
  .submit-btn .rr-btn {
    width: 100%;
  }
}
