/* =======================================================
   PLAYFUL_DYNAMIC STYLE FOR CAPTRIX WAGES
   Responsive, bright, energetic & modern look
   Flexbox-only for all layouts - NO CSS GRID/COLUMNS
   By Senior CSS Developer & UI Designer
   ======================================================= */

/* ----------------- 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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F7FA;
  color: #232E4A;
  min-height: 100vh;
  text-size-adjust: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img, picture, video, canvas, svg {
  display: block; max-width: 100%; height: auto;
}
a {
  text-decoration: none;
  color: #F7B012;
  transition: color 0.2s cubic-bezier(.67,.13,.1,.81);
}
a:hover, a:focus {
  color: #232E4A;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
}
ul, ol {list-style: none;}

/* =========== BRAND COLOR SYSTEM ============= */
:root {
  --brand-primary: #232E4A;
  --brand-secondary: #F5F7FA;
  --brand-accent: #F7B012;
  --blue-1: #41B9FE;
  --pink-1: #FF7CA6;
  --green-1: #37EB93;
  --purple-1: #A367F9;
  --grey-1: #D6D8DB;
  --grey-2: #5A6282;
  --white: #ffffff;
}

/* =========== TYPOGRAPHY ============= */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: var(--brand-secondary);
}
h1, .display {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 2.5rem;
  color: var(--brand-primary);
  letter-spacing: -0.5px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--blue-1);
  letter-spacing: -0.3px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.375rem;
  color: var(--purple-1);
  margin-bottom: 8px;
  font-weight: 600;
}
h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  color: var(--brand-accent);
  font-weight: bold;
  margin-bottom: 8px;
}
.hero-tagline, .section .hero-tagline {
  font-size: 1.2rem;
  margin: 12px 0 24px 0;
  color: var(--grey-2);
  font-weight: 500;
}
p, li, span, strong, .author {
  font-size: 1rem;
  color: var(--brand-primary);
}
blockquote {
  font-style: italic;
  font-size: 1.1rem;
  background: var(--blue-1);
  color: #fff;
  border-radius: 14px;
  padding: 20px 28px;
  margin-bottom: 8px;
  box-shadow: 0 1px 6px 0 #a5defd7e;
}
blockquote strong {
  font-weight: bold;
}

/* Playful fun font accents (headers, buttons, cta) */
.cta-main, .cta-nav, .cta-btn, button, .newsletter-benefits ul li:before {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

/* =========== HEADER & NAVIGATION ============= */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 3px 24px 0 #f7b01222;
  z-index: 120;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-size: 1rem;
  color: var(--brand-primary);
  padding: 6px 12px 6px 12px;
  border-radius: 8px;
  transition: background 0.19s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--blue-1);
  color: #fff;
}
.cta-nav {
  background: var(--brand-accent);
  color: var(--brand-primary) !important;
  border-radius: 24px;
  padding: 8px 20px;
  margin-left: 16px;
  font-weight: bold;
  box-shadow: 0 2px 12px 0 #f7b01233;
}
.cta-nav:hover, .cta-nav:focus {
  background: var(--purple-1);
  color: #fff !important;
  box-shadow: 0 2px 24px 2px #a367f985;
}
header img {
  height: 44px;
  width: auto;
}

/* ------------ MOBILE MENU ------------ */
.mobile-menu-toggle {
  display: none;
  background: var(--blue-1);
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.18s, transform 0.25s;
  margin-left: 18px;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  transform: scale(1.08) rotate(-7deg);
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: var(--white);
  z-index: 2500;
  box-shadow: 0 4px 32px 6px #232e4a28;
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(.72,-0.08,.43,1.09);
  display: flex; flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--brand-primary);
  font-size: 2.3rem;
  border: none;
  align-self: flex-end;
  margin: 14px 18px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 40px 0 0 28px;
}
.mobile-nav a {
  font-size: 1.2rem;
  padding: 10px 0 10px 8px;
  color: var(--brand-primary);
  border-radius: 14px;
  min-width: 180px;
  transition: background 0.17s, color 0.21s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: var(--brand-accent);
}

@media (max-width: 1024px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* =========== LAYOUT SECTIONS, SPACING & FLEX ============= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .news-highlights-grid, .feature-grid, .analysis-teasers, .topics-grid, .analysis-grid, .interviews-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 24px 0 #41b9fe27;
  margin-bottom: 20px;
  padding: 32px 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.21s;
}
.card:hover, .analysis-card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 36px 2px #f7b01233;
  transform: translateY(-6px) scale(1.021);
}
.analysis-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 18px 0 #a367f933;
  padding: 24px 24px 20px 24px;
  margin-bottom: 20px;
  min-width: 250px;
  flex: 1 1 260px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.21s;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive Section Spacing */
