/* RESET & BASE TYPOGRAPHY -- Playful Dynamic Theme for Sapphire Cabin Academy */
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;
}
html {
  height: 100%;
  background: #F4F7FB;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #18457A;
  background: #F4F7FB;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #18457A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px dashed #29A6C1;
  outline-offset: 2px;
}
strong, b { font-weight: 700; }

/* PLAYFUL_DYNAMIC BASE: COLORS & BRAND FONTS */
:root {
  --color-primary: #18457A;
  --color-secondary: #29A6C1;
  --color-accent: #F4F7FB;
  --color-fun-1: #FFCC00;
  --color-fun-2: #FF795E;
  --color-fun-3: #86E6C1;
  --color-fun-4: #F661B2;
  --shadow-card: 0 2px 12px rgba(40,166,193,0.10), 0 1.5px 8px rgba(24,69,122,0.08);
  --shadow-float: 0 0 0 4px #29A6C133;
  --radius: 20px;
  --font-display: 'Montserrat', 'Comic Sans MS', cursive, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* TYPOGRAPHY HIERARCHY */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: .01em;
}
h1 {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
h2 {
  font-size: 2rem;
  color: var(--color-fun-2);
  margin-bottom: 8px;
}
h3 {
  font-size: 1.4rem;
  color: var(--color-secondary);
  margin-bottom: 6px;
}
h4 {
  font-size: 1.16rem;
  color: var(--color-fun-1);
}
p, ul, ol, li {
  font-size: 1rem;
  color: #2A315B;
}
.subheadline {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-size: 1.1rem;
  margin-bottom: 26px;
  font-weight: 500;
}

/* SPACING AND FLEX CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom:16px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: transform .17s cubic-bezier(.59,1.63,.51,1), box-shadow .18s cubic-bezier(.46,1.48,.3,1);
  border: 2.5px solid var(--color-accent);
}
.card:hover {
  transform: translateY(-8px) scale(1.025) rotate(-1deg);
  box-shadow: 0 6px 32px -2px #29A6C155;
  border-color: var(--color-fun-2);
}
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 24px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  border-left: 9px solid var(--color-fun-1);
  position: relative;
  min-width: 220px;
  transition: box-shadow .2s, border-left-color .2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px -4px #86E6C1cc;
  border-left-color: var(--color-fun-3);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* NAVIGATION BAR & HEADER STYLES */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 16px -14px #18457a20;
  position: sticky;
  top: 0;
  z-index: 990;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  justify-content: flex-start;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 0 8px 0;
  margin-left: 6px;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.16s, background 0.13s;
}
header nav a:not(.cta):hover {
  color: var(--color-fun-2);
}
header nav .cta.primary,
.cta.primary {
  background: var(--color-secondary);
  color: #fff !important;
  border-radius: 40px;
  padding: 8px 30px;
  font-size: 1.11rem;
  transition: background 0.24s cubic-bezier(.43,1.7,.54,.95), box-shadow .24s cubic-bezier(.3,1.4,.56,1);
  margin-left: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 2px 10px #29A6C144;
}
.cta.primary:hover,
header nav .cta.primary:hover {
  background: var(--color-fun-2);
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 5px 24px #FFCC0055;
}
header nav .cta.secondary,
.cta.secondary {
  background: #fff;
  color: var(--color-secondary) !important;
  border: 2px solid var(--color-secondary);
  border-radius: 40px;
  padding: 8px 28px;
  margin-left: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: color .14s, border-color .17s, box-shadow .16s;
  box-shadow: 0 0.5px 3px #29A6C133;
}
.cta.secondary:hover {
  color: var(--color-fun-3) !important;
  border-color: var(--color-fun-3);
  box-shadow: 0 0 0 2px var(--color-fun-3) inset;
  transform: scale(1.02);
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--color-fun-2);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 1300;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-fun-1);
  background: var(--color-fun-1);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #1e325eee;
  backdrop-filter: blur(4px);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.88,0,.32,1.1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2rem;
  background: var(--color-fun-2);
  color: #fff;
  border: none;
  border-radius: 8px;
  margin: 24px 22px 12px 0;
  padding: 4px 12px;
  cursor: pointer;
  z-index: 1500;
  transition: background 0.17s;
  align-self: flex-end;
}
.mobile-menu-close:hover {
  background: var(--color-fun-1);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
  margin-top: 20px;
  padding: 0 24px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  padding: 14px 10px;
  border-radius: 10px;
  transition: background 0.19s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover {
  background: var(--color-fun-4);
  color: #fff;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(105deg, var(--color-fun-3) 1.5%, #F4F7FB 80%);
  border-radius: 0 0 56px 56px;
  box-shadow: 0 10px 64px -28px var(--color-secondary)40;
  margin-bottom: 48px;
}
.hero .container {
  padding-top: 40px;
  padding-bottom: 34px;
}
.hero h1 {
  font-size: 2.7rem;
  color: var(--color-primary);
  text-shadow: 0 2px 8px #F4F7FB99;
  margin-bottom: 10px;
}

/* FEATURES */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 10px;
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  min-width: 220px;
  max-width: 260px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow .18s, transform .17s;
  position: relative;
  margin-bottom: 20px;
  border: 3px solid transparent;
}
.feature img {
  width: 64px;
  margin-bottom: 14px;
}
.feature:hover {
  box-shadow: 0 10px 32px #FFCC0027;
  transform: translateY(-7px) scale(1.045);
  border-color: var(--color-fun-1);
}

