/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  font-family: inherit;
}
:root {
  --primary: #003366;
  --secondary: #009688;
  --accent: #F5F7FA;
  --gradient-top: #009688;
  --gradient-bottom: #003366;
  --contrast: #fff;
  --shadow: 0 8px 32px rgba(0,51,102,0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.4,0,0.2,1);
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, var(--accent) 0%, #e6edf3 50%, #fff 100%);
  color: var(--primary);
  min-height: 100vh;
  line-height: 1.7;
  font-size: 1rem;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
}
strong {
  font-weight: 700;
}
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover,a:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* --- TYPOGRAPHY --- */
h1, .main-title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
  line-height: 1.25;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--primary);
}
p, ul, ol {
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 1.25em;
}
li {
  margin-bottom: 8px;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 10px;
  }
  .container {
    padding: 0 10px;
  }
}

/* --- SPACING & FLEX PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-width: 250px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 16px rgba(0, 51, 102, 0.10);
  margin-bottom: 20px;
  color: #222;
  flex: 1 1 320px;
}
.testimonial-card p {
  font-size: 1.075rem;
  font-style: italic;
  margin-right: 10px;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FLEX DIRECTION MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
  .content-grid,
  .text-image-section,
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- HEADER & NAVIGATION --- */
header {
  background: linear-gradient(90deg, var(--gradient-top) 0%, var(--gradient-bottom) 100%);
  padding: 0;
  box-shadow: 0 3px 32px rgba(0,51,102,0.06);
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 30px;
}
header img {
  max-height: 48px;
  margin-right: 20px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--contrast);
  font-size: 1rem;
  opacity: .9;
  border-radius: 6px;
  padding: 8px 12px;
  transition: background .2s, color .2s;
}
header nav a:hover,
header nav a:focus {
  background: rgba(255,255,255,0.09);
  color: var(--secondary);
}
.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--secondary) 0%, #21bba2 100%);
  color: var(--contrast);
  border: none;
  box-shadow: 0 2px 12px rgba(0, 150, 136, 0.12);
  transition: background .2s var(--ease), transform .11s;
  text-shadow: 0 2px 8px rgba(0,0,0,.03);
  letter-spacing: .8px;
  margin-left: 16px;
  cursor: pointer;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #21bba2 0%, var(--secondary) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(0,150,136,0.15);
}
.cta-link {
  color: var(--secondary);
  font-weight: 600;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 2px;
  transition: color .12s;
}
.cta-link:hover, .cta-link:focus {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  background: #f7f7f7;
}

/* Hide nav on mobile, show burger */
.mobile-menu-toggle {
  display: none;
  font-size: 2.5rem;
  color: var(--contrast);
  background: none;
  border: none;
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 101;
  padding: 4px 8px;
  cursor: pointer;
  transition: color .18s;
}
.mobile-menu-toggle:focus{
  outline: 2px solid var(--secondary);
}
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    display: none;
  }
}

/* --- MOBILE MENU & OVERLAY --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(142deg, #003366 70%, #009688 120%);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: 0 0 60px 0 rgba(0,0,0,0.14);
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 24px 10px auto;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--contrast);
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 8px;
  transition: background .18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: rgba(255,255,255,0.19);
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  margin: 32px 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  color: var(--contrast);
  padding: 18px 0 8px 0;
  text-align: left;
  border-bottom: 1px solid rgba(245,247,250,0.08);
  transition: color .18s var(--ease), background .18s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,255,255,0.05);
  color: var(--secondary);
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- MAIN CONTENT --- */
main {
  padding-top: 32px;
}
@media (max-width: 768px) {
  main {
    padding-top: 18px;
  }
}

/* --- SPECIAL CARDS & BLOG --- */
.course-card {
  background: linear-gradient(98deg, #f5f7fa 60%, #e6edf3 100%);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(0,51,102,0.08);
  padding: 28px 24px 22px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
  flex: 1 1 340px;
}
.course-card h3 {
  color: var(--secondary);
  font-size: 1.2rem;
}

.ratings-summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: #f8fbff;
  padding: 12px 18px;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,51,102,0.06);
}

.text-section {
  background: #f6faff;
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  box-shadow: 0 1px 6px rgba(0,51,102,0.06);
}

/* --- BLOG POST LISTS --- */
.content-wrapper ul {
  list-style-type: disc;
  margin-left: 18px;
}
.content-wrapper ol {
  list-style-type: decimal;
  margin-left: 18px;
}
.content-wrapper li img {
  margin-right: 10px;
  vertical-align: middle;
  max-width: 22px;
  display: inline-block;
}
.content-wrapper li{
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 500px){
  .content-wrapper li {
    gap: 5px;
    font-size: 0.97rem;
  }
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg, #003366 10%, #009688 95%);
  color: var(--contrast);
  padding: 0;
  margin-top: 50px;
  box-shadow: 0 -3px 24px rgba(0,51,102,0.04);
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 20px 16px 20px;
}
.footer-brand img {
  max-height: 40px;
  margin-bottom: 14px;
}
.footer-navigation nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-navigation a {
  color: #e3f0fb;
  opacity: .82;
  padding: 4px 0 4px 0;
  font-size: 1rem;
}
.footer-navigation a:hover,
.footer-navigation a:focus {
  color: var(--secondary);
  opacity: 1;
  background: rgba(255,255,255,0.06);
}
.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}
.footer-social a img {
  max-height: 26px;
  opacity: .9;
  transition: opacity .18s, filter .18s;
}
.footer-social a:hover img {
  opacity: 1;
  filter: brightness(1.1) drop-shadow(0 2px 8px #309c86aa);
}
.footer-copy {
  font-size: .93rem;
  color: #d8eaff;
  margin-top: 16px;
  flex-basis: 100%;
  text-align: center;
  opacity: 0.7;
}
@media (max-width: 1024px){
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 38px 12px 12px 12px;
  }
  .footer-copy {
    margin-top: 24px;
  }
}

