/* Base body style */
body {
    margin: 0;
    background-color: #060539;
    color: #ffffff;
    font-family: "Work Sans", Sans-serif;
    font-weight: 400;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px; /* Add horizontal padding */
}

/* Hero section */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

.logo {
    width: 200px;
    max-width: 80%;
    height: auto;
    background-color: white;
    padding: 10px;
    border-radius: 5%;
    margin-bottom: 15px;
}

h1 {
    font-size: 25px;
    font-weight: 600;
    margin: 0;
    padding: 0 10px; /* Add some padding for mobile */
}

/* Main content layout - DESKTOP */
.main-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.left-column, .center-column, .right-column {
    flex: 1;
    min-width: 0;
}

/* TrustED info section */
.trusted-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trusted-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 10px;
}

.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
}

.eu-logo {
    max-width: 180px;
    height: auto;
    margin: 10px 0;
}

.social-icon {
    width: 40px;
    height: auto;
    margin-top: 10px;
}

/* Headings */
h3 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

h4 {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

/* Button group */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

/* Login section */
.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-prompt {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

.login-form input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.login-form button {
    padding: 12px;
    border: none;
    border-radius: 2px;
    background-color: #391ccb;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.login-form button:hover {
    background-color: #ffffff;
    color: #391ccb;
}

/* Europe map */
.europe-map {
    width: 100%;
    max-width: 650px;
    height: auto;
    margin: 0 auto; /* Center horizontally */
    display: block; /* Ensure it behaves as a block element */    
}

/* Trusted buttons */
.trusted_button {
    border: none;
    padding: 12px 20px;
    color: white;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 12pt;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    border-radius: 2px;
}

.trusted_button-blue {
    background-color: #391ccb;
    color: #ffffff;
}

.trusted_button-blue:hover {
    background-color: #ffffff;
    color: #391ccb;
}

/* Paragraphs */
p {
    margin: 0 0 15px 0;
}

p.eu_horizon_disclaimer {
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
}

/* MOBILE LAYOUT */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px; /* More padding on mobile */
    }
    
    .main-content {
        flex-direction: column;
        gap: 0; /* Remove gap since we're controlling spacing individually */
    }
    
    /* REORDER: Login form comes FIRST */
    .center-column {
        order: 1; /* Login form first */
        margin-bottom: 30px;
    }
    
    /* TrustED info comes SECOND */
    .left-column {
        order: 2;
        margin-bottom: 30px;
    }
    
    /* Europe map comes LAST */
    .right-column {
        order: 3;
    }
    
    .left-column, .center-column, .right-column {
        width: 100%;
    }
    
    .europe-map {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .trusted-info {
        align-items: center;
        text-align: center;
        gap: 10px; /* Reduced gap for mobile */
    }
    
    h1 {
        font-size: 22px;
        padding: 0 5px;
    }
    
    h3 {
        font-size: 24px;
        margin: 10px 0;
    }
    
    /* Reduce spacing in trusted-info for mobile */
    .trusted-logo {
        max-width: 200px;
        margin-bottom: 5px;
    }
    
    .button-group {
        gap: 8px;
        margin: 15px 0;
    }
    
    .eu-logo {
        max-width: 180px; 
    }
    
    .social-icon {
        width: 40px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 22px;
    }
    
    .login-form {
        max-width: 100%;
    }
    
    .europe-map {
        max-width: 300px;
    }
    
    /* Further reduce spacing for smaller screens */
    .center-column {
        margin-bottom: 20px;
    }
    
    .left-column {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 12px; /* Adequate margin from edges */
    }
    
    h1 {
        font-size: 18px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    h4 {
        font-size: 13px;
    }
    
    .trusted-logo {
        max-width: 180px;
    }
    
    .europe-map {
        max-width: 250px;
    }
    
    .eu-logo {
        max-width: 135px;
    }
    
    .social-icon {
        width: 30px;
    }
    
    /* Tighten up spacing on very small screens */
    .center-column {
        margin-bottom: 15px;
    }
    
    .left-column {
        margin-bottom: 15px;
    }
    
    .trusted-info {
        gap: 8px;
    }
}