/* ====== 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
* {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #111;
  background: #fff;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #1E3A5C;
  text-decoration: none;
  transition: color 0.23s linear;
}
a:hover, a:focus {
  color: #F2B705;
  outline: none;
}

/* ====== TYPOGRAPHY ====== */
h1, .main-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.16;
  margin-bottom: 16px;
  color: #131313;
  letter-spacing: 0.01em;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.18;
  margin-bottom: 12px;
  color: #222;
  letter-spacing: 0.005em;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #212121;
  letter-spacing: 0.003em;
}
h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: #222;
}
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 24px;
  max-width: 520px;
}
p, ul, ol, li {
  font-size: 1rem;
  color: #282828;
}
strong {
  font-weight: 700;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 18px;
}

/* ====== BRANDING & LAYOUT ====== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ====== HEADER & NAVIGATION ====== */
header {
  background: #101010;
  border-bottom: 1px solid #222;
  z-index: 101;
  position: relative;
}
.logo img {
  height: 48px;
  width: auto;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 0;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.19s, color 0.19s;
  position: relative;
}
.main-nav a.button-primary {

  color: #101010;
  font-weight: 700;
  box-shadow: 0 1px 10px rgba(0,0,0,0.08);
  margin-left: 16px;
  border: none;
}
.main-nav a:not(.button-primary):hover, .main-nav a:focus {
  background: #131313;
  color: #F2B705;
}
.main-nav a.button-primary:hover, .main-nav a.button-primary:focus {
  background: #F2B705;
  color: #222;
}

/* ====== MOBILE BURGER MENU ====== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  margin-left: 16px;
  z-index: 102;
  transition: color 0.2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  color: #F2B705;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17,17,17, 0.98);
  z-index: 300;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.7,.25,.35,1);
  display: flex;
  flex-direction: column;
  padding-top: 36px;
  padding-bottom: 24px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 301;
  transition: color 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F2B705;
}
.mobile-nav {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 0;
  border-radius: 6px;
  width: 100%;
  transition: background 0.19s, color 0.18s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #1E3A5C;
  color: #F2B705;
}
.mobile-nav a.button-primary {
  background: #F2B705;
  color: #131313;
  font-weight: 700;
  width: 90%;
  margin-top: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

/* ====== HERO SECTION ====== */
.hero {
  background: #fff;
  min-height: 370px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #ddd;
  padding-top: 48px;
  padding-bottom: 24px;
}
.hero .container {
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 650px;
  gap: 22px;
}
.hero h1 {
  font-size: 2.6rem;
  color: #101010;
}

/* ====== BUTTONS ====== */
.button-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: bold;
  background: #1E3A5C;
  color: #fff !important;
  border: none;
  border-radius: 7px;
  padding: 12px 28px;
  margin-top: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.22s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 10px rgba(30,58,92,0.06);
  letter-spacing: 0.01em;
  text-align: center;
}
.button-primary:hover, .button-primary:focus {
  background: #F2B705;
  color: #1E3A5C !important;
  box-shadow: 0 3px 16px rgba(242,183,5,0.07);
}
.button-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  background: #fff;
  color: #222;
  border: 1.5px solid #1E3A5C;
  border-radius: 7px;
  padding: 12px 27px;
  margin-top: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.18s, border 0.18s;
  box-shadow: 0 2px 12px rgba(30,58,92,0.04);
  letter-spacing: 0.01em;
  text-align: center;
}
.button-secondary:hover, .button-secondary:focus {
  background: #1E3A5C;
  color: #fff;
  border: 1.5px solid #1E3A5C;
}

