/* COLOR PALLETT */
/* background-color: #fc9468; -> ORANGE */
/* background-color: rgb(251, 244, 234); -> WHITE WITH A BIT OF ORANGE */
/* color: #333; -> DARK GRAY - USED FOR TEXT PREDOMINANTLY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: rgb(255, 255, 255);
}

img {
    max-width: 100%;
    height: auto;
}

/* MENU CONTAINER */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #6d6d6d;
    /* padding: 3vw; */
    padding-top: 2vw;
    padding-right: 3vw;
    padding-bottom: 0vw;
    padding-left: 3vw;
    z-index: 99;
    /* position: sticky; Make navbar sticky */
    top: 0; /* Sticks to the top of the viewport */
    transition: all 0.5s ease; /* Smooth transition for all properties */
}

.navbar.sticky {
    /* top: 20px; */
    position: sticky; /* Change to static when not sticky */
    transform: scale(0.7); /* Scales the navbar to 70% size */
    opacity: 0.5; /* Makes it semi-transparent */
    border-radius: 30px; /* Adds rounded corners */
    padding: 1vw; /* Optional: Adjust padding if needed */
}

/* MOBILE MENU SHOULD BE INVISIBLE */
.mobile-dropdown-menu {
    display: none;
}

/* MENU ITEMS */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 7vw;
}

.logo .navbar-title {
    margin-left: 10px; /* Adjust spacing as needed */
    color: #e99b4d;    /* Set title color */
    font-size: 18px;   /* Adjust font size if desired */
    font-weight: bold;
}

/* HAMBURGER MENU */
/* This is the button that will toggle the mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1.5vw;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #e99b4d;
    font-size: 0.9vw;
    font-weight: bold;
}

.nav-links a.highlight {
    text-decoration: none;
    color: rgb(202, 202, 192);
    font-size: 0.9vw;
    font-weight: bold;
}

.nav-links a:hover {
    color: rgb(69, 69, 69);
}

.search-btn {
    background-color: rgb(251, 244, 234);
    border: none;
    padding: 1.5vh 1.0vh;
    border-radius: 3vh;
    font-size: 0.8vw;
    font-weight: bold;
    cursor: pointer;
}

.search-btn:hover {
    background: black;
    color: rgb(251, 244, 234);
    transition: all 0.3s ease;
}

/* LANGUAGE SELECTOR */

.language-selector {
    position: relative;
    cursor: pointer;
}

.language-selector img {
    width: 5vh;
}

.language-selector a {
    text-decoration: none;
    font-size: 0.9vw;
    font-weight: bold;
}

.language-options {
    position: absolute;
    top: 100%;
    right: -10px;
    padding: 0px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: left;
}

.language-options.show {
    display: block;
    opacity: 1;
}

.language-options a.language-option-active {
    color: rgb(69, 69, 69);
    display: block;
    padding: 5px 0;
    text-decoration: none;
    white-space: nowrap;
    font-weight: bold;
    font-size: 0.9vw;
}

.navbar-override {
    color: inherit;  /* Inherits text color from parent */
    text-decoration: none;  /* Removes underline */
    display: block;  /* Makes link take full width */
}

.language-option-inactive {
    color: black;
    display: block;
    padding: 5px 0;
    text-decoration: none;
    white-space: nowrap;
    font-weight: bold;
    font-size: 0.9vw;
}

.language-option-inactive:hover {
    /* background: rgba(255, 255, 255, 0.1); */
    color: rgb(251, 244, 234);
}

/* HORIZONTAL SCROLLING TEXT */

.about-us-horizontal-scroll {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    padding: 20px 0;
    background-color: #6d6d6d;
    z-index: 1;
    transition: scroll 0.5s ease; /* Smooth transition for all properties */
}

.about-us-horizontal-scroll.disappear {
    opacity: 0;
}

.scrolling-text {
    font-size: 250px;
    font-weight: bold;
    white-space: nowrap;
    animation: scroll 15s linear infinite;
    color: #333;
    transition: all 0.5s ease; /* Smooth transition for all properties */
}

