/* =============================================
   Dubai Mediation - Main Stylesheet
   Inspired by The Trial Theme
   ============================================= */

/* ---------------------------------------------
   Reset and Base Styles
   --------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Colors */
  --primary-orange: #f4763d;
  --primary-orange-light: #ec5b46;
  --primary-coral: #e13552;
  --primary-purple: #3e2c82;
  --primary-purple-light: #5a4a9e;
  --primary-purple-accent: #4f2b7a;

  /* Gradient definitions */
  --gradient-orange: linear-gradient(
    135deg,
    #f4763d 0%,
    #ec5b46 50%,
    #e13552 100%
  );
  --gradient-purple: linear-gradient(135deg, #3e2c82 0%, #5a4a9e 100%);

  /* Functional colors */
  --primary-color: #f4763d;
  --primary-dark: #e13552;
  --accent-color: #3e2c82;
  --text-dark: #000000;
  --text-gray: #606161;
  --text-light-gray: #8b8b8b;
  --white: #ffffff;
  --border-color: #e5e5e5;

  /* Typography */
  --font-heading: "Albert Sans", sans-serif;
  --font-body: "Albert Sans", sans-serif;
  --font-accent: "Albert Sans", sans-serif;

  /* Layout */
  --content-width: 1400px;
  --header-height: 100px;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* ---------------------------------------------
   Typography
   --------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
}

h1 {
  font-size: 52px;
}
h2 {
  font-size: 42px;
}
h3 {
  font-size: 32px;
}
h4 {
  font-size: 24px;
}
h5 {
  font-size: 20px;
}
h6 {
  font-size: 17px;
}

/* ---------------------------------------------
   Layout
   --------------------------------------------- */
.content-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 50px;
}

.section {
  padding: 100px 0;
}

/* ---------------------------------------------
   Buttons
   --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-filled {
  padding: 15px 30px;
  background: var(--gradient-orange);
  color: var(--white);
  border: none;
}

.btn-filled:hover {
  background: var(--accent-color);
  color: var(--white);
}

.btn-hire {
  padding: 12px 28px;
  background: var(--gradient-orange);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 500;
}

.btn-hire:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outlined {
  padding: 15px 30px;
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.btn-outlined:hover {
  background: var(--gradient-orange);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-textual {
  padding: 0;
  background: none;
  border: none;
  color: var(--text-gray);
  position: relative;
}

.btn-textual .btn-icon {
  transition: transform var(--transition-fast);
}

.btn-textual:hover .btn-icon {
  transform: translateX(5px);
}

.btn-textual:hover {
  color: var(--primary-orange);
}

.btn-icon {
  width: 22px;
  height: 22px;
}

.btn-icon circle {
  transition: stroke-dashoffset var(--transition-medium),
    stroke var(--transition-fast);
  stroke-dasharray: 66;
  stroke-dashoffset: 0;
  stroke: currentColor;
}

.btn-textual:hover .btn-icon circle {
  stroke-dashoffset: 66;
  stroke: currentColor;
}

/* Upward arrow variant for Back to Top */
.btn-textual-up:hover .btn-icon {
  transform: translateY(-5px);
}

