@font-face {
    font-family: 'Inter';
    src: url('fonts/inter_400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter_500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter_600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('fonts/outfit_300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('fonts/outfit_400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('fonts/outfit_600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('fonts/outfit_700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #f8f9fa;
    /* Light, slightly cool grey for snow/stone feel */
    --text-main: #2d3748;
    /* Slate gray, softer than pure black */
    --text-muted: #718096;
    --accent: #3b82f6;
    /* Clear sky blue */
    --surface: #ffffff;
    --border: #e2e8f0;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-image: url('images/img_0805.png');
    background-repeat: repeat;
    background-attachment: fixed;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

header, main, footer, section, .hero {
    position: relative;
}

body > *:not(.polaroid-container):not(.main-header) {
    position: relative;
    z-index: 10;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000 !important;
}

.text-center {
    text-align: center;
}

/* Header & Glassmorphism */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border);
}

.main-header .container {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Logo | Center Nav | Select */
    align-items: center;
    gap: 2rem;
}

.logo {
    justify-self: start;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    justify-content: center;
}

.nav-select-wrap {
    justify-self: end;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo a:hover {
    color: var(--accent);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.main-nav a:hover {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.1);
}

/* Active link style */
.main-nav a.active {
    color: var(--text-main);
    background: white;
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
}

/* Hero Section */
.hero {
    padding: 2rem 0 3rem; /* Reduced from 6rem */
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2d3748, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem 0;
}

.post-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #e2e8f0;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s ease;
}

.post-card:hover .card-image-wrap img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-content h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    text-align: center;
}

.card-arrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: auto;
    font-family: 'Outfit', sans-serif;
}

/* Single Post */
.single-post {
    max-width: 800px;
    margin: 1rem auto 4rem auto; /* Reduced from 4rem all around to 1rem top */
    padding: 2rem 3rem; /* Reduced top padding */
}

.post-head.hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

.post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.expedition-title {
    font-size: 1.5rem;
    margin: 3rem auto 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: table; /* Centers and keeps border to text width */
    text-align: center;
}

.single-post .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.post-body p {
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    text-align: justify;
}

.post-body a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
    padding: 0 2px;
}

.post-body a:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-bottom-color: var(--accent);
    color: #1d4ed8;
    border-radius: 4px;
}

.post-body img {
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    width: 100%;
}

/* YouTube Embeds */
.yt-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 16px;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-md);
}

.yt-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Polaroid Background Effect */
.polaroid-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* In front of body background */
    overflow: hidden;
    pointer-events: none;
}

.polaroid {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    background: white;
    padding: 10px 10px 30px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    /* Center + viewport-based scatter */
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--rotation));
    animation: float-polaroid 15s ease-in-out infinite alternate;
}

.polaroid:nth-child(even) { animation-duration: 20s; animation-delay: -5s; }
.polaroid:nth-child(3n) { animation-duration: 12s; animation-delay: -2s; }

.polaroid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    filter: brightness(0.98) contrast(1.02);
}

@keyframes float-polaroid {
    from { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--rotation)); }
    to { transform: translate(calc(-50% + var(--x) + 20px), calc(-50% + var(--y) - 20px)) rotate(calc(var(--rotation) + 4deg)); }
}

.btn-nav {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-color);
    color: var(--text-main);
    border-radius: 30px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: background 0.3s ease;
    border: 1px solid var(--border);
}

.btn-nav:hover {
    background: #e2e8f0;
}

.btn-cat {
    background: var(--surface);
    color: var(--accent);
    border-color: var(--accent);
}

.btn-cat:hover {
    background: var(--accent);
    color: white;
}

footer {
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeDown 0.8s ease forwards;
}

.js-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays for grid items */
.post-grid .post-card:nth-child(1) {
    animation-delay: 0.1s;
}

.post-grid .post-card:nth-child(2) {
    animation-delay: 0.2s;
}

.post-grid .post-card:nth-child(3) {
    animation-delay: 0.3s;
}

.post-grid .post-card:nth-child(4) {
    animation-delay: 0.4s;
}

.post-grid .post-card:nth-child(5) {
    animation-delay: 0.5s;
}

.post-grid .post-card:nth-child(n+6) {
    animation-delay: 0.6s;
}

