/* 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;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #111;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #111;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}

/* TYPOGRAPHY SCALE */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.15;
  color: #111;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #222;
  margin-bottom: 16px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.25;
  color: #222;
  margin-bottom: 12px;
}
p {
  font-size: 1rem;
  color: #313131;
  margin-bottom: 18px;
}
strong {
  font-weight: 700;
}

/* CONTAINER & LAYOUT UTILITY */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- SPACING & SECTION RULES --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  section {
    padding: 30px 6px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* --- HEADER STYLES --- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e5e7;
  box-shadow: 0 2px 10px rgba(30, 34, 38, 0.02);
  z-index: 1000;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  position: relative;
}
header img {
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  flex: 1 1 auto;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #222;
  font-size: 1rem;
  padding: 4px 7px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: #222;
  color: #fff;
}
.btn-primary {
  background: #111;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  transition: background 0.22s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 14px rgba(16,30,50, 0.08);
  margin-left: 24px;
  display: inline-block;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #2E8C7B;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 24px rgba(45, 45, 48, 0.18);
}
.btn-secondary {
  background: #fff;
  color: #111;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 32px;
  border: 1.5px solid #222;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.18s;
  margin-top: 10px;
  outline: none;
  display: inline-block;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #222;
  color: #fff;
  border: 1.5px solid #222;
  box-shadow: 0 2px 18px rgba(28,31,38,0.11);
}

/* --- MOBILE NAVIGATION STYLES --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #111;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s;
  display: none;
  z-index: 1202;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #e0e0e0;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 16px 50px rgba(30,30,40,0.15);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.64,0,.35,1);
  z-index: 1201;
  padding: 28px 28px 48px 28px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #222;
  font-size: 2.3rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 24px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.16s, color 0.16s;
  text-align: left;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #222;
  color: #fff;
}
@media (max-width: 1020px) {
  header .container {
    flex-wrap: wrap;
  }
  header nav {
    gap: 16px;
  }
}
@media (max-width: 950px) {
  header .container {
    flex-direction: row;
    gap: 12px;
  }
  header img {
    height: 38px;
  }
  .btn-primary {
    margin-left: 8px;
    padding: 10px 18px;
    font-size: .95rem;
  }
}
@media (max-width: 800px) {
  header nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: #111;
  color: #fff;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 8px 60px rgba(16, 34, 63, 0.10);
  margin-bottom: 60px !important;
}
.hero h1, .hero .h1 {
  color: #fff;
}
.hero p {
  color: #e2e2e2;
  font-size: 1.2em;
}
.hero .btn-primary {
  margin-top: 16px;
}

/* --- CARDS, GRIDS, FLEXBOX LAYOUTS --- */
.feature-grid,
.team-grid,
.courses-grid,
.news-teasers-grid,
.category-grid,
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 20px 0;
  justify-content: space-between;
}
.feature-grid > div,
.team-grid > div,
.courses-grid > div,
.news-teasers-grid > div,
.category-grid > div,
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(36, 43, 64, 0.07);
  padding: 24px 20px;
  flex: 1 1 230px;
  min-width: 230px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover, .feature-grid > div:hover, .courses-grid > div:hover, .category-grid > div:hover, .news-teasers-grid > div:hover, .team-grid > div:hover {
  box-shadow: 0 8px 30px rgba(28,32,40,0.14);
  transform: translateY(-4px) scale(1.02);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
@media (max-width: 768px) {
  .feature-grid, .team-grid, .courses-grid, .category-grid, .news-teasers-grid {
    gap: 16px;
    flex-direction: column;
  }
  .feature-grid > div, .team-grid > div, .courses-grid > div, .category-grid > div, .news-teasers-grid > div {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* FEATURE ITEM FLEX LAYOUTS */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TESTIMONIAL CARD --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #111;
  box-shadow: 0 2px 16px rgba(16, 34, 63, 0.13);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0 0 0;
  min-width: 220px;
  max-width: 700px;
  font-size: 1rem;
  flex-wrap: wrap;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card p {
  font-style: italic;
  color: #16324F;
  margin-bottom: 0;
}
.testimonial-card > div {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: #2E8C7B;
  padding-left: 16px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 26px rgba(28,32,40,0.17);
  transform: scale(1.02) translateY(-2px);
}

/* --- NEWS & PAGINATION --- */
.news-teasers-grid > div {
  min-width: 240px;
  flex: 1 1 290px;
  background: #fff;
  border-left: 4px solid #222;
  transition: border-color 0.18s;
}
.news-teasers-grid > div:hover {
  border-color: #2E8C7B;
}
.pagination {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  margin: 18px 0 0 0;
}
.pagination a, .pagination span {
  padding: 6px 14px;
  background: #fff;
  color: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #222;
  font-weight: 500;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: background 0.15s, color 0.13s;
  margin-right: 6px;
  text-align: center;
}
.pagination a:hover {
  background: #222;
  color: #fff;
}

/* --- INPUT & SEARCH STYLES --- */
input[type="text"], input[type="email"], input[type="password"] {
  font-size: 1em;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #d9d9dc;
  outline: none;
  background: #f8f8f9;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  margin-top: 8px;
  margin-bottom: 16px;
  transition: box-shadow .16s, border .16s;
  width: 100%;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  border: 1.5px solid #222;
  box-shadow: 0 2px 14px rgba(36, 41, 68, 0.06);
}

/* --- LIST STYLES --- */
ul {
  padding-left: 16px;
}
ul li {
  margin-bottom: 12px;
  color: #2a2a2a;
  font-size: 1rem;
  position: relative;
  padding-left: 14px;
}
ul li:before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px; height: 6px;
  border-radius: 100%;
  background: #111;
}
.text-section ul li:before {
  background: #2E8C7B;
}

/* --- FOOTER --- */
footer {
  background: #181a1c;
  color: #fff;
  width: 100%;
  padding-top: 38px;
  padding-bottom: 32px;
  border-top: 1.5px solid #16181b;
  margin-top: 20px;
}
footer .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.85;
  transition: opacity 0.18s, text-decoration 0.16s;
}
footer nav a:hover {
  opacity: 1.0;
  text-decoration: underline;
}
footer div {
  font-size: 0.98rem;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
  }
  footer nav {
    flex-direction: column;
    gap: 7px;
  }
}

