/* ====================================================
   Wild Crypt Academy – SOFT PASTEL THEME (FLEXBOX ONLY)
   Comprehensive style.css for all pages and components
   ====================================================
*/

/* === CSS RESET / NORMALIZE === */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none; color: inherit;
}
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  border: none;
  background: none;
}
img, svg {
  max-width: 100%;
  display: block;
}

/* ===========================================
   PALETTE (SOFT PASTEL; BRAND ADAPTED)
   =========================================== */
:root {
  --primary: #243552;
  --secondary: #5FC489;
  --accent: #FFE66D;
  --background: #F8FAFF; /* Very light pastel blue */
  --surface: #F5F4FB; /* Soft opal purple/white */
  --pastel-coral: #FFB0B4;
  --pastel-mint: #B2F7E6;
  --pastel-yellow: #FFF9D6;
  --pastel-blue: #B7D6FF;
  --pastel-lavender: #E5DEFA;
  --text-main: #213145;
  --text-soft: #5F7794;
  --text-dark: #111722;
  --white: #FFF;
  --border: #E3E8F2;
  --shadow: 0 4px 24px 0 rgba(34,40,82,0.10), 0 2px 6px 0 rgba(90,122,188,0.09);
}

/* ===============================
   FONTS
   =============================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');
body, html {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--background);
  color: var(--text-main);
  font-size: 16px;
  min-height: 100vh;
  scroll-behavior: smooth;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.015em;
}
h1 { font-size: 2.5rem; line-height: 1.16; margin-bottom: 18px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.3rem; line-height: 1.4; margin-bottom: 12px; }
h4 { font-size: 1.08rem; line-height: 1.4; }

p, ul, ol, li {
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 12px;
}
strong, b {
  font-weight: 700;
  color: var(--primary);
}

/* ================================
   CONTAINER & WRAPPERS
   ================================ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 18px; 
}

/* ===============
   NAVIGATION
   =============== */
header {
  background: var(--white);
  box-shadow: 0 2px 8px 0 rgba(36,53,82,0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
  position: relative;
}
.main-nav > a img {
  height: 38px;
  margin-right: 12px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav li {
  list-style: none;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  opacity: 0.92;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, var(--secondary), var(--pastel-blue));
  color: var(--primary);
  font-family: 'Montserrat',sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 28px;
  box-shadow: 0 4px 16px 0 rgba(95, 196, 137, 0.08), 0 1.5px 8px 0 rgba(34,53,82,0.06);
  transition: background 0.22s, color 0.12s, box-shadow 0.18s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--pastel-lavender), var(--secondary));
  color: var(--primary);
  box-shadow: 0 2px 10px 0 rgba(95, 196, 137, 0.18);
}

.btn-link {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  background: none;
  border: none;
  padding: 6px 0;
  border-radius: 5px;
  transition: color 0.2s, background 0.18s;
  cursor: pointer;
  outline: 0;
  text-decoration: underline;
}
.btn-link:hover, .btn-link:focus {
  color: var(--primary);
  background: var(--pastel-mint);
}

/* ================================
   MOBILE NAVIGATION
   ================================ */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2.1rem;
  color: var(--secondary);
  cursor: pointer;
  z-index: 101;
  border-radius: 50%;
  padding: 8px;
  border: none;
  margin-right: 8px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--pastel-mint);
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  height: 100vh;
  background: var(--surface);
  box-shadow: -8px 0 30px 0 rgba(36,53,82,0.15);
  z-index: 102;
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 32px 24px 24px 24px;
  transition: transform 0.33s cubic-bezier(.51,.21,.01,1.02);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.0rem;
  color: var(--primary);
  background: var(--pastel-coral);
  padding: 4px 14px 4px 14px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
  margin-bottom: 12px;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--pastel-mint);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 600;
  padding: 13px 0 10px 0;
  border-radius: 6px;
  transition: background 0.16s, color 0.12s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--pastel-mint);
  color: var(--secondary);
}

/* ================================
   SECTIONS/LAYOUTS
   ================================ */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
/* Container Spacing in Cards/Flex Areas */
.card-container, .feature-grid, .service-list, .mentor-list, .mentorship-options, .tutor-profiles,
.testimonial-list, .step-grid, .faq-list, .approach-grid, .blog-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 24px;
}
.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;
}

