/* Additional utility styles and enhancements */

/* Meet Kelly Section - Remove top padding */
.meet-kelly.section {
    padding-top: 0;
}

/* 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;
}

.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;
    }

    .social-sidebar {
        right: 10px;
    }

    .social-sidebar a {
        width: 35px;
        height: 35px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .newsletter-content-contact {
        grid-template-columns: 1fr;
    }

    /* 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) {
    #mobileMenuBtn {
        display: block;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .auth-container {
        position: static;
        transform: none;
        margin-left: auto;
        margin-right: 1rem;
    }

    .auth-button {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    nav {
        position: static;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav ul.mobile-active {
        max-height: 400px;
        padding: 1rem 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }

    .hero-banner {
        padding: 0;
    }

    .hero-banner-content {
        width: auto;
        max-width: none;
        margin-left: calc(1.5rem - 30px);
        margin-right: 1.5rem;
    }

    .hero-banner h1 {
        font-size: 28px;
    }

    .hero-banner h2 {
        font-size: 18px;
    }

    .hero-banner-content {
        padding: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section-title {
        font-size: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links-section {
        align-items: center;
    }

    .footer-nav-links {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-logo {
        justify-self: center;
        margin-bottom: 1.5rem;
    }

    #backToTop {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }

    .social-sidebar {
        display: none;
    }

    .call-content,
    .newsletter-content {
        grid-template-columns: 1fr;
    }

    .call-image,
    .newsletter-image {
        order: -1;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-image-section {
        order: 2;
    }

    .contact-form-section {
        order: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .newsletter-content-contact {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .newsletter-image-contact {
        order: -1;
    }

    /* Testimonials responsive adjustments for tablets */
    .testimonial-slider {
        margin-left: 60px;
        margin-right: 60px;
        padding: 2rem;
        min-height: 320px;
    }

    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .testimonial-prev {
        left: 15px;
    }

    .testimonial-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 0;
        min-height: 400px;
    }

    .hero-banner-content {
        width: auto;
        max-width: none;
        margin-left: calc(1rem - 30px);
        margin-right: 1rem;
    }

    .hero-banner h1 {
        font-size: 24px;
    }

    .hero-banner h2 {
        font-size: 16px;
    }

    .hero-banner-content {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .programme-box,
    .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-contact {
        padding: 1.5rem;
    }

    .auth-button {
        padding: 0.35rem 0.8rem;
        font-size: 0.8rem;
    }

    .modal-content {
        margin: 30% auto;
        padding: 1rem;
    }

    /* Testimonials responsive adjustments for mobile */
    .testimonial-slider {
        margin-left: 0;
        margin-right: 0;
        padding: 1.5rem;
        min-height: 350px;
    }

    .testimonial-nav {
        width: 35px;
        height: 35px;
        font-size: 1.8rem;
    }

    .testimonial-prev {
        left: 10px;
    }

    .testimonial-next {
        right: 10px;
    }

    .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;
    }
}
