/* ========================== 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: #1C2D3C;
  color: #F6F8FA;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #F6F8FA;
  background: #1C2D3C;
  min-height: 100vh;
  width: 100vw;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  border: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: #E6A634;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F6F8FA;
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  transition: background 0.2s, color 0.2s;
}

/* ========================== BRAND TYPOGRAPHY ============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #F6F8FA;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.4rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 16px; color:#E6A634; }
h4 { font-size: 1.2rem; margin-bottom: 12px; color: #E6A634; }
p,li,blockquote { font-size: 1rem; line-height: 1.7; }
strong { color: #E6A634; font-weight: 700; }

/* Use an alternative for industrial/urban:
   Montserrat and Open Sans both highly legible, Montserrat = display/urban */


/* =========================== CONTAINERS & LAYOUT ========================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #202f3e;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 #131d25dd;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #192532;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 #131d2566;
  padding: 28px 22px;
  min-width: 260px;
  max-width: 340px;
  flex: 1 0 260px;
  border: 1.5px solid #252f39;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 #000b12cc;
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F6F8FA;
  color: #24364b;
  border-left: 5px solid #E6A634;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 #131d2522;
  font-family: 'Open Sans', Arial, sans-serif;
}
.testimonial-card strong {
  color: #1C2D3C;
}
.star-rating {
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: #E6A634;
  filter: drop-shadow(0 1px 0 #141e29cc);
}
blockquote {
  font-style: italic;
  margin: 6px 0 0 20px;
  color: #36475a;
  border-left: 2px solid #E6A634;
  padding-left: 12px;
  font-size: 1.02rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #242f3c;
  border-left: 3px solid #E6A634;
  padding: 24px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #F6F8FA;
}


/* Blog list special */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.blog-list article {
  background: #1C2D3C;
  color: #F6F8FA;
  border: 1px solid #2a3c4e;
  border-radius: 11px;
  padding: 22px 18px;
  box-shadow: 0 1px 8px 0 #0b172366;
  transition: box-shadow 0.17s, border 0.17s;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 0 260px;
}
.blog-list article:hover {
  box-shadow: 0 6px 20px 0 #000d1855;
  border: 1.5px solid #E6A634;
}

.featured-post {
  background: #202f3e;
  color: #E6A634;
  border-radius: 9px;
  padding: 18px 16px;
  box-shadow: 0 1px 8px 0 #0b172350;
  margin-top: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.tag-filter {
  background: #192532;
  color: #F6F8FA;
  display: inline-block;
  border-radius: 22px;
  padding: 8px 18px;
  margin: 14px 0 8px 0;
  letter-spacing: 0.02em;
  font-family: 'Montserrat',Arial,sans-serif;
}

/* ========================== HEADER & NAVIGATION ========================= */
header {
  background: #141e29;
  border-bottom: 2px solid #212b36;
  position: sticky;
  z-index: 100;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 24px;
}
header img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat',Arial,sans-serif;
  color: #F6F8FA;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.16s, color 0.16s;
  font-size: 1rem;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E6A634;
  color: #1C2D3C;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat',Arial,sans-serif;
  background: #E6A634;
  color: #1C2D3C;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  padding: 11px 26px;
  border-radius: 32px;
  box-shadow: 0 2px 12px 0 #000b1240;
  border: none;
  margin-left: 12px;
  transition: background 0.18s, color 0.16s, box-shadow 0.17s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #FFD07E;
  color: #111822;
  box-shadow: 0 4px 28px 0 #000c16c0;
  text-decoration: none;
}
.cta-secondary {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat',Arial,sans-serif;
  background: #24364b;
  color: #E6A634;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 9px 22px;
  border-radius: 28px;
  box-shadow: 0 1.5px 10px 0 #000b1222;
  border: 1.5px solid #E6A634;
  margin-top: 14px;
  transition: background 0.18s, color 0.13s, box-shadow 0.14s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #E6A634;
  color: #1C2D3C;
}

