/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Alegreya Sans', sans-serif;
    background-color: #E8E8E8;
    color: #3A3238;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    position: static;
    margin: 40px 50px 0 50px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

/* Logo */
.logo-main {
    position: relative;
    display: flex;
    align-items: center;
    padding: 3px 15px;
}

.logo-text {
    font-weight: 500;
    font-size: 40px;
    line-height: 48px;
    color: #3A3238;
}

.logo-symbol {
    position: absolute;
    width: 32px;
    height: 15px;
    left: 192px;
    top: -3px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    margin-left: 10px;
    gap: 10px;
}

.nav-link {
    font-weight: 500;
    font-size: 40px;
    line-height: 48px;
    color: #3A3238;
    padding: 3px 15px;
    transition: background 0.1s ease-out, color 0.1s ease-out;
}

.nav-link:hover {
    background: #3A3238;
    color: #fff;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0;
}

.lang-link {
    font-weight: 400;
    font-size: 32px;
    line-height: 38px;
    color: #3A3238;
    padding: 8px 10px;
    transition: background 0.1s ease-out, color 0.1s ease-out;
}

.lang-link:hover {
  background: #3A3238;
  color: #fff;
}

.lang-link.active {
    text-decoration: underline;
}

/* Cards Section */
.cards-section {
    position: static;
    margin-top: 40px;
    margin-left: 0px;
    margin-right: 0px;
    overflow: visible;
}

.cards-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 20px;
    padding-left: 60px;
    padding-right: 60px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.cards-scroll::-webkit-scrollbar {
    height: 0;
    display: none;
}

.cards-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Card */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 320px;
    min-width: 320px;
    flex-shrink: 0;
    height: 460px;
    background: #F5E3E0;
    border: 2px solid rgba(58, 50, 56, 0.5);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25), 0px 4px 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Card Title Section */
.card-title {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 18px 30px;
    width: 320px;
    height: 230px;
}

.card-title-text {
    width: 260px;
    height: 192px;
    font-family: 'Noto Sans Display', sans-serif;
    font-weight: 500;
    font-size: 64px;
    line-height: 100%;
    font-variation-settings: 'wdth' 100;
    color: #3A3238;
    margin: 0;
}

/* Card Buttons Section */
.card-buttons {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px 0px;
    gap: 0px;
    width: 320px;
    height: 230px;
}


.card-button-blur {
    position: absolute;
    left: 50%;
    bottom: -15px; 
    transform: translateX(-50%);
    width: 140px;
    height: 10px;
    background: rgba(58, 50, 56, 1);
    border-radius: 50%;
    filter: none; 
    box-shadow: 0 0 140px 120px rgba(58, 50, 56, 1);
    z-index: 0;
    pointer-events: none;
}


.card-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 190px;
    height: 44px;
    font-family: 'Noto Sans Display', sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 32px;
    line-height: 44px;
    font-variation-settings: 'wdth' 87.5;
    text-align: center;
    color: #FFFFFF;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1;
    position: relative;
    transition: background 0.1s ease-out, color 0.1s ease-out;
}

.card-button:hover {
    background: #fff;
    color: #3A3238;
}

/* Multi-button variant for type-2 cards */
.card-button-multi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0px;
    width: 260px;
    height: 44px;
    font-family: 'Noto Sans Display', sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 32px;
    line-height: 44px;
    font-variation-settings: 'wdth' 87.5;
    text-align: left;
    color: #FFFFFF;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1;
    position: relative;
    transition: background 0.1s ease-out, color 0.1s ease-out;
    overflow: visible;
}

.card-button-multi::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
    transition: background 0.1s ease-out, width 0.1s ease-out;
    pointer-events: none;
}

.card-button-multi:hover {
    background: #fff;
    color: #3A3238;
}

.card-button-multi:hover::before {
    background: #fff;
    width: 109%;
}

.card-button-multi > * {
    position: relative;
    z-index: 1;
}

.card-button-multi:hover .button-arrow {
    color: #3A3238;
}

.button-arrow {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: #fff;
    transition: color 0.1s ease-out;
}

/* Adjust blur for type-2 cards */
.card-type-2 .card-button-blur {
    position: absolute;
    left: 50%;
    bottom: 80px; 
    transform: translateX(-50%);
    width: 140px;
    height: 0px;
    background: rgba(58, 50, 56, 1);
    border-radius: 50%;
    filter: none; 
    box-shadow: 0 0 140px 120px rgba(58, 50, 56, 1);
    z-index: 0;
    pointer-events: none;
}

.gradient-adhd {
  background: radial-gradient(130% 40% at 15% 58%, #CA3600 9.19%, #8704C8 44.47%, #018EBC 78.46%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.gradient-autism {
  background: radial-gradient(80% 40% at 90% 50%, #BF4300 20.54%, #A48814 47.29%, #00800A 68%, #0052A3 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.mission-section {
    margin-top: 40px;
    background: #3A3238;
    color: #fff;
    padding: 32px 0;
}

.mission-title-text {
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 160%;
    text-align: left;
    margin-left: 60px;
}

.mission-paragraph-text {
    font-family: "Noto Sans", sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 150%;
    text-align: left;
    margin-left: 62px;
}

.humans-vector {
    display: flex;
    justify-content: left;
    margin-left: 60px;
    align-items: flex-start;
}

.humans-image {
    width: auto;
    height: auto;
}

.stat-section {
    display: flex;
    align-items: center;
    margin-top: 60px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    margin-right: 60px;
}

.stat-text {
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 700;
    font-size: 128px;
    text-align: right;
    margin-top: -40px;
}

.stat-subtitle {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 500;
    font-size: 32px;
    text-align: right;
    margin-top: -10px;
}

.stat-source-link {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 500;
    font-size: 26px;
    text-align: right;
}

.reassurance-section {
    margin-top: 120px;
    margin-bottom: 120px;
    align-items: center;
}

.reassurance-text {
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 96px;
    text-align: center;
    color: #3A3238;
}

.sources-section {
    margin-top: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.sources-title {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 500;
    font-size: 20px;
    text-align: left;
    margin-left: 60px;
    margin-bottom: 10px;
}

.sources-item {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 500;
    font-size: 20px;
    text-align: left;
    margin-left: 60px;
    margin-right: 60px;
    margin-bottom: 10px;
}

.footer {
    align-items: left;
    background: #3A3238;
    padding: 32px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 100%;
  gap: 40px;
}

.footer-col {
  color: #fff;
  font-family: 'Noto Sans', sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.footer-col-left {
  margin-left: 60px;
}

.footer-col-center {
  flex: 1;
  text-align: left;
  padding: 0 20px;
}

.footer-col-right {
  text-align: right;
  margin-right: 60px;
}

.footer-link {
  color: #fff;
  text-decoration: underline;
  font-size: 20px;
  font-weight: 500;
}

.stat-subtitle sup {
    vertical-align: baseline;
    position: relative;
    top: -0.5em;
    line-height: 0;
}