/* =========================================================
   GLOSSA CLEAN AKADEMIE - TECH FUTURISTIC THEME (FLEXBOX ONLY)
   ---------------------------------------------------------
   Colors:
     Primary (deep blue):      #21354C
     Secondary (light gray):   #F5F5F5
     Accent (futuristic gold): #D6AB29
   Fonts:
     Display:   Montserrat
     Body:      Roboto
   ======================================================== */

/* =========================
   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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #131e2e;
  color: #F5F5F5;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: #D6AB29;
  background: none;
  text-decoration: none;
  transition: color .2s cubic-bezier(.4,1,.3,1);
}
a:focus, a:hover {
  color: #fff89f;
  outline: none;
}
::-moz-selection {
  background: #D6AB29;
  color: #21354C;
}
::selection {
  background: #D6AB29;
  color: #21354C;
}

/* =========================
   TYPOGRAPHY - FUTURISTIC
   ========================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Roboto:400,500&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #F5F5F5;
  letter-spacing: 1.2px;
  line-height: 1.15;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #D6AB29;
}
h4 { font-size: 1.1rem; }
p, ul, dl, li, dd, dt, span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.65;
  color: #E4E9F4;
}
p {
  margin-bottom: 1.5em;
}
strong {
  color: #fff;
  font-weight: 700;
}
.text-section p:last-child {
  margin-bottom: 0;
}

/* =========================
   LAYOUT - CONTAINER & FLEX
   ========================= */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(20,30,55, 0.96);
  border-radius: 26px;
  box-shadow: 0 8px 28px rgba(30, 60, 110, 0.16), 0 1.5px 2.5px rgba(36,30,60,0.03);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #1b233b;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(16,32,48, 0.16);
  padding: 32px 24px;
  transition: transform .22s, box-shadow .22s;
  border: 1.5px solid #2b3f66;
  min-width: 275px;
  flex: 1 1 min(320px, 100%);
}
.card:hover {
  box-shadow: 0 4px 24px #D6AB291f, 0 6px 20px #23397433;
  transform: translateY(-3px) scale(1.018);
}
.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;
  background: #faf9ff;
  color: #21354C !important;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px #C8D1E733;
  border-left: 4px solid #D6AB29;
  position: relative;
  font-size: 1.1rem;
}
.testimonial-card strong,
.testimonial-card p,
.testimonial-card {
  color: #21354C !important;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

ul, ol {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}
ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px; 
  color: #BFCBE4;
  font-size: 1rem;
  line-height: 1.6;
}
ul li img {
  margin-left: 10px;
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
ul li:before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  position: absolute;
  left: 0; top: 6px;
  background: #D6AB29;
  border-radius: 3px;
  box-shadow: 0 0 6px #D6AB29cc; 
}

/* =========================
   BUTTONS & LINKS
   ========================= */
.button, button, .mobile-menu-toggle, .mobile-menu-close {
  appearance: none;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  padding: 12px 32px;
  font-size: 1.07rem;
  transition: background .18s, color .18s, box-shadow .22s, border .19s;
  margin-top: 12px;
  display: inline-block;
  text-align: center;
  outline: none;
  box-shadow: 0 2px 10px rgba(214, 171, 41, 0.08);
}
.button.primary {
  background: #D6AB29;
  color: #21354C;
  box-shadow: 0 0 8px #D6AB29cc;
}
.button.primary:hover, .button.primary:focus {
  background: #FFC800;
  color: #161831;
  box-shadow: 0 2px 16px #D6AB29cc;
}
.button.secondary {
  background: #233972;
  color: #FFD564;
  border: 1.2px solid #D6AB29;
}
.button.secondary:hover, .button.secondary:focus {
  background: #212A58;
  color: #F4D56A;
  border-color: #FFD564;
}
.button:active {
  transform: scale(.97);
}
nav a {
  padding: 0 14px;
  color: #BFCBE4;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.045em;
  transition: color .17s;
}
nav a:hover, nav a:focus, nav a.active {
  color: #D6AB29;
}