/* Feature & Card Base */
.feature-item, .service-item, .mentor-profile, .approach-item, .step-item, .faq-item, .blog-card {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px 22px 24px 22px;
  min-width: 240px;
  max-width: 95vw;
  flex: 1 1 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.16s, background 0.22s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.feature-item:hover, .service-item:hover, .approach-item:hover, .step-item:hover, .blog-card:hover {
  box-shadow: 0 8px 34px 0 rgba(36,53,82,0.13);
  transform: translateY(-3px) scale(1.012);
  background: var(--pastel-mint);
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 24px 20px;
}

/* ================================
   TESTIMONIALS
   ================================ */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  box-shadow: 0 6px 30px 0 rgba(36,53,82,0.12);
  border-radius: 20px;
  flex: 1 1 320px;
  min-width: 270px;
  max-width: 95vw;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.14s, background 0.23s;
  color: var(--primary);
}
.testimonial-card:hover {
  box-shadow: 0 14px 38px 0 rgba(95,196,137,0.08);
  background: var(--pastel-yellow);
  transform: translateY(-2px);
}
.testimonial-card p {
  font-size: 1.1rem;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 3px;
  line-height: 1.55;
}
.testimonial-details {
  color: var(--text-dark);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-top: 4px;
  letter-spacing: 0.01em;
}
.testimonial-details span {
  color: var(--accent);
  font-size: 1.3em;
  margin-left: 10px;
}

/* ================================
   FOOTER
   ================================ */
