@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-top: 50px !important;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a23; /* Or your preferred background */
    min-height: 100vh;
}

.space-background, .hero-section, .contact-container, .news-container, .supporters-container, .members-container {
    min-height: 100vh;
}

:lang(el) {
    font-family: 'Poppins', sans-serif;  /* You can set a different font if needed */
}

/* Styling for the entire navigation bar */
.nav-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: transparent;
    border-radius: 0 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 20px; /* Increased from 8px to 10px */
    height: 90px; /* Increased from 80px to 90px */
    overflow: hidden; /* Prevent content from overflowing */
}

.bg-svg  {
    position: absolute; /* Position video behind content */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure video covers the full space */
    z-index: -1; /* Keep video in the background */
}

/* Logo and company name positioning */
.nav-links .logo {
    display: flex;
    align-items: center;
    margin-right: 30px;
    margin-left: 0;
}

:lang(el) .nav-links .logo {
    display: flex;
    align-items: center;
    margin-right: 30px;
    margin-left: 0; /* Make it consistent with English version */
}

.nav-links .logo-img {
    width: 85px; /* Increased from 75px to 85px */
    height: 85px; /* Increased from 75px to 85px */
    margin-right: 15px;
    cursor: pointer;
}

/* Logo links styling - remove underline and other default link styling */
.nav-links .logo a {
    text-decoration: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
}

.nav-links .logo a:hover {
    text-decoration: none;
    border: none;
    outline: none;
}

/* Specifically prevent the hover line effect on the logo link */
.nav-links .logo a:before,
.nav-links .logo a:hover:before {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    content: none !important;
}

.nav-links .logo a, .partner-logos a {
    text-decoration: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
}

.nav-links .logo a:hover, .partner-logos a:hover {
    text-decoration: none;
    border: none;
    outline: none;
}

/* Additional logos styling */
.partner-logos {
    display: flex;
    align-items: center;
    margin-right: 40px;
}

.partner-logo {
    height: 50px; /* Increased from 45px to 50px */
    margin-left: 15px;
}

/* Company name styling - updated for more stylish appearance with centered title */
.nav-links .company-name {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align items horizontally */
    width: 240px; /* Control width */
    margin-right: 20px;
}

:lang(el) .nav-links .company-name {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align items horizontally */
    width: 240px; /* Control width */
    margin-right: 20px;
}

.company-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px; /* Increased from 26px to 28px */
    font-weight: 700;
    color: #35207e; /* Deep purple color similar to the image */
    line-height: 1;
    margin: 0;
    letter-spacing: 0.5px;
    text-align: center; /* Center the text */
    width: 100%; /* Ensure full width for proper centering */
}

.company-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 12px; /* Increased from 11px to 12px */
    font-weight: 400;
    color: #35207e; /* Match the title color */
    margin-top: 4px; /* Increased from 3px to 4px */
    line-height: 1;
    text-align: center; /* Center the text */
    width: 100%; /* Ensure full width for proper centering */
}

/* Navigation link styling - move them more to the right */
.nav-links .nav-items {
    display: flex;
    margin-left: 10px;
}

:lang(el) .nav-links .nav-items {
    display: flex;
    margin-left: 10px;
}

.nav-links li {
    list-style: none;
    margin: 0 12px;
    white-space: nowrap;
}

:lang(el) .nav-links li {
    list-style: none;
    margin: 0 4px; /* Reduced from 6px to 4px to make Greek items even closer together */
    white-space: nowrap;
}

.nav-links li a {
    position: relative;
    color: black;
    font-size: 20px; /* Increased from 19px to 20px */
    font-weight: 500;
    padding: 6px 0; /* Increased from 5px to 6px */
    text-decoration: none;
    transition: color 0.4s ease;
}

/* Updated: Making Greek language text black */
:lang(el) .nav-links li a {
    position: relative;
    color: black; /* Explicitly set to black for Greek text */
    font-size: 18px; /* Reduced from 20px to 18px for Greek text */
    font-weight: 500;
    padding: 6px 0;
    text-decoration: none;
    transition: color 0.4s ease;
}

html:lang(el) .nav-links li a:not(.join-button) {
    position: relative;
    color: black !important; /* Force black color for Greek text with !important */
    font-size: 18px;
    font-weight: 500;
    padding: 6px 0;
    text-decoration: none;
    transition: color 0.4s ease;
    text-shadow: none !important; /* Remove any text shadows that might affect appearance */
}

.nav-links li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: #1a3a7a; /* Changed from #34efdf to a darker blue */
    border-radius: 12px;
    transition: all 0.4s ease;
}

:lang(el) .nav-links li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: #1a3a7a; /* Changed from #34efdf to a darker blue */
    border-radius: 12px;
    transition: all 0.4s ease;
}