/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  width: 100%;
  background: #192338e6;
  box-shadow: 0 2px 15px rgba(33,53,76,.07);
  border-bottom: 1.5px solid #22314d69;
  z-index: 100;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 20px;
  gap: 22px;
  position: relative;
}
header img {
  width: 122px;
  height: auto;
  margin-right: 22px;
  flex-shrink: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 1;
}
header .button.primary {
  margin-left: 24px;
  min-width: unset;
  min-height: 48px;
}

/* Hamburger menu toggle: visible on mobile, hidden on desktop */
.mobile-menu-toggle {
  display: none;
  background: #D6AB29;
  color: #21354C;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 2rem;
  margin-left: 18px;
  line-height: 1.1;
  z-index: 101;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #FFD564;
  color: #2e2e31;
}
/* =========================
   MOBILE MENU OVERLAY
   ========================= */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #21354Cd7;
  backdrop-filter: blur(5px);
  box-shadow: 0 16px 40px #0a142522;
  transform: translateX(-100vw);
  transition: transform .4s cubic-bezier(.77,0,.18,1);
  z-index: 1020;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 14px 0;
  background: transparent;
  color: #D6AB29;
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  transition: color .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFD564;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 18px 36px;
  width: 100%;
  margin-top: 28px;
}
.mobile-nav a {
  color: #FFD564;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  padding: 10px 0;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-decoration: none;
  display: block;
  border-radius: 6px;
  transition: background .15s, color .14s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #353c53;
  color: #fff;
}

/* =========================
   MAIN, SECTIONS, CARDS
   ========================= */
main {
  flex: 1;
  width: 100%;
  background: linear-gradient(120deg, #151B29 0%, #202C49 100%);
  box-shadow: 0 4px 32px #23233c11;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.text-section {
  padding: 18px 0;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #18213a;
  color: #C7CFDE;
  padding: 24px 0 0 0;
  border-top: 2.5px solid #1e213b;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-height: 86px;
  padding: 0 20px 0 20px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
footer nav a {
  color: #FFD564;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.017em;
  transition: color .15s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
}
footer .text-section p {
  font-size: 0.98rem;
  color: #B4B8CC;
  margin: 0;
}

/* =========================
   DL/DT/DD FAQ SECTIONS
   ========================= */
dl {
  margin: 0;
}
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #D6AB29;
  margin-top: 28px;
  margin-bottom: 3px;
  font-size: 1.16rem;
}
dd {
  margin-bottom: 14px;
  color: #E6EAF4;
  margin-left: 0.4em;
  font-size: 1rem;
}

/* =========================
   COOKIE CONSENT BANNER/MODAL
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #191e2d;
  color: #F5F5F5;
  padding: 20px 8px 20px 16px;
  border-top: 2px solid #D6AB29;
  box-shadow: 0 -2px 24px #0004,
              0 -1.5px 5px #D6AB2922;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  z-index: 11000;
  font-size: 1rem;
  opacity: 1;
  pointer-events: all;
  transition: transform .22s, opacity .19s;
}
.cookie-banner.closed {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-btn {
  margin-left: 0;
  min-width: 130px;
  font-size: 1rem;
  background: #D6AB29;
  color: #21354C;
  border: none;
  border-radius: 7px;
  padding: 10px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-right: 16px;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.cookie-banner .cookie-btn.settings {
  background: #21354C;
  color: #FFD564;
  border: 1px solid #FFD564;
}
.cookie-banner .cookie-btn:hover, 
.cookie-banner .cookie-btn:focus {
  background: #FFD564;
  color: #21354C;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus  {
  background: #FFD564;
  color: #21354C;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,33,53,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 21000;
  opacity: 1;
  pointer-events: all;
  transition: opacity .21s;
}
.cookie-modal-overlay.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #232947;
  border-radius: 22px;
  box-shadow: 0 14px 64px #18222fbf, 0 2px 14px #D6AB291f;
  max-width: 370px;
  width: 97%;
  padding: 32px 26px 22px 26px;
  color: #F5F5F5;
  display: flex;
  flex-direction: column;
  gap: 19px;
  font-family: 'Roboto', Arial, sans-serif;
  position: relative;
}
.cookie-modal h3 {
  color: #D6AB29;
  margin: 0 0 6px 0;
  font-size: 1.34rem;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cookie-category label {
  flex: 1;
  font-size: 1.01rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #D6AB29;
  width: 20px;
  height: 20px;
  margin-right: 8px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 13px; right: 18px;
  background: transparent;
  color: #FFD564;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal .close-modal:hover {
  color: #D6AB29;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 32px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  background: #D6AB29;
  color: #21354C;
  border: none;
  border-radius: 7px;
  padding: 10px 17px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.cookie-modal .cookie-btn.settings {
  background: #21354C;
  color: #FFD564;
  border: 1px solid #FFD564;
}
.cookie-modal .cookie-btn:hover,
.cookie-modal .cookie-btn:focus {
  background: #FFD564;
  color: #21354C;
}

.cookie-modal .cookie-category input[disabled] {
  opacity: .56;
  pointer-events: none;
}
.cookie-modal small {
  color: #D3D8EA;
  font-size: .96rem;
  opacity: .84;
}

/* =========================
   FORM ELEMENTS (for contact)
   ========================= */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  background: #181D2F;
  color: #F5F5F5;
  border: 1.5px solid #2a3c58;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 1.05rem;
  margin-bottom: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  transition: border .15s, box-shadow .15s;
}
input:focus, textarea:focus {
  border-color: #D6AB29;
  box-shadow: 0 0 4px #D6AB29aa;
  outline: none;
}