/* ---------------------------------------------
   Header
   --------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--white);
  transition: all var(--transition-fast);
  width: 100%;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-wrapper {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 5rem;
  width: 100%;
  padding: 0 50px;
}

.header-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.header-top {
  padding: 12px 0;
  max-height: 50px;
  opacity: 1;
  overflow: hidden;
  transition: max-height var(--transition-fast), opacity var(--transition-fast),
    padding var(--transition-fast);
}

.header.scrolled .header-top {
  max-height: 0;
  opacity: 0;
  padding: 0;
}

.header-top-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

.header-top-center {
  display: flex;
  align-items: center;
}

.header-top-right {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
}

.header-top-text {
  font-family: var(--font-accent);
  font-size: 14px;
  color: var(--text-light-gray);
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--primary-purple);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--gradient-orange);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 14px;
  height: 14px;
}

.header-bottom {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  flex: 1;
}

.header-bottom nav {
  display: flex;
}

.logo {
  padding: 0;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-shrink: 0;
}

.logo img,
.logo svg {
  width: auto;
  height: 4.5rem;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-fast), height var(--transition-fast);
}

.header.scrolled .logo img,
.header.scrolled .logo svg {
  height: 2.5rem;
}

.logo:hover img,
.logo:hover svg {
  transform: scale(1.01);
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 35px;
}

.nav-menu li {
  display: flex;
  align-items: center;
}

.nav-menu a {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  padding: 25px 0;
  display: block;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-orange);
  transition: width var(--transition-fast);
}

.nav-menu a:hover {
  color: var(--primary-orange);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--primary-orange);
}

.nav-menu a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002;
  background: transparent;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all var(--transition-fast);
  transform-origin: center;
  display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Header - Reference Style */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.mobile-header-logo img {
  height: 40px;
  width: auto;
}

.mobile-header-opener {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--text-dark);
  cursor: pointer;
}

.opener-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.opener-close {
  display: none;
}

.mobile-header.menu-opened .opener-open {
  display: none;
}

.mobile-header.menu-opened .opener-close {
  display: flex;
}

/* Mobile Navigation Dropdown */
.mobile-header-nav {
  max-height: 0;
  overflow: hidden;
  background-color: var(--white);
  transition: max-height 0.4s ease;
}

.mobile-header.menu-opened .mobile-header-nav {
  max-height: 400px;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0 20px 20px;
}

