:root {
    --primary-color: #00A7B5;
    --secondary-color: #005F66;
    --text-color: #333333;
    --light-gray: #f8f8f8;
    --white: #ffffff;
    --section-bg: #f0f7f8; /* Light teal background */
    --max-width: 1200px;
    --section-padding: 80px 0;
    --card-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* Header & Navigation */
.site-header {
    /* Positioning */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    
    /* Box Model */
    width: 100%;
    
    /* Visual */
    background: var(--white);
    box-shadow: var(--card-shadow);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 15px;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 66px;
}

.site-logo {
    width: 150px;
    height: auto;
    display: flex;
    align-items: center;
}

.site-logo img {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.main-navigation {
    flex-grow: 1;
    text-align: right;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #e96c2f;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: none;
    letter-spacing: normal;
    transition: color 0.3s;
    padding: 15px 0;
    display: inline-block;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.nav-button {
    color: var(--primary-color);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    margin-left: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.nav-button:hover {
    opacity: 0.8; /* Simple hover effect */
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: var(--primary-color);
    transition: color 0.3s;
}

.menu-toggle:hover {
    color: var(--secondary-color);
}

@media (max-width: 1024px) {
    .header-container {
        padding: 10px 20px;
    }

    .main-navigation ul {
        gap: 1rem;
    }

    .main-navigation a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        padding: 15px 20px;
        display: block;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .nav-button {
        margin: 15px 20px;
        padding: 0.7rem 1.5rem;
        display: block;
        text-align: center;
    }

    .site-header {
        padding: 10px 0;
    }

    .hero-section {
        min-height: 220px;
        padding: 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .contact-container {
        padding: 0 1rem;
        margin-top: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }

    .team-member-image {
        width: 180px;
        height: 180px;
    }

    .team-member {
        padding: 1.5rem;
    }

    .team-member h3 {
        font-size: 1.2rem;
    }

    .service-hero {
        padding: 120px 0 40px;
        min-height: 250px;
    }

    .service-hero h1 {
        font-size: 2.2rem;
    }

    .service-content {
        padding: 1rem;
    }
    
    .service-content h2 {
        font-size: 1.8rem;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
    }

    .service-image {
        float: none;
        width: 100%;
        margin: 1rem 0 2rem;
    }

    .map-container iframe {
        height: 350px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .header-container {
        height: 55px;
    }
    
    .site-logo {
        width: 125px;
    }
    
    .site-logo img {
        max-height: 50px;
    }
}

/* Hero Section */
.hero-section {
    /* Add will-change to optimize rendering */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    /* Add loading strategy for background image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                    url('../images/mortdale-clinic.webp');
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                    var(--hero-image);
    background-position: left center;
    background-size: cover;
    background-repeat: no-repeat;
    
    /* Rest of existing styles */
    padding: 0;
    text-align: left;
    color: var(--white);
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--white);
}

.hero-buttons {
    margin-top: 2rem;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0.5rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 2px solid var(--white);
}

.button:hover {
    background: transparent;
    color: var(--white);
}

.button.outline {
    background: transparent;
    color: var(--white);
}

.button.outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Content Sections */
.content-section {
    padding: var(--section-padding);
    padding-top: 2rem;
}

.content-section:nth-of-type(even) {
    background-color: var(--section-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.section-title h6 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Treatments Section */
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.treatment-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
    overflow: hidden;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.treatment-card:hover {
    transform: translateY(-5px);
}

.treatment-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.treatment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    loading: lazy;
}

.treatment-card:hover .treatment-image img {
    transform: scale(1.05);
}

.treatment-content {
    padding: 2rem;
}

.treatment-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.treatment-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.team-member {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
    text-align: center;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    loading: lazy;
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.team-member h4 {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.team-member p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.team-member p:last-child {
    margin-bottom: 0;
}

/* Contact Section Styles */
#contact.content-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

#contact .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

#contact h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

#contact h6 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .button {
    width: auto;
    min-width: 200px;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-left: 0;
    display: inline-block;
}

.contact-form .button:hover {
    background: var(--secondary-color);
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    height: fit-content;
    transition: transform 0.3s;
    justify-self: end;
    width: 100%;
}

.contact-info:hover {
    transform: translateY(-5px);
}

/* Footer Styles */
.site-footer {
    background-color: #406a80;
    color: var(--white);
    padding: 3rem 0;
}

.site-footer .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 30px;
}

.site-footer p {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.site-footer i {
    font-size: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b4e7e4;
}

.site-footer .container span {
    line-height: 1.4;
    font-size: 0.95rem;
    color: #b4e7e4;
}

.site-footer a {
    color: #b4e7e4;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--white);
    opacity: 0.8;
}

@media (max-width: 992px) {
    .site-footer .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .site-footer p:nth-last-child(2),
    .site-footer p:last-child {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .site-footer .container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 0 1rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.about-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.about-item:hover {
    transform: translateY(-5px);
}

.about-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-item h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.about-item p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
    word-wrap: normal;
    overflow-wrap: break-word;
    hyphens: none;
    max-width: 100%;
}

/* Special handling for email without breaking words */
.about-item p:last-child {
    font-size: 0.9rem;
    word-break: normal;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Add specific handling for email addresses */
.about-item p a {
    word-break: break-word;
}

@media (max-width: 1200px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
}

/* Add a new breakpoint for medium-sized screens */
@media (min-width: 769px) and (max-width: 991px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Add a breakpoint for larger tablets */
@media (min-width: 992px) and (max-width: 1199px) {
    .about-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .about-item {
        padding: 1.25rem;
    }

    .about-item p {
        font-size: 0.9rem;
    }
}

/* Add these styles to your existing CSS */
.privacy-section {
    padding-top: 120px;
}

.privacy-section h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.privacy-content section {
    margin-bottom: 2rem;
}

.privacy-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

/* Map Section */
.map-section {
    background: var(--light-gray);
}

.map-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }
}

/* Service Pages Styles */
.service-hero {
    padding: 140px 0 60px;
    min-height: 300px;
    background-position: center;
    background-size: cover;
    margin-top: 0;
    display: flex;
    align-items: center;
}

.service-hero .container {
    width: 100%;
}

.service-hero h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.service-hero p {
    color: var(--white);
    font-size: 1.2rem;
    margin: 0;
}

.osteopath-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                      url('../images/osteopathy.jpg');
}

.massage-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                      url('../images/massage.jpg');
}

.reiki-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                      url('../images/reiki.jpg');
}

.service-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    position: relative;
    scroll-margin-top: 120px;
}

.service-content-main {
    grid-column: 1;
}

.service-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-content h3 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.service-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.cta-section {
    grid-column: 2;
    align-self: start;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    margin-bottom: 2rem;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--card-shadow);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.cta-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-section .button {
    display: inline-block;
    margin-top: 1rem;
    background: var(--primary-color);
    color: var(--white);
}

.cta-section .button:hover {
    background: var(--secondary-color);
    color: var(--white);
}

@media (max-width: 992px) {
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .cta-section {
        position: relative !important;
        top: auto !important;
        grid-column: 1;
        max-height: none;
        overflow-y: visible;
        width: 100%;
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .service-content-main {
        padding: 0;
    }

    .service-image {
        float: none;
        width: 100%;
        margin: 1rem 0 2rem;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .service-hero h1 {
        font-size: 2rem;
    }

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

    .service-content {
        padding: 1rem;
    }

    .service-content h2 {
        font-size: 1.6rem;
    }

    .service-content h3 {
        font-size: 1.3rem;
    }

    .cta-section {
        position: relative !important;
        top: auto !important;
        padding: 1.25rem;
        margin: 1rem 0;
    }

    .cta-section h3 {
        font-size: 1.4rem;
    }

    .cta-section .button {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }
}

/* Keep this one global definition */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Service Page Images */
.service-image {
    float: right;
    width: 300px;
    height: auto;
    margin: 0 0 2rem 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    max-width: 100%;
    loading: lazy;
}

@media (max-width: 768px) {
    .service-image {
        float: none;
        width: 100%;
        margin: 1rem 0 2rem;
    }
}

/* Ensure content flows correctly */
main {
    position: relative;
    z-index: 1;
}

/* Add responsive adjustments */
@media (min-width: 1400px) {
    .hero-section {
        background-size: 100% auto; /* This will ensure the full height is visible on wider screens */
        background-position: left center;
    }
}

@media (max-width: 1399px) {
    .hero-section {
        background-size: cover;
        background-position: left 10%;
    }
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Improve focus visibility */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Add skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 1001;
}

.skip-link:focus {
    top: 0;
}

@media print {
    .site-header, .hero-section, .cta-section, .site-footer {
        display: none;
    }
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Global link styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Keep footer links white */
.site-footer a {
    color: var(--white);
}

.site-footer a:hover {
    color: var(--white);
    opacity: 0.8;
}

/* Keep nav links orange until hover */
.main-navigation a {
    color: #e96c2f;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Keep nav button white */
.nav-button {
    color: #e96c2f; /* Match navigation color */
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    margin-left: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.nav-button:hover {
    opacity: 0.8; /* Simple hover effect */
}

/* About section link styles */
.about-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block; /* Better handling of long email addresses */
}

.about-item a:hover {
    color: var(--secondary-color);
}

/* Update the existing about-item p a style */
.about-item p a {
    word-break: break-word;
    display: inline-block;
    width: 100%;
}

/* Move all media queries to the end of the file */
/* Create sections for different breakpoints */
/* Large screens */
/* @media (min-width: 1400px) { ... } */

/* Desktop and large tablets */
/* @media (min-width: 992px) and (max-width: 1399px) { ... } */

/* Tablets */
/* @media (min-width: 768px) and (max-width: 991px) { ... } */

/* Mobile */
/* @media (max-width: 767px) { ... } */

/* Common card styles */
.card-base,
.treatment-card,
.team-member,
.about-item,
.contact-form {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

/* Add form status styles */
.form-status {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-status.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Add error page specific styles */
.error-page {
    padding-top: 120px; /* Match other pages' header offset */
    min-height: calc(100vh - 300px); /* Ensure footer stays at bottom */
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .error-page {
        padding-top: 80px;
        min-height: calc(100vh - 250px);
    }
}

/* Update hero logo styles */
.hero-logo {
    max-width: 100%;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

@media (max-width: 768px) {
    .hero-logo {
        margin-bottom: 1rem;
    }
}

/* Update About section background */
#about.content-section {
    background-color: #406a80;
    padding: var(--section-padding);
}

/* Update content section nth-of-type rule to not interfere */
.content-section:nth-of-type(even) {
    background-color: var(--section-bg);
}

/* Add exception for about section */
#about.content-section:nth-of-type(even) {
    background-color: #406a80;
}

/* Update About section text color - only for section title */
#about.content-section .section-title h2,
#about.content-section .section-title p {
    color: white;
}

/* Reset about-item text color */
#about.content-section .about-item p {
    color: var(--text-color);
}

/* Keep about item headings in their original color */
#about.content-section .about-item h3 {
    color: var(--primary-color);
}

/* Keep about item links in their original color */
#about.content-section .about-item a {
    color: var(--primary-color);
}

#about.content-section .about-item a:hover {
    color: var(--secondary-color);
}

/* Reset section title h2 color for other sections */
.section-title h2 {
    color: var(--primary-color);
}

/* Add preload hint for hero image */
@media (min-width: 768px) {
    .hero-section {
        background-size: 100% auto;
    }
} 