:root {
    --moes-blue: #005587;
    --moes-light-blue: #0077b6;
    --accent-blue: #00b4d8;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --primary-color: #0a5e7a;
    --secondary-color: #0f8ba1;
    --accent-color: #46b3e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
}

header {
    margin-bottom: 2rem;
    padding: 1rem 0;
    background: linear-gradient(to bottom, #ffffff, var(--light-gray));
    border-bottom: 3px solid var(--moes-blue);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.institute-logo, .ministry-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.header-content {
    flex: 1;
    text-align: center;
    max-width: 800px;
}

h1 {
    color: var(--moes-blue);
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.mission-info {
    color: var(--moes-light-blue);
}

.mission-info p {
    margin: 0.2rem 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.mission-info p:first-child {
    color: var(--accent-blue);
    font-size: 1.2rem;
}

/* Navigation styles */
.main-nav {
    margin-top: 1rem;
    background-color: var(--moes-blue);
    padding: 0.5rem;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 3rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: var(--moes-light-blue);
}

.main-nav a.active {
    background-color: var(--accent-blue);
}

h2 {
    color: var(--moes-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h3 {
    color: var(--moes-blue);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

section {
    margin-bottom: 3rem;
}

.description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2rem;
    margin-top: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.5s ease;
    opacity: 0.7;
}

.gallery-item.animated {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Placeholder styles */
.placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.placeholder::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

.note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    font-style: italic;
}

/* Publications styles */
.section-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.publication-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.publication-item {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-5px);
}

.publication-thumbnail {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: rgb(255, 255, 255);
    font-weight: 500;
    text-align: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.publication-details {
    padding: 1.5rem;
    flex: 1;
}

.authors {
    color: var(--moes-blue);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.journal {
    font-style: italic;
    margin-bottom: 0.25rem;
}

.year {
    color: #6c757d;
    margin-bottom: 1rem;
}

.abstract {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.publication-links {
    display: flex;
    gap: 1rem;
}

.pub-link {
    padding: 0.4rem 1rem;
    background-color: var(--light-gray);
    color: var(--moes-blue);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pub-link:hover {
    background-color: var(--accent-blue);
    color: white;
}

.links {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.link-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.resource-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background-color: var(--light-gray);
    color: var(--moes-blue);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background-color: var(--accent-blue);
    color: white;
}

.link-icon {
    margin-right: 10px;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
    color: #6c757d;
    font-size: 0.9rem;
}

@media screen and (max-width: 1024px) {
    .header-main {
        flex-direction: column;
        gap: 1rem;
    }

    .header-content {
        order: 2;
    }

    .institute-logo {
        order: 1;
    }

    .ministry-logo {
        order: 3;
    }

    h1 {
        font-size: 1.8rem;
    }

    .mission-info p {
        font-size: 1rem;
    }

    .mission-info p:first-child {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    .institute-logo, .ministry-logo {
        height: 80px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-gap: 1rem;
    }
    
    .gallery-item img,
    .placeholder {
        height: 140px;
    }
    
    .link-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .publication-item {
        flex-direction: column;
    }
    
    .publication-thumbnail {
        writing-mode: horizontal-tb;
        transform: none;
        min-width: auto;
        padding: 0.8rem;
    }
} 