/* =========================
   ANIMATIONS / MICRO-INTERACTIONS
   ========================= */
.button, button, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn {
  transition: background .18s, color .18s, box-shadow .22s, border .19s, transform .16s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 32px #D6AB297c, 0 8px 22px #2339743b;
  transform: translateY(-4px) scale(1.02);
  border-color: #D6AB29;
}
.mobile-menu {
  transition: transform .35s cubic-bezier(.7,.27,.16,1);
}

/* =========================
   MEDIA QUERIES & RESPONSIVENESS
   ========================= */
@media (max-width: 1150px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 970px)  {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.62rem; }
}
@media (max-width: 860px) {
  .container { padding: 0 10px; }
  header .container { gap: 12px; }
  footer .container { gap: 14px; }
}
@media (max-width: 768px) {
  header .container { flex-direction: row; align-items: center; }
  header nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
  .button.primary, .button.secondary { min-width: 0; width: 100%; padding: 13px 0; }
  .card-container, .content-grid, .text-image-section { flex-direction: column; gap: 18px; }
  footer .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section, section { padding: 32px 10px; }
  h1 { font-size: 1.43rem; }
  h2 { font-size: 1.15rem; }
  .testimonial-card { font-size: 1rem; padding: 18px 12px; }
}
@media (max-width: 500px) {
  main, .container, .card, .section, section {
    padding-left: 0;
    padding-right: 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: .95rem;
    padding: 18px 6px 18px 6px;
  }
}

/* =========================
   ACCESSIBILITY
   ========================= */
:focus-visible {
  outline: 2px solid #FFD564;
  outline-offset: 2px;
}

/* Ensure no flexbox children overlap on small screens */
.card-container > *, 
.content-grid > *, 
.section > *,
.content-wrapper > * {
  min-width: 0;
  flex-shrink: 1;
  margin-right: 0;
}

/* =========================
   MISC FIXES
   ========================= */
::-webkit-scrollbar-track {
  background: #1b233b;
  border-radius: 9px;
}
::-webkit-scrollbar {
  width: 10px;
  background: #151b26;
}
::-webkit-scrollbar-thumb {
  background: #D6AB292b;
  border-radius: 9px;
}

/* ===========
   END OF CSS
   ========== */
