/* --- Design System & CSS Variables --- */
:root {
  --bg-dark: #000000; /* Pure Black from official slides */
  --bg-dark-secondary: #050505;
  --bg-card: rgba(10, 8, 6, 0.75); /* Rich bronze-tinted glass */
  --bg-card-hover: rgba(20, 16, 12, 0.9);
  --primary-gold: #d4af37; /* Bright gold matching slides logo */
  --accent-gold: #d4af37;
  --accent-gold-gradient: linear-gradient(135deg, #d4af37, #aa7c11);
  --text-white: #ffffff;
  --text-gray: #e2d9c8; /* Warm gold-tinted cream text */
  --text-muted: #8e8574; /* Muted bronze text */
  --border-color: rgba(212, 175, 55, 0.22);
  --border-hover: rgba(212, 175, 55, 0.55);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-arabic: 'Cairo', sans-serif;
  --font-english: 'Outfit', sans-serif;
}

/* --- Base Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-arabic);
}

/* --- Body with Diagonal Film Strip Watermark (Slide Identity) --- */
body {
  overflow-x: hidden;
  overflow-y: auto;
  line-height: 1.6;
  background-color: #000000;
  background-image: url('assets/real_bg.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  min-width: 320px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-arabic);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}

.gold-text {
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Glassmorphism Cards --- */
.glass-card {
  background: rgba(10, 8, 6, 0.65) !important;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(212, 175, 55, 0.22) !important;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  padding: 30px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(212, 175, 55, 0.55) !important;
  box-shadow: 0 20px 45px rgba(212, 175, 55, 0.2) !important;
  transform: translateY(-2px);
}

/* --- Celluloid Gold Film Strip Separator (Slide Match) --- */
.film-strip-divider {
  display: none !important;
  height: 18px;
  background: #000000;
  border-top: 1px solid var(--primary-gold);
  border-bottom: 1px solid var(--primary-gold);
  position: relative;
  width: 100%;
  margin: 30px 0;
  opacity: 0.95;
  z-index: 5;
}

.film-strip-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Draws vertical golden sprocket borders between the top and bottom lines */
  background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 12px, var(--primary-gold) 12px, var(--primary-gold) 14px);
  background-size: 14px 100%;
}

/* Hide default section divider */
section::after {
  display: none !important;
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: #000000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-english);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--text-white);
  display: flex;
  align-items: center;
}

.logo-img-mini {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-left: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: clamp(8px, 1.5vw, 25px);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-gray);
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold-gradient);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-btn {
  background: var(--accent-gold-gradient);
  color: var(--bg-dark) !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.nav-btn:hover,
.nav-btn:active,
.nav-btn:focus,
.nav-links a.nav-btn:hover,
.nav-links a.nav-btn:active,
body.light-theme .nav-links a.nav-btn:hover,
body.light-theme .nav-links a.nav-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  color: #2A6E3F !important;
}

.nav-btn.active,
.nav-links a.nav-btn.active,
body.light-theme .nav-links a.nav-btn.active {
  color: #2A6E3F !important;
}

.nav-btn::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  font-size: 24px;
  color: var(--text-white);
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* --- Hero Section (Cinematic Spotlight Theme) --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, rgba(27, 22, 14, 0.85) 0%, rgba(0, 0, 0, 0.95) 75%);
  padding: 90px 16px 40px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), #000000);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  width: 100%;
  margin-top: 0;
}

.hero-logo-container {
  margin-bottom: 20px;
}

.hero-official-logo {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  height: auto;
  object-fit: contain;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.35)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 8px 30px rgba(212, 175, 55, 0.55)); }
}

.fest-year {
  font-family: var(--font-arabic);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-gold);
  border: 1px solid var(--border-color);
  padding: 6px 18px;
  border-radius: 50px;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.8);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-family: var(--font-english);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.hero-tagline {
  font-family: var(--font-ar);
  font-size: 20px;
  color: var(--primary-gold);
  margin-bottom: 30px;
  font-weight: 600;
}

