.hero-section {
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    color: var(--color-surface);
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(100px, -100px);
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 200px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: #fbbf24;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.95;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    max-width: 600px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.breadcrumb {
    background: white;
    padding-bottom: 20px;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.8s ease;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: #718096;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

@media (hover: hover) {
    .breadcrumb-link:hover {
        color: #4fd1c7;
        text-decoration: none;
    }

    .breadcrumb-list:hover .breadcrumb-link:not(:hover) {
        color: #a0aec0;
        transition: color 0.2s ease;
    }

    .breadcrumb-list:hover .breadcrumb-link:hover {
        color: #4fd1c7;
    }
}

.breadcrumb-link:active {
    color: #4fd1c7;
    transform: scale(0.98);
}

.breadcrumb-link:focus {
    outline: none;
    color: #4fd1c7;
}

.breadcrumb-current {
    color: #2d3748;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.breadcrumb-separator {
    color: black;
    font-size: 0.9rem;
    font-weight: 300;
    user-select: none;
    margin: 0 4px;
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 15px 0;
        font-size: 0.9rem;
    }

    .breadcrumb-container {
        padding: 0 15px;
    }

    .breadcrumb-list {
        gap: 8px;
    }

    .breadcrumb-separator {
        margin: 0 2px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.85rem;
    }

    .breadcrumb:has(.breadcrumb-item:nth-child(4)) .breadcrumb-item:nth-child(3):not(:nth-last-child(2))::before {
        content: "...";
        color: #cbd5e0;
        margin-right: 8px;
    }
}

.breadcrumb {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-section {
    padding: 20px 0 50px;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-accent-2), var(--color-accent-3));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 30px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: "";
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-right-color: white;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
    color: var(--color-surface);
    box-shadow: 0 8px 20px var(--accent-2-03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 2;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.timeline-text {
    color: #4a5568;
    line-height: 1.7;
    font-size: clamp(16px, 2vw, 20px);
}

.audience-section {
    padding-top: 50px;
    background: var(--color-bg-light-start);
    position: relative;
    overflow: visible;
}

.audience-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.audience-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 209, 199, 0.1);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: flex-start;
    max-width: 900px;
    width: 100%;
}

@media (hover: hover) {
    .audience-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        border-color: #4fd1c7;
    }
}

.audience-card:active {
    transform: translateY(-5px) scale(0.98);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #4fd1c7;
}

.audience-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.audience-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4fd1c7, #38b2ac);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 25px rgba(79, 209, 199, 0.3);
    flex-shrink: 0;
}

.audience-content {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
}

.audience-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}

.audience-description {
    color: #4a5568;
    line-height: 1.7;
    text-align: left;
    font-size: clamp(16px, 2vw, 20px);
}

.audience-illustration {
    /* keep centered but allow a small visual overlap with footer */
    display: flex;
    justify-content: center;
    position: relative;
    bottom: -8px;         /* slight vertical offset */
    margin-bottom: -36px; /* pull illustration down so footer can cover its bottom part */
    width: 100%;
     /* keep full width image handling */
     width: 100%;
 }

 .audience-illustration img {
    width: 600px;
     height: auto;
     object-fit: contain;
     filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
     z-index: 0; /* ensure image is behind footer when footer z-index is higher */
 }

 /* Mobile: reduce overlap so illustration doesn't cover content */
 @media (max-width: 768px) {
    .audience-illustration {
        margin-top: 40px;
        margin-bottom: -18px; /* milder pull on mobile */
    }

    .audience-illustration img {
        width: 320px;
        height: 320px;
        z-index: 0;
    }
 }

 /* Extra-small screens: further reduce overlap */
 @media (max-width: 360px) {
    .audience-illustration {
        margin-top: 30px;
        margin-bottom: -12px;
    }

    .audience-illustration img {
        width: 280px;
        height: 280px;
        z-index: 0;
    }
 }
 
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background-color: #38b2ac;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