@media (max-width: 900px) {
  section, .section {
    padding: 32px 10px 32px 10px;
  }
  .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .content-grid, .card-container, .feature-grid, .news-highlights-grid, .topics-grid, .analysis-grid, .interviews-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
  header .container {
    min-height: 56px;
    gap: 6px;
  }
}

/* =========== CARDS, TAGS, ACCENTS ============= */
.news-highlights-grid article, .analysis-teasers article, .interviews-grid article, .topics-grid > div {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 #f7b01219;
  padding: 26px 18px 18px 24px;
  flex: 1 1 260px;
  transition: box-shadow 0.16s, transform 0.18s;
  margin-bottom: 20px;
  position: relative;
}
.news-highlights-grid article:hover, .analysis-teasers article:hover, .interviews-grid article:hover {
  box-shadow: 0 6px 36px 2px #41b9fe38;
  transform: scale(1.018);
}
.featured-article, .market-news-highlight, .featured-trends, .latest-articles {
  background: var(--blue-1);
  border-radius: 20px 8px 24px 20px;
  color: #fff;
  padding: 20px 30px;
  margin: 18px 0 14px 0;
  box-shadow: 0 0px 12px 0 #41b9fe42;
  font-size: 1.06rem;
  position: relative;
}
.featured-article h4, .market-news-highlight h3, .featured-trends strong {
  color: var(--brand-accent);
  margin-bottom: 2px;
}
.tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--brand-accent);
  color: var(--brand-primary);
  font-size: .93rem;
  border-radius: 18px;
  margin-top: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px #f7b0123a;
}
.author {
  display: block;
  color: var(--blue-1);
  font-size: .95rem;
  margin: 10px 0 8px 0;
  font-weight: bold;
}
.highlighted-quote {
  background: var(--brand-accent);
  color: var(--brand-primary);
  padding: 16px 18px;
  border-radius: 16px;
  font-style: italic;
  font-size: 1.02rem;
  margin-top: 16px;
}

/* ====== Newsletter benefits playful marks ====== */
.newsletter-benefits ul {
  margin: 0 0 22px 0;
  padding: 0;
  list-style: none;
}
.newsletter-benefits ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 16px;
  font-size: 1.04rem;
  color: var(--brand-primary);
}
.newsletter-benefits ul li:before {
  content: '✱';
  color: var(--pink-1);
  font-size: 1.2em;
  position: absolute;
  left: 0; top: 1px;
  text-shadow: 1px 1px 0 var(--blue-1);
}

/* =========== BUTTONS & CTAs ============= */
.cta-main, .cta-btn, button[type="submit"], form button {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand-accent) 85%, var(--pink-1) 100%);
  color: var(--brand-primary) !important;
  font-size: 1.14rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  border: none;
  border-radius: 28px;
  padding: 12px 28px;
  margin-top: 8px;
  box-shadow: 0 2px 20px 0 #f7b01239;
  cursor: pointer;
  transition: background 0.16s, color 0.18s, transform 0.19s;
  letter-spacing: 0.5px;
}
.cta-main:hover, .cta-btn:hover, button[type="submit"]:hover {
  background: linear-gradient(90deg, var(--blue-1) 80%, var(--brand-active, var(--brand-primary)) 100%);
  color: #fff !important;
  transform: scale(1.04);
}
button:active {
  transform: scale(0.96) rotate(-2deg);
}

/* =========== FORM & INPUTS ============= */
input[type=email], input[type=text], input, textarea {
  border-radius: 14px;
  border: 2px solid var(--grey-1);
  padding: 10px 16px;
  font-size: 1rem;
  background: #fff;
  color: var(--brand-primary);
  margin-right: 10px;
  margin-bottom: 12px;
  transition: border-color 0.13s, box-shadow 0.15s;
}
input[type=email]:focus, input[type=text]:focus, textarea:focus {
  border: 2px solid var(--blue-1);
  box-shadow: 0 1px 8px #41b9fe3a;
}
form button[type=submit] {
  margin-bottom: 0;
}