.mobile-nav-menu li {
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu li:last-child {
  border-bottom: none;
}

.mobile-nav-menu a {
  display: block;
  padding: 15px 0;
  color: var(--text-dark);
  font-size: 16px;
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav-menu a:hover {
  color: var(--primary-orange);
}

/* ---------------------------------------------
   Hero Section
   --------------------------------------------- */
.hero {
  height: 100dvh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: 20;
}

.hero-progress-bar {
  height: 100%;
  background: var(--gradient-orange);
  width: 0;
  transition: width 0.05s linear;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide.active .hero-slide-bg {
  animation: kenBurns 6s ease-out forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: absolute;
  bottom: 120px;
  right: 100px;
  z-index: 10;
  max-width: 650px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-slide.active ~ .hero-content .hero-tagline,
.hero .hero-tagline.animate {
  opacity: 1;
  transform: translateY(0);
}

.hero-tagline.changing {
  opacity: 0;
  transform: translateY(-20px);
}

.hero-nav {
  position: absolute;
  bottom: 50px;
  right: 100px;
  display: flex;
  gap: 15px;
  z-index: 10;
}

.hero-nav-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
  position: relative;
  overflow: visible;
}

.hero-nav-btn svg.arrow-icon {
  position: relative;
  z-index: 1;
  transition: all var(--transition-fast);
}

.hero-nav-btn:hover {
  color: var(--primary-orange);
  background-color: rgba(0, 0, 0, 0.2);
}

.hero-nav-btn:hover svg.arrow-icon {
  transform: scale(1.1);
}

/* Circle border animation for nav buttons */
.hero-nav-btn .circle-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hero-nav-btn .circle-progress circle {
  fill: none;
  stroke-width: 1;
  transition: stroke-dashoffset 0.5s ease;
}

/* White border circle - visible by default, draws out on hover */
.hero-nav-btn .circle-progress .circle-border {
  stroke: var(--white);
  stroke-dasharray: 188;
  stroke-dashoffset: 0;
}

.hero-nav-btn:hover .circle-progress .circle-border {
  stroke-dashoffset: 188;
}

/* ---------------------------------------------
   About Section
   --------------------------------------------- */
.about-section {
  padding: 120px 0;
  overflow: hidden;
  position: relative;
  background-image: linear-gradient(
    to right,
    var(--primary-purple-light),
    var(--primary-purple-accent)
  );
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-logo {
  width: 70px;
  height: auto;
}

.about-title {
  font-size: 36px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
  color: #fff;
  font-weight: 600;
}

.about-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.about-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content.animate {
  opacity: 1;
  transform: translateY(0);
}

.about-text {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
  margin-bottom: 40px;
  font-size: 16px;
  text-align: justify;
}

.about-section .btn-textual {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.about-section .btn-textual .btn-icon {
  stroke: #fff;
}

.about-section .btn-textual .btn-icon path {
  fill: #fff;
}

.about-section .btn-textual:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------------------------------------------
   Core Values Section
   --------------------------------------------- */
.core-values-section {
  padding: 100px 0;
  background-color: var(--white);
}

.core-values-list {
  display: flex;
  flex-direction: column;
}

.core-value-item {
  display: flex;
  align-items: center;
  padding: 50px 60px;
  transition: all var(--transition-fast);
  cursor: default;
  position: relative;
  z-index: 1;
}

.core-value-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--primary-purple) 0%,
    var(--primary-purple-light) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 0;
}
.core-value-item:hover::before {
  opacity: 1;
}

.core-value-item:hover .core-value-title {
  color: var(--white);
}

.core-value-item:hover .core-value-text {
  color: rgba(255, 255, 255, 0.8);
}

.core-value-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin-right: 40px;
  transition: all var(--transition-fast);
}

.core-value-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter var(--transition-fast);
}

/* Invert icon colors on hover to make them white */
.core-value-item:hover .core-value-icon img {
  filter: brightness(0) invert(1);
}

.core-value-content {
  flex: 1;
  max-width: 512px;
  position: relative;
  z-index: 2;
}

.core-value-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

.core-value-text {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.7;
  transition: color var(--transition-fast);
  margin: 0;
}

.core-value-btn {
  margin-left: auto;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
}

.core-value-item:hover .core-value-btn {
  opacity: 1;
  transform: translateX(0);
}

.core-value-btn .btn-icon {
  width: 32px;
  height: 32px;
  color: var(--white);
}

.core-value-btn .btn-icon circle {
  stroke: var(--white);
}

.core-value-btn .btn-icon path {
  fill: var(--white);
}

/* ---------------------------------------------
   Message & Vision Section
   --------------------------------------------- */
.message-section {
  width: 100%;
}

.message-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.message-content {
  background: var(--gradient-orange);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.message-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.message-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 25px;
  max-width: 36rem;
}

.message-quote {
  border-left: 2px solid rgba(255, 255, 255, 0.4);
  padding-left: 20px;
  margin-bottom: 30px;
  max-width: 36rem;
}

.message-quote p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}

.btn-outlined-white {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  width: fit-content;
}

.btn-outlined-white:hover {
  background: var(--white);
  color: var(--primary-orange);
}

.message-image {
  position: relative;
  overflow: hidden;
}

.message-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Responsive - Message Section */
@media (max-width: 1024px) {
  .message-row {
    min-height: 450px;
  }

  .message-content {
    padding: 60px 40px;
  }

  .message-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .message-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .message-row-reverse:nth-child(2) .message-image {
    order: 999;
  }

  .message-row-reverse {
    direction: ltr;
  }

  .message-row-reverse .message-image {
    order: -1;
  }

  .message-content {
    padding: 50px 30px;
  }

  .message-image {
    min-height: 300px;
  }

  .message-title {
    font-size: 28px;
  }
}

/* ---------------------------------------------
   Section Header
   --------------------------------------------- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 42px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  color: var(--text-gray);
}

.section-title.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------
   News Section
   --------------------------------------------- */
.news-list {
  display: flex;
  flex-direction: column;
  padding-inline: 2rem;
}