/* Top Navigation */
/* Top Navigation Select */
.nav-select-wrap {
    margin-left: auto;
}

.nav-select {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-color);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-select:hover {
    border-color: var(--accent);
}

.nav-select:focus {
    box-shadow: 0 0 0 2px var(--accent-light);
}

/* Horizontal Cards for Single Posts */
.post-horizontal-card {
    display: flex;
    flex-direction: row;
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 1.5rem auto;
    height: 360px; /* Restored fixed height */
}


.post-horizontal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.post-horizontal-card.reverse {
    flex-direction: row-reverse;
}

.post-horizontal-card .card-image-wrap {
    flex: 0 0 50%;
    height: 100%;
    border-radius: 0;
}

.post-horizontal-card .card-image-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center 25%;
    /* Bias crop slightly towards the top to keep faces in view */
}

.post-horizontal-card .card-content {
    flex: 0 0 50%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-horizontal-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Titles for single columns section removed as they are now global */

@media (max-width: 768px) {
    /* Lower base font size for mobile */
    body {
        font-size: 14px;
    }

    /* Hide polaroids on mobile for clarity and performance */
    .polaroid-container {
        display: none !important;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Smaller floating header */
    .main-header {
        padding: 0.25rem 0;
    }

    .main-header .container {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.4rem 0;
    }

    .logo {
        justify-self: center;
        text-align: center;
    }

    .logo a {
        font-size: 0.95rem;
        white-space: normal;
        display: block;
        line-height: 1.3;
    }

    .main-nav {
        justify-content: center;
        gap: 0.4rem;
    }

    .main-nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .nav-select-wrap {
        justify-self: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-select {
        width: 100%;
        max-width: 280px;
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .expedition-title {
        font-size: 1.4rem;
        margin: 2rem auto 1rem;
    }

    .single-post {
        padding: 1rem;
        margin: 0.5rem auto;
    }

    .single-post .post-title {
        font-size: 1.6rem;
    }

    .post-body p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }

    .post-horizontal-card,
    .post-horizontal-card.reverse {
        flex-direction: column;
        height: auto;
    }

    .post-horizontal-card .card-image-wrap {
        flex: 0 0 auto;
        height: 180px;
        min-height: 180px;
    }

    .post-horizontal-card .card-content {
        padding: 1.25rem;
    }

    .post-horizontal-card h2 {
        font-size: 1.25rem;
    }
}

/* Expeditions */
.expedition-group {
    margin-bottom: 5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.expedition-group:first-of-type {
    border-top: none;
}

.expedition-title {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    text-align: center;
}

/* Removed blue vertical bar */
.expedition-title::before {
    display: none;
}

#category-return-actions {
    margin-top: 4rem;
    text-align: center;
    padding-bottom: 4rem;
}
/* Contact Page Specifics */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 2.5rem 1rem;
    border-radius: 48px;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    margin: 1rem auto 5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
    text-align: center; /* Ensure content starts centered */
}

.wide-card {
    max-width: 1100px !important;
}

.about-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 4rem 4rem;
    border-radius: 48px;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.15);
    max-width: 800px; /* Reverted to original */
    margin: 1rem auto 5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
}

.portrait-frame {
    width: 280px;
    height: 280px;
    margin: 0 auto 3rem;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid white;
    box-shadow: var(--shadow-lg);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-form {
    margin: 4rem auto 2rem;
    max-width: 550px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.1rem 1.4rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    font-family: inherit;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: white;
}

.btn-submit {
    background: var(--accent);
    color: white;
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    font-size: 1.15rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
    .about-card { padding: 2.5rem 1.5rem; margin: 2rem 1rem; }
    .portrait-frame { width: 180px; height: 180px; }
}

/* Newsletter Styles */
#newsletter-signup-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    margin: 0 auto;
    max-width: 500px;
    width: 100%;
}

.newsletter-inner {
    padding: 0.75rem 10px;
    text-align: center;
}

#newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

#newsletter-email {
    flex: 1;
    min-width: 200px;
    padding: 1.1rem 1.4rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    font-family: inherit;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

#newsletter-email:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: white;
}

.newsletter-btn {
    background: var(--accent);
    color: white;
    padding: 1.1rem 2rem;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