/* SERVICES & LISTS */
.service-list, .faq-list, .workshop-list, .resource-list, .tutorial-guides, .newsletter-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 12px 0;
}
.service-list li,
.workshop-list .text-section,
.resource-list .text-section,
.tutorial-guides .text-section,
.faq-list .text-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 200px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
  transition: box-shadow .17s, transform .14s;
  border-left: 7px solid var(--color-fun-4);
}
.service-list li:hover {
  box-shadow: 0 3px 24px #F661B266;
  transform: translateY(-2px) scale(1.018);
  border-left-color: var(--color-fun-2);
}
.price {
  color: var(--color-fun-1);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 8px;
}

/* TESTIMONIALS */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
  margin-bottom: 12px;
  justify-content: flex-start;
}
.testimonial-card .star-rating {
  font-size: 1.32rem;
  color: #FFCC00;
  letter-spacing: .21em;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.08rem;
}
.testimonial-author {
  color: var(--color-secondary);
  font-style: italic;
  font-size: 0.97rem;
  font-family: var(--font-display);
}

/* TABLE STYLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 16px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-family: var(--font-body);
}
thead {
  background: var(--color-fun-4);
  color: #fff;
  font-family: var(--font-display);
}
th, td {
  padding: 10px 8px;
  border-bottom: 1px solid #E7EDF5;
  text-align: center;
}
tr:last-child td {
  border-bottom: none;
}
tr:nth-child(even) td {
  background: #F4F7FB;
}

/* SKILL TAGS */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0 0;
}
.skill-tags span {
  background: var(--color-fun-3);
  color: #18457A;
  border-radius: 40px;
  font-family: var(--font-display);
  font-size: .94rem;
  font-weight: 700;
  padding: 6px 16px;
  box-shadow: 0 1px 4px #29A6C188;
  transition: background 0.2s;
}
.skill-tags span:hover {
  background: var(--color-fun-2);
  color: #fff;
}

