/* Minimal Greek Font Improvements - Preserving Original Design */

/* Import better Greek font support while keeping original look */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600;700&display=swap');

/* Make Noto Sans the main font with Source Sans Pro as fallback */
body {
    font-family: "Noto Sans", "Source Sans Pro", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Apply Noto Sans to all text elements */
h1, h2, h3, h4, h5, h6, p, a, span, div, li {
    font-family: "Noto Sans", "Source Sans Pro", Helvetica, Arial, sans-serif;
}

/* Just improve Greek text weight slightly for better readability */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Minimal banner text improvement */
.mainheading {
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-size: 1.6rem !important;
    color: #3A3A66 !important;
}

/* Banner paragraph styling */
.par {
    color: #4B4B4B !important;
}

/* Slight improvement to paragraph text readability */
p {
    font-weight: 400;
    line-height: 1.6;
}

/* Better mobile font sizes - preserving responsive behavior */
@media screen and (max-width: 768px) {
    .mainheading {
        font-size: 1.8rem;
    }
    
    p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .mainheading {
        font-size: 1.6rem;
    }
    
    p {
        font-size: 0.95rem;
    }
}

/* Fix contact section heading visibility */
#footer .minor {
    color: #3A3A66 !important;
}

/* Fix contact section text color to match rest of site */
#footer p {
    color: #4B4B4B !important;
}

/* Fix contact form visibility */
#footer label {
    color: #4B4B4B !important;
}

#footer input, #footer textarea {
    color: #4B4B4B !important;
    background-color: #ffffff !important;
}

/* Fix contact information and social media links */
#footer .contact li {
    color: #4B4B4B !important;
}

#footer .contact a {
    color: #4B4B4B !important;
}

#footer .contact a:hover {
    color: #3A3A66 !important;
}

/* Fix team section article headings visibility */
.features article h2.major, .features article h3.major {
    color: #3A3A66 !important;
}

/* New team section styling */
.team-highlight {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.team-image {
    flex: 1;
    max-width: 400px;
}

.team-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.team-content {
    flex: 1;
    padding-left: 1rem;
}

.team-content h3 {
    font-family: 'Source Sans Pro', 'Noto Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #3A3A66;
    margin-bottom: 1rem;
}

.team-content p {
    color: #4B4B4B;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Mobile responsiveness for team section */
@media screen and (max-width: 768px) {
    .team-highlight {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .team-content {
        padding-left: 0;
    }
    
    .team-image {
        max-width: 100%;
    }
}

/* About page banner - completely override all backgrounds */
body.about-page header.about-banner,
body.about-page .about-banner {
    background: url("../../images/bg.jpg") center center / cover no-repeat !important;
    background-color: transparent !important;
    background-attachment: local !important;
    position: relative !important;
    /* Constrain the banner height */
    min-height: 400px;
    max-height: 500px;
    overflow: hidden;
}

/* Remove any overlays that might interfere */
body.about-page .banner-overlay {
    background: none !important;
}

/* Remove body background influence on about page banner area */
body.about-page header.about-banner *,
body.about-page .about-banner * {
    background: none !important;
}

/* Team page banner - remove custom background, let body background flow through */
body.team-page #wrapper > header.about-banner,
body.team-page header.about-banner,
body.team-page section#wrapper > header {
    background: none !important;
    background-color: transparent !important;
    position: relative !important;
    min-height: 400px;
    max-height: 500px;
    overflow: hidden;
}

/* Remove body background influence on team page banner area */
body.team-page #wrapper > header *,
body.team-page header.about-banner * {
    background: none !important;
}

/* Banner overlay styling - contained to banner only */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 49, 65, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    box-sizing: border-box;
    z-index: 2;
    /* Ensure it doesn't overflow banner boundaries */
    overflow: hidden;
}

.banner-overlay h2.major {
    color: white !important;
    text-align: center;
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* About page banner text styling */
body.about-page .banner-overlay h2.major,
body.about-page .about-banner h2.major {
    color: #3A3A66 !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    font-size: 2.5rem !important;
}

/* Team page header styling without overlay */
.about-banner .inner {
    padding: 4rem 2rem;
    text-align: center;
}

.about-banner .inner h2.major {
    color: #3A3A66 !important;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    margin: 0;
    opacity: 0;
    animation: fadeInUpSmooth 1.6s ease-in-out forwards;
    animation-delay: 0.5s;
}

/* Animation keyframes for smooth fade in */
@keyframes fadeInUpSmooth {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About page footer - remove overlay, let natural background flow */
body.about-page #footer {
    background: none !important;
    background-color: transparent !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: -10px !important;
}

/* Remove the dark overlay completely */
body.about-page #footer::before {
    display: none !important;
}

body.about-page #footer .inner {
    position: relative;
    z-index: 2;
    margin: 0;
    padding-top: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Team page footer - remove custom background, let body background flow through */
body.team-page #footer {
    background: none !important;
    background-color: transparent !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: -10px !important;
}

