:root {
    --bg-color: #f4f1ea;
    --text-color: #2c2c2c;
    --accent-color: #2e8b57;
    --nav-bg: #e6e2d6;
    --surface-color: rgba(255, 252, 246, 0.92);
    --surface-border: rgba(111, 105, 88, 0.16);
}
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(46, 139, 87, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(191, 146, 59, 0.08), transparent 25%),
        linear-gradient(180deg, #f8f5ef 0%, var(--bg-color) 45%, #efe8da 100%);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
h1, h2, h3 {
    font-family: 'Georgia', serif;
    font-weight: normal;
}

/* Header & Dropdown Navigation */
.site-header {
    background-color: rgba(230, 226, 214, 0.90);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.brand {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.brand:hover { color: var(--accent-color); }
.dropdown-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.nav-group { position: relative; }
.nav-group-btn {
    background: none;
    border: none;
    font-family: inherit;
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-group-btn::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.55;
    transition: transform 0.15s ease;
}
.nav-group-btn:hover,
.nav-group.open .nav-group-btn {
    background: rgba(46, 139, 87, 0.10);
    color: var(--accent-color);
}
.nav-group.open .nav-group-btn::after {
    transform: rotate(180deg);
}
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 235px;
    background: #fffdf8;
    border: 1px solid rgba(111, 105, 88, 0.16);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(44, 44, 44, 0.14);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.nav-group.open .nav-dropdown {
    display: flex;
}
.nav-dropdown a {
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.88rem;
    font-weight: 600;
}
.nav-dropdown a:hover,
.nav-dropdown a.current {
    background: rgba(46, 139, 87, 0.12);
    color: #1e5c39;
}
@media (max-width: 640px) {
    .header-inner { justify-content: center; }
    .dropdown-nav { justify-content: center; width: 100%; }
    .nav-dropdown { left: 50%; transform: translateX(-50%); }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px 56px;
}
section {
    padding: 44px 32px;
    margin: 32px 0;
    border: 1px solid var(--surface-border);
    border-radius: 22px;
    background: var(--surface-color);
    box-shadow: 0 18px 45px rgba(63, 54, 37, 0.05);
}
.hero {
    text-align: center;
    padding: 56px 32px 40px;
    background: linear-gradient(180deg, rgba(242, 236, 223, 0.94), rgba(255, 252, 246, 0.90));
}
.hero-kicker {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(46, 139, 87, 0.12);
    color: #1e5c39;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.05;
    margin: 0 0 14px;
}

/* Carousel Styling */
.carousel-container {
    position: relative;
    max-width: 760px;
    margin: 28px auto 18px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 22px 48px rgba(44, 44, 44, 0.15);
}
.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    background: #e6e2d6;
    position: relative;
}
.carousel-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(64, 39, 18, 0.75);
    color: #fff;
    padding: 15px 20px;
    font-size: 0.95rem;
    text-align: left;
    backdrop-filter: blur(5px);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background 0.2s;
    z-index: 10;
}
.carousel-btn:hover {
    background: #fff;
    color: var(--accent-color);
}
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

/* General Layout Helpers */
.grid-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 20px;
}
@media (min-width: 768px) {
    .grid-two-col {
        grid-template-columns: 1fr 1fr;
    }
}
.info-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(111, 105, 88, 0.12);
    padding: 22px;
    border-radius: 14px;
}
.highlight-box {
    background-color: #eef2e6;
    padding: 20px;
    border-left: 5px solid var(--accent-color);
    margin: 20px 0;
    border-radius: 0 14px 14px 0;
}

