/* --- 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, menu, 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, 
main, 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  height: 100%;
}
body {
  min-height: 100vh;
  background: #181F23;
  color: #F9F9FB;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  border: none;
}
a {
  color: #2D7DD2;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #2261A9;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

/* --- INDUSTRIAL MODERN THEME COLORS --- */
:root {
  --color-primary: #1B2B34;
  --color-bg: #181F23;
  --color-bg-light: #232F36;
  --color-secondary: #F9F9FB;
  --color-accent: #2D7DD2;
  --color-accent-dark: #2261A9;
  --color-metal: #6B7784;
  --color-metal-light: #9BA7B4;
  --color-success: #47CB89;
  --color-error: #D94F50;
  --shadow-card: 0 2px 16px rgba(27, 43, 52, 0.22), 0 1.5px 5px rgba(34, 97, 169, 0.05);
}

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;900&family=Open+Sans:wght@400;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-secondary);
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-shadow: 1px 3px 0 #12181B, 0 0 24px var(--color-metal-light);
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 600;
}
p, ul, ol, li {
  color: var(--color-metal-light);
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 400;
}
strong {
  font-weight: bold;
  color: var(--color-secondary);
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  margin-bottom: 32px;
  padding: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* --- FLEX-BASED LAYOUT UTILITY CLASSES --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-light);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  flex: 1 1 320px;
  min-width: 280px;
  transition: transform 0.22s cubic-bezier(.42,.0,.58,1), box-shadow 0.22s;
}
.card:hover, .card:focus {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 8px 32px 0 rgba(34, 97, 169, 0.19);
}
.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;
  background: #F9F9FB;
  color: #1B2B34;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 20px 28px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 520px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 32px 0 rgba(34, 97, 169, 0.15);
  transform: translateY(-4px);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 20px 20px;
}

/* --- HERO & CALL TO ACTION --- */
.cta-btn {
  background: linear-gradient(92deg, var(--color-accent-dark), var(--color-accent));
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 7px;
  padding: 15px 36px;
  margin-top: 20px;
  box-shadow: 0 4px 12px 0 rgba(45,125,210,0.18);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  display: inline-block;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(98deg,var(--color-accent),var(--color-accent-dark));
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 22px 0 rgba(45,125,210,0.22);
}

/* --- HEADER --- */
header {
  background: #1B2B34;
  box-shadow: 0 2px 16px rgba(34,97,169,.14);
  padding: 0;
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 10px 20px;
  gap: 0;
}
.logo img {
  height: 38px;
  display: block;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
}
.main-nav a {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1rem;
  padding: 7px 10px;
  border-radius: 3px;
  transition: background 0.18s, color 0.15s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--color-accent);
  color: #fff;
}
/* Hide hamburger on desktop */
.mobile-menu-toggle {
  display: none;
  background: #232F36;
  color: var(--color-accent);
  font-size: 2rem;
  border-radius: 7px;
  padding: 7px 16px;
  margin-left: 18px;
  transition: background 0.2s, color 0.2s;
  z-index: 33;
  box-shadow: 0 2px 12px rgba(34,97,169,0.11);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: #fff;
}

/* --- MOBILE BURGER NAVIGATION --- */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; 
  width: 100vw; height: 100vh;
  background: var(--color-primary);
  box-shadow: 0 2px 48px 0 rgba(34,97,169,0.12);
  z-index: 99;
  padding: 30px 32px 20px 32px;
  transition: transform 0.36s cubic-bezier(.32,.72,.33,1), opacity 0.28s;
  transform: translateX(-100vw);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  color: var(--color-accent);
  border-radius: 6px;
  border: none;
  padding: 4px 10px;
  margin-bottom: 22px;
  transition: background 0.18s, color 0.18s;
  z-index: 100;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 0;
  transition: color 0.16s;
  border-radius: 3px;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--color-accent);
  background: #232F36;
}