/* Remove body background influence on team page footer area */
body.team-page #footer *,
body.team-page #footer:before,
body.team-page #footer:after {
    background: none !important;
}

body.team-page #footer .inner {
    position: relative;
    z-index: 2;
    margin: 0;
    padding-top: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Team page footer copyright styling */
.team-page #footer .copyright,
.team-page #footer .copyright li {
    color: #4B4B4B !important;
}

.team-page #footer .copyright li a {
    color: #4B4B4B !important;
}

.team-page #footer .copyright li a:hover {
    color: #3A3A66 !important;
}

/* About page footer copyright styling */
body.about-page #footer .copyright,
body.about-page #footer .copyright li {
    color: #4B4B4B !important;
}

body.about-page #footer .copyright li a {
    color: #4B4B4B !important;
}

body.about-page #footer .copyright li a:hover {
    color: #3A3A66 !important;
}

/* Remove decorative lines after headings on about page */
.about-modern .major::after {
    display: none !important;
}

.about-modern .major::before {
    display: none !important;
}

.about-modern h2, .about-modern h3 {
    border-bottom: none !important;
    border-top: none !important;
}

/* Reduce gap between headings and text on about page */
.about-modern .major {
    margin-bottom: 1rem !important;
}

.about-modern p {
    margin-top: 0 !important;
}

/* Style h3 headings to be smaller than h2 */
.about-modern h3.major {
    font-size: 1.4rem !important;
    color: #3A3A66 !important;
}

/* Style therapy service names in about page */
.about-modern strong {
    color: #3A3A66 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-decoration-color: #3A3A66 !important;
    text-underline-offset: 2px !important;
}

/* Team page header styling without overlay */
.about-banner .inner {
    padding: 4rem 2rem;
    text-align: center;
}

.about-banner .inner h2.major {
    color: #3A3A66 !important;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    margin: 0;
}