/* --- Countdown --- */
.countdown-container {
  background: rgba(10, 8, 6, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 16px 24px;
  border-radius: 20px;
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 36px;
}

.countdown-title {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 10px;
  font-weight: 600;
}

.countdown {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-item .num {
  font-family: var(--font-english);
  font-size: 32px;
  font-weight: 700;
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown-item .label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 600;
}

/* --- Buttons --- */
.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-primary {
  background: var(--accent-gold-gradient);
  color: var(--bg-dark);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--text-white);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  transform: translateY(-3px);
}

/* --- Common Section Styles --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-gray);
  max-width: 700px;
}

.section-header {
  margin-bottom: 50px;
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center .section-subtitle {
  margin: 0 auto;
}

.sub-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- About Section --- */
.about-section {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: flex-start;
}

.lead-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-white);
  margin-bottom: 24px;
  font-weight: 600;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-list li {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

.about-list li strong {
  color: var(--text-white);
}

.checkbox-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-list li i {
  margin-top: 4px;
  font-size: 16px;
}

/* --- Slide Display Container --- */
.slide-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  cursor: pointer;
  background: #000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: block;
  width: 100%;
}

.slide-display-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.slide-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary-gold);
  font-size: 24px;
  transition: var(--transition-smooth);
}

.slide-image-container:hover .slide-hover-overlay {
  opacity: 1;
}

.slide-image-container:hover .slide-display-img {
  transform: scale(1.03);
}

.slide-hover-overlay span {
  font-size: 13px;
  font-family: var(--font-arabic);
  font-weight: 700;
}

/* --- Logo Symbolism Section --- */
.logo-symbol-section {
  background: rgba(5, 5, 5, 0.7);
}

.logo-symbol-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.logo-display-box {
  padding: 20px !important;
}

.logo-wrapper {
  display: inline-block;
  width: 100%;
}

.logo-designer-credit {
  font-size: 13px;
  color: var(--primary-gold);
  margin-top: 16px;
  font-weight: 600;
  text-align: center;
}

.logo-description-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.symbol-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.01);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.05);
  transition: var(--transition-smooth);
}

.symbol-item:hover {
  background: rgba(212, 175, 55, 0.04);
  border-color: var(--border-color);
  transform: translateX(-4px);
}

.symbol-num {
  font-family: var(--font-english);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-gold);
  background: rgba(212, 175, 55, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.symbol-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.symbol-text p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* --- Categories/Competitions Section --- */
.categories-section {
  background: rgba(5, 5, 5, 0.7);
}

.categories-grid-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.category-card-mini {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(212, 175, 55, 0.1);
  padding: 18px;
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.category-card-mini:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
}

.category-card-mini h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 6px;
}

.category-card-mini p {
  font-size: 12px;
  color: var(--text-gray);
  line-height: 1.5;
}

.category-card-mini.highlight-card {
  border-color: #ff9800;
  background: rgba(255, 152, 0, 0.05);
}

.category-card-mini.highlight-card h4 {
  color: #ff9800;
}