.nav-links li a:hover:before {
    width: 100%;
}

:lang(el) li a:hover:before {
    width: 100%;
}

.nav-links li.center a:before {
    left: 50%;
    transform: translateX(-50%);
}

:lang(el) .nav-links li.center a:before {
    left: 50%;
    transform: translateX(-50%);
}

.nav-links li.upward a:before {
    width: 100%;
    bottom: -5px;
    opacity: 0;
}

:lang(el) .nav-links li.upward a:before {
    width: 100%;
    bottom: -5px;
    opacity: 0;
}

.nav-links li.upward a:hover:before {
    bottom: 0;
    opacity: 1;
}

:lang(el) .nav-links li.upward a:hover:before {
    bottom: 0;
    opacity: 1;
}

.nav-links li.forward a:before {
    width: 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

:lang(el) .nav-links li.forward a:before {
    width: 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.nav-links li.forward a:hover:before {
    transform: scaleX(1);
    transform-origin: left;
}

:lang(el) .nav-links li.forward a:hover:before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links li a.active {
    color: deepskyblue !important;  /* Force the green color */
}

:lang(el) .nav-links li a.active {
    color: deepskyblue !important;  /* Force the green color */
}

html:lang(el) .nav-links li a.active {
    color: deepskyblue !important; /* Keep active menu items deepskyblue */
    font-weight: 600; /* Make active items slightly bolder */
}

/* Position the flags inside the white circle */
.nav-links .flags {
    display: flex !important; /* Always display flags */
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    position: absolute;
    right: 40px; /* Moved slightly more to the right */
    top: 15px; /* Adjusted top position to center in the white circle */
    z-index: 1001; /* Ensure flags are on top */
}

:lang(el) .nav-links .flags {
    display: flex !important; /* Force display in Greek language */
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    position: absolute;
    right: 40px;
    top: 15px;
    background: none; /* Remove any background */
    z-index: 1001; /* Ensure flags are on top */
}

.nav-links .flag {
    width: 30px; /* Reduced from 40px to 30px */
    height: auto;
    margin: 3px 20px; /* Reduced vertical spacing from 5px to 3px */
    cursor: pointer;
    border: none; /* Removed border */
    box-shadow: none; /* Removed shadow */
}

:lang(el) .nav-links .flag {
    width: 30px; /* Reduced from 40px to 30px */
    height: auto;
    margin: 3px 20px; /* Match English version spacing */
    cursor: pointer;
    border: none; /* Removed border */
    box-shadow: none; /* Removed shadow */
}

.nav-links .flag:hover {
    opacity: 0.7; /* Slight fade on hover */
}

:lang(el) .nav-links .flag:hover {
    opacity: 0.7; /* Slight fade on hover */
}

/* Join Us button with stronger darker blue effect */
.nav-links .join-button,
.nav-links a.join-button,
.nav-items li a.join-button {
    color: white !important;
    font-size: 17px;
    font-weight: 600;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #0d2b6b !important; /* Solid dark blue with !important */
    background-image: none !important; /* Remove any background images */
    background-color: #0d2b6b !important; /* Ensure background color is applied */
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(26, 58, 122, 0.4);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    display: inline-block;
    margin-top: 0px;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    vertical-align: middle;
}

/* Adding specific styling for Greek Join Us button */
:lang(el) .nav-links .join-button,
html:lang(el) .nav-links .join-button,
html:lang(el) .nav-items li a.join-button {
    color: white !important;
    font-size: 16px;
    background: #0d2b6b !important;
    background-image: none !important;
    background-color: #0d2b6b !important;
}

.nav-links .join-button:hover,
.nav-links a.join-button:hover,
.nav-items li a.join-button:hover {
    background: #1a3a7a !important; /* Slightly lighter dark blue on hover with !important */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 58, 122, 0.6);
}

/* Override the hover line animation for Join Us button */
.nav-links .join-button:before,
.nav-links .join-button:hover:before {
    display: none;
}

/* UTH Logo Header Styling */
.uth-logo-header {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-left: 20px;
    margin-right: 20px;
    transition: opacity 0.3s ease;
}

.uth-logo-header:hover {
    opacity: 0.8;
}

.uth-logo-img {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
}

/* Responsive adjustments for UTH logo */
@media (max-width: 768px) {
    .uth-logo-img {
        height: 30px; /* Reduced from 60px to 30px (half size) */
    }
    
    .uth-logo-header {
        position: absolute;
        right: 70px; /* Position it to the left of the hamburger menu */
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 480px) {
    .uth-logo-img {
        height: 35px; /* Reduced from 50px to 25px (half size) */
    }
    
    .uth-logo-header {
        position: absolute;
        right: 60px; /* Position it to the left of the hamburger menu */
        top: 50%;
        transform: translateY(-50%);
    }
}