/* === CSS RESET & NORMALIZATION === */
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,main,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
body {
  line-height: 1.55;
  background: #f8f9fa;
  color: #222;
}
*, *:before, *:after {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #173753;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #45b3e0;
}

/* === ELEGANT CLASSIC ROOTS & THEME VARIABLES === */
:root {
  --primary: #173753;
  --secondary: #45b3e0;
  --accent: #f8f9fa;
  --text: #222;
  --text-light: #fff;
  --muted: #e5e7eb;
  --serif: 'Playfair Display', 'Georgia', serif;
  --sans: 'Montserrat', 'Roboto', Arial, sans-serif;
  --radius: 14px;
  --shadow-xs: 0 2px 8px rgba(23,55,83,0.07);
  --shadow-md: 0 8px 32px rgba(23,55,83,0.11);
  --section-space: 60px;
  --container-padding: 20px;
  --transition: 0.2s cubic-bezier(.5,.1,.1,1);
}

body {
  font-family: var(--serif);
  background-color: var(--accent);
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 {font-size: 2.6rem; margin-bottom: 28px;}
h2 {font-size: 2rem; margin-bottom: 20px;}
h3 {font-size: 1.45rem; margin-bottom: 14px;}
h4 {font-size: 1.15rem;}

p {
  font-family: var(--sans);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

strong { font-weight: 600; color: var(--primary); }

/* === LAYOUT === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  margin-bottom: var(--section-space);
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.text-section {
  padding: 0 0 0 0;
  background: none;
  box-shadow: none;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
/* Responsive: vertical stacking below 768px */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

.card-container, .feature-grid, .course-grid, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-grid, .content-grid {
  gap: 20px;
  justify-content: space-between;
}
.feature-grid {
  gap: 32px;
  justify-content: flex-start;
}

.card, .feature-item, .course-card  {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px 24px 24px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.card-container > .card,
.course-grid > .course-card,
.feature-grid > .feature-item {
  flex: 1 1 320px;
  min-width: 270px;
  max-width: 370px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  background: #fff;
  margin-bottom: 24px;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--muted);
}
.testimonial-card p {
  color: var(--primary);
  font-family: var(--serif);
  font-size: 1.10rem;
  margin-bottom: 6px;
  font-style: italic;
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 600;
}
.star-rating {
  color: #faaf2a;
  font-size: 1.2rem;
  padding-top: 3px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

/* === HERO === */
.hero {
  background: #f6f8fb;
  border-bottom: 1px solid var(--muted);
  padding: 60px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero h1 {
  color: var(--primary);
  font-family: var(--serif);
}
.hero p {
  color: var(--primary);
  font-size: 1.18rem;
  margin-bottom: 10px;
  font-family: var(--sans);
}

/* === NAVIGATION STYLES === */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  list-style: none;
  margin-left: 30px;
}
.main-nav li {
  margin-bottom: 0;
}
.main-nav a {
  font-family: var(--sans);
  font-size: 1.10rem;
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1.5;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
.main-nav .btn-primary {
  margin-left: 22px;
}
.main-nav > a {
  display: flex;
  align-items: center;
}
.main-nav img {
  height: 40px;
}

/* === BUTTONS === */
.btn-primary, .btn-secondary {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--radius);
  border: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 12px 32px;
  box-shadow: var(--shadow-xs);
  margin-top: 8px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) scale(1.03);
}

/* === FOOTER === */
footer {
  background: #f4f6fa;
  border-top: 1px solid var(--muted);
  padding: 36px 0 0 0;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--sans);
  font-size: 1rem;
  opacity: .82;
  transition: opacity .2s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  opacity: 1;
}
.footer-contact {
  margin-top: 14px;
  font-size: 1.01rem;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--sans);
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 7px;
  height: 18px;
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: 14px;
  cursor: pointer;
  z-index: 130;
}
.mobile-menu {
  transition: transform 0.28s cubic-bezier(.6,0,.2,1);
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f8f9fa;
  box-shadow: 0 0 40px rgba(23,55,83,.16);
  transform: translateX(-100%);
  opacity: 0.96;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  padding: 28px 24px 18px 18px;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 0 30px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--primary);
  background: none;
  padding: 11px 0;
  border-radius: 6px;
  font-family: var(--sans);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

