/* Dazzle Academy – Tech Futuristic CSS Theme (Flexbox-Only) */

/* ========================
   CSS RESET & NORMALIZATION
=========================== */
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 {
  height: 100%;
  font-size: 16px;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #121A26;
  color: #F2F6F9;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  vertical-align: middle;
}
a {
  color: #28A39A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #28A39A;
}
strong {
  font-weight: 600;
}

/* ========================
   VARIABLES
=========================== */
:root {
  --primary: #194660;
  --secondary: #28A39A;
  --accent: #F2F6F9;
  --bg-dark: #121A26;
  --bg-card: #182438;
  --text-light: #F2F6F9;
  --text-dark: #182438;
  --neon: #09FBD3;
  --shadow: 0 4px 32px 0 rgba(40, 163, 154, 0.08);
  --radius: 16px;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --transition: 0.24s cubic-bezier(.4,0,.2,1);
  --font-heading: 'Montserrat', 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

@font-face {
  font-family: 'Montserrat';
  font-weight: 700;
  font-style: normal;
  src: local('Montserrat Bold'),
       url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');
}
@font-face {
  font-family: 'Roboto';
  font-weight: 400;
  font-style: normal;
  src: local('Roboto Regular'),
       url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');
}


/* ========================
   GLOBAL TYPOGRAPHY & LAYOUT
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-light);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.18;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-light);
}
ul, ol {
  padding-left: 24px;
}
ul li, ol li {
  margin-bottom: 8px;
}
.subtitle {
  font-size: 1.25rem;
  color: var(--neon);
  margin-bottom: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ========================
   CONTAINER & SECTION SPACING
=========================== */
.container {
  max-width: 1232px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* ========================
   HEADER
=========================== */
header {
  background: var(--bg-dark);
  box-shadow: 0 2px 12px 0 rgba(16,32,64,0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1006;
}
header > a img {
  height: 46px;
}
header nav {
  display: flex;
  gap: 32px;
  margin-left: 34px;
}
header nav a {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  transition: background 0.2s, color var(--transition);
}
header nav a:hover,
header nav a:focus {
  color: var(--neon);
  background: rgba(40,163,154,0.12);
  text-shadow: 0 0 2px var(--neon);
}
.cta-button {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 30px;
  color: #121A26;
  background: linear-gradient(90deg, #28A39A 40%, #09FBD3 100%);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px 0 rgba(9,251,211,0.10);
  cursor: pointer;
  text-shadow: 0 0 6px rgba(9,251,211,0.16);
  margin-left: 32px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform 0.16s;
  position: relative;
  overflow: hidden;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #09FBD3 0%, #28A39A 70%);
  color: #121A26;
  box-shadow: 0 0 16px 4px rgba(9,251,211,0.22), 0 2px 18px rgba(9,251,211,0.12);
  transform: translateY(-1px) scale(1.035);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--neon);
  font-size: 2rem;
  margin-left: 16px;
  cursor: pointer;
  z-index: 1012;
  transition: color var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--neon);
}

/* ========================
   MOBILE MENU STYLES
=========================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18,26,38,0.98);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.59,.04,.19,1.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 3000;
  box-shadow: 0 4px 32px 0 rgba(16,32,64,0.19);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  color: var(--neon);
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 3006;
}
.mobile-nav {
  margin-top: 90px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 36px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: var(--font-heading);
  padding: 16px 0;
  color: var(--neon);
  border-bottom: 1px solid rgba(40,163,154,0.09);
  transition: color var(--transition);
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #fff;
  text-shadow: 0 0 6px var(--neon);
}

@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 18px;
  }
  .cta-button {
    margin-left: 12px;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header {
    padding: 8px 0;
  }
  .container {
    padding: 0 12px;
  }
}

/* ========================
   HERO SECTION
=========================== */
.hero {
  min-height: 360px;
  background: linear-gradient(90deg, #194660 50%, #28A39A 130%);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .container {
  flex: 1;
  align-items: stretch;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 700px;
  gap: 18px;
}
.hero h1 {
  color: var(--accent);
  text-shadow: 0 1px 24px var(--neon), 0 0 2px rgba(40,163,154,0.08);
}
.hero .cta-button {
  margin-top: 24px;
  font-size: 1.20rem;
}

@media (max-width: 768px) {
  .hero {
    min-height: 240px;
    border-radius: 0 0 var(--radius-xs) var(--radius-xs);
    margin-bottom: 28px;
  }
  .hero .container {
    padding: 0 8px;
  }
  .hero .content-wrapper {
    gap: 12px;
  }
}

/* ========================
   FLEXBOX CARD & FEATURE DISPLAYS
=========================== */
.feature-grid, .service-cards, .benefits-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 16px;
  margin-bottom: 12px;
}
.feature-grid > div, .service-cards > div, .benefits-icons > div {
  flex: 1 1 280px;
  min-width: 235px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 26px 22px 26px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition), transform 0.19s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1.5px solid rgba(40,163,154,0.06);
}
.feature-grid > div img, .benefits-icons > div img {
  height: 48px;
  filter: drop-shadow(0 1px 10px var(--neon));
  margin-bottom: 2px;
}
.feature-grid > div:hover, .service-cards > div:hover, .benefits-icons > div:hover {
  box-shadow: 0 4px 42px 0 rgba(9,251,211,0.15);
  border-color: var(--neon);
  transform: translateY(-5px) scale(1.025);
}

@media (max-width: 900px) {
  .feature-grid, .service-cards, .benefits-icons {
    gap: 18px;
  }
  .feature-grid > div, .service-cards > div, .benefits-icons > div {
    padding: 18px 12px 12px 12px;
    min-width: 140px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .service-cards, .benefits-icons {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .service-cards > div, .benefits-icons > div {
    min-width: 90%;
    width: 100%;
  }
}

/* ========================
   TESTIMONIALS
=========================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #F2F6F9;
  color: #182438;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 24px 0 rgba(25,70,96,0.10);
  padding: 24px 28px 20px 32px;
  margin-bottom: 22px;
  min-width: 230px;
  max-width: 500px;
  position: relative;
  transition: box-shadow var(--transition), transform 0.19s;
  overflow: hidden;
}
.testimonial-card:after {
  content: '';
  position: absolute;
  top: -24px; right: -24px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(40,163,154,0.14) 70%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 12px;
  z-index: 2;
  position: relative;
}
.testimonial-card:hover {
  box-shadow: 0 8px 40px 0 rgba(9,251,211,0.16);
  transform: scale(1.017);
}

/* Ensure contrast & large font for testimonials */
.testimonial-card p {
  color: #182438;
  font-size: 1.1rem;
  font-weight: 500;
  z-index: 2;
  position: relative;
}

@media (max-width: 768px) {
  .testimonial-card {
    max-width: 100vw;
    padding: 16px 10px 16px 16px;
  }
}

/* ========================
   GENERIC CARD STYLES
=========================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  transition: box-shadow var(--transition), transform 0.19s;
}
.card:hover {
  box-shadow: 0 8px 20px 0 rgba(9,251,211,0.13);
  transform: translateY(-3px) scale(1.02);
}

/* ========================
   FEATURE/CONTENT LAYOUTS
=========================== */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* ========================
   BUTTONS & MICROINTERACTIONS
=========================== */
button, .cta-button {
  outline: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform 0.14s;
}
button:active, .cta-button:active {
  box-shadow: 0 0 6px var(--neon);
  transform: scale(0.98);
}

/* ========================
   FORMS (Future Proofing)
=========================== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius-xs);
  border: 1.5px solid #28A39A;
  background: #172235;
  color: var(--text-light);
  padding: 12px;
  margin-bottom: 12px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--neon);
  box-shadow: 0 0 6px var(--neon);
  outline: none;
}
label {
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

/* ========================
   FOOTER
=========================== */
footer {
  background: #172235;
  color: #F2F6F9;
  border-top: 2px solid #28A39A;
  padding: 32px 0 14px 0;
  margin-top: 72px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
footer nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}
footer nav a {
  color: #28A39A;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition);
  padding: 3px 6px;
  border-radius: var(--radius-xs);
}
footer nav a:hover,
footer nav a:focus {
  color: #fff;
  background: rgba(9,251,211,0.10);
}
.brand-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.brand-info img {
  height: 42px;
  margin-bottom: 5px;
}
footer span {
  display: block;
  color: #B3CBD8;
}
@media (max-width: 768px) {
  footer .container {
    gap: 16px;
    padding: 0 6px;
  }
  .brand-info img {
    height: 32px;
  }
}

/* ========================
   COOKIE CONSENT BANNER
=========================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 28px 12px 17px 18px;
  box-shadow: 0 -6px 38px 0 rgba(25,70,96,0.15);
  z-index: 4200;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  flex-wrap: wrap;
  animation: slide-up-cookie 0.64s ease;
}
@keyframes slide-up-cookie {
  0% {
    transform: translateY(120%);
    opacity: 0.12;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 8px 20px;
  font-size: 1rem;
  border-radius: var(--radius-xs);
  border: none;
  margin: 0 2px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.cookie-accept {
  background: linear-gradient(90deg,#28A39A,#09FBD3);
  color: #121A26;
  box-shadow: 0 2px 8px rgba(9,251,211,0.09);
}
.cookie-accept:hover, .cookie-accept:focus {
  background: linear-gradient(90deg,#09FBD3,#28A39A);
  color: #121A26;
  box-shadow: 0 0 24px rgba(9,251,211,0.17);
}
.cookie-reject {
  background: transparent;
  color: #28A39A; 
  border: 1.5px solid #28A39A;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #28A39A;
  color: #121A26;
}
.cookie-settings {
  background: transparent;
  color: #09FBD3;
  border: 1.5px dashed #09FBD3;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #09FBD3;
  color: #182438;
  border-style: solid;
}

/* =============
   COOKIE MODAL
================ */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 4250;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(18,26,38,0.81);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open {
  display: flex;
  animation: fadeIn .44s ease;
}
@keyframes fadeIn {
  0% { opacity: 0.07; }
  80% { opacity: 1; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px 22px 38px;
  max-width: 410px;
  width: 94vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: var(--neon);
  font-size: 1.7rem;
  cursor: pointer;
  z-index: 4300;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-category input[type=checkbox] {
  width: 22px;
  height: 22px;
  accent-color: #09FBD3;
  margin-right: 6px;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0;
}
.cookie-category-essential {
  opacity: 0.68;
}

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 22px 10px 18px 10px;
    max-width: 98vw;
    gap: 14px;
  }
}

/* ========================
   RESPONSIVE HEADINGS
=========================== */
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.21rem; }
}

/* ========================
   TABLES (For Policy Pages)
=========================== */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  background: #1c2941;
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td {
  padding: 16px 18px;
  border-bottom: 1px solid #28A39A22;
  color: var(--text-light);
  text-align: left;
}
th {
  background: #194660;
  color: #F2F6F9;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}

/* ========================
   MISC UTILITY CLASSES
=========================== */
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.flex-row { display: flex; flex-direction: row; gap: 16px; }
.flex-col { display: flex; flex-direction: column; gap: 16px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }
.gap-32 { gap: 32px; }

/* ========================
   SCROLLBAR (Futuristic Look)
=========================== */
::-webkit-scrollbar {
  width: 10px;
  background: #1f304b;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg,#28A39A,#09FBD3 90%);
  border-radius: 8px;
}

/* ========================
   ANIMATIONS
=========================== */
@keyframes fade-in {
  0% { opacity: 0; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pop {
  0% { transform: scale(0.95); }
  80% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/*********************
 * END OF THEME CSS  *
 *********************/