/* =====================
  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; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; background: #FFFDF0; color: #1F294B; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }

/* ========================
  BRAND VARIABLES
==========================*/
:root {
  --primary: #1F294B;
  --secondary: #6BE2E8;
  --accent: #FFFDF0;
  --dark: #181c2f;
  --grey100: #f5f5fa;
  --grey300: #c9d2e2;
  --grey700: #46516d;
  --shadow: 0 6px 32px 0 rgba(31,41,75,0.06), 0 1.5px 4.5px 0 rgba(31,41,75,0.10);
}

/* ========================
  TYPOGRAPHY
==========================*/
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: var(--accent);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  letter-spacing: 0.01em;
  color: var(--primary);
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: var(--primary);
}
h4, h5, h6 { font-size: 1.025rem; } 
p { font-size: 1rem; color: var(--dark); line-height: 1.75; margin-bottom: 16px; }
strong, b { font-weight: 700; }

/* ========================
  CONTAINERS & LAYOUT
==========================*/
.container {
  width: 100%;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* ===========
  FLEX CLASSES
==============*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  min-width: 260px;
  flex: 1 1 270px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }
}

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

/* Testimonials cards flex pattern */
.testimonial-card {
  background: #fff;
  border: 2px solid var(--grey300);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  min-height: 120px;
  color: #23263b;
  position: relative;
}
.testimonial-card blockquote {
  quotes: "\201C""\201D";
  font-size: 1.15rem;
  font-style: italic;
  color: var(--primary);
  margin: 0 0 12px 0;
}
.testimonial-meta {
  color: #455066;
  font-size: 0.95rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
}

/* Special: ensure strong mobile spacing */
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    font-size: 1rem;
  }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(95deg, var(--accent) 70%, var(--secondary) 100%);
  padding-top: 60px;
  padding-bottom: 60px;
  margin-bottom: 60px;
}
.hero h1 {
  font-size: 2.2rem;
  max-width: 750px;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  color: #2e3552;
}
@media (max-width: 768px) {
  .hero {
    padding-top: 28px;
    padding-bottom: 36px;
    margin-bottom: 40px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p { font-size: 1rem; }
}

/* ========================
  MAIN NAVIGATION & HEADER
==========================*/
header {
  background: var(--accent);
  border-bottom: 2.5px solid var(--secondary);
  position: relative;
  z-index: 2200;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 4px 2px;
  border-radius: 8px;
  transition: background .2s, color .2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  outline: none;
}
@media (max-width: 1050px) {
  .main-nav { gap: 18px; }
}
@media (max-width: 850px) {
  .main-nav { gap: 12px; font-size: 15px; }
}

/* Hide main nav on mobile, enable burger */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  border: none;
  color: var(--primary);
  font-size: 2rem;
  padding: 10px 14px;
  border-radius: 10px;
  margin-left: 18px;
  cursor: pointer;
  z-index: 2202;
}
@media (max-width: 1024px) {
  .main-nav, header .btn-primary { display: none !important; }
  .mobile-menu-toggle { display: block; }
}

/* Logo Sizing */
header img, footer img {
  width: 138px;
  max-height: 50px;
}

/* ========================
  MOBILE MENU STYLES
==========================*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--primary);
  color: #fff;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 36px 26px 26px 26px;
  transform: translateX(-100vw);
  transition: transform .33s cubic-bezier(0.9,0.05,0,.95);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  border: none;
  background: none;
  font-size: 2.1rem;
  color: #fff;
  align-self: flex-end;
  margin-bottom: 34px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  letter-spacing: 0.025em;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* Avoid text/input overlay under mobile menu */
body.mobile-menu-open {
  overflow: hidden;
}

/* ========================
  BUTTONS
==========================*/
.btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 12px 36px;
  margin-top: 14px;
  transition: background .22s, color .2s, box-shadow .15s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(31,41,75,0.1);
  display: inline-block;
  position: relative;
}
.btn-primary {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--secondary);
  box-shadow: 0 2px 12px rgba(31,41,75,0.15);
}
.btn:hover, .btn:focus {
  background: var(--secondary);
  color: var(--primary);
  outline: none;
  box-shadow: 0 6px 24px rgba(31,41,75,0.13);
}
.btn-primary:hover, .btn-primary:focus {
  background: #475d90;
  color: var(--secondary);
  border-color: var(--secondary);
}

/* =========================
  FEATURES - ICON & GRID
==========================*/
.features {
  background: #fff;
  border-radius: 22px;
  margin-bottom: 56px;
  box-shadow: 0 1.5px 9px rgba(31,41,75,0.06);
}
.features .content-wrapper {
  gap: 40px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-bottom: 10px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: var(--grey100);
  border: 2.5px solid var(--secondary);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 18px;
  margin-bottom: 14px;
  min-width: 170px;
  max-width: 290px;
  box-shadow: 0 2.5px 11px rgba(31,41,75,0.07);
  transition: box-shadow .18s, border .2s;
  position: relative;
}
.feature-grid > div img {
  width: 40px; height: 40px; margin-bottom: 10px; }