/* ====== FLEXBOX PATTERNS ====== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f8f9fa;
  border-radius: 14px;
  box-shadow: 0px 2px 12px rgba(34,37,44,0.04);
  border: 1.5px solid #eee;
  padding: 24px 20px 18px 20px;
  min-width: 220px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item:hover {
  box-shadow: 0 8px 32px rgba(17,24,39,0.11);
  transform: translateY(-3px) scale(1.012);
  border-color: #ddd;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 16px rgba(34,37,44,0.09);
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 9px 32px rgba(30,58,92,0.12);
  transform: translateY(-4px) scale(1.015);
}
.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: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 20px rgba(18,19,23,0.08);
  border: 1px solid #e3e4e7;
  min-width: 220px;
  width: 100%;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(34,37,44,0.15);
}
.testimonial-section {
  background: #fafbfc;
  padding-top: 40px;
  padding-bottom: 40px;
}
.testimonial-info {
  display: flex;
  flex-direction: row;
  gap: 20px;
  font-size: 1rem;
  color: #232323;
  align-items: center;
}

.before-after {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin: 20px 0 26px 0;
}
.before-after > div {
  background: #f4f4f7;
  border-radius: 10px;
  padding: 24px 20px;
  min-width: 200px;
  flex: 1 1 240px;
  box-shadow: 0 2px 12px rgba(34,37,44,0.05);
}

.team-section, .student-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.team-profile, .student-profile {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 22px 18px;
  min-width: 170px;
  flex: 1 1 210px;
  box-shadow: 0 1px 11px rgba(30,58,92,0.04);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.team-profile img, .student-profile img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  margin-bottom: 8px;
  background: #fcfcfd;
  border: 1.5px solid #dadde3;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.course-item {
  background: #fff;
  border: 1.5px solid #edf0f3;
  box-shadow: 0 1px 10px rgba(34,37,44,0.04);
  border-radius: 14px;
  padding: 22px 18px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  transition: box-shadow 0.12s, transform 0.10s;
}
.course-item:hover {
  box-shadow: 0 7px 30px rgba(30,58,92,0.12);
  transform: translateY(-2px) scale(1.008);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-question {
  background: #f5f7f9;
  border-radius: 10px;
  padding: 18px 20px;
  border-left: 3px solid #1E3A5C;
  margin-bottom: 20px;
}

.contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-info ul li {
  display: flex;
  align-items: center;
  gap: 11px;
}
.contact-info a.button-primary {
  margin-top: 10px;
}

.text-section {
  max-width: 680px;
}

/* CRITICAL ALIGNMENT RULES */
.section, .card-container, .card, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* ========== FOOTER ========== */
footer {
  background: #111;
  color: #fff;
  padding-top: 30px;
  padding-bottom: 15px;
  border-top: 1px solid #222;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  gap: 24px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 12px;
}
.footer-menu a {
  color: #bfc5cb;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: #F2B705;
}
.footer-branding {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-branding img {
  height: 34px;
  width: 34px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.99rem;
  color: #dfe2e5;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 8px;
}
.footer-social a img {
  height: 26px;
  width: 26px;
  filter: grayscale(0.75) brightness(1.1);
  transition: filter 0.14s;
}
.footer-social a:hover img,
.footer-social a:focus img {
  filter: grayscale(0) brightness(1.3);
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111;
  color: #fff;
  z-index: 9000;
  padding: 16px 18px;
  box-shadow: 0 -1px 10px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1rem;
  animation: cookiefadein 0.7s;
}
@keyframes cookiefadein {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: none; opacity: 1;}
}
.cookie-banner-text {
  flex: 1 1 200px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  padding: 8px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.12s;
}
.cookie-btn.accept {
  background: #F2B705;
  color: #232323;
  font-weight: 700;
}
.cookie-btn.reject {
  background: #fff;
  color: #1E3A5C;
  font-weight: 600;
  border: 1.2px solid #1E3A5C;
}
.cookie-btn.settings {
  background: #232323;
  color: #fff;
  font-weight: 600;
}
.cookie-btn:hover, .cookie-btn:focus {
  opacity: 0.91;
}

/* Modal */
.cookie-modal-backdrop {
  position: fixed;
  background: rgba(12,13,20, 0.78);
  z-index: 10000;
  top: 0; left:0; right:0; bottom:0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalappear 0.4s;
}
@keyframes modalappear {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #101010;
  border-radius: 13px;
  box-shadow: 0 9px 42px 0 rgba(23,23,30,0.18);
  max-width: 420px;
  width: 96vw;
  padding: 36px 30px 24px 30px;
  z-index: 10010;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 17px;
  top: 13px;
  background: none;
  border: none;
  font-size: 1.48rem;
  color: #232323;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #F2B705;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
  color: #232323;
}
.cookie-category input[type="checkbox"] {
  accent-color: #1E3A5C;
  width: 18px;
  height: 18px;
}
.cookie-category.disabled label {
  color: #808080 !important;
}

/* ========== RESPONSIVENESS ========== */
@media (max-width: 1023px) {
  .container {
    max-width: 100vw;
    padding: 0 9px;
  }
  header .container {
    height: 68px;
    padding: 0 9px;
  }
  .main-nav {
    display: none;
  }
}
@media (max-width: 900px) {
  .feature-grid,
  .content-grid,
  .course-list,
  .before-after,
  .team-section,
  .student-profiles {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .hero .content-wrapper {
    align-items: flex-start;
    padding: 0;
    gap: 12px;
  }
  h1, .main-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  h2 {
    font-size: 1.4rem;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 8px;
  }
  .feature-item, .course-item, .team-profile, .student-profile, .before-after > div {
    min-width: unset;
    padding: 16px 10px;
    margin-bottom: 20px;
  }
  .testimonial-card {
    min-width: unset;
    padding: 16px 12px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .text-section {
    max-width: 100vw;
    padding: 0;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px;
  }
  .footer-social {
    gap: 14px;
  }
}
@media (max-width: 550px) {
  .footer-menu {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }
}
@media (max-width: 420px) {
  .footer-branding {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .cookie-modal {
    padding: 19px 7px 17px 7px;
    font-size: 0.95rem;
  }
}

/* ========== MICRO-INTERACTIONS & TRANSITIONS ========== */
.button-primary, .button-secondary, .main-nav a, .mobile-nav a, .feature-item, .card, .testimonial-card {
  transition: box-shadow 0.19s, color 0.16s, background 0.18s, transform 0.12s;
}
section, .section {
  animation: fadeinsec 0.8s;
}
@keyframes fadeinsec {
  from { opacity:0; transform: translateY(32px); }
  to { opacity:1; transform: translateY(0); }
}

/* ===== ACCESSIBILITY: FOCUS STATES ===== */
a:focus, .button-primary:focus, .button-secondary:focus, .cookie-btn:focus {
  outline: 2px solid #1E3A5C;
  outline-offset: 2px;
}

/* ===== SMOOTH MOBILE MENU OVERRIDE ===== */
.mobile-menu {
  will-change: transform;
  overflow-y: auto;
}

/* ===== OVERRIDE AUTOFILL ===== */
input:-webkit-autofill {
  box-shadow: 0 0 0 30px #fff inset !important;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
  background: #efefef;
}
::-webkit-scrollbar-thumb {
  background: #1E3A5C;
  border-radius: 7px;
}

/* ===== PRINT ===== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-backdrop {
    display: none !important;
  }
}