.news-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.news-item:nth-child(1) {
  transition-delay: 0.1s;
}
.news-item:nth-child(2) {
  transition-delay: 0.2s;
}
.news-item:nth-child(3) {
  transition-delay: 0.3s;
}
.news-item:nth-child(4) {
  transition-delay: 0.4s;
}

.news-item-inner {
  display: flex;
  align-items: center;
  padding: 50px 0;
  gap: 0;
}

/* Date block */
.news-date {
  flex-shrink: 0;
  min-width: 100px;
}

.news-date a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.news-date-day {
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  color: #e13552;
  transition: color var(--transition-fast);
}

.news-date-month,
.news-date-year {
  font-size: 16px;
  color: #e13552;
  letter-spacing: 0.5px;
}

/* Diagonal line separator */
.news-separator {
  position: relative;
  width: 80px;
  height: 100px;
  flex-shrink: 0;
}

.news-separator::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.8);
  transform: rotate(20deg);
  transform-origin: center;
}

/* Meta area (category + author) */
.news-meta {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  flex-shrink: 0;
}

.news-category {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 400;
}

.news-author {
  font-size: 14px;
  color: #8b8b8b;
}

.news-author a {
  color: #8b8b8b;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-author a:hover {
  color: var(--primary-orange);
}

/* Content area (title) */
.news-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 40px;
  justify-content: flex-end;
}

.news-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  color: #1a1a1a;
}

.news-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-item:hover .news-title a {
  color: var(--primary-orange);
}

.news-item:hover .news-date-day,
.news-item:hover .news-date-month,
.news-item:hover .news-date-year {
  color: var(--primary-orange);
}

/* Responsive adjustments for News Section */
@media (max-width: 1024px) {
  .header .logo img,
  .header .logo svg {
    padding: 0.5rem 0;
    height: 3.5rem;
  }

  .header.scrolled .logo img,
  .header.scrolled.logo svg {
    height: 3rem;
  }

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

  .about-title {
    font-size: 32px;
  }

  .about-logo {
    width: 60px;
  }

  .news-list {
    padding-inline: 1rem;
  }
  .news-item-inner {
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 0;
  }

  .news-date {
    min-width: 80px;
  }

  .news-date-day {
    font-size: 56px;
  }

  .news-separator {
    width: 60px;
    height: 80px;
  }

  .news-content {
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 80px 0;
  }

  .about-left {
    gap: 20px;
  }

  .about-logo {
    width: 50px;
  }

  .about-title {
    font-size: 26px;
  }

  .about-text {
    font-size: 14px;
    margin-bottom: 25px;
    text-align: left;
  }

  .news-list {
    padding-inline: 0;
  }
  .news-item-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 30px 0;
  }

  .news-date {
    min-width: auto;
  }

  .news-date a {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .news-date-day {
    font-size: 36px;
  }

  .news-date-month,
  .news-date-year {
    font-size: 14px;
  }

  .news-separator {
    display: none;
  }

  .news-meta {
    flex-direction: row;
    gap: 10px;
    min-width: auto;
  }

  .news-content {
    padding-left: 0;
  }

  .news-title {
    font-size: 16px;
  }
}

/* ---------------------------------------------
   Team Section - 2-Column Layout with Side Info
   --------------------------------------------- */
.team-section {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.team-row {
  display: flex;
  width: 100%;
}

/* Each team member takes 50% width (2 per row) */
.team-member {
  flex: 1;
  display: flex;
  position: relative;
}

/* Row 1 (members 1 & 2): Info LEFT, Image RIGHT (default order) */
/* Row 2 (members 3 & 4): Image LEFT, Info RIGHT (reversed order) */
.team-member:nth-child(3) .team-member-info,
.team-member:nth-child(4) .team-member-info {
  order: 2;
}

.team-member:nth-child(3) .team-member-image,
.team-member:nth-child(4) .team-member-image {
  order: 1;
}

/* Info section - Purple solid background */
.team-member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(to right, #2c2967, #512d7a);
}

.team-member-info-inner {
  padding: 40px;
}

/* Line positioned absolutely in center - with redraw animation on hover */
.team-member-line {
  width: 20%;
  height: 1px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  overflow: hidden;
}

/* Line uses ::after for the draw/redraw animation */
.team-member-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.5s ease;
}