/* --- HERO, FEATURES, CARDS, SECTIONS --- */
.feature-grid, .course-preview-grid, .workshop-types-grid, .blog-post-grid, .vision-values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div, .course-preview-grid > div, .detailed-course-grid > div, .workshop-types-grid > div, .blog-post-grid > div {
  flex: 1 1 210px;
  min-width: 220px;
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 24px 20px 20px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.vision-values-grid ul,
.team-bios ul,
.instructor-profiles ul,
.trust-certs ul,
.resources-list ul,
.downloads ul,
.success-metrics,
.newsletter-signup {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vision-values-grid ul li, .success-metrics li {
  background: #232F36;
  padding: 14px 16px;
  border-radius: 6px;
  color: var(--color-metal-light);
}

.resources-list li,
.trust-certs li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

/* Special case for testimonials slider flex container */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}

.featured-post-highlight, .practical-exercises, .facilitator-bios {
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 24px 24px 18px 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.workshops-cta, .newsletter-signup, .confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 24px 24px 16px 24px;
  margin-bottom: 20px;
}

/* --- STAR RATING --- */
.star-rating {
  color: #F1B51A;
  letter-spacing: 2px;
  font-size: 1.3rem;
  font-family: 'Montserrat', sans-serif;
  display: inline-block;
  margin: 4px 0 7px 0;
  text-shadow: 1px 1.5px 1px #888;
}

/* --- FOOTER --- */
footer {
  background: #161B23;
  color: #F9F9FB;
  padding: 36px 0 0 0;
  box-shadow: 0 -2px 16px rgba(27,43,52,.13);
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--color-metal-light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.98rem;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-metal-light);
}
.footer-contact img {
  height: 18px;
  width: 18px;
  min-width: 18px;
}
.footer-logo img {
  height: 40px;
  margin-top: 15px;
}

/* --- LEGAL PAGE SECTIONS --- */
.legal-section {
  background: #232F36;
  border-radius: 8px;
  padding: 32px 28px;
  margin: 22px 0 32px 0;
  box-shadow: var(--shadow-card);
}
.legal-section h2 {
  color: #fff;
  margin-top: 24px;
  font-size: 1.18rem;
}

/* --- BUTTONS, TOGGLES, FORMS --- */
button, .button, input[type=submit], input[type=button] {
  font-family: 'Montserrat', Arial,sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  padding: 10px 32px;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.08rem;
  transition: background 0.18s, box-shadow 0.16s, transform 0.14s;
  box-shadow: 0 2px 10px rgba(45,125,210,0.13);
  cursor: pointer;
  outline: none;
}
button:hover, button:focus, .button:hover, .button:focus, input[type=submit]:hover, input[type=submit]:focus, input[type=button]:hover, input[type=button]:focus {
  background: var(--color-accent-dark);
  box-shadow: 0 8px 16px 0 rgba(45,125,210,0.22);
  transform: translateY(-1.5px) scale(1.01);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #232F36;
  color: var(--color-secondary);
  border-top: 3px solid var(--color-accent);
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  z-index: 10000;
  box-shadow: 0 -2px 24px 0 rgba(34,97,169,0.11);
  transition: transform 0.32s, opacity 0.32s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 220px;
  color: var(--color-secondary);
  font-size: 1rem;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  min-width: 120px;
  border-radius: 6px;
  background: var(--color-accent-dark);
  font-size: 1rem;
  padding: 10px 20px;
  transition: background 0.18s;
  color: #fff;
}
.cookie-banner button.accept {
  background: var(--color-accent);
}
.cookie-banner button.reject {
  background: #D94F50;
}
.cookie-banner button.settings {
  background: #6B7784;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-accent);
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-overlay {
  display: none;
  background: rgba(27, 43, 52, 0.78);
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 10001;
  align-items: center;
  justify-content: center;
  transition: opacity 0.33s;
}
.cookie-modal-overlay.open {
  display: flex;
  opacity: 1;
}
.cookie-modal {
  background: var(--color-bg-light);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 32px 0 rgba(34, 97, 169, 0.17);
  padding: 38px 28px;
  min-width: 330px;
  max-width: 95vw;
}
.cookie-modal h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.26rem;
  margin-bottom: 18px;
  color: #fff;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 18px;
}
.cookie-modal .cookie-category label {
  margin-left: 12px;
  font-size: 1.05rem;
}
.cookie-modal .cookie-category input[type=checkbox] {
  accent-color: var(--color-accent);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 22px;
}
.cookie-modal .modal-actions button {
  border-radius: 6px;
  min-width: 110px;
  font-size: 1rem;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 26px;
  right: 26px;
  background: none;
  color: var(--color-metal-light);
  font-size: 2rem;
  border: none;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--color-accent);
}