/* --- Awards Notice Box --- */
.awards-notice-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.03));
  border: 1px dashed var(--primary-gold);
  border-radius: 20px;
  padding: 20px 24px;
  margin-top: 30px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.awards-icon {
  font-size: 32px;
  color: var(--primary-gold);
  background: rgba(212, 175, 55, 0.1);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.awards-notice-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.awards-notice-text p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* --- Production Grant Section --- */
.grant-section {
  position: relative;
}

.grant-box {
  background: linear-gradient(135deg, #100d08 0%, #000000 100%);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 50px 60px;
  max-width: 950px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.grant-timeline-box-vert {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 2px solid rgba(212, 175, 55, 0.15);
  padding-right: 24px;
  margin-top: 24px;
}

.grant-timeline-box-vert .timeline-step {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.grant-timeline-box-vert .timeline-step::before {
  content: '';
  position: absolute;
  top: 15px;
  right: -31px;
  width: 12px;
  height: 12px;
  background: var(--primary-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-gold);
}

.timeline-step i {
  font-size: 20px;
  color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.02);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.timeline-step h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.timeline-step p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Rules Section --- */
.rules-section {
  position: relative;
}

.rules-slides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.rules-slide-card {
  padding: 16px !important;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.rules-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 36px 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.rules-box h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

.rules-list li span {
  flex-grow: 1;
}

.rules-list li i {
  margin-top: 5px;
  font-size: 14px;
  flex-shrink: 0;
}

/* --- Team Section --- */
.team-section {
  position: relative;
}

.main-admin-slide-box {
  max-width: 900px;
  margin: 0 auto 50px;
  padding: 20px !important;
}

.main-admin-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  transition: var(--transition-smooth);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.team-card-premium {
  padding: 16px !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.bio-img-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  cursor: pointer;
  background: #000;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  display: block;
  width: 100%;
}

.team-bio-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.bio-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary-gold);
  font-size: 20px;
  transition: var(--transition-smooth);
}

.bio-img-container:hover .bio-hover-overlay {
  opacity: 1;
}

.bio-img-container:hover .team-bio-img {
  transform: scale(1.03);
}

.bio-hover-overlay span {
  font-size: 12px;
  font-family: var(--font-arabic);
  font-weight: 700;
}

.team-meta h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-meta p {
  font-size: 12px;
  color: var(--primary-gold);
  font-weight: 600;
}

/* --- Showcase Section --- */
.showcase-section {
  background: rgba(5, 5, 5, 0.7);
}

.showcase-grid {
  display: flex;
  justify-content: center;
}

.film-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 800px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.film-showcase-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.film-poster-container {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.film-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.film-poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-gold);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.film-poster-container:hover .film-poster-overlay {
  opacity: 1;
}

.film-poster-container:hover .film-poster {
  transform: scale(1.04);
}

.film-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.film-badge-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-gold);
  background: rgba(212, 175, 55, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
  align-self: flex-start;
  margin-bottom: 16px;
}

.film-info h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.film-director, .film-country {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.film-status-text {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Submit Film Section --- */
.submit-section {
  position: relative;
}

.submit-card {
  background: linear-gradient(135deg, rgba(20, 22, 28, 0.95), rgba(0, 0, 0, 0.99));
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 50px 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  max-width: 900px;
  margin: 0 auto;
  backdrop-filter: blur(20px);
}

.submit-header {
  text-align: center;
  margin-bottom: 40px;
}

.submit-icon {
  font-size: 36px;
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.submit-header h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.submit-header p {
  font-size: 13px;
  color: var(--text-gray);
}

.submission-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-white);
  font-family: var(--font-arabic);
  font-size: 14px;
  transition: var(--transition-smooth);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.btn-submit {
  width: 100%;
  background: var(--accent-gold-gradient);
  border: none;
  color: var(--bg-dark);
  font-family: var(--font-arabic);
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

/* --- Lightbox Modal --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  animation: zoom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoom {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  left: 40px;
  color: var(--text-white);
  font-size: 40px;
  font-weight: bold;
  transition: var(--transition-smooth);
  cursor: pointer;
  z-index: 2100;
}

.lightbox-close:hover {
  color: var(--primary-gold);
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: -100px;
  right: 24px;
  z-index: 1000;
  background: #0f1115;
  border: 1px solid #00bfa5;
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  bottom: 24px;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toast-icon {
  font-size: 24px;
  color: #00bfa5;
}

.toast-text {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}

.toast-message {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 2px;
}

/* --- Footer --- */
.footer {
  background: #000000;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding: 10px 10px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.footer::before {
  display: none !important;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  border-top: 5px dashed var(--primary-gold);
  border-bottom: 2px solid var(--primary-gold);
  background: #000;
  opacity: 0.65;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 0px;
}

.footer-brand {
  max-width: 500px;
}

.footer-brand h3 {
  font-family: var(--font-english);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(2px, 1vw, 10px);
  align-items: center;
  justify-content: center;
  width: 100%;
}

.social-links a {
  flex: 1 1 0;
  min-width: 0;
  max-width: 80px;
  height: auto;
  min-height: 52px;
  padding: 8px 4px 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e8d48b;
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 18px;
  gap: 3px;
  position: relative;
  overflow: hidden;
}

.social-links a .social-label {
  font-size: 8px;
  font-family: var(--font-ar);
  color: #e8d48b;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
  line-height: 1;
  margin-top: 2px;
  width: 100%;
  text-align: center;
}

.social-links a:hover {
  background: var(--primary-gold);
  color: #0E0E0E;
  border-color: var(--primary-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.35);
}

.social-links a:hover .social-label {
  color: #0E0E0E;
}

.footer-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-info p {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-info p i {
  color: var(--primary-gold);
  width: 16px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Mobile / Tablet Responsiveness --- */
@media (max-width: 992px) {
  .section-container {
    padding: 70px 16px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-media {
    order: -1;
  }
  .logo-symbol-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .rules-slides-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .film-showcase-card {
    grid-template-columns: 1fr;
  }
  .film-poster-container {
    aspect-ratio: 16 / 10;
  }
  .rules-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .submission-form .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation Menu Layout Update */
  .nav-toggle {
    display: none !important;
  }
  
  .nav-container {
    padding: 8px 12px !important;
    gap: 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .nav-logo {
    display: flex !important;
    align-items: center !important;
  }

  .logo-img-mini {
    height: 30px !important;
    width: auto !important;
  }

  .navbar {
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    position: absolute !important; /* float on top */
  }

  .navbar.scrolled {
    background: rgba(14, 14, 14, 0.95) !important;
    border-bottom: 1px solid var(--border-color) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9) !important;
    position: fixed !important;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 6px !important;
    border-top: none !important;
    align-items: center !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: calc(100% - 50px) !important; /* leaves space for logo */
    scrollbar-width: none !important;
    white-space: nowrap !important;
  }

  .nav-links::-webkit-scrollbar {
    display: none !important;
  }

  .nav-links li {
    display: inline-block !important;
  }
  
  .nav-links a {
    font-size: 11px !important;
    padding: 4px 6px !important;
    white-space: nowrap !important;
  }
  
  .nav-links a.nav-btn {
    padding: 4px 8px !important;
    border-radius: 6px !important;
    width: auto !important;
    font-size: 11px !important;
  }

  /* Hero section mobile - push image to the absolute top */
  .hero-section {
    padding: 20px 16px 40px !important;
    min-height: 100svh;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.4;
  }
  .hero-subtitle {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .hero-tagline {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .hero-official-logo {
    max-width: 100%;
  }
  .countdown-container {
    padding: 12px 16px;
    width: 100%;
    max-width: 100%;
  }
  .countdown {
    gap: 12px;
  }
  .countdown-item .num {
    font-size: 24px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .btn-primary, .btn-secondary {
    padding: 12px 24px;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Section containers */
  .section-container {
    padding: 60px 14px;
  }
  .section-title {
    font-size: 26px;
  }
  
  .categories-grid-sub {
    grid-template-columns: 1fr;
  }
  
  .grant-timeline-box-vert {
    border-right: none;
    padding-right: 0;
  }
  
  .grant-timeline-box-vert .timeline-step::before {
    display: none;
  }

  /* Form mobile */
  .submission-form .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .submit-card {
    padding: 24px 14px;
    border-radius: 20px;
  }

  .grant-box {
    padding: 30px 16px;
  }

  .glass-card {
    padding: 20px 16px;
  }

  /* Footer mobile */
  .footer-container {
    flex-direction: column;
    gap: 40px;
  }

  .footer {
    padding: 50px 16px 20px;
  }

  /* Toast mobile */
  .toast {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

/* --- Extra Small Phones (< 400px) --- */
@media (max-width: 400px) {
  .fest-year {
    font-size: 11px;
    letter-spacing: 1px;
    padding: 5px 12px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .countdown {
    gap: 8px;
  }

  .countdown-item .num {
    font-size: 20px;
  }

  .countdown-item .label {
    font-size: 9px;
  }

  .submit-card {
    padding: 20px 12px;
  }

  .section-container {
    padding: 50px 12px;
  }

  .nav-container {
    padding: 12px 14px;
  }
}

/* ══════════════════════════════════════════
   WIZARD MULTI-STEP FORM STYLES
══════════════════════════════════════════ */

/* Step progress bar above card */
.wizard-steps-bar {
  position: relative;
  max-width: 760px;
  margin: 0 auto 0.5rem;
  height: 6px;
}
.wsb-track {
  position: absolute;
  inset: 0;
  background: rgba(212,175,55,.15);
  border-radius: 99px;
}
.wsb-fill {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  right: 0;
  background: var(--accent-gold-gradient);
  border-radius: 99px;
  width: 11.11%;
  transition: width 0.4s cubic-bezier(.16,1,.3,1);
}
.wsb-dots {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.wsb-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(212,175,55,.2);
  border: 2px solid rgba(212,175,55,.35);
  transition: all .3s;
  cursor: default;
  position: relative;
}
.wsb-dot.done {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
}
.wsb-dot.active {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 4px rgba(212,175,55,.25);
  transform: scale(1.25);
}

.wizard-step-label {
  text-align: center;
  font-size: .8rem;
  color: var(--primary-gold);
  letter-spacing: .12em;
  font-family: 'Outfit', monospace;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* Card wrapper */
.wizard-card {
  padding: 0 !important;
  overflow: hidden;
}

/* Individual step panels */
.wizard-step {
  display: none;
  padding: 2rem 2.2rem;
  animation: wizIn .35s ease;
}
.wizard-step.active { display: block; }

@keyframes wizIn {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Step header inside card */
.wizard-step-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
}
.ws-num {
  width: 48px; height: 48px;
  background: var(--accent-gold-gradient);
  color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  flex-shrink: 0;
}
.ws-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: .1rem;
}
.ws-sub {
  font-size: .7rem;
  color: var(--primary-gold);
  letter-spacing: .15em;
  font-family: 'Outfit', monospace;
}

/* Form grid inside wizard */
.wiz-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.wiz-field { display: flex; flex-direction: column; gap: .35rem; }
.wiz-full  { grid-column: 1 / -1; }

.wiz-form-grid label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-gray);
  letter-spacing: .02em;
}
.wiz-hint {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: .1rem;
}
.req { color: var(--primary-gold); margin-inline-start: 2px; }

.wiz-form-grid input,
.wiz-form-grid select,
.wiz-form-grid textarea {
  background: rgba(0,0,0,.55);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: .65rem 1rem;
  font-family: 'Cairo', sans-serif;
  font-size: .9rem;
  color: var(--text-white);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  width: 100%;
}
.wiz-form-grid input::placeholder,
.wiz-form-grid textarea::placeholder { color: var(--text-muted); }
.wiz-form-grid input:focus,
.wiz-form-grid select:focus,
.wiz-form-grid textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}
.wiz-form-grid select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%23d4af37'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left .8rem center;
  padding-left: 2rem;
}
.wiz-form-grid textarea { resize: vertical; min-height: 90px; }

.wiz-char-count {
  font-size: .68rem;
  color: var(--text-muted);
  text-align: left;
  margin-top: .2rem;
}

/* Checkbox items inside wizard */
.wiz-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.wiz-check-item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .55rem .8rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: .82rem;
  color: var(--text-gray);
  line-height: 1.5;
}
.wiz-check-item:hover { border-color: var(--primary-gold); background: rgba(212,175,55,.05); }
.wiz-check-item input[type=checkbox] {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: .22rem;
  accent-color: var(--primary-gold);
  cursor: pointer;
}
.wiz-decl-list { display: flex; flex-direction: column; gap: .6rem; }

/* Radio pills inside wizard */
.radio-pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-pill {
  display: flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  cursor: pointer;
  font-size: .82rem;
  color: var(--text-gray);
  transition: all .2s;
}
.radio-pill:hover { border-color: var(--primary-gold); color: var(--primary-gold); }
.radio-pill input { accent-color: var(--primary-gold); }
.radio-pill.wiz-selected {
  border-color: var(--primary-gold);
  background: rgba(212,175,55,.1);
  color: var(--primary-gold);
}

/* Error highlight */
.wiz-error { border-color: #c0392b !important; }
.wiz-check-item.wiz-error { border-color: #c0392b !important; }

/* Navigation bar at bottom of card */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.2rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0,0,0,.3);
  gap: 1rem;
  flex-wrap: wrap;
}
.wiz-dots-mini {
  display: flex;
  gap: .4rem;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.wiz-dot-mini {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(212,175,55,.25);
  transition: all .3s;
}
.wiz-dot-mini.active {
  background: var(--primary-gold);
  transform: scale(1.4);
}
.wiz-dot-mini.done {
  background: var(--primary-gold);
  opacity: .5;
}

.wiz-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-gray);
  padding: .65rem 1.4rem;
  border-radius: 6px;
  font-family: 'Cairo', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: .5rem;
  transition: all .25s;
}
.wiz-btn:hover { border-color: var(--primary-gold); color: var(--primary-gold); }
.wiz-btn-prev:disabled,
.wiz-btn-next:disabled { opacity: .35; pointer-events: none; }
.wiz-btn-next {
  background: var(--accent-gold-gradient);
  border-color: transparent;
  color: #000;
}
.wiz-btn-next:hover { opacity: .88; color: #000; }

/* Override btn-submit inside nav */
.wizard-nav .btn-submit {
  padding: .65rem 1.8rem;
  font-size: .95rem;
  display: flex; align-items: center; gap: .5rem;
}

/* Responsive */
@media (max-width: 600px) {
  .wiz-form-grid { grid-template-columns: 1fr; }
  .wiz-full { grid-column: 1; }
  .wiz-check-grid { grid-template-columns: 1fr; }
  .wizard-step { padding: 1.4rem 1rem; }
  .wizard-nav { padding: 1rem; }
  .wizard-nav .btn-submit { font-size: .82rem; padding: .6rem 1rem; }
}

/* ==========================================================================
   LIGHT THEME SUPPORT (User Custom Colors Override)
   ========================================================================== */
body.light-theme {
  --bg-dark: #F7F4EE;
  --bg-dark-secondary: #EBE7DC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAF7F2;
  --primary-gold: #B8860B;
  --accent-gold: #B8860B;
  --accent-gold-gradient: linear-gradient(135deg, #B8860B, #D4A017);
  --text-white: #0E0E0E;
  --text-gray: #3E3B37;
  --text-muted: #6B6560;
  --border-color: #D9D4CC;
  --border-hover: #B8860B;

  background-color: #F7F4EE !important;
  background-image: none !important;
  color: #0E0E0E !important;
  
  /* Font size slightly increased for better readability */
  font-size: 17px !important;
}

/* Make body paragraphs slightly larger and well-spaced */
body.light-theme p {
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: #3E3B37 !important;
}

/* Force override of hardcoded white colors on text inside light theme */
body.light-theme h3[style*="color: white"],
body.light-theme h3[style*="color:#fff"],
body.light-theme h3[style*="color: #fff"],
body.light-theme p[style*="color:#fff"],
body.light-theme p[style*="color: #fff"],
body.light-theme span[style*="color:#fff"],
body.light-theme span[style*="color: #fff"] {
  color: #0E0E0E !important;
}

/* Social link circles on contact.html */
body.light-theme .about-grid a[style*="color: white"] {
  background: #FAF7F2 !important;
  border-color: #D9D4CC !important;
  color: #0E0E0E !important;
}
body.light-theme .about-grid a[style*="color: white"]:hover {
  background: rgba(184, 134, 11, 0.05) !important;
  border-color: #B8860B !important;
  color: #B8860B !important;
}

body.light-theme .navbar {
  background: #0E0E0E !important;
  border-bottom: 2px solid #B8860B !important;
}

body.light-theme .navbar.scrolled {
  background: #0E0E0E !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

body.light-theme .nav-links a {
  color: #D9D4CC !important;
}

body.light-theme .nav-links a.nav-btn {
  color: #0E0E0E !important;
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
  color: #D4A017 !important;
}

body.light-theme .nav-logo,
body.light-theme .nav-logo * {
  color: #F7F4EE !important;
}

body.light-theme .nav-toggle {
  color: #F7F4EE !important;
}

body.light-theme .glass-card {
  background: #FFFFFF !important;
  border: 1px solid #D9D4CC !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  color: #0E0E0E !important;
}

body.light-theme .glass-card:hover {
  border-color: #B8860B !important;
  box-shadow: 0 15px 35px rgba(184, 134, 11, 0.1) !important;
}


body.light-theme .film-strip-divider {
  background: #F7F4EE !important;
  border-top: 1px solid #B8860B !important;
  border-bottom: 1px solid #B8860B !important;
}

body.light-theme .film-strip-divider::before {
  background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 12px, #B8860B 12px, #B8860B 14px) !important;
}

/* Form fields background inside wizard and contact */
body.light-theme .wiz-form-grid input,
body.light-theme .wiz-form-grid select,
body.light-theme .wiz-form-grid textarea,
body.light-theme #contact-form input,
body.light-theme #contact-form textarea,
body.light-theme .form-input {
  background: #FFFFFF !important;
  color: #0E0E0E !important;
  border: 1px solid #D9D4CC !important;
  font-size: 15px !important;
}

body.light-theme .wiz-form-grid input:focus,
body.light-theme .wiz-form-grid select:focus,
body.light-theme .wiz-form-grid textarea:focus,
body.light-theme #contact-form input:focus,
body.light-theme #contact-form textarea:focus,
body.light-theme .form-input:focus {
  border-color: #B8860B !important;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15) !important;
}

body.light-theme .wiz-check-item {
  border: 1px solid #D9D4CC !important;
  background: #FFFFFF !important;
  color: #3E3B37 !important;
}

body.light-theme .wiz-check-item:hover {
  border-color: #B8860B !important;
  background: rgba(184, 134, 11, 0.04) !important;
}

body.light-theme .wiz-check-item input[type=checkbox] {
  accent-color: #B8860B !important;
}

body.light-theme .radio-pill {
  border: 1px solid #D9D4CC !important;
  background: #FFFFFF !important;
  color: #3E3B37 !important;
}

body.light-theme .radio-pill:hover {
  border-color: #B8860B !important;
  color: #B8860B !important;
}

body.light-theme .radio-pill.wiz-selected,
body.light-theme .radio-pill.radio-pill.selected {
  border-color: #B8860B !important;
  background: rgba(184, 134, 11, 0.08) !important;
  color: #B8860B !important;
}

body.light-theme .wiz-btn-next,
body.light-theme .btn-submit,
body.light-theme .btn-primary {
  background: #B8860B !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 700 !important;
}

body.light-theme .wiz-btn-next:hover,
body.light-theme .btn-submit:hover,
body.light-theme .btn-primary:hover {
  background: #D4A017 !important;
  color: #FFFFFF !important;
}

body.light-theme .wiz-btn-prev {
  background: #FFFFFF !important;
  border: 1px solid #D9D4CC !important;
  color: #3E3B37 !important;
}

body.light-theme .wiz-btn-prev:hover {
  border-color: #B8860B !important;
  color: #B8860B !important;
}

body.light-theme .category-card-mini {
  background: #FAF7F2 !important;
  border: 1px solid #D9D4CC !important;
}

body.light-theme .category-card-mini:hover {
  background: rgba(184, 134, 11, 0.05) !important;
  border-color: #B8860B !important;
}

body.light-theme #dynamic-team-grid > div {
  background: #FFFFFF !important;
  border: 1px solid #D9D4CC !important;
}

body.light-theme #submit p {
  color: #6B6560 !important;
}

body.light-theme .toast {
  background: #FFFFFF !important;
  border-color: #B8860B !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .toast-title {
  color: #0E0E0E !important;
}

body.light-theme .toast-message {
  color: #3E3B37 !important;
}

body.light-theme .checkbox-label {
  color: #3E3B37 !important;
}

body.light-theme .logo-symbol-section,
body.light-theme .categories-section,
body.light-theme .showcase-section {
  background: transparent !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS OVERRIDES (Fixing Overflows & Spacing)
   ========================================================================== */

/* 1. Prevent global horizontal scrolling */
html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  /* 2. Reduce the huge vertical padding under the sticky header */
  .about-section,
  .categories-section,
  .rules-section,
  .team-section,
  .submit-section,
  section[style*="padding-top"] {
    padding-top: 90px !important;
  }

  /* 3. Force 1-column layouts for inline grids on mobile to prevent overflow */
  div.about-grid[style*="grid-template-columns"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"],
  div[style*="grid-template-columns:repeat(auto-fit,minmax(300px,1fr))"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (max-width: 600px) {
  /* 4. Reduce card padding on mobile so content fits without stretching the viewport */
  .glass-card,
  body.light-theme .glass-card,
  div.glass-card[style*="padding"] {
    padding: 18px 16px !important;
    border-radius: 16px !important;
  }

  /* 5. Make inputs slightly more compact and refined */
  body.light-theme input,
  body.light-theme select,
  body.light-theme textarea,
  .form-input {
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 14.5px !important;
  }
  
  /* 6. Fix check grids on very small mobile screens */
  .check-grid,
  .wiz-check-grid,
  .checkbox-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

html[lang="en"] body,
html[lang="en"] input,
html[lang="en"] select,
html[lang="en"] textarea,
html[lang="en"] button {
  font-family: var(--font-english) !important;
}

/* ==========================================================================
   UNIFIED GREEN CHECKMARK STYLE FOR CHECKBOXES & RADIOS
   ========================================================================== */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border: 1px solid var(--border-color, rgba(212,175,55,.35)) !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border-radius: 4px !important;
  outline: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  position: relative !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.light-theme input[type="checkbox"],
body.light-theme input[type="radio"] {
  border-color: rgba(212, 175, 55, 0.4) !important;
  background: rgba(212, 175, 55, 0.03) !important;
}

/* Hover state */
input[type="checkbox"]:hover,
input[type="radio"]:hover {
  border-color: var(--primary-gold, #d4af37) !important;
}

/* Checked state */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  border-color: #2A6E3F !important;
  background: rgba(42, 110, 63, 0.08) !important;
}

body.light-theme input[type="checkbox"]:checked,
body.light-theme input[type="radio"]:checked {
  border-color: #2A6E3F !important;
  background: rgba(42, 110, 63, 0.08) !important;
}

/* Checkmark symbol */
input[type="checkbox"]:checked::after,
input[type="radio"]:checked::after {
  content: "✔" !important;
  color: #2A6E3F !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  line-height: 1 !important;
  display: block !important;
}

/* Highlight containing card when option is checked */
.wiz-check-item:has(input:checked) {
  border-color: var(--primary-gold) !important;
  background: rgba(212, 175, 55, 0.08) !important;
}

/* Custom Validation Error Styles */
.wiz-error,
.form-input.wiz-error,
.form-group input.wiz-error,
.form-group textarea.wiz-error {
  border-color: #E74C3C !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

.error-msg {
  color: #E74C3C !important;
  font-size: 0.78rem !important;
  margin-top: 5px !important;
  display: block !important;
  font-weight: 500 !important;
  animation: wizFadeIn 0.2s ease-in-out forwards;
}

/* For RTL pages, make text-align match */
html[lang="ar"] .error-msg,
body:not(.lang-en) .error-msg {
  text-align: right !important;
}

html[lang="en"] .error-msg .error-msg {
  text-align: left !important;
}

@keyframes wizFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fix date input placeholder reversing in RTL layout (e.g. rendering as فنس/رهش/موي) */
input[type="date"],
input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
  direction: ltr !important;
  unicode-bidi: bidi-override !important;
}

input[type="date"] {
  text-align: right !important;
}

body.lang-en input[type="date"] {
  text-align: left !important;
}

/* Custom responsive layout for team page dynamic grid */
.team-grid-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 25px !important;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

/* Card classes */
.team-card-custom {
  --team-name-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  word-wrap: break-word;
  word-break: break-word;
}

.team-card-image-wrapper {
  cursor: pointer;
  width: 100%;
  margin-bottom: 15px;
  aspect-ratio: 3/4;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,0.2);
}

.team-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  overflow: hidden;
}

.team-card-title {
  color: var(--accent-gold);
  margin: 0;
  font-weight: 700;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

.team-card-name {
  color: #fff;
  margin: 0;
  font-weight: 700;
  line-height: 1.2 !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

.team-card-divider {
  width: 100%;
  height: 1px;
  background: rgba(212,175,55,0.3);
  margin: 4px 0;
}

.team-card-role {
  color: var(--primary-gold) !important;
  margin: 0;
  font-weight: 600;
  display: block;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

@media (max-width: 992px) {
  .team-grid-custom {
    gap: 10px !important;
  }
}

@media (max-width: 768px) {
  .team-grid-custom {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 10px 4px 20px 4px !important;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) rgba(255, 255, 255, 0.05);
    -webkit-overflow-scrolling: touch;
  }
  .team-grid-custom::-webkit-scrollbar {
    height: 4px;
  }
  .team-grid-custom::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
  }
  .team-grid-custom::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 10px;
  }
  .team-card-custom {
    --team-name-size: 10px;
    flex: 0 0 110px !important;
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
  }
  .team-card-image-wrapper {
    margin-bottom: 6px;
  }
  .team-card-info {
    gap: 3px;
  }
  .team-card-divider {
    margin: 2px 0;
  }
}

/* Contact page social buttons styling */
.contact-social-btn {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #e8d48b;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.contact-social-btn i {
  font-size: 26px;
  color: #e8d48b;
  transition: var(--transition-smooth);
}

.contact-social-btn .social-name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: #e8d48b;
  transition: var(--transition-smooth);
  opacity: 0.85;
}

.contact-social-btn:hover {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
}

.contact-social-btn:hover i,
.contact-social-btn:hover .social-name {
  color: #0E0E0E !important;
  opacity: 1;
}

/* Light Theme overrides */
body.light-theme .contact-social-btn {
  background: rgba(180, 130, 20, 0.1);
  border-color: rgba(180, 130, 20, 0.4);
  color: #7B5A00;
}

body.light-theme .contact-social-btn i {
  color: #8B6914;
}

body.light-theme .contact-social-btn .social-name {
  color: #8B6914;
}

body.light-theme .contact-social-btn:hover {
  background: #B8860B;
  border-color: #B8860B;
}

body.light-theme .contact-social-btn:hover i,
body.light-theme .contact-social-btn:hover .social-name {
  color: #fff !important;
}


/* Centering styles added by script */
html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
body {
    display: flex;
    flex-direction: column;
    padding-bottom: 75px !important; /* Space for fixed footer */
}
section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
  .footer {
    padding: 8px 5px !important;
  }
  body {
    padding-bottom: 60px !important;
  }
}