:root {
    --primary: #005073;        /* Navy - main brand colour */
    --primary-light: #006890;  /* Lighter navy for hovers */
    --primary-dark: #003D57;   /* Darker navy */
    --accent: #96285F;         /* Magenta - good contrast as accent */
    --accent-light: #AB4275;   /* Lighter magenta */
    --highlight: #F4D35E;
    --bg-light: #F8F9FA;
    --bg-cream: #FDF8F4;
    --text-dark: #1A1A2E;
    --text-medium: #4A4A5A;
    --text-light: #6B6B7B;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text-dark); line-height: 1.6; background: var(--white); }
h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; font-weight: 400; line-height: 1.2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
nav { position: fixed; top: 0; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); z-index: 1000; padding: 16px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.logo { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--primary); text-decoration: none; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-medium); font-weight: 500; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { background: var(--accent); color: var(--white) !important; padding: 10px 20px; border-radius: 6px; }
.nav-cta:hover { background: var(--accent-light) !important; }

/* Hero */
.hero { min-height: 70vh; padding: 100px 0 800px; background: var(--primary); }
.hero .container { min-height: calc(60vh - 200px); display: flex; flex-direction: column; justify-content: center; }
.hero-content { max-width: 800px; }
.hero-badge { display: block; background: rgba(255,255,255,0.2); color: var(--white); padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; margin-top: 40px; margin-bottom: 40px; margin-left: auto; margin-right: auto; width: fit-content; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); color: var(--white); margin-bottom: 24px; }
.hero h1 em { color: var(--highlight); font-style: normal; }
.hero p { font-size: 20px; color: rgba(255,255,255,0.9); margin-bottom: 40px; max-width: 600px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.2); }
.hero-stat-value { font-family: 'DM Serif Display', serif; font-size: 48px; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 8px; }

/* Buttons */
.btn { display: inline-block; padding: 16px 32px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: all 0.2s; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); margin-left: 16px; }
.btn-secondary:hover { background: var(--white); color: var(--primary); }

