/* ==========================================================================
   Competition Pages - Shared Stylesheet (competition-template.css)
   ========================================================================== */

/* CSS Variables for Premium Theme Colors */
:root {
  --primary-color: #0d4031; /* Deeper Emerald/Green */
  --accent-color: #d4af37; /* Rich Gold */
  --accent-hover: #b5952f;
  --bg-light: #fdfbf7; /* Warm Cream */
  --text-dark: #2c3e38;
  --text-light: #ffffff;
}

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
}

/* Headings Typography */
h1,
h2,
.quote {
  font-family: "Amiri", serif;
}

/* --- Hero Section (Top Half) --- */
.hero {
  position: relative;
  min-height: 50vh;
  padding: 3rem 1.5rem;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Dark Overlay to make text pop */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* Animated Title */
.animated-title {
  position: relative;
  z-index: 2;
  font-family: "Amiri", serif;
  font-size: 3.8rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;

  background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa8c2c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.5));
  opacity: 0;
  animation: fadeInSlideUp 1.5s ease-out forwards;
}
@keyframes fadeInSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Content Layout (Bottom Half) --- */
.content-container {
  display: flex;
  flex-wrap: wrap;
  min-height: 50vh;
}

/* Shared Column Styles */
.column {
  width: 50%;
  padding: 4rem 5rem;
  display: flex;
  flex-direction: column;
}

.column h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.column h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Custom Bullet Points (English Default) */
.column ul {
  list-style-type: none;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.column li {
  margin-bottom: 0.8rem;
  font-size: 1.02rem;
  position: relative;
  padding-left: 1.5rem;
}

.column li::before {
  content: "✦";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  top: 0px;
  font-size: 1.2rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Left Column (Light Background) */
.left-col {
  background-color: var(--bg-light);
}

.intro-box {
  font-size: 1.05rem;
  padding: 1.5rem 2rem;
  background-color: #ffffff;
  border-left: 4px solid var(--accent-color);
  border-radius: 0 8px 8px 0;
  margin: 1rem 0 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

/* Right Column (Dark Background) */
.right-col {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.right-col h2::after {
  background-color: var(--accent-color);
}

/* Highly Prominent Cash Prizes Box */
.prize-box {
  background: #ffffff;
  border: 2px solid var(--accent-color);
  border-radius: 12px;
  padding: 1.8rem 1.2rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.prize-items-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

.prize-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0 0.5rem;
}

.prize-item:not(:last-child) {
  border-right: 1px solid #e0e0e0;
}

.prize-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.gold-icon {
  color: #d4af37;
}

.silver-icon {
  color: #a0a0a0;
}

.bronze-icon {
  color: #cd7f32;
}

.prize-rank {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.prize-amount {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 0.2rem;
}

.prize-note {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
  text-align: center;
  width: 100%;
}

/* Registration Button */
.register-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 15px 35px;
  border-radius: 50px;
  margin-top: auto;
  align-self: flex-start;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.register-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

/* Custom Aligned List for Rules (English Default) */
.aligned-list {
  list-style-type: none;
  padding-left: 0;
}

.aligned-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.aligned-list li::before {
  content: "✦";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
}

.rule-title {
  font-weight: 700;
  min-width: 140px;
  flex-shrink: 0;
  padding-right: 0.5rem;
  line-height: 1.3;
}

.rule-text {
  flex: 1;
}

/* Responsive Design */
@media (max-width: 960px) {
  .column {
    width: 100%;
    padding: 3rem 2rem;
  }
  .animated-title {
    font-size: 2.2rem;
    letter-spacing: 1px;
    padding: 0 1rem;
  }
  .hero {
    min-height: 55vh;
    padding: 2.5rem 1rem;
  }
  .hero .register-btn {
    margin-top: 20px !important;
    font-size: 1rem;
    padding: 12px 25px;
    align-self: center !important;
  }
  .prize-items-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .prize-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .column {
    width: 100%;
    padding: 2.5rem 1.5rem;
  }
  .aligned-list li {
    flex-direction: column;
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
  }
  .aligned-list li::before {
    top: 0;
  }
  .rule-title {
    min-width: 100%;
    padding-right: 0;
    margin-bottom: 0.25rem;
  }
  .rule-title br {
    display: none;
  }
  .rule-text {
    width: 100%;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .animated-title {
    font-size: 1.6rem;
    letter-spacing: 0.5px;
  }
}

/* ==========================================================================
   URDU / RTL-SPECIFIC OVERRIDES (Appended at the very end of the file)
   ========================================================================== */

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

/* Fix Left Column Lists & Custom Right-Side Bullets for Urdu Pages */
html[dir="rtl"] .left-col ul {
  list-style: none !important;
  padding-right: 1.2rem !important;
  padding-left: 0 !important;
  margin: 0 0 1rem 0;
}

html[dir="rtl"] .left-col li {
  position: relative;
  padding-right: 15px;
  padding-left: 0;
  margin-bottom: 0.6rem;
  text-align: right;
}

html[dir="rtl"] .left-col li::before {
  content: "•";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Fix Right Column Aligned Rules List for Urdu Pages */
html[dir="rtl"] ul.aligned-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  direction: rtl;
  text-align: right;
}

/* Stack the title on top and text on a new line below it */
html[dir="rtl"] ul.aligned-list li {
  display: flex;
  flex-direction: column; /* Puts rule text on a new line below the title */
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 1.2rem;
  text-align: right;
  direction: rtl;
  padding-right: 0;
  padding-left: 0;
}

html[dir="rtl"] ul.aligned-list li::before {
  content: none !important;
}

html[dir="rtl"] .rule-title {
  text-align: right;
  white-space: normal;
  font-weight: bold;
  width: 100%;
  padding-right: 0;
  color: var(--accent-color); /* Makes the title stand out nicely in gold */
}

html[dir="rtl"] .rule-text {
  width: 100%;
  text-align: right;
}
