@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body, html {
    background: rgba(0, 0, 0, .5);
	margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif; /* Futuristic font */
    box-sizing: border-box;
    scroll-behavior: smooth;
    color: #e0e0e0; /* Light text color */
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
	overflow-y: scroll;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
}

body::-webkit-scrollbar {
    width: 0px;
    background: transparent; /* Optional: just to be sure */
}

/* Clean Pre-loader styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000; /* Ensure it's above everything */
    overflow: hidden;
    transition: opacity 0.5s ease-out; /* Faster fade-out */
    -webkit-transition: opacity 0.5s ease-out; /* For Safari and older iOS */
    -moz-transition: opacity 0.5s ease-out;
    -o-transition: opacity 0.5s ease-out;
    -ms-transition: opacity 0.5s ease-out;
}

.loading-text-container {
    z-index: 10002; /* Ensure the loading text is above the flash panel */
    position: relative; /* Required for z-index to work */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Move the text higher on the screen */
    align-items: center;
    height: 40%; /* Adjust the height to move the text higher */
    padding-top: 250px; /* Add padding to push the text down slightly from the top */
}

.loading-text {
    font-size: 24px;
    color: #fff;
    animation: pulseText 2s infinite ease-in-out;
    text-align: center;
    font-family: 'Orbitron', sans-serif; /* Use the same font as the site for consistency */
    margin-bottom: 20px; /* Add some space between the text and the line */
}

.flash-panel {
    position: absolute;
    top: 50%; /* Center vertically relative to preloader */
    left: 50%; /* Center horizontally relative to preloader */
    transform: translate(-50%, -50%); /* Center the panel */
    width: 0;
    height: 4px;
    background-color: #fff;
    z-index: 10001; /* Below the loading text */
    animation: expandLine 4s forwards; /* Initial horizontal expansion */
}

/* Animation for the loading text */
@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Animation for the expanding line horizontally */
@keyframes expandLine {
    0% {
        width: 0;
    }
    100% {
        width: 80%; /* Fully expanded width */
    }
}

/* Animation for the vertical expansion to create the screen overlay effect */
@keyframes flashPanel {
    0% {
        height: 4px; /* Start with original height */
        width: 80%; /* Width stays the same */
    }
    100% {
        height: 100vh; /* Expand to full screen height */
        width: 100%; /* Expand width to full screen width */
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
    .loading-text {
        font-size: 18px; /* Adjust text size for mobile */
    }
    .flash-panel {
        height: 3px; /* Slightly thinner line for mobile */
    }
}

/* Background Image Layer */
#background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/swbackground.png') no-repeat center center fixed;
    background-size: cover;
	opacity: 1;
    z-index: -2; /* Ensure background is below everything */
}

/* Apply effects to the About section image */
#about img, .career-image img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 5;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows the image and text to wrap on smaller screens */
    gap: 20px; /* Adds space between the image and the text */
}

.about-text {
    flex: 1;
    text-align: left; /* Align text to the left */
    max-width: 600px; /* Set a max width for the text area */
}

.about-image {
    flex: 1;
    max-width: 600px; /* Set a max width for the image */
}

.about-image img {
    width: 100%; /* Ensures the image scales properly */
    border-radius: 10px; /* Optional: adds some rounding to the image corners */
}


/* Header styles */
.lunacy-header {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 25px 0;
    box-sizing: border-box;
}

.lunacy-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.lunacy-header .logo img {
    height: 100px;
	z-index: 2000;
}

.lunacy-header .main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.lunacy-header .main-menu ul li {
    position: relative;
}

.lunacy-header .main-menu ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px #C6A6C7;
}

.lunacy-header .main-menu ul li a:hover {
    color: rgba(255, 255, 255, 1);
}

.lunacy-header .main-menu ul li a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.lunacy-header .main-menu ul li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Footer styles */
.lunacy-footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    padding: 10px 0;
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.lunacy-footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.lunacy-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px #C6A6C7;
    font-size: 18px;
}

/* Add padding to body to avoid content hiding behind the header and footer */
body {
    padding-top: 0px; /* Adjust according to the header height */
    padding-bottom: 40px; /* Adjust according to the footer height */
}