/* --- FORMS --- */
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%;
  border: 1.3px solid var(--color-metal-light);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  background: #222e36;
  color: #fff;
  font-family: 'Open Sans', Arial,sans-serif;
  font-size: 1rem;
  transition: border 0.16s, box-shadow 0.16s;
}
input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, textarea:focus {
  border: 1.3px solid var(--color-accent);
  box-shadow: 0 2px 10px 0 rgba(45,125,210,0.09);
  outline: none;
}
label {
  font-family: 'Montserrat', Arial,sans-serif;
  color: var(--color-secondary);
  font-size: 1.01rem;
  margin-bottom: 8px;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
  background: #181F23;
}
::-webkit-scrollbar-thumb {
  background: #2B3A42;
  border-radius: 8px;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
section, .card, .feature-item, .testimonial-card, .cookie-banner, .newsletter-signup {
  animation: fadeInUp 0.7s cubic-bezier(.16,1,.22,1);
}

/* --- RESPONSIVE DESIGN (MOBILE FIRST) --- */
@media (max-width: 1000px) {
  .container, footer .container {
    padding: 0 10px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .course-preview-grid, .detailed-course-grid, .workshop-types-grid, .blog-post-grid { 
    flex-direction: column;
    gap: 22px;
  }
  .testimonials-slider {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    padding: 10px 8px 10px 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .course-preview-grid, .detailed-course-grid, .workshop-types-grid, .blog-post-grid {
    flex-direction: column;
  }
  .content-grid, .card-container, .testimonials-slider {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  section {
    padding: 32px 8px;
  }
  .section {
    margin-bottom: 38px;
    padding: 32px 8px;
  }
  .testimonial-card {
    min-width: 0;
    padding: 18px 14px;
  }
  .card {
    padding: 18px 12px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.62rem; }
  h2 { font-size: 1.18rem; }
  .logo img { height: 30px; }
  .cta-btn,
  button,
  .cookie-banner button {
    padding: 10px 18px; font-size: 0.98rem;
  }
  .testimonial-card, .card {
    padding: 12px 5px; font-size: 0.97rem;
  }
}

/* --- UTILITY CLASSES & SPACING --- */
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-60 { margin-top: 60px !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }

/* --- OVERLAP PREVENTION --- */
.card, .testimonial-card, .feature-item, .content-wrapper, section, footer .container > * {
  margin-bottom: 20px;
}
.card:last-child, .testimonial-card:last-child, .feature-item:last-child, .content-wrapper:last-child {
  margin-bottom: 0;
}

/* --- ICONS IN TEXT --- */
p img, li img {
  margin-right: 9px;
  vertical-align: middle;
  height: 22px;
  width: 22px;
  min-width: 22px;
}

/* --- SPECIFIC SECTIONS --- */
.contact-details {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .contact-details {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- CARD GRID ADJUSTMENTS FOR BLOG/RESOURCES --- */
.blog-post-grid > div, .resources-list li {
  background: var(--color-bg-light);
  border-radius: 7px;
  box-shadow: var(--shadow-card);
  padding: 18px 18px 12px 18px;
  margin-bottom: 12px;
}

/* --- Z-INDEX MANAGEMENT --- */
header { z-index: 30; }
.mobile-menu { z-index: 99; }
.cookie-banner { z-index: 10000; }
.cookie-modal-overlay { z-index: 10001; }
.mobile-menu-toggle { z-index: 33; }

/* --- HIDE FOCUS OUTLINES EXCEPT FOR KEYBOARD USERS --- */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- MICROINTERACTIONS/MISC --- */
.card:active, .cta-btn:active, button:active {
  transform: scale(0.98);
}

/* --- END OF STYLE.CSS --- */