/* FOOTER STYLES */
footer {
  background: #fff;
  box-shadow: 0 -1px 24px -12px #18457A15;
  border-radius: 40px 40px 0 0;
  margin-top: 46px;
  position: relative;
  font-size: 0.98rem;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer .footer-brand, 
footer .footer-contact, 
footer .footer-social, 
footer .footer-menu {
  flex: 1 1 200px;
  margin-bottom: 18px;
}
footer .footer-brand img {
  width: 48px;
  margin-bottom: 6px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  transition: transform .15s;
}
.footer-social a:hover img {
  transform: scale(1.18) rotate(-8deg);
}
footer .copyright {
  width: 100%;
  text-align: right;
  font-size: 0.93rem;
  color: #8ea9c3;
  margin-top: 18px;
  margin-bottom: 8px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe9;
  color: #2A315B;
  font-family: var(--font-display);
  box-shadow: 0 -2px 22px -10px #FFCC0060;
  z-index: 2000;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px 24px;
  border-top: 4px solid var(--color-fun-1);
  animation: cookie-slide-in 0.7s cubic-bezier(.88,0,.32,1.09);
}
@keyframes cookie-slide-in {
  from { transform: translateY(128px); opacity:0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 220px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: var(--color-fun-2);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-family: var(--font-display);
  font-size: 1.01rem;
  padding: 8px 22px;
  margin: 0 0 0 0;
  cursor: pointer;
  box-shadow: 0 1px 6px #FF795E33;
  transition: background .16s, transform .13s;
}
.cookie-banner button:hover {
  background: var(--color-fun-1);
  color: var(--color-primary);
}
.cookie-banner .cookie-settings {
  background: var(--color-fun-3);
  color: var(--color-primary);
  border: 2px solid var(--color-fun-2);
  box-shadow: 0 0.5px 2px #86E6C1aa;
  font-weight: 700;
}
.cookie-banner .cookie-settings:hover {
  background: var(--color-fun-2);
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.95);
  min-width: 320px;
  max-width: 95vw;
  background: #fff;
  color: #18457A;
  border-radius: 22px;
  box-shadow: 0 18px 68px -14px #18457A66;
  z-index: 2100;
  padding: 28px 22px 22px 22px;
  animation: none;
}
.cookie-modal.active {
  display: block;
  animation: modal-spring .38s cubic-bezier(.66,1.8,.38,1);
  transform: translate(-50%,-50%) scale(1);
}
@keyframes modal-spring {
  0% { transform: translate(-50%,-50%) scale(.85); opacity: .5; }
  66% { transform: translate(-50%,-50%) scale(1.03); }
  100% { transform: translate(-50%,-50%) scale(1);
  opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 16px;
  background: var(--color-fun-2);
  color: #fff;
  border: none;
  font-size: 1.35rem;
  border-radius: 8px;
  padding: 4px 13px;
  cursor: pointer;
  transition: background .16s;
}
.cookie-modal-close:hover {
  background: var(--color-fun-1);
  color: var(--color-primary);
}
.cookie-modal h3 {
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.cookie-category label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-fun-1);
  width: 22px;
  height: 22px;
  margin-right: 8px;
}
.cookie-category .always-on {
  font-size: 0.99rem;
  color: var(--color-secondary);
  background: var(--color-fun-3);
  padding: 4px 10px;
  border-radius: 10px;
  margin-left: 3px;
  font-weight: 600;
}
/* Animation for fade in overlay */
.cookie-modal-bg {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: #18457a67;
  z-index: 2050;
  animation: fade-in-bg .2s;
}
.cookie-modal-bg.active {
  display: block;
}
@keyframes fade-in-bg {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* GENERIC BUTTON STYLE */
button, .button, input[type=submit] {
  border: none;
  background: var(--color-secondary);
  color: #fff;
  padding: 10px 28px;
  border-radius: 24px;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.08rem;
  transition: box-shadow 0.22s, background 0.18s, transform .10s;
  box-shadow: 0 6px 18px -9px #29A6C144;
  cursor: pointer;
}
button:hover, .button:hover, input[type=submit]:hover {
  background: var(--color-fun-2);
  color: #fff;
  transform: scale(1.025) rotate(-2deg);
  box-shadow: 0 0 0 6px #FFCC0030;
}

/* TEXT SECTIONS AND CARD LAYOUT UTILS */
.text-section {
  margin-bottom: 24px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.team-grid, .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}
ul, ol {
  padding-left: 26px;
  margin-bottom: 10px;
}
ul li, ol li {
  margin-bottom: 5px;
  font-size: 1rem;
  line-height: 1.6;
  color: #2A315B;
}

/* UTILITY CLASSES */
.bg-fun {
  background: var(--color-fun-1) !important;
  color:#18457A !important;
}
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center !important; }

/* ANIMATED ELEMENTS + MICRO-INTERACTIONS */
.cta.primary, .cta.secondary, .button, header nav a:not(.cta), .feature, .card, .testimonial-card, .service-list li {
  transition: box-shadow .15s cubic-bezier(.21,1.15,.5,1.1), transform .15s cubic-bezier(.26,1.12,.43,1);
}
.cta.primary:active, .cta.secondary:active {
  transform: scale(0.96);
}
.card::before, .feature::before, .testimonial-card::before {
  content: '';
  position: absolute;
  right: -14px; top: -14px;
  width: 44px; height:44px;
  border-radius: 50%;
  background: var(--color-fun-4);
  opacity: .18;
  z-index: 0;
  pointer-events: none;
  animation: floatBob 1.3s infinite alternate ease-in-out;
}
@keyframes floatBob {
  from { transform: translateY(0px) scale(1.04); }
  to   { transform: translateY(-7px) scale(1.12); }
}

.card:hover::before,.feature:hover::before, .testimonial-card:hover::before {
  background: var(--color-fun-1);
  opacity: .24;
}

/* RESPONSIVE DESIGN & FLEXBOX OVERRIDES */
@media (max-width: 1100px) {
  .feature-grid,.card-container,.team-grid,.content-grid,.testimonials { gap: 18px; }
  .card, .feature { max-width: 99vw; }
  header nav { gap: 10px; font-size: 0.95rem; }
}
@media (max-width: 900px) {
  .container { padding: 0 12px; }
  .content-wrapper, .facts, .team-grid, .testimonials, .newsletter-benefits, .card-container {
    gap: 14px;
  }
  footer .content-wrapper { gap: 16px; }
  .feature, .card, .testimonial-card, .service-list li { min-width: 160px; max-width: 99vw; }
}
@media (max-width: 768px) {
  .content-wrapper, .facts, .team-grid, .testimonials, .newsletter-benefits, .feature-grid, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 14px;
    align-items: stretch;
  }
  header nav { display: none; }
  .mobile-menu-toggle { display: inline-block; margin: 10px 18px; }
  .section { padding: 28px 6px; }
  .hero .container { padding-top:18px; padding-bottom:14px; }
  footer .content-wrapper { flex-direction: column; gap: 10px; }
  .footer-menu, .footer-brand, .footer-contact, .footer-social { align-items: flex-start; }
  .footer-social { margin-bottom: 4px; }
  .card, .feature { min-width: 0; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  .cta.primary, .cta.secondary, .button { font-size: 1rem; padding:6px 16px; }
  .testimonial-card, .feature, .card { padding: 16px 8px; }
}

/* ACCESSIBILITY + FOCUS STYLES */
a:focus, button:focus, .cta:focus, .cookie-banner button:focus {
  outline: 2px dashed var(--color-fun-1);
  outline-offset: 3px;
  background: var(--color-fun-3);
  color: var(--color-primary);
}

/* Prevent overlapping at all breakpoints */
.card, .feature, .testimonial-card, .service-list li, .text-section {
  margin-bottom: 20px;
}

/* Hide cookie modal and overlay by default, show via .active class */

/* END OF MAIN STYLE FILE */
