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

:root {
  --primary-color: #2C3E50;
  --secondary-color: #34495E;
  --accent-color: #3498DB;
  --accent-color-2: #2ECC71;
  --bg-color: #ffffff;
  --bg-light: #F8F8F8;
  --text-color: #333333;
  --text-muted: #666666;
  --border-color: #e0e0e0;
  --white: #ffffff;
  --shadow-color: rgba(44, 62, 80, 0.1);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --container-width: 1200px;
  --header-height: 80px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
p { margin-bottom: 1rem; color: var(--text-muted); }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-color-2); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.full-width-image { width: 100%; border-radius: 12px; margin-top: 2rem; object-fit: cover; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Gradient Flow & Shapes */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05), rgba(44, 62, 80, 0.05));
  z-index: -2;
}

.shape {
  position: fixed;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
  opacity: 0.1;
  z-index: -1;
  animation: float 20s infinite ease-in-out;
}
.shape-1 { width: 400px; height: 400px; top: -150px; left: -150px; animation-duration: 25s; }
.shape-2 { width: 300px; height: 300px; bottom: -100px; right: -100px; animation-duration: 20s; animation-delay: 5s; }
.shape-3 { width: 200px; height: 200px; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-duration: 30s; }

@keyframes float {
  0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  50% { transform: translateY(-40px) translateX(40px) rotate(180deg); }
  100% { transform: translateY(0px) translateX(0px) rotate(360deg); }
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
}
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-link {
  font-weight: 600;
  color: var(--secondary-color);
  position: relative;
  padding: 5px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-color), var(--accent-color-2));
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-link.active {
    color: var(--primary-color);
}

.hamburger { display: none; }
.nav-cta { display: block; }

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.cta-button.primary {
  color: var(--white);
  background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}
.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}
.cta-button.secondary {
  color: var(--primary-color);
  background: transparent;
  border: 2px solid var(--accent-color);
}
.cta-button.secondary:hover {
  background: var(--accent-color);
  color: var(--white);
}

.pulsating { animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

/* Sections */
.content-section {
  padding: clamp(60px, 10vh, 100px) 0;
}
.bg-light { background-color: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 1.5rem; }
.section-intro { max-width: 800px; margin: 0 auto 3rem auto; color: var(--text-muted); text-align: center; font-size: 1.1rem; }

/* Hero */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary-color);
  padding: 100px 20px;
  position: relative;
  background: linear-gradient(135deg, rgba(248, 248, 248, 0.8), rgba(255, 255, 255, 0.9));
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-title {
  background: -webkit-linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--secondary-color);
}
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}
.scroll-down-indicator svg { width: 30px; height: 30px; stroke: var(--primary-color); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Page Hero */
.page-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--white);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.6);
}
.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.page-title { color: var(--white); margin-bottom: 0.5rem; }
.page-subtitle { color: rgba(255, 255, 255, 0.9); font-size: 1.2rem; margin-bottom: 0;}


/* Wave Divider */
.wave-divider {
    background-color: transparent;
    position: relative;
}
.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}
.wave-divider .shape-fill {
    fill: var(--bg-light);
}

/* Glassmorphism Cards */
.feature-card.glass, .value-card.glass {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px 0 var(--shadow-color);
}
.feature-card.glass:hover, .value-card.glass:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px 0 rgba(44, 62, 80, 0.15);
}
.card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
  color: var(--white);
}
.card-icon svg { width: 28px; height: 28px; stroke-width: 2; }
.feature-card h3, .value-card h4 { margin-bottom: 15px; }
.learn-more-link { font-weight: 600; margin-top: 1rem; display: inline-block; }

/* Grid Layouts */
.grid-3-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-4-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.grid-5-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

/* Article Cards */
.article-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-color) 0px 7px 29px 0px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-color) 0px 10px 40px 0px; }
.article-card img { width: 100%; height: 220px; object-fit: cover; }
.article-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.article-category { font-size: 0.8rem; font-weight: 600; color: var(--accent-color); margin-bottom: 10px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }
.article-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.article-card p { flex-grow: 1; }
.read-more-btn {
    align-self: flex-start;
    margin-top: 15px;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}
.read-more-btn:hover { background: var(--accent-color); color: var(--white); border-color: var(--accent-color); }
.article-meta { font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; display: block; }