/* Responsive header */
@media screen and (max-width: 768px) {
    .about-banner .inner {
        padding: 3rem 1.5rem;
    }
    
    .about-banner .inner h2.major {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .about-banner .inner {
        padding: 2.5rem 1rem;
    }
    
    .about-banner .inner h2.major {
        font-size: 1.7rem;
    }
}

/* Therapist Profiles Styling */
.therapist-profiles {
    margin-top: 3rem;
}

.therapist-profile {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 3rem;
    flex-direction: row; /* Default: photo left */
}

/* Horizontal separator between therapists */
.therapist-separator {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #3A3A66, transparent);
    margin: 3rem 0;
    opacity: 0.3;
}

.therapist-photo {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    order: 1; /* Default order for left photos */
}

.therapist-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top; /* This will position the image to show more of the upper part */
    border: 4px solid #3A3A66;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    /* Improve image quality */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Adjust Βικτωρας Καρβελας photo positioning */
.therapist-photo img[src="images/team_victoras.jpeg"] {
    object-position: center 30% !important; /* Move head up - 30% from top instead of center */
}

.therapist-info {
    flex: 1;
    order: 2; /* Default order for text */
}

.therapist-info h3 {
    color: #3A3A66;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.therapist-info h4 {
    color: #3A3A66;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-decoration: none;
}

.therapist-info p {
    color: #4B4B4B;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* Therapist credentials styling */
.therapist-credentials {
    font-size: 0.9rem !important;
    color: #666 !important;
    font-style: italic;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

/* Right photo layout - use CSS order instead of flex-direction */
.therapist-profile.right-photo .therapist-photo {
    order: 2; /* Photo goes to the right */
}

.therapist-profile.right-photo .therapist-info {
    order: 1; /* Text goes to the left */
    text-align: right;
}

/* Left photo layout - explicit ordering */
.therapist-profile.left-photo .therapist-photo {
    order: 1; /* Photo stays on the left */
}

.therapist-profile.left-photo .therapist-info {
    order: 2; /* Text stays on the right */
    text-align: left;
}

/* Responsive design */
@media screen and (max-width: 980px) {
    .therapist-profile {
        gap: 2rem;
    }
    
    .therapist-photo {
        width: 150px;
        height: 150px;
    }
    
    .therapist-info h3 {
        font-size: 1.2rem;
    }
    
    .therapist-info h4 {
        font-size: 1rem;
    }
    
    .therapist-separator {
        margin: 2rem 0;
    }
}

@media screen and (max-width: 768px) {
    .therapist-profile {
        flex-direction: column !important;
        text-align: center;
        gap: 1.5rem;
    }
    
    /* Reset order for mobile - always photo first, then text */
    .therapist-profile .therapist-photo {
        order: 1 !important;
        margin: 0 auto;
    }
    
    .therapist-profile .therapist-info {
        order: 2 !important;
        text-align: center !important;
    }
    
    .therapist-photo {
        width: 180px;
        height: 180px;
    }
    
    .therapist-separator {
        margin: 2rem 0;
    }
}

@media screen and (max-width: 480px) {
    .therapist-profile {
        margin-bottom: 1.5rem;
    }
    
    .therapist-photo {
        width: 150px;
        height: 150px;
    }
    
    .therapist-info h3 {
        font-size: 1.1rem;
    }
    
    .therapist-info h4 {
        font-size: 0.95rem;
    }
    
    .therapist-info p {
        font-size: 0.9rem;
    }
    
    .therapist-separator {
        margin: 1.5rem 0;
    }
}

/* Fix team section heading font size on main page */
#team h2.major {
    font-size: 2.25rem !important;
    color: #3A3A66 !important;
    font-weight: 600 !important;
}

/* Responsive font sizes for main page team heading */
@media screen and (max-width: 768px) {
    #team h2.major {
        font-size: 2rem !important;
    }
}

@media screen and (max-width: 480px) {
    #team h2.major {
        font-size: 1.8rem !important;
    }
}

/* Override main.css media queries for main page to prevent dark backgrounds */
/* Main page banner - keep clean white/transparent background */
@media screen and (max-width: 1280px) {
    body.main-page #banner,
    body.main-page div#page-wrapper #banner {
        background-image: none !important;
        background-color: transparent !important;
        background: transparent !important;
    }
}

/* Main page footer - keep original styling without dark background */  
@media screen and (max-width: 1280px) {
    body.main-page #footer,
    body.main-page div#page-wrapper #footer {
        background-color: transparent !important;
        background-image: none !important;
        background: transparent !important;
    }
}

/* Also override for other common breakpoints */
@media screen and (max-width: 980px) {
    body.main-page #banner,
    body.main-page div#page-wrapper #banner {
        background-image: none !important;
        background-color: transparent !important;
        background: transparent !important;
    }
    
    body.main-page #footer,
    body.main-page div#page-wrapper #footer {
        background-color: transparent !important;
        background-image: none !important;
        background: transparent !important;
    }
}

/* Services page footer - use original bright floral background */
.services-page #footer .inner {
    position: relative;
    z-index: 2;
    margin: 0;
    padding-top: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Services content styling */
.services-content {
    max-width: 1000px;
    margin: 0 auto;
}

.service-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(58, 58, 102, 0.2);
}

