/* ======================================= */
/* CSS VARIABLES - TYPOGRAPHY & COLORS     */
/* ======================================= */
:root {
  --h-2-font-size: 65px;
  --h-2-font-weight: 700;
  --h-2-line-height: 1.3;
  --h-2-letter-spacing: 0;

  --text-m-font-size: 16px;
  --text-m-font-weight: 400;
  --text-m-line-height: 1.6;
  --text-m-letter-spacing: 0;

  --text-l-font-size: 18px;
  --text-l-font-weight: 400;
  --text-l-line-height: 1.6;
  --text-l-letter-spacing: 0;

  --text-xl-font-size: 20px;
  --text-xl-font-weight: 400;
  --text-xl-line-height: 1.5;
  --text-xl-letter-spacing: 0;

  --text-xxl-font-size: 24px;
  --text-xxl-font-weight: 400;
  --text-xxl-line-height: 1.5;
  --text-xxl-letter-spacing: 0;

  --l-bold-font-size: 18px;
  --l-bold-font-weight: 700;
  --l-bold-line-height: 1.4;
  --l-bold-letter-spacing: 0;

  --m-bold-font-size: 14px;
  --m-bold-font-weight: 700;
  --m-bold-line-height: 1.4;
  --m-bold-letter-spacing: 0;

  --big-numbers-font-size: 96px;
  --big-numbers-font-weight: 700;
  --big-numbers-line-height: 1.2;
  --big-numbers-letter-spacing: 0;

  --grey: #6b7280;
}

/* ======================================= */
/* RESET AND BASE STYLES                   */
/* ======================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  min-height: 100vh;
}

p {
  width: 100%;
}

h2.always-en.hp-380 {
  padding: 0 !important;
}

.page-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

/* Typography Utility Classes */
.h2-title {
  font-size: var(--h-2-font-size) !important;
  font-weight: var(--h-2-font-weight);
  line-height: var(--h-2-line-height);
  letter-spacing: var(--h-2-letter-spacing);
  color: black;
}

.text-m {
  font-size: var(--text-m-font-size) !important;
  font-weight: var(--text-m-font-weight);
  line-height: var(--text-m-line-height);
  letter-spacing: var(--text-m-letter-spacing);
  color: black;
}

.text-l {
  font-size: var(--text-l-font-size) !important;
  font-weight: var(--text-l-font-weight);
  line-height: var(--text-l-line-height);
  letter-spacing: var(--text-l-letter-spacing);
  color: black;
}

.text-xl {
  font-size: var(--text-xl-font-size) !important;
  font-weight: var(--text-xl-font-weight);
  line-height: var(--text-xl-line-height);
  letter-spacing: var(--text-xl-letter-spacing);
}

.text-xxl {
  font-size: var(--text-xxl-font-size) !important;
  font-weight: var(--text-xxl-font-weight);
  line-height: var(--text-xxl-line-height);
  letter-spacing: var(--text-xxl-letter-spacing);
}

.white {
  color: white;
}

.center {
  text-align: center !important;
}

.rtl {
  direction: rtl;
}

/* ======================================= */
/* BOARD SECTION STYLES (SPLIDE)           */
/* ======================================= */
.board-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  gap: 30px;
}

.section-header {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.board-carousel {
  width: 100%;
  max-width: 1336px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Splide Base */
#board-splide {
  width: 100%;
  padding: 0 50px;
}

#board-splide .splide__track {
  overflow: hidden;
}

#board-splide .splide__list {
  display: flex;
}

#board-splide .splide__slide {
  padding: 0 15px;
}

/* Splide Arrows - FIXED */
#board-splide .splide__arrows {
  position: static;
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0;
  z-index: 10;
}

#board-splide .splide__arrow {
  position: absolute;
  width: 50px;
  height: 50px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#board-splide .splide__arrow:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

#board-splide .splide__arrow svg {
  fill: #333;
  width: 20px;
  height: 20px;
}

/* Board Member Card */
.board-member {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  position: relative;
}

.member-image {
  width: 100%;
  height: 322px;
  object-fit: cover;
}

.member-image-placeholder {
  background: #e0e0e0;
  width: 100%;
  height: 322px;
}

