/* ================== CSS RESET & NORMALIZE ================== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, nav, a, input, button, table, th, td {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  background: transparent;
  border: none;
  outline: none;
  line-height: 1.5;
}
ul, ol {
  list-style-position: inside;
}

/* ================== VARIABLES (WITH FALLBACKS) ================== */
:root {
  --primary: #192A56;
  --secondary: #60A8A6;
  --accent: #F9F9FB;
  --metal-dark: #26344a;
  --metal-mid: #41506e;
  --metal-light: #a7b3c7;
  --text-body: #D5D9E3;
  --text-dark: #111214;
  --text-light: #FAFAFA;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Segoe UI', Arial, sans-serif;
  --shadow-low: 0 1px 4px 0 rgba(20, 23, 30, 0.1);
  --shadow-card: 0 3px 18px 0 rgba(11,16,24,0.24);
  --shadow-heavy: 0 8px 32px 0 rgba(0,0,0,0.28);
  --radius: 8px;
  --radius-large: 16px;
  --transition: 0.2s cubic-bezier(.42,0,.23,1.05);
  --transition-slow: 0.4s cubic-bezier(.42,0,.23,1.05);
}

/* ================== BASE STYLES ================== */
html, body {
  height: 100%;
  background: var(--primary);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 100vh;
}
body {
  min-height: 100vh;
  background: linear-gradient(120deg, var(--primary) 90%, var(--metal-mid) 100%);
  letter-spacing: .01em;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: #afc4ce;
}

/* ================== TYPOGRAPHY ================== */
h1, .hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: .01em;
  text-shadow: 0 2px 8px rgba(10,20,40,0.19);
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: .01em;
  text-shadow: 0 1px 4px rgba(18,21,34,0.16);
}
h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--metal-light);
}
p,
ul,
ol {
  color: var(--text-body);
  margin-bottom: 18px;
  font-size: 17px;
}
strong {
  color: #fafbfc;
  font-weight: 600;
}
.text-section ul,
li {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* ================== CONTAINERS ================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ================== BUTTONS ================== */
.btn,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 12px 30px;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-low);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  letter-spacing: .03em;
  text-transform: none;
  user-select: none;
  will-change: background, color, box-shadow, transform;
}
.btn-primary, .btn.btn-primary, .cookie-accept {
  background: linear-gradient(100deg, var(--secondary) 60%, var(--metal-light) 100%);
  color: var(--primary);
  box-shadow: 0 2px 12px 0 rgba(96, 168, 166,.14);
  border: 2px solid var(--secondary);
}
.btn-primary:hover, .btn.btn-primary:hover, .cookie-accept:hover {
  background: linear-gradient(90deg, var(--metal-light) 65%, var(--secondary) 95%);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px 0 rgba(96,168,166,.19);
}
.btn-secondary, .cookie-reject {
  background: var(--metal-dark);
  color: var(--accent);
  border: 2px solid var(--metal-light);
}
.btn-secondary:hover, .cookie-reject:hover {
  background: var(--metal-mid);
  color: var(--secondary);
}

button:focus, .btn:focus {
  box-shadow: 0 0 0 2px var(--secondary), var(--shadow-heavy);
}

