/* Festival Page Styles - RTL Support */

/* Global Background */
body {
  background: white;
  min-height: 100vh;
 
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section - Image Above Header */
.festival-hero {
  position: relative;
  width: 100%;
  background: transparent;
  margin: 0;
}

/* Hero Image Section */
.hero-image-section {
  position: relative;
  width: 100%;
  min-height: 200px;
  overflow: hidden;
  margin-bottom: 0;
  background: linear-gradient(135deg, #33b1e6, #fb2095);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.hero-placeholder::after {
  content: "טוען תמונה...";
}

/* Header Content Below Image - With White Background */
.hero-content {
  text-align: center;
  color: #333;
  width: 100%;
  margin: 2rem 0 ;
  padding: 0;
  background: white;
  
}

/* Base Typography - Mobile First */
.festival-title {
  font-size: 24px;
  margin: 0;
  width: auto;
  padding: 20px;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
  color: #333;
  position: relative;
}

/* Thick gradient line underneath the title - full screen width */
.festival-title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  width: 100vw;
  height: 8px;
  background: linear-gradient(135deg, #33b1e6, #fb2095);
  margin-left: calc(-50vw + 50%);
}

/* Festival Video Sections */
.festival-video-desktop {
  display: block; /* Show embedded video on all devices */
}

.festival-video-mobile {
  display: none; /* Hide mobile button - use embedded video instead */
}

/* Desktop Video Styles */
.festival-video-desktop .video-section {
  max-width: 760px;
  width: 95%;
  margin: 2rem auto;
  align-self: center;
}

.festival-video-desktop .trailer {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background: #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.festival-video-desktop .trailer:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.festival-video-desktop .trailer iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* Festival Video Button */
.festival-video-button {
  display: flex;
  justify-content: center;
  margin: 0.5rem;
  cursor: pointer;
}

.festival-video-button svg {
  width: 80px;
  height: 80px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.festival-video-button:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.festival-video-button:active svg {
  transform: scale(1.05);
}

/* Video Modal Styles (fixed positioning and z-index) */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  position: relative;
  background-color: #000;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 10001;
}

.close {
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  position: absolute;
  top: -50px;
  right: 0;
  z-index: 10002;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.close:hover,
.close:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

#video-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 10001;
}

#video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 10001;
}

.festival-description {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

/* Section Titles */
.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--main-text-primary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 50%;
  margin-right: -30px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #33b1e6, #fb2095);
  border-radius: 2px;
}

/* Festival Info Section */
.festival-info {
  padding: 0;
  background: white;
}

/* Festival Description */
.festival-info-description {
  text-align: right;
  margin-bottom: 1rem;
  max-width: 800px;
}

.festival-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: var(--main-text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.festival-about {
  font-size: 16px;
  line-height: 1.6;
  color: var(--main-text-secondary);
  margin: 0;
}

/* Event Highlights Title */
.event-highlights-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--main-text-primary);
  margin-bottom: 2rem;
  text-align: left;
}

/* Event Highlights Grid */
.event-highlights-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 600px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.highlight-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-text-secondary);
}

.highlight-content {
  flex: 1;
}

.highlight-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--main-text-primary);
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.highlight-text {
  font-size: 14px;
  color: var(--main-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Festival Events Section - Lineup Style */
.festival-events {
  padding: 2rem 0;
  background: white;
}

.events-section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--main-text-primary);
  position: relative;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Container to center the title */
.festival-events .container {
  text-align: center;
}

/* Gradient underline for events section title */
.events-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #33b1e6, #fb2095);
  border-radius: 2px;
}

/* No Events Message */
.no-events-message {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--main-text-secondary);
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #e0e0e0;
  margin: 2rem 0;
}

.no-events-icon {
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.no-events-message h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--main-text-primary);
  margin: 0 0 1rem 0;
}

.no-events-message p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Lineup Header */
.lineup-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.back-button {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--main-text-primary);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #f0f0f0;
}

.lineup-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--main-text-primary);
  margin: 0 0 1rem 0;
  text-align: center;
}

.lineup-description {
  font-size: 1rem;
  color: var(--main-text-secondary);
  text-align: center;
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}



/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.filter-tab {
  background: transparent;
  border: 1px solid #e0e0e0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--main-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.filter-tab:hover {
  border-color: #fb2095;
  color: #fb2095;
  background: rgba(251, 32, 149, 0.05);
}