.member-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  width: 100%;
  margin-top: -100px;
  background: rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
  min-height: 100px;
}

.member-details {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.member-name {
  font-size: var(--text-m-font-size) !important;
  font-weight: var(--text-m-font-weight);
  line-height: var(--text-m-line-height);
  color: white;
}

.member-title {
  padding-left: 5px;
  font-size: 1.6rem !important;
  font-weight: var(--l-bold-font-weight);
  line-height: var(--l-bold-line-height);
  color: white;
}

.linkedin-icon {
  width: 35px;
  height: 35px;
}

/* Responsive */
@media (max-width: 1200px) {
  #board-splide {
    padding: 0 45px;
  }
  
  #board-splide .splide__arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  #board-splide {
    padding: 0 40px;
  }
  
  #board-splide .splide__arrow {
    width: 35px;
    height: 35px;
  }
  
  #board-splide .splide__arrow svg {
    width: 16px;
    height: 16px;
  }
  
  .member-image,
  .member-image-placeholder {
    height: 260px;
  }
}

/* RTL Fix for Splide Arrows */
#board-splide[dir="rtl"] .splide__arrow--prev {
  left: auto !important;
  right: 0 !important;
}

#board-splide[dir="rtl"] .splide__arrow--next {
  right: auto !important;
  left: 0 !important;
}
/* ======================================= */
/* GALLERY (ABOUT) SECTION STYLES          */
/* ======================================= */
.gallery-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1336px;
  margin: 0 auto;
  align-items: flex-start;
  gap: 100px; /* Space between gallery items */
}

.gallery-item {
  display: flex;
  /* Set base direction for RTL content */
  direction: rtl;
  /* For the FIRST item: image on left, text on right. */
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 32px; /* Space between image and content */
  width: 100%;
}

.gallery-item-reverse {
  /* For the SECOND item: text on left, image on right. */
  flex-direction: row;
}

.gallery-image {
  flex: 1;
  max-width: 50%;
  width: 100%;
  height: 400px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
}

.gallery-content {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
}

.gallery-content .h2-title,
.gallery-content .text-m {
  align-self: stretch;
  white-space: pre-line;
}

/* ======================================= */
/* METHOD SECTION STYLES                   */
/* ======================================= */
.method-section {
  position: relative;
  width: 100%;
  max-width: 1336px;
  margin: 0 auto;
  display: flex;
  background-size: cover;
  background-position: center;
}

.method-content {
  display: flex;
  width: 100%;
  padding: 64px 56px;
  justify-content: center;
}

.method-content {
  display: flex;
  max-width: 1223px;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
}

.method-content .text-xxl,
.method-content .text-xl {
  align-self: stretch;
}

#page-content > div > div > div > section.method-section > div > p {
  color: white;
}

#page-content section.method-section p,
h2.method-content_title.white.center {
  text-align: center !important;
  font-size: 22px !important;
  font-weight: 400 !important;
}

/* ======================================= */
/* PRACTICE AREAS SECTION STYLES           */
/* ======================================= */
.practice-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1336px;
  margin: 0 auto;
  align-items: center;
  gap: 30px;
}

.practice-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.practice-subtitle {
  max-width: 700px;
  width: 100%;
}

.practice-grid-container {
  position: relative;
  width: 100%;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 50px;
  width: 100%;
}

.practice-card {
  cursor: pointer;
  border: 0;
  overflow: hidden;
  height: 171px;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

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

.practice-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  gap: 10px;
}

.practice-title {
  width: 320px;
  font-size: var(--l-bold-font-size) !important;
  font-weight: var(--l-bold-font-weight);
  line-height: var(--l-bold-line-height);
  color: white;
  text-align: center;
  direction: rtl;
}

.practice-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.practice-link > div:first-child,
.practice-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.practice-link span {
  font-size: var(--m-bold-font-size) !important;
  font-weight: var(--m-bold-font-weight);
  line-height: var(--m-bold-line-height);
  color: white;
  white-space: nowrap;
  direction: rtl;
}

.arrow-icon {
  width: 24px;
  height: 24px;
  color: white;
}

.underline-img {
  width: 100%;
  height: 1px;
  object-fit: cover;
}

