/* --- CSS RESET & BASE --- */
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 {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #223F6C;
  background: #f7f9fc;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #223F6C;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #47B38B;
  outline: none;
}

ul, ol {
  list-style: none;
}

input, button, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}
button {
  cursor: pointer;
  background: none;
}

/* --- BRAND -- */
:root {
  --primary: #223F6C;
  --secondary: #47B38B;
  --accent: #FFFFFF;
  --gray-100: #f7f9fc;
  --gray-200: #e3e8ef;
  --gray-300: #ccd6e5;
  --gray-600: #596580;
  --shadow: 0 2px 16px 0 rgba(34,63,108,0.06), 0 1.5px 6px 0 rgba(71,179,139,0.05);
  --border-radius: 12px;
  --header-height: 72px;
  --max-width: 1160px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: #223F6C;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.18;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.21;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.325rem;
  line-height: 1.26;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

p, li, span {
  color: #223F6C;
  font-size: 1rem;
}

.text-section p, .content-wrapper p {
  margin-bottom: 18px;
}

.text-section ul, .content-wrapper ul {
  margin-left: 24px;
  margin-bottom: 16px;
}
.text-section ul li, .content-wrapper ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- LAYOUT STRUCTURE --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

main {
  padding-top: calc(var(--header-height) + 12px);
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.text-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* --- FLEXBOX GRID TEMPLATES FOR SECTIONS --- */
.feature_grid,
.value_grid,
.course_list,
.course_category_grid,
.testimonial_grid,
.team {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}

.feature_grid > div,
.value_grid > div,
.course_list > div,
.course_category_grid > div, 
.testimonial_grid > div, 
.team > div {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  flex: 1 1 240px;
  min-width: 240px;
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature_grid > div:hover,
.value_grid > div:hover,
.course_category_grid > div:hover,
.team > div:hover,
.course_list > div:hover {
  box-shadow: 0 4px 20px 0 rgba(34,63,108,0.15);
  transform: translateY(-3px) scale(1.012);
}

.feature_grid img,
.value_grid img,
.course_category_grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
}

.team > div h3 {
  margin-bottom: 8px;
  margin-top: -6px;
}

.team > div p {
  font-size: 1rem;
  color: #596580;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px 20px 22px;
  background: #F7F9FC;
  border-left: 5px solid var(--secondary);
  border-radius: var(--border-radius);
  min-width: 250px;
  max-width: 430px;
  box-shadow: 0 2px 16px 0 rgba(34, 63, 108, 0.06);
  margin-bottom: 20px;
  flex: 1 1 280px;
  flex-direction: column;
}
.testimonial-card p {
  color: #223F6C;
  font-style: italic;
  font-size: 1.07rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #596580;
  font-weight: 500;
  align-self: flex-end;
}

/* --- BUTTONS & CTAs --- */
.btn-primary, .btn-secondary {
  display: inline-block;
  border-radius: 8px;
  padding: 14px 32px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(34, 63, 108, 0.06);
  transition: background 0.17s, color 0.18s, box-shadow 0.18s, transform 0.19s;
  border: none;
  cursor: pointer;
  margin-right: 18px;
  margin-bottom: 16px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #163157;
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 4px 16px 0 rgba(34,63,108,0.13);
}
.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #34876b;
  color: #fff;
  transform: translateY(-2px) scale(1.025);
}

/* --- HEADER/NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 3px 12px 0 rgba(34,63,108,0.08);
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
header nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 7px 9px;
  color: var(--primary);
  border-radius: 5px;
  transition: background 0.19s, color 0.17s;
}
header nav a:hover,
header nav a:focus,
header nav a.active {
  background: var(--gray-200);
  color: var(--secondary);
}

header a img {
  height: 44px;
  width: auto;
}

header .btn-primary {
  margin-right: 0;
  margin-bottom: 0;
  font-size: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  border: none;
  padding: 8px 15px;
  font-size: 1.5rem;
  margin-left: 18px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  z-index: 32;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
  color: #fff;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34, 63, 108, 0.97);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.74, 0.11, 0.16, 0.94);
  z-index: 98;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  padding: 22px 26px 0 0;
  align-self: flex-end;
  cursor: pointer;
}
.mobile-nav {
  margin-top: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.13rem;
  color: #fff;
  border-radius: 6px;
  padding: 16px 0 16px 13px;
  background: none;
  transition: background 0.17s, color 0.17s;
  margin-bottom: 5px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: #f7f9fc;
}

/* --- SECTIONS LAYOUT --- */
.course_list,
.course_category_grid,
.feature_grid,
.value_grid,
.team,
.testimonial_grid {
  margin-bottom: 32px;
  margin-top: 12px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 20px 22px 20px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(34,63,108,0.15);
  transform: scale(1.012) translateY(-2px);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FORMS (Optional) --- */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
input, textarea {
  padding: 11px 16px;
  border: 1.3px solid var(--gray-300);
  border-radius: 7px;
  font-size: 1.05rem;
  background: #fff;
  width: 100%;
  min-width: 0;
  color: #223F6C;
  transition: border 0.16s;
}
input:focus, textarea:focus {
  border: 1.5px solid var(--secondary);
}
label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
}

/* --- FOOTER --- */
footer {
  background: #223F6C;
  padding: 38px 0 30px 0;
  color: #fff;
  box-shadow: 0 -2px 13px rgba(34,63,108,0.05);
  margin-top: 80px;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1160px;
}
footer .branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1rem;
  gap: 9px;
}
footer .branding img {
  width: 48px;
  height: auto;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
footer nav a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 2px;
  opacity: 0.85;
  transition: opacity 0.16s, color 0.16s;
}
footer nav a:hover,
footer nav a:focus {
  opacity: 1;
  color: var(--secondary);
}
footer .contact-snippet {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: #fff;
  font-size: 1rem;
}
footer .contact-snippet img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #223F6C;
  color: #fff;
  box-shadow: 0 -2px 18px rgba(34,63,108,0.20);
  z-index: 1002;
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 23px 18px 23px 18px;
  transition: transform 0.34s cubic-bezier(0.74, 0.11, 0.16, 0.94), opacity 0.22s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  max-width: 520px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 13px;
}
.btn-cookie-accept, .btn-cookie-reject, .btn-cookie-settings {
  border-radius: 7px;
  padding: 8px 19px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  transition: background 0.13s, color 0.16s;
}
.btn-cookie-accept {
  background: var(--secondary);
  color: #fff;
}
.btn-cookie-accept:hover,
.btn-cookie-accept:focus {
  background: #2e8367;
}
.btn-cookie-reject {
  background: #fff;
  color: var(--primary);
  border: 1.2px solid var(--gray-300);
}
.btn-cookie-reject:hover,
.btn-cookie-reject:focus {
  background: var(--gray-200);
}
.btn-cookie-settings {
  background: transparent;
  color: #fff;
  border: 1.2px solid #fff;
}
.btn-cookie-settings:hover,
.btn-cookie-settings:focus {
  background: var(--gray-200);
  color: var(--primary);
  border-color: var(--gray-300);
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 1200;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34, 63, 108, 0.62);
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
}
.cookie-modal.open {
  display: flex;
  animation: fadeIn 0.27s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #223F6C;
  border-radius: 17px;
  box-shadow: 0 7px 38px 0 rgba(34, 63, 108, 0.27);
  max-width: 410px;
  min-width: 290px;
  width: 95vw;
  padding: 34px 32px 26px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalBounceIn 0.3s;
}
@keyframes modalBounceIn {
  0% { transform: scale(0.82); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-modal-header h2 {
  font-size: 1.32rem;
  color: #223F6C;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  color: #223F6C;
  border: none;
  font-size: 1.88rem;
  cursor: pointer;
  z-index: 2;
  padding: 0 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 13px 0;
  border-bottom: 1px solid var(--gray-200);
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  flex: 1 1 0%;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
}
.cookie-category .category-desc {
  font-size: 0.95rem;
  color: #596580;
  margin-top: 2px;
}
.cookie-category .cookie-switch {
  margin-left: 12px;
}

.modal-actions {
  margin-top: 25px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 1200px) {
  .container {
    max-width: 94vw;
  }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }
  .feature_grid > div,
  .course_category_grid > div,
  .value_grid > div,
  .team > div,
  .course_list > div {
    min-width: 180px;
    flex-basis: 180px;
    padding: 22px 14px 14px 14px;
  }
  .testimonial-card {
    max-width: 95vw;
    padding: 16px 10px 16px 12px;
  }
  .content-wrapper {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .container {
    max-width: 100vw;
    padding-left: 11px;
    padding-right: 11px;
  }

  header .container {
    gap: 11px;
    padding-left: 8px;
    padding-right: 8px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .btn-primary {
    display: none;
  }

  .feature_grid,
  .value_grid,
  .course_list,
  .course_category_grid,
  .team,
  .testimonial_grid {
    flex-direction: column;
    gap: 14px;
  }
  .content-wrapper,
  .content-grid {
    flex-direction: column;
    gap: 8px;
  }
  .card-container {
    flex-direction: column;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .section {
    margin-bottom: 32px;
    padding: 24px 9px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-left: 11px;
    padding-right: 11px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 20px 10px 20px 10px;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  h1 {
    font-size: 1.44rem;
  }
  h2 {
    font-size: 1.12rem;
  }
  .section {
    padding: 16px 4px;
  }
  .testimonial-card {
    padding: 11px 5px 11px 7px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-right: 0;
  }
  .cookie-modal-content {
    padding: 19px 7px 16px 10px;
    min-width: 70vw;
  }
}

/* --- MISC UTILITY CLASSES & ANIMATIONS --- */
.shadow-hover:hover, .shadow-hover:focus {
  box-shadow: 0 5px 18px 0 rgba(34, 63, 108, 0.17);
}
.hide {
  display: none !important;
  opacity: 0 !important;
}
.show {
  display: flex !important;
}

::-webkit-scrollbar {
  width: 10px;
  background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 7px;
}

/* --- END OF CSS --- */
