/* Sunny Kids Academy - Main Styles */

/* CSS Variables for Color Scheme */
:root {
  /* Core Brand Colors */
  --primary-blue: #4a90e2;
  --secondary-purple: #9b59b6;
  --accent-pink: #ff6b9d;
  --accent-yellow: #ffd700;
  --accent-green: #4ecdc4;

  /* Theme-specific Colors (Light) */
  --text-dark: #3a3b3c;
  --text-light: #5f6368;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --body-bg: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
  --header-bg: rgba(255, 255, 255, 0.9);
  --section-bg-white: #ffffff;
  --section-bg-alt: linear-gradient(135deg, #e3f2fd, #f3e5f5);
  --card-bg: #ffffff;
  --feature-card-border: var(--secondary-purple);
  --form-bg: #ffffff;
  --input-border: #ddd;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --footer-bg: linear-gradient(135deg, #4a90e2, #9b59b6);
  --footer-text: #ffffff;
}

[data-theme="dark"] {
  /* Theme-specific Colors (Dark) */
  --text-dark: #e4e6eb;
  --text-light: #b0b3b8;
  --bg-light: #242526;
  --white: #18191a;
  --body-bg: linear-gradient(135deg, #1a1c2c 0%, #10101a 100%);
  --header-bg: rgba(36, 37, 38, 0.95);
  --section-bg-white: #18191a;
  --section-bg-alt: linear-gradient(135deg, #1c1e2f, #252839);
  --card-bg: #242526;
  --feature-card-border: var(--primary-blue);
  --form-bg: #242526;
  --input-border: #3e4042;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  --footer-bg: #111;
  --footer-text: #e4e6eb;
}

/* Font Imports */
@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Patrick+Hand&display=swap");

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Patrick Hand", cursive;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--body-bg);
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "Comic Neue", cursive;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 0 var(--accent-yellow);
}

h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue),
    var(--secondary-purple)
  );
  border-radius: 2px;
}

h3 {
  font-size: 1.8rem;
  color: var(--secondary-purple);
}

h4 {
  font-size: 1.3rem;
  color: var(--primary-blue);
}

p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-family: "Comic Neue", cursive;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-purple)
  );
  color: white;
  border: 3px solid white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-yellow));
  color: white;
  border: 3px solid white;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 2px solid var(--primary-blue);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.logo h1 {
  font-size: 1.8rem;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-purple)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-purple)
  );
  color: white;
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-blue);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.hero-bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(74, 144, 226, 0.15) 0%,
    rgba(155, 89, 182, 0.12) 40%,
    transparent 70%
  ),
  radial-gradient(
    circle at 20% 80%,
    rgba(78, 205, 196, 0.1) 0%,
    transparent 50%
  );
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(74, 144, 226, 0.1) 0%,
    rgba(155, 89, 182, 0.1) 100%
  );
  z-index: -1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--primary-blue);
  text-shadow: 3px 3px 0 var(--accent-yellow);
  animation: bounce 2s infinite;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--secondary-purple);
  margin-bottom: 40px;
  font-style: italic;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.stat-box {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 3px solid var(--primary-blue);
  transition: var(--transition);
  min-width: 120px;
  color: var(--text-dark);
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.stat-box i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  font-family: "Comic Neue", cursive;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating Elements Animation */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.balloon,
.star {
  position: absolute;
  font-size: 2rem;
  animation: float 6s infinite ease-in-out;
}

.balloon1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.balloon2 {
  top: 40%;
  right: 15%;
  animation-delay: 2s;
}
.balloon3 {
  top: 60%;
  left: 80%;
  animation-delay: 4s;
}

.star1 {
  top: 10%;
  right: 20%;
  animation-delay: 1s;
}
.star2 {
  top: 50%;
  left: 5%;
  animation-delay: 3s;
}
.star3 {
  top: 70%;
  right: 5%;
  animation-delay: 5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--secondary-purple);
  font-style: italic;
}

/* About Section */
.about {
  padding: 100px 0;
  background: var(--section-bg-white);
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(74, 144, 226, 0.05),
    rgba(155, 89, 182, 0.05)
  );
  z-index: -1;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h3 {
  color: var(--secondary-purple);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.classroom-scene {
  position: relative;
  height: 300px;
  background: var(--section-bg-alt);
  border-radius: 20px;
  border: 4px solid var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.desk-group {
  display: flex;
  gap: 20px;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.desk {
  width: 60px;
  height: 40px;
  background: var(--card-bg);
  border: 2px solid var(--primary-blue);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  animation: deskBounce 2s infinite;
  transition: var(--transition);
}

@keyframes deskBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.teacher {
  position: absolute;
  top: 60px;
  left: 20%;
  font-size: 3rem;
  animation: teacherWave 3s infinite;
}

.kids {
  position: absolute;
  bottom: 80px;
  right: 20%;
  display: flex;
  gap: 15px;
}

.kid {
  font-size: 2.5rem;
  animation: kidJump 1.5s infinite;
}

@keyframes teacherWave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(15deg);
  }
}

@keyframes kidJump {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--card-bg);
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
  margin-left: 15px;
}

.theme-toggle:hover {
  background: var(--primary-blue);
  color: white;
  transform: scale(1.1);
}

