/* Additional utility styles and enhancements */

/* Meet Kelly Section - Remove top padding */
.meet-kelly.section {
    padding-top: 0;
}

.purple-button{
    background:#6B5480;
    width:40vw !important;
    min-width:50vw !important;
    padding:10px 0 !important;
    font-size:18px !important;
}

/* Contact Page Specific Styles */
.contact-section {
    background-color: #ffffff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-image-section {
    text-align: center;
}

.contact-image-section img {
    max-width: 100%;
    height: auto;
}

.contact-form-section {
    padding: 2rem 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
}

.form-group.half-width {
    margin-bottom: 1.5rem;
}

.footer-nav-links{
    display:none
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #6B5480;
}

.form-submit {
    text-align: right;
    margin-top: 1.5rem;
}

.submit-button {
    background-color: rgb(3,87,114);
    color: #ffffff;
    padding: 0.75rem 2rem;
    font-size: 16px;
    font-weight: 200;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: rgb(240,128,128);
    transform: translateY(-2px);
}

/* Newsletter Section on Contact Page */
.newsletter-section {
    background-color: rgb(165, 197, 190) !important;
}
.newsletter-content-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    border-radius: 0;
}

.newsletter-text-contact h1 {
    padding: 2rem 2rem 0 2rem;
    color: #FFFFFF;
}

.newsletter-text-contact p {
    padding: 0 2rem;
    color: #FFFFFF;
}
.newsletter-text-contact a {
    margin: 2rem;
    color: #FFFFFF;
}

