/* ==== Gilroy Variants ==== */
@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Gilroy-bold";
  src: url("assets/fonts/Gilroy-Medium.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Gilroy";
  src: url("assets/fonts/Gilroy-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

/* ==== Chronicle Display Variants ==== */
@font-face {
  font-family: "Chronicle Display";
  src: url("assets/fonts/Chronicle Display Light Italic.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Chronicle Display";
  src: url("assets/fonts/Chronicle Display Black.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Chronicle Display";
  src: url("assets/fonts/ChronicleDisplay-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Chronicle Display";
  src: url("assets/fonts/ChronicleDisplay-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Chronicle Display";
  src: url("assets/fonts/Chronicle Display Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html.rtl body {
  text-align: right;
}

html:not(.rtl) body {
  text-align: left;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  color: white;
  background: #191919;
  padding-top: 100px; /* Marge pour la navbar fixe */
  overflow-y: auto !important; /* Force vertical scroll to work */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Fix for RTL scroll issue - merged with later rule */

a {
  color: inherit;
  text-decoration: none;
}
section:not(.hero) {
  padding-left: 20vw;
  padding-right: 20vw;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  background: transparent;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 47px;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  direction: ltr !important; /* Force LTR for navbar */
}

.header > .logo {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  margin-right: auto !important; /* Force to stay left */
  margin-left: 0 !important; /* Prevent RTL from moving it */
}

.loader .spinner {
  border: 3px solid rgba(255, 83, 83, 0.3); /* Light gray border */
  border-top: 3px solid white; /* White top for spinner effect */
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.mobile-only {
  display: none !important;
}

.header.scrolled {
  background-color: rgba(25, 25, 25, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.logo {
  height: 80px;
  width: auto;
  margin: 0;
  transition: height 1s ease;
  position: relative;
  z-index: 10;
}

.logo.scrolled {
  height: 80px;
  width: auto;
}

.header-right {
  position: relative;
  display: flex;
  direction: ltr !important; /* Already exists, ensure !important */
  gap: 26px;
  z-index: 10;
  flex-shrink: 0;
  margin-left: auto; /* Force to stay right in RTL */
}

/* Navigation Styles */
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
  direction: ltr; /* Keep menu items LTR */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  font-family: 'Gilroy', sans-serif;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s;
  text-decoration: none;
}

.nav-links a:hover {
  color: #ff0000;
  text-decoration: underline;
}

.nav-links a.active {
  color: #ff0000;
}

/* Mobile menu */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: white;
  transition: 0.3s;
}

/* Countdown Timer Styles */
.countdown-section {
  padding: 60px 20vw;
  text-align: center;
  background: #191919;
}

.countdown-section h2 {
  font-family: 'Chronicle Display', serif;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #fbd784;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.time-unit span {
  font-family: 'Gilroy', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #ff0000;
  display: block;
  line-height: 1;
}

.time-unit label {
  font-family: 'Gilroy', sans-serif;
  font-size: 1rem;
  color: white;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* RTL Support for Header */
html[dir="rtl"] .header-right {
  margin-left: auto;
  margin-right: 0;
}

html[dir="rtl"] .header > .logo {
  margin-right: auto !important;
  margin-left: 0 !important;
  order: -1; /* Force logo to be first element */
}

html[dir="rtl"] .main-nav {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.language-dropdown {
  direction: ltr !important;
}

html[dir="rtl"] .language-dropdown {
  direction: ltr !important;
}

/* Additional logo positioning safeguards */
.header .logo {
  position: relative !important;
  left: 0 !important;
  right: auto !important;
  float: left !important;
}

html[dir="rtl"] .header .logo {
  position: relative !important;
  left: 0 !important;
  right: auto !important;
  float: left !important;
  order: -1 !important;
}

/* ================================
   Page Transition Animations
   ================================ */

/* Page fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Apply fade in to body on page load */
body {
  animation: fadeIn 0.4s ease-out;
}

/* Smooth transition for navigation links */
.nav-links a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  transform: translateY(-2px);
}

/* Page transition wrapper */
.page-transition {
  animation: fadeIn 0.5s ease-out;
}

/* Content sections fade in */
.content-section,
.page-content,
.countdown-section {
  animation: fadeIn 0.6s ease-out 0.1s both;
}

/* Hero section special animation */
.hero-section {
  animation: fadeIn 0.8s ease-out;
}

/* Form fade in */
#application-form {
  animation: fadeIn 0.6s ease-out 0.2s both;
}

/* Centrer uniquement la section hero (titre + description) */
.page-content .hero-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.page-content .hero-text h1 {
  text-align: center;
  margin-bottom: 20px;
}

.page-content .hero-text p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Support RTL pour le hero */
html[dir="rtl"] .page-content .hero-text,
html[dir="rtl"] .page-content .hero-text h1,
html[dir="rtl"] .page-content .hero-text p {
  text-align: center;
}

/* Support RTL pour le menu burger */
html[dir="rtl"] .nav-links {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .nav-links a {
  text-align: right;
  padding: 10px 20px 10px 0;
}

/* Amélioration du menu burger RTL */
html[dir="rtl"] .main-nav {
  direction: rtl;
}

html[dir="rtl"] .burger-menu {
  order: -1;
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 768px) {
  html[dir="rtl"] .nav-links {
    text-align: right;
    padding: 20px 20px 20px 0;
    right: 0;
    left: auto;
  }
  
  html[dir="rtl"] .nav-links a {
    text-align: right;
    padding: 15px 20px 15px 0;
    border-bottom: 1px solid #333;
    display: block;
    width: 100%;
  }
  
  html[dir="rtl"] .nav-links a:hover {
    background-color: #333;
    color: #ff0000;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .page-content .hero-text {
    margin: 0 auto 40px;
    padding: 0 15px;
  }
}

/* Smooth transitions for interactive elements */
.apply-btn,
.language-dropdown,
.burger-menu {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.language-dropdown:hover {
  transform: scale(1.05);
}

/* Burger menu animation */
.burger-menu span {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu slide in */
.nav-links {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
  .nav-links.active {
    animation: slideDown 0.4s ease-out;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    position: static;
    transform: none;
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: #191919;
    flex-direction: column;
    padding: 20px;
    z-index: 1000;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .countdown-timer {
    gap: 20px;
  }
  
  .time-unit {
    min-width: 80px;
  }
  
  .time-unit span {
    font-size: 2rem;
  }
  
  .countdown-section h2 {
    font-size: 2rem;
  }
}

button {
  background-color: #ff0000;
  color: white;
  border: none;
  padding: 10px 20px;
  font-family: Roboto;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
  cursor: pointer;
}

.language-dropdown {
  height: 51px;
  border: 1px solid #ffffff;
  padding: 17px 8px 17px 8px;
  display: flex;
  direction: ltr;
  align-items: center;
  gap: 26px;
  color: white;
  background-color: transparent;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.language-dropdown .logo {
  width: 16px;
  height: 18px;
}

.language-dropdown .arrow {
  height: 16px;
  margin-left: -20px;
  transition: transform 0.3s ease;
  transform-origin: center center; /* Pivot from center */
}

.language-dropdown.open .arrow {
  transform: rotate(180deg);
}

.language-dropdown .lang-options {
  position: absolute;
  top: 54px;
  left: 0;
  width: 100%;
  background: #191919; /* Matches body bg */ /* transparent effect */
  border: 1px solid #fff;
  z-index: 10;
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}

.language-dropdown .lang-options li {
  padding: 8px;
  text-align: center;
  cursor: pointer;
  color: white;
}

.language-dropdown.open .lang-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Button */
.apply-btn {
  background: #ff0000;
  color: white;
  border: none;
  padding: 15px 25px;
  display: block;
  height: 51px;
  cursor: pointer;
  font-family: Roboto;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
}

/* Hero Section */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
}

.scroll-down {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  cursor: pointer;
  font-size: 1rem;
  color: inherit;
  text-decoration: none;
  z-index: 10;
  transition: opacity 0.3s ease;
  margin-top: 32px;
}

#hero .scroll-down::after {
  content: attr(data-text);
}

.hero {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, #191919),
    url("assets/bg.jpg") no-repeat center/cover;
  padding-top: 100px;
  min-height: 100vh;
  text-align: center;
}

/* Logos */
.logos {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
}

.logo-container {
  flex: 1 1 33%;
  max-width: 33%;
  padding: 0px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* .logo-container img styles removed - using default sizing */

.logo-1,
.logo-2,
.logo-3 {
  height: 100%;
  max-width: 100%;
  width: auto;
}
/* .logo-1,
.logo-2,
.logo-3 {
  height: auto;
  max-height: 200px;
  width: auto;
} */
/* Scroll Text */
.scroll-text {
  font-family: Gilroy;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0px;
}

/* Date Special Text */

.title-text {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 180px 229px;
  text-align: center;
  flex-direction: column;
}

.hero-text {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

/* Date line wrapper with decorative lines */
.date {
  position: relative;
  font-family: "Gilroy";
  font-weight: 800;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 6px;
  text-transform: uppercase;
  background: none;
  color: #fbd784;
  display: inline-block;
  padding: 0 24px;
  margin-bottom: 24px;
}

.date::before,
.date::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 72px;
  height: 2px;
  background-color: #fbd784;
}

.date::before {
  left: -96px; /* 72 + 24 gap */
  transform: translateY(-50%);
}

.date::after {
  right: -96px;
  transform: translateY(-50%);
}

/* Title h1 */
.title {
  font-family: "Chronicle Display";
  font-weight: 700;
  font-size: clamp(28px, 6vw, 64px);
  line-height: clamp(32px, 7vw, 72px);
  letter-spacing: 0%;
  text-align: center;
  color: #ffffff;
}

/* Title (e.g., .title or Request Info) */
.request-info {
  font-family: "Chronicle Display";
  font-weight: 700;
  font-size: 64px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  max-width: 800px;
  margin: 20px auto 0;
}

/* Paragraphs */
.content {
  padding: 0 5%;
  margin: 72px 5%;
  font-family: "Gilroy-bold";
  font-weight: 400;
  font-size: clamp(16px, 2vw, 24px);
  line-height: clamp(24px, 3vw, 32px);
  letter-spacing: 0px;
  text-align: justify;
}

.content p {
  margin-bottom: 72px;
}
.form-content {
  padding: 0;
  margin: 72px 5%;
  font-family: "Gilroy-bold";
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0px;
  text-align: justify;
}

.form-content p {
  margin-bottom: 72px;
}

#festival-video {
  width: 100%;
  display: block;
  margin-top: 72px;
}

/* Video */
video {
  width: 100%;
  margin-top: 72px;
}

/* Subscribe Section */
.subscribe {
  background: #222;
  padding: 40px 20px;
  text-align: center;
}

.subscribe button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #ffc107;
  border: none;
  color: black;
  cursor: pointer;
  font-family: Roboto;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
}

footer {
  display: flex;
  justify-content: space-between;
  background: #191919;
  align-items: center;
}

/* Left Side: Logos */
.footer-left {
  display: flex;
  gap: 48px;
  flex: 1;
  justify-content: start;
  align-items: center;
}

.footer-logo {
  width: auto;
  height: clamp(
    80px,
    10vh,
    200px
  ); /* scales between 80px and 200px depending on viewport height */
}

/* Right Side: Social */
.footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}
.social {
  width: fit-content;
  height: fit-content;
}

.social p {
  margin-bottom: 10px;
  font-family: "Gilroy";
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0px;
  color: #fbd784;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a img {
  height: 20px;
  width: auto;
}

/* Bottom Copyright */
.footer-bottom {
  text-align: center;
  margin: 72px 0 27px;
  font-family: Gilroy;
  font-weight: 400;
  font-size: 18px;
  line-height: 32px;
  letter-spacing: 0px;
  color: #fff;
}
.hero-wrapper {
  min-height: 60vh; /* Adjust for enough breathing space on desktops */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 50px;
  padding-right: 50px;
}

#hero {
  justify-content: space-around;
}

.catalogue-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
}

.catalogue-content a {
  display: block;
  width: 100%;
  min-width: clamp(360px, 70vw, 760px);
  margin: 0 auto;
}

.catalogue-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.jury-page .content-block {
  margin-top: 60px;
}

.jury-page .content-block.wide {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.stats-list,
.jury-list,
.films-list,
.events-list {
  list-style: disc;
  padding-left: 24px;
  margin: 32px 0;
  display: grid;
  gap: 16px;
}

.stats-list ol {
  list-style: decimal;
  margin-top: 16px;
  padding-left: 24px;
  display: grid;
  gap: 12px;
}

.jury-list strong,
.events-list strong {
  font-family: "Gilroy";
}

.tribute-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 32px;
}

.tribute-grid article h3 {
  font-family: "Chronicle Display";
  font-size: clamp(20px, 2vw, 28px);
  color: #fbd784;
  margin-bottom: 16px;
}

.feature-film {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 12px;
}

.feature-film h3 {
  font-family: "Chronicle Display";
  font-size: clamp(20px, 2vw, 26px);
  color: #fbd784;
}

.films-list {
  list-style: none;
  padding-left: 0;
}

.films-list li::before {
  content: "•";
  color: #fbd784;
  margin-right: 12px;
}

html[dir="rtl"] .jury-page .stats-list,
html[dir="rtl"] .jury-page .jury-list,
html[dir="rtl"] .jury-page .films-list,
html[dir="rtl"] .jury-page .events-list {
  direction: rtl;
}

html[dir="rtl"] .jury-page ol {
  list-style-type: arabic-indic;
  padding-right: 24px;
  padding-left: 0;
}

html[dir="rtl"] .jury-page .events-list.numbered {
  padding-right: 30px;
}

html[dir="rtl"] .jury-page .stats-list ol {
  padding-right: 24px;
  padding-left: 0;
}

.events-list.numbered {
  list-style: decimal;
  padding-left: 24px;
}

.events-list.numbered li::marker {
  color: #fbd784;
  font-family: "Gilroy";
}

.events-list em,
.stats-list em {
  font-style: normal;
  color: #fbd784;
}

#hero .apply-btn.mobile-only {
  margin-top: 0px;
  margin-inline: 14px;
}
.hero-wrapper .logos {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
}
.mobile-break {
  display: none;
}
/* Responsive */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }
  .mobile-break {
    display: inline;
  }

  .hero-wrapper .logos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }
  .language-dropdown {
    height: 28px;
    border: 1px solid #ffffff;
    padding: 3px 5px 4px 5px;
    gap: 25px;
  }

  .language-dropdown .lang-options {
    position: absolute;
    top: 28px;
    transform: translateY(-4px);
  }

  .hero {
    padding: 8vh 0 0 0; /* reduce padding for landscape on small screens */
  }

  .logos {
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .logo {
    height: auto;
    width: 60px; /* control width */
    max-height: 170px; /* limit height */
    flex: 0 0 auto;
  }
  /* .logo-1,
  .logo-2,
  .logo-3 {
    height: auto;
    max-height: 70px; 
    flex: 0 0 auto;
  } */
  .logo.scrolled {
    height: 50px;
    width: auto;
  }

  .logo-container {
    flex: 0 0 25%;
    max-width: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .title-text {
    padding: 30px 0;
    margin-inline: 20px;
  }

  .title {
    font-size: 26px;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0 10px;
    line-height: 1.2;
  }

  .scroll-down {
    font-size: 12px;
    margin-top: 12px;
    bottom: auto;
  }

  .catalogue-content {
    padding: 0 24px;
  }

  .catalogue-content a {
    max-width: min(640px, 92vw);
  }

  .jury-page .content-block {
    margin-top: 40px;
  }

  .jury-page .content-block.wide {
    max-width: none;
    width: 100%;
    padding: 0;
  }

  .tribute-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats-list,
  .jury-list,
  .events-list {
    padding-left: 20px;
    gap: 12px;
    margin: 24px 0;
  }

  .stats-list ol {
    padding-left: 20px;
  }

  .feature-film {
    padding: 18px;
  }

  .content {
    padding: 0;
    margin: 40px 14px;
    font-size: 15px;
  }

  .date {
    font-size: 12px;
    margin: 20px auto 30px;
    text-align: center;
    position: relative;
    letter-spacing: 0px;
    padding: 0 10px;
  }

  .date::before,
  .date::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 24px;
    height: 2px;
    background-color: #fbd784;
  }

  .date::before {
    left: 0;
    transform: translate(-130%, -50%);
  }

  .date::after {
    right: 0;
    transform: translate(130%, -50%);
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  footer {
    padding: 0 20px;
    margin: 60px 0 0;
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .footer-left {
    display: flex;
    gap: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .footer-logo {
    width: auto;
    height: clamp(60px, 12vh, 100px);
  }

  .social {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-right {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
  }

  .header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    right: 34px;
  }

  .footer-bottom {
    margin: 40px 14px 17px;
    font-size: 14px;
    text-align: center;
  }
  section:not(.hero) {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}

@media (max-width: 1024px) {
  .content {
    padding: 0 80px;
    margin: 72px 60px;
    font-size: 20px;
    line-height: 30px;
  }
  .hero-wrapper {
    min-height: 50vh;
  }

  /*.logo-container img {*/
  /*  height: clamp(80px, 24vh, 180px);*/
  /*}*/
}

@media (max-width: 900px) {
  .content {
    padding: 0 40px;
    margin: 72px 40px;
    font-size: 18px;
    line-height: 28px;
  }
}

/* Press Articles Carousel Styles */
.press-carousel-section {
  padding: 60px 20vw;
  margin: 40px 0;
}

.press-carousel-section h2 {
  font-family: 'Chronicle Display', serif;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #fbd784;
  text-align: center;
}

.press-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(25, 25, 25, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  padding: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
  background: rgba(25, 25, 25, 0.95);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.carousel-arrow-left {
  left: 10px;
}

.carousel-arrow-left img {
  transform: rotate(90deg);
}

.carousel-arrow-right {
  right: 10px;
}

.carousel-arrow-right img {
  transform: rotate(-90deg);
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
  padding: 10px 0;
  /* Prevent carousel from blocking body scroll */
  touch-action: pan-x pinch-zoom;
}

/* Fix for RTL carousel scroll - allow vertical page scroll */
html[dir="rtl"] .carousel-track {
  direction: ltr; /* Keep carousel LTR even in RTL mode */
  touch-action: pan-x pinch-zoom;
}

/* Fix for RTL scroll issue - ensure body can always scroll vertically */
html[dir="rtl"] body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  max-height: none !important;
}

/* Also ensure html element allows scroll in RTL */
html[dir="rtl"] {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100% !important;
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.carousel-item {
  flex-shrink: 0;
  width: 300px;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.carousel-item a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.carousel-item:hover a img {
  opacity: 0.9;
}

/* Responsive Styles for Carousel */
@media (max-width: 1024px) {
  .press-carousel-section {
    padding: 40px 10vw;
  }

  .press-carousel-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .carousel-item {
    width: 250px;
    height: 350px;
  }

  .carousel-track {
    gap: 15px;
  }

  .carousel-arrow {
    width: 45px;
    height: 45px;
  }

  .carousel-arrow img {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .press-carousel-section {
    padding: 30px 5vw;
    margin: 30px 0;
  }

  .press-carousel-section h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }

  .carousel-item {
    width: 200px;
    height: 280px;
  }

  .carousel-track {
    gap: 12px;
    padding: 5px 0;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .carousel-arrow img {
    width: 18px;
    height: 18px;
  }

  .carousel-arrow-left {
    left: 5px;
  }

  .carousel-arrow-right {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .press-carousel-section {
    padding: 20px 5vw;
    margin: 20px 0;
  }

  .press-carousel-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .carousel-item {
    width: 160px;
    height: 220px;
  }

  .carousel-track {
    gap: 10px;
  }

  .carousel-arrow {
    width: 35px;
    height: 35px;
  }

  .carousel-arrow img {
    width: 16px;
    height: 16px;
  }

  .carousel-arrow-left {
    left: 2px;
  }

  .carousel-arrow-right {
    right: 2px;
  }
}