/* ---------------------------------------------------------------
   Opal Vital – Professional Corporate CSS
   Brand Colors: #19665c (Primary: blue-green), #f5f9f7 (Secondary), #2e902f/#16721a (Accent)
   Fonts: Montserrat (Display), Open Sans (Body)
   ONLY FLEXBOX layouts; NO CSS Grid/Columns;
   Consistent with 'professional_corporate' style and modern accessibility.
------------------------------------------------------------------*/

/* ===== 1. CSS RESET & BASELINE ===== */
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: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #f5f9f7;
  color: #222E36;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
}

img, picture, video {
  max-width: 100%;
  display: block;
}

ul, ol {
  margin-left: 1.5em;
}
a {
  color: #19665c;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #16721a;
  outline: none;
}

strong { font-weight: 700; }

/* ===== 2. TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #19665c;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
h5, h6 { font-size: 1rem; }
p, li, blockquote {
  font-size: 1rem;
  margin-bottom: 14px;
  font-weight: 400;
}
blockquote {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-style: italic;
  background: #e8f1ef;
  color: #19665c;
  padding: 14px 24px;
  border-left: 4px solid #19665c;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* ===== 3. REUSABLE CONTAINERS & LAYOUTS ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(30,50,76,0.07);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ===== 4. HEADER & NAVIGATION BAR ===== */
header {
  background: #19665c;
  box-shadow: 0 2px 10px rgba(25,102,92,0.12);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75em;
  padding-bottom: 0.75em;
}
.brand-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-navigation a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 8px 0;
  transition: color 0.2s;
}
.main-navigation a.cta {
  background: #16721a;
  color: #fff;
  padding: 10px 26px;
  border-radius: 6px;
  margin-left: 18px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(44, 100, 89, 0.08);
  transition: background 0.17s, box-shadow 0.12s;
}
.main-navigation a.cta:hover, .main-navigation a.cta:focus {
  background: #2e902f;
  color: #fff;
  box-shadow: 0 4px 8px rgba(44, 100, 89, 0.12);
}
.main-navigation a:hover, .main-navigation a:focus {
  color: #9ec9c3;
}

/* Hamburger (mobile) */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  cursor: pointer;
  display: none;
  margin-left: 26px;
  z-index: 102;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #16721a;
  color: #16721a;
}
@media (max-width: 950px) {
  .main-navigation {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===== 5. MOBILE MENU (Burger overlay) ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23, 47, 50, 0.98);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.19,1,0.22,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 20px 36px 0 0;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  color: #16721a;
  outline: 2px solid #16721a;
}
.mobile-menu nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 36px 32px 16px 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 12px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.18s, background 0.15s;
  border-radius: 0;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #16721a;
  background: rgba(22,114,26,0.08);
}

@media (max-width: 700px) {
  .mobile-menu nav {
    padding: 24px 14px 12px 18px;
    gap: 11px;
  }
}


/* ===== 6. HERO & SECTION LAYOUTS ===== */
.hero {
  background: linear-gradient(100deg, #eef5f2 60%, #dbecea 100%);
  padding: 54px 0 48px 0;
  margin-bottom: 28px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}
.hero .content-wrapper {
  align-items: flex-start;
  padding: 0;
  gap: 20px;
}
.hero h1 {
  color: #19665c;
  font-size: 2.7rem;
  margin-bottom: 14px;
}
.hero p {
  color: #345864;
  font-size: 1.2rem;
  max-width: 540px;
}
.hero .cta {
  margin-top: 18px;
}
@media (max-width:700px) {
  .hero {
    padding: 30px 0 24px 0;
  }
  .hero .content-wrapper {
    align-items: flex-start;
    gap: 12px;
  }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1.01rem; }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}