/* =========== TABLE ============= */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 14px 0 #41b9fe22;
  overflow: hidden;
}
thead {
  background: var(--brand-accent);
}
th, td {
  padding: 16px 18px;
  text-align: left;
  font-size: 1rem;
}
th {
  color: var(--brand-primary);
  font-weight: bold;
}
tbody tr { border-bottom: 3px solid var(--grey-1);}
tr:last-child {border-bottom: none;}
tr:nth-child(even) {background: #faf0e1;}
table caption {
  caption-side: top;
  text-align: left;
  font-size: 1.2rem;
  color: var(--blue-1);
  margin-bottom: 10px;
}

/* =========== PAGINATION ============= */
.pagination {
  display: flex;
  gap: 14px;
  margin: 16px 0 0 0;
  align-items: center;
}
.pagination a, .pagination span {
  display: block;
  padding: 7px 18px;
  border-radius: 22px;
  background: var(--brand-accent);
  color: var(--brand-primary);
  font-weight: bold;
  margin-top: 0;
  font-size: 1.1rem;
  transition: background 0.16s, color 0.18s, transform 0.19s;
}
.pagination a:hover, .pagination a:focus {
  background: var(--blue-1);
  color: #fff;
  transform: scale(1.08);
}
.pagination span {
  background: var(--blue-1);
  color: #fff;
}

/* =========== FOOTER ============= */
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 34px 0 12px 0;
  width: 100%;
  box-shadow: 0 -2px 24px 0 #41b9fe16;
  font-size: 0.98rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand img {
  height: 48px;
  margin-bottom: 4px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--brand-accent);
  font-size: 1em;
  text-decoration: underline;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {color: #fff;}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.99em;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 8px;
  vertical-align: middle;
}
.footer-contact span {
  vertical-align: middle;
  margin-bottom: 2px;
  display: inline-block;
}
@media (max-width: 940px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-brand img {margin-bottom: 8px;}
}

/* =========== FILTERS, LISTS ============= */
.tags-filter, .topics-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 20px 0;
  align-items: center;
}
.tags-filter strong, .topics-filter strong {
  color: var(--brand-accent);
  font-weight: bold;
  font-size: 1.06em;
}
.tags-filter span, .topics-filter span {
  background: var(--purple-1);
  color: #fff;
  border-radius: 16px;
  padding: 6px 16px;
  font-size: 1em;
  font-weight: 500;
  margin-right: 3px;
  margin-top: 3px;
}
.topics-filter span {
  background: var(--brand-accent);
  color: var(--brand-primary);
  margin-top: 4px;
}

/* =========== TESTIMONIALS & REVIEWS ============= */
.testimonials, .testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.testimonials {
  flex-direction: column;
  gap: 28px;
}
.testimonial-card {
  background: #fff;
  color: var(--brand-primary);
  border-radius: 24px;
  box-shadow: 0 2px 20px 0 #232e4a13;
  margin-bottom: 20px;
  min-width: 240px;
  font-size: 1.13em;
  transition: box-shadow 0.16s, transform 0.18s;
}
.testimonial-card blockquote {
  background: none;
  color: var(--brand-primary);
  font-style: normal;
  padding: 0;
  margin: 0 0 8px 0;
  box-shadow: none;
  border-radius: 0;
}
.testimonial-card strong {
  color: var(--blue-1);
  display: block;
  margin-top: 8px;
  font-weight: bold;
}
@media (max-width: 748px) {
  .testimonial-card, .testimonials {
    flex-direction: column;
    gap: 14px;
  }
}

/* =========== MISC ELEMENTS ============= */
.disclaimer {
  background: var(--grey-1);
  color: var(--brand-primary);
  border-radius: 12px;
  padding: 12px 18px;
  margin-top: 17px;
  font-size: 1em;
  opacity: 0.93;
}
.integrity-highlight {
  background: var(--green-1);
  color: #fff;
  font-weight: bold;
  border-radius: 16px;
  padding: 8px 16px;
  margin: 16px auto 18px auto;
  text-align: center;
  font-size: 1.12rem;
  box-shadow: 0 1px 10px 0 #37eb936c;
}