/* --- CASE STUDY STYLES (dla-firm) --- */
.case-study {
  background: #f7f7f7;
  border-radius: 18px;
  padding: 26px 22px;
  margin-bottom: 24px;
  flex: 1 1 330px;
  box-shadow: 0 2px 12px rgba(36,41,68,0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-study blockquote {
  font-style: italic;
  color: #2E8C7B;
  border-left: 4px solid #2E8C7B;
  margin-left: 0;
  padding-left: 16px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(32,32,36,0.98);
  color: #fff;
  padding: 24px 20px;
  box-shadow: 0 -3px 32px rgba(20,22,33,0.15);
  z-index: 1800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform 0.35s cubic-bezier(.7,0,.2,1), opacity 0.19s;
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hidden {
  transform: translateY(108%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  margin-bottom: 0;
  color: #f7f7fa;
  font-size: 1.01rem;
  text-align: center;
}
.cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 28px;
  border: none;
  padding: 11px 27px;
  margin: 0 2px;
  cursor: pointer;
  transition: box-shadow 0.19s, background 0.19s, color 0.16s;
  min-width: 134px;
}
.cookie-btn.accept {
  background: #2E8C7B;
  color: #fff;
  font-weight: 700;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #16324F;
}
.cookie-btn.reject {
  background: #e8e8e8;
  color: #111;
  font-weight: 500;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #222;
  color: #fff;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
  font-weight: 700;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff;
  color: #222;
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(22,24,30,0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.28s;
  pointer-events: all;
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: #1a1a1a;
  border-radius: 16px;
  padding: 38px 28px 28px 28px;
  width: 94vw;
  max-width: 400px;
  box-shadow: 0 8px 48px rgba(36,41,68,0.13);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #16324F;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-category label {
  font-size: 1rem;
  color: #181a1c;
}
.toggle-switch {
  position: relative;
  width: 38px;
  height: 22px;
}
.toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  background: #ccc;
  border-radius: 22px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background 0.16s;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 100%;
  transition: transform 0.16s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #2E8C7B;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  padding: 4px 10px;
}
@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 20px 4vw;
    max-width: 96vw;
  }
}

/* --- MONOCHROME & BRANDING --- */
body,
section,
.card, .feature-grid > div, .category-grid > div, .team-grid > div, .courses-grid > div, .news-teasers-grid > div {
  background: #fff;
}
h1, h2, h3, h4, h5 {
  color: #111;
}
.hero, .btn-primary, .btn-secondary:hover, .mobile-menu nav a:hover, .mobile-menu nav a:focus {
  background: #111 !important;
}
.btn-primary, .btn-secondary:hover, .mobile-menu nav a:hover, .mobile-menu nav a:focus {
  color: #fff !important;
}
.btn-secondary, .pagination a, .pagination span {
  background: #fff;
  color: #111;
  border: 1.5px solid #222;
}

/* --- VISUAL & MICRO-INTERACTIONS --- */
.card, .news-teasers-grid > div, .feature-grid > div, .courses-grid > div, .category-grid > div, .team-grid > div {
  transition: box-shadow 0.18s, transform 0.18s;
}
a, .btn-primary, .btn-secondary, .pagination a, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn, input[type="text"] {
  transition: background 0.18s, color 0.16s, box-shadow 0.14s, border 0.16s;
}

/* --- OVERRIDES FOR MONOCHROME SOPHISTICATED CONTRAST --- */
.hero, .btn-primary {
  background: #111;
  color: #fff;
}
.hero p, .hero h1 {
  color: #fff;
}
.testimonial-card {
  background: #f7f8fa;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  h1, .h1 {
    font-size: 2em;
  }
  h2, .h2 {
    font-size: 1.4em;
  }
  .btn-primary, .btn-secondary {
    font-size: 1em;
    padding: 9px 15px;
  }
}

/* --- ICONS IN LISTS --- */
.text-section ul li img {
  height: 20px;
  width: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* --- HEADINGS SPACING --- */
h1, .h1 {
  margin-top: 10px;
  margin-bottom: 24px;
}
h2, .h2 {
  margin-top: 6px;
  margin-bottom: 22px;
}

/* --- SEPARATOR FOR MODERN LOOK --- */
.separator {
  width: 100%;
  height: 1.5px;
  background: #222;
  margin: 40px 0;
  opacity: 0.12;
}

/* --- HIDE SCROLL when menu or modal is open (body.locked) --- */
body.locked {
  overflow: hidden;
}