.hero, .section-bg {
	padding: 40px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
    z-index: 2; /* Ensure sections are above fog */
}

.hero::before, .section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0); /* Dark overlay */
    z-index: 4;
}

.hero-content, .section-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    border-radius: 10px;
    z-index: 5; /* Ensure content is above background and fog */
}

.hero-content h1, .section-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8); /* Semi-white text color */
    text-shadow: 0 0 10px #C6A6C7;
}

.hero-content p, .section-content p {
    font-size: 24px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8); /* Semi-white text color */
    text-shadow: 0 0 10px #C6A6C7;
}

.hero-content .cta-button, .section-content .cta-button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8); /* Semi-white button background */
    color: #0f0f0f; /* Dark text color */
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px #C6A6C7;
}

.hero-content .cta-button:hover, .section-content .cta-button:hover {
    background: rgba(255, 255, 255, 1); /* Fully white on hover */
}

section {
    padding: 100px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #e0e0e0; /* Light text color */
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure sections are behind fog but above background */
}

.games-list, .news-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.game-item, .news-item {
    width: 300px;
    border: 1px solid #444;
    padding: 20px;
    border-radius: 10px;
    background: none; /* No background for items */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 5; /* Ensure items are above fog */
}

.game-item:hover, .news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(198, 166, 199, 0.5);
}

.game-item img, .news-item img, section img {
    max-width: 100%;
    max-height: 400px; /* Set a maximum height */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 5; /* Ensure images are above fog */
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form input[type="email"] {
    padding: 10px;
    margin: 10px 0;
    width: 300px;
    max-width: 80%;
    border: 1px solid #444;
    border-radius: 5px;
    background: #242424;
    color: #e0e0e0;
}

form button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8); /* Semi-white button background */
    color: #0f0f0f; /* Dark text color */
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
    box-shadow: 0 0 10px #C6A6C7;
	font-family: 'Orbitron', sans-serif; /* Add this line to match the font */
    font-size: 16px;
    text-align: center;
}

form button:hover {
    background: rgba(255, 255, 255, 1); /* Fully white on hover */
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.social-media a {
    margin: 0 15px;
	font-size: 30px;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, filter 0.3s ease;
    text-shadow: 0 0 10px #C6A6C7; /* Neon glow effect */
}

.social-media a:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px #C6A6C7); /* Brighter glow on hover */
}

.fade-out {
    position: relative;
    overflow: hidden;
}

.fade-out::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px; /* Adjust based on header height */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    pointer-events: none; /* Ensure it doesn't interfere with scrolling */
    z-index: 10; /* Ensure it's above the section content */
}

/* ---------- Fog ---------- */
.fog {
    height: 100%;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1; /* Ensure fog is above background but below content */
    filter: blur(1px) grayscale(0.2) saturate(1.2) sepia(0.2);
    overflow-x: hidden; /* Prevent horizontal overflow */
}

#foglayer_01, #foglayer_02, #foglayer_03 {
    height: 100%;
    position: absolute;
    width: 200%;
    left: 0; /* Prevent horizontal overflow */
}

#foglayer_01 .image01, #foglayer_01 .image02,
#foglayer_02 .image01, #foglayer_02 .image02,
#foglayer_03 .image01, #foglayer_03 .image02 {
    float: left;
    height: 100%;
    width: 50%;
}

#foglayer_01 {
    animation: foglayer_01_opacity 10s linear infinite, foglayer_moveme 15s linear infinite;
}

#foglayer_02, #foglayer_03 {
    animation: foglayer_02_opacity 21s linear infinite, foglayer_moveme 13s linear infinite;
}

/* ---------- Moving Fog ---------- */
#foglayer_01 .image01, #foglayer_01 .image02 {
    background: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog1.png") center center/cover no-repeat transparent;
}

#foglayer_02 .image01, #foglayer_02 .image02,
#foglayer_03 .image01, #foglayer_03 .image02 {
    background: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog2.png") center center/cover no-repeat transparent;
}

/* ---------- Keyframe Layer 1 ---------- */
@keyframes foglayer_01_opacity {
    0% { opacity: .1; }
    22% { opacity: .5; }
    40% { opacity: .28; }
    58% { opacity: .4; }
    80% { opacity: .16; }
    100% { opacity: .1; }
}

