/* ---------------- 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, menu, 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, 
main, 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;
}
bod y {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #f3f6fa;
  color: #13335c;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #1ecba8;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #13335c;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}

/* ---------------- Variables (Fallbacks included) --------------- */
:root {
  --color-primary: #13335c;
  --color-secondary: #f3f6fa;
  --color-accent: #1ecba8;
  --color-warning: #ff4c60;
  --color-success: #3bd173;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-main: 0 4px 18px 0 rgba(31, 192, 168, 0.12);
  --shadow-card: 0 2px 12px 0 rgba(19,51,92,0.11);
}

/* ------------------- Typography --------------------- */
h1, .h1 {
  font-family: var(--font-display);
  color: #13335c;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 14px;
  color: #13335c;
  line-height: 1.25;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 8px;
  letter-spacing: -0.1px;
  color: #1ecba8;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
p, ul li, ol li, span, label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: #13335c;
}
.subheadline {
  font-size: 1.2rem;
  color: #3bd173;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
strong {
  font-weight: 700;
  color: #13335c;
}
.user-name {
  font-family: var(--font-display);
  color: #13335c;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 8px;
  display: block;
}

/* ---------------- Layout Containers ----------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
}

/* ------------------- Header & Nav ------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(19, 51, 92, 0.03);
  position: sticky;
  z-index: 99;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}
.logo img {
  width: 160px;
  max-width: 100%;
  height: auto;
  transition: filter 0.2s;
}
.logo:hover img {
  filter: brightness(1.12) drop-shadow(0 0 4px #1ecba8ab);
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: #13335c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 2px;
  border-radius: 6px;
  transition: background 0.1s, color 0.12s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #1ecba8;
  color: #fff;
}

.btn-primary {
  background: #1ecba8;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px 0 rgba(30, 203, 168, 0.13);
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  margin-left: 25px;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #13335c;
  color: #fff;
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 8px 32px 0 rgba(30, 203, 168, 0.22);
}

/* Hamburger (mobile-menu-toggle) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #1ecba8;
  cursor: pointer;
  margin-left: 16px;
  transition: color 0.15s;
  z-index: 102;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #1ecba8;
}

/* -------------------- Mobile Menu -------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #13335c;
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.59,.02,.31,.98);
  box-shadow: 0 12px 40px 0 rgba(19,51,92,0.16);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #1ecba8;
  align-self: flex-end;
  margin: 32px 28px 0 0;
  cursor: pointer;
  z-index: 102;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #3bd173;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin: 50px 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  padding: 10px 4px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #1ecba8;
  color: #13335c;
}

/* ------------------- Flex Spacing Patterns ------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.14s, box-shadow 0.13s;
}
.card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 24px 0 rgba(30, 203, 168, 0.17);
}
.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: 22px 28px;
  background: #f3f6fa;
  border-radius: var(--radius-md);
  min-width: 250px;
  max-width: 480px;
  margin-bottom: 24px;
  box-shadow: 0 2px 14px 0 rgba(19,51,92,0.07);
  border: 2px solid #1ecba84d;
  font-size: 1.09rem;
}
.testimonial-card p {
  color: #13335c;
  font-weight: 600;
}
.testimonial-card .user-name {
  color: #3bd173;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid li {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 36px 26px;
  min-width: 210px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.14s;
}
.feature-grid li:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px 0 rgba(30, 203, 168, 0.21);
}

/* ---- Team, Trend, Guide, Report, Tips, Webinar lists ---- */
.team-list, .trend-list, .guide-list, .report-list, .tips-grid, .webinar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.team-list li, .trend-list li, .guide-list li, .report-list li, .tips-grid li, .webinar-list li {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 26px 20px;
  min-width: 200px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  transition: box-shadow 0.12s, transform 0.13s;
  position: relative;
}
.team-list li strong, .webinar-list strong, .guide-list h3, .trend-list h3, .report-list h3 {
  color: #13335c;
}
.team-list li span {
  color: #1ecba8;
}
.trend-list li a, .guide-list li a, .report-list li a {
  color: #1ecba8;
  font-weight: 700;
  margin-top: 10px;
  display: inline-block;
  transition: color 0.13s;
}
.trend-list li a:hover,
.trend-list li a:focus,
.guide-list li a:hover,
.guide-list li a:focus,
.report-list li a:hover,
.report-list li a:focus {
  color: #13335c;
  text-decoration: underline;
}
.webinar-list .btn-primary {
  margin-left: 0;
  margin-top: 18px;
}

.tips-grid li {
  border-left: 4px solid #1ecba8;
  background: #f3f6fa;
  color: #13335c;
}

.success-case {
  background: #fff;
  border-left: 6px solid #3bd173;
  border-radius: var(--radius-md);
  padding: 26px 34px;
  margin-top: 20px;
  box-shadow: var(--shadow-main);
  color: #13335c;
}

/* ------------------- Footer --------------------- */
footer {
  background: #13335c;
  color: #fff;
  padding: 40px 0 10px 0;
  margin-top: 50px;
}
footer .container {
  flex-wrap: wrap;
  flex-direction: row;
  gap: 38px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img {
  width: 130px;
  filter: brightness(1.4);
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a,
.footer-legal a {
  color: #1ecba8;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 5px;
  transition: color 0.12s;
}
.footer-nav a:hover,.footer-legal a:hover {
  text-decoration: underline;
  color: #3bd173;
}
.footer-contact {
  color: #fff;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact img {
  width: 17px;
  margin-right: 7px;
}
.social-links {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}
.social-links a img {
  width: 34px;
  transition: transform 0.15s;
}
.social-links a:hover img {
  transform: scale(1.2) rotate(-7deg);
  filter: drop-shadow(0 0 8px #1ecba8ad);
}

/* ----------------- Cookie Consent Banner --------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #fff;
  box-shadow: 0 -2px 12px 0 rgba(19, 51, 92, 0.10);
  border-top: 4px solid #1ecba8;
  padding: 24px 18px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-body);
  transition: transform 0.34s cubic-bezier(.44,.01,.74,.99);
}
.cookie-banner.hide {
  transform: translateY(200%);
}
.cookie-banner p {
  color: #13335c;
  font-size: 1rem;
  flex: 1 1 270px;
  margin-bottom: 0;
}
.cookie-banner .cookie-btn {
  padding: 8px 22px;
  background: #1ecba8;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner .cookie-btn.settings {
  background: #13335c;
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #ff4c60;
  color: #fff;
}
.cookie-banner .cookie-btn:hover {
  filter: brightness(1.12);
}

/* Cookie Modal Overlay */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(19, 51, 92, 0.44);
  z-index: 5000;
  animation: fadeInBackdrop 0.22s;
}
@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 48px 0 rgba(19,51,92,0.18);
  z-index: 5020;
  padding: 44px 30px 28px 30px;
  min-width: 320px;
  max-width: 96vw;
  min-height: 250px;
  animation: modalIn .22s cubic-bezier(.61,-0.1,.27,1.1);
}
@keyframes modalIn {
  from { transform: translate(-50%,-65%) scale(0.84); }
  to { transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h2 {
  color: #13335c;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #13335c;
}
.cookie-category input[type="checkbox"]:disabled + label {
  color: #bbb;
}
.cookie-modal-btns {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-modal-btn {
  background: #1ecba8;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal-btn.reject {
  background: #ff4c60;
}
.cookie-modal-btn.settings {
  background: #13335c;
}
.cookie-modal-btn:hover, .cookie-modal-btn:focus {
  filter: brightness(1.1);
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 1.8rem;
  color: #1ecba8;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.14s;
  z-index: 3;
}
.cookie-modal-close:hover {
  color: #ff4c60;
}

/* -------------------- Misc Utility ------------------- */
hr {
  border: 0;
  border-top: 2px solid #f3f6fa;
  margin: 32px 0;
}
::-webkit-scrollbar {
  width: 12px;
  background: #e5f6f4;
}
::-webkit-scrollbar-thumb {
  background: #1ecba8;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #13335c;
}

/* -------------- Responsive Breakpoints --------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 95vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.33rem;
  }
  .container, .footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .btn-primary {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }
  .footer-logo {
    margin-bottom: 12px;
  }
  .footer-contact {
    margin-bottom: 16px;
  }
  .feature-grid, .card-container, .content-grid, .team-list, .trend-list, .guide-list, .report-list, .tips-grid, .webinar-list {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature-grid li, .card, .team-list li, .trend-list li, .guide-list li, .report-list li, .tips-grid li, .webinar-list li {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: unset;
    padding: 16px 12px;
  }
  .section {
    padding: 24px 6px;
    margin-bottom: 38px;
  }
  .cookie-modal {
    min-width: 92vw;
    padding: 28px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 6px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  h1, .h1 {
    font-size: 1.33rem;
  }
  h2, .h2 {
    font-size: 1.07rem;
  }
  .section {
    margin-bottom: 22px;
    padding: 14px 2px;
    border-radius: 10px;
  }
  .feature-grid li, .card, .team-list li, .trend-list li, .guide-list li, .report-list li, .tips-grid li, .webinar-list li {
    padding: 14px 7px;
    border-radius: 6px;
  }
}