.service-section:last-child {
    border-bottom: none;
    margin-bottom: 2rem;
}

.service-section h3.major {
    color: #3A3A66 !important;
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
}

.service-section p {
    color: #4B4B4B !important;
    line-height: 1.7;
    font-size: 1rem;
}

/* Fix bold and italic text colors in services */
.service-section p strong,
.service-section p b {
    color: #4B4B4B !important;
    font-weight: 600 !important;
}

.service-section p em,
.service-section p i {
    color: #4B4B4B !important;
    font-style: italic;
}

/* Service images styling */
.service-section .image {
    margin-bottom: 1rem;
}

.service-section .image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive styling for services */
@media screen and (max-width: 768px) {
    .service-section {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }
    
    .service-section h3.major {
        font-size: 1.5rem !important;
        text-align: center;
    }
    
    .service-section .image.left,
    .service-section .image.right {
        float: none !important;
        text-align: center;
        margin: 0 auto 1.5rem auto;
        display: block;
        width: 200px;
    }
    
    .service-section p {
        text-align: left;
    }
}

/* Services page footer copyright styling */
.services-page #footer .copyright,
.services-page #footer .copyright li {
    color: #4B4B4B !important;
}

.services-page #footer .copyright li a {
    color: #4B4B4B !important;
}

.services-page #footer .copyright li a:hover {
    color: #3A3A66 !important;
}

/* Keep original body background for all pages */

/* Footer backgrounds handled above with specific page rules */

/* Services page footer - remove custom background, let body background flow through */
body.services-page #footer {
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: -10px !important;
    
    /* Ensure full coverage */
    min-height: 200px !important;
    width: 100% !important;
}

/* Keep child elements clean */
body.services-page #footer .inner,
body.services-page #footer .inner * {
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* Main page - specifically remove background-color from .style5::after only */
body.main-page .style5::after {
    background-color: transparent !important;
}

/* Services page banner - prevent any overlays at all viewport sizes */
body.services-page #banner,
body.services-page #wrapper > header,
body.services-page header {
    background: none !important;
    background-color: transparent !important;
}

/* Remove any pseudo-element overlays on services page banner */
body.services-page #banner::before,
body.services-page #banner::after,
body.services-page #wrapper > header::before,
body.services-page #wrapper > header::after,
body.services-page header::before,
body.services-page header::after {
    display: none !important;
    background: none !important;
    background-color: transparent !important;
}

/* Override any media query overlays for services page */
@media screen and (max-width: 1280px) {
    body.services-page #banner,
    body.services-page #wrapper > header {
        background: none !important;
        background-color: transparent !important;
    }
    
    body.services-page #banner::before,
    body.services-page #banner::after {
        display: none !important;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #ccc;
    text-decoration: none;
}

/* Gallery images cursor */
.gallery-img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-img:hover {
    opacity: 0.8;
}