/* ---------- Keyframe Layer 2 ---------- */
@keyframes foglayer_02_opacity {
    0% { opacity: .5; }
    25% { opacity: .2; }
    50% { opacity: .1; }
    80% { opacity: .3; }
    100% { opacity: .5; }
}

/* ---------- Keyframe Layer 3 ---------- */
@keyframes foglayer_03_opacity {
    0% { opacity: .8; }
    27% { opacity: .2; }
    52% { opacity: .6; }
    68% { opacity: .3; }
    100% { opacity: .8; }
}

/* ---------- Keyframe moveMe ---------- */
@keyframes foglayer_moveme {
    0% { left: 0; }
    100% { left: -100%; }
}

@media only screen and (min-width: 280px) and (max-width: 767px) {
    #foglayer_01 .image01, #foglayer_01 .image02,
    #foglayer_02 .image01, #foglayer_02 .image02,
    #foglayer_03 .image01, #foglayer_03 .image02 {
        width: 100%;
    }
}

/* Moon Layer */
#moon-layer {
    position: fixed;
    top: -5%;
    left: 15%;
    width: 600px;
    height: 600px;
    background: url('images/moon.png') no-repeat center center;
    background-size: cover;
    z-index: -3; /* Ensure moon is behind fog but above background */
    transform: translateX(-50%);
}

/* Mobile Styles */
@media only screen and (max-width: 767px) {
    .lunacy-header .logo img {
        height: 60px; /* Reduce logo size */
    }

    .lunacy-header {
        padding: 15px 0; /* Reduce padding */
        z-index: 3000; /* Ensure header is above the mobile menu */
    }

    .lunacy-header .menu-toggle {
        display: block; /* Show toggle on mobile */
        position: absolute;
        top: 28px; /* Position inside the header */
        right: 20px; /* Align to the right side */
        z-index: 2000; /* Ensure it's above the menu but below the header */
    }

    .lunacy-header .main-menu ul {
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        position: fixed;
        top: 95px; /* Adjust space above the menu */
        right: -100%; /* Initially off-screen to the right */
        width: 35%; /* Set width to 35% */
        max-height: 70%; /* Limit the height to 70% of the screen */
        overflow-y: auto;
        padding-top: 20px; /* Add padding to the top */
        padding-bottom: 20px; /* Add padding to the bottom */
        display: flex;
        gap: 10px;
        transition: right 0.3s ease; /* Slide-in effect from the right */
        border-radius: 10px 0 0 10px; /* Rounded corners on the left */
        box-shadow: 0 0px 10px rgba(0, 0, 0, 0.8); /* Adjusted drop shadow */
        z-index: 1000; /* Ensure the menu is below the header */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .lunacy-header .main-menu ul::-webkit-scrollbar {
        display: none;  /* Chrome, Safari, and Opera */
    }

    .lunacy-header .main-menu ul.active {
        right: 0; /* Slide in from the right */
    }

    .lunacy-footer .menu-toggle {
        display: none; /* Hide the toggle in the footer */
    }

    .lunacy-header .main-menu ul li {
        text-align: center;
    }

    .lunacy-header .main-menu ul li a {
        padding: 10px 0;
        font-size: 16px; /* Smaller font size */
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 32px; /* Smaller heading */
    }

    .hero-content p {
        font-size: 18px; /* Smaller text */
    }

    .hero-content .cta-button {
        padding: 8px 16px; /* Adjust button size */
    }

    /* Section Content */
    .section-content {
        padding: 20px; /* Reduce padding */
    }

    .section-content h2 {
        font-size: 32px; /* Smaller section titles */
    }

    .section-content p {
        font-size: 18px; /* Smaller paragraph text */
    }

    /* Game and News Items */
    .game-item, .news-item {
        width: 100%; /* Full width on mobile */
        margin-bottom: 20px; /* Add space between items */
    }

    /* Footer */
    .lunacy-footer p {
        font-size: 14px; /* Smaller footer text */
    }
}

/* Mobile Menu Button */
.menu-toggle {
    display: none; /* Hide by default */
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    text-shadow: 0 0 10px #C6A6C7;
}

@media only screen and (max-width: 767px) {
    .menu-toggle {
        display: block; /* Show toggle on mobile */
    }

    /* Disable fog on mobile devices */
    .fog {
        display: none;
    }
}

.career-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.career-text {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.career-image {
    flex: 1;
    max-width: 600px;
}

.career-image img {
    width: 100%;
    border-radius: 10px;
}

/* Responsive adjustments for mobile */
@media only screen and (max-width: 767px) {
    .career-container,
    .about-container {
        flex-direction: column;
    }

    .career-text, .about-text,
    .career-image, .about-image {
        max-width: 100%;
    }

    .career-text, .about-text {
        text-align: center;
    }
}

/* Hide the more-news section by default */
.hidden {
    display: none;
}

/* More News section styles */
.more-news-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 100px; /* Further increased spacing above the more news section */
}

@media (max-width: 767px) {
    .more-news-list {
        margin-top: 140px; /* Further increased spacing in condensed views */
    }
    
    #more-news {
        margin-top: 140px; /* Ensure top of more news is not cut off */
        margin-bottom: 100px; /* Ensure bottom of more news is not cut off */
    }
}