.send-icon {
  position: absolute;
  top: 103px;
  right: 107px;
  width: 50px;
  height: 50px;
  pointer-events: none;
}

/* ======================================= */
/* TESTIMONIALS SECTION STYLES - NEW       */
/* ======================================= */

.testimonials-section {
  position: relative;
  width: 100%;
  background-color: #1a2332;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: 80px 0;
}

.testimonials-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 35, 50, 0.85);
  pointer-events: none;
}

.testimonials-container {
  position: relative;
  z-index: 1;
  max-width: 1336px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Quote Icon */
.quote-icon {
  position: absolute;
  top: 40px;
  right: 100px;
  opacity: 0.3;
}

.quote-icon svg {
  width: 100px;
  height: 75px;
}

/* Slider Wrapper */
.testimonials-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  gap: 40px;
}

/* Navigation Buttons */
.testimonial-nav {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.testimonial-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.testimonial-nav svg {
  width: 24px;
  height: 24px;
}

/* Testimonials Card */
.testimonials-card {
  background: white;
  border-radius: 16px;
  padding: 50px 60px;
  text-align: center;
  max-width: 650px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Individual Slide */
.testimonial-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
  display: flex;
}

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

/* Testimonial Image */
.testimonial-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 3px solid #f0f0f0;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Name */
.testimonial-name {
  font-size: 22px !important;
  font-weight: 700;
  color: #1a2332;
  margin: 0 0 15px 0;
  direction: rtl;
}

/* Text */
.testimonial-text {
  font-size: 16px !important;
  font-weight: 400;
  line-height: 1.8;
  color: #666;
  margin: 0;
  direction: rtl;
  max-width: 500px;
}

/* Dots Navigation */
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.testimonial-dot.active {
  background: white;
  transform: scale(1.2);
}

/* Decorative Send Icon */
.testimonials-send-icon {
  position: absolute;
  bottom: 80px;
  left: calc(50% + 350px);
  width: 60px;
  height: 60px;
  pointer-events: none;
  opacity: 0.8;
}

/* ======================================= */
/* LIFE SECTION STYLES (4-COLUMN GRID FIX) */
/* ======================================= */

.life-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  gap: 30px;
}

.life-header {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  gap: 20px;
}

p.life-header p {
  text-align: center !important;
}

/* Gallery Grid Container: Uniform 4-column layout */
.life-image {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal-width columns */
  gap: 10px;
  width: 100%;
  max-width: 1336px;
  height: auto;
}

/* Gallery Item: Ensures uniform sizing and aspect ratio */
.life-image .gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: 1/1; /* Enforces a 1:1 (square) aspect ratio */
  overflow: hidden;
}

.life-image .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills the container, cropping as needed */
  display: block;
}

/* ======================================= */
/* STATISTICS SECTION STYLES               */
/* ======================================= */
.stats-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  gap: 30px;
}

.stats-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 32px;
}

.stat-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stat-number {
  font-size: var(--big-numbers-font-size) !important;
  font-weight: var(--big-numbers-font-weight);
  line-height: var(--big-numbers-line-height);
  color: black;
  text-align: center;
  white-space: nowrap;
}

.stat-label {
  font-size: var(--text-xl-font-size) !important;
  font-weight: var(--text-xl-font-weight);
  line-height: var(--text-xl-line-height);
  color: var(--grey);
  text-align: center;
  white-space: nowrap;
  direction: rtl;
}

.stat-separator {
  width: 1px;
  height: 141px;
  background-color: #e5e7eb;
  flex-shrink: 0;
}

/* ======================================= */
/* CONTACT SECTION STYLES                  */
/* ======================================= */
.contact-section {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding: 93px 0;
}

.contact-card {
  width: 100%;
  max-width: 1152px;
  margin: 0 30px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 65px 30px;
}

.contact-card .text-xxl {
  max-width: 900px;
  width: 100%;
  color: black;
}

.submit-btn {
  padding: 8px 50px;
  background: black;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-size: var(--text-m-font-size) !important;
  font-weight: var(--text-m-font-weight);
  line-height: var(--text-m-line-height);
  color: white;
  white-space: nowrap;
  direction: rtl;
  transition: background 0.2s ease;
}

