/* CSS Variables */
:root {
    --primary-color: #4DB748;
    --primary-hover: #3da038;
    --text-color: #14354D;
    --accent-color: #3794AA;
    --bg-dark: #595959;
    --bg-light: #f5f5f5;
    --white: #fff;
    --transition: all 0.3s ease;
    --container-width: 75rem; /* 1200px */
    --header-height: 5rem; /* 80px */
    
    /* Standardized Breakpoints */
    --breakpoint-xs: 480px;   /* Mobile */
    --breakpoint-sm: 768px;   /* Tablet */
    --breakpoint-md: 1024px;  /* Small Desktop */
    --breakpoint-lg: 1200px;  /* Large Desktop */
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
    --shadow-md: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 0.375rem 1rem rgba(0, 0, 0, 0.2);
}

/* Base responsive adjustments */
@media (max-width: var(--breakpoint-lg)) {
    :root {
        --container-width: 90%;
    }
}

@media (max-width: var(--breakpoint-md)) {
    :root {
        --spacing-xl: 2.5rem;
    }
}

@media (max-width: var(--breakpoint-sm)) {
    :root {
        --spacing-xs: 0.375rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1.25rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --header-height: 4rem;
    }
}

@media (max-width: var(--breakpoint-xs)) {
    :root {
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.5rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.25rem;
        --spacing-xl: 1.5rem;
        --header-height: 3.5rem;
    }
}

/* Update all media queries to use standardized breakpoints */
@media (max-width: var(--breakpoint-lg)) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

@media (max-width: var(--breakpoint-md)) {
    nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media (max-width: var(--breakpoint-sm)) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }

    .hero-text {
        width: 100%;
        text-align: center;
    }

    .hero-middle {
        width: 100%;
    }
}

@media (max-width: var(--breakpoint-xs)) {
    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: var(--header-height);
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

html, body {
    overscroll-behavior: none;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Add touch-action to interactive elements */
.button,
.sign-in-btn,
.mobile-sign-in-btn,
.see-app-btn,
.submit-btn,
.tab-button,
.science-tab-button,
.prev-quote,
.next-quote,
.prev-video,
.next-video,
.quote-dot,
.video-dot,
.close-popup,
.leader-button,
.hamburger,
nav a,
.mobile-menu a,
.footer-nav a,
.footer-links a,
.app-download-link,
.mobile-app-download-link,
.prev-thumbnail,
.next-thumbnail,
.flip-tile,
.play-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: var(--header-height);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h2 {
    line-height: 1.1;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    transition: var(--transition);
    z-index: 1000;
}

header.scrolled {
    background: var(--bg-dark);
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.2);
}

/* Logo styles */
.logo {
    height: 2.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.logo-white { display: none; }
.logo-color { display: inline-block; }

header.scrolled .logo-white { display: inline-block; }
header.scrolled .logo-color { display: none; }

/* Navigation styles */
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
    max-width: 100%;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: normal;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

nav a:hover {
    color: #50C0CC;
    transform: translateY(-0.3125rem);
}

header.scrolled nav a {
    color: var(--white);
}

header.scrolled nav a:hover {
    color: #50C0CC;
}

/* Button base styles */
.button,
.sign-in-btn,
.mobile-sign-in-btn,
.see-app-btn,
.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0.25rem;
    padding: 0.625rem 1.5625rem;
    font-weight: normal;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
}

/* Simple darkening hover effect for buttons */
.button:hover,
.sign-in-btn:hover,
.mobile-sign-in-btn:hover,
.see-app-btn:hover,
.submit-btn:hover {
    background-color: var(--primary-hover);
}

/* Mobile menu specific button styles */
.mobile-sign-in-btn {
    margin: 1.25rem 0;
}

.mobile-menu a.mobile-sign-in-btn {
    border-bottom: none;
}

/* Submit button specific styles */
.submit-btn {
    margin: 1rem auto;
    display: block;
    min-width: 12.5rem;
}

/* App download link styles */
.app-download-link,
.mobile-app-download-link {
    display: inline-block;
    margin-left: 1rem;
    transition: var(--transition);
    padding: 0;
    border-radius: 0.25rem;
}

.app-download-link:hover,
.mobile-app-download-link:hover {
    transform: none;
    border: none;
}

.app-download-link img,
.mobile-app-download-link img {
    height: 3.125rem;
    vertical-align: middle;
    transition: var(--transition);
    border: none;
}

.app-download-link:hover img,
.mobile-app-download-link:hover img {
    border: none;
}

/* Mobile menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 1.875rem;
    height: 1.3125rem;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    display: block;
    height: 0.1875rem;
    width: 100%;
    background-color: #333333;
    border-radius: 0.1875rem;
    transition: var(--transition);
}

header.scrolled .hamburger span {
    background-color: var(--white);
}

.hamburger.active span:nth-child(1) { transform: translateY(0.5625rem) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-0.5625rem) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    padding: 6.25rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -0.3125rem 0 0.9375rem rgba(0, 0, 0, 0.2);
    text-align: center;
}

.mobile-menu.active { 
    right: 0; 
}

.mobile-menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem 0;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    text-align: center;
}

.mobile-menu a:hover { 
    color: #9BE1E1; 
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu-copyright {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white) !important;
    font-size: 0.8rem !important;
    text-align: center;
}

.mobile-menu-copyright p {
    color: var(--white) !important;
    font-size: 0.8rem !important;
    margin: 0;
}

/* Mobile subnav styles */
.mobile-subnav {
    display: none;
    padding-left: 1rem;
    margin: 0.5rem 0;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-subnav.active {
    display: block;
}

.mobile-subnav a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: none;
    text-align: center;
}

.mobile-subnav a:hover {
    color: #9BE1E1;
}

/* Menu divider */
.menu-divider {
    height: 0.0625rem;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Remove border from Science link */
.mobile-menu a[href="intervention.html"] {
    border-bottom: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-subnav {
        display: none;
    }
    
    .mobile-subnav.active {
        display: block;
    }
    
    .nav-dropdown {
        display: none;
    }
}


/* Hero section styles */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height));
    background-color: var(--white);
}

.hero-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15rem;
    background: url('images/heroBackgroundHome.jpg') no-repeat center bottom;
    background-size: cover;
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    padding-top: 8rem;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.hero-text {
    width: 40%;
    padding-left: 2rem;
    padding-top: 2px;
    position: relative;
    z-index: 3;
}

.hero-text h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    padding-top: 1rem;
}

.hero-text p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-middle {
    width: 60%;
    height: 100%;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.hero-phone {
    height: auto;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: -84px;
}

/* Content section styles */
.content {
    padding: 4rem 0 6rem;
    background-color: var(--white);
}

.headlines-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    max-width: var(--container-width);
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.left-headline {
    flex: 0 0 33.33%;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

.right-headline {
    display: none;
}

@media (min-width: 769px) {
    .right-headline {
        display: block;
        flex: 0 0 66.67%;
        text-align: center;
        margin: 0;
        line-height: 1.2;
    }
    
    .mobile-headline {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-headline {
        display: block;
        text-align: center;
        margin: 2rem 0;
    }
}

.content .container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.content h2 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin: 3rem 0 3rem;
    text-align: center;
}

.content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.columns-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.left-column-group,
.right-column-group {
    display: flex;
    gap: 2rem;
}

.right-column-group {
    flex: 2;
}

.left-column-group {
    flex: 1;
}

.column {
    flex: 1;
    text-align: center;
    position: relative;
}

.left-column-group .column::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    width: 1px;
    border-right: 2px dashed var(--accent-color);
    opacity: 0.5;
}

.right-column-group .column::after {
    display: none;
}

.progress-circle {
    width: 12rem;
    height: 12rem;
    margin: 0 auto 2rem;
    position: relative;
}

.progress-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.column p {
    font-size: 1.15rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 12.5rem;
    margin: 0 auto;
}

/* Video section styles */
.video_section {
    padding: 6rem 0;
    background-color: #595959;
    overflow: hidden;
}

.video_section .container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.video_section .text-column {
    flex: 0 0 40%;
}

.video_section .video-column {
    flex: 0 0 60%;
}

.video_section .video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.video_section .video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
}