#backToTop.hide {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .timeline-content {
        margin-left: 40px;
        margin-right: 0;
    }

    .timeline-content::before {
        left: -15px !important;
        right: auto !important;
        border-left-color: transparent !important;
        border-right-color: white !important;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        left: 0;
        transform: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .audience-grid {
        display: flex;
        justify-content: center;
        flex-direction: column;
        padding-left: 0;
        padding-top: 0;
    }

    .audience-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 25px;
        gap: 20px;
        margin-bottom: 40px;
    }

    .audience-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin: 0 auto 12px;
    }

    .audience-content {
        align-items: center;
    }

    .audience-description {
        text-align: center;
    }

    .audience-illustration {
        margin-top: 40px;
    }

    .audience-illustration img {
        width: 320px;
        height: 320px;
    }

    .audience-title {
        font-size: 1.3rem;
    }

    .audience-header {
        margin-bottom: 20px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Fixed dark theme transitions for hero section */
body.dark-theme .hero-section::before {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .hero-section::after {
    background: rgba(255, 255, 255, 0.02);
}

body.dark-theme .hero-section {
    color: var(--color-surface);
}

body.dark-theme .hero-title {
    color: var(--color-surface);
}

body.dark-theme .hero-section .highlight {
    color: #fbbf24;
}

/* Fixed hero description and stat label colors in dark theme - changed from black to light colors */
body.dark-theme .hero-description {
    color: #f7fafc;
    opacity: 0.9;
}

body.dark-theme .stat-label {
    color: #e2e8f0;
    opacity: 0.85;
}

body.dark-theme .stat-number {
    color: var(--color-surface);
}

/* Fixed breadcrumb dark theme colors */
body.dark-theme .breadcrumb {
    background: #111827;
}

body.dark-theme .breadcrumb-current {
    color: #f7fafc;
}

body.dark-theme .breadcrumb-separator {
    color: #4a5568;
}

/* Fixed timeline section dark theme */
body.dark-theme .timeline-section {
    background: #111827;
}

body.dark-theme .section-title {
    color: #f7fafc;
}

body.dark-theme .section-subtitle {
    color: #a0aec0;
}

body.dark-theme .timeline-content {
    background: #1c1f24;
    border: 1px solid #2d3748;
}

body.dark-theme .timeline-item:nth-child(odd) .timeline-content::before {
    border-left-color: #1c1f24;
}

body.dark-theme .timeline-item:nth-child(even) .timeline-content::before {
    border-right-color: #1c1f24;
}

body.dark-theme .timeline-title {
    color: #f7fafc;
}

body.dark-theme .timeline-text {
    color: #a0aec0;
}

body.dark-theme .timeline-icon {
    color: #111827;
}

/* Fixed audience section dark theme */
body.dark-theme .audience-section {
    background: #0f2d2b;
}

body.dark-theme .audience-card {
    background: #1c1f24;
    border: 1px solid #2d3748;
}

@media (hover: hover) {
    body.dark-theme .audience-card:hover {
        background: #111827;
        border-color: #4fd1c7;
    }

    body.dark-theme .audience-card:hover .audience-icon {
        color: #111827;
    }
}

body.dark-theme .audience-card:active {
    background: #111827;
    border-color: #4fd1c7;
}

body.dark-theme .audience-card:active .audience-icon {
    color: #111827;
}

body.dark-theme .audience-icon {
    color: #1c1f24;
}

body.dark-theme .audience-title {
    color: #f7fafc;
}

body.dark-theme .audience-description {
    color: #a0aec0;
}

/* Added dark theme styles for illustration */
body.dark-theme .audience-illustration img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)) brightness(0.95);
}

@media (max-width: 768px) {
    body.dark-theme .timeline-content::before {
        border-right-color: #1c1f24 !important;
        border-left-color: transparent !important;
    }
}

.hero-section a:focus-visible,
.breadcrumb-link:focus-visible,
.audience-card:focus-visible,
#backToTop:focus-visible {
    outline: 2px solid #4fd1c7;
    outline-offset: 4px;
    border-radius: 8px;
}

.timeline-content:focus-visible {
    outline: 2px solid #4fd1c7;
    outline-offset: 6px;
    border-radius: 12px;
}