/* On hover, redraw the line from left to right */
.team-member:hover .team-member-line::after {
  animation: lineRedraw 0.6s ease forwards;
}

@keyframes lineRedraw {
  0% {
    transform: scaleX(1);
    transform-origin: right;
  }
  50% {
    transform: scaleX(0);
    transform-origin: right;
  }
  50.1% {
    transform: scaleX(0);
    transform-origin: left;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.team-member-info h4 {
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.team-member-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 25px;
  letter-spacing: 0.3px;
}

.team-member-info .btn-textual {
  color: var(--white);
  width: fit-content;
}

.team-member-info .btn-textual:hover {
  color: var(--primary-orange);
}

.team-member-info .btn-icon {
  width: 22px;
  height: 22px;
}

/* Image section - Grayscale with hover effect */
.team-member-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.5s ease;
}

.team-member:hover .team-member-image img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Responsive adjustments for Team Section */
@media (max-width: 1024px) {
  .team-section {
    grid-template-columns: 1fr;
  }

  .team-member {
    min-height: 300px;
  }

  .team-member-info,
  .team-member-image {
    flex: 1;
  }

  .team-member-line {
    width: 15%;
  }

  .team-member:nth-child(even) .team-member-info {
    order: 99;
  }
  .team-member:nth-child(odd) .team-member-info {
    order: -99;
  }
}

@media (max-width: 768px) {
  .team-member {
    flex-direction: column;
    min-height: auto;
  }
  .team-member .team-member-info {
    order: 99 !important;
  }

  .team-member-info {
    padding: 40px 30px;
  }

  .team-member-info h4 {
    font-size: 20px;
  }

  .team-member-image {
    aspect-ratio: 1/1;
  }

  /* Hide the line on mobile (stacked layout) */
  .team-member-line {
    display: none;
  }
}

/* ---------------------------------------------
   CTA Section
   --------------------------------------------- */
.cta-section {
  background: linear-gradient(to right, #f4763d 0%, #ec5b46 50%, #e13552 100%);
  padding: 120px 0;
  overflow: hidden;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.cta-title {
  font-size: 32px;
  font-weight: 500;
  max-width: 650px;
  color: var(--white);
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.cta-title.animate {
  opacity: 1;
  transform: translateX(0);
}

.cta-button {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease 0.2s;
  flex-shrink: 0;
}

.cta-button.animate {
  opacity: 1;
  transform: translateX(0);
}

.cta-section .btn-outlined {
  border-color: var(--white);
  color: var(--white);
  border-radius: 30px;
  padding: 16px 32px;
  font-weight: 400;
}

.cta-section .btn-outlined:hover {
  background: var(--white);
  color: var(--primary-coral);
  border-color: var(--white);
}

/* ---------------------------------------------
   Footer
   --------------------------------------------- */
.footer {
  background-color: var(--white);
  padding-top: 80px;
}

.footer-top {
  padding-bottom: 60px;
}

.footer-logo-area {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-logo-line {
  grid-column: span 3;
}
.footer-logo img,
.footer-logo svg {
  height: 60px;
  width: auto;
}

.footer-logo-line {
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
}

.footer-widget h5 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--text-gray);
  letter-spacing: 0.5px;
}

.footer-menu li {
  margin-bottom: 8px;
}

.footer-menu a {
  color: var(--text-light-gray);
  font-size: 15px;
  transition: all var(--transition-fast);
  position: relative;
  display: inline-block;
}

.footer-menu a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-orange);
  transition: width var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--primary-orange);
}