.scrolling-text.smaller {
    font-size: 100px;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ΕΣΠΑ logo */
.overlay-image {
    position: fixed;
    top: 200px; /* adjust so it sits just under your navbar */
    left: 0;
    width: 10%;
    z-index: 50; /* make sure it’s below the navbar (which might be e.g. 100) */
    opacity: 1;
    text-align: center;
    transition: opacity 1.0s ease;
    pointer-events: none; /* allow clicks to pass to elements below if needed */
}

.overlay-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* PARALAX IMAGE */

.parallax-container {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: -5vh;
    overflow: hidden;
}

.parallax-image {
    position: fixed;
    top: 150px;
    width: 100%;
    height: 100vh;
    border-radius: 30px;
    object-fit: cover;
    z-index: -1;
}

.orange-block {
    width: 100%;
    height: 40vh;
    background-color: #6d6d6d;
    border-radius: 30px;
    margin: 0;
    position: relative;
    margin-top: -320px;
    z-index: -2;
}

.top-block {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.bottom-block {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    height: auto;
    /* margin-top: 30px; */
}

.content-wrapper {
    overflow: hidden;
}

/* WHO ARE WE */

.about-us-section-1 {
    top:200px;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    background-color: rgb(255, 255, 255);
    text-align: center;
    /* z-index: -3;   */
}

.about-us-section-1-top {
    text-decoration: none;
    color: #fc9468;
    font-size: 14px;
    font-weight: bold;
}

.about-us-map-section-1 h2 {
    text-decoration: none;
    color: rgb(45, 45, 45);
    font-size: 45px;
    margin-bottom: 25px;
    font-weight: bold;
}

.about-us-about-us {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 5% 0;
    background-color: rgb(255, 255, 255);
    text-align: center;
    /* z-index: -3;   */
}

.about-us-about-us-top {
    /* text-decoration: none; */
    /* text-align: left; */
    color: #fc9468;
    font-size: 15px;
    font-weight: bold;
}

.about-us-about-us h2 {
    text-decoration: none;
    margin-top: -20px;
    color: rgb(45, 45, 45);
    font-size: 45px;
    margin-bottom: 25px;
    font-weight: bold;
}

.about-us-image {
    width: 200px;
    border-radius: 8px; /* Adjust the value as needed */
    display: block;     /* Allows margin auto to work */
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
}

/* Ensure the hover state shows the pointer */
.about-us-image:hover {
    cursor: pointer;
}

.text-segment {
    margin: 0 auto;
    max-width: 800px; /* Adjust as needed */
    text-align: left;
    font-size: 1.2rem; /* Adjust font size */
    line-height: 1.5; /* Adjust line height */
    color: #333; /* Text color */
    padding: 0 20px;
}

/* Lightbox styles */
.lightbox {
    display: flex;              /* Add flex layout */
    justify-content: center;    /* Center horizontally */
    align-items: center;        /* Center vertically */
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

/* Landing page settings */
.lightbox-content {
    display: block;
    margin: auto;
    /* Smaller than before */
    max-width: 60%;
    max-height: 60%;
    /* Rounded corners and orange outline */
    border-radius: 30px;
    border: 1px solid #fc9468;
    transition: all 1s ease;
}

/* *********** */
/* SECOND PAGE */
/* *********** */
/* What do we do */
/* Ipiresies settings */
/* Base lightbox container style */
.lightbox {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

/* Text lightbox content style (for .text-lightbox) */
.text-lightbox .lightbox-content {
    max-width: 90%;
    max-height: 80vh;    /* Limits the height to 80% of the viewport */
    overflow-y: auto;    /* Adds a vertical scrollbar when content exceeds this height */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: #333;
}

/* Lightbox close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 1s ease;
}

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

.ipiresies {
    top:100px;
    position: relative;
    width: 100%;
    overflow: hidden;
    /* padding: 20px 0; */
    background-color: rgb(255, 255, 255);
    text-align: center;
    /* z-index: -3;   */
}

.ipiresies-top {
    text-decoration: none;
    color: #fc9468;
    font-size: 14px;
    font-weight: bold;
}

/* *********** */
/* THIRD PAGE */
/* *********** */
/* WHO ARE WE */
.team-section {
    max-width: 100%;
    padding: 0 20px; /* optional, to add some horizontal padding */
    text-align: center;
}

.team-heading {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 120px;
    margin-bottom: 120px;
    gap: 20px;
}

.team-member {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 300px;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-photo {
    width: 100%;
    height: auto;
    display: block;
}

.team-info {
    padding: 15px;
    text-align: left;
}

.team-info h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #e99b4d;
}

.team-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}


/* *********** */
/* FORTH PAGE */
/* *********** */
/* CONTACT US */
.map-container iframe {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 80px;
    margin-bottom: 120px;
}
.facebook-icon {
    width: 50px;
    height: 50px;
    transition: transform 0.3s;
}



/* FOOTER FOR ALL PAGES */
.footer {
    background-color: #6d6d6d;
    color: rgb(202, 202, 192);
    padding: 20px 40px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    transition: opacity 1s ease;
    z-index: 100;
}

.footer-content {
    display: flex;
    align-items: left;
    justify-content: space-between;
}

.footer-copy {
    margin: 0;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    align-items: center;
}

.footer-nav a {
    text-decoration: none;
    color: #e99b4d;
    font-size: 0.9rem;
    margin: 0 5px;
    padding: 2px 5px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-nav span {
    color: #e99b4d;
    font-size: 0.9rem;
}

/* Footer Coockes Lightbox Table */
table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin: 25px 0;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 14px 18px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background: linear-gradient(135deg, #e99b4d, #f3dca5);
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
}

tr:nth-child(even) {
    background-color: #f8f9fc;
}

tr:hover {
    background-color: #eef3fc;
    transition: 0.3s ease-in-out;
}

.cookie-name {
    font-weight: bold;
    color: #6d6d6d;
}

.asp-highlight {
    color: #495057;
    font-style: italic;
}

.duration {
    text-align: center;
    font-weight: bold;
    color: #e99b4d;
}

@media screen and (max-width: 768px) {
    /* Hide the complete normal navbar */
    .navbar {
        display: none;
    }
    
    /* Place the hamburger (menu-toggle) fixed at top-right */
    .menu-toggle {
        display: block;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 2000;
        background-color: #fc9468;  /* Orange */
        color: #fff;
        font-size: 2rem;
        padding: 0.6rem 0.8rem;
        border-radius: 15px;
    }
    
    /* Mobile Dropdown Menu with reversible grow effect */
    .mobile-dropdown-menu {
        /* Keep it rendered so we can animate */
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 30px;  /* Adjust as needed */
        right: 10px; /* Top right */
        width: auto;
        background-color: rgba(109, 109, 109, 0.8);
        border-radius: 40px;
        outline: 1px solid #fc9468;
        padding: 1rem 0;
        z-index: 1500;
        
        /* Use transform and opacity for animation */
        transform-origin: top right;
        opacity: 0;
        transform: scale(0);
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;  /* Prevent interactions when closed */
    }
    
    /* When active, scale to full size */
    .mobile-dropdown-menu.active {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }
    
    .mobile-dropdown-menu a {
        display: block;
        padding: 10px;
        color: #e99b4d;
        text-decoration: none;
        font-size: 1.5rem;
    }
    
    .mobile-dropdown-menu a:hover {
        color: rgb(69, 69, 69);
    }
    
    .mobile-dropdown-menu a.highlight {
        color: rgb(69, 69, 69);
    }

    /* Hide the "Με την υποστήριξη" text */
    .overlay-image a {
        display: none;
    }
    
    /* Enlarge the ESPA logo (assuming it’s within .overlay-image) */
    .overlay-image img {
        /* Adjust these values as needed – here we double its width */
        position: absolute;
        top: 22vh;
        left: 0;
        width: 200%;
        max-width: none;
    }
    
    /* Adjust language selector */
    .language-selector {
        margin-top: 1vw;
    }
    
    /* For images and logos */
    .logo img {
        width: 20vw;
    }
    
    .parallax-image {
        position: fixed;
        top: 0;
        width: 100%;
        height: 60vh;
        border-radius: 30px;
        object-fit: cover;
        z-index: -1;
    }

    .about-us-section-1 {
        top:100px;
        position: relative;
        width: 100%;
        overflow: hidden;
        padding: 40px 0;
        background-color: rgb(255, 255, 255);
        text-align: center;
        /* z-index: -3;   */
    }

    .lightbox .lightbox-close {
        position: fixed;
        top: 10px;   /* adjust as needed */
        left: 10px;  /* adjust as needed */
        font-size: 2rem;  /* adjust size if needed */
        z-index: 9999;    /* ensure it stays on top */
    }

    /* Make tables responsive */
    table {
        font-size: 3vw;
    }
    
    /* Horizontal scrolling text adjustments */
    .scrolling-text {
        font-size: 70px; /* Instead of a huge 250px font size */
    }

    .social-media h3 {
        font-size: 16px; /* adjust as needed */
    }


    .footer {
        padding: 5px 10px;    /* reduce vertical and horizontal padding */
        font-size: 0.7rem;    /* slightly smaller text */
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-nav {
        flex-direction: row;   /* or column if you prefer */
        align-items: center;
        margin-top: 5px;
        order: 1;
    }
    
    .footer-nav a,
    .footer-nav span {
        margin: 0 3px;
        font-size: 0.7rem;
    }
    
    .footer-copy {
        text-align: center;
        margin: 0;
        order: 2;
    }
    table {
        box-shadow: none;
    }
    th, td {
        padding: 10px;
    }
}