.submit-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.board-section,
.method-section,
.gallery-section,
.practice-section,
.testimonials-section,
.stats-section,
.life-section {
  margin-bottom: 100px;
}

/* ======================================= */
/* RESPONSIVE BREAKPOINTS                  */
/* ======================================= */

@media (max-width: 1200px) {
  .member-image {
    height: 260px;
  }

  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  /* ZIGZAG FIX: Switch Gallery items to column layout */
  .gallery-item,
  .gallery-item-reverse {
    flex-direction: column;
  }

  .gallery-image {
    /* Set image to full width of the container */
    width: 100%;
    max-width: 100%;
    height: auto;
    /* Optional: Sets image above text on mobile for better flow */
    order: -1;
  }

  .gallery-content,
  .gallery-item-reverse .gallery-content {
    /* Set content to full width */
    width: 100%;
    max-width: 100%;
  }

  /* LIFE SECTION FIX: Switch to 3 columns on medium screens */
  .life-image {
    grid-template-columns: repeat(3, 1fr);
  }

  .quote-icon {
    right: 50px;
    top: 30px;
  }

  .quote-icon svg {
    width: 70px;
    height: 52px;
  }

  .testimonials-slider-wrapper {
    gap: 20px;
  }

  .testimonials-card {
    padding: 40px 40px;
  }

  .testimonials-send-icon {
    display: none;
  }
}

@media (max-width: 768px) {
  .h2-title {
    font-size: 32px !important;
  }

  .stat-number {
    font-size: 60px !important;
  }

  .stats-container {
    flex-direction: column;
    gap: 20px;
  }

  .stat-separator {
    width: 100%;
    height: 1px;
  }

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

  .board-section,
  .gallery-section,
  .method-section,
  .practice-section,
  .testimonials-section,
  .stats-section,
  .life-section {
    margin-bottom: 65px;
  }

  /* LIFE SECTION FIX: Switch to 2 columns on tablets */
  .life-image {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .quote-icon {
    position: relative;
    right: auto;
    top: auto;
    margin-bottom: 20px;
  }

  .quote-icon svg {
    width: 50px;
    height: 37px;
  }

  .testimonials-slider-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .testimonial-nav {
    display: none;
  }

  .testimonials-card {
    padding: 30px 25px;
    border-radius: 12px;
    margin: 0 15px;
  }

  .testimonial-image {
    width: 80px;
    height: 80px;
  }

  .testimonial-name {
    font-size: 18px !important;
  }

  .testimonial-text {
    font-size: 14px !important;
  }

  .testimonials-dots {
    margin-top: 30px;
  }

  .testimonial-dot {
    width: 10px;
    height: 10px;
  }
}

/* ======================================= */
/* PRACTICE POPUP STYLES                   */
/* ======================================= */

.practice-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.practice-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.practice-popup {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.practice-popup-overlay.active .practice-popup {
    transform: scale(1) translateY(0);
}

.practice-popup-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.practice-popup-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.practice-popup-close svg {
    color: #333;
}

.practice-popup-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid #eee;
}

.practice-popup-title {
    font-size: 28px !important;
    font-weight: 700;
    color: #1a2332;
    margin: 0;
    text-align: right;
    direction: rtl;
}

.practice-popup-content {
    padding: 30px 40px 40px;
    overflow-y: auto;
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

.practice-popup-content p {
    margin-bottom: 15px;
}

.practice-popup-content p:last-child {
    margin-bottom: 0;
}

.practice-popup-content ul,
.practice-popup-content ol {
    margin: 15px 0;
    padding-right: 25px;
}

.practice-popup-content li {
    margin-bottom: 8px;
}

.practice-popup-content h2,
.practice-popup-content h3,
.practice-popup-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1a2332;
}

/* Prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .practice-popup {
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .practice-popup-header {
        padding: 25px 25px 15px;
    }
    
    .practice-popup-title {
        font-size: 22px !important;
    }
    
    .practice-popup-content {
        padding: 20px 25px 30px;
        font-size: 15px;
    }
    
    .practice-popup-close {
        top: 15px;
        left: 15px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
  /* LIFE SECTION FIX: Switch to 1 column on mobile phones */
  .life-image {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

footer {
  margin-top: 0 !important;
}