.newsletter-image-contact img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* Social Media Sidebar */
.social-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-sidebar a {
    display: block;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-sidebar a:hover {
    transform: scale(1.1);
}

.social-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Placeholder image styling */
.placeholder-image {
    background: linear-gradient(135deg, #6B5480 0%, #8B7BA8 100%);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border-radius: 0;
}

.programme-image .placeholder-image {
    height: 286px;
}

/* Mobile Navigation Toggle Button */
#mobileMenuBtn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    margin-left: auto;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: rgb(3,87,114);
    color: var(--text-light);
    border: none;
    border-radius: 0;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    background-color: rgb(240,128,128);
    transform: translateY(-3px);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.form-message {
    padding: 1rem;
    border-radius: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 992px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .hero-banner-content {
        width: auto;
        max-width: none;
        margin-left: calc(1.5rem - 12px);
        margin-right: 1.5rem;
    }

    .hero-banner h1 {
        font-size: 32px;
    }

    .hero-banner h2 {
        font-size: 20px;
    }

    .section {
        padding: 3.5rem 0;
    }

    .newsletter-section{
        padding: 3.5rem 0 3.5rem 0 !important;
    }

    .social-sidebar {
        right: 10px;
    }

    .social-sidebar a {
        width: 35px;
        height: 35px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .newsletter-content-contact {
        grid-template-columns: 1fr;
    }

    /* Complimentary Call Section - Reorder content on mobile */
    .complimentary-call .call-content {
        display: flex;
        flex-direction: column;
    }

    .complimentary-call .call-text {
        display: flex;
        flex-direction: column;
        order: 1;
    }

    .complimentary-call .call-text h1 {
        order: 1;
    }

    .complimentary-call .call-text p {
        order: 2;
    }

    .complimentary-call .call-text ul {
        order: 3;
    }

    .call-image img{
        margin-top:20px;
        width:90vw !important;
    }

    .complimentary-call .call-image {
        order: 2;
        text-align: center;
        margin: 2rem 0;
    }

    .complimentary-call .call-text .cta-button {
        order: 4;
        display: block;
        width: fit-content;
        margin: 2rem auto 0 auto;
    }

    /* Testimonials responsive adjustments */
    .testimonial-slider {
        margin-left: 80px;
        margin-right: 80px;
        padding: 2.5rem 3rem;
        min-height: 280px;
    }

    .testimonial-prev {
        left: 20px;
    }

    .testimonial-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    .meet-kelly {
        background-color: var(--background-white);
        padding-top: 0;
    }

        .meet-kelly .about-text {
            float: left;
            padding: 7rem 2rem 0 2rem;
            width: 100%;
        }

            .meet-kelly .about-text .cta-button {
                min-width: 120px !important;
                text-align: center;
                width: 130px !important;
            }

            .meet-kelly .about-text h1 {
                font-size: 24px;
                margin: 4rem 0 1.5rem 0;
                color: var(--text-dark);
                font-weight: 200;
                text-transform: uppercase;
            }

            .meet-kelly .about-text p {
                font-size: 18px;
                line-height: 1.4em;
                margin-bottom: 1.5rem;
                color: #000;
                font-family: 'Brandon Grotesque', sans-serif;
                font-weight: 200;
            }

        .meet-kelly .about-image {
            border-radius: 0;
            overflow: hidden;
            width:100%;
            float: left;
        }

            .meet-kelly .about-image img {
                width: 100%;
                height: auto;
                display: block;
            }
    header {
        overflow-x: hidden;
    }

    #mobileMenuBtn {
        display: block;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Logo adjustments */
    .logo {
        flex-shrink: 1;
        max-width: 200px;
    }

    .logo img {
        max-width: 100%;
        height: auto;
    }

    /* Hide auth button on mobile - it will be in the menu */
    .auth-container {
        display: none;
    }

    /* Mobile menu button */
    #mobileMenuBtn {
        order: 3;
        margin-left: auto;
    }

    /* Navigation adjustments */
    nav {
        position: static;
        float: none;
        width: 100%;
        order: 4;
    }

    nav ul {
        position: static;
        width: 100%;
        background-color: var(--background-white);
        box-shadow: none;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        margin: 0;
    }

    nav ul.mobile-active {
        max-height: 500px;
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Add login button to mobile menu */
    nav ul li:last-child {
        border-bottom: none;
    }

    /* Create login menu item for mobile */
    nav ul.mobile-active::after {
        content: '';
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .hero-banner {
        padding: 0;
    }

    .hero-banner-content {
        width: auto;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        margin-top: 2rem;
        margin-bottom: 2rem;
        text-align: center;
        align-items: center;
    }

    .hero-banner h1 {
        font-size: 28px;
    }

    .hero-banner h2 {
        font-size: 18px;
    }

    .hero-banner-content {
        padding: 2rem;
    }

    /* About image centering */
    .about-image{
        height:450px;
        margin:2rem 0 -4rem 0;
    }
    .about-image img,
    .meet-kelly .about-image img {
        margin-left: auto;
        width:100%;
        margin-right: auto;
        display: block;
    }

    .about-text h1{
        margin:0 0 2rem 0 !important;
    }
    /* Section title adjustments */
    .section-title-left {
        margin-left: 0;
    }

    .section-title {
        text-align: left;
    }

    /* Wellness text padding */
    .wellness-text {
        padding: 0;
    }

    /* Testimonial adjustments */
    .testimonial-slider {
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        padding: 2rem;
        min-height: 320px;
    }

    .testimonial-nav {
        display: none;
    }

    /* Certification logos - keep all on one line */
    .cert-logos {
        flex-wrap: nowrap;
        gap: 1rem;
        justify-content: space-between;
    }

    .cert-logos img {
        max-width: 30%;
        width: 30%;
        height: auto;
        flex-shrink: 1;
    }

    /* Newsletter image reordering - e-book image after list */
    .newsletter-content {
        display: flex;
        flex-direction: column;
    }

    .newsletter-image {
        order: 2;
    }

    .newsletter-text {
        order: 1;
    }

    /* Newsletter image reordering for contact page - image on top */
    .newsletter-content-contact {
        display: flex;
        flex-direction: column;
    }

    .newsletter-image-contact {
        order: 1;
    }

    .newsletter-image-contact{
        width:100vw;
        margin-left:-4rem;
        margin-bottom:-6rem;
        float:left;
    }

    .newsletter-text_contact {
        order: 2;
    }
}

@media (max-width: 480px) {
    h1{
        font-size:24px !important;
        padding:0 !important;
        margin-bottom:0;
    }
    .nav-container {
        padding: 0 0.75rem;
    }

    .logo {
        max-width: 150px;
    }

    .hero-banner {
        padding: 0 0 4rem 0;
        min-height: 400px;
    }
    .newsletter-text p {
       letter-spacing:0px !important;
       font-size:22px !important;
        color: #FFFFFF;
    }

    .hero-banner-content {
        width: 90vw;
        margin-left: calc(5vw - 2rem);
    }

    .hero-banner h1 {
        font-size: 36px;
        text-align:left;
    }
    .meet-kelly{
        padding:-15px 0 2rem 0 !important;
    }

    .hero-banner h2 {
        font-size: 16px;
    }

    .hero-banner-content {
        display:block;
        text-align:left;
        padding: 1.5rem 1.5rem 0 1.5rem;
        width:85vw;
        left:2.5vw;
        height:95%;
    }
    .about-text h1{
        font-size:21px !important;
        margin-bottom:20px !important;
    }
    .call-text h1{
        margin-top:20px !important;
        font-size:21px !important;
    }
    .call-content{
        width:110%;
        margin-left:-5%;
    }
    .call-text p {
        line-height: 28px;
        font-weight: 200;
        letter-spacing: 1.2px;
        margin-top: 0px !important;
    }
    .call-image{
        margin:-60px 0 0 0 !important;
    }
    .call-image img{
        width:95%;
    }
    .call-content a {
        float: left;
        order: 3;
        display: block;
        margin: 0 !important;
    }
    .newsletter-image{
        float:left;
        order:0;
        display:block;
    }
    .newsletter-text{
        margin-top:-60px !important;
    }
    .newsletter-text p {
        width:80vw;
    }
    .programme-detail{
        padding-top:20px;
        padding-bottom:40px;
    }
    .programme-text{
        float:left;
        padding-bottom:30px;
    }
    .footer-section{
        margin:0 !important;
        height:140px !important;
        float:left !important;
        width:40vw !important;
        padding:0 !important;
        position:relative;
    }
    .footer-section ul{
        width:100%;
        float:left;
    }
    footer{
        height:240px !important;
    }
    .footer-bottom{
        text-align:center;
        width:100vw;
        margin-top:120px;
        right:0;
    }
    .footer-social-icons {
        margin: 30px 0 0 0 !important;
        float: right !important;
        display: block !important;
        padding-top: 20px !important;
    }
        .footer-social-icons a {
            width: 30px !important;
            height: 30px !important;
            display: block;
            float: left;
            position:relative;
            left:0;
        }
    .footer-social-icons a img {
        width:30px !important;
        height:30px !important;
        display:block;
        float:left;
    }
    .footer-section img:first-child {
        width: 40vw !important;
        margin-top:0px !important;
        position: absolute;
    }
    .call-text{
        width:calc(100vw - 40px);
    }
    .call-text p {
        padding:5px !important;
        font-size:21px !important;
        letter-spacing:0px !important;
    }
    .call-text ul{
        padding-left:15px !important;
    }
    .call-text ul li{
        font-size:21px;
        margin:0;
    }
    .call-text p strong {
        font-size: 21px;
        width: 130%;
        margin-left: 0px;
        float: left;
        letter-spacing:0px;
        display: block;
        font-weight: 500;
    }
    .hero-banner-content h1 {
        font-size: 28px !important;
        width: 100%;
        margin-top: 15px;
        text-align: left;
        font-weight: 200;
        float: left;
    }
    .about-text h1{
        margin-top:-50px !important;
    }
    #mobileMenuBtn {
        width: 60px;
        height: 60px;
        margin-top: -10px;
        font-size: 38px !important;
    }
    .logo img {
        width: 200% !important;
    }
    .hero-banner-content h2 {
        font-size: 24px !important;
        width: 100%;
        letter-spacing: 0.4px;
        margin-top: 15px;
        text-align: left;
        font-weight: 200;
    }

    .section-title-left{
        font-size:21px !important;
    }
    .programmes-section {
        padding: 1rem 0 0 0 !important;
    }
    .programmes-grid{
        margin-top:-30px !important;
    }

    .full-on {
        background: rgb(232,235,238) !important;
        padding: 2rem 0 2rem 0 !important;
        margin-bottom:16px;
    }

    .call-text p {
        padding:0;
    }
    .call-text ul {
        padding: 0 2rem 0 0;
    }
    .programme-box p {
        padding: 0 0 2rem 0 !important;
        font-size: 21px;
        letter-spacing: 0.1px;
    }
    .programme-box h2{
        font-size:24px;
        text-align:left;
        padding:0;
        letter-spacing:0.1px;
        margin-left:0;
    }

    .cta-button {
        padding: 10px 2rem;
        left: 20vw;
        font-size: 18px;
        margin: 0 auto !important;
        display: block;
        letter-spacing:0px;
        text-align: center;
        min-width:60vw;
        max-width: 70vw;
    }

    .programme-box {
        padding: 1.5rem;
    }
    .programme-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .testimonial-slide {
        padding: 1rem;
    }

    .testimonial-text {
        font-size: 16px;
    }

    .contact-form-section {
        padding: 1rem 0;
    }

    .newsletter-content {
        margin-bottom:-30px !important;
    }

    .newsletter-content-contact {
        padding: 1.5rem;
    }
    .cert-logos img {
        object-fit :cover;
        width: 100px !important;
        height: 100px !important;
    }
    .modal-content {
        margin: 30% auto;
        padding: 1rem;
    }

    /* Certification logos - keep all on one line on small screens */
    .cert-logos {
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .cert-logos img {
        max-width: 32%;
        width: 32%;
        height: auto;
        object-fit: contain;
    }

    /* Testimonials responsive adjustments for mobile */
    .testimonial-slider {
        margin-left: 5vw;
        margin-right: 0;
        border-width:1.3px;
        padding: 0.3rem;
        width:90vw;
        min-height: 350px;
    }
    .testimonial-text{
        font-size:22px;
        font-size:22px;
        line-height:30px;
        letter-spacing:0.3px;
    }

    .testimonial-author {
        font-weight: 500;
        font-size: 22px;
    }

    .testimonial-nav {
        width: 35px;
        height: 35px;
        font-size: 1.8rem;
    }

    .testimonial-prev {
        left: 10px;
    }

    .testimonial-next {
        right: 10px;
    }

    .testimonials{
        margin-top:3rem;
    }

    .testimonials .container {
        padding: 0 0.5rem;
    }

    .testimonial-slide {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    header, footer, .cta-button, #backToTop, .social-sidebar {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}
