/* =================================================================
   BLAZING EDUCATION - PLAYFUL & DYNAMIC CSS STYLES
   Design Style: Bright colors, animated elements, fun fonts, energetic feel
   ================================================================= */

/* =================================================================
   CSS RESET & BASE STYLES
   ================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #2D3436;
  background: #FFFFFF;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol {
  list-style-position: inside;
}

/* =================================================================
   TYPOGRAPHY - PLAYFUL & ENERGETIC
   ================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: #D84315;
  margin-bottom: 20px;
}

h1 {
  font-size: 48px;
  letter-spacing: -1px;
  text-transform: uppercase;
  animation: bounceIn 0.8s ease;
}

h2 {
  font-size: 36px;
  color: #1565C0;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #FFA726, #D84315);
  border-radius: 2px;
  animation: slideIn 0.6s ease;
}

h3 {
  font-size: 24px;
  color: #D84315;
}

p {
  font-size: 16px;
  margin-bottom: 16px;
  color: #2D3436;
}

strong {
  font-weight: 700;
  color: #D84315;
}

/* =================================================================
   CONTAINER & LAYOUT
   ================================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =================================================================
   HEADER - ENERGETIC & COLORFUL
   ================================================================= */
header {
  background: linear-gradient(135deg, #D84315 0%, #E65100 100%);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(216, 67, 21, 0.3);
  animation: slideDown 0.5s ease;
}

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

.logo img {
  height: 50px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1) rotate(-3deg);
  animation: wiggle 0.5s ease;
}

.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.main-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.main-nav a:hover::before {
  left: 0;
}

.main-nav a:hover {
  background: #FFA726;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 167, 38, 0.4);
}

/* =================================================================
   MOBILE MENU - PLAYFUL SLIDE-IN
   ================================================================= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  background: #D84315;
  color: #FFFFFF;
  border: none;
  padding: 12px 16px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(216, 67, 21, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.mobile-menu-toggle:hover {
  background: #E65100;
  transform: scale(1.1) rotate(90deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background: linear-gradient(180deg, #D84315 0%, #E65100 100%);
  z-index: 1999;
  padding: 80px 30px 30px;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: #FFA726;
  transform: rotate(90deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav a {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 18px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.mobile-nav a:hover {
  background: #FFA726;
  border-left-color: #FFFFFF;
  transform: translateX(10px);
  box-shadow: 0 4px 15px rgba(255, 167, 38, 0.4);
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

/* =================================================================
   HERO SECTION - DYNAMIC & EXCITING
   ================================================================= */