.more-news-list .news-item {
    width: calc(50% - 20px); /* Adjust to create a 2-up layout with some spacing */
    margin-bottom: 20px;
    box-sizing: border-box; /* Ensure padding and borders are included in the width */
}

@media (max-width: 767px) {
    .more-news-list .news-item {
        width: calc(100% - 20px); /* Full width on mobile with some spacing */
    }
}

.more-news-list .news-item h3 {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px #C6A6C7;
}

.more-news-list .news-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* Ensure off-screen content is hidden */
.news-content, #more-news {
    overflow: hidden;
}

#more-news.hidden {
    display: none;
}

/* Hide the default reCAPTCHA badge */
.grecaptcha-badge {
    display: none;
}

/* Add custom position for the reCAPTCHA in the newsletter section */
#newsletter-form .g-recaptcha {
    display: inline-block;
    margin-left: 10px; /* Spacing between subscribe button and reCAPTCHA */
    vertical-align: middle;
}
#more-news {
    padding: 40px 20px; /* Standard padding */
    background: rgba(0, 0, 0, 0.7); /* Matching background */
    border-radius: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative; /* Ensure the section is positioned correctly */
    margin: 80px 0; /* Unified margin top and bottom */
}

.more-news-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px; /* Reset spacing for the list within more news */
}

@media (max-width: 767px) {
    #more-news {
        margin: 100px 0; /* Adjust for mobile view to prevent cut-off */
    }
    
    .more-news-list {
        margin-top: 60px; /* Adjust for mobile view to prevent overlap */
    }
}

#more-news h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8); /* Semi-white text color */
    text-shadow: 0 0 10px #C6A6C7;
}

#more-news p {
    font-size: 24px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8); /* Semi-white text color */
    text-shadow: 0 0 10px #C6A6C7;
}

.more-news-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 100px; /* Further increased spacing above the more news section */
}

@media (max-width: 767px) {
    .more-news-list {
        margin-top: 140px; /* Further increased spacing in condensed views */
    }
    
    #more-news {
        margin-top: 140px; /* Ensure top of more news is not cut off */
        margin-bottom: 100px; /* Ensure bottom of more news is not cut off */
    }
}

.more-news-list .news-item {
    width: calc(45% - 20px); /* Adjust to create a 2-up layout with some spacing */
    margin-bottom: 20px;
    box-sizing: border-box; /* Ensure padding and borders are included in the width */
}

@media (max-width: 767px) {
    .more-news-list .news-item {
        width: calc(100% - 20px); /* Full width on mobile with some spacing */
    }
}

.more-news-list .news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(198, 166, 199, 0.5);
}

.more-news-list .news-item h3 {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px #C6A6C7;
}

.more-news-list .news-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

#more-news .cta-button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8); /* Semi-white button background */
    color: #0f0f0f; /* Dark text color */
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px #C6A6C7;
}

#more-news .cta-button:hover {
    background: rgba(255, 255, 255, 1); /* Fully white on hover */
}

