:root {
    --primary-color: #D67628; /* Logo orange */
    --primary-color-muted: #F7941DA8; /* Logo orange with 66% opacity */
    --primary-color-dark: #D67628;
    --primary-color-light: #F7941D;
    --secondary-color: #F5F5F5; /* Light gray */
    --text-color: #333333;
    --logo-grey: #58595B; /* Grey from the logo */
    --logo-grey-darker: #65696d; /* 40% darker logo grey */
    --logo-grey-darker-muted: #35363759; /* 40% darker logo grey with 35% opacity */
    --logo-grey-darker-2: #353637; /* 40% darker logo grey*/
    --logo-grey-muted: #58595B59; /* Logo grey with 35% opacity */
    --black-muted: #00000059; /* Black with 35% opacity */
    --warm-grey-bg: #F5F2F0; /* Warm light grey background */
    --header-grey: #F8F8F8; /* Light grey for header */
    --spacing: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


h2 {
    font-family: 'Quicksand', sans-serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: var(--spacing);
    font-weight: 400;
    letter-spacing: 0.02em;
}

h3 {
    font-family: 'Quicksand', sans-serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: calc(var(--spacing) / 2);
    font-weight: 400;
    letter-spacing: 0.02em;
}

h4 {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: calc(var(--spacing) / 2);
    font-weight: 400;
    letter-spacing: 0.02em;
}

main {
    max-width: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    :root {
        --spacing: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.2rem;
    }
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--warm-grey-bg);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing);
    position: relative;
    z-index: 100;
    background-color: var(--header-grey);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Event Banner */
.event-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #F7941D 100%);
    color: white;
    overflow: hidden;
    padding: 0.75rem 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.event-banner-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
}

.event-text {
    display: inline-block;
    padding: 0 3rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.event-text strong {
    font-weight: 600;
}

.register-link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: opacity 0.3s ease;
}

.register-link:hover {
    opacity: 0.8;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .event-text {
        font-size: 0.95rem;
        padding: 0 2rem;
    }
    
    .event-banner {
        padding: 0.6rem 0;
    }
    
    .event-banner-content {
        animation: scroll-left 15s linear infinite;
    }
}

#main-content {
    background-color: white;
    opacity: 1;
    transition: opacity 2.5s ease;
}

#main-content.fade-in {
    opacity: 1;
}

section {
    margin-bottom: calc(var(--spacing) * 2);
}

.hero, .info-section, .benefits-grid, .testimonials, .contact, .events {
    background-color: white;
    margin: var(--spacing);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: var(--spacing);
}