/* --- RESPONSIVE UTILITIES --- */
@media (max-width: 1024px) {
  .card-container, .content-grid, .footer-navigation nav {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    padding: 14px 6px;
  }
  .footer-navigation nav {
    gap: 5px;
  }
  .footer-contact ul li {
    font-size: 0.99rem;
  }
}

/* --- BUTTONS --- */
button, .cta-btn {
  cursor: pointer;
  transition: background .16s, color .16s, transform .12s;
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* --- MICRO-INTERACTIONS --- */
.card, .course-card, .testimonial-card, .text-section {
  transition: box-shadow 0.21s, transform .17s;
}
.card:hover, .course-card:hover, .testimonial-card:hover, .text-section:hover {
  box-shadow: 0 6px 38px rgba(0,51,102,0.13);
  transform: translateY(-2px) scale(1.02);
}

/* --- MODALS & OVERLAYS (COOKIE CONSENT) --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99998;
  background: linear-gradient(90deg, #fff 65%, #e6edf3 100%);
  border-top: 2px solid var(--secondary);
  box-shadow: 0 -2px 24px rgba(0,51,102,0.09);
  padding: 22px 16px;
  gap: 24px;
  animation: bannerAppear .8s var(--ease);
}
@keyframes bannerAppear {
  from { opacity: 0; transform: translateY(80px);} 
  to { opacity: 1; transform: none;}
}
.cookie-banner p {
  color: #26394e;
  font-size: 1.07rem;
  flex: 1 1 220px;
  margin-right: 12px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 22px;
  border: none;
  font-weight: 600;
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,150,136,0.06);
  margin: 0;
  transition: background .18s, color .18s;
}
.cookie-banner button.reject {
  background: #f2f6fa;
  color: var(--primary);
  border: 1.2px solid var(--secondary);
}
.cookie-banner button.settings {
  background: var(--primary);
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--gradient-top);
  color: #fff;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #e6edf3;
  color: var(--primary);
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: var(--gradient-bottom);
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 16px 8px;
  }
  .cookie-banner p {
    margin-right: 0;
    font-size: .97rem;
    text-align: center;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.36);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modalFadeIn .8s var(--ease);
}
@keyframes modalFadeIn {
  from {opacity:0;}
  to {opacity:1;}
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 60px rgba(0,51,102,.15);
  max-width: 420px;
  width: 94vw;
  padding: 36px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalInnerAppear .67s var(--ease);
}
@keyframes modalInnerAppear {
  from {transform: scale(.95); opacity:.7;}
  to {transform: none; opacity:1;}
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  width: 22px; height: 22px;
  margin: 0;
  accent-color: var(--secondary);
}
.cookie-modal .cookie-category.essential label {
  font-weight: 700;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: .99rem;
  padding: 9px 18px;
  border-radius: 18px;
  border: none;
  margin: 0;
  font-weight: 600;
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 1px 5px rgba(0,150,136,0.06);
  transition: background .18s, color .18s;
}
.cookie-modal button.reject {
  background: #f2f6fa;
  color: var(--primary);
  border: 1.2px solid var(--secondary);
}
.cookie-modal button.close {
  background: var(--primary);
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--gradient-top);
  color: #fff;
}
.cookie-modal button.reject:hover, .cookie-modal button.reject:focus {
  background: #e6edf3;
  color: var(--primary);
}
.cookie-modal button.close:hover, .cookie-modal button.close:focus {
  background: var(--gradient-bottom);
}
@media (max-width: 550px) {
  .cookie-modal .modal-content {
    padding: 16px 6px 12px 6px;
    max-width: 97vw;
  }
}

/* --- OTHER UTILITIES --- */
.card + .card, .course-card + .course-card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}
@media (max-width: 650px){
  .card, .course-card, .testimonial-card {
    min-width: 95vw;
    padding: 12px 7px;
    font-size: .99rem;
  }
}
.map-location {
  margin-top: 20px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,51,102,0.08);
}

/* --- VISUAL ENHANCEMENTS --- */
.section {
  background: linear-gradient(180deg, #fff 85%, #f5f7fa 100%);
  box-shadow: var(--shadow);
}
.card, .testimonial-card, .course-card, .text-section {
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 16px rgba(0, 51, 102, 0.07);
}

/* --- VISUAL HIERARCHY, COLORS, AND EFFECTS --- */
body {
  background: linear-gradient(180deg, #f5f7fa 0%, #e8f3fa 35%, #fff 100%);
}
.section:nth-child(odd) {
  background: linear-gradient(90deg, #f8fafb 75%, #f5f7fa 100%);
}

/* --- FORM ELEMENTS --- */
input, textarea, select {
  background: #f7fafc;
  border: 1.5px solid #e0e8f5;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  transition: border .17s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
  background: #fff;
}
label {
  font-weight: 500;
  display: block;
  color: var(--primary);
}

/* --- ACCESSIBILITY ENHANCEMENTS --- */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
@media (max-width: 500px){
  h1 {font-size: 1.6rem;}
  h2 {font-size: 1.15rem;}
  h3 {font-size: 1rem;}
}

/* --- END OF STYLE.CSS --- */