/* Fix gallery image sizing for consistent layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.gallery-img {
    width: 100%;
    height: 200px; /* Fixed height for consistent sizing */
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive gallery sizing */
@media screen and (max-width: 768px) {
    .gallery-img {
        height: 180px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-img {
        height: 160px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* Contact Form Status Messages */
#form-status {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 500;
    text-align: center;
}

#form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#form-status.loading {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Submit button loading state */
#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Contact Page Specific Styles */
.contact-form-section,
.contact-info-section,
.map-section {
    margin-bottom: 3rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

/* Contact Page Color Fixes - Match Main Page */
.contact-form-section h3.major,
.contact-info-section h3.major,
.map-section h3.major {
    color: #2c3e50 !important;
}

.contact-form-section p,
.contact-info-section p,
.map-section p {
    color: #2c3e50 !important;
}

.contact-form-section label {
    color: #2c3e50 !important;
    font-weight: 600;
}

.contact-form-section input,
.contact-form-section textarea,
.contact-form-section select {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    color: #2c3e50 !important;
}

.contact-form-section input:focus,
.contact-form-section textarea:focus,
.contact-form-section select:focus {
    border-color: #8cc8ff !important;
    background-color: #ffffff !important;
    color: #2c3e50 !important;
}

.contact-info-section h4 {
    color: #2c3e50 !important;
    font-weight: 600;
}

.contact-info-section strong {
    color: #2c3e50 !important;
}

/* Ensure all text in contact sections is dark */
#main .contact-form-section,
#main .contact-info-section,
#main .map-section {
    color: #2c3e50 !important;
}

/* Fix any remaining white text issues */
.contact-form-section *,
.contact-info-section *,
.map-section * {
    color: #2c3e50 !important;
}

/* Exception for links and buttons */
.contact-form-section a,
.contact-info-section a,
.map-section a {
    color: #8cc8ff !important;
}

.contact-form-section .button,
.map-section .button {
    background-color: #8cc8ff !important;
    color: #ffffff !important;
}

.contact-form-section .button:hover,
.map-section .button:hover {
    background-color: #6ab7ff !important;
}

/* Make social media icons more bold and visible */
.contact-info-section .icons a {
    font-size: 1.5em !important;
    color: #1a365d !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.contact-info-section .icons a:hover {
    color: #8cc8ff !important;
    transform: scale(1.1) !important;
}

/* Contact Page Footer Styling - Match Other Pages */
.contact-page #footer {
    background: none !important;
    color: #2c3e50 !important;
}

.contact-page #footer .inner {
    background: none !important;
}

.contact-page #footer .copyright {
    color: #2c3e50 !important;
    text-align: left !important;
    font-size: 0.9em !important;
}

.contact-page #footer .copyright li {
    color: #2c3e50 !important;
}

/* Google Maps button - match page style */
.map-section .button.primary {
    background-color: #ffffff !important;
    color: #2c3e50 !important;
    border: 2px solid #2c3e50 !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.map-section .button.primary:hover {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2) !important;
}

/* Legal Modals Styling */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(58, 58, 102, 0.8);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(58, 58, 102, 0.3);
    position: relative;
    border: 1px solid rgba(58, 58, 102, 0.1);
}

.modal-content h2 {
    background: linear-gradient(135deg, #3A3A66 0%, #4B4B4B 100%);
    color: #ffffff;
    margin: 0;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    font-size: 1.4em;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-text {
    padding: 35px;
    color: #4B4B4B;
    line-height: 1.7;
    background-color: #fafafa;
    border-radius: 0 0 12px 12px;
}

.modal-text h3 {
    color: #3A3A66;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.15em;
    font-weight: 600;
    border-bottom: 2px solid rgba(58, 58, 102, 0.1);
    padding-bottom: 8px;
}

.modal-text h3:first-child {
    margin-top: 0;
}

.modal-text p {
    margin-bottom: 16px;
    color: #4B4B4B;
    font-size: 0.95em;
}

.modal-text ul {
    margin: 15px 0;
    padding-left: 25px;
    background-color: rgba(58, 58, 102, 0.02);
    border-radius: 6px;
    padding: 15px 25px;
}

.modal-text li {
    margin-bottom: 10px;
    color: #4B4B4B;
    font-size: 0.95em;
}

.modal-text strong {
    color: #3A3A66;
    font-weight: 600;
}

.modal-close {
    color: #ffffff;
    float: right;
    font-size: 26px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 18px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-close:hover,
.modal-close:focus {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Footer legal links styling for other pages (not main page) */
.team-page .copyright a,
.about-page .copyright a,
.services-page .copyright a,
.contact-page .copyright a {
    color: #3A3A66 !important;
    text-decoration: underline !important;
    transition: all 0.3s ease !important;
    font-size: 0.85em !important;
}

.team-page .copyright a:hover,
.about-page .copyright a:hover,
.services-page .copyright a:hover,
.contact-page .copyright a:hover {
    color: #4B4B4B !important;
    text-decoration-color: #4B4B4B !important;
}

/* Mobile responsive modals */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 75vh;
    }
    
    .modal-content h2 {
        padding: 15px 20px;
        font-size: 1.2em;
    }
    
    .modal-text {
        padding: 20px;
    }
    
    .modal-close {
        right: 15px;
        top: 12px;
        font-size: 24px;
    }
}

/* Main page footer copyright styling */
body.main-page #footer .copyright,
body.main-page #footer .copyright li {
    color: #4B4B4B !important;
}

/* Main page footer links styling to match the existing design */
body.main-page #footer .copyright li a {
    color: #4B4B4B !important;
    text-decoration: none !important;
    border-bottom: dotted 1px rgba(75, 75, 75, 0.5) !important;
    transition: color 0.2s ease, border-bottom-color 0.2s ease !important;
    font-size: 0.85em !important;
}

