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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(circle at top, #22345a 0%, #0e1729 45%, #040813 100%);
    color: #ffffff;
    min-height: 100vh;
}

.w-100 {width: 100%;}
.justify-center {justify-content: center;}

a {
    text-decoration: none;
    color: inherit;
}

.page-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 20px;
}

.footer {
    margin-top: 36px;
    padding-bottom: 8px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.42);
}


/* Shared page structure */

.hero-section {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 36px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-hero {
    margin-bottom: 42px;
}

.page-title {
    max-width: 820px;
}

.intro-badge {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 14px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.main-title {
    font-size: 58px;
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 760px;
}

.main-title span {
    display: block;
    margin-top: 10px;
    background: linear-gradient(90deg, #88c8ff, #f1a4ff, #ffd586);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-text {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 28px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 22px;
}

.page-section-heading {
    margin-bottom: 22px;
}

.section-label {
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.46);
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 38px;
    font-weight: 700;
}

.section-description {
    max-width: 420px;
    text-align: right;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.56);
}

.page-bottom-nav {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.bottom-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.bottom-nav-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.20);
}

.floating-back-button {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(7, 14, 28, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.floating-back-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}


/* Homepage */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-card {
    background: rgba(7, 14, 28, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 20px;
}

.info-card h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.video-box {
    background: rgba(7, 14, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.video-placeholder {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background:
        radial-gradient(circle at center, rgba(59, 130, 246, 0.12), transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.16), transparent 24%),
        rgba(11, 18, 33, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.play-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 28px;
    margin-bottom: 18px;
}

.video-placeholder h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.video-placeholder p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
}

.video-note {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
}

.chapters-section {
    margin-top: 42px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.chapter-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 22px;
    transition: transform 0.25s ease, background 0.25s ease, border 0.25s ease;
}

.chapter-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.20);
}

.chapter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.chapter-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: rgba(7, 14, 28, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.chapter-tag {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(7, 14, 28, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.54);
}

.chapter-card h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.chapter-subtitle {
    font-size: 14px;
    color: #aee0ff;
    margin-bottom: 16px;
}

.chapter-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    min-height: 118px;
}

.chapter-link {
    margin-top: 18px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.84);
}


/* Shared video player */

.custom-video-card {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(7, 14, 28, 0.55);
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.video-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(11, 18, 33, 0.95);
}

.page-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.expand-video-button {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(7, 14, 28, 0.84);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.expand-video-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.video-modal.is-open {
    display: block;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 18, 0.82);
    backdrop-filter: blur(6px);
}

.video-modal-content {
    position: relative;
    z-index: 2;
    width: min(80vw, 1200px);
    height: min(80vh, 800px);
    margin: 5vh auto 0;
    border-radius: 28px;
    background: rgba(7, 14, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.video-modal-close {
    align-self: flex-end;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.video-modal-close:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.video-modal-title {
    margin-top: 8px;
    margin-bottom: 18px;
    font-size: 24px;
    color: #ffffff;
}

.video-modal-player-wrap {
    flex: 1;
    min-height: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #000000;
}

.modal-video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}


/* Where I lived */

.map-section {
    margin-top: 12px;
}

.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: stretch;
}

.swiss-map-card,
.region-info-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.swiss-map-card {
    display: flex;
    flex-direction: column;
}

.real-map-wrapper {
    position: relative;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(7, 14, 28, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.real-swiss-map {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.map-hotspot {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.86);
    background: rgba(120, 202, 255, 0.92);
    box-shadow: 0 0 0 8px rgba(120, 202, 255, 0.16);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.map-hotspot:hover,
.map-hotspot.active-hotspot {
    transform: scale(1.08);
    background: rgba(241, 164, 255, 0.96);
    box-shadow: 0 0 0 10px rgba(241, 164, 255, 0.18);
}

.hotspot-aargau {
    top: 24%;
    left: 48%;
}

.hotspot-lucerne {
    top: 37%;
    left: 46%;
}

.hotspot-thurgau {
    top: 16%;
    left: 66%;
}

.hotspot-ticino {
    top: 68%;
    left: 61%;
}

.hotspot-italy {
    top: 87%;
    left: 72%;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.legend-button {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.legend-button:hover,
.legend-button.active-legend {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
}

.map-caption {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.66);
}

.region-info-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
}

.region-info-card h3 {
    font-size: 30px;
    margin-top: 8px;
    margin-bottom: 18px;
    color: #ffffff;
}

.region-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(7, 14, 28, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 18px;
    min-height: 180px;
}

.region-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
}

.meta-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(7, 14, 28, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.82);
}

.meta-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.48);
}