.filter-tab.active {
  background: #fb2095;
  border-color: #fb2095;
  color: white;
  box-shadow: 0 2px 8px rgba(251, 32, 149, 0.2);
}

/* Date Sections */
.date-section {
  margin-bottom: 2.5rem;
}

.date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.5rem 0;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.date-header:hover {
  background-color: #f8f9fa;
}

.date-header:hover .collapse-icon {
  background: #e0e0e0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.date-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--main-text-primary);
  margin: 0;
}

.collapse-icon {
  transition: transform 0.3s ease;
  color: var(--main-text-primary);
  background: #f0f0f0;
  border-radius: 50%;
  padding: 4px;
  width: 32px;
  height: 32px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-section.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.date-section.collapsed .collapsible-content {
  display: none; /* Use display instead of max-height for cleaner collapse */
}

/* Events List - Default Mobile/Tablet Layout */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lineup-event-link {
  text-decoration: none;
  color: inherit;
  display: block;
  outline: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.lineup-event-link:hover,
.lineup-event-link:focus,
.lineup-event-link:active,
.lineup-event-link:visited {
  text-decoration: none;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}

/* Event Link Wrapper */
.lineup-event-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.lineup-event-item {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  padding: 0.5rem 0;
  position: relative;
  width: 100%;
}

.event-image-container {
  flex-shrink: 0;
  
  display: flex;
  align-items: flex-end;
  align-self: flex-end;
}

.lineup-event-image {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
}

.lineup-event-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lineup-event-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-right: 1rem;
 
}

.event-main-info {
  flex: 1;
}

.fest-container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    width: 100%;
  }

.lineup-event-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--main-text-primary);
  margin: 0 0 0.3rem 0;
  line-height: 1.4;
  background: none;
  width: 100%;
  text-align: right;
}

/* Event Meta Information */
.event-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.event-presentation {
  background: none;
  color: var(--main-text-secondary);
  display: flex;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 0.5rem;

  width: 100%;
  text-align: right;
  z-index: 1;
}

.event-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: var(--main-text-secondary);
}

.event-category svg {
  flex-shrink: 0;
  opacity: 0.7;
  width: 18px;
  height: 18px;
}

.event-coupon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: var(--main-text-secondary);
}

.event-coupon svg {
  flex-shrink: 0;
  opacity: 1;
  width: 18px;
  height: 18px;
  color: #fb2095;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.event-time,
.event-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: var(--main-text-secondary);
}

.event-time svg,
.event-location svg {
  flex-shrink: 0;
  opacity: 0.7;
  width: 18px;
  height: 18px;
}