.feature-grid > div:hover, .feature-grid > div:focus {
  box-shadow: 0 6px 24px rgba(107,226,232,0.17);
  border-color: var(--primary);
  z-index: 1;
}

@media (max-width: 980px) {
  .feature-grid { gap: 16px; }
  .feature-grid > div { padding: 18px 8px; min-width: 135px; }
}
@media (max-width: 600px) {
  .features {
    margin-bottom: 32px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}

/* =============
  SERVICES LIST
===============*/
.services ul {
  margin-bottom: 24px;
}
.services li {
  background: var(--grey100);
  border-radius: 10px;
  margin-bottom: 16px;
  padding: 18px;
  box-shadow: 0 1px 8px rgba(31,41,75,.06);
  border: 2px solid var(--secondary);
  font-size: 1.02rem;
  line-height: 1.6;
}
.services strong {
  color: var(--primary);
  font-family: Montserrat, 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
.services .btn {
  margin-top: 18px;
}

/* ===================
  SECTION: COURSES
=====================*/
.courses-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.courses-grid > div {
  flex: 1 1 270px;
  min-width: 220px;
  background: #fff;
  border: 2.5px solid var(--secondary);
  border-radius: 18px;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 15px rgba(31,41,75,.09);
  transition: box-shadow .17s, border .2s;
  position: relative;
}
.courses-grid > div:hover, .courses-grid > div:focus {
  box-shadow: 0 9px 32px rgba(31,41,75,.11), 0 2.5px 8px rgba(31,41,75,.09);
  border-color: var(--primary);
  z-index: 1;
}
.courses-grid h2 {
  font-size: 1.28rem;
  color: var(--primary);
  margin-bottom: 7px;
}
.courses-grid ul {
  margin-left: 12px;
  padding-left: 0;
  list-style-type: disc;
  color: #475d90;
  font-size: .98rem;
}
.courses-grid ul li {
  margin-bottom: 8px;
}
@media (max-width: 1020px) {
  .courses-grid {
    flex-direction: column;
    gap: 16px;
  }
  .courses-grid > div {
    min-width: 0; width: 100%;
    padding: 20px 11px;
  }
}

/* ===========
 TEAM SECTION 
==============*/
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 12px;
}
.team-grid > div {
  flex: 1 1 200px;
  min-width: 170px;
  background: #fff;
  border: 2.5px solid var(--secondary);
  border-radius: 18px;
  box-shadow: 0 1.5px 9px rgba(31,41,75,0.05);
  padding: 22px 12px;
  margin-bottom: 20px;
}
.team-grid h2 {
  font-size: 1.17rem;
  margin-bottom: 7px;
}
@media (max-width: 700px) {
  .team-grid {
    flex-direction: column; gap: 12px; }
  .team-grid > div { width: 100%; }
}

/* ==============
  BLOG STYLES
===============*/
.blog-posts {
  margin-bottom: 48px;
}
.blog-post-teaser {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1x 7px rgba(31,41,75,.07);
  border: 2px solid var(--grey300);
  padding: 22px 16px 17px 16px;
  margin-bottom: 20px;
  transition: border .17s, box-shadow .17s;
  position: relative;
}
.blog-post-teaser h3 {
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.blog-post-teaser span {
  display: block;
  font-size: 0.95rem;
  color: #707990;
  margin-top: 4px;
}
.blog-post-teaser:hover, .blog-post-teaser:focus {
  border-color: var(--secondary);
  box-shadow: 0 7px 28px rgba(31,41,75,.11);
  z-index: 1;
}

/* CTAs ---*/
.cta {
  background: var(--secondary);
  border-radius: 22px;
  padding: 38px 20px;
  margin-bottom: 40px;
}
.cta h2 {
  color: var(--primary);
}
.cta .btn {
  margin-top: 14px;
}

/* BENEFIT ICONS ROW on kursy.html */
.benefit-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
}
.benefit-icons img {
  width: 44px; height: 44px; display: block; }

/* =========================
 FOOTER
==========================*/
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 48px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  margin: 0;
}
footer address {
  font-size: 1rem;
  font-style: normal;
  color: var(--grey100);
  margin-bottom: 14px;
}
footer .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  padding: 2px 6px;
  border-radius: 8px;
  transition: background .13s, color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  outline: none;
}
footer small {
  display: block;
  width: 100%;
  margin-top: 32px;
  margin-bottom: 14px;
  text-align: center;
  color: var(--grey300);
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  footer .content-wrapper { gap: 24px; flex-direction: column; align-items: center; }
  footer .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 10px 20px; justify-content: center; }
}

/* ===============
  UTILITY & SUPPORT
===================*/
.text-section {
  margin-bottom: 20px;
}
.text-section h1, .text-section h2 {
  margin-bottom: 16px;
}
.text-section ul {
  margin-bottom: 20px;
  padding-left: 24px;
  list-style-type: disc;
  color: #22325b;
}
.text-section ul li {
  margin-bottom: 8px;
  font-size: 1.01rem;
}

.contact-info {
  margin-bottom: 22px;
}
.contact-info address {
  font-size: 1.04rem;
}

