/* =====================
   NeuroMist Academy CSS
   Professional Corporate Style
   ===================== */

/* 1. Base & Reset */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1C2A44;
  background: #F7F9FB;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1C2A44;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F7C948;
  outline: none;
}

/* 2. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #1C2A44;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.subheadline {
  font-size: 1.125rem;
  color: #3A4A66;
  margin-bottom: 24px;
  font-weight: 400;
}
strong {
  font-weight: 700;
}

/* 3. Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 4. Sections & Spacing */
section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(28,42,68,0.04);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 768px) {
  section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
}

/* 5. Header & Navigation */
header {
  background: #1C2A44;
  color: #fff;
  box-shadow: 0 2px 8px rgba(28,42,68,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.logo img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  color: #E0E4ED;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F7C948;
}
.btn-primary {
  background: #F7C948;
  color: #1C2A44;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 24px;
  box-shadow: 0 2px 8px rgba(28,42,68,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FFD96A;
  color: #1C2A44;
  box-shadow: 0 4px 16px rgba(28,42,68,0.12);
}
.btn-secondary {
  background: #1C2A44;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: 2px solid #F7C948;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.2s, color 0.2s, border 0.2s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F7C948;
  color: #1C2A44;
  border-color: #FFD96A;
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #F7C948;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 16px;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #F7C948;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28,42,68,0.98);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #F7C948;
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid #F7C948;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F7C948;
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* 6. Hero & Section Patterns */
.hero {
  background: #E0E4ED;
  border-radius: 12px;
  padding: 48px 20px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 7. Feature Grid & Cards */
.feature-grid, .course-grid, .team-grid, .stat-grid, .teacher-grid, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature-item, .course-card, .team-member, .stat-item, .teacher-profile, .blog-card {
  background: #F7F9FB;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(28,42,68,0.06);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover, .course-card:hover, .team-member:hover, .teacher-profile:hover, .blog-card:hover {
  box-shadow: 0 4px 16px rgba(28,42,68,0.12);
  transform: translateY(-2px) scale(1.01);
}

/* Testimonials */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.testimonial-card {
  background: #E0E4ED;
  color: #1C2A44;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(28,42,68,0.06);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 260px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: #1C2A44;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #3A4A66;
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(28,42,68,0.12);
  transform: translateY(-2px) scale(1.01);
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.faq-item {
  background: #F7F9FB;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 1px 6px rgba(28,42,68,0.04);
  margin-bottom: 20px;
}
.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 0 0;
  border-left: 3px solid #F7C948;
  padding-left: 18px;
}
.timeline div {
  font-size: 1rem;
  color: #3A4A66;
}

/* Stats */
.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.stat-item {
  background: #E0E4ED;
  border-radius: 8px;
  padding: 24px 20px;
  flex: 1 1 180px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.stat-item strong {
  font-size: 2rem;
  color: #1C2A44;
}
.stat-item span {
  font-size: 1rem;
  color: #3A4A66;
}

/* Blog */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.blog-card {
  background: #F7F9FB;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(28,42,68,0.06);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  box-shadow: 0 4px 16px rgba(28,42,68,0.12);
  transform: translateY(-2px) scale(1.01);
}
.blog-categories, .course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.blog-categories span, .course-filters span {
  font-weight: 600;
  color: #1C2A44;
}
.blog-categories a, .course-filters a {
  color: #1C2A44;
  background: #E0E4ED;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.blog-categories a:hover, .course-filters a:hover {
  background: #F7C948;
  color: #1C2A44;
}
.blog-search {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.blog-search input[type="text"] {
  flex: 1 1 200px;
  padding: 10px 14px;
  border: 1px solid #E0E4ED;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: #1C2A44;
  transition: border 0.2s;
}
.blog-search input[type="text"]:focus {
  border: 1.5px solid #F7C948;
  outline: none;
}

/* Contact Details & Map */
.contact-details {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-placeholder {
  background: #E0E4ED;
  border-radius: 8px;
  padding: 24px;
  color: #3A4A66;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Support Links */
.support-links {
  margin-top: 16px;
  font-size: 0.98rem;
  color: #3A4A66;
}
.support-links a {
  color: #1C2A44;
  margin: 0 4px;
  transition: color 0.2s;
}
.support-links a:hover {
  color: #F7C948;
}

/* 8. Footer */
footer {
  background: #1C2A44;
  color: #E0E4ED;
  padding: 40px 0 0 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #F7C948;
}
.footer-brand img {
  height: 36px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #E0E4ED;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #F7C948;
}
.footer-contact {
  font-size: 0.98rem;
  color: #E0E4ED;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-copy {
  width: 100%;
  text-align: center;
  color: #AEB6C8;
  font-size: 0.95rem;
  margin-top: 24px;
  padding-bottom: 16px;
}

/* 9. Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #1C2A44;
  color: #fff;
  box-shadow: 0 -2px 12px rgba(28,42,68,0.12);
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 16px;
  font-size: 1rem;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1), opacity 0.3s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-message {
  flex: 1 1 300px;
  max-width: 600px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cookie-btn.accept {
  background: #F7C948;
  color: #1C2A44;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #FFD96A;
}
.cookie-btn.reject {
  background: #E0E4ED;
  color: #1C2A44;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F7C948;
  color: #1C2A44;
}
.cookie-btn.settings {
  background: transparent;
  color: #F7C948;
  border: 2px solid #F7C948;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F7C948;
  color: #1C2A44;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(28,42,68,0.65);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #1C2A44;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(28,42,68,0.18);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookieModalIn 0.35s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #1C2A44;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #F7C948;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: #1C2A44;
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  accent-color: #F7C948;
  width: 20px;
  height: 20px;
}
.cookie-category .always-on {
  color: #3A4A66;
  font-size: 0.98rem;
  margin-left: 8px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
}

/* 10. Responsive Design */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .footer-brand, .footer-nav, .footer-contact {
    margin-bottom: 18px;
  }
  footer .container {
    gap: 24px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .course-grid, .team-grid, .stat-grid, .teacher-grid, .blog-list, .testimonial-slider {
    gap: 16px;
  }
  .feature-item, .course-card, .team-member, .stat-item, .teacher-profile, .blog-card, .testimonial-card {
    min-width: 180px;
    padding: 18px 12px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 4px;
  }
  .content-wrapper {
    padding: 0;
  }
  .feature-grid, .course-grid, .team-grid, .stat-grid, .teacher-grid, .blog-list, .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
  .feature-item, .course-card, .team-member, .stat-item, .teacher-profile, .blog-card, .testimonial-card {
    min-width: 0;
    width: 100%;
    margin-bottom: 14px;
    padding: 14px 8px;
  }
  .footer-brand, .footer-nav, .footer-contact {
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 8px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 18px 8px;
    font-size: 0.98rem;
    align-items: flex-start;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: flex-start;
  }
  .cookie-modal {
    min-width: 0;
    padding: 18px 8px 14px 8px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.1rem; }
  .btn-primary, .btn-secondary, .cookie-btn {
    padding: 8px 12px;
    font-size: 0.98rem;
  }
}

/* 11. Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* 12. Accessibility & Focus */
a:focus, button:focus, input:focus {
  outline: 2px solid #F7C948;
  outline-offset: 2px;
}

/* 13. Miscellaneous */
::-webkit-scrollbar {
  width: 8px;
  background: #E0E4ED;
}
::-webkit-scrollbar-thumb {
  background: #AEB6C8;
  border-radius: 4px;
}

/* 14. Flexbox Patterns (MANDATORY) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* 15. Prevent Overlapping & Ensure Spacing */
section > *, .content-wrapper > *, .card-container > *, .feature-grid > *, .course-grid > *, .team-grid > *, .stat-grid > *, .teacher-grid > *, .blog-list > *, .testimonial-slider > *, .faq-list > * {
  margin-bottom: 20px;
}
section > *:last-child, .content-wrapper > *:last-child, .card-container > *:last-child, .feature-grid > *:last-child, .course-grid > *:last-child, .team-grid > *:last-child, .stat-grid > *:last-child, .teacher-grid > *:last-child, .blog-list > *:last-child, .testimonial-slider > *:last-child, .faq-list > *:last-child {
  margin-bottom: 0;
}

/* 16. Hide elements visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* 17. Animations for micro-interactions */
.btn-primary, .btn-secondary, .cookie-btn {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
}
.card, .feature-item, .course-card, .team-member, .teacher-profile, .blog-card, .testimonial-card {
  transition: box-shadow 0.2s, transform 0.2s;
}

/* 18. Z-index for overlays */
.mobile-menu, .cookie-modal-overlay {
  z-index: 9999;
}

/* 19. No CSS Grid or Columns used anywhere */
/* END OF CSS */