/* Event Discount Section */
.event-discount {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.discount-badge {
  background: #e74c3c;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
}

.coupon-code {
  background: #f8f9fa;
  color: var(--main-text-primary);
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e0e0e0;
}

/* Festival Content Section */
.festival-content {
  padding: 4rem 0;
  background: white;
}

.content-section {
  margin-bottom: 3rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-one);
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--main-text-secondary);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Buy Tickets Section */
.festival-tickets {
  padding: 4rem 0;
  background: linear-gradient(135deg, #33b1e6, #fb2095);
  color: white;
  text-align: center;
}

.tickets-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tickets-content p {
  font-size: 22px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.tickets-description {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
  margin: 0;
}

/* Spacing for description above button */
.tickets-content .tickets-description + .buy-tickets-btn {
  
}

/* Spacing for description below button */
.tickets-content .buy-tickets-btn + .tickets-description {
  
}

.buy-tickets-btn {
  display: inline-block;
  background: linear-gradient(45deg, #ffffff, #f8f9fa);
  color: #2c3e50;
  padding: 0.8rem 2rem;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 60px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.buy-tickets-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.buy-tickets-btn:hover::before {
  left: 100%;
}

.buy-tickets-btn:hover {
  background: linear-gradient(45deg, #f8f9fa, #ffffff);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  color: #1a252f;
}

.buy-tickets-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Festival Media Gallery */
.festival-media {
  padding: 4rem 0;
  background: #f8f9fa;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.media-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-one);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  background: white;
}

.media-item:hover {
  box-shadow: var(--shadow-three);
  transform: translateY(-5px);
}

.media-content {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.media-content[controls] {
  height: auto;
  min-height: 200px;
}

.video-embed {
  width: 100%;
  height: 250px;
  position: relative;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.video-embed video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.no-media-message {
  text-align: center;
  padding: 3rem;
  color: #666;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #ddd;
}

.no-media-message p {
  margin: 0.5rem 0;
}

/* Mobile Navigation Override for Festival Page */
@media (max-width: 1210px) {
  .navigation-board {
    max-height: calc(100vh - 160px); /* Account for header and bottom nav */
    overflow-y: auto;
    z-index: 1001; /* Higher than festival nav */
  }

  .navigation-board-open {
    visibility: visible;
    opacity: 1;
  }
}

/* On-Screen Navigation - Mobile Scrolling (Same as category.css) */
.on-screen-nav ul {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  align-content: center;
  justify-content: flex-start;
  list-style-type: none;
  overflow-x: scroll;
  padding: 0;
  margin: 0;
  border-top: 2px dashed var(--main-text-secondary);
  border-bottom: 2px dashed var(--main-text-secondary);
}

.on-screen-nav li {
  display: inline;
  margin: 0 8px;
  padding: 13px 0;
  text-align: center;
}

.on-screen-nav a {
  padding: 0;
  text-decoration: none;
  color: var(--main-text-primary);
  text-wrap: nowrap;
}

@media (min-width: 470px) {
  .on-screen-nav ul {
    justify-content: space-evenly;
  }
}

/* Compact Navigation for Wide Screens */
@media screen and (min-width: 1211px) {
  .navigation-board > li {
    margin: 0 6px !important; /* Reduced from 12px to 6px */
    padding: 0 1px !important; /* Reduced from 3px to 1px */
  }

  .navigation-board > li > a {
    font-size: 0.9rem !important; /* Slightly smaller font */
    padding: 0.15rem !important; /* Reduced padding */
  }

  /* Adjust active state padding to match smaller size */
  .navigation-board > li > a.nav-active {
    padding: 3px !important; /* Reduced from 5px */
  }
}

/* Festival Navigation */
.festival-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--main-border-light);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999; /* Lower than main navigation */
}

.nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  color: var(--main-text-third);
  text-decoration: none;
  transition: color 0.3s ease;
  min-width: 60px;
}

.nav-item.active,
.nav-item:hover {
  color: #667eea;
}

.nav-item span {
  font-size: 0.8rem;
  font-weight: 500;
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

/* Responsive Design */
/* Tablet Styles - Consistent Typography */
@media (max-width: 768px) {
  .festival-title {
    font-size: 32px;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
    padding: 25px 15px;
  }

  .events-section-title,
  .tickets-content h2 {
    font-size: 28px;
  }

  .festival-subtitle,
  .date-title {
    font-size: 22px;
  }

  .lineup-event-title,
  .highlight-label,
  .no-events-message h3 {
    font-size: 16px;
  }

  .festival-about,
  .highlight-text,
  .no-events-message p {
    font-size: 15px;
  }

  .event-time,
  .event-location,
  .event-category,
  .event-coupon,
  .event-presentation {
    font-size: 13px;
  }

  .discount-badge,
  .coupon-code {
    font-size: 11px;
  }

  .buy-tickets-btn {
    font-size: 15px;
    
  }

  .festival-video-button svg {
    width: 70px;
    height: 70px;
  }

  .festival-description {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 15px;
  }

  .hero-image-section {
    
    margin-bottom: 1.5rem;
  }

  .event-highlights-grid {
    gap: 1.5rem;
  }

  .event-highlights-title {
    font-size: 1.5rem;
  }

  .festival-subtitle {
    font-size: 1.5rem;
  }

  .festival-about {
    font-size: 1rem;
  }

  .highlight-icon {
    width: 40px;
    height: 40px;
  }

  .lineup-title {
    font-size: 1.5rem;
  }

  .lineup-description {
    font-size: 0.9rem;
  }

  .date-title {
    font-size: 1.3rem;
  }

  .collapse-icon {
    width: 28px;
    height: 28px;
    padding: 3px;
  }

  .lineup-event-item {
    
  }

  .lineup-event-image,
  .lineup-event-placeholder {
    width: 100px;
    height: 100px;
  }

  .lineup-event-title {
    font-size: 1.2rem;
  }

  .event-time,
  .event-location {
    font-size: 0.9rem;
  }

  .event-time svg,
  .event-location svg {
    width: 16px;
    height: 16px;
  }



  .event-category {
    font-size: 0.9rem;
  }

  .event-category svg {
    width: 16px;
    height: 16px;
  }

  .event-coupon {
    font-size: 0.9rem;
  }

  .event-coupon svg {
    width: 16px;
    height: 16px;
  }

  .discount-badge,
  .coupon-code {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }

  .festival-info,
  .festival-events,
  .festival-content {
    padding: 0;
  }

  .events-section-title {
    font-size: 1.8rem;
  }

  .no-events-message {
    padding: 3rem 1.5rem;
  }

  .no-events-message h3 {
    font-size: 1.3rem;
  }

  .no-events-message p {
    font-size: 1rem;
  }

  .festival-tickets {
    padding: 3rem 0;
  }

  .tickets-content h2 {
    font-size: 2rem;
  }

  .buy-tickets-btn {
   
    font-size: 1.1rem;
    border-radius: 50px;
  }

  .media-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .media-content {
    height: 200px;
  }

  .buy-tickets-btn {
    
    font-size: 1.1rem;
  }

  .hero-content {
    margin: 0 0 1rem 0;
  }

  /* Add bottom padding to account for fixed navigation */
  body {
    padding-bottom: 80px;
  }
}

/* Mobile Styles - Consistent Typography */
@media (max-width: 480px) {
  .festival-title {
    font-size: 28px;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
    padding: 20px 15px;
  }

  .events-section-title,
  .tickets-content h2 {
    font-size: 24px;
  }

  .festival-subtitle,
  .date-title {
    font-size: 20px;
  }

  .lineup-event-title,
  .highlight-label,
  .no-events-message h3 {
    font-size: 16px;
  }

  .festival-about,
  .highlight-text,
  .no-events-message p {
    font-size: 16px;
  }

  .event-time,
  .event-location,
  .event-category,
  .event-coupon,
  .event-presentation {
    font-size: 14px;
  }

  .discount-badge,
  .coupon-code {
    font-size: 12px;
  }

  .buy-tickets-btn {
    font-size: 16px;
   
  }

  .festival-video-button svg {
    width: 60px;
    height: 60px;
  }

  .modal-content {
    width: 95%;
    max-width: none;
  }

  .close {
    top: -40px;
    right: 5px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .festival-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-content {
   
  }

  .hero-image-section {
   
    margin-bottom: 0;
  }

  .event-highlights-grid {
    gap: 1.2rem;
  }

  .highlight-item {
    gap: 0.8rem;
  }

  .highlight-icon {
    width: 36px;
    height: 36px;
  }

  .highlight-label {
    font-size: 1rem;
  }

  .highlight-text {
    font-size: 0.9rem;
  }

  .event-highlights-title {
    font-size: 1.3rem;
  }

  .festival-subtitle {
    font-size: 1.3rem;
  }

  .festival-about {
    font-size: 0.95rem;
  }

  .lineup-title {
    font-size: 1.3rem;
  }

  .lineup-description {
    font-size: 0.85rem;
  }

  .date-title {
    font-size: 1.2rem;
  }

  .collapse-icon {
    width: 26px;
    height: 26px;
    padding: 2px;
  }

  .lineup-event-image,
  .lineup-event-placeholder {
    width: 45px;
    height: 45px;
  }

  .lineup-event-item {
   
  }

  .lineup-event-image,
  .lineup-event-placeholder {
    width: 100px;
    height: 100px;
  }

  .lineup-event-title {
    font-size: 1.1rem;
  }

  .event-time,
  .event-location,
  .event-presentation {
    font-size: 0.85rem;
  }

  .event-time svg,
  .event-location svg {
    width: 16px;
    height: 16px;
  }

  .event-presentation {
    font-size: 0.85rem;
    
  }

  .event-category {
    font-size: 0.85rem;
  }

  .event-category svg {
    width: 16px;
    height: 16px;
  }

  .event-coupon {
    font-size: 0.85rem;
  }

  .event-coupon svg {
    width: 16px;
    height: 16px;
  }

  .discount-badge,
  .coupon-code {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }

  .event-discount {
    gap: 0.3rem;
  }

  .event-meta {
    gap: 0.3rem;
  }

  .filter-tab {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
    font-weight: 500;
  }

  .media-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .media-content {
    height: 180px;
  }

  .content-section {
    padding: 1rem;
  }

  .nav-item {
    padding: 0.5rem 0.5rem;
    min-width: 50px;
  }

  .nav-item span {
    font-size: 0.7rem;
  }

  .nav-item svg {
    width: 18px;
    height: 18px;
  }

  .fest-container {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    width: 100%;
  }

  .events-section-title {
    font-size: 1.5rem;
  }

  .no-events-message {
    padding: 2.5rem 1rem;
  }

  .no-events-message h3 {
    font-size: 1.2rem;
  }

  .no-events-message p {
    font-size: 0.95rem;
  }
}

/* RTL Specific Adjustments */
[dir="rtl"] .info-item {
  text-align: right;
}

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

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

/* Animation and Transitions - Removed */

/* Loading States */
.hero-image {
  transition: opacity 0.3s ease;
}

.hero-image[src=""] {
  opacity: 0;
}

/* Accessibility Improvements */
.nav-item:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.buy-tickets-btn:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Desktop Styles - Industry Standard Typography System */
@media (min-width: 1024px) {
  /* Base Typography */
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Heading Hierarchy */
  .festival-title {
    font-size: 48px;
    line-height: 1.2;
    padding: 30px;
    display: inline-block; /* Make title only as wide as its content */
    text-align: center;
  }

  /* Desktop: Make underline only the width of the title text */
  .festival-title::after {
    width: 100%; /* Use 100% of the title element, not viewport */
    margin-left: 0; /* Remove the viewport centering */
    left: 0;
    right: auto;
  }

  .events-section-title,
  .tickets-content h2 {
    font-size: 32px;
    line-height: 1.3;
  }

  .festival-subtitle,
  .date-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .lineup-event-title,
  .highlight-label,
  .no-events-message h3 {
    font-size: 18px;
    line-height: 1.4;
  }

  /* Body Text */
  .festival-about,
  .highlight-text,
  .no-events-message p,
  p {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Small Text */
  .event-time,
  .event-location,
  .event-category,
  .event-coupon,
  .event-presentation {
    font-size: 14px;
    line-height: 1.5;
  }

  .event-presentation { 
    height: 60px;
  }

  /* Extra Small Text */
  .discount-badge,
  .coupon-code {
    font-size: 12px;
    line-height: 1.4;
  }

  /* Filter Tab Desktop */
  .filter-tab {
    font-size: 14px;
    line-height: 1.4;
    padding: 0.5rem 1rem;
  }

  /* Button */
  .buy-tickets-btn {
    font-size: 16px;
    padding: 16px 32px;
  }

  /* Hero Image Desktop Styling */
  .hero-image {
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    display: block;
  }



  /* Desktop Video Display - now handled globally above */
}

/* Wide Screen Horizontal Events Layout */
@media (min-width: 1200px) {
  /* Festival Events Horizontal Layout for Wide Screens Only */
  .events-list {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: scroll;
    overflow-y: visible;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    gap: 0;
  }

  .lineup-event-link {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
    color: inherit;
    width: auto;
  }

  .lineup-event-item {
    width: 320px;
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-flow: column;
    align-items: center;
    align-content: center;
    color: var(--main-text-primary);
    cursor: pointer;
    position: relative;
    background: white;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
  }

  .lineup-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }

  .fest-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    padding: 0;
    gap: 1rem;
  }

  .event-image-container {
    align-self: center;
    margin-bottom: 0;
  }

  .lineup-event-image,
  .lineup-event-placeholder {
    width: 300px;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
  }

  .lineup-event-content {
    flex: 1;
    margin-right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .event-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;;
  }

  /* Custom scrollbar for horizontal scroll */
  .events-list::-webkit-scrollbar {
    height: 8px;
  }

  .events-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  .events-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
  }

  .events-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
  }
}

/* Large Desktop Styles */
@media (min-width: 1440px) {
  .festival-title {
    font-size: 56px;
    line-height: 1.1;
  }

  .container {
    max-width: 1200px;
  }
}

/* Print Styles */
@media print {
  .festival-nav {
    display: none;
  }

  .festival-hero {
    height: auto;
    min-height: 200px;
  }

  .hero-overlay {
    background: rgba(0, 0, 0, 0.2);
  }

  .buy-tickets-btn {
    border: 2px solid #e74c3c;
    background: transparent;
    color: #e74c3c;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .hero-overlay {
    background: rgba(0, 0, 0, 0.7);
  }

  .info-item {
    border: 2px solid var(--main-border-light);
  }

  .event-card {
    border: 2px solid var(--main-border-light);
  }
}

/* Reduced Motion Support - No longer needed */