/* Interactive Panel Styling */
.interactive-section {
    margin-top: 24px;
}
.tab-menu {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}
.tab-btn {
    flex: 1;
    padding: 14px;
    border: 1px solid rgba(111, 105, 88, 0.16);
    background: linear-gradient(180deg, #fbfaf7, #efe8da);
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
}
.tab-btn.active {
    background: linear-gradient(180deg, #e5ecd6, #cbd9b5);
    border-color: var(--accent-color);
    font-weight: bold;
}
.display-panel {
    background: #fff;
    border: 1px solid rgba(111, 105, 88, 0.16);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}
.display-img-wrapper {
    width: 100%;
    height: 800px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 16px;
    background: #ddd;
}
.display-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Map Interactive Gallery Styling */
.map-explorer {
    margin-top: 30px;
}
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.map-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    background: #e6e2d6;
}
.map-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.map-thumb.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.25);
}
.map-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}
.map-thumb-label {
    padding: 8px;
    font-size: 0.85rem;
    text-align: center;
    background: #fff;
    font-weight: 500;
}
.map-viewer {
    background: #fff;
    border: 1px solid rgba(111, 105, 88, 0.16);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.zoom-stage {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 10px;
    background: #eae6db;
    cursor: zoom-in;
}
.zoom-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.3, 1);
    transform-origin: center center;
}
.zoom-stage.zoomed {
    cursor: zoom-out;
}
.zoom-stage.zoomed img {
    transform: scale(2.2);
}
.zoom-hint {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    pointer-events: none;
    backdrop-filter: blur(4px);
    letter-spacing: 0.05em;
}
.map-details {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(111, 105, 88, 0.12);
}
.map-details h3 {
    margin: 0 0 8px 0;
    color: #1e5c39;
}
.map-details p {
    margin: 0;
    font-size: 0.95rem;
    color: #4a4a4a;
}

/* Sources Section */
.sources-box {
    margin-top: 40px;
    padding: 24px;
    background: rgba(230, 226, 214, 0.4);
    border-radius: 14px;
    border: 1px dashed rgba(111, 105, 88, 0.3);
}
.sources-box h4 {
    margin: 0 0 12px 0;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
}
.sources-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
    color: #555;
}
.sources-list li {
    margin-bottom: 6px;
}
.sources-list a {
    color: var(--accent-color);
    text-decoration: none;
}
.sources-list a:hover {
    text-decoration: underline;
}

h3.subhead {
    margin: 36px 0 4px;
    color: #1e5c39;
    font-size: 1.3rem;
}
h3.subhead:first-of-type { margin-top: 8px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 20px 0;
}
.stat-tile {
    background: linear-gradient(180deg, #fbfaf7, #efe8da);
    border: 1px solid rgba(111, 105, 88, 0.16);
    border-radius: 14px;
    padding: 18px 12px;
    text-align: center;
}
.stat-tile .stat-number {
    display: block;
    font-family: 'Georgia', serif;
    font-size: 1.7rem;
    font-weight: bold;
    color: #1e5c39;
    line-height: 1.15;
}
.stat-tile .stat-label {
    display: block;
    font-size: 0.78rem;
    color: #555;
    margin-top: 6px;
}

/* Earthquake magnitude comparison chart */
.quake-chart {
    margin: 22px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.quake-row-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.92rem;
    margin-bottom: 6px;
}
.quake-row-head strong { color: var(--text-color); }
.quake-row-head .quake-year {
    font-size: 0.8rem;
    color: #7a7568;
}
.quake-track {
    background: rgba(111, 105, 88, 0.10);
    border-radius: 999px;
    height: 26px;
    overflow: hidden;
}
.quake-fill {
    height: 100%;
    min-width: 48px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2e8b57, #4fae79);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    box-sizing: border-box;
    transition: filter 0.2s ease;
}
.quake-fill:hover { filter: brightness(1.1); }
.quake-fill span {
    color: #fff;
    font-weight: bold;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}
.quake-note {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: #666;
}

/* Video card (thumbnail link-out — avoids third-party embed blocks) */
.video-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin: 22px 0 8px;
    box-shadow: 0 18px 40px rgba(44, 44, 44, 0.15);
    text-decoration: none;
    color: inherit;
    background: #000;
}
.video-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: 0.88;
    transition: opacity 0.2s ease, transform 0.3s ease;
}
.video-card:hover img {
    opacity: 1;
    transform: scale(1.02);
}
.video-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    backdrop-filter: blur(2px);
}
.video-card-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.78), transparent);
    color: #fff;
    padding: 30px 18px 14px;
    font-size: 0.9rem;
}
.video-card-caption strong { display: block; margin-bottom: 2px; }
.video-caption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
}

section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(46, 139, 87, 0.18);
}
section h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-color), #bfa23c);
}

/* Prev / Next page footer navigation */
.page-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.page-nav a {
    flex: 1;
    min-width: 220px;
    padding: 18px 20px;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 10px 25px rgba(63, 54, 37, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.page-nav a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(63, 54, 37, 0.09);
}
.page-nav a.next { text-align: right; }
.page-nav .page-nav-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a8471;
    margin-bottom: 4px;
}
.page-nav .page-nav-title {
    font-family: 'Georgia', serif;
    font-size: 1.05rem;
    color: #1e5c39;
}
