/* --- CSS RESET & BASE STYLES --- */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  color: #184380;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  scroll-behavior: smooth;
}
img, svg { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
button, input, textarea, select { font: inherit; }
a { color: #184380; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px dashed #FFD166; outline-offset: 2px; }

/* --- BRAND COLORS as CSS vars --- */
:root {
  --sw-primary: #184380;
  --sw-secondary: #29A19C;
  --sw-accent: #FFD166;
  --sw-bg-section: #F7F9FC;
  --sw-card-bg: #fff;
  --sw-grey: #f2f3f7;
  --sw-dark: #143060;
  --sw-text-dark: #1A265C;
  --sw-text: #184380;
  --sw-success: #4ECC83;
  --sw-danger: #FF686B;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  color: var(--sw-text-dark);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.12;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol { margin-bottom: 18px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 10px; }
strong, b { font-weight: 700; }
.text-section h2, .text-section h3 { color: var(--sw-primary); }

/* --- LAYOUT CONTAINER & SPACING --- */
.container {
  width: 100%;
  max-width: 1220px;
  padding: 0 18px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--sw-bg-section);
  border-radius: 32px;
  box-shadow: 0 4px 24px 0 rgba(24,67,128,.04);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  max-width: 600px;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}
.card-container,
.card-grid,
.feature-grid,
.recent-posts-grid,
.testimonial-grid,
.team-profiles,
.course-list-grid,
.case-study-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 28px;
}
.card, .feature, .course-card, .blog-post, .testimonial-card, .profile, .case-study {
  margin-bottom: 20px;
  position: relative;
  background: var(--sw-card-bg);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 2px 16px 0 rgba(24,67,128,.07);
  min-width: 260px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover, .feature:hover, .course-card:hover, .blog-post:hover, .profile:hover, .case-study:hover, .testimonial-card:hover {
  transform: translateY(-5px) scale(1.03) rotate(-1.5deg);
  box-shadow: 0 6px 32px 0 rgba(24,67,128,.11);
}

.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: center;
  gap: 20px;
  padding: 20px;
  background: #fffefb;
  border: 2px solid var(--sw-accent);
  box-shadow: 0 2px 12px 0 rgba(41,161,156,.09);
  border-radius: 20px;
  color: var(--sw-text-dark);
  min-width: 240px;
  font-size: 1.1rem;
}
.testimonial-card p {
  color: #222;
  margin-bottom: 8px;
  font-size: 1.13rem;
  font-style: italic;
}
.testimonial-author {
  color: var(--sw-secondary);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.98rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #F7F9FC;
  padding: 18px 22px;
  border-radius: 10px;
  box-shadow: 0 1px 8px 0 rgba(24,67,128,.04);
  transition: box-shadow 0.2s;
}
.faq-item h3 {
  font-size: 1.08rem;
  position: relative;
}
.faq-item p { margin-bottom: 0; color: #37527C; }

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  border-bottom: 3px solid var(--sw-accent);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 16px 18px 10px 18px;
}
.logo img { max-height: 46px; margin-right: 10px; }
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-right: 20px;
}
.main-nav a {
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  color: var(--sw-primary);
  font-weight: 600;
  border-radius: 8px;
  padding: 5px 14px;
  position: relative;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--sw-accent);
  color: #2c3556;
}
.cta-primary, .cta-secondary {
  border: none;
  border-radius: 18px;
  padding: 12px 28px;
  font-family: 'Montserrat',sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 18px -4px #18438033;
  cursor: pointer;
  transition: background 0.22s, color 0.2s, transform 0.15s;
  margin-left: 12px;
  display: inline-block;
}
.cta-primary {
  background: var(--sw-secondary);
  color: #fff;
}
.cta-primary:hover, .cta-primary:focus {
  background: #19c2b6;
  color: #fff;
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
}
.cta-secondary {
  background: var(--sw-accent);
  color: var(--sw-primary);
  box-shadow: 0 4px 18px -4px #FFD16644;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #fff6c2;
  color: #143060;
  transform: translateY(-2px) scale(1.04) rotate(1.5deg);
}
.link-secondary {
  color: var(--sw-secondary);
  font-weight: bold;
  font-size: 1rem;
  text-decoration: underline dotted 2px;
  transition: color 0.18s;
  margin-top: 8px;
}
.link-secondary:hover, .link-secondary:focus {
  color: var(--sw-accent);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  background: var(--sw-accent);
  color: var(--sw-primary);
  font-size: 2rem;
  padding: 6px 20px 6px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-left: 18px;
  display: none;
  z-index: 30;
  box-shadow: 0 2px 8px 0 #FFD16644;
  transition: background 0.15s, color .15s;
}
.mobile-menu-toggle:focus { outline: 2px dashed var(--sw-secondary); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fafdff;
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.65,.05,.38,1.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 26px 22px 26px;
  box-shadow: 0 12px 32px #18438017;
  width: 100vw;
  min-height: 100vh;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: var(--sw-danger);
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 18px;
  position: absolute;
  top: 22px; right: 26px;
  z-index: 61;
  cursor: pointer;
  padding: 0 14px;
  box-shadow: 0 2px 11px #FF686B18;
  transition: background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #d44145;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
  margin-top: 38px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: var(--sw-secondary);
  font-family: 'Montserrat', sans-serif;
  padding: 10px 0;
  border-radius: 10px;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--sw-accent);
  color: var(--sw-primary);
}
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- HERO & FEATURE SECTIONS --- */
.feature-grid {
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.feature {
  flex: 1 1 210px;
  min-width: 200px;
  max-width: 340px;
  background: #f0feff;
  border: 2.2px dashed var(--sw-secondary);
  position: relative;
  align-items: center;
  text-align: left;
}
.feature img {
  width: 46px; height: 46px; margin-bottom: 8px;
  filter: drop-shadow(0 1px 4px #29A19C33);
}

/* --- COURSE CARDS --- */
.course-list-grid {
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.course-card {
  flex: 1 1 260px;
  min-width: 250px;
  max-width: 340px;
  border: 2.2px solid var(--sw-accent);
  background: #fff;
  color: var(--sw-primary);
  box-shadow: 0 2px 10px 0 #FFD16614;
  transition: box-shadow 0.2s, transform 0.2s;
}

/* --- BLOG POSTS --- */
.recent-posts-grid {
  gap: 22px;
}
.blog-post {
  flex: 1 1 260px;
  background: #fafbfe;
  border: 2.2px dotted var(--sw-secondary);
  max-width: 340px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-post h3 a {
  color: var(--sw-primary);
  text-decoration: underline;
  font-size: 1.2rem;
}

/* --- TEAM PROFILES --- */
.team-profiles {
  gap: 24px;
  align-items: stretch;
}
.profile {
  background: #fff7f3;
  border: 2.2px solid var(--sw-accent);
  min-width: 200px;
  text-align: center;
  box-shadow: 0 3px 16px 0 #FFD16624;
  align-items: center;
}
.profile img {
  margin-bottom: 12px;
  width: 54px; height: 54px;
  filter: drop-shadow(0 3px 6px #FFD16644);
}

/* --- CASE STUDIES --- */
.case-study-list { gap: 22px; }
.case-study {
  min-width: 220px;
  background: #f5fff8;
  border: 2.2px solid var(--sw-success);
  color: #125534;
  box-shadow: 0 2px 10px 0 #83FFB822;
}

/* --- CATEGORIES FILTER --- */
.categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #F7F9FC;
  border-radius: 12px;
  padding: 9px 17px;
}
.categories-filter span {
  color: var(--sw-primary);
  font-weight: 700;
}
.categories-filter a {
  color: var(--sw-secondary);
  text-decoration: underline;
  font-weight: 600;
  transition: color .18s;
}
.categories-filter a:hover, .categories-filter a:focus {
  color: var(--sw-accent);
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 3px solid var(--sw-accent);
  margin-top: 42px;
  padding: 26px 0 0 0;
  font-size: 1rem;
}
.footer-links {
  text-align: center;
  margin-bottom: 12px;
  color: var(--sw-primary);
}
.footer-links a {
  color: var(--sw-primary);
  font-weight: 600;
  transition: color 0.17s;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--sw-secondary);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  background: #f9fcff;
  border-radius: 18px;
  padding: 17px 12px;
}
.footer-contact img {
  width: 40px; height: 40px; margin-right: 8px;
}
.footer-contact span {
  color: #405080;
  font-size: 1rem;
}
.footer-contact img[alt^="Phone"], .footer-contact img[alt^="Email"] {
  width: 16px; height: 16px; margin-right: 5px;
}

/* --- BUTTONS, LINKS --- */
button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
button:focus { outline: 2px dotted var(--sw-accent); outline-offset: 2px; }

/* --- TESTIMONIAL SLIDER PREVIEW --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

/* --- SUCCESS METRICS --- */
.success-metrics {
  background: #f8fefb;
  border-left: 4px solid var(--sw-accent);
  border-radius: 11px;
  padding: 18px 24px;
  color: var(--sw-dark);
  margin: 28px 0 20px 0;
  font-size: 1.09rem;
}

/* --- QUOTE STYLES --- */
.quotes blockquote {
  background: #FFFEEA;
  border-left: 5px solid var(--sw-accent);
  border-radius: 15px;
  padding: 18px 26px;
  color: var(--sw-secondary);
  font-family: 'Montserrat',sans-serif;
  font-size: 1.13rem;
  font-style: italic;
  margin: 18px 0 0 0;
}

/* --- CONTACT INFO --- */
.contact-info-block {
  background: #e8fff8;
  border-radius: 18px;
  padding: 22px 18px;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
  color: var(--sw-primary);
  font-weight: 600;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: #fffbe2;
  color: var(--sw-primary);
  border-top: 2px solid var(--sw-accent);
  box-shadow: 0 -2px 18px #FFD16642;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 22px 14px;
  font-size: 1rem;
  animation: cookie-slide-up 0.5s cubic-bezier(.7,0,.3,1);
}
@keyframes cookie-slide-up {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p { margin-bottom: 0; }
.cookie-banner .cookie-btn {
  margin-right: 10px;
  margin-top: 0;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.17s, color 0.13s;
  box-shadow: 0 1px 7px #FFD16644;
}
.cookie-banner .cookie-btn.accept { background: var(--sw-success); color: #fff; }
.cookie-banner .cookie-btn.accept:hover { background: #38b765; }
.cookie-banner .cookie-btn.reject { background: var(--sw-danger); color: #fff; }
.cookie-banner .cookie-btn.reject:hover { background: #c92b2d; }
.cookie-banner .cookie-btn.settings { background: var(--sw-accent); color: var(--sw-primary); }
.cookie-banner .cookie-btn.settings:hover { background: #ffec7a; color: #222; }
/* Hide banner if not visible */
.cookie-banner.hidden { display: none !important; }

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24, 67, 128, 0.24);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade .23s;
}
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  max-width: 95vw;
  min-width: 290px;
  width: 360px;
  padding: 34px 28px 18px 28px;
  box-shadow: 0 8px 36px #18438033;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-pop-in .3s cubic-bezier(.5,1.8,.4,1);
}
@keyframes modal-pop-in {
  0% { transform: scale(.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 7px;
  font-size: 1.35rem;
  color: var(--sw-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 9px;
  padding: 12px;
  border-radius: 10px;
  background: #F7F9FC;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--sw-secondary);
  width: 20px; height: 20px;
}
.cookie-category.disabled input[type="checkbox"] {
  background: #ccc;
  pointer-events: none;
  opacity: 0.7;
}
.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 8px;
}
.cookie-modal button {
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 700;
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.13s;
}
.cookie-modal .close-modal {
  background: var(--sw-danger);
  color: #fff;
}
.cookie-modal .save-modal {
  background: var(--sw-success);
  color: #fff;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1100px) {
  .container { max-width: 95vw; padding: 0 10px; }
}
@media (max-width: 900px) {
  .feature-grid, .testimonial-grid, .recent-posts-grid, .course-list-grid, .team-profiles, .case-study-list {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .section { padding: 24px 7px; margin-bottom: 36px; }
  .content-wrapper, .text-section { gap: 16px; }
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .feature-grid, .testimonial-grid, .recent-posts-grid, .course-list-grid, .team-profiles, .case-study-list {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    min-width: 180px;
  }
  .testimonial-slider { flex-direction: column; gap: 15px; }
}
@media (max-width: 600px) {
  .container { max-width: 100vw; }
  .footer-contact { flex-direction: column; gap: 7px; padding: 10px 6px; }
  .footer-contact img { width: 30px; height: 30px; }
}
@media (max-width: 500px) {
  .mobile-menu { padding: 32px 5vw 22px 5vw; }
  .cookie-modal { width: 95vw; padding: 24px 6vw 12px 6vw; }
  .section { padding: 12px 1vw; border-radius: 14px; }
}

/* --- ANIMATIONS FOR PLAYFUL DYNAMIC --- */
.feature:hover img, .profile:hover img, .case-study:hover img, .blog-post:hover img {
  animation: pop-bounce 0.33s cubic-bezier(.25,2,.25,1.2);
}
@keyframes pop-bounce {
  0% { transform: scale(1) rotate(0); }
  60% { transform: scale(1.17) rotate(-7deg); }
  100% { transform: scale(1) rotate(2deg); }
}
.card, .feature, .profile, .testimonial-card, .case-study, .course-card, .blog-post {
  transition: box-shadow 0.2s, transform 0.22s;
}

/* --- VISUAL DETAILS --- */
.section {
  position: relative;
  overflow: hidden;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  right: -28px; bottom: -32px;
  width: 120px; height: 80px;
  background: var(--sw-accent);
  opacity: 0.06;
  border-radius: 44px 22px 120px 38px;
  z-index: 0;
}
.section > .container, .section > .container > .content-wrapper {
  position: relative;
  z-index: 2;
}

/* --- MICRO-INTERACTIONS --- */
.card:active, .feature:active, .testimonial-card:active {
  transform: scale(.97) rotate(-2deg);
}
.cta-primary:active, .cta-secondary:active {
  transform: scale(0.97) rotate(0);
}

/* --- FAQ CONTACT --- */
.faq-contact-info {
  background: #f8feff;
  border-radius: 10px;
  padding: 15px 17px;
  margin-top: 16px;
  color: var(--sw-secondary);
  font-weight: bold;
}
.faq-contact-info a { color: var(--sw-primary); text-decoration: underline; }

/* --- ACCESSIBILITY & FOCUS STATES --- */
:focus-visible { outline: 2px solid var(--sw-accent); outline-offset: 2px; }

/* --- SCROLLBARS --- */
::-webkit-scrollbar { width: 9px; background: #f7fbfd; }
::-webkit-scrollbar-thumb { background: #eaeaea; border-radius: 5px; }

/* --- END --- */