/* About Promo Section */
.about-promo-section .about-promo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-promo-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
}
.about-promo-text .section-title { text-align: left; }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    stroke: var(--accent-color);
    stroke-width: 2px;
    fill: none;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}
.faq-answer p { padding: 0 0 20px 0; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .faq-icon { transform: rotate(180deg); }


/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
    position: relative;
    border-top: 5px solid;
    border-image: linear-gradient(to right, var(--accent-color), var(--accent-color-2)) 1;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.footer-column h4 { color: var(--white); margin-bottom: 20px; }
.footer-column.about .logo { font-size: 1.5rem; color: var(--white); }
.footer-column.about p { color: rgba(255, 255, 255, 0.7); margin-top: 15px; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul a { color: rgba(255, 255, 255, 0.8); }
.footer-column ul a:hover { color: var(--white); padding-left: 5px; }
.footer-contact-link { display: block; margin-bottom: 10px; color: rgba(255, 255, 255, 0.8); }
.footer-contact-link:hover { color: var(--white); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.social-links { display: flex; gap: 15px; }
.social-links a { color: rgba(255, 255, 255, 0.8); }
.social-links a:hover { color: var(--white); }
.social-links svg { width: 24px; height: 24px; }
address { font-style: normal; line-height: 1.6; }


/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.95);
    color: var(--white);
    padding: 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    backdrop-filter: blur(5px);
}
.cookie-banner p { margin: 0; font-size: 0.9rem; }
.cookie-banner a { color: var(--accent-color); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    background: var(--accent-color);
    color: var(--white);
}
.cookie-buttons button.decline {
    background: var(--secondary-color);
}

/* Scroll to top button */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}
#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}
#scroll-to-top:hover {
    transform: scale(1.1);
}

/* Responsive */
@media screen and (max-width: 992px) {
    .nav-links-wrapper {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding: 40px;
    }
    .nav-links-wrapper.open {
        transform: translateX(0);
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .nav-link {
        font-size: 1.5rem;
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }
    .hamburger span {
        width: 30px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }
    .hamburger.open span:nth-child(1) { transform: rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(20px); }
    .hamburger.open span:nth-child(3) { transform: rotate(-45deg); }
    .nav-cta { display: none; }

    .about-promo-section .about-promo-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .hero { min-height: 70vh; }
    .footer-grid, .footer-bottom {
        text-align: center;
        flex-direction: column;
    }
    .footer-grid { gap: 40px; }
    .footer-bottom { gap: 20px;}
    .cookie-banner { flex-direction: column; text-align: center; }
}

/* About page specific styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-color), var(--accent-color-2));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 50%; }
.timeline-item:nth-child(even) { left: 0; text-align: right;}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(odd)::after { left: -10px; }
.timeline-content {
    padding: 20px 30px;
    background: var(--white);
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-color);
}
.timeline-date {
    display: inline-block;
    padding: 5px 10px;
    background: var(--accent-color-2);
    color: white;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 10px;
}
.team-card {
    text-align: center;
    padding: 20px;
}
.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid var(--accent-color);
}
.team-card h4 { margin-bottom: 5px; }


/* Contact page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}
.contact-info .section-title { text-align: left; }
.info-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.info-icon {
    flex-shrink: 0;
    width: 50px; height: 50px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.info-item h4 { margin-bottom: 5px; font-size: 1.2rem; }
.info-item a, .info-item address { color: var(--text-muted); }
.contact-form {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: clamp(20px, 4vw, 40px);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 var(--shadow-color);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

@media (max-width: 992px) {
    .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .map-container { height: 350px; border-radius: 8px; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; text-align: left; }
    .timeline-item:nth-child(odd)::after, .timeline-item:nth-child(even)::after { left: 21px; }
}


/* Publications Page */
.publications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}
.publications-header .section-title { margin-bottom: 0; text-align: left;}
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    gap: 10px;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
}
.pagination a:hover, .pagination a.active {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}


/* Legal Page */
.legal-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}
.legal-content h3:first-of-type { margin-top: 1rem; }
.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}
.legal-content li { margin-bottom: 0.5rem; }
.last-updated {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Thank You Page */
.thank-you-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}
.thank-you-icon {
    width: 80px; height: 80px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-2));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
}
.thank-you-icon svg { width: 40px; height: 40px; color: white; }
.thank-you-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}
.thank-you-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}