/* ===== BASE RESET & FONTS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Calibri, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #222;
    background: #fff;
}

a { color: #1e5fa8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAVIGATION ===== */
nav {
    background: #0d1b35;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
nav .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 56px;
}
nav .nav-logo {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
nav .nav-logo span { color: #7ec8f7; }
nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}
nav ul li a {
    display: block;
    color: #c8d8ee;
    padding: 0 1.1rem;
    height: 56px;
    line-height: 56px;
    font-size: 0.93rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: background 0.2s, color 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
    background: #1e3a6a;
    color: #fff;
    text-decoration: none;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 420px;
    background: #0d1b35 url('../images/cmor_radar_2.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 50, 0.72);
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    padding: 3rem 2rem;
    max-width: 960px;
    width: 100%;
}
.hero-content {
    color: #fff;
    flex: 1;
}
.hero-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}
.hero-content h1 span { color: #7ec8f7; }
.hero-content p {
    font-size: 1.15rem;
    color: #c8d8ee;
    margin-top: 0.5rem;
    line-height: 1.5;
}
.hero-photo {
    flex-shrink: 0;
}
.hero-photo img {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid rgba(126, 200, 247, 0.7);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    display: block;
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: #1e3a6a;
    color: #fff;
}
.stats-bar .stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}
.stat-item {
    padding: 1rem 2.5rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #7ec8f7;
    display: block;
    line-height: 1.1;
}
.stat-item .stat-label {
    font-size: 0.8rem;
    color: #9bb8d8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}

/* ===== SECTION CONTAINERS ===== */
.section {
    padding: 4rem 1.5rem;
}
.section-alt {
    background: #f4f7fb;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0d1b35;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #1e5fa8;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}
.section-intro {
    font-size: 1.05rem;
    color: #444;
    max-width: 760px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ===== RESEARCH CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.09);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-img-placeholder {
    width: 100%;
    height: 180px;
    background: #1e3a6a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7ec8f7;
    font-size: 2.5rem;
}
.card-body {
    padding: 1.2rem 1.3rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d1b35;
    margin-bottom: 0.5rem;
}
.card-body p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    flex: 1;
}
.card-body a.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e5fa8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.about-grid img {
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    width: 100%;
}
.about-text p { margin-bottom: 1rem; color: #444; }
.about-text h2 {
    font-size: 1.75rem; font-weight: 700; color: #0d1b35;
    margin-bottom: 0.5rem;
}
.about-text h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #1e5fa8;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
}

/* ===== INSTRUMENTS PAGE ===== */
.instrument-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #e2e8f0;
}
.instrument-block:last-child { border-bottom: none; margin-bottom: 0; }
.instrument-block.reverse { direction: rtl; }
.instrument-block.reverse > * { direction: ltr; }
.instrument-img {
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    width: 100%;
    object-fit: cover;
    max-height: 340px;
}
.instrument-specs {
    margin-top: 1.5rem;
    background: #f4f7fb;
    border-radius: 6px;
    padding: 1rem 1.3rem;
}
.instrument-specs h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1e5fa8;
    margin-bottom: 0.7rem;
}
.instrument-specs table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.instrument-specs td {
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}
.instrument-specs td:first-child {
    font-weight: 600;
    color: #0d1b35;
    width: 45%;
}
.instrument-specs tr:last-child td { border-bottom: none; }

/* ===== PUBLICATIONS PAGE ===== */
.pub-list { list-style: none; }
.pub-year-section { margin-bottom: 2.5rem; }
.pub-year {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0d1b35;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #1e5fa8;
}
.pub-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e8eef5;
    font-size: 0.93rem;
    line-height: 1.55;
}
.pub-item:last-child { border-bottom: none; }
.pub-authors { color: #444; }
.pub-title { font-weight: 600; color: #0d1b35; }
.pub-journal { color: #666; font-style: italic; }
.pub-doi { font-size: 0.82rem; color: #1e5fa8; }

/* ===== PEOPLE PAGE ===== */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}
.person-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.09);
}
.person-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
    background: #1e3a6a;
}
.person-info {
    padding: 1.2rem;
}
.person-info h3 { font-size: 1.05rem; color: #0d1b35; margin-bottom: 0.2rem; }
.person-info .title { font-size: 0.88rem; color: #1e5fa8; font-weight: 600; margin-bottom: 0.5rem; }
.person-info p { font-size: 0.87rem; color: #555; }
.person-info .email { font-size: 0.85rem; color: #1e5fa8; margin-top: 0.5rem; }

/* ===== RESEARCH DETAIL PAGE ===== */
.research-topic {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #e2e8f0;
}
.research-topic:last-child { border-bottom: none; }
.research-topic h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d1b35;
    margin-bottom: 0.3rem;
}
.research-topic h2::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: #1e5fa8;
    margin-top: 0.4rem;
    margin-bottom: 1.2rem;
}
.research-topic-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.research-topic-grid.imgfirst {
    grid-template-columns: 1fr 2fr;
}
.research-topic img {
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    width: 100%;
}
.research-topic p { color: #444; margin-bottom: 1rem; line-height: 1.7; }
.research-topic ul {
    margin: 0.5rem 0 1rem 1.3rem;
    color: #444;
}
.research-topic ul li { margin-bottom: 0.3rem; }
.key-papers {
    background: #f4f7fb;
    border-left: 3px solid #1e5fa8;
    padding: 1rem 1.2rem;
    border-radius: 0 6px 6px 0;
    margin-top: 1.5rem;
    font-size: 0.88rem;
}
.key-papers h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1e5fa8;
    margin-bottom: 0.6rem;
}
.key-papers li { margin-bottom: 0.4rem; color: #444; list-style: none; padding-left: 1em; position: relative; }
.key-papers li::before { content: "›"; position: absolute; left: 0; color: #1e5fa8; font-weight: 700; }

/* ===== FOOTER ===== */
footer {
    background: #0d1b35;
    color: #9bb8d8;
    padding: 2.5rem 1.5rem;
    margin-top: 0;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}
footer h4 {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}
footer p, footer ul { font-size: 0.87rem; line-height: 1.7; }
footer ul { list-style: none; }
footer ul li a { color: #9bb8d8; }
footer ul li a:hover { color: #fff; }
.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.82rem;
    color: #6a8aaa;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ===== PAGE HEADER (non-hero inner pages) ===== */
.page-header {
    background: linear-gradient(135deg, #0d1b35 0%, #1e3a6a 100%);
    color: #fff;
    padding: 3.5rem 1.5rem 2.5rem;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    max-width: 1200px;
    margin: 0 auto;
}
.page-header p {
    max-width: 1200px;
    margin: 0.5rem auto 0;
    color: #9bb8d8;
    font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .about-grid,
    .instrument-block,
    .research-topic-grid,
    .research-topic-grid.imgfirst,
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .instrument-block.reverse { direction: ltr; }
    .hero-inner { flex-direction: column-reverse; gap: 1.5rem; padding: 2.5rem 1.5rem; text-align: center; }
    .hero-content h1 { font-size: 1.8rem; }
    .stat-item { padding: 0.8rem 1.2rem; }
}
@media (max-width: 650px) {
    nav .nav-inner { padding: 0 0.5rem; }
    nav ul li a { padding: 0 0.6rem; font-size: 0.82rem; }
    .hero { min-height: 300px; }
    .hero-content h1 { font-size: 1.5rem; }
    .cards-grid { grid-template-columns: 1fr; }
}