@media (max-width:1160px) {
  .main-nav ul {
    gap: 15px;
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .main-nav ul {
    gap: 10px;
  }
}

@media (max-width: 876px) {
  .main-nav ul {
    display: none;
  }
  .main-nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 877px) {
  .mobile-menu,
  .mobile-menu-close,
  .mobile-nav {
    display: none !important;
  }
}

/* === RESPONSIVE STYLES === */
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 45px;
  }
  .hero {
    padding: 32px 0;
  }
  .card-container,.feature-grid,.course-grid,.card-grid,.content-grid {
    gap: 13px;
  }
  .card, .feature-item, .course-card {
    padding: 18px 12px;
    min-width: 172px;
  }
  .testimonial-card {
    padding: 14px;
    margin-bottom: 12px;
  }
  h1 {font-size: 2rem;}
  h2 {font-size: 1.4rem;}
  .footer-contact {
    font-size: 0.98rem;
    margin-top: 10px;
    gap: 3px;
  }
}
@media (max-width: 480px) {
  h1 {font-size: 1.2rem;}
  h2 {font-size: 1rem;}
  .btn-primary, .btn-secondary {
    font-size: 1rem;
    padding: 10px 14px;
  }
}

/* === COOKIES CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  z-index: 999;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -2px 16px rgba(23,55,83,0.11);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 18px 20px 18px;
  transition: transform 0.23s cubic-bezier(.8,0,.2,1);
}
.cookie-banner.hide {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner-message {
  flex: 1 0 200px;
  font-size: 0.98rem;
  font-family: var(--sans);
  color: var(--primary);
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-btn {
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 1rem;
  font-family: var(--sans);
  font-weight: 600;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}
.cookie-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-accept:hover,.cookie-accept:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.cookie-reject {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-reject:hover,.cookie-reject:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-settings {
  background: #ededf5;
  color: var(--primary);
  border: 1.5px solid #d0dae7;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 8px 12px 8px;
    font-size: 0.95rem;
  }
}

/* === COOKIES SETTINGS MODAL === */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 1299;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(23,55,83,0.25);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  width: 97vw;
  max-width: 370px;
  border-radius: 17px 17px 0 0;
  box-shadow: 0 -6px 48px rgba(23,55,83,.16);
  padding: 28px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: cookieModalIn .26s cubic-bezier(.5,0,.4,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 12px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
}
.cookie-modal h2 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.cookie-category {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.cookie-category input {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
}
.cookie-category label {
  color: var(--primary);
  font-size: 1rem;
  font-family: var(--sans);
}
.cookie-category.essential label {
  font-weight: bold;
  color: #21ab50;
}
.cookie-modal-actions {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
}

/* === FORMS, CONTACT, MISC === */
.contact-info {
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--primary);
  border-left: 3px solid var(--secondary);
  padding-left: 15px;
}

/* === MICRO-INTERACTIONS & TRANSITIONS === */
.card, .feature-item, .course-card, .testimonial-card {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .feature-item:hover, .course-card:hover, .testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px) scale(1.01);
}

/* === VISUAL ELEMENTS === */
hr {
  border: none;
  border-top: 1px solid var(--muted);
  margin: 46px 0;
}

/* === ACCESSIBILITY & CONTRAST FOR TESTIMONIALS === */
.testimonial-card {
  background: #fff;
  color: var(--primary);
  border-left: 4px solid var(--secondary);
}
.testimonial-card p, .testimonial-card strong {
  color: var(--primary);
}

/* === UTILITIES === */
.mt-2 { margin-top: 20px !important; }
.mb-2 { margin-bottom: 20px !important; }
.mt-1 { margin-top: 12px !important; }
.mb-1 { margin-bottom: 12px !important; }

/* === PRINT SUPPORT === */
@media print {
  nav, .mobile-menu, .cookie-banner, .cookie-modal-backdrop, footer { display: none !important; }
  main {padding: 0 !important;}
  .container {max-width: 100vw;}
}

/* === END OF STYLE.CSS === */