/* ===== 7. FLEXBOX CONTENT PATTERNS (MANDATORY) ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(25,102,92, 0.08);
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: 320px;
  flex: 1 1 240px;
  transition: box-shadow 0.22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 18px rgba(25,102,92, 0.16);
  z-index: 2;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f5f9f7;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(22,114,26,0.04);
  margin-bottom: 20px;
  border-left: 5px solid #16721a;
  transition: border-color 0.21s, box-shadow 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-left: 5px solid #2e902f;
  box-shadow: 0 4px 18px rgba(30,84,60,0.11);
  z-index: 3;
}
.testimonial-details {
  font-size: 0.97rem;
  color: #19665c;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
}

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

/* VALUES/CARD GRIDS */
.feature-grid, .category-grid, .service-list, .course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  background: #f5f9f7;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(25,102,92,0.08);
  padding: 20px 18px;
  flex: 1 1 200px;
  min-width: 193px;
  max-width: 251px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.feature:hover {
  box-shadow: 0 4px 14px rgba(25,102,92,0.16);
}
.feature img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  margin-bottom: 7px;
}

.category-block {
  background: #eef5f2;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(25,102,92, 0.03);
  padding: 18px 12px;
  min-width: 166px;
  max-width: 186px;
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.category-block img {
  height: 30px;
  width: 30px;
  margin-bottom: 9px;
}
.category-block:hover {
  box-shadow: 0 4px 18px rgba(25,102,92,0.07);
}

.service-list, .course-grid {
  gap: 24px;
  flex-wrap: wrap;
}
.service-block, .course-block {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(25,102,92, 0.04);
  padding: 24px 20px;
  margin-bottom: 20px;
  flex: 1 1 270px;
  max-width: 350px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s;
}
.service-block:hover, .course-block:hover {
  box-shadow: 0 5px 18px rgba(25,102,92,0.15);
}

.article-list, .client-case-snippets {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.article-list article {
  background: #f5f9f7;
  border-radius: 10px;
  padding: 24px 16px;
  box-shadow: 0 1px 8px rgba(25,102,92,0.04);
  flex: 1 1 290px;
  min-width: 196px;
  max-width: 330px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s;
}
.article-list article:hover {
  box-shadow: 0 5px 18px rgba(25,102,92,0.13);
}

/* General responsive adjustments for flex lists */
@media (max-width: 950px) {
  .feature-grid, .category-grid, .service-list, .course-grid, .card-container, .article-list {
    gap: 14px;
  }
  .feature, .category-block, .service-block, .course-block, .card {
    min-width: 160px;
    max-width: 100%;
  }
}
@media (max-width: 700px) {
  .feature-grid, .category-grid, .service-list, .course-grid, .card-container, .article-list {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===== 8. BUTTONS & CTA LINKS ===== */
.cta, .cta-block .cta, .article-list a.cta, .featured-post a.cta, .newsletter-signup a.cta {
  display: inline-block;
  background: #19665c;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  margin-top: 12px;
  box-shadow: 0 1px 6px rgba(25,102,92,0.11);
  cursor: pointer;
  transition: background 0.23s, color 0.20s, box-shadow 0.18s;
  text-align: center;
}
.cta:hover, .cta:focus {
  background: #16721a;
  color: #fff;
  box-shadow: 0 6px 18px rgba(22,114,26,0.14);
  outline: none;
}

button, input[type="submit"] {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  padding: 10px 26px;
  background: #19665c;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.14s;
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: #16721a;
  outline: 2px solid #16721a;
}

/* ===== 9. FOOTER ===== */
footer {
  background: #19665c;
  color: #fff;
  padding: 34px 0 24px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
footer .footer-navigation {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
footer .footer-navigation a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.89;
  transition: color 0.18s;
}
footer .footer-navigation a:hover, footer .footer-navigation a:focus {
  color: #70baba;
}
.brand-contact-info {
  color: #f5f9f7;
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brand-contact-info a {
  color: #f5f9f7;
  text-decoration: underline;
}
.brand-contact-info a:hover, .brand-contact-info a:focus {
  color: #16721a;
}
@media (max-width: 700px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-navigation {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}

/* ===== 10. MISC SECTION & COMPONENTS ===== */
.text-section {
  margin-bottom: 18px;
}
.text-section ul {
  margin-top: 0;
  margin-bottom: 14px;
  padding-left: 20px;
}
.map-location {
  background: #eef5f2;
  border-radius: 7px;
  padding: 12px 16px;
  margin-top: 12px;
  margin-bottom: 8px;
  color: #19665c;
  font-size: 0.97rem;
}
.cta-block {
  margin-top: 16px;
}

.featured-post {
  background: #19665c;
  color: #fff;
  border-radius: 8px;
  padding: 20px 18px;
  margin: 24px 0 10px 0;
  box-shadow: 0 1px 10px rgba(25,102,92,0.08);
}
.featured-post h3 {
  color: #f5f9f7;
  font-size: 1.15rem;
}
.newsletter-signup {
  background: #f5f9f7;
  border-radius: 7px;
  padding: 20px 16px;
  margin-top: 26px;
  margin-bottom: 12px;
  color: #19665c;
  box-shadow: 0 1px 8px rgba(25,102,92, 0.03);
}

.participation-highlights ul {
  margin-left: 18px;
  margin-top: 10px;
  margin-bottom: 0;
}
.client-case-snippets {
  margin-top: 16px;
  font-style: italic;
  color: #19665c;
}

/* ===== 11. COOKIE CONSENT BANNER & MODAL ===== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 22px 18px;
  background: #1f2c2b;
  color: #fff;
  box-shadow: 0 -3px 16px rgba(25,102,92,0.13);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 0.99rem;
  flex-wrap: wrap;
  min-height: 64px;
  transition: transform 0.35s cubic-bezier(0.7,0,0.3,1), opacity 0.23s;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-consent-banner button {
  background: #19665c;
  color: #fff;
  font-size: 1rem;
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-right: 6px;
  transition: background 0.19s;
  outline: none;
  box-shadow: 0 1.5px 6px rgba(25,102,92,0.09);
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: #2e902f;
  color: #fff;
}
.cookie-consent-banner .cookie-settings-btn {
  background: #fff;
  color: #19665c;
  border: 1.2px solid #16721a;
  font-weight: 600;
}
.cookie-consent-banner .cookie-settings-btn:hover, .cookie-consent-banner .cookie-settings-btn:focus {
  background: #e8f1ef;
  color: #16721a;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(23,47,50,0.7);
  z-index: 1500;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.open {
  display: flex;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  color: #222E36;
  border-radius: 12px;
  padding: 34px 26px 22px 28px;
  max-width: 440px;
  width: 95vw;
  box-shadow: 0 5px 28px rgba(25,102,92,0.22);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalAppear 0.35s cubic-bezier(0.76,0,0.24,1);
}
@keyframes cookieModalAppear {
  0% { opacity: 0; transform: scale(0.96) translateY(24px); }
  80% { opacity: 1; transform: scale(1.04) translateY(-6px);}
  100% { opacity: 1; transform: scale(1) translateY(0);}
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: #19665c;
  margin-bottom: 0.7em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal .category-label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #19665c;
}
.cookie-modal .category-toggle {
  background: #e8f1ef;
  border-radius: 100px;
  padding: 4px 18px;
  color: #19665c;
  font-size: 0.98rem;
  border: 1.2px solid #16721a;
  font-weight: 700;
  margin-left: 8px;
}
.cookie-modal .category-toggle[aria-checked="true"], .cookie-modal .category-toggle[checked] {
  background: #16721a;
  color: #fff;
  border: none;
}
.cookie-modal .modal-footer {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  border: none;
  color: #19665c;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: #16721a;
}

/* ===== 12. TRANSITIONS / MICRO-INTERACTIONS ===== */
.card, .feature, .category-block, .testimonial-card, .service-block, .course-block, .article-list article, .cta, .main-navigation a, .mobile-nav a, .footer-navigation a {
  transition: box-shadow 0.18s, background 0.19s, color 0.16s;
}

@media (max-width: 540px) {
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.08rem; }
  h3 { font-size: 1.01rem; }
  .container { padding-left: 4px; padding-right: 4px; }
  .section { padding: 16px 2px 14px 2px; }
  .hero { padding: 12px 0; }
}

/* ===== 13. ACCESSIBILITY ===== */
:focus {
  outline: 2px solid #16721a;
  outline-offset: 2px;
}

/* ===== 14. PRINT OPTIMIZATION (BASIC) ===== */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
  .section, .hero { box-shadow: none !important; background: #fff !important; }
}
