/* ====================================================
   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, 
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;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F5EC;
  color: #205072;
  font-family: 'Open Sans', Arial, sans-serif;
}
ol, ul {
  list-style: none;
  margin: 0 0 0 24px;
  padding: 0;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
:focus {
  outline: 2px solid #76C893;
  outline-offset: 2px;
}

/* ====================================================
   VARIABLES & GLOBALS
==================================================== */
:root {
  --primary: #205072;
  --secondary: #76C893;
  --accent: #F6F5EC;
  --gradient-main: linear-gradient(90deg, #76C893 0%, #55b0f1 100%);
  --gradient-reverse: linear-gradient(90deg, #205072 0%, #76C893 100%);
  --text-main: #205072;
  --text-contrast: #102c41;
  --text-light: #fff;
  --shadow: 0 4px 18px rgba(32, 80, 114, 0.08);
  --radius: 14px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--accent);
  color: var(--text-main);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 22px; }
h2 { font-size: 2rem;  margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 1.125rem; margin-bottom: 8px; font-weight: 600; }
h5, h6 { font-size: 1rem; margin-bottom: 6px; font-weight: 600; }

p {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 18px;
}

strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* ----------------------------------------------------
   MAIN LAYOUT & SPACING
---------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
}

/* ----------------------------------------------------
   HEADER & NAVIGATION
---------------------------------------------------- */

header {
  width: 100%;
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(32,80,114,0.04);
  position: sticky;
  top: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.main-nav {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
}
.main-nav img {
  height: 36px;
  width: auto;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 8px;
}
.main-nav a {
  padding: 10px 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
}
.main-nav a:hover:not(.btn-primary), .main-nav a:focus:not(.btn-primary) {
  background: var(--secondary);
  color: #fff;
}

.main-nav .btn-primary {
  margin-left: auto;
}

@media (max-width: 1050px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9375rem;
    padding-top: 14px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    padding-right: 6px;
    padding-left: 6px;
    gap: 5px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
}

/* --------- MOBILE MENU --------- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 19px;
  right: 22px;
  z-index: 120;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 6px 12px 8px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--gradient-main);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  transition: transform 0.35s cubic-bezier(0.7,0,0.3,1), opacity 0.18s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 24px 16px 0;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.18s;
  padding: 5px 12px 5px 12px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.12);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 6px 38px 12px 38px;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-weight: 600;
  padding: 18px 0 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.11);
  transition: color 0.15s, background 0.15s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(255,255,255,0.08);
}

@media (max-width: 480px) {
  .mobile-nav {
    padding: 2px 13vw 8px 11vw;
  }
  .mobile-menu-close {
    margin-right: 10vw;
  }
}

/* ====================================================
   BUTTONS & LINKS
==================================================== */

.btn-primary, a.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--gradient-main);
  color: #fff !important;
  border: none;
  border-radius: var(--radius);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 12px 28px;
  box-shadow: 0 2px 10px rgba(32, 80, 114, 0.08);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.22s, color 0.18s;
  margin-top: 18px;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--gradient-reverse);
  color: #fff;
  box-shadow: 0 6px 20px rgba(34, 140, 106, 0.12);
  text-decoration: none;
}

.btn-secondary, a.btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  color: var(--primary) !important;
  border: 2px solid var(--secondary);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: #fff !important;
}

/* ====================================================
   HERO SECTIONS
==================================================== */
section:first-of-type {
  background: var(--gradient-main);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 40px rgba(32, 80, 114, 0.12);
}
section:first-of-type h1, section:first-of-type h2 {
  color: #fff;
}
section:first-of-type .btn-primary {
  background: #fff;
  color: var(--primary) !important;
}
section:first-of-type .btn-primary:hover {
  background: var(--secondary);
  color: #fff !important;
}

@media (max-width: 768px) {
  section:first-of-type {
    border-radius: 0 0 20px 20px;
    box-shadow: none;
  }
}

/* ====================================================
   FLEXBOX LAYOUTS (MANDATORY PATTERNS)
==================================================== */
/* For all cards, feature, grid, alignment --- use flex only */

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px 20px;
  min-width: 260px;
  flex: 1 1 300px;
  transition: box-shadow .18s;
}
.card:hover, .card:focus-visible {
  box-shadow: 0 6px 24px rgba(32,80,114,0.12);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(32,80,114,0.10);
  min-width: 270px;
  max-width: 370px;
  margin-bottom: 20px;
  color: #205072;
  border: 1px solid #ebf7f1;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #205072;
}
.testimonial-info {
  font-size: 1rem;
  color: #205072;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 12px;
}
.testimonial-info span {
  color: #ffd700;
  font-size: 1.1rem;
}

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

/**** Special patterns for given HTML markup ****/

.feature-grid, .service-list, .seminar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 0 0;
}
.feature-grid > div,
.service-list > .text-section,
.seminar-list > .text-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(32,80,114,0.06);
  padding: 22px 18px 20px 18px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border: 1px solid #e8f4ef;
  transition: box-shadow 0.17s;
}
.feature-grid > div:hover, .service-list > .text-section:hover, .seminar-list > .text-section:hover {
  box-shadow: 0 8px 32px rgba(32,80,114,0.11);
}
.feature-grid img,
.seminar-list img,
.service-list img {
  width: 45px;
  height: 45px;
  margin-bottom: 10px;
  border-radius: 10px;
}

/**** Testimonial slider flexbox pattern ****/
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
  align-items: stretch;
}

/**** FAQ Accordion (no grid, only flex!) ****/
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0 32px 0;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(32,80,114,0.051);
  padding: 18px 18px 14px 18px;
  transition: box-shadow 0.12s;
  border: 1px solid #e9f5ef;
}
.faq-item h3 { font-size: 1.08rem; color: var(--primary); margin-bottom: 6px; }
.faq-item p { font-size: 1rem; color: var(--text-main); }

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 30px 0 0 0;
}