.hero-section {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 167, 38, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(216, 67, 21, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  color: #FFFFFF;
  font-size: 56px;
  margin-bottom: 24px;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-subheadline {
  font-size: 20px;
  color: #FFFFFF;
  margin-bottom: 32px;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-primary {
  background: #FFA726;
  color: #FFFFFF;
  padding: 16px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 167, 38, 0.4);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  background: #D84315;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(216, 67, 21, 0.5);
  animation: shake 0.5s ease;
}

.btn-secondary {
  background: transparent;
  color: #FFFFFF;
  padding: 16px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 18px;
  border: 3px solid #FFFFFF;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-secondary:hover {
  background: #FFFFFF;
  color: #1565C0;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn {
  background: #1565C0;
  color: #FFFFFF;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.btn:hover {
  background: #0D47A1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
}

.trust-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.trust-badges span {
  color: #FFFFFF;
  font-weight: 600;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

/* =================================================================
   CARDS - COLORFUL & BOUNCY
   ================================================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.services-grid,
.courses-grid,
.features-grid,
.benefits-grid,
.categories-grid,
.stats-grid,
.formats-grid,
.pricing-grid,
.testimonials-grid,
.blog-grid,
.resources-grid,
.links-grid,
.contacts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 32px;
}

.service-card,
.course-card,
.feature,
.benefit-item,
.category-card,
.stat-card,
.format-card,
.pricing-card,
.testimonial-card,
.blog-card,
.resource-card,
.link-card,
.contact-card,
.contact-item,
.service-item {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  flex: 1 1 calc(33.333% - 24px);
  min-width: 280px;
  margin-bottom: 20px;
  border: 3px solid transparent;
}

.service-card::before,
.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #FFA726, #D84315);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover::before,
.course-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover,
.course-card:hover,
.category-card:hover,
.resource-card:hover,
.link-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 40px rgba(216, 67, 21, 0.2);
  border-color: #FFA726;
}

.service-card h3,
.course-card h3 {
  color: #D84315;
  margin-bottom: 16px;
  font-size: 22px;
}

.price {
  font-size: 28px;
  font-weight: 800;
  color: #1565C0;
  margin: 20px 0;
  display: block;
}

.badge {
  background: linear-gradient(135deg, #FFA726, #D84315);
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: bounce 1s ease infinite;
}

.course-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.course-meta span {
  background: #F5F5F5;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 13px;
  color: #1565C0;
  font-weight: 600;
}

/* =================================================================
   STATISTICS - ENERGETIC NUMBERS
   ================================================================= */
.stat-card {
  text-align: center;
  background: linear-gradient(135deg, #FFA726 0%, #D84315 100%);
  color: #FFFFFF;
  border: none;
}

.stat-card h3 {
  font-size: 48px;
  color: #FFFFFF;
  margin-bottom: 8px;
  font-weight: 900;
  animation: countUp 1s ease;
}

.stat-card p {
  font-size: 16px;
  color: #FFFFFF;
  font-weight: 600;
}

/* =================================================================
   TESTIMONIALS - READABLE & VIBRANT
   ================================================================= */
.testimonials {
  background: linear-gradient(135deg, #FFF9E6 0%, #FFE5CC 100%);
  padding: 60px 20px;
  margin-bottom: 60px;
}

.testimonial-card {
  background: #FFFFFF;
  border-left: 5px solid #FFA726;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  flex: 1 1 calc(50% - 24px);
}

.testimonial-card p {
  font-size: 16px;
  line-height: 1.8;
  color: #2D3436;
  font-style: italic;
}

.testimonial-card .author {
  color: #1565C0;
  font-weight: 700;
  font-style: normal;
  margin-top: 16px;
}

.testimonial-card .author strong {
  color: #D84315;
  display: block;
  margin-bottom: 4px;
}

/* =================================================================
   PROCESS STEPS - ANIMATED PATH
   ================================================================= */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin: 40px 0;
}

.step {
  flex: 1 1 200px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FFA726, #D84315);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  margin: 0 auto 16px;
  box-shadow: 0 6px 20px rgba(216, 67, 21, 0.3);
  animation: pulse 2s ease infinite;
}

.step h3 {
  font-size: 18px;
  color: #1565C0;
}

/* =================================================================
   PRICING CARDS - STANDOUT FEATURED
   ================================================================= */
.pricing-card {
  text-align: center;
  flex: 1 1 300px;
}

.pricing-card.featured {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  color: #FFFFFF;
  transform: scale(1.05);
  border: 4px solid #FFA726;
}

.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured p {
  color: #FFFFFF;
}

.pricing-card .price {
  font-size: 36px;
}

/* =================================================================
   CTA BANNER - HIGH ENERGY
   ================================================================= */
.cta-banner {
  background: linear-gradient(135deg, #D84315 0%, #E65100 100%);
  padding: 60px 20px;
  text-align: center;
  border-radius: 30px;
  margin: 60px 20px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 5s ease-in-out infinite;
}

.cta-banner h2 {
  color: #FFFFFF;
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-banner h2::after {
  background: #FFA726;
  left: 50%;
  transform: translateX(-50%);
}

.cta-banner p {
  color: #FFFFFF;
  font-size: 18px;
  margin-bottom: 32px;
}

/* =================================================================
   FOOTER - COLORFUL & ORGANIZED
   ================================================================= */
footer {
  background: linear-gradient(135deg, #2D3436 0%, #1A1D1F 100%);
  color: #FFFFFF;
  padding: 60px 20px 20px;
  margin-top: 80px;
}

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

.footer-section {
  flex: 1 1 250px;
}

.footer-section p{
  color: white;
}

.footer-logo {
  height: 50px;
  margin-bottom: 16px;
}

.footer-section h4 {
  color: #FFA726;
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: #FFFFFF;
  font-size: 14px;
  transition: all 0.3s ease;
  padding-left: 0;
}

.footer-nav a:hover {
  color: #FFA726;
  padding-left: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #CCCCCC;
  font-size: 14px;
}

/* =================================================================
   PAGE-SPECIFIC SECTIONS
   ================================================================= */
.page-hero {
  background: linear-gradient(135deg, #FFA726 0%, #D84315 100%);
  padding: 60px 20px 40px;
  text-align: center;
}

.page-hero h1 {
  color: #FFFFFF;
}

.subheadline {
  font-size: 20px;
  color: #FFFFFF;
  font-weight: 400;
}

.breadcrumb {
  color: #FFFFFF;
  margin-bottom: 24px;
  font-size: 14px;
}

.breadcrumb a {
  color: #FFFFFF;
  text-decoration: underline;
}

/* 404 Error Page */
.error-hero {
  background: linear-gradient(135deg, #E65100 0%, #D84315 100%);
}

.error-code {
  font-size: 120px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
  margin-bottom: 16px;
  animation: glitch 2s infinite;
}

/* Thank You Page */
.thank-you-section {
  padding: 80px 20px;
  text-align: center;
}

.success-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  margin: 0 auto 32px;
  animation: scaleIn 0.6s ease;
}

/* Legal Pages */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.legal-page h1 {
  color: #D84315;
  margin-bottom: 32px;
}

.legal-page h2 {
  color: #1565C0;
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-page h3 {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-page ul,
.legal-page ol {
  margin: 16px 0;
  padding-left: 32px;
}

.legal-page li {
  margin-bottom: 12px;
  line-height: 1.8;
}

/* Blog Categories */
.category-tag {
  background: linear-gradient(135deg, #FFA726, #D84315);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.category-tag:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(216, 67, 21, 0.4);
}

/* =================================================================
   COOKIE CONSENT BANNER
   ================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2D3436 0%, #1A1D1F 100%);
  color: #FFFFFF;
  padding: 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1998;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  border-top: 4px solid #FFA726;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.cookie-text {
  flex: 1 1 400px;
}

.cookie-text p {
  color: #FFFFFF;
  margin-bottom: 0;
  font-size: 14px;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-accept,
.cookie-reject,
.cookie-settings {
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-accept {
  background: #FFA726;
  color: #FFFFFF;
}

.cookie-accept:hover {
  background: #D84315;
  transform: scale(1.05);
}

.cookie-reject {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.cookie-reject:hover {
  background: #FFFFFF;
  color: #2D3436;
}

.cookie-settings {
  background: #1565C0;
  color: #FFFFFF;
}

.cookie-settings:hover {
  background: #0D47A1;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.cookie-modal.show {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #F5F5F5;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #D84315;
  color: #FFFFFF;
  transform: rotate(90deg);
}

.cookie-category {
  margin: 24px 0;
  padding: 20px;
  background: #F5F5F5;
  border-radius: 15px;
  border-left: 4px solid #FFA726;
}

.cookie-category h3 {
  margin-bottom: 12px;
  color: #D84315;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  background: #CCCCCC;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-switch.active {
  background: #4CAF50;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

/* =================================================================
   ANIMATIONS - PLAYFUL & DYNAMIC
   ================================================================= */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

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

@keyframes glitch {
  0%, 100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

/* =================================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ================================================================= */
@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  .hero-section h1 {
    font-size: 40px;
  }
  
  .hero-subheadline {
    font-size: 16px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  .service-card,
  .course-card,
  .category-card,
  .stat-card,
  .pricing-card,
  .testimonial-card {
    flex: 1 1 100%;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .process-steps {
    flex-direction: column;
  }
  
  .error-code {
    font-size: 80px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-accept,
  .cookie-reject,
  .cookie-settings {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .service-card,
  .course-card,
  .category-card {
    flex: 1 1 calc(50% - 24px);
  }
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */
.text-center {
  text-align: center;
}

.section-subheadline {
  font-size: 18px;
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
}

.availability,
.trust-badge,
.trust-element,
.guarantee,
.trust-elements {
  color: #FFFFFF;
  font-size: 14px;
  margin-top: 16px;
}

.meta {
  font-size: 13px;
  color: #999999;
  margin-top: 12px;
}

/* Ensure proper spacing between all cards */
.card, .service-card, .course-card, .feature, .benefit-item,
.category-card, .stat-card, .format-card, .pricing-card,
.testimonial-card, .blog-card, .resource-card, .link-card,
.contact-card, .contact-item, .service-item, .cert-category,
.category-tag, .step, .suggestion-card {
  margin-bottom: 24px;
}

/* Prevent overlapping with proper z-index and positioning */
.hero-section,
.page-hero,
.cta-banner {
  position: relative;
  z-index: 1;
}

/* Ensure text contrast in all sections */
.testimonials p,
.testimonial-card p,
.review-card p {
  color: #2D3436 !important;
}

/* Fix alignment for text-image sections */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
  }
}

/* Additional spacing for specific sections */
.featured-services,
.courses-section,
.academy-benefits,
.course-categories,
.pricing-section,
.career-services,
.certifications-section,
.blog-categories,
.contact-options {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Ensure proper gap in all flex containers */
.services-grid,
.courses-grid,
.features-grid,
.benefits-grid,
.categories-grid,
.stats-grid,
.formats-grid,
.pricing-grid,
.testimonials-grid,
.blog-grid,
.resources-grid,
.links-grid,
.contacts-grid,
.cert-categories {
  gap: 24px;
}

/* Text visibility improvements */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility improvements */
a:focus,
button:focus {
  outline: 3px solid #FFA726;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  header,
  footer,
  .mobile-menu-toggle,
  .mobile-menu,
  .cookie-banner,
  .cta-banner {
    display: none;
  }
}