@media (max-width: 1024px) {
    .video_section {
        padding: 4rem 0;
    }

    .video_section .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 0 2rem;
    }

    .video_section .text-column,
    .video_section .video-column {
        flex: 0 0 100%;
        width: 100%;
    }

    .video_section .text-column h2 {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .video_section {
        padding: 3rem 0;
    }

    .video_section .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .video_section .text-column,
    .video_section .video-column {
        width: 100%;
        max-width: 100%;
    }

    .video_section .text-column {
        text-align: center;
    }

    .video_section .text-column h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .video_section .video-thumbnail {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .video_section {
        padding: 2rem 0;
    }

    .video_section .container {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .video_section .text-column h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .video_section .video-thumbnail {
        border-radius: 0;
        margin: 0;
    }

    .video_section .video-thumbnail iframe {
        border-radius: 0;
    }
}

/* Common transitions */
.text-column,
.tab-button::after,
.video-thumbnail,
.play-button {
    transition: var(--transition);
}

.text-column {
    flex: 0 0 40%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2.5s ease-out, transform 2.5s ease-out;
    will-change: opacity, transform;
}

.text-column.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.text-column.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.text-column h2 {
    font-size: 2.25rem;
    color: var(--white);
    margin-bottom: 2rem;
}

.video-column {
    flex: 0 0 60%;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.9375rem 0 0.9375rem 1.5625rem;
    border-color: transparent transparent transparent #1B5177;
    margin-left: 0.3125rem;
}

.video-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Tab section styles */
.tab-section {
    padding: 4rem 0 0;
    background-color: #f5f5f5;
    width: 100%;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: auto;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 3;
}

.tab-button {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3794AA;
    transition: width 0.3s ease;
}

.tab-button:hover::after,
.tab-button.active::after {
    width: 100%;
}

.tab-button.active {
    color: #3794AA;
}

@media (max-width: var(--breakpoint-sm)) {
    .tabs {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .tab-button {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 0;
        background-color: rgba(255, 255, 255, 0.9);
        margin: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .tab-button:last-child {
        border-bottom: none;
    }

    .tab-button::after {
        display: none;
    }

    .tab-button.active {
        background-color: #3794AA;
        color: white;
        border-bottom: 1px solid #3794AA;
    }
}

.tab-content {
    display: none;
    height: auto;
    margin-bottom: 0;
    padding-bottom: 0;
    position: relative;
    z-index: 2;
}

.tab-content.active { 
    display: block; 
}

.tab-content.tab1-active {
    position: relative;
    background-color: transparent;
}

.tab-content.tab1-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/tabSectionBackground1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}

.tab-content.tab1-active .container {
    position: relative;
    z-index: 1;
    padding-bottom: 0;
}

.tab-content.tab1-active .two-column-layout {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    padding-bottom: 0;
    height: auto;
}

.two-column-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
    height: 32rem;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    padding-bottom: 0;
}

.left-column {
    flex: 0 0 40%;
    height: 100%;
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.left-column img {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    margin-bottom: 0;
}

.right-column {
    flex: 0 0 60%;
    height: 100%;
    display: flex;
    align-items: center;
}

.text-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 0.75rem;
    width: 100%;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.text-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.text-content li {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.text-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--accent-color);
    border-radius: 50%;
}

/* Footer styles */
.footer {
    background-color: #13707F;
    padding: 2rem 0 1rem;
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo {
    flex: 0 0 auto;
}

.footer-logo img {
    height: 2.5rem;
}

.footer-nav {
    display: flex;
    gap: 1rem;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.2;
}

.footer-nav a:hover {
    color: #9BE1E1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 0.5rem;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .footer-nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .footer-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
        font-size: 1rem;
    }

    .copyright {
        margin-bottom: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        gap: 0.5rem;
    }

    .footer-links a {
        font-size: 0.9375rem;
    }
}

/* Customer Stories Section */
.customer-stories {
    padding: 6rem 0;
    background-color: var(--white);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.story-card {
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.15);
}

.story-card img {
    width: 100%;
    height: 12.5rem;
    object-fit: cover;
}

.story-card h3 {
    padding: 1.5rem 1rem 0.5rem;
    color: var(--text-color);
    font-size: 1.5rem;
}

.story-card .industry {
    padding: 0 1rem;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.story-card blockquote {
    padding: 0 1rem;
    font-style: italic;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.results {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background-color: var(--bg-light);
    border-top: 0.0625rem solid rgba(0, 0, 0, 0.1);
}

.result-item {
    text-align: center;
}

.result-item .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-item .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Video Testimonials Section */
.video-testimonials {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.video-testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.video-card {
    text-align: center;
}

.video-card .video-thumbnail {
    margin-bottom: 1rem;
}

.video-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.video-card p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Hero Title Section */
.hero-title {
    padding: 4rem 0 3rem;
    text-align: center;
    background-color: var(--white);
}

.hero-title h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-title p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 37.5rem;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-text h1,
    .hero-title h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--white);
    text-align: center;
}

.contact-section h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-section .subhead {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 3rem;
}

/* Contact form styles */
.contact-form {
    max-width: 37.5rem;
    margin: 0 auto;
    text-align: left;
    font-family: 'Roboto', sans-serif;
}

.contact-form input,
.contact-form textarea,
.contact-form label,
.contact-form .char-count,
.contact-form .checkbox-group label {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #666;
}

.contact-form .checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-form .char-count {
    font-size: 0.8rem;
    color: #666;
}

.contact-form .submit-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 0.0625rem solid rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #ffffff;
}

.form-group textarea {
    height: 9.375rem;
    resize: vertical;
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.6;
    margin-top: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.checkbox-group a {
    color: var(--accent-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Screenshot section styles */
.screenshot-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.screenshot-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.screenshot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.screenshot-item {
    flex: 0 0 28%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.screenshot-item h3 {
    margin-bottom: 0.5rem;
    color: #3794AA;
}

.screenshot-item p {
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.3;
}

.screenshot-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.screenshot-item img:hover {
    transform: translateY(-8px) scale(1.03);
    filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.15));
}

/* Responsive styles */
@media (max-width: 1200px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

    .hero-text {
        max-width: 50%;
    }

    .hero-middle {
        width: 50%;
    }

    .leadership-grid,
    .board-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-subnav {
        display: none;
    }
    
    .mobile-subnav.active {
        display: block;
    }
    
    .nav-dropdown {
        display: none;
    }

    .columns-container {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .left-column-group,
    .right-column-group {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .headlines-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .left-headline,
    .right-headline {
        flex: 0 0 100%;
    }

    .right-headline {
        display: none;
    }

    .mobile-headline {
        display: block;
        text-align: center;
        margin: var(--spacing-lg) 0;
    }

    .column:first-child::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        overflow: visible;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .hero-content-wrapper {
        padding: 0;
        margin: 0;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
        width: 100%;
    }

    .hero-text {
        order: 1;
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: var(--spacing-sm);
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .hero-text p {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: var(--spacing-md);
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .hero-text .button {
        margin-bottom: 3rem;
    }

    .hero-middle {
        order: 2;
        width: 100%;
    }

    .hero-phone {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        position: relative;
        right: 0;
        transform: none;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: var(--spacing-sm);
    }

    .hero p {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: var(--spacing-md);
    }

    .app-download-link {
        margin: 0 auto;
    }

    .leadership-grid,
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .leader-image-container {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero {
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .hero-content-wrapper {
        padding: 0;
        margin: 0;
    }

    .hero-content {
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .hero-text {
        margin: 0;
        padding: 0 var(--spacing-sm);
    }

    .hero-middle {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
        position: relative;
    }

    .hero-phone {
        margin-right: -150px;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .leadership-grid,
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
}

/* Transform thumbnails into circular arrow buttons on small screens */
@media (max-width: 480px) {
    .prev-thumbnail,
    .next-thumbnail {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.9);
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
        padding: 0;
    }
    
    .prev-thumbnail img,
    .next-thumbnail img {
        display: none;
    }
    
    .thumbnail-label {
        display: none;
    }
    
    .prev-thumbnail {
        margin-left: 0;
    }
    
    .next-thumbnail {
        margin-right: 0;
    }
}

/* Fix for circular arrow buttons on small screens */
@media (max-width: 480px) {
    .video-thumbnails-nav {
        padding: 0;
        justify-content: space-between;
    }
    
    .prev-thumbnail,
    .next-thumbnail {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.9);
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
        padding: 0;
        margin: 0;
        position: relative;
    }
    
    .prev-thumbnail a,
    .next-thumbnail a {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .prev-thumbnail img,
    .next-thumbnail img,
    .thumbnail-label {
        display: none;
    }
}

/* Remove thumbnails on mobile screens */
@media (max-width: 480px) {
    .video-thumbnails-nav {
        display: none !important;
    }
    
    .video-slides {
        height: 250px;
        overflow: hidden;
    }
    
    .video-slide {
        width: 100%;
        max-width: 100%;
    }
    
    .video-slide:not(.active) {
        display: none;
    }
    
    .video-slide.active {
        transform: none;
        left: 0;
        right: 0;
        margin: 0 auto;
    }
}

.tab-section.tab1-active .left-column {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    height: 100%;
}

.tab-section.tab1-active .left-column img {
    padding: 0;
    margin: 0;
    align-self: flex-end;
    position: relative;
    bottom: 0;
    transform: none;
    max-height: 120%;
    object-fit: contain;
    margin-bottom: 0;
}

.tab-section.tab1-active .two-column-layout {
    align-items: flex-end;
    height: 100%;
}

@media (max-width: 768px) {
    .tab-section.tab1-active .left-column {
        align-items: center !important;
        justify-content: center !important;
    }
    
    .tab-section.tab1-active .left-column img {
        align-self: center;
        padding: 0;
        max-height: 100%;
    }
    
    .tab-section.tab1-active .two-column-layout {
        align-items: center;
    }
}

/* Explorations section styles */
.explorations-section {
    padding: 4rem 0;
    background-color: var(--white);
    position: relative;
}

.explorations-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/explorationsbackground.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.explorations-layout {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.explorations-headline {
    flex: 0 0 25%;
    text-align: left;
    margin-bottom: 0;
    max-width: none;
}

.explorations-headline h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.1;
}

.explorations-headline p {
    font-size: 1.125rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 1rem;
    max-width: none;
}

.flip-tiles-grid {
    flex: 0 0 75%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.flip-tile {
    perspective: 1000px;
    height: 220px;
    width: 100%;
}

.flip-tile-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-tile:hover .flip-tile-inner {
    transform: rotateY(180deg);
}

.flip-tile-front, .flip-tile-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.flip-tile-front {
    background-color: var(--white);
}

.flip-tile-back {
    background-color: #3794AA;
    color: var(--white);
    transform: rotateY(180deg);
}

.tile-icon {
    margin-bottom: 1rem;
}

.tile-icon img {
    width: 115px;
    height: 115px;
}

.flip-tile h3 {
    color: #3794AA;
    margin-bottom: 0.5rem;
}

.flip-tile-back p {
    color: var(--white);
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .explorations-layout {
        flex-direction: column;
    }
    
    .explorations-headline {
        flex: 0 0 auto;
        position: static;
        margin-bottom: 2rem;
        text-align: center;
        min-height: auto;
    }
    
    .flip-tiles-grid {
        flex: 0 0 auto;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
}

@media (max-width: 768px) {
    .flip-tiles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .flip-tile {
        height: 200px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .tile-icon img {
        width: 80px;
        height: 80px;
    }
    
    .flip-tile h3 {
        font-size: 1.25rem;
    }
    
    .flip-tile-back p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .explorations-section {
        padding: 3rem 0;
    }
    
    .explorations-headline h2 {
        font-size: 2rem;
    }
    
    .flip-tile {
        height: 180px;
    }
    
    .tile-icon img {
        width: 70px;
        height: 70px;
    }
    
    .flip-tile h3 {
        font-size: 1.1rem;
    }
    
    .flip-tile-back p {
        font-size: 1rem;
    }
}

/* Quote Carousel Section */
.quote-carousel {
    padding: 5rem 0;
    background-color: var(--bg-light);
    text-align: center;
}

.quote-carousel h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.quote-carousel .subhead {
    font-size: 1.125rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.4;
}

.quote-slides {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 0.5rem;
    height: 300px;
    overflow: hidden;
}

.quote-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    pointer-events: none;
}

.quote-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.quote-slide.prev {
    transform: translateX(-100%);
}

.quote-slide.next {
    transform: translateX(100%);
}

.quote-slide blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: #3794AA;
    line-height: 1.4;
    position: relative;
    padding: 1rem 3.5rem;
    max-width: 95%;
    margin: 0 auto;
}

.quote-slide blockquote::before,
.quote-slide blockquote::after {
    font-family: Georgia, serif;
    font-size: 6rem;
    color: rgba(55, 148, 170, 0.3);
    position: absolute;
    line-height: 1;
}

.quote-slide blockquote::before {
    content: "\201C";
    left: 0;
    top: -1rem;
}

.quote-slide blockquote::after {
    content: "\201D";
    right: 0;
    bottom: -2rem;
}

.quote-slide cite {
    display: block;
    font-size: 1.125rem;
    color: var(--accent-color);
    font-style: normal;
    font-weight: 500;
    margin-top: 1rem;
    }

.quote-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 0.5rem;
}

.quote-dots {
    display: flex;
    gap: 0.5rem;
}

.quote-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quote-dot.active {
    background-color: var(--accent-color);
}

.prev-quote,
.next-quote {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex; /* Added for centering */
    align-items: center;   /* Added for centering */
    justify-content: center; /* Added for centering */
}

.prev-quote:hover,
.next-quote:hover {
    background-color: var(--accent-color);
    color: white;
}

@media (max-width: 1024px) {
    .quote-slides {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .quote-slides {
        max-width: 600px;
        height: 220px; /* Reduced fixed height for mobile */
        margin-bottom: 0;
    }

    .quote-slide blockquote {
        max-width: 100%;
        font-size: 1.25rem;
        padding: 2rem 2rem 0.5rem;
        margin-bottom: 0;
    }

    .quote-slide blockquote::before,
    .quote-slide blockquote::after {
        font-size: 4rem;
    }

    .quote-slide blockquote::before {
        left: 0.5rem;
        top: -0.5rem;
    }

    .quote-slide blockquote::after {
        right: 0.5rem;
        bottom: -0.5rem;
    }

    .quote-navigation {
        margin-top: 0;
    }
}

/* Video Carousel Section */
.video-carousel {
    padding: 3rem 0;
    background-color: #4a4a4a;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.video-carousel .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.video-slides {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.video-slide {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: none;
}

.video-slide.active {
    display: block;
}

.video-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.video-container iframe {
    width: 100%;
    height: 56.25vw; /* 16:9 aspect ratio */
    max-height: 562.5px;
    border-radius: 0.75rem;
    margin: 0;
    padding: 0;
}

.video-slide h3 {
    color: white;
    font-size: 1.25rem;
    margin: 0.75rem 0;
    padding: 0 1rem;
}


.video-carousel h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
}

.video-navigation {
    display: flex; /* Added */
    justify-content: center; /* Added */
    align-items: center; /* Added */
    gap: 1rem; /* Added */
    margin-top: 1rem; /* Existing */
}

.video-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.video-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.video-dot.active {
    background-color: var(--accent-color);
}

.video-thumbnails-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.prev-thumbnail,
.next-thumbnail {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.prev-thumbnail a,
.next-thumbnail a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.arrow-icon {
    font-size: 1.5rem;
    color: #3794AA;
    font-weight: bold;
}

.prev-thumbnail:hover,
.next-thumbnail:hover {
    transform: scale(1.1);
    background-color: #3794AA;
}

.prev-thumbnail:hover .arrow-icon,
.next-thumbnail:hover .arrow-icon {
    color: white;
}

@media (max-width: 480px) {
    .video-thumbnails-nav {
        display: flex !important;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .prev-thumbnail,
    .next-thumbnail {
        width: 40px; /* Keep size from existing mobile rule */
        height: 40px; /* Keep size from existing mobile rule */
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.9);
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
        padding: 0;
        margin: 0; /* Reset margin if any was previously set */
        position: relative; /* Keep if needed for layout */
    }

    .prev-thumbnail a,
    .next-thumbnail a {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none; /* Ensure no underline on link */
    }

    /* Ensure arrow icons are visible and centered */
    .prev-thumbnail .arrow-icon,
    .next-thumbnail .arrow-icon {
        display: inline-flex; /* Use flex to help center SVG if needed */
        align-items: center;
        justify-content: center;
        /* Remove font-specific styles as they don't apply to SVG content directly */
        /* font-family: inherit; */
        /* font-size: 1.25rem; */
        /* font-weight: bold; */
        /* line-height: 1; */
        color: #3794AA; /* This will be inherited by SVG via fill="currentColor" */
    }
    
    .prev-thumbnail .carousel-arrow-svg,
    .next-thumbnail .carousel-arrow-svg {
        width: 1.25rem; /* Desired width for the SVG icon */
        height: 1.25rem; /* Desired height for the SVG icon */
        fill: currentColor; /* Inherits color from parent span/anchor */
    }
    
    /* Remove the CSS-generated arrows */
    .prev-thumbnail::before,
    .next-thumbnail::before,
    .prev-thumbnail a::before,
    .next-thumbnail a::before {
        content: none; /* Remove the pseudo-element content */
    }

    .prev-thumbnail img, /* Already hidden, but good to keep for clarity */
    .next-thumbnail img,
    .thumbnail-label {
        display: none;
    }
    
    .arrow-icon { /* General mobile arrow icon style, already present but ensure it's not overridden */
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .video-carousel {
        padding: 2rem 0;
    }
    
    .video-carousel h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .video-container iframe {
        height: 400px;
    }
}


/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile menu dropdown styles */
@media (max-width: 768px) {
    .nav-dropdown {
        display: block;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background-color: transparent;
    }
    
    .dropdown-content a {
        padding: 10px 20px;
        color: #fff;
    }
    
    .dropdown-content a:hover {
        background-color: rgba(255,255,255,0.1);
    }
    
    .nav-dropdown.active .dropdown-content {
        display: block;
    }
}

/* Science Hero Section */
.science-hero {
    padding: 4rem 0;
    background-color: #fff;
}

.science-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.science-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
}

.science-hero-image {
    width: 80%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .science-hero {
        padding: 2rem 0;
    }

    .science-hero h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .science-hero .container {
        padding: 0 1rem;
    }

    .science-hero-image {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .science-hero .container {
        padding: 0 1rem;
    }

    .science-hero-image {
        padding: 0 1rem;
    }
}

/* Science Tab Section */
.science-tab-section {
    background-color: #f5f5f5;
    padding: 4rem 0;
}

.science-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.science-tab-button {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.science-tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3794AA;
    transition: width 0.3s ease;
}

.science-tab-button:hover::after,
.science-tab-button.active::after {
    width: 100%;
}

.science-tab-button.active {
    color: #3794AA;
}

.science-tab-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.science-tab-content {
    display: none;
    width: 100%;
}

.science-tab-content.active {
    display: block;
}

.science-tab-content .text-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.science-tab-content .text-content h2 {
    color: #3794AA;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.science-tab-content .tab-intro {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.science-tab-content .tab-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.science-tab-content .tab-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: #333;
    line-height: 1.4;
}

.science-tab-content .tab-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: #333;
    border-radius: 50%;
}

.science-tab-content .content-divider {
    width: 100%;
    max-width: 800px;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 3rem auto;
}

.science-tab-content .sub-section {
    max-width: 800px;
    margin: 0 auto;
}

.science-tab-content .sub-section h4 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.science-tab-content .sub-section p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
    text-align: left;
}

.science-tab-content .sub-section .tab-list li {
    font-weight: normal;
    font-family: 'Roboto', sans-serif;
}

@media (max-width: 768px) {
    .science-tab-content {
        padding: 1.5rem 0;
    }

    .science-tab-content .two-column-layout {
        flex-direction: column;
        height: auto;
        padding: 0;
    }

    .science-tab-content .left-column {
        height: 25rem;
        align-items: center;
        justify-content: center;
    }

    .science-tab-content .left-column img {
        width: 100%;
        height: auto;
        padding: 0;
    }

    .science-tab-content .right-column {
        width: 100%;
        order: 2;
    }

    .science-tab-content .text-content {
        padding: 2rem 1rem;
        max-width: 100%;
        width: 100%;
    }

    .science-tab-content .tab-intro {
        padding: 0 1rem;
    }

    .science-tab-content .tab-list {
        padding: 0 1rem;
    }

    .science-tab-content .content-divider {
        margin: 2rem 1rem;
    }

    .science-tab-content .sub-section {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .science-tabs {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
    }

    .science-tab-button {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 4px;
        background-color: rgba(255, 255, 255, 0.9);
    }

    .science-tab-button::after {
        display: none;
    }

    .science-tab-button.active {
        background-color: #3794AA;
        color: white;
    }

    .science-tab-content .text-content {
        padding: 2rem 1rem;
        max-width: 100%;
        width: 100%;
    }

    .science-tab-content .text-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .science-tab-content .text-content li {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        padding-left: 0;
        text-align: center;
    }

    .science-tab-content .text-content li::before {
        display: none;
    }
}

header.scrolled .dropdown-content {
    background-color: var(--bg-dark);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

header.scrolled .dropdown-content a {
    color: var(--white);
}

header.scrolled .dropdown-content a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Quote Hero Section */
.quote-hero {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.quote-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-content blockquote {
    font-size: 24px;
    line-height: 1.5;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 40px;
    position: relative;
    padding: 0 40px;
}

.quote-content blockquote::before,
.quote-content blockquote::after {
    content: '"';
    font-size: 60px;
    color: #007AFF;
    position: absolute;
    opacity: 0.2;
}

.quote-content blockquote::before {
    left: 0;
    top: -20px;
}

.quote-content blockquote::after {
    right: 0;
    bottom: -40px;
}

.quote-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin: 0;
    color: #333;
}

.author-info p {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 5px 0 0;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-item {
    text-align: left;
}

.about-item h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.about-item p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.about-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-item ul li {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #666;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.about-item ul li:last-child {
    border-bottom: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .quote-content blockquote {
        font-size: 20px;
        padding: 0 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .quote-hero {
        padding: 60px 20px;
    }

    .about-section {
        padding: 60px 0;
    }
}

/* Leadership Section */
.leadership-section {
    padding: 80px 0;
}

.board-section {
    padding: 80px 0;
    background: #ffffff;
}

.leadership-section h2,
.board-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
    color: #333;
}

.leadership-subhead,
.board-subhead {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

.leadership-grid,
.board-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.leadership-item,
.board-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

@media (max-width: 1200px) {
    .leadership-grid,
    .board-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .leadership-grid,
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .leadership-grid,
    .board-grid {
        grid-template-columns: 1fr;
    }
}

.leadership-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.leader-image-container {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
}

.leader-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.leader-thumb.grayscale {
    opacity: 1;
}

.leader-thumb.color {
    opacity: 0;
}

.leader-image-container:hover .leader-thumb.grayscale {
    opacity: 0;
}

.leader-image-container:hover .leader-thumb.color {
    opacity: 1;
}

.leader-name {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

.leader-button {
    width: 40px; /* Restored desktop width */
    height: 40px; /* Restored desktop height */
    border-radius: 50%;
    border: 2px solid #4DB748;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.leader-button .leader-arrow-svg { /* Changed selector */
    width: 20px; /* Restored desktop SVG width */
    height: 20px; /* Restored desktop SVG height */
    color: #4DB748;
    transition: all 0.3s ease;
}

.leader-button:hover {
    background-color: #4DB748;
}

.leader-button:hover .leader-arrow-svg { /* Changed selector */
    color: #fff;
}

@media (max-width: 768px) {
    .leader-image-container {
        width: 100%;
        padding-bottom: 100%;
        border-radius: 8px;
    }
    
    .leader-thumb {
        border-radius: 8px;
    }

    .leadership-grid,
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .leadership-section,
    .board-section {
        padding: 60px 0;
    }

    .leadership-section .container,
    .board-section .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .leader-image-container {
        width: 100%;
        padding-bottom: 100%;
        border-radius: 6px;
    }
    
    .leader-thumb {
        border-radius: 6px;
    }

    .leadership-grid,
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .leader-image-container {
        width: 130px;
        height: 130px;
    }

    .leader-name {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .leader-button {
        width: 36px; /* Mobile specific size */
        height: 36px; /* Mobile specific size */
    }
   
}


.leader-button:hover {
    background-color: #4DB748;
}

.leader-button:hover svg {
    color: #fff;
}

@media (max-width: 480px) {
    .leadership-grid,
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .leader-image-container {
        width: 130px;
        height: 130px;
    }

    .leader-name {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .leader-button {
        width: 36px; /* Mobile specific size */
        height: 36px; /* Mobile specific size */
    }

    .leader-button .leader-arrow-svg { /* Changed selector */
        width: 24px; /* Diagnostic: Test larger size */
        height: 24px; /* Diagnostic: Test larger size */        
    }
}

/* Leadership Popup Styles */
.leader-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(51, 51, 51, 0.85);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.popup-content {
    position: relative;
    background: white;
    max-width: 800px;
    width: 90%;
    margin: 40px auto;
    padding: 40px 60px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.leader-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-popup.active .popup-content {
    opacity: 1;
    transform: translateY(0);
}

.popup-image {
    flex: 0 0 30%;
}

.popup-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.popup-bio {
    flex: 0 0 70%;
    padding-right: 40px;
}

.popup-bio h3 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 24px;
}

.popup-bio p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.close-popup:hover {
    transform: rotate(90deg);
}

.close-popup::before,
.close-popup::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.close-popup::before {
    transform: rotate(45deg);
}

.close-popup::after {
    transform: rotate(-45deg);
}

.close-popup:hover::before,
.close-popup:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .popup-content {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
        margin: 20px auto;
    }

    .popup-image {
        flex: 0 0 auto;
        max-width: 200px;
        margin: 0 auto;
    }

    .popup-bio {
        flex: 0 0 auto;
        text-align: center;
    }

    .popup-bio h3 {
        font-size: 24px;
        text-align: center;
    }

    .popup-bio p {
        text-align: center;
    }

    .popup-bio .leader-title {
        font-size: 16px;
        margin-bottom: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 20px;
        gap: 20px;
    }

    .popup-image {
        max-width: 150px;
    }

    .close-popup {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
    }

    .popup-bio h3 {
        font-size: 20px;
    }
}

.board-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

@media (max-width: 480px) {
    .hero-phone {
        position: absolute;
        right: -100px;
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-middle {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .hero-phone {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        position: relative;
        right: 0;
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-middle {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .hero-phone {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        position: relative;
        right: 0;
        transform: none;
    }
}

.science-tab-content .two-column-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
    height: 32rem;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    padding-bottom: 0;
}

.science-tab-content .left-column {
    flex: 0 0 45%;
    height: 100%;
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.science-tab-content .left-column img {
    width: 120%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    padding: 0;
    margin: 0;
    margin-bottom: 0;
    transform: none;
}

.science-tab-content .right-column {
    flex: 0 0 55%;
    height: 100%;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .science-tab-content .two-column-layout {
        flex-direction: column;
        height: auto;
        padding: 2rem;
    }

    .science-tab-content .left-column {
        height: 25rem;
        align-items: center;
        justify-content: center;
    }

    .science-tab-content .left-column img {
        width: 100%;
        height: auto;
        padding: 0;
    }

    .science-tab-content .right-column {
        width: 100%;
        order: 2;
    }
}

@media (max-width: 1024px) {
    nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-subnav {
        display: none;
    }
    
    .mobile-subnav.active {
        display: block;
    }
    
    .nav-dropdown {
        display: none;
    }
}

@media (min-width: 1025px) {
    .hamburger,
    .mobile-menu,
    .mobile-subnav,
    .menu-divider {
        display: none !important;
    }
    
    nav {
        display: flex !important;
    }
}

.sign-in-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    text-decoration: none;
}

.sign-in-btn:hover {
    background-color: var(--primary-hover);
    color: var(--white);
}

.mobile-sign-in-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    text-decoration: none;
    display: block;
    text-align: center;
    margin: 1rem 0;
}

.mobile-sign-in-btn:hover {
    background-color: var(--primary-hover);
    color: var(--white);
}

@media (max-width: 768px) {
    .tab-section {
        padding: 4rem 0;
        overflow: visible;
    }

    .tab-section .tabs {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
    }

    .tab-section .tab-button {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 4px;
        background-color: rgba(255, 255, 255, 0.9);
        margin: 0;
        border: none;
    }

    .tab-section .tab-button::after {
        display: none;
    }

    .tab-section .tab-button.active {
        background-color: #3794AA;
        color: white;
    }

    .tab-section .two-column-layout {
        flex-direction: column;
        gap: 2rem;
        height: auto;
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .tab-section .text-content {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        margin: 0;
        box-sizing: border-box;
    }

    .tab-section .text-content ul {
        padding: 0;
        margin: 0;
        width: 100%;
        list-style: none;
        text-align: center;
    }

    .tab-section .text-content li {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        padding-left: 0;
        text-align: center;
    }

    .tab-section .text-content li::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .column:first-child::after {
        display: none;
    }
    
    .columns-container {
        flex-direction: column;
        gap: 3rem;
    }

    .left-column-group,
    .right-column-group {
        flex-direction: column;
        gap: 2rem;
    }

    .headlines-container {
        flex-direction: column;
        gap: 1rem;
    }

    .left-headline,
    .right-headline {
        flex: 0 0 100%;
    }
}

.mobile-headline {
    display: none;
}

@media (max-width: 768px) {
    .mobile-headline {
        display: block;
        text-align: center;
        margin: 2rem 0;
    }
    
    .columns-container {
        flex-direction: column;
        gap: 3rem;
    }

    .left-column-group,
    .right-column-group {
        flex-direction: column;
        gap: 2rem;
    }

    .headlines-container {
        flex-direction: column;
        gap: 1rem;
    }

    .left-headline,
    .right-headline {
        flex: 0 0 100%;
    }
    
    .column:first-child::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .content {
        padding-top: 1.5rem;
    }

    .headlines-container {
        margin-bottom: 1rem;
    }
}

@media (max-width: 1024px) {
    .columns-container {
        flex-direction: column;
        gap: 3rem;
    }

    .left-column-group,
    .right-column-group {
        flex-direction: column;
        gap: 2rem;
    }

    .headlines-container {
        flex-direction: column;
        gap: 1rem;
    }

    .left-headline,
    .right-headline {
        flex: 0 0 100%;
    }

    .right-headline {
        display: none;
    }

    .mobile-headline {
        display: block;
        text-align: center;
        margin: 2rem 0;
    }

    .column:first-child::after {
        display: none;
    }
}

.tab-content.tab2-active {
    position: relative;
    background-color: transparent;
}

.tab-content.tab2-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/tab2Background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}

.tab-content.tab2-active .container {
    position: relative;
    z-index: 1;
    padding-bottom: 0;
}

.tab-content.tab2-active .two-column-layout {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    padding-bottom: 0;
    height: auto;
}

@media (max-width: 768px) {
    .hero-middle {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .hero-phone {
        width: 100%;
        max-width: 400px;
        height: auto;
        margin: 0;
        padding: 0;
        position: relative;
        right: 0;
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-middle {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .hero-phone {
        width: 100%;
        max-width: 350px;
        height: auto;
        margin: 0;
        padding: 0;
        position: relative;
        right: 0;
        transform: none;
    }
}

/* Mobile-specific improvements */
@media (max-width: 480px) {
    /* Ensure minimum touch target size of 44x44px */
    .button,
    .sign-in-btn,
    .mobile-sign-in-btn,
    .see-app-btn,
    .submit-btn,
    .tab-button,
    .science-tab-button,
    .prev-quote,
    .next-quote,
    .prev-video,
    .next-video,
    .quote-dot,
    .video-dot,
    .close-popup,
    .leader-button,
    .hamburger,
    nav a,
    .mobile-menu a,
    .footer-nav a,
    .footer-links a,
    .app-download-link,
    .mobile-app-download-link,
    .prev-thumbnail,
    .next-thumbnail,
    .flip-tile,
    .play-button {
        min-height: 2.75rem;
        min-width: 2.75rem;
        padding: 0.75rem 1rem;
    }

    /* Increase spacing between interactive elements */
    .button + .button,
    .sign-in-btn + .sign-in-btn,
    .mobile-sign-in-btn + .mobile-sign-in-btn,
    .see-app-btn + .see-app-btn,
    .submit-btn + .submit-btn,
    .tab-button + .tab-button,
    /* .science-tab-button + .science-tab-button, */ /* Removed margin-left for vertical layout */
    .prev-quote + .next-quote,
    .prev-video + .next-video,
    .quote-dot + .quote-dot,
    .video-dot + .video-dot,
    .prev-thumbnail + .next-thumbnail {
        margin-left: 1rem;
    }

    .quote-dot {
        min-height: initial; /* Reset min-height from general touch target rule */
        min-width: initial;  /* Reset min-width from general touch target rule */
        width: 8px;          /* New smaller width for mobile */
        height: 8px;         /* New smaller height for mobile */
        padding: 0;          /* Reset padding from general touch target rule */
    }

    .video-dot {
        min-height: initial; /* Reset min-height from general touch target rule */
        min-width: initial;  /* Reset min-width from general touch target rule */
        width: 8px;          /* New smaller width for mobile */
        height: 8px;         /* New smaller height for mobile */
        padding: 0;          /* Reset padding from general touch target rule */
    }

    /* Adjustments for employee quote navigation on about.html */
    .employee-quotes .quote-navigation {
        gap: 0.5rem; /* Reduced gap for tighter layout */
        flex-wrap: wrap;
        padding: 0 0.5rem; /* Adjusted horizontal padding */
        justify-content: center;
    }
    
    .employee-quotes .quote-navigation .quote-dots {
        order: 1; /* Dots appear first */
        width: 100%; /* Take full width to ensure it's on its own line */
        display: flex; /* To center the dots themselves */
        justify-content: center;
        margin-bottom: 0.5rem; /* Space between dots and buttons */
    }

    .employee-quotes .quote-navigation .quote-nav-buttons {
        order: 2; /* Buttons appear after dots */
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .employee-quotes .quote-navigation .prev-quote,
    .employee-quotes .quote-navigation .next-quote {
        /* order property is removed as it's handled by parent */
        padding: 0.5rem 0.75rem; /* Adjust padding as needed */
        flex-basis: auto; /* Allow buttons to size naturally */
        margin: 0; /* Remove any extra margins if present */
    }
} /* Closing brace of @media (max-width: 480px) */

/* Desktop and tablet overrides for employee quote navigation on about.html */
/* This ensures the single-line layout for screens wider than 480px. */
@media (min-width: 481px) {
    .employee-quotes .quote-navigation {
        flex-wrap: nowrap; /* Explicitly prevent wrapping */
        /* Other properties like gap, padding will be inherited or should use general desktop defaults */
    }

    .employee-quotes .quote-navigation .quote-nav-buttons {
        display: contents; /* Make .prev-quote and .next-quote direct children for ordering */
        /* Resetting properties that are no longer relevant for this wrapper */
        order: initial;
        width: initial;
        gap: initial;
    }

    .employee-quotes .quote-navigation .prev-quote {
        order: 1; /* Previous button first */
    }
    
    .employee-quotes .quote-navigation .quote-dots {
        width: auto; /* Reset from mobile's width: 100% */
        order: 2; /* Dots second */
        margin-bottom: 0; /* Reset from mobile's margin-bottom */
    }

    .employee-quotes .quote-navigation .next-quote {
        order: 3; /* Next button third */
    }

    /* .employee-quotes .quote-navigation .prev-quote and .next-quote
       will use their general desktop styles for padding etc. */
}

/* Optimize scrolling performance */
.smooth-scroll {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Image loading optimizations */
img {
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Add blur-up effect for lazy loaded images */
.lazy-image-container {
    position: relative;
    background-color: #f0f0f0;
    overflow: hidden;
}

.lazy-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 0%, #f8f8f8 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Mobile form optimizations */
@media (max-width: 480px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.75rem;
        border-radius: 8px;
        -webkit-appearance: none;
        appearance: none;
    }

    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"] {
        inputmode: email;
    }

    .form-group input[type="tel"] {
        inputmode: tel;
    }

    .form-group input[type="number"] {
        inputmode: numeric;
    }

    /* Improve checkbox and radio button touch targets */
    .checkbox-group input[type="checkbox"],
    .checkbox-group input[type="radio"] {
        width: 1.25rem;
        height: 1.25rem;
        margin-top: 0.25rem;
    }

    .checkbox-group label {
        padding-left: 0.5rem;
        line-height: 1.5;
    }

    /* Add visual feedback for form interactions */
    .form-group input:focus,
    .form-group textarea:focus {
        box-shadow: 0 0 0 2px var(--accent-color);
        outline: none;
    }

    .form-group input:invalid,
    .form-group textarea:invalid {
        border-color: #ff4444;
    }

    /* Improve submit button on mobile */
    .submit-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
        margin-top: 1.5rem;
    }
}

/* Mobile error states and feedback */
@media (max-width: 480px) {
    /* Error message styling */
    .error-message {
        color: #ff4444;
        font-size: 0.875rem;
        margin-top: 0.5rem;
        padding: 0.5rem;
        background-color: rgba(255, 68, 68, 0.1);
        border-radius: 4px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .error-message::before {
        content: '!';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.25rem;
        height: 1.25rem;
        background-color: #ff4444;
        color: white;
        border-radius: 50%;
        font-weight: bold;
    }

    /* Success message styling */
    .success-message {
        color: var(--primary-color);
        font-size: 0.875rem;
        margin-top: 0.5rem;
        padding: 0.5rem;
        background-color: rgba(77, 183, 72, 0.1);
        border-radius: 4px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .success-message::before {
        content: '✓';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.25rem;
        height: 1.25rem;
        background-color: var(--primary-color);
        color: white;
        border-radius: 50%;
        font-weight: bold;
    }

    /* Loading state */
    .loading-state {
        position: relative;
        pointer-events: none;
        opacity: 0.7;
    }

    .loading-state::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 1.5rem;
        height: 1.5rem;
        margin: -0.75rem 0 0 -0.75rem;
        border: 2px solid var(--accent-color);
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* Toast notifications */
    .toast {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 0.75rem 1.25rem;
        border-radius: 8px;
        font-size: 0.875rem;
        z-index: 1000;
        animation: slideUp 0.3s ease-out;
    }

    @keyframes slideUp {
        from {
            transform: translate(-50%, 100%);
            opacity: 0;
        }
        to {
            transform: translate(-50%, 0);
            opacity: 1;
        }
    }
}

/* Mobile animation optimizations */
@media (max-width: 480px) {
    /* Reduce animation complexity on mobile */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }

    /* Optimize transform animations */
    .hero-text,
    .hero-middle,
    .video-thumbnail,
    .play-button,
    .flip-tile-inner,
    .quote-slide,
    .video-slide {
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    /* Disable hover animations on touch devices */
    @media (hover: none) {
        .button:hover,
        .sign-in-btn:hover,
        .mobile-sign-in-btn:hover,
        .see-app-btn:hover,
        .submit-btn:hover,
        .tab-button:hover,
        .science-tab-button:hover,
        .prev-quote:hover,
        .next-quote:hover,
        .prev-video:hover,
        .next-video:hover,
        .quote-dot:hover,
        .video-dot:hover,
        .close-popup:hover,
        .leader-button:hover,
        .hamburger:hover,
        nav a:hover,
        .mobile-menu a:hover,
        .footer-nav a:hover,
        .footer-links a:hover,
        .app-download-link:hover,
        .mobile-app-download-link:hover,
        .prev-thumbnail:hover,
        .next-thumbnail:hover,
        .flip-tile:hover,
        .play-button:hover {
            transform: none !important;
        }
    }

    /* Optimize scrolling performance */
    .smooth-scroll {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Reduce motion if user prefers it */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation: none !important;
            transition: none !important;
        }
    }
}

/* Mobile screen size and orientation optimizations */
@media (max-width: 480px) {
    /* Adjust layout for different screen sizes */
    .container {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    /* Landscape mode optimizations */
    @media (orientation: landscape) {
        .hero-content {
            flex-direction: row;
            align-items: center;
            gap: var(--spacing-md);
        }

        .hero-text {
            width: 50%;
        }

        .hero-middle {
            width: 50%;
        }

        .hero-phone {
            max-height: 80vh;
            width: auto;
        }

        /* Adjust video player for landscape */
        .video-slides {
            height: 60vh;
        }

        /* Adjust form layout for landscape */
        .form-row {
            display: flex;
            gap: var(--spacing-sm);
        }

        .form-group {
            flex: 1;
        }
    }

    /* Small screen optimizations */
    @media (max-height: 600px) {
        .hero-content {
            padding-top: var(--spacing-md);
        }

        .hero-text h1 {
            font-size: 1.5rem;
            margin-bottom: var(--spacing-sm);
        }

        .hero-text p {
            font-size: 0.9rem;
            margin-bottom: var(--spacing-sm);
        }

        .button {
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
        }
    }

    /* Large screen optimizations */
    @media (min-width: 360px) and (max-width: 480px) {
        .hero-text h1 {
            font-size: 1.75rem;
        }

        .hero-text p {
            font-size: 1rem;
        }

        .button {
            padding: 0.75rem 1.5rem;
            font-size: 1rem;
        }
    }
}

/* Mobile gesture and touch feedback */
@media (max-width: 480px) {
    /* Swipeable elements */
    .swipeable {
        touch-action: pan-y pinch-zoom;
        user-select: none;
        -webkit-user-select: none;
    }

    /* Touch feedback */
    .touch-feedback {
        position: relative;
        overflow: hidden;
    }

    .touch-feedback::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%);
        transform-origin: 50% 50%;
    }

    .touch-feedback:active::after {
        animation: ripple 0.6s ease-out;
    }

    @keyframes ripple {
        0% {
            transform: scale(0, 0);
            opacity: 0.5;
        }
        100% {
            transform: scale(20, 20);
            opacity: 0;
        }
    }

    /* Pull to refresh indicator */
    .pull-to-refresh {
        position: relative;
        overflow: hidden;
    }

    .pull-to-refresh::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--accent-color);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .pull-to-refresh.pulling::before {
        transform: translateY(0);
    }

    /* Swipe to delete */
    .swipe-to-delete {
        position: relative;
        overflow: hidden;
    }

    .swipe-to-delete-content {
        position: relative;
        z-index: 1;
        background: white;
        transition: transform 0.3s ease;
    }

    .swipe-to-delete-actions {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        padding: 0 1rem;
        background: #ff4444;
        color: white;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .swipe-to-delete.swiping .swipe-to-delete-content {
        transform: translateX(-80px);
    }

    .swipe-to-delete.swiping .swipe-to-delete-actions {
        transform: translateX(0);
    }
}

/* Mobile keyboard and input optimizations */
@media (max-width: 480px) {
    /* Prevent content shift when keyboard appears */
    .keyboard-aware {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Adjust viewport when keyboard is visible */
    .keyboard-visible {
        height: 100%;
        position: relative;
    }

    /* Improve input field appearance */
    .form-group input,
    .form-group textarea {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        font-size: 16px;
        line-height: 1.5;
        background-color: #f8f8f8;
        border: 1px solid #ddd;
    }

    /* Style number input spinners */
    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    input[type="number"] {
        -moz-appearance: textfield;
    }

    /* Improve select dropdowns */
    select {
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1em;
        padding-right: 2.5rem;
    }

    /* Improve date inputs */
    input[type="date"] {
        -webkit-appearance: none;
        appearance: none;
        background-color: #f8f8f8;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        border: 1px solid #ddd;
    }

    input[type="date"]::-webkit-calendar-picker-indicator {
        background: transparent;
        bottom: 0;
        color: transparent;
        cursor: pointer;
        height: auto;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        width: auto;
    }

    /* Improve search inputs */
    input[type="search"] {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        padding-left: 2.5rem;
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: 0.75rem center;
        background-size: 1em;
    }

    input[type="search"]::-webkit-search-cancel-button {
        -webkit-appearance: none;
        appearance: none;
    }
}

@media (max-width: 768px) {
    .tab-section .text-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .tab-section .text-content li {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding-left: 0;
        text-align: center;
    }

    .tab-section .text-content li::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .video-carousel {
        padding: 2rem 0 1.5rem 0 !important; /* Increased bottom padding to 1.5rem */
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        height: auto !important;
        position: static;
    }
    
    .video-carousel .container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    .video-slides {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-height: 300px; /* Ensure enough height for iframe and caption */
        height: auto; /* Allow it to grow if content is larger */
        overflow: visible; /* Ensure content isn't clipped if it overflows min-height */
    }
    
    .video-slide {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        display: none;
        height: auto !important;
    }
    
    .video-slide.active {
        display: block;
        height: auto !important;
    }
    
    .video-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
    }
    
    .video-container iframe {
        width: 100vw !important;
        height: 250px !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .video-slide h3 {
        color: white;
        padding: 0 1rem;
        margin: 0.5rem 0;
        font-size: 1.1rem;
    }

    .video-navigation {
        margin-top: 0.5rem;
        margin-bottom: 1.5rem; /* Added space below navigation */
        /* Other existing properties like display:flex, gap, etc. should be preserved */
    }

    .video-dots {
        margin-bottom: 0.75rem;
    }
}

.science-tab-content .tab-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .science-tab-content .tab-list {
        padding: 0 1rem;
        font-size: 1rem;
    }
    
    .science-tab-content .tab-list li {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .science-tab-content .tab-list {
        padding: 0 0.75rem;
    }
    
    .science-tab-content .tab-list li {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .science-tab-content .text-content {
        padding: 2rem 1rem;
        max-width: 100%;
        width: 100%;
    }

    .science-tab-content .text-content ul {
        list-style: disc;
        padding: 0 0 0 1.5rem;
        margin: 0;
        text-align: left;
    }

    .science-tab-content .text-content li {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-left: 0.5rem;
        text-align: left;
        position: relative;
    }

    .science-tab-content .text-content li::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .science-tab-content .text-content ul {
        padding: 0 0 0 1.25rem;
    }

    .science-tab-content .text-content li {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-left: 0.25rem;
    }
}

/* Mobile menu responsive styles */
@media (max-width: var(--breakpoint-md)) {
    .mobile-menu {
        display: block;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-close {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }

    .mobile-nav {
        padding: 1rem;
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav li {
        margin-bottom: 1rem;
    }

    .mobile-nav a {
        color: white;
        text-decoration: none;
        font-size: 1.125rem;
        display: block;
        padding: 0.5rem 0;
    }

    .mobile-nav a:hover {
        color: var(--primary-color);
    }
}

/* Form responsive styles */
@media (max-width: var(--breakpoint-sm)) {
    .form-container {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }

    .submit-btn {
        width: 100%;
    }
}

/* Science tab content responsive styles */
@media (max-width: var(--breakpoint-sm)) {
    .science-tab-content {
        padding: 1.5rem 1rem;
    }

    .science-tab-content .sub-section {
        margin-bottom: 2rem;
    }

    .science-tab-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .science-tab-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .science-tab-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .science-tab-content .text-content ul {
        list-style: disc;
        padding: 0 0 0 1.5rem;
        margin: 0;
        text-align: left;
    }

    .science-tab-content .text-content li {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-left: 0.5rem;
        text-align: left;
        position: relative;
    }

    .science-tab-content .text-content li::before {
        display: none;
    }
}

/* Mobile-specific improvements */
@media (max-width: var(--breakpoint-xs)) {
    .science-tab-content {
        padding: 1rem 0.75rem;
    }

    .science-tab-content .sub-section {
        margin-bottom: 1.5rem;
    }

    .science-tab-content h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .science-tab-content h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }

    .science-tab-content p {
        font-size: 0.9375rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .science-tab-content .text-content ul {
        padding-left: 1.25rem;
    }

    .science-tab-content .text-content li {
        font-size: 0.9375rem;
        margin-bottom: 0.75rem;
        padding-left: 0.375rem;
    }
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .footer-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        gap: 0.5rem;
    }

    .footer-links a {
        font-size: 0.9375rem;
    }
}

.footer-nav {
    display: flex;
    gap: 1rem;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.2;
}

.footer-nav a:hover {
    color: #9BE1E1;
}

@media (max-width: var(--breakpoint-sm)) {
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .footer-nav a {
        padding: 0.375rem 0;
        width: 100%;
        text-align: center;
        display: block;
        line-height: 1.2;
    }
}

@media (max-width: var(--breakpoint-xs)) {
    .footer-nav {
        gap: 0.5rem;
    }

    .footer-nav a {
        font-size: 0.9375rem;
    }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .footer-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .copyright {
        margin-bottom: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        gap: 0.5rem;
    }

    .footer-links a {
        font-size: 0.9375rem;
    }
}

.prev-thumbnail a,
.next-thumbnail a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.arrow-icon { /* This span is the direct parent of the SVG */
    display: inline-flex; /* Helps with alignment */
    align-items: center;
    justify-content: center;
    color: #3794AA; /* SVG will inherit this color via fill="currentColor" */
    /* font-size and font-weight are no longer needed here as SVG has its own size */
}

/* Desktop styles for SVG arrows */
.carousel-arrow-svg {
    width: 1.5rem; /* Default desktop size */
    height: 1.5rem; /* Default desktop size */
    fill: currentColor;
}

.prev-thumbnail:hover,
.next-thumbnail:hover {
    transform: scale(1.1);
    background-color: #3794AA;
}

.prev-thumbnail:hover .arrow-icon,
.next-thumbnail:hover .arrow-icon {
    color: white;
}

/* Styles for the employee quote section on about.html for mobile */
@media (max-width: 768px) {
    .employee-quotes {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .employee-quotes .subhead {
        margin-bottom: 1rem; /* Reduce space below subhead */
    }

    .employee-quotes .quote-slides {
        height: 250px; /* Increased height for mobile */
    }
}

@media (max-width: 768px) {
    .tab-section .tab-button {
        width: 100%;
        text-align: center;
        padding: 1rem;
        height: 3.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tab-section,
    .science-tab-section {
        padding: 4rem 0;
        overflow: visible;
    }

    .tab-section .container,
    .science-tab-section .container {
        padding: 0;
        max-width: 100%;
    }

    .tab-section .tabs,
    .science-tabs {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
        margin: 0;
    }

    .tab-section .tab-button,
    .science-tab-button {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 4px;
        background-color: rgba(255, 255, 255, 0.9);
        margin: 0;
        border: none;
        height: 3.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tab-section .tab-button::after,
    .science-tab-button::after {
        display: none;
    }

    .tab-section .tab-button.active,
    .science-tab-button.active {
        background-color: #3794AA;
        color: white;
    }
}

/* ACO Hero Section */
.aco-hero {
    background-color: white;
    padding: 4rem 0 6rem 0;
}

.aco-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.aco-hero .hero-content {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 2rem;
    align-items: start;
    justify-content: space-between;
    width: 100%;
}

.aco-hero .hero-text {
    width: 100%;
    max-width: none;
    padding: 0 2rem 0 0;
}

.aco-hero .hero-text p {
    width: 100%;
    max-width: none;
    margin-bottom: 1.5rem;
}

.aco-hero h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

@media (max-width: 1200px) {
    .aco-hero .hero-content {
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .aco-hero .hero-content {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .aco-hero {
        padding: 1rem 0 4rem 0;
    }

    .aco-hero .container {
        padding: 0 1.5rem;
    }

    .aco-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .aco-hero .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .aco-hero .hero-text {
        padding-right: 0;
    }

    .aco-hero .hero-image {
        order: -1;
    }

    .aco-hero .hero-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .aco-hero h1 {
        font-size: 2rem;
    }

    .aco-hero .subhead {
        font-size: 1.1rem;
    }
}

.aco-hero .hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.aco-hero .hero-text .button {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .aco-hero .hero-text {
        text-align: center;
    }
    
    .aco-hero .hero-text .button {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .leadership-section h2 {
        margin-bottom: 0.5rem;
    }
    .leadership-subhead {
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .leadership-section .leader-name {
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
}