[data-theme="dark"] .fa-sun {
  display: block;
}
[data-theme="dark"] .fa-moon {
  display: none;
}
[data-theme="light"] .fa-sun {
  display: none;
}
[data-theme="light"] .fa-moon {
  display: block;
}

/* Fallback for when no data-theme is set (default light) */
.fa-sun {
  display: none;
}
.fa-moon {
  display: block;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 3px solid var(--feature-card-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card h4 {
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-light);
}

/* Admissions Section */
.admissions {
  padding: 100px 0;
  background: var(--section-bg-alt);
}

.admissions-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.step {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  padding: 25px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary-blue);
  transition: var(--transition);
  color: var(--text-dark);
}

.step:hover {
  transform: translateX(10px);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-purple)
  );
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content h4 {
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.admission-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.detail-box {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--accent-pink);
  transition: var(--transition);
  color: var(--text-dark);
}

.detail-box:hover {
  transform: scale(1.05);
}

.detail-box i {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
  display: block;
}

.detail-box h4 {
  color: var(--secondary-purple);
  margin-bottom: 5px;
}

/* Forms */
form {
  background: var(--form-bg);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 3px solid var(--primary-blue);
  transition: var(--transition);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--input-border);
  background: var(--card-bg);
  color: var(--text-dark);
  border-radius: 10px;
  font-family: "Patrick Hand", cursive;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Gallery Section */
.gallery {
  padding: 100px 0;
  background: var(--section-bg-white);
}

.gallery-container {
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid var(--primary-blue);
  background: var(--card-bg);
  color: var(--primary-blue);
  border-radius: 25px;
  font-family: "Comic Neue", cursive;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-purple)
  );
  color: white;
  transform: translateY(-2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-purple)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

.gallery-image-real {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image-real {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: var(--section-bg-alt);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info h3 {
  color: var(--primary-blue);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary-purple);
  transition: var(--transition);
  color: var(--text-dark);
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-item i {
  font-size: 2rem;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.contact-item h4 {
  color: var(--secondary-purple);
  margin-bottom: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-purple)
  );
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.1);
}

/* Footer Section */
.footer {
  padding: 80px 0 20px;
  background: var(--footer-bg);
  color: var(--footer-text);
  position: relative;
  overflow: hidden;
}

.footer h3,
.footer h4 {
  color: var(--footer-text);
}

.footer p {
  color: var(--footer-text);
  opacity: 0.9;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--footer-text);
  opacity: 0.8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  opacity: 1;
  padding-left: 5px;
  color: var(--accent-yellow);
}

.newsletter-input {
  display: flex;
  gap: 10px;
}

.newsletter-input input {
  flex-grow: 1;
  padding: 12px;
  border-radius: 25px;
  border: none;
  font-family: "Patrick Hand", cursive;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.newsletter-input input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-input button {
  background: var(--accent-yellow);
  color: var(--text-dark);
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-family: "Comic Neue", cursive;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-input button:hover {
  background: white;
  transform: translateY(-2px);
}

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

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--secondary-purple)
  );
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top.show {
  display: flex;
}

/* Animations and Utilities */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.stat-number {
  animation: countUp 2s ease-out;
}

/* ========================================
   About Section - Photo Frame
======================================== */
.about-photo-frame {
  position: relative;
  border-radius: 24px;
  border: 5px solid var(--primary-blue);
  box-shadow: 0 12px 40px rgba(74, 144, 226, 0.3), var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.about-photo-frame::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple), var(--accent-pink));
  border-radius: 26px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-photo-frame:hover::before {
  opacity: 1;
}

.about-photo-frame:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: 0 24px 60px rgba(74, 144, 226, 0.4);
}

.about-photo {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 19px;
}

/* ========================================
   FAQ Section
======================================== */
.faq {
  padding: 100px 0;
  background: var(--section-bg-white);
  position: relative;
}

.faq::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    135deg,
    rgba(78, 205, 196, 0.04),
    rgba(155, 89, 182, 0.04)
  );
  z-index: 0;
  pointer-events: none;
}

.faq .container {
  position: relative;
  z-index: 1;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover,
.faq-item.open {
  border-color: var(--primary-blue);
  box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: 'Comic Neue', cursive;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-question:hover {
  background: rgba(74, 144, 226, 0.06);
}

.faq-item.open .faq-question {
  color: var(--primary-blue);
  background: rgba(74, 144, 226, 0.06);
}

.faq-icon {
  font-size: 0.9rem;
  color: var(--secondary-purple);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
  margin: 0;
  padding-top: 4px;
  border-top: 1px dashed var(--input-border);
  padding-top: 14px;
}

/* ========================================
   Custom Cursor & Magic Trail
======================================== */
* {
  cursor: none;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  mix-blend-mode: multiply;
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 2px solid var(--primary-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease, width 0.2s ease, height 0.2s ease;
  opacity: 0.5;
}

.cursor.hovered {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-yellow));
}

.cursor-trail.hovered {
  width: 54px;
  height: 54px;
  border-color: var(--accent-pink);
  opacity: 0.3;
}

.magic-star {
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  font-size: 1rem;
  animation: starFade 0.8s ease-out forwards;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

@keyframes starFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -120%) scale(0.2);
  }
}

@media (hover: none) {
  .cursor, .cursor-trail {
    display: none;
  }
  * {
    cursor: auto;
  }
}