@media (max-width: 360px) {
    .hero-section {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline-content {
        padding: 20px 15px;
        margin-left: 60px;
    }

    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .audience-card {
        padding: 25px 20px;
        margin-bottom: 30px;
    }

    .audience-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .audience-title {
        font-size: 1.2rem;
    }

    .audience-header {
        margin-bottom: 15px;
    }

    .audience-illustration {
        margin-top: 30px;
        margin-bottom: -12px;
    }

    .audience-illustration img {
        width: 280px;
        height: 280px;
        z-index: 0;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .timeline-section {
        padding: 0 0 40px;
    }

    .audience-section {
        padding: 30px 0 40px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .audience-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        -webkit-tap-highlight-color: rgba(79, 209, 199, 0.3);
        tap-highlight-color: rgba(79, 209, 199, 0.3);
    }

    .breadcrumb-link {
        padding: 8px 4px;
        margin: -8px -4px;
    }

    .timeline-content {
        min-height: 44px;
    }

    #backToTop {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (prefers-contrast: high) {
    .hero-section {
        background: linear-gradient(135deg, #2d3748, #1a202c);
    }

    .hero-title .highlight {
        color: #fbbf24;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }

    .audience-card {
        border: 2px solid #2d3748;
    }

    @media (hover: hover) {
        .audience-card:hover {
            border-color: #4fd1c7;
            border-width: 3px;
        }
    }

    .timeline-content {
        border: 2px solid #e2e8f0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-content,
    .scroll-reveal,
    .audience-card,
    .timeline-content,
    #backToTop {
        animation: none !important;
        transition: none !important;
    }

    @media (hover: hover) {
        .audience-card:hover {
            transform: none;
        }
    }

    .hero-section::before,
    .hero-section::after {
        animation: none;
    }
}

@media print {
    .hero-section {
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }

    .hero-section::before,
    .hero-section::after,
    #backToTop {
        display: none;
    }

    .hero-title .highlight {
        color: black !important;
        font-weight: 900;
    }

    .breadcrumb {
        display: none;
    }

    .timeline::before {
        background: #000 !important;
    }

    .timeline-icon {
        background: white !important;
        border: 2px solid black !important;
        color: black !important;
    }

    .audience-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    .audience-icon {
        background: white !important;
        border: 2px solid black !important;
        color: black !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        padding: 70px 0 50px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .audience-grid {
        /* Maintain centered layout on tablets */
        display: flex;
        justify-content: flex-start;
        padding-left: 3%;
    }

    .audience-card {
        /* Adjusted card layout for tablets */
        gap: 25px;
        max-width: 750px;
    }

    /* Added tablet-specific illustration positioning */
    .audience-illustration {
        margin-top: 60px;
    }

    .audience-illustration img {
        width: 480px;
        height: 480px;
    }

    .timeline-content {
        padding: 30px 25px;
    }
}

body.dark-theme .hero-section a:focus-visible,
body.dark-theme .breadcrumb-link:focus-visible,
body.dark-theme .audience-card:focus-visible,
body.dark-theme .timeline-content:focus-visible {
    outline-color: #4fd1c7;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-content.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.stat-number {
    transition: color 0.3s ease;
}

@media (hover: hover) {
    .stat-item:hover .stat-number {
        color: #fbbf24;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .timeline-section {
        padding: 0 0 60px;
    }

    .audience-section {
        padding: 40px 0 80px;
    }
}

/* Added smooth theme color transition */
body.theme-color-transition *,
body.theme-color-transition *::before,
body.theme-color-transition *::after {
    transition-property: color, background-color, border-color, box-shadow, outline-color, fill, stroke;
    transition-duration: 240ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {

    body.theme-color-transition *,
    body.theme-color-transition *::before,
    body.theme-color-transition *::after {
        transition: none !important;
    }
}

/* Added extra small screen adjustments for illustration */
@media (max-width: 360px) {
    .hero-section {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline-content {
        padding: 20px 15px;
        margin-left: 60px;
    }

    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .audience-card {
        padding: 25px 20px;
        /* Small mobile: increase bottom margin */
        margin-bottom: 30px;
    }

    .audience-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .audience-title {
        font-size: 1.2rem;
    }

    .audience-header {
        margin-bottom: 15px;
    }

    .audience-illustration {
        margin-top: 30px;
        margin-bottom: -12px;
    }

    .audience-illustration img {
        width: 280px;
        height: 280px;
        z-index: 0;
    }
}