/* Cards, lists, etc. - GENERAL SPACING ENFORCEMENT */
.card,
.feature-grid > div,
.service-list > .text-section,
.seminar-list > .text-section,
.testimonial-card,
.faq-item {
  margin-bottom: 20px;
}

/* FAQ = .faq-accordion, .faq-item | Testimonials = .testimonial-slider/.testimonial-card */

/* Spacing fix for ul/li */
ul, ol {
  margin-top: 12px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 0.5em;
}

/* ===================
   TEXT, LISTS & TYPO
==================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section ul {
  margin-left: 12px;
}
.text-section li {
  position: relative;
  padding-left: 25px;
  color: var(--primary);
}
.text-section li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.1em;
}

/* Placeholders for forms/maps */
.contact-form-placeholder, .map-embed-placeholder {
  background: #f3faf7;
  border-radius: var(--radius);
  padding: 18px;
  color: #314661;
  box-shadow: 0 1px 6px rgba(32,80,114,0.047);
  margin: 16px 0;
}
.map-embed-placeholder {
  background: #f7fbea;
  color: #205072;
}

/* Call to action area alignment */
.content-wrapper > .btn-primary {
  margin-top: 30px;
}

/* ===================
   SEMANTIC TABLES (just in case)
==================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(32,80,114,0.06);
}
th, td {
  padding: 14px 10px;
  border-bottom: 1px solid #eef1ee;
}
th {
  background: #e6f3ee;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ====================================================
   FOOTER
==================================================== */
footer {
  background: var(--primary);
  color: #fff;
  padding-top: 26px;
  padding-bottom: 30px;
  margin-top: 50px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 18px rgba(32, 80, 114, 0.07);
  width: 100%;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.84;
  transition: opacity 0.15s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  opacity: 1;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.footer-brand img {
  width: 32px; height: 32px;
}
.footer-brand span {
  font-size: 1rem;
  color: #d7ebe7;
  font-family: 'Montserrat', Arial, sans-serif;
}

@media (max-width: 700px) {
  .footer-nav {
    gap: 11px;
    font-size: 0.93rem;
  }
  .footer-brand {
    gap: 8px;
    font-size: 0.98rem;
  }
}
/* ====================================================
   COOKIE CONSENT BANNER & MODAL
==================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 999;
  background: #fff;
  box-shadow: 0 -2px 18px rgba(32, 80, 114, 0.10);
  padding: 18px 10vw 18px 10vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 24px 24px 0 0;
  transition: transform 0.3s, opacity 0.21s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-text {
  color: var(--primary);
  font-size: 1.01rem;
  flex: 1 1 0%;
  margin-right: 16px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  margin-top: 0;
  padding: 10px 18px;
  font-size: 0.99rem;
  box-shadow: none;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 5vw;
    gap: 14px;
  }
  .cookie-banner .cookie-text {
    margin: 0 0 3px 0;
  }
  .cookie-banner .cookie-actions {
    gap: 9px;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1200;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32, 80, 114, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px 24px 28px;
  box-shadow: 0 6px 32px rgba(32,80,114,0.15);
  min-width: 320px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.23rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #f2f7f3;
  border-radius: 10px;
  padding: 10px 14px 10px 14px;
  margin-bottom: 7px;
}
.cookie-category strong {
  color: var(--primary);
  font-size: 1rem;
}
.cookie-category .category-toggle {
  margin-left: 14px;
  accent-color: var(--secondary);
}
.cookie-category.essential {
  opacity: 0.60;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  margin-top: 0;
}
@media (max-width: 475px) {
  .cookie-modal {
    padding: 20px 8px 12px 8px;
    min-width: 180px;
  }
}

/* ====================================================
   RESPONSIVE ADJUSTMENTS
==================================================== */
@media (max-width: 968px) {
  .feature-grid, .service-list, .seminar-list {
    gap: 18px;
  }
  .testimonial-slider {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .feature-grid, .service-list, .seminar-list,
  .testimonial-slider {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 590px) {
  .footer-nav {
    flex-direction: column;
    gap: 4px 0;
    padding: 0 2vw;
  }
  footer {
    padding-top: 16px;
    padding-bottom: 18px;
  }
}
@media (max-width: 500px) {
  .section {
    padding: 10px 1vw;
  }
  .feature-grid > div,
  .service-list > .text-section,
  .seminar-list > .text-section {
    min-width: 0;
    max-width: unset;
    padding: 13px 6px 13px 6px;
  }
  .card {
    padding: 10px 6px;
  }
}

/* ====================================================
   MICRO-INTERACTIONS & EFFECTS
==================================================== */

section, .section, .card, .feature-grid > div, .service-list > .text-section, .testimonial-card,
.seminar-list > .text-section, .faq-item {
  transition: box-shadow 0.18s, background 0.18s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover, .service-list > .text-section:hover, .seminar-list > .text-section:hover, .faq-item:hover {
  box-shadow: 0 10px 42px rgba(118, 200, 147, 0.16), 0 2px 10px rgba(32,80,114,0.10);
}

a, .btn-primary, .btn-secondary, button {
  transition: color 0.18s, background 0.18s, box-shadow 0.22s;
}

.btn-primary:active {
  box-shadow: 0 2px 9px rgba(32, 80, 114, 0.07);
}
section {
  padding: 15px;
}
/* ====================================================
   MISC (Ensure NO grid/columns)
==================================================== */
/* No display: grid, grid-*, columns */

/*   FONT-FAMILY DEFINITIONS (include web fonts)   */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

/* End of Style CSS for gradient_modern layout */