/* ================== HEADER ================== */
header {
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(25,42,86,0.07);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 98;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 18px 22px;
  gap: 18px;
}
.logo img {
  display: block;
  height: 42px;
  width: auto;
  filter: brightness(1.09) grayscale(40%) drop-shadow(0 2px 12px #14231f13);
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: .02em;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
header .btn {
  margin-left: 18px;
}

/* ================== MOBILE MENU ================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  color: var(--secondary);
  border: none;
  cursor: pointer;
  margin-left: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  z-index: 120;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--metal-mid);
  color: var(--accent);
  box-shadow: 0 0 4px 2px var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(25,42,86,0.97);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  width: 100vw;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  color: var(--secondary);
  font-size: 2.2rem;
  margin: 26px 20px 12px 20px;
  align-self: flex-end;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition);
  z-index: 1001;
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--metal-mid);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 14px;
  margin-left: 32px;
  z-index: 999;
}
.mobile-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 14px 0;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(205,214,226,0.10);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: var(--metal-dark);
}

/* ================== HERO SECTION ================== */
.hero {
  width: 100%;
  margin-bottom: 60px;
  padding: 48px 0 32px 0;
  background: linear-gradient(108deg, var(--metal-dark) 83%, var(--primary) 100%);
  box-shadow: 0 6px 42px 0 rgba(25,42,86,0.090);
}
.hero .container {
  align-items: flex-start;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 700px;
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  color: var(--accent);
  font-size: 2.8rem;
  margin-bottom: 8px;
}
.hero p {
  color: var(--metal-light);
  font-size: 1.14rem;
  margin-bottom: 28px;
}
.hero .btn {
  margin-top: 6px;
}

/* ================== FEATURES & CARDS ================== */
.features-grid, .recommendation-list, .platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 10px;
}
.features-grid > div {
  background: var(--metal-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 22px 18px 22px;
  flex: 1 1 280px;
  min-width: 230px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid rgba(189,200,216,0.04);
  margin-bottom: 20px;
}
.features-grid > div:hover {
  box-shadow: 0 8px 34px rgba(96, 168, 166, 0.19), var(--shadow-card);
  transform: translateY(-5px) scale(1.025);
  border: 1.5px solid var(--secondary);
}
.features-grid img {
  height: 40px;
  width: auto;
  margin-bottom: 8px;
  filter: grayscale(60%) brightness(1.4) drop-shadow(0 3px 8px rgba(50,60,80,0.17));
}
.features-grid h3 {
  color: var(--secondary);
  font-size: 1.1rem;
}
.features-grid p {
  color: var(--text-body);
  font-size: 0.97rem;
}

/* ================== SERVICE LIST ================== */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--metal-dark);
  border-radius: var(--radius-large);
  padding: 28px 36px 22px 36px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.service-list li {
  font-size: 1.04rem;
  color: var(--accent);
  border-bottom: 1px solid rgba(180,195,228,0.08);
  padding-bottom: 12px;
  margin-bottom: 12px;
  line-height: 1.6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.service-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.price {
  color: var(--secondary);
  font-weight: bold;
  font-size: 1rem;
  padding-left: 14px;
}

/* ================== GENERAL CARD & CONTENT FLEXBOXES ================== */
.card-container, .content-grid, .features, .faq-list, .highlighted-courses, .workshops, .networking {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.card-container {
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--radius-large);
  background: var(--metal-dark);
  box-shadow: var(--shadow-card);
  padding: 24px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid rgba(180,195,228,0.06);
}
.card:hover {
  box-shadow: 0 10px 38px 0 rgba(25,42,86,0.17);
  border-color: var(--secondary);
  transform: translateY(-3px) scale(1.01);
}

/* ================== TABLES ================== */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  background: var(--metal-dark);
  color: var(--accent);
}
th, td {
  padding: 16px 14px;
  text-align: left;
}
th {
  background: var(--primary);
  color: var(--secondary);
  font-size: 1rem;
}
td {
  border-bottom: 1px solid rgba(180,195,228,0.08);
  font-size: 0.97rem;
  color: var(--accent);
}
tr:last-child td {
  border-bottom: none;
}

/* ================== LISTS, HIGHLIGHT & FAQ ================== */
.highlight, .highlighted-courses {
  background: var(--metal-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow-low);
  padding: 18px 22px;
  color: var(--accent);
  margin-bottom: 18px;
  border-left: 4px solid var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}
.faq-list > div {
  background: var(--metal-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 20px 14px 20px;
  color: var(--accent);
  border-bottom: 2px solid var(--secondary);
  transition: box-shadow var(--transition), transform var(--transition);
}
.faq-list > div:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 18px rgba(96, 168, 166, .14);
}
.faq-list h3 {
  margin-bottom: 4px;
  font-size: 1rem;
  color: var(--secondary);
}

/* ================== TEXT-IMAGE SECTION, FLEX UTILS ================== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--accent);
  color: var(--text-dark);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-large);
  padding: 20px 24px;
  margin-bottom: 20px;
  max-width: 520px;
  width: 100%;
  margin-top: 0;
  border-left: 4px solid var(--secondary);
  font-size: 1.06rem;
  position: relative;
  transition: box-shadow var(--transition), border 0.2s;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--primary);
  margin-top: 6px;
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: 0 6px 26px 0 rgba(96,168,166,.16), var(--shadow-card);
  border-left: 6px solid var(--secondary);
}
.testimonials {
  margin-bottom: 60px;
  padding: 30px 0 30px 0;
}
.testimonials .content-wrapper {
  gap: 26px;
}

/* ================== CONTACT DETAILS ================== */
.contact-section, .map-embed, .contact-details, .call-to-action {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 8px;
}
.contact-details p {
  color: var(--metal-light);
  font-size: 1.05rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-details a {
  color: var(--secondary);
  font-weight: 500;
}

/* ================== FOOTER ================== */
footer {
  margin-top: 60px;
  background: var(--metal-dark);
  color: var(--accent);
  box-shadow: 0 -2px 16px rgba(25, 42, 86, 0.05);
  padding: 36px 0 0 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}
.footer-brand img {
  height: 38px;
  filter: grayscale(35%) brightness(1.26);
}
.footer-nav, .footer-legal, .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 0;
}
.footer-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: .97rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-legal a {
  color: var(--metal-light);
  font-size: .94rem;
  transition: color var(--transition);
}
.footer-legal a:hover {
  color: var(--secondary);
}
.footer-copy {
  font-size: 0.92rem;
  color: #aab7c5;
  margin: 8px 0 0 0;
}
.footer-social {
  gap: 16px;
}
.footer-social a {
  background: var(--metal-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: background var(--transition);
}
.footer-social a:hover,
.footer-social a:focus {
  background: var(--secondary);
}
.footer-social img {
  width: 18px;
  height: 18px;
  filter: grayscale(0) contrast(1.2);
}

/* ================== COOKIE BANNER ================== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  width: 100vw;
  background: var(--primary);
  box-shadow: 0 -4px 32px rgba(10,20,40,0.13);
  color: var(--accent);
  z-index: 2001;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-banner .btn, .cookie-banner button {
  font-size: .99rem;
  padding: 8px 18px;
}

/* ================== COOKIE MODAL ================== */
.cookie-modal-backdrop {
  display: none;
  position: fixed; left: 0; right:0; top:0; bottom:0;
  background: rgba(25,42,86,0.82);
  z-index: 2200;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open {
  display: flex;
  animation: fadeIn .19s cubic-bezier(.74,0,.34,1.25);
}
@keyframes fadeIn {
  0% { opacity:0; }
  100% { opacity:1; }
}
.cookie-modal {
  background: var(--accent);
  color: var(--text-dark);
  border-radius: var(--radius-large);
  padding: 38px 32px 26px 32px;
  max-width: 420px;
  min-width: 250px;
  width: 96vw;
  box-shadow: 0 6px 28px rgba(36,52,74,.22);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookiePop .25s cubic-bezier(.5,0,.2,1.2);
}
@keyframes cookiePop {
  0% { transform: scale(.93) translateY(30px); opacity:.2; }
  100% { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.28rem;
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.cookie-modal .cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .cookie-category-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cookie-modal label {
  cursor: pointer;
  font-size: 1.06rem;
}
.cookie-modal input[type="checkbox"]:not(:disabled) {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
}
.cookie-modal input[type="checkbox"]:disabled {
  accent-color: var(--metal-mid);
  opacity: .6;
}
.cookie-modal .btn-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 18px; top: 18px;
  background: var(--metal-mid);
  color: var(--secondary);
  border: none;
  font-size: 1.42rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ================== UTILITY CLASSES ================== */
.mt-16 { margin-top: 16px; }
.mb-20 { margin-bottom: 20px; }
.gap-24 { gap: 24px; }
.d-flex { display: flex; }
.flex-col { flex-direction: column; }

/* ================== RESPONSIVE LAYOUT ================== */
@media (max-width: 1100px) {
  .container { max-width: 1040px; }
  .features-grid > div { min-width: 180px; max-width: 97vw; }
}
@media (max-width: 900px) {
  .container { max-width: 96vw; }
  .features-grid { gap: 16px; }
  .features-grid > div { min-width: 140px; padding: 18px 10px; }
  .service-list { padding: 18px 12px; }
}
@media (max-width: 800px) {
  .main-nav { gap: 12px; }
  .footer-nav, .footer-legal, .footer-social { gap: 12px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 12px; }
  .main-nav { display: none !important; }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .features-grid, .card-container, .platform-list, .recommendation-list {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div { min-width: 0; width: 100%; }
  .content-grid, .faq-list, .highlighted-courses, .workshops, .networking {
    flex-direction: column;
    gap: 18px;
  }
  .hero .content-wrapper {
    max-width: 98vw;
    align-items: flex-start;
  }
  .testimonials .content-wrapper {
    gap: 14px;
  }
  .footer-brand img {
    height: 32px;
  }
  .footer-nav, .footer-legal, .footer-social {
    flex-direction: column;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  h1, .hero h1 { font-size: 2.1rem; }
  h2 { font-size: 1.36rem; }
  .features-grid > div,
  .card, .testimonial-card, .service-list, .highlight, .highlighted-courses, .faq-list > div {
    padding: 14px 9px;
    border-radius: var(--radius);
  }
  .cookie-modal { padding: 22px 10px 18px 10px; min-width: 0; }
  .footer-brand img {
    height: 22px;
  }
}

/* ================== PRINT SUPPORT ================== */
@media print {
  * { color: #21262f !important; background: #fff !important; box-shadow: none !important; }
  .mobile-menu, header, .cookie-banner, .cookie-modal-backdrop, footer { display: none !important; }
  a { color: #222 !important; }
}