/* =========== COOKIE CONSENT BANNER & MODAL ============= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 4000;
  background: var(--brand-primary);
  color: #fff;
  padding: 22px 12px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  box-shadow: 0 -4px 40px 0 #232e4a21;
  animation: cookiePopIn 0.7s cubic-bezier(.56,-0.01,.4,1.02);
}
@keyframes cookiePopIn {
  from {transform: translateY(120%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner .cookie-msg {
  max-width: 380px;
  font-size: 1.07em;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner button,
.cookie-banner .cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 22px;
  border: none;
  padding: 9px 22px;
  margin: 0 0 0 0;
  box-shadow: 0 2px 10px 0 #f7b01222;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s, transform 0.13s;
  cursor: pointer;
}
.cookie-banner .accept {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.cookie-banner .accept:hover {
  background: var(--green-1);
  color: #fff;
}
.cookie-banner .reject {
  background: var(--white);
  color: var(--brand-primary);
}
.cookie-banner .reject:hover {
  background: var(--pink-1);
  color: #fff;
}
.cookie-banner .settings {
  background: var(--blue-1);
  color: #fff;
}
.cookie-banner .settings:hover {
  background: var(--brand-accent);
  color: var(--brand-primary);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  z-index: 5000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(35,46,74,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  color: var(--brand-primary);
  border-radius: 32px;
  max-width: 420px;
  width: 96vw;
  padding: 38px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: modalShow 0.37s cubic-bezier(.6,.06,.34,.91) both;
  box-shadow: 0 10px 45px 0 #232e4a3f;
}
@keyframes modalShow {
  from { transform: scale(0.89) translateY(50px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--blue-1);
  font-size: 1.45em;
  margin: 0 0 14px 0;
  letter-spacing: 0.1px;
}
.cookie-list {
  margin: 0 0 24px 0;
  padding: 0 0 4px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 10px 0 10px 0;
}
.cookie-category .cookie-switch {
  position: relative;
  display: inline-block;
  width: 42px; height: 22px;
}
/* Switch styling */
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--grey-1);
  border-radius: 22px;
  transition: background 0.23s;
}
.cookie-switch input:checked + .slider {
  background-color: var(--blue-1);
}
.cookie-switch .slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 2px; bottom: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px 0 #232e4a20;
  transition: transform 0.23s;
}
.cookie-switch input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .modal-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 22px;
  border: none;
  padding: 9px 22px;
  background: var(--brand-accent);
  color: var(--brand-primary);
  margin-left: 0;
  box-shadow: 0 2px 10px 0 #f7b01222;
  transition: background 0.17s, color 0.19s, box-shadow 0.15s, transform 0.12s;
  cursor: pointer;
}
.cookie-modal .modal-actions button:hover {
  background: var(--blue-1);
  color: #fff;
}
@media (max-width: 550px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 17px 4px 15px 8px;
  }
  .cookie-banner .cookie-actions {
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .cookie-modal .cookie-modal-content {
    padding: 22px 8px 14px 8px;
    max-width: 98vw;
  }
}

/* =========== PLAYFUL DECORATIVE EFFECTS ============= */
/* Bouncy micro-interactions on various buttons */
button:active, .cta-main:active, .cta-nav:active {
  transform: scale(0.97) rotate(-3deg);
}

/* Add subtle playful hover-underline for nav & CTAs */
nav a, .footer-nav a {
  position: relative;
  overflow: hidden;
}
nav a:after, .footer-nav a:after {
  content: "";
  position: absolute;
  left: 14%; right: 14%; bottom: 6px;
  height: 2px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(.8,0,.22,1);
}
nav a:hover:after, nav a:focus:after, .footer-nav a:hover:after, .footer-nav a:focus:after {
  transform: scaleX(1);
}

/* Playful section background waves (decorative) */
section:nth-child(2n) {
  background: #FFF8E5;
  box-shadow: 0 3px 28px #f7b01217;
  border-radius: 0 0 36px 36px / 0 0 24px 48px;
}

/* Animated tag wiggle on hover for fun */
.tag:hover {
  animation: tag-wiggle 0.37s cubic-bezier(.64,.04,.23,1.09);
}
@keyframes tag-wiggle {
  0%{transform:rotate(-4deg)}
  20%{transform:rotate(4deg)}
  40%{transform:rotate(-2deg)}
  60%{transform:rotate(3deg)}
  80%{transform:rotate(-1deg)}
  100%{transform:rotate(0)}
}

/* =========== ACCESSIBILITY: FOCUS STYLES ============= */
a:focus, button:focus, .cta-main:focus, input:focus, select:focus, textarea:focus {
  outline: 2px dashed var(--purple-1);
  outline-offset: 2px;
}

/* =========== RESPONSIVE IMAGES & FLEX SHRINK AVOIDANCE ============= */
img, .footer-brand img, .footer-contact img, .feature-grid img {
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}

/* =========== MOBILE LAYOUT OVERRIDES ============= */
@media (max-width: 600px) {
  h1, .display {font-size: 2rem;}
  h2 {font-size: 1.45rem;}
  h3 {font-size: 1.2rem;}
  .container {padding: 0 6px;}
  .card, .analysis-card, .featured-article, .market-news-highlight {
    padding: 15px 7px 15px 11px;
    border-radius: 16px;
  }
  section, .section {padding: 18px 1px; margin-bottom: 32px;}
  .featured-article, .market-news-highlight {padding: 12px 7px;}
  .testimonial-card {padding: 13px;}
}

/* =========== FLEX UTILITIES ============= */
.flex {display: flex;}
.flex-col {flex-direction: column;}
.flex-row {flex-direction: row;}
.flex-center {align-items: center; justify-content: center;}
.flex-between {justify-content: space-between;}

/* ================= END OF STYLE =================== */