/* Hobbies */

.games-section {
    margin-top: 40px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.game-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-6px) scale(1.03);
}

.game-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.08);
}

.game-info {
    padding: 14px;
    text-align: center;
}

.game-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.game-year {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.setup-gallery {
    margin-top: 60px;
}

.carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.carousel-track {
    display: flex;
    overflow: hidden;
    gap: 16px;
    flex: 1;
}

.carousel-image {
    width: 300px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.carousel-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: white;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
}


/* Work timeline */

.timeline-section {
    margin-top: 48px;
}

.timeline-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 30px auto 0;
    padding: 20px 0 20px;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.timeline-line-fill {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 0;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #88c8ff, #f1a4ff, #ffd586);
    border-radius: 999px;
    transition: height 0.15s linear;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 80px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #88c8ff;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 8px rgba(136, 200, 255, 0.14);
    z-index: 2;
}

.timeline-item.left .timeline-dot {
    right: -9px;
}

.timeline-item.right .timeline-dot {
    left: -9px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    padding: 22px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.timeline-step {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.timeline-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #ffffff;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}

.timeline-carousel {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.timeline-carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex: 1;
}

.timeline-carousel-track::-webkit-scrollbar {
    display: none;
}

.timeline-carousel-track img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.timeline-carousel-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.timeline-carousel-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.timeline-single-image {
    margin-top: 20px;
}

.timeline-single-image img {
    display: block;
    width: 100%;
    max-width: 380px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-item.left .timeline-single-image img {
    margin-left: auto;
}

.expand-image-button {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(7, 14, 28, 0.84);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.expand-image-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.image-modal.is-open {
    display: block;
}

.image-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 18, 0.82);
    backdrop-filter: blur(6px);
}

.image-modal-content {
    position: relative;
    z-index: 2;
    width: min(90vw, 1000px);
    max-height: 85vh;
    margin: 5vh auto 0;
    border-radius: 28px;
    background: rgba(7, 14, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.image-modal-close {
    align-self: flex-end;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.image-modal-close:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.image-modal-title {
    margin-top: 8px;
    margin-bottom: 18px;
    font-size: 24px;
    color: #ffffff;
}

.image-modal-image-wrap {
    flex: 1;
    min-height: 0;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(11, 18, 33, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* Responsive */

@media (max-width: 1200px) {
    .chapter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-title {
        font-size: 48px;
    }
}

@media (max-width: 980px) {
    .map-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-description {
        text-align: left;
        max-width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .timeline-line,
    .timeline-line-fill {
        left: 20px;
        transform: none;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        left: 0;
        text-align: left;
        padding: 0 0 40px 56px;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 11px;
        right: auto;
    }

    .timeline-item.left .timeline-single-image img {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 92vw;
        height: 78vh;
        margin-top: 6vh;
        padding: 16px;
    }

    .expand-video-button {
        right: 10px;
        bottom: 10px;
        font-size: 13px;
        padding: 9px 12px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 20px 14px 14px;
    }

    .hero-section {
        padding: 22px;
        border-radius: 22px;
    }

    .main-title {
        font-size: 38px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .chapter-grid {
        grid-template-columns: 1fr;
    }

    .chapter-card {
        border-radius: 22px;
    }

    .floating-back-button {
        top: 14px;
        right: 14px;
        padding: 10px 14px;
        font-size: 13px;
    }

    .region-info-card h3 {
        font-size: 24px;
    }

    .page-bottom-nav {
        flex-direction: column;
    }

    .bottom-nav-link {
        width: 100%;
    }
}