/* ====================
  COOKIE CONSENT BANNER
=======================*/
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 4000;
  background: #fff;
  box-shadow: 0 5px 33px rgba(31,41,75,0.15);
  border: 2.5px solid var(--secondary);
  border-radius: 15px;
  padding: 25px 28px 20px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  max-width: 740px;
  margin: 0 auto;
  font-size: 1rem;
  transition: transform .42s cubic-bezier(.72,.09,.32,.92),opacity .32s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p {
  flex: 1 1 280px;
  color: #23263b;
  margin-bottom: 0;
}
.cookie-banner .cookie-btn {
  min-width: 105px;
  margin-left: 0;
  margin-right: 4px;
  font-size: 1rem;
}
.cookie-banner .cookie-btn+ .cookie-btn {
  margin-left: 6px;
}
@media (max-width: 580px) {
  .cookie-banner {
    padding: 16px 10px 13px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: .98rem;
  }
}

/* Cookie banner button styles */
.cookie-btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border-radius: 9px;
  border: 2px solid var(--primary);
  background: var(--secondary);
  color: var(--primary);
  padding: 8px 20px;
  font-weight: 600;
  transition: background .19s, color .19s, border .15s;
  cursor: pointer;
  margin-top: 5px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--secondary);
  border-color: var(--secondary);
}

/* Cookie Modal Styles */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 4200;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  color: var(--primary);
  border: 2.5px solid var(--secondary);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(31,41,75,0.19);
  padding: 38px 32px 32px 32px;
  width: 98%;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  transition: opacity .3s, transform .37s cubic-bezier(.82,-.01,.18,1.03);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,50%) scale(.96);
}
.cookie-modal h2 {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 1.35rem;
}
.cookie-modal .cookie-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.09rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-modal input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: var(--secondary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  border: none; background: none;
  font-size: 1.8rem;
  color: #757EA2;
  position: absolute;
  top: 16px; right: 24px;
  cursor: pointer;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 22px 8px 16px 10px;
    min-width: unset;
    max-width: 99vw;
  }
}

/* ===================
  ANIMATIONS
====================*/
.btn, .btn-primary, .feature-grid > div, .courses-grid > div, .blog-post-teaser, .testimonial-card, .cookie-banner, .cookie-modal {
  transition: box-shadow .22s, background .18s, border .18s, color .16s, transform .22s;
}

/* =======================
  RESPONSIVE: GLOBAL RULES
========================*/
@media (max-width: 1024px) {
  .container { max-width: 98vw; padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 800px) {
  .content-wrapper { gap: 16px; }
}
@media (max-width: 700px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.12rem; }
  .cta { padding: 18px 8px; }
}
@media (max-width: 500px) {
  .container { padding-left: 3px; padding-right: 3px; }
  .section {
    padding: 18px 2px;
    margin-bottom: 32px;
  }
}

/* ===================
  GEOMETRIC STRUCTURED
====================*/
.section, .features, .cta, .card, .courses-grid > div, .team-grid > div, .testimonial-card, .feature-grid > div, .blog-post-teaser, .cookie-banner, .cookie-modal {
  /* Geometric corner treatment */
  border-radius: 18px;
}
h1, h2, h3, .btn, .btn-primary {
  /* Angular/geometric font family*/
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}

/* Extra: visual geometric cues */
.section {
  position: relative;
}
.section:before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 0;
  width: 50px; height: 50px;
  background: transparent;
  border-top: 6px solid var(--secondary);
  border-left: 6px solid var(--secondary);
  border-radius: 0 0 35px 0;
  z-index: 1;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  right: 0; bottom: 0;
  width: 45px; height: 45px;
  background: transparent;
  border-bottom: 6px solid var(--secondary);
  border-right: 6px solid var(--secondary);
  border-radius: 35px 0 0 0;
  z-index: 1;
}
.features, .cta {
  position: relative;
  overflow: hidden;
}
.features:before, .cta:before {
  content:"";
  position: absolute;
  top: -20px; right: -20px;
  width: 54px; height: 54px;
  background: var(--secondary);
  opacity: .22;
  border-radius: 17px 39px 0 17px;
  z-index: 0;
}
.features:after, .cta:after {
  content: "";
  position: absolute;
  left: -15px; bottom: -16px;
  width: 44px; height: 44px;
  background: var(--secondary);
  opacity: .14;
  border-radius: 23px 0 12px 39px;
  z-index: 0;
}

/* Remove geometric borders on mobile for smaller screens */
@media (max-width: 520px) {
  .section:before, .section:after { display: none; }
  .features:before, .features:after, .cta:before, .cta:after { display: none; }
}

/* ===================
  MISC HELPERS
===================*/
@media (max-width: 600px) {
  .services ul, .features ul, .features ol { font-size: 0.98rem; margin-left: 0; padding-left: 12px; }
  .courses-grid, .feature-grid, .team-grid { gap: 11px !important; }
}

/* Accessibility outline for focusables */
a:focus, button:focus, .btn:focus, .cookie-btn:focus, input:focus, select:focus {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}

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