body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Kanit', sans-serif; /* Using Kanit like EDU2.2 for consistency */
    color: #e0e0e0; /* Slightly softer white */
    overflow-x: hidden; /* Prevent horizontal scrollbars */
    line-height: 1.6;
}

body {
    /* Futuristic Gradient Background - Refined */
    background: linear-gradient(135deg, #0a071e 0%, #1e1a40 50%, #100f1c 100%);
    background-size: 200% 200%; /* Slower animation */
    animation: gradientBG 25s ease infinite;
    position: relative; /* Needed for absolute positioning of overlay */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: space-between; /* Push footer down */
    align-items: center; /* Center content horizontally */
    min-height: 100vh; /* Ensure body takes full viewport height */
    padding: 20px 0; /* Add some padding top/bottom */
    box-sizing: border-box;
}

/* Optional: Background Gradient Animation */
/* Duplicated rules removed */

/* Background Overlay Image - Updated Path & Style */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/logos/InoQi_IkonaQ1_2K_A.png'); /* Corrected path */
    background-size: cover; /* Stretch across */
    background-position: center center;
    opacity: 0.05; /* Even more subtle */
    mix-blend-mode: screen; /* Experiment with blend mode */
    z-index: 1; /* Behind the main content */
    pointer-events: none; /* Allow clicks through */
}

.container {
    flex-grow: 1; /* Allow container to take up available space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the logo group vertically */
    align-items: center;
    position: relative; /* Ensure content is above the overlay */
    z-index: 2;
    gap: 5vh; /* Space between the logos */
    padding: 40px 20px; /* Padding */
    text-align: center;
    width: 90%;
    max-width: 900px; /* Slightly wider max width */
}

.logo-main {
    margin-top: -2vh; /* Nudge main logo UP only slightly from center */
    max-width: 400px; /* Keep main logo bigger */
}

.logo-edu {
    max-width: 320px; /* Adjust EDU logo size */
    margin-top: 0; /* EDU logo stays in its natural position relative to main logo + gap */
    /* Removed background-color, padding, border-radius, box-shadow */
}

/* Cleaned up comments */

/* Hover effect for the linked EDU logo */
a:hover .logo-edu {
    transform: scale(1.05); /* Slightly enlarge on hover */
    opacity: 0.95; /* Slightly less transparent on hover */
    filter: drop-shadow(0 6px 18px rgba(255, 255, 255, 0.4)); /* Enhance WHITE shadow on hover */
}

a {
    display: inline-block; /* Ensure link wraps the image correctly */
    line-height: 0; /* Prevent extra space */
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
}

/* Footer Styling */
.site-footer {
    position: relative; /* Above overlay */
    z-index: 2;
    width: 100%;
    padding: 20px 0 10px 0; /* Padding top/bottom */
    text-align: center;
    font-size: 1.1rem; /* Larger font size */
    color: #b0b0b0; /* Lighter grey for footer text */
    background-color: transparent; /* Explicitly transparent */
    margin-top: auto; /* Push to bottom */
}

.site-footer p {
    margin: 5px 0; /* Space between paragraphs */
}

.site-footer a {
    color: #c0c0ff; /* Light blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: inherit; /* Reset line-height for text links */
    display: inline; /* Allow text links to flow normally */
}

.site-footer a:hover {
    color: #ffffff; /* White on hover */
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem; /* Smaller font for copyright */
    color: #888; /* Darker grey */
    margin-top: 15px;
}


/* Responsive adjustments */
@media (min-width: 768px) {
    .container {
        /* flex-direction: row; /* REMOVED - Keep logos vertical */
        /* justify-content: space-evenly; /* Not needed for column */
        align-items: center; /* Keep centered horizontally */
        gap: 8vh; /* Adjust gap for larger screens */
    }
    .logo {
        max-width: 320px; /* Base size for larger screens */
    }
     .logo-main {
        max-width: 480px; /* Make main logo bigger on larger screens */
        margin-top: -3vh; /* Adjust nudge UP slightly for larger screens */
    }
    .logo-edu {
        max-width: 380px; /* EDU logo size on larger screens */
        margin-top: 0; /* Keep EDU logo margin at 0 */
    }
    .site-footer {
        font-size: 1.2rem;
    }
}

/* Hide noscript message visually but keep for screen readers */
noscript p {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
