/* Variables for unified styling */
:root {
  --color-primary: #007bff;
  --color-primary-dark: #0056b3;
  --color-bg: #f8f9fa;
  --color-text-dark: #333;
  --color-white: #fff;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-bg);
}

.container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  /* background: var(--color-primary-dark); */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.logo h1 {
  font-size: 28px;
  color: var(--color-primary);
  font-weight: bold;
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.1;
}

.powered-class {
  font-size: 10px;
  color: #888;
  margin-top: 2px;
  margin-left: 2px;
  letter-spacing: 0.5px;
  font-weight: 500;
  background: #f4f7fa;
  padding: 2px 10px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: inline-block;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--color-text-dark);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--color-primary);
  background-color: rgba(0, 123, 255, 0.08);
  font-weight: 600;
}

nav ul li a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 80%;
}

.header-fade-out {
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 0;         /* Reduced from 100px 0 */
  min-height: 260px;       /* Reduced from 420px */
}

/* Hero Overlay: Card style, centered, not full width */
.hero-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;       /* Reduced from 420px */
  width: 100%;
  background: none; /* Remove the full overlay */
}

.hero-overlay .container {
  background: rgba(20, 20, 20, 0.82); /* Dark card with more opacity */
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 28px 20px 24px 20px; /* Reduced padding */
  max-width: 480px;            /* Slightly smaller card */
  width: 90%;
  margin: 40px auto;
  text-align: center;
  z-index: 2;
}

.hero h2 {
  font-size: 28px;        /* Reduced from 42px */
  margin-bottom: 14px;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 16px;        /* Reduced from 20px */
  margin-bottom: 18px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .hero-features p,
.hero .btn {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero .highlight-text {
  color: #fff !important;
  font-weight: 500;
}

/* Services Section */
.services {
  padding: 80px 0;
  background: var(--color-white);
}

.services h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
  color: var(--color-text-dark);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card i {
  font-size: 50px;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

/* About Section */
.about {
  padding: 80px 0;
  background: var(--color-bg);
}

.about h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 36px;
  color: var(--color-text-dark);
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  text-align: center;
}

/* About Carousel Styles */
.about-carousel {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  min-height: 220px;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeIn 0.7s;
}

.carousel-slide.active {
  display: flex;
}

.carousel-slide:focus-visible {
  outline: 2px solid crimson;
  border-radius: 3px;
}

.carousel-icon {
  font-size: 48px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  outline: none;
}

.carousel-dot.active {
  background: var(--color-primary);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--color-white);
}

.contact h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
  color: var(--color-text-dark);
}

form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text-dark);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.form-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  display: none;
}

.form-status.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Honeypot field styling */
.honeypot-field {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
}

/* reCAPTCHA container styling */
.recaptcha-container {
  margin: 20px 0;
}

/* Consent Box */
.consent-box {
  margin: 25px 0;
}

.consent-box .checkbox-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
  line-height: 1.4;
  color: #666;
}

.consent-box input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  margin-top: 3px;
}

.consent-box .checkbox-label a {
  display: inline;
  vertical-align: middle;
  white-space: nowrap;
}

.policy-link {
  text-decoration: underline;
  color: var(--color-primary);
}

.policy-link:hover {
  color: var(--color-primary-dark);
}

/* Video Queue Section */
.video-queue {
  padding: 80px 0;
  background: var(--color-bg);
}

.video-queue h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 36px;
  color: var(--color-text-dark);
}

.video-queue p {
  text-align: center;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.queue-system {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background: linear-gradient(to right, #2c3e50, #4b6584);
  color: var(--color-white);
  padding: 60px 0 40px;
  margin-top: 40px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-info {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.footer-info p {
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 20px;
}

.contact-options {
  flex: 1;
  min-width: 250px;
}

.contact-options h3 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: var(--color-primary);
}

.contact-options h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  color: var(--color-white);
  transition: all 0.3s ease;
  opacity: 0.8;
  text-decoration: none;
  padding: 8px 0;
}

.social-links a i {
  font-size: 18px;
  margin-right: 10px;
  width: 22px;
  text-align: center;
  color: var(--color-primary);
}

.social-links a span {
  font-size: 15px;
}

.social-links a:hover {
  opacity: 1;
  transform: translateX(5px);
  color: var(--color-primary);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 10px;
  }

  nav ul {
    margin-top: 20px;
    justify-content: center;
  }

  nav ul li {
    margin: 5px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .checkbox-group {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-info {
    text-align: center;
  }

  .contact-options h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links a {
    justify-content: center;
  }

  .social-links a:hover {
    transform: translateY(-3px);
  }
}

/* Add to styles.css */
/* Gamification Section */
.gamification {
  padding: 80px 0;
  background: var(--color-bg);
}

.gamification h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 36px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 50px;
  color: #666;
}

.gamification-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.progress-dashboard {
  background: var(--color-white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 12px;
  background: #eee;
  border-radius: 6px;
  margin: 15px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-primary), #00cc88);
  transition: width 0.5s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  color: #666;
}

.milestone-counter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 25px;
}

.milestone-item {
  text-align: center;
  padding: 15px;
  background: var(--color-bg);
  border-radius: 8px;
}

.milestone-item i {
  font-size: 24px;
  color: var(--color-primary);
}

.count {
  display: block;
  font-size: 28px;
  font-weight: bold;
  margin: 10px 0;
}

.badges-container {
  background: var(--color-white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.badge-card {
  text-align: center;
  padding: 15px;
  opacity: 0.5;
}

.badge-card[data-earned="true"] {
  opacity: 1;
}

.badge-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.gold {
  background: #ffd700;
  color: #8a6d3b;
}
.silver {
  background: #c0c0c0;
  color: #666;
}
.locked {
  background: #eee;
  color: #999;
}

.leaderboard {
  background: var(--color-white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.leaderboard-list {
  margin: 20px 0;
}

.leaderboard-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin: 8px 0;
  background: var(--color-bg);
  border-radius: 5px;
}

.user-position {
  text-align: center;
  padding: 15px;
  background: var(--color-primary);
  color: white;
  border-radius: 5px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .gamification-grid {
    grid-template-columns: 1fr;
  }

  .milestone-counter {
    grid-template-columns: 1fr;
  }
}

.mini-game {
  background: var(--color-white);
  padding: 20px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.mini-game button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
}

/* Responsive iframe container for the mini-game section */
.responsive-iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.responsive-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Play Games Button */

.glow-on-hover {
  width: 220px;
  height: 50px;
  border: none;
  outline: none;
  color: #fff;
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
}

.glow-on-hover:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

.glow-on-hover:active {
  color: #000;
}

.glow-on-hover:active:after {
  background: transparent;
}

.glow-on-hover:hover:before {
  opacity: 1;
}

.glow-on-hover:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #111;
  left: 0;
  top: 0;
  border-radius: 10px;
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}


/* Unsubscribe Page Styles Start */

.unsubscribe-container {
  max-width: 600px;
  margin: 50px auto;
  padding: 32px 20px;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  text-align: center;
}

.unsubscribe-container h2 {
  margin-bottom: 18px;
  color: var(--color-primary);
}

.unsubscribe-container .form-group {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.unsubscribe-container input[type="email"],
.unsubscribe-container textarea {
  padding: 12px;
  width: 80%;
  max-width: 350px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.unsubscribe-container textarea {
  height: 100px;
  resize: vertical;
}

.unsubscribe-container button[type="submit"] {
  background-color: #ff4444;
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.unsubscribe-container button[type="submit"]:hover {
  background-color: #cc0000;
}

/* Unsubscribe Page Styles End */