:root {
  --primary-blue: #0a2e5c;
  --primary-gold: #c29a4b;
  --gold-hover: #a3803b;
  --bg-color: #F4F6F8;
  --text-main: #333333;
  --text-light: #555555;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --error: #e53e3e;
  --success: #38a169;
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

.hidden { display: none !important; }
.mobile-break { display: none; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.text-center { text-align: center; }

/* Navigation */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.2;
}

.text-excellence {
  color: var(--primary-gold);
  white-space: nowrap;
}

.nav-logo {
  height: 130px;
  width: auto;
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: rgba(10, 46, 92, 0.05);
  color: var(--primary-blue);
}

.nav-btn.active {
  background: var(--primary-blue);
  color: var(--white);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 25px auto 0;
  padding: 0 20px;
  display: block;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  object-position: center;
}

/* Main Container */
.main-container {
  max-width: 1000px;
  margin: 40px auto 40px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
  flex: 1;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.card-header, .section-header {
  text-align: center;
  margin-bottom: 30px;
}

.card-header h2, .section-header h2 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Challenge Blocks & Video Containers */
.challenge-intro {
  width: 100%;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.challenge-main-heading {
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--primary-blue);
  line-height: 1.2;
}

.step-block {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}
.step-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
}
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--primary-blue);
}

.form-group small {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(194, 154, 75, 0.15);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a2e5c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

input[type="file"] {
  padding: 10px;
  border: 1px dashed var(--border-color);
  background: #f8fafc;
  cursor: pointer;
}

.video-upload-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
}

.video-upload-box h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-label input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-blue);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gold);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-primary:disabled {
  background: #e2e8f0;
  color: #a0aec0;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-secondary:hover:not(:disabled) {
  background: #061c38;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-vote {
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 999px;
  background: var(--primary-gold);
  color: var(--white);
}

.btn-vote:disabled {
  background: #cbd5e1;
  color: #64748b;
}

/* Sponsor Logos Section */
.sponsor-logos-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.sponsor-heading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-light);
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.sponsor-logo {
  max-height: 80px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.sponsor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
}
.sponsor-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}


/* Status & Feedback Messages */
.status-banner {
  background: #fef3c7;
  color: #92400e;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.success-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 30px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.success-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.error-msg {
  background: #fef2f2;
  border-left: 4px solid var(--error);
  color: #991b1b;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Gallery Search */
.gallery-search-container {
  max-width: 500px;
  margin: 0 auto 30px;
}

.gallery-search-input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}

.gallery-search-input:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(194, 154, 75, 0.15);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-thumb-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  cursor: pointer;
}

.gallery-thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.gallery-thumb-container:hover .gallery-thumb {
  opacity: 1;
}

.play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  background: rgba(194, 154, 75, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-icon::after {
  content: '';
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--white);
  margin-left: 4px;
}

.gallery-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 8px;
}

.gallery-quote {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 15px;
}

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

.vote-count {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 0.95rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.lightbox-close:hover { background: var(--error); }

.lightbox-media-container {
  background: #000;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media-container video,
.lightbox-media-container iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-details {
  padding: 24px;
  overflow-y: auto;
}

.lightbox-details h3 {
  font-family: var(--font-heading);
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.lightbox-details .lightbox-quote {
  color: var(--text-main);
  white-space: pre-wrap;
}

.lightbox-quote a {
  color: var(--primary-blue);
  font-weight: 600;
  word-break: break-all;
}

/* Info Section (Transparent version) */
.info-content-transparent {
  padding: 10px 20px;
}

.info-content-transparent h3 {
  font-family: var(--font-heading);
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-gold);
  display: inline-block;
  margin-bottom: 10px;
  padding-bottom: 4px;
}

.info-block p, 
.info-block li, 
.info-block a {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.info-block ul,
.info-block ol {
  margin-left: 20px;
  margin-top: 10px;
}

.info-block ul li,
.info-block ol li {
  margin-bottom: 5px;
}

.info-block ul ul {
  margin-top: 5px;
  list-style-type: circle;
}

/* Responsive Table Styles */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 15px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th {
  color: var(--primary-blue);
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  padding: 12px 10px;
  line-height: 1.3;
}
.info-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
  line-height: 1.4;
}
.info-table tr:last-child td {
  border-bottom: none;
}

#wbx-powered-by-slot {
  margin-top: auto;
  padding: 20px;
}

@media (max-width: 768px) {
  .mobile-break { display: block; }
  
  .challenge-intro {
    padding: 25px 15px;
  }
  
  .challenge-main-heading {
    font-size: 1.3rem;
    padding: 0;
  }
  
  .step-title {
    font-size: 1.1rem;
  }

  .form-grid { grid-template-columns: 1fr; gap: 0; }
  
  .nav-container { 
    padding: 10px 15px 25px; 
    justify-content: center; 
    flex-direction: column; 
  }
  .brand-logo { 
    flex-direction: column; 
    gap: 8px; 
    margin-bottom: 15px; 
    text-align: center;
  }
  .brand-text {
    text-align: center;
  }
  .text-from {
    display: block;
    margin-bottom: 4px;
  }
  .text-excellence {
    display: block;
  }
  .text-canada {
    display: block;
    margin-top: 4px;
  }
  .nav-links { 
    width: 100%; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 8px; 
    padding-bottom: 10px; 
  }
  .nav-btn { 
    white-space: nowrap; 
    padding: 8px 12px; 
    font-size: 0.85rem; 
    flex: 1 1 auto; 
    text-align: center; 
  }
  
  .hero {
    margin-top: 15px;
  }

  .main-container { margin-top: 10px; }
  .card { padding: 20px; }
  .step-block { padding: 20px; }
  .nav-logo { height: 90px; }
  
  .info-content-transparent {
    padding: 0 5px;
  }
  
  .info-block h3 {
    font-size: 1.25rem;
  }

  .info-block ul, .info-block ol {
    margin-left: 15px;
  }

  .info-table th, .info-table td {
    padding: 8px 4px;
    font-size: 0.85rem;
    word-break: break-word;
  }
}