/* Sections */
section { padding: 100px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header h2 { font-size: 42px; color: var(--primary); margin-bottom: 16px; }
.section-header p { font-size: 18px; color: var(--text-medium); }

/* About */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-content h2 { font-size: 42px; margin-bottom: 24px; color: var(--primary); }
.about-content p { color: var(--text-medium); margin-bottom: 20px; font-size: 17px; }
.about-features { display: grid; gap: 20px; margin-top: 40px; }
.about-feature { display: flex; gap: 16px; align-items: flex-start; position: relative; padding-left: 24px; }
.about-feature::before { content: '•'; position: absolute; left: 0; top: 1px; color: var(--primary); font-size: 24px; font-weight: bold; line-height: 1; }
.about-feature h4 { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 17px; margin-bottom: 4px; color: var(--primary); }
.about-feature p { font-size: 15px; margin: 0; }
.about-image { border-radius: 24px; height: 500px; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* Research */
.research { background: var(--bg-light); }
.research-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.research-card { background: var(--white); padding: 32px; border-radius: 16px; box-shadow: var(--shadow); }
.research-card-number { font-family: 'DM Serif Display', serif; font-size: 48px; color: var(--primary); opacity: 0.3; margin-bottom: 16px; }
.research-card h3 { font-size: 22px; margin-bottom: 12px; color: var(--primary); }
.research-card p { font-size: 15px; color: var(--text-medium); }

/* PhD Projects */
.phd-projects { background: var(--white); }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { background: var(--bg-light); border-radius: 16px; padding: 28px; cursor: pointer; transition: all 0.3s; border: 2px solid transparent; }
.project-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.project-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.project-number { background: var(--primary); color: var(--white); width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.project-wp { background: var(--accent); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.project-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--primary); line-height: 1.4; }
.project-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; font-size: 14px; color: var(--text-light); }
.project-summary { font-size: 14px; color: var(--text-medium); line-height: 1.6; }
.project-card-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.view-details { color: var(--primary); font-weight: 600; font-size: 14px; }

/* Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); z-index: 2000; padding: 40px 20px; overflow-y: auto; }
.modal-overlay.active { display: flex; align-items: flex-start; justify-content: center; }
.modal { background: var(--white); border-radius: 20px; max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-header { padding: 32px 32px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--white); border-radius: 20px 20px 0 0; }
.modal-close { position: absolute; top: 24px; right: 24px; background: var(--bg-light); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--border); }
.modal-badges { display: flex; gap: 12px; margin-bottom: 16px; }
.modal-header h2 { font-size: 28px; padding-right: 50px; color: var(--primary); }
.modal-body { padding: 32px; }
.modal-section { margin-bottom: 32px; }
.modal-section h3 { font-size: 20px; color: var(--primary); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--bg-light); }
.modal-section p, .modal-section li { font-size: 15px; color: var(--text-medium); line-height: 1.7; }
.modal-section ul, .modal-section ol { padding-left: 20px; }
.modal-section li { margin-bottom: 8px; }
.supervisor-list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; }
.supervisor-list li { background: var(--bg-light); padding: 8px 16px; border-radius: 8px; font-size: 14px; }
.modal-apply-btn { display: block; width: 100%; text-align: center; margin-top: 32px; }

/* Partners */
.partners { background: var(--bg-light); }
.partners-category { margin-bottom: 48px; }
.partners-category h3 { font-size: 24px; margin-bottom: 24px; color: var(--primary); }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.partner-card { background: var(--white); padding: 20px; border-radius: 12px; text-align: center; box-shadow: var(--shadow); }
.partner-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.partner-country { font-size: 13px; color: var(--text-light); }

/* Contact */
.contact { background: var(--primary); color: var(--white); }
.contact .section-header h2 { color: var(--white); }
.contact .section-header p { color: rgba(255, 255, 255, 0.8); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contact-card { background: rgba(255, 255, 255, 0.1); padding: 32px; border-radius: 16px; text-align: center; }
.contact-card-icon { font-size: 32px; margin-bottom: 16px; }
.contact-card h3 { font-size: 20px; margin-bottom: 8px; }
.contact-card p, .contact-card a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.contact-card a:hover { color: var(--white); }
.eu-funding { margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.eu-flag { width: 60px; height: 40px; background: #003399; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #FFCC00; font-size: 20px; }
.eu-funding p { font-size: 14px; color: rgba(255, 255, 255, 0.8); max-width: 600px; }

/* Footer */
footer { background: var(--primary); color: var(--white); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); margin-top: 16px; font-size: 14px; }
.footer-column h4 { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 12px; }
.footer-column a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 14px; }
.footer-column a:hover { color: var(--white); }
.footer-bottom { padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; color: rgba(255, 255, 255, 0.4); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Apply Page */
.apply-hero { min-height: 50vh; padding: 160px 0 80px; background: var(--primary); display: flex; align-items: center; }
.apply-hero .container { width: 100%; }
.apply-hero h1 { font-size: 48px; margin-bottom: 16px; color: var(--white); }
.apply-hero p { font-size: 20px; color: rgba(255,255,255,0.9); max-width: 700px; }
.apply-content { padding: 60px 0; }
.apply-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
.apply-main h2 { font-size: 32px; margin-bottom: 24px; margin-top: 48px; color: var(--primary); }
.apply-main h2:first-child { margin-top: 0; }
.apply-main p, .apply-main li { font-size: 16px; color: var(--text-medium); line-height: 1.8; margin-bottom: 16px; }
.apply-main ul, .apply-main ol { padding-left: 24px; margin-bottom: 24px; }
.apply-main li { margin-bottom: 12px; }
.apply-sidebar { position: sticky; top: 100px; }
.sidebar-card { background: var(--bg-light); border-radius: 16px; padding: 32px; margin-bottom: 24px; }
.sidebar-card h3 { font-size: 20px; margin-bottom: 16px; color: var(--primary); }
.sidebar-card p { font-size: 15px; color: var(--text-medium); margin-bottom: 16px; }
.timeline-item { display: flex; gap: 16px; margin-bottom: 20px; }
.timeline-dot { width: 12px; height: 12px; background: var(--primary); border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.timeline-content h4 { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 15px; margin-bottom: 4px; color: var(--primary); }
.timeline-content p { font-size: 14px; color: var(--text-light); margin: 0; }

/* Responsive */
@media (max-width: 1024px) {
    .research-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .apply-grid { grid-template-columns: 1fr; }
    .apply-sidebar { position: static; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { height: 300px; order: -1; }
    .research-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .btn-secondary { display: block; margin: 16px 0 0 0; }
    .modal-header, .modal-body { padding: 24px; }
}