footer {
  background: var(--primary);
  color: var(--pastel-yellow);
  padding: 40px 0 32px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-links a {
  color: var(--accent);
  opacity: 0.89;
  transition: color 0.17s, text-decoration 0.18s;
  font-size: 1rem;
}
.footer-links a:hover {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-contact p, .footer-contact a {
  color: var(--pastel-yellow);
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 7px;
}

/* ================================
   BLOG & MISC CARDS
   ================================ */
.blog-list {
  gap: 24px;
}
.blog-card {
  transition: box-shadow 0.17s, transform 0.13s, background 0.18s;
}
.blog-card h3 {
  margin-bottom: 9px;
  font-size: 1.14rem;
}

.blog-categories {
  margin-top: 34px;
  font-size: 1rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-categories a {
  color: var(--primary);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0 2px;
  transition: color 0.16s;
}
.blog-categories a:hover { color: var(--secondary); text-decoration: underline; }

/* ================================
   PRICING and SERVICE ITEMS
   ================================ */
.price {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 7px;
}
.service-list {
  gap: 24px;
}
.service-item {
  min-width: 220px;
}

.mentor-list, .approach-grid, .tutor-profiles {
  gap: 24px;
}

.mentor-profile, .approach-item {
  min-width: 200px;
}

.mentorship-options {
  gap: 24px;
}

/* ================================
   FAQ SECTION
   ================================ */
.faq-list {
  flex-direction: column;
  gap: 20px;
  margin-bottom: 18px;
}
.faq-item {
  border-left: 7px solid var(--secondary);
  background: var(--pastel-blue);
  padding: 22px 20px 18px 20px;
  border-radius: 17px;
  font-size: 1rem;
  margin-bottom: 12px;
}
.faq-item h3 {
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 1.07rem;
}
.faq-cta {
  margin-top: 16px;
  font-size: 1.04rem;
}

/* ================================
   Contact Page
   ================================ */
.contact-highlight {
  background: var(--pastel-mint);
  color: var(--primary);
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(95,196,137,0.09);
  padding: 8px 20px;
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  font-size: 1rem;
  gap: 8px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1rem;
}
.map-location {
  background: var(--pastel-yellow);
  border-radius: 14px;
  box-shadow: 0 2px 6px 0 rgba(255,230,109,0.08);
  padding: 18px 18px 10px 18px;
  margin-top: 10px;
}

/* ================================
   Utility: Spacing & Visibility
   ================================ */
.mt-2 { margin-top: 8px; }
.mb-3 { margin-bottom: 12px; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.w-full { width: 100%; }

/* ================================
   ANIMATIONS & TRANSITIONS
   ================================ */
section, .feature-item, .service-item, .card, .testimonial-card, .btn-primary,
.btn-link, .mobile-menu, .mobile-menu-toggle, .blog-card {
  transition: box-shadow 0.20s, background 0.23s, color 0.18s, transform 0.16s;
}

/* ================================
   COOKIE CONSENT BANNER
   ================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: var(--surface);
  border-top: 1.5px solid var(--pastel-lavender);
  box-shadow: 0 0 24px 0 rgba(36,53,82,0.13);
  padding: 22px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  font-size: 1.02rem;
  color: var(--primary);
  animation: cookiebanner-in 0.7s cubic-bezier(.36,1.16,.57,1) 1;
  pointer-events: all;
}
@keyframes cookiebanner-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0; flex: 1 1 250px; color: var(--primary);
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-banner .btn-cookie {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 6px 19px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 1.5px 8px 0 rgba(95,196,137,0.11);
  border: none;
  cursor: pointer;
  transition: background 0.20s, color 0.13s;
  outline: 0;
}
.cookie-banner .btn-cookie.btn-cookie-settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .btn-cookie.rejected {
  background: var(--pastel-coral);
  color: var(--primary);
}
.cookie-banner .btn-cookie:hover,
.cookie-banner .btn-cookie:focus {
  background: var(--pastel-mint);
  color: var(--primary);
}

.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(36,53,82,0.23);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookiemodal-in 0.4s cubic-bezier(.31,1.09,.45,1);
  pointer-events: all;
}
@keyframes cookiemodal-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: var(--white);
  padding: 36px 30px 32px 30px;
  border-radius: 21px;
  min-width: 340px;
  box-shadow: 0 6px 38px 0 rgba(36,53,82,0.19);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h3 {
  margin-bottom: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 8px 0;
}
.cookie-category input[type=checkbox] {
  width: 22px; height: 22px;
  accent-color: var(--secondary);
}
.cookie-category label {
  font-weight: 500;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--pastel-coral);
  border: none;
  color: var(--primary);
  font-size: 1.6rem;
  border-radius: 32px;
  padding: 0 12px;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--pastel-mint);
  color: var(--primary);
}

/* ================================
   RESPONSIVE (MOBILE-FIRST)
   ================================ */
/* ---------- BASE MOBILE ---------- */
@media (max-width: 1050px) {
  .container { max-width: 97vw; }
}
@media (max-width: 950px) {
  .footer-brand, .footer-links, .footer-contact, footer .container {
    flex: 1 1 100%; max-width: 100vw;
  }
  .container { padding: 0 9px; }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .mentor-list, .mentorship-options, .tutor-profiles,
  .testimonial-list, .faq-list, .approach-grid, .step-grid, .blog-list  {
    flex-direction: column !important;
    gap: 20px;
    align-items: stretch;
  }
  .content-wrapper { gap: 18px; }
}

/* MOBILE NAV / SECTION PADDING */
@media (max-width: 768px) {
  section { padding: 32px 8px; margin-bottom: 38px; }
  h1   { font-size: 2rem; }
  h2   { font-size: 1.5rem; }
  h3   { font-size: 1.13rem; }
  .main-nav ul, .main-nav .btn-primary { display: none; }
  .main-nav > a img { height: 34px; }
  .mobile-menu-toggle { display: inline-block; }
  .main-nav { gap: 10px; }
  .footer-links { flex-direction: column; gap: 7px; }
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 650px) {
  .container {
    padding: 0 3px;
  }
  .feature-item, .service-item, .mentor-profile, .approach-item, .blog-card, .testimonial-card, .faq-item, .step-item {
    min-width: 90vw;
    padding: 17px 7vw 18px 7vw;
  }
  .cookie-modal-content {
    min-width: 95vw;
    padding: 12vw 3vw 10vw 4vw;
  }
}
@media (max-width: 540px) {
  html { font-size: 15px; }
  h1   { font-size: 1.40rem; }
  h2   { font-size: 1.14rem; }
  h3   { font-size: 1rem; }
  section { padding: 19px 3.5vw; }
}

/* Flex-direction: column for text+image sections */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 20px; }
}

/* Cookie banner & modal mobile tweaks */
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 15px; padding: 20px 8px; }
  .cookie-buttons { gap: 8px; }
}

/* Hide cookie modal on print */
@media print {
  .cookie-banner, .cookie-modal { display: none !important; }
}

/* =======================================
   ACCESSIBILITY: FOCUS STYLES
   ======================================= */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ===============
   END OF STYLES
   =============== */