.more-news-list .news-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%; /* Ensure full height is used */
    min-height: 250px; /* Set a minimum height to align all items */
}

.more-news-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Adjust layout to fit items evenly */
    gap: 20px;
    margin-top: 20px;
}

.more-news-list .news-item a.read-more-button {
    margin-top: auto; /* Push the button to the bottom */
    align-self: center; /* Center the button horizontally */
    padding: 10px 20px;
    background: rgba(198, 166, 199, 0.8); /* Custom semi-transparent background color */
    color: #0f0f0f; /* Dark text color */
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px #C6A6C7;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
}

.more-news-list .news-item a.read-more-button:hover {
    background: rgba(198, 166, 199, 1); /* Fully opaque background on hover */
}

.news-list .news-item a.read-more-button, 
.more-news-list .news-item a.read-more-button {
    margin-top: auto; /* Push the button to the bottom */
    align-self: center; /* Center the button horizontally */
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8); /* Matching semi-white background color */
    color: #0f0f0f; /* Dark text color, matching cta-button */
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px #C6A6C7; /* Matching shadow */
    font-size: 16px;
    text-align: center;
    cursor: pointer;
}

.news-list .news-item a.read-more-button:hover, 
.more-news-list .news-item a.read-more-button:hover {
    background: rgba(255, 255, 255, 1); /* Fully white on hover, matching cta-button */
}

/* Close button styles */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    cursor: pointer;
    text-shadow: 0 0 10px #C6A6C7;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: rgba(255, 255, 255, 1);
}


/* Ensure the parent container of the more-news-section has enough space */
.more-news-container {
    padding: 20px 0;
    overflow: visible; /* Allow content to expand without being cut off */
}

/* Adjust section height explicitly if needed */
#more-news-section {
    min-height: 100vh; /* Ensure it takes at least the full viewport height */
    box-sizing: border-box; /* Include padding and border in the height calculation */
    overflow: visible; /* Ensure content is not cut off */
}

.section-bg {
    padding-top: 60px; /* Ensure space at the top of sections */
    padding-bottom: 60px; /* Ensure padding at the bottom of sections */
    overflow: visible; /* Ensure content is not cut off */
}

#more-news-btn {
    margin-top: 20px; /* Adjust the value to your preference */
	padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    color: #0f0f0f;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px #C6A6C7;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
	font-family: 'Orbitron', sans-serif; /* Use the same font as the site for consistency */
}

#more-news-btn:hover {
    background: rgba(255, 255, 255, 1);
}

/* General Styles for News Items */
.news-item, .more-news-list .news-item {
    width: 100%;
    max-width: 400px; /* Set a maximum width for each article */
    border: 1px solid #444;
    padding: 15px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.85); /* Less transparent background */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    text-align: center; /* Center align text in both sections */
}

/* Image Styles */
.preview-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    max-height: 200px;
    object-fit: cover;
}

/* Title and Description Styles */
.preview-details h3, .news-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9); /* Ensure consistent color */
}

.preview-details p, .news-item p {
    font-size: 14px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8); /* Ensure consistent color */
}

/* Button Styles */
.read-more-button {
    padding: 8px 16px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f0f0f;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.read-more-button:hover {
    background: rgba(255, 255, 255, 1);
}

/* Specific Styling for Latest News to Match More News */
.section-content .news-list .news-item {
    background: rgba(0, 0, 0, 0.85); /* Ensure same background as More News */
}

/* Ensure same padding and margin */
.section-content, #more-news {
    padding: 20px;
}


/* Sliding animations for sections */
@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.section-slide-out {
    animation: slideOut 0.5s forwards;
}

.section-slide-in {
    animation: slideIn 0.5s forwards;
}


/* Open Positions section styling */
#open-positions {
    display: none;
    background-color: #202020;
    color: #e0e0e0;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
}

.open-positions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.open-positions-header {
    font-size: 24px;
    margin-bottom: 20px;
}

.no-positions {
    text-align: center;
    font-size: 18px;
    color: #888888;
    margin-top: 20px;
}

.section-slide-out {
    animation: slideOut 0.5s forwards;
}

.section-slide-in {
    animation: slideIn 0.5s forwards;
}