.hero {
    position: relative;
    padding: 6rem 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('images/clouds1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: absolute;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.25;
    margin-bottom: 1.2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    color: var(--primary-color-light);
}

.hero-phone {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0.75rem 0;
    color: white;
}

.hero-phone a {
    color: var(--primary-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-phone a:hover {
    text-decoration: underline;
}

.hero-locations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.location-badge {
    background-color: rgba(214, 118, 40, 0.9);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.location-badge:hover {
    transform: translateY(-3px);
    background-color: rgba(247, 148, 29, 0.95);
}

.hero-text h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.hero-text p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        scale: 0.9;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-locations {
        gap: 0.5rem;
    }
    
    .location-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-phone {
        font-size: 1.4rem;
    }
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing);
}

.info-block {
    background-color: var(--secondary-color);
    padding: var(--spacing);
    border-radius: 10px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing);
}

.benefit-item {
    background-color: var(--secondary-color);
    padding: var(--spacing);
    border-radius: 10px;
}

.testimonials {
    text-align: center;
    padding: var(--spacing);
    background-image: url('images/sunflowers.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 10px;
    margin: var(--spacing) auto;
    width: 75%;
    max-width: 1400px;
    min-height: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.testimonials h2 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: var(--spacing);
    color: rgb(190, 189, 189);
    z-index: 1;
    position: relative;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 300px;
    z-index: 1;
    display: flex;
    align-items: center;
}

.testimonial {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: var(--spacing);
    color: white;
}

.testimonial p {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.testimonial cite {
    display: block;
    font-style: normal;
    font-weight: bold;
    color: white;
}

.testimonial.active {
    opacity: 1;
}

.testimonial p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial cite {
    display: block;
    font-style: normal;
    font-weight: bold;
}

.contact {
    text-align: center;
    background-color: var(--secondary-color);
    padding: var(--spacing);
    border-radius: 10px;
}

.contact-info {
    margin: 1.5rem auto 2rem;
    max-width: 700px;
}

.phone-number {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.phone-number a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-number a:hover {
    color: #8b6fa8;
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.9rem;
    color: #666;
    margin-top: var(--spacing);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

footer {
    text-align: center;
    padding: var(--spacing);
    background-color: var(--secondary-color);
    margin-top: calc(var(--spacing) * 2);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.benefit-texts {
    position: absolute;
    width: 80%;
    height: 80%;
    display: none;
    pointer-events: none;
    left: 10%;
    top: 10%;
}

.benefit-text {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0;
    transform: translate(-50%, -50%);
    text-align: center;
    font-weight: bold;
    max-width: 400px;
    padding: 10px;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    hyphens: auto;
    transition: left 0.3s ease, top 0.3s ease;
}

.benefit-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    letter-spacing: 0.03em;
}

@keyframes colorChange {
    0% { 
        color: var(--primary-color-muted);
        opacity: 1;
    }
    38.5% { /* 0.5s of 1.3s total */
        color: var(--primary-color-muted);
        opacity: 1;
    }
    38.6% {
        color: var(--logo-grey-muted);
        opacity: 1;
    }
    100% { /* remaining 0.8s */
        color: var(--logo-grey-muted);
        opacity: 0;
    }
}

.benefit-text.fade-in {
    animation: colorChange 1.5s linear forwards;
}

.main-nav {
    flex-grow: 1;
    margin-left: 2rem;
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-button {
    position: relative;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 550;
    font-size: 1.0rem;
    width: 9rem;
    border-radius: 10px;
    overflow: hidden;
    transition: color 0.3s ease, background 0.3s ease;
    color: white;
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(112, 19, 19, 0.1);
    text-align: center;
}

.nav-button.active {
    box-shadow: 4px 4px 15px rgba(112, 19, 19, 0.1);
}

.nav-button:hover {
    box-shadow: 4px 4px 15px rgba(112, 19, 19, 0.5);
}

.nav-button .button-text {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.nav-button .button-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-button:hover .button-background {
    opacity: 1;
}

.nav-button:hover .button-text {
    color: var(--text-color);
}

.nav-button.active:hover {
    border-color: black; /* Only change the border color, not add a new border */
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
        margin-top: 1rem;
    }

    .nav-button {
        width: calc(50% - 1rem);
        text-align: center;
    }

    header {
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        margin-left: 0;
    }
}

.logo {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--header-grey);
}

.logo-image {
    max-width: 256px; /* Increased from 256px by 10% */
    height: auto;
    margin-left: var(--spacing);
}

.logo-text {
    font-size: 1.2rem;
    color: var(--text-color);
    text-transform: lowercase;
    letter-spacing: 1px;
}

.benefits {
    padding: 2rem var(--spacing);
    margin: 2rem var(--spacing);
}

.benefits h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.benefits-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.benefits-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 30%;
}

.subject-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.benefits-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.benefit-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.benefit-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.benefit-item p {
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .benefits-container {
        flex-direction: column;
    }
    
    .benefits-image {
        width: 80%;
    }
    
    .subject-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .testimonials {
        width: 90%;
        padding: 1rem;
        min-height: 450px;
    }

    .testimonial-slider {
        height: auto;
        min-height: 350px;
    }

    .testimonial {
        padding: 1rem;
    }

    .testimonial p {
        font-size: 1rem;
        line-height: 1.4;
    }

    .testimonials h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonials {
        min-height: 500px;
    }

    .testimonial-slider {
        min-height: 400px;
    }
}

/* Programs Section Styling */
.programs {
    padding: 2rem var(--spacing);
    margin: 2rem var(--spacing);
}

.benefits-cards-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.benefit-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefit-desc {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.research-cta {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 3rem;
    background: #4a4a4a;
    border-radius: 12px;
}

.research-card-full {
    background: linear-gradient(135deg, var(--primary-color) 0%, #F7941D 100%);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.research-card-full h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.research-card-full p {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.research-card-full .research-card-link {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card-full .research-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.program-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.program-card-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem; /* Add margin to the container instead of individual elements */
}

.program-card {
    width: 100%;
    background-color: white;
    border-radius: 12px 12px 0 0; /* Rounded only at the top */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.program-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.research-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #F7941D 100%);
    border: none;
}

.research-card .program-card-content {
    color: white;
}

.research-card .program-title {
    color: white;
}

.research-card .program-short-desc {
    color: white;
    opacity: 0.95;
}

.research-card-link {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.program-card-inner {
    display: flex;
    flex-direction: row;
    height: 180px; /* Fixed height for cards */
}

.program-card-image {
    flex: 0 0 15%;
    min-width: 110px;
    overflow: hidden;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.program-card:hover .program-card-image img {
    transform: scale(1.05);
}

.program-card-content {
    flex: 1;
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.program-title {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.program-short-desc {
    color: var(--text-color);
    line-height: 1.5;
}

.program-full-desc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease, padding 0.6s ease;
    opacity: 0;
    background-color: var(--secondary-color);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0 1.5rem;
    transform: translateY(-2px); /* Ensure perfect alignment with card */
}

.program-full-desc p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.program-card-container.expanded .program-full-desc {
    max-height: 2000px;
    opacity: 1;
    padding: 1.5rem;
    padding-top: 1.5rem;
}

.learn-more-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-family: 'Quicksand', sans-serif;
    width: auto;
    align-self: center;
}

.learn-more-btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.learn-more-btn .expand-icon {
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.learn-more-btn .btn-text::after {
    content: 'Learn More';
}

.program-card-container.expanded .learn-more-btn {
    background-color: #888;
}

.program-card-container.expanded .learn-more-btn:hover {
    background-color: #666;
}

.program-card-container.expanded .learn-more-btn .btn-text::after {
    content: 'Close';
}

.program-card-container.expanded .learn-more-btn .expand-icon {
    font-size: 0;
}

.program-card-container.expanded .learn-more-btn .expand-icon::before {
    content: '×';
    font-size: 1.5rem;
}

.expand-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease, background-color 0.4s ease;
    cursor: pointer;
}

.program-card-container.expanded .expand-indicator {
    transform: rotate(45deg);
    background-color: var(--logo-grey);
}

/* Location Details Button */
.location-details-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-family: 'Quicksand', sans-serif;
    width: auto;
    align-self: center;
}

.location-details-btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.location-details-btn .expand-icon {
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.location-details-btn .btn-text::after {
    content: 'Details';
}

.location-card-container.expanded .location-details-btn {
    background-color: #888;
}

.location-card-container.expanded .location-details-btn:hover {
    background-color: #666;
}

.location-card-container.expanded .location-details-btn .btn-text::after {
    content: 'Close';
}

.location-card-container.expanded .location-details-btn .expand-icon {
    font-size: 0;
}

.location-card-container.expanded .location-details-btn .expand-icon::before {
    content: '×';
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .program-card-inner {
        height: auto;
    }
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 100px; /* Positioned above the Ooma widget button */
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--logo-grey);
}

@media (max-width: 768px) {
    #back-to-top {
        bottom: 90px; /* Positioned above the Ooma widget button on mobile */
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

.centered-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 600px;
    margin: 2rem auto;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form-container h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.sms-consent {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.consent-text {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1rem;
}

.consent-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.consent-list li {
    padding: 0.5rem 0;
    color: #555;
    font-size: 0.95rem;
}

.consent-list li::before {
    content: "• ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.privacy-link-text {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #555;
}

.privacy-link-text a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    font-family: 'Quicksand', sans-serif;
}

.submit-button:hover {
    background-color: #8b6fa8;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* Research Page Styles */
.research-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    line-height: 1.8;
}

.research-page h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-align: center;
}

.page-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.research-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.research-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.research-section ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.research-section li {
    margin-bottom: 0.75rem;
    color: #555;
}

.research-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.research-link:hover {
    background-color: #F7941D;
    transform: translateY(-2px);
}

/* Research Categories */
.research-category {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    border: 2px solid var(--secondary-color);
}

.category-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.category-placeholder {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Research Paper Styling */
.research-paper {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.research-paper:last-child {
    margin-bottom: 0;
}

.paper-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.paper-authors {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.paper-citation {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
}

.paper-citation em {
    font-style: italic;
}

.paper-citation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.paper-citation a:hover {
    text-decoration: underline;
}

.paper-summary {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.paper-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.paper-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.paper-link:hover {
    background-color: #F7941D;
    transform: translateY(-2px);
}

.paper-note {
    color: #777;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.research-links {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.research-link-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--secondary-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.research-link-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.research-link-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.research-link-card p {
    color: #666;
    margin: 0;
}


.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Privacy Policy Styles */
.privacy-policy {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    line-height: 1.8;
}

.privacy-policy h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.privacy-policy h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
}

.policy-disclaimer {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 5px;
}

.policy-disclaimer p {
    margin: 0;
    color: #856404;
}

/* Footer link styling */
footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
footer a:hover {
    text-decoration: underline;
}

/* Gallery Section */
.gallery {
    padding: 4rem var(--spacing);
    background-color: var(--secondary-color);
    text-align: center;
}

.gallery h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.gallery-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #666;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-event {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-event .event-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.gallery-event .event-date {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.gallery-event .event-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-carousel {
    max-width: 800px;
    margin: 2rem auto;
    position: relative;
}

.carousel-container {
    position: relative;
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.carousel-caption {
    color: #555;
    font-size: 1rem;
    font-style: italic;
    margin: 0;
    padding: 0.5rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(214, 118, 40, 0.9);
    color: white;
    border: none;
    font-size: 2.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(247, 148, 29, 0.95);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

.carousel-dots {
    text-align: center;
    margin-top: 1.5rem;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot:hover {
    background-color: #888;
}

.dot.active {
    background-color: var(--primary-color);
}

.events-intro {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    color: #666;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 500px));
    gap: 2rem;
    margin: 2rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--primary-color);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-date {
    background: linear-gradient(135deg, var(--primary-color) 0%, #F7941D 100%);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border-radius: 8px;
}

.event-month {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.event-day {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-details {
    padding: 1.5rem;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-details h3 {
    color: #4a4a4a;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.event-location {
    color: var(--primary-color-dark);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-location .location-icon {
    color: var(--primary-color-dark);
    flex-shrink: 0;
    vertical-align: middle;
}

.event-time {
    color: var(--primary-color-dark);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.event-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.event-map {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.event-directions-btn {
    display: block;
    margin-top: 0.5rem;
    margin-left: auto;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.event-directions-btn:hover {
    background-color: #e0d5f0;
}

.event-register-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: center;
}

.event-register-btn:hover {
    background-color: #F7941D;
    transform: translateY(-2px);
}

.events-cta {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background-color: var(--secondary-color);
    border-radius: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.events-cta p {
    font-size: 1.1rem;
    color: #333;
}

.events-cta a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.events-cta a:hover {
    color: #F7941D;
    text-decoration: underline;
}

/* Locations Section */
.locations {
    background-color: white;
    margin: var(--spacing);
    padding: var(--spacing);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.locations-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: #666;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.location-card-container {
    position: relative;
}

.location-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #fff 100%);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.location-card.clickable {
    cursor: pointer;
}

.location-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.location-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.location-card p {
    color: #666;
    font-size: 1rem;
}

.location-card .expand-indicator {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.location-card:hover .expand-indicator {
    background-color: #F7941D;
}

.location-card-container.expanded .expand-indicator .expand-icon {
    content: '×';
}

.location-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.3s ease, visibility 0.3s ease;
    background-color: white;
    border-radius: 0 0 10px 10px;
    margin-top: -10px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    display: block;
}

.location-card-container.expanded .location-details {
    max-height: 800px;
    padding: 2rem;
    border: 2px solid var(--secondary-color);
    border-top: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 1;
    visibility: visible;
}

.location-info {
    margin-bottom: 1.5rem;
    text-align: left;
}

.location-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.location-info p {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.6;
}

.location-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.location-info a:hover {
    text-decoration: underline;
}

.location-map {
    margin-top: 1rem;
}

.location-map iframe {
    transform: translateY(-2px);
}

.locations-cta {
    margin-top: 3rem;
    background-color: var(--secondary-color);
    border-radius: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.locations-cta p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.cta-phone {
    font-size: 1.5rem;
    font-weight: 600;
}

.cta-phone a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cta-phone a:hover {
    color: #8b6fa8;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .privacy-policy {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .privacy-policy h1 {
        font-size: 2rem;
    }
    
    .privacy-policy h2 {
        font-size: 1.5rem;
    }
    
    .research-page {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .research-page h1 {
        font-size: 2rem;
    }
    
    .research-section h2 {
        font-size: 1.5rem;
    }
    
    .research-cta {
        padding: 2rem 1.5rem;
    }
    
    .research-cta h3 {
        font-size: 1.5rem;
    }
    
    .research-category {
        padding: 1.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .research-paper {
        padding: 1.5rem;
    }
    
    .paper-title {
        font-size: 1.2rem;
    }
    
    .paper-authors {
        font-size: 0.9rem;
    }
    
    .paper-links {
        flex-direction: column;
    }
    
    .paper-link {
        text-align: center;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .location-details {
        max-height: 0 !important;
        padding: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .location-card-container.expanded .location-details {
        max-height: 1000px !important;
        padding: 1.5rem !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-date {
        padding: 1.5rem 1rem;
        min-height: 100px;
    }
    
    .event-month {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .event-day {
        font-size: 2.8rem;
    }
    
    .gallery {
        padding: 3rem 1.5rem;
    }
    
    .gallery-event {
        padding: 1.5rem;
    }
    
    .gallery-event .event-title {
        font-size: 1.4rem;
    }
    
    .carousel-container {
        padding: 1rem;
    }
    
    .carousel-image {
        max-height: 350px;
    }
    
    .prev-btn {
        left: 10px;
        font-size: 2rem;
        padding: 0.25rem 0.75rem;
    }
    
    .next-btn {
        right: 10px;
        font-size: 2rem;
        padding: 0.25rem 0.75rem;
    }
    
    .carousel-caption {
        font-size: 0.9rem;
    }
}

/* Ooma Contact Widget Custom Styling */
/* Override Material-UI widget colors to match brand orange */

/* Target the main floating action button */
#contact-us-toggle .MuiFab-primary,
#contact-us-toggle button.MuiFab-primary {
    background-color: #D67628 !important;
}

#contact-us-toggle .MuiFab-primary:hover,
#contact-us-toggle button.MuiFab-primary:hover {
    background-color: #F7941D !important;
}

/* Target the SVG icon color */
#contact-us-toggle .MuiFab-primary svg,
#contact-us-toggle .MuiFab-primary path {
    fill: white !important;
}

/* Target any primary colored elements in the widget iframe content */
#contact-us-widget-iframe {
    color-scheme: light;
}

/* Additional MUI component overrides */
#contact-us-toggle .MuiPaper-root {
    border: 2px solid #D67628;
}

/* If there are buttons inside the iframe, this won't work due to iframe restrictions */
/* Colors inside the iframe need to be set via the widget config or Ooma dashboard */