.badge {
  display: inline-block;
  background: #E6A634;
  color: #1C2D3C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 6px;
  padding: 2px 10px;
  margin-left: 9px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

/* ========== FOOTER ========== */
footer {
  background: #192532;
  color: #F6F8FA;
  border-top: 2px solid #212b36;
  padding: 32px 0 18px 0;
  margin-top: 60px;
  width: 100%;
}
.footer-nav,
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav {
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #E6A634;
  font-weight: 600;
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1em;
  letter-spacing: 0.02em;
  border-radius: 3px;
  padding: 2px 9px;
  transition: background 0.18s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #E6A634;
  color: #1C2D3C;
}
.footer-contact {
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.96em;
  gap: 6px;
  color: #A5B3C5;
}

/* ================= MOBILE BURGER MENU ===================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 3001;
  background: #192532;
  color: #E6A634;
  padding: 11px 16px;
  border-radius: 6px;
  border: 1.5px solid #F6F8FA;
  font-size: 28px;
  box-shadow: 0 1px 6px 0 #000b1233;
  transition: background 0.14s, color 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E6A634;
  color: #192532;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #1C2D3C;
  z-index: 3050;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.8,0,0.18,1), opacity 0.32s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
  box-shadow: 4px 0 48px 0 #000d1880;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 20px 10px 0;
  font-size: 2rem;
  color: #E6A634;
  background: #192532;
  padding: 7px 13px;
  border-radius: 6px;
  border: 1.5px solid #F6F8FA;
  box-shadow: 0 1px 6px 0 #000b1222;
  transition: background 0.16s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E6A634;
  color: #192532;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 40px 32px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #E6A634;
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1.15rem;
  padding: 12px 6px;
  width: 100%;
  border-radius: 6px;
  transition: background 0.15s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E6A634;
  color: #1C2D3C;
}

/* ================== COOKIE CONSENT BANNER ================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4001;
  background: #202f3e;
  color: #F6F8FA;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 22px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 -2px 24px 0 #000c1644;
  border-top: 3px solid #E6A634;
  animation: cookieBannerIn 0.8s cubic-bezier(.65,0,.04,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #F6F8FA;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.cookie-banner button {
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  border-radius: 25px;
  padding: 9px 22px;
  border: none;
  font-size: 1rem;
  margin: 0;
  background: #192532;
  color: #E6A634;
  transition: background 0.16s, color 0.14s;
}
.cookie-banner .cookie-accept {
  background: #E6A634;
  color: #1C2D3C;
}
.cookie-banner .cookie-reject {
  background: #fafafa;
  color: #323e4a;
  border: 1.5px solid #E6A634;
}
.cookie-banner .cookie-settings {
  background: #192532;
  color: #E6A634;
  border: 1.5px solid #E6A634;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #FFD07E;
  color: #1C2D3C;
}

/* Cookie modal */
#cookie-modal {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  z-index: 4100;
  background: rgba(40,54,68,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.40s cubic-bezier(.25,0,.1,1);
}
#cookie-modal.open {
  display: flex;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #F6F8FA;
  color: #24364b;
  border-radius: 16px;
  box-shadow: 0 4px 48px 0 #000c1655;
  padding: 36px 30px 32px 32px;
  max-width: 450px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.cookie-modal-content h2 {
  color: #1C2D3C;
  font-size: 1.34rem;
  font-family: 'Montserrat',Arial,sans-serif;
  margin-bottom: 8px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Open Sans',Arial,sans-serif;
  font-size: 1rem;
  color: #24364b;
  margin-bottom: 8px;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: #E6A634;
  width: 20px;
  height: 20px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: flex-end;
}
.cookie-modal-content .cookie-save {
  background: #E6A634;
  color: #1C2D3C;
  border: none;
}
.cookie-modal-content .cookie-cancel {
  background: #F6F8FA;
  color: #24364b;
  border: 1.5px solid #E6A634;
}
.cookie-modal-content button:hover, .cookie-modal-content button:focus {
  background: #FFD07E;
  color: #1C2D3C;
}

/* ========================= GENERAL CONTENT & ELEMENTS ====================== */
section { margin-bottom: 60px; padding: 40px 20px; }
.content-wrapper > ul,
.content-wrapper ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.content-wrapper ul li img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  height: 1.2em;
  width: auto;
  filter: grayscale(0.7) brightness(1.3);
}

.instructor-profile {
  background: #192532;
  color: #F6F8FA;
  border-left: 4px solid #E6A634;
  border-radius: 8px;
  padding: 18px 24px 16px 24px;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px 0 #141e2a22;
}
.instructor-profile h3 {
  margin-bottom: 5px;
  color: #E6A634;
  font-size: 1.19rem;
}
.instructor-profile ul {
  margin-bottom: 5px;
}

/* ========================== RESPONSIVENESS ============================ */
@media (max-width: 1080px) {
  .container { max-width: 940px; }
}
@media (max-width: 900px) {
  .container { max-width: 97vw; }
  .main-nav { gap: 13px; }
  header .container { padding: 12px 7px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .section, section {
    padding: 24px 8px;
    margin-bottom: 30px;
    border-radius: 10px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .blog-list, .card-container, .content-grid, .feature-list {
    flex-direction: column;
    gap: 16px;
  }
  .card, .blog-list article, .feature-item {
    min-width: 98%;
    max-width: 98vw;
    padding: 16px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .footer-nav, .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .testimonial-card { padding: 14px 8px; }
  .featured-post { padding: 11px 4px; font-size: 1rem; }
  .cookie-modal-content { padding: 20px 8px; }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  .section, section { padding: 11px 3px; }
  .content-wrapper { gap: 8px; }
  footer { padding: 14px 0 10px 0; }
}

/* ====================== FORMATTING MISCELLANEOUS ==================== */
::-webkit-scrollbar { width: 8px; background: #141e29; }
::-webkit-scrollbar-thumb { background: #24364b; border-radius: 30px; }

hr {
  border: none;
  border-top: 1px solid #233141;
  margin: 30px 0;
}

/* ====================== MICROINTERACTIONS & ANIMATIONS =============== */
.cta-primary, .cta-secondary, .main-nav a, .footer-nav a, .badge, .mobile-nav a, .card, .blog-list article, .cookie-banner button, .mobile-menu-toggle, .mobile-menu-close {
  transition: box-shadow 0.16s, background 0.16s, color 0.16s, border 0.16s;
}

.card:active, .blog-list article:active {
  transform: scale(0.98);
}

.cta-primary:active, .cta-secondary:active {
  transform: scale(0.99);
}

/* ====================== Z-INDEX SYSTEM ======================== */
header { z-index: 100; }
.mobile-menu { z-index: 3050; }
.mobile-menu-toggle { z-index: 3001; }
.cookie-banner { z-index: 4001; }
#cookie-modal { z-index: 4100; }
footer { z-index: 50; }

/* ======================== SPACING & GAP ENFORCEMENT ==================== */
.card-container, .content-grid, .blog-list, .feature-list, .footer-nav, .footer-contact,
.text-image-section,
.cookie-actions, .cookie-modal-actions {
  gap: 20px;
}
.card, .testimonial-card, .feature-item, .blog-list article, .instructor-profile {
  margin-bottom: 20px;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ============== ACCESSIBILITY: FOCUS STATES ================ */
*:focus-visible {
  outline: 2.5px solid #E6A634;
  outline-offset: 1px;
  z-index: 10 !important;
}

/* End CSS */