body.main-page #footer .copyright li a:hover {
    color: #2c3e50 !important;
    border-bottom-color: rgba(44, 62, 80, 0.3) !important;
}

/* Ensure all footer text elements have consistent color on main page */
body.main-page #footer .copyright * {
    color: inherit !important;
}

/* Activities page banner - same styling as about page */
body.activities-page header.about-banner,
body.activities-page .about-banner {
    background: url("../../images/bg.jpg") center center / cover no-repeat !important;
    background-color: transparent !important;
    background-attachment: local !important;
    position: relative !important;
    min-height: 400px;
    max-height: 500px;
    overflow: hidden;
}

/* Activities page banner text styling */
body.activities-page .about-banner .inner h2.major {
    color: #3A3A66 !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    font-size: 2.5rem !important;
    opacity: 0;
    animation: fadeInUpSmooth 1.6s ease-in-out forwards;
    animation-delay: 0.5s;
}

/* Activities page footer - same styling as about page */
body.activities-page #footer {
    background: none !important;
    background-color: transparent !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: -10px !important;
}

body.activities-page #footer::before {
    display: none !important;
}

body.activities-page #footer .inner {
    position: relative;
    z-index: 2;
    margin: 0;
    padding-top: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Activities page footer copyright styling */
body.activities-page #footer .copyright,
body.activities-page #footer .copyright li {
    color: #4B4B4B !important;
}

body.activities-page #footer .copyright li a {
    color: #4B4B4B !important;
}

body.activities-page #footer .copyright li a:hover {
    color: #3A3A66 !important;
}

/* Activities page main content - clean background */
body.activities-page #main {
    background: #ffffff !important;
    background-color: #ffffff !important;
    position: relative !important;
    z-index: 2 !important;
}

body.activities-page #main * {
    background: none !important;
}

body.activities-page #main section {
    background: #ffffff !important;
    padding: 4rem 0 !important;
}

body.activities-page #main .inner {
    background: #ffffff !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Remove any background patterns from activities main content */
body.activities-page #main::before,
body.activities-page #main::after {
    display: none !important;
}

/* Activities page header and logo sizing */
body.activities-page #header .logo img,
body.activities-page #header .navlogo {
    height: 40px !important;
    width: auto !important;
    max-width: none !important;
}

body.activities-page #header {
    height: auto !important;
    min-height: 60px !important;
    padding: 1rem 0 !important;
}

body.activities-page #header .logo-wrapper {
    display: inline-block !important;
    max-width: 200px !important;
}

/* Fix banner positioning for activities page */
body.activities-page .about-banner {
    margin-top: 0 !important;
    padding-top: 4rem !important;
}

body.activities-page .about-banner .inner {
    padding-top: 2rem !important;
}

/* Subtle menu button hover improvement for better visibility on flower background */
#header nav a:hover {
    background-color: rgba(58, 58, 102, 0.85) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}

/* Fix menu z-index to ensure it's clickable over flower banner */
#menu {
    z-index: 10000 !important;
}

#menu .inner {
    z-index: 10001 !important;
}

#menu .links {
    z-index: 10002 !important;
}

#menu .links li {
    z-index: 10003 !important;
}

#menu .links li a {
    z-index: 10004 !important;
    position: relative !important;
}

/* Ensure banner doesn't interfere with menu clicks */
.about-banner {
    z-index: 1 !important;
}