/* Modern color palette and typography */
:root {
    --primary-blue: #0066cc;
    --dark-blue: #003d7a;
    --light-blue: #e6f2ff;
    --accent-orange: #ff6b35;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --background: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body { 
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0; 
    padding: 0; 
    background: var(--background);
    color: var(--text-dark);
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    line-height: 1.6;
}

/* Modern header with gradient */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container { 
    display: flex; 
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2em 2em;
}

.logo { 
    height: 55px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 2em;
}

nav a { 
    color: var(--white);
    text-decoration: none; 
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5em 0;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover { 
    color: var(--accent-orange);
}

/* Modern main content area */
main { 
    padding: 3em 2em;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
}

/* Hero section styling */
h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-top: 2em;
    margin-bottom: 1em;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-blue);
}

p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2em;
}

/* Modern sections with cards */
section {
    background: var(--white);
    padding: 2.5em;
    margin-bottom: 2em;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Modern news grid */
.news-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
    margin-top: 2em;
}

/* Vertical news layout for news page */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin-top: 2em;
}

.news-tile { 
    border: none;
    padding: 1.8em;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
}

.news-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-tile h3 {
    margin-top: 0;
    color: var(--dark-blue);
}

.news-tile p strong {
    color: var(--accent-orange);
    font-weight: 600;
}

/* Modern publication cards */
.publication { 
    border: none;
    padding: 2em;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2em;
    display: flex;
    gap: 2em;
    align-items: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.publication:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.publication[data-clickable="true"] {
    cursor: pointer;
}

.publication[data-clickable="true"]:hover {
    background-color: var(--light-blue);
}

.publication img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    height: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.publication-links a {
    position: relative;
    z-index: 1;
}

/* Modern buttons and links */
a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
}

button, input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    border: none;
    padding: 0.8em 2em;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

button:hover, input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Modern form styling */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.9em;
    margin-bottom: 1.2em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Form messages */
.form-message {
    padding: 1em;
    margin: 1em 0;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
    display: block;
}

/* Modern footer */
footer { 
    background: linear-gradient(135deg, var(--dark-blue) 0%, #001f3f 100%);
    color: var(--white);
    padding: 2.5em 2em;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

footer form {
    margin-bottom: 1.5em;
    display: flex;
    justify-content: center;
    gap: 0.5em;
    flex-wrap: wrap;
}

footer input { 
    padding: 0.9em 1.2em;
    border-radius: 8px;
    border: none;
    min-width: 300px;
    font-size: 0.95rem;
}

footer button { 
    padding: 0.9em 2em;
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

footer button:hover {
    background: #ff5722;
    transform: translateY(-2px);
}

footer a { 
    color: var(--white);
    text-decoration: none;
    margin: 0 1em;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-orange);
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1em;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1em;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    main {
        padding: 1.5em 1em;
    }
    
    section {
        padding: 1.5em;
    }
    
    section > div[style*="display: flex"] {
        flex-direction: column;
        text-align: center;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .publication {
        flex-direction: column;
    }
    
    footer input {
        min-width: 100%;
    }
}

/* Partners Page Styles */
.partners-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem 0;
}

.partner-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 600px;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.partner-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin-bottom: 0;
}

.partner-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.partner-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}