.footer-menu a:hover::after {
  width: 100%;
}

.footer-contact p {
  color: var(--text-light-gray);
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.footer-contact a {
  color: var(--text-light-gray);
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--primary-orange);
}

/* Social Icons in Footer */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  background: linear-gradient(135deg, #e76438, #e85a50) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  transition: all var(--transition-fast);
}

.footer-social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(231, 100, 56, 0.4);
  background: linear-gradient(135deg, #e76438, #e85a50) !important;
}

.footer-social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  padding: 25px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .footer-grid-filler {
    display: none;
  }
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-logo-area {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .footer-logo-line {
    grid-column: span 1;
  }
  .footer {
    padding-top: 50px;
  }

  .footer-logo-area {
    margin-bottom: 40px;
  }

  .footer-logo img,
  .footer-logo svg {
    height: 50px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-widget {
    text-align: center;
  }

  .footer .social-icons {
    justify-content: center;
  }
}

/* ---------------------------------------------
   Back to Top
   --------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gradient-orange);
  color: var(--white);
  transform: translateY(-5px);
}

/* ---------------------------------------------
   Animations
   --------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------------------------------------------
   Responsive Styles
   --------------------------------------------- */
@media (max-width: 1200px) {
  h1,
  .hero-tagline,
  .about-title {
    font-size: 42px;
  }
  h2,
  .section-title {
    font-size: 36px;
  }
}

@media (max-width: 1024px) {
  /* Hide desktop header, show mobile header */
  .header {
    display: none;
  }

  .mobile-header {
    display: block;
  }

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

  .hero-nav {
    right: 30px;
    bottom: 32px;
  }

  .hero-content {
    right: 30px;
    bottom: 100px;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-title {
    max-width: 100%;
  }

  /* Core Values - tablet adjustments */
  .core-value-item {
    padding: 40px 30px;
  }

  .core-value-icon {
    width: 50px;
    height: 50px;
    margin-right: 30px;
  }

  .core-value-content {
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .content-grid {
    padding: 0 20px;
  }

  .header-bottom {
    padding: 0 20px;
  }

  h1,
  .hero-tagline,
  .about-title {
    font-size: 32px;
    padding-inline-start: 1rem;
    padding-bottom: 2rem;
  }
  h2,
  .section-title,
  .cta-title {
    font-size: 28px;
  }
  h3 {
    font-size: 24px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .hero-nav-btn {
    width: 50px;
    height: 50px;
  }

  .hero-tagline {
    font-size: 28px;
  }

  /* Core Values - mobile adjustments */
  .core-values-section {
    padding: 60px 0;
  }

  .core-value-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 35px 20px;
  }

  .core-value-icon {
    width: 50px;
    height: 50px;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .core-value-content {
    max-width: 100%;
  }

  .core-value-title {
    font-size: 18px;
  }

  .core-value-text {
    font-size: 14px;
  }

  .core-value-btn {
    position: absolute;
    top: 35px;
    right: 20px;
    opacity: 1;
    transform: none;
  }

  .core-value-btn .btn-icon {
    color: var(--text-gray);
  }

  .core-value-btn .btn-icon circle {
    stroke: var(--text-gray);
  }

  .core-value-btn .btn-icon path {
    fill: var(--text-gray);
  }

  .core-value-item:hover .core-value-btn .btn-icon {
    color: var(--white);
  }

  .core-value-item:hover .core-value-btn .btn-icon circle {
    stroke: var(--white);
  }

  .core-value-item:hover .core-value-btn .btn-icon path {
    fill: var(--white);
  }
}

@media (max-width: 480px) {
  .hero-content {
    max-width: 100%;
    right: 20px;
    left: 20px;
    bottom: 80px;
  }

  .hero-nav {
    right: 20px;
    bottom: 32px;
  }

  .mobile-nav-menu a {
    font-size: 22px;
  }
}
