@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #0f513f;
    --primary-dark: #07372d;
    --accent: #f4b740;
    --accent-strong: #dd8f16;
    --coral: #e86f51;
    --sky: #2f9da6;
    --ink: #17211f;
    --muted: #64716e;
    --line: #dfe8e4;
    --soft: #f5f8f6;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(13, 48, 39, 0.1);
    --shadow-soft: 0 12px 30px rgba(13, 48, 39, 0.07);
    --radius: 8px;
    --border-radius: 8px;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', system-ui, sans-serif;
    --transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
}

.container {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
}

.container-sm {
    width: min(100% - 40px, 900px);
    margin: 0 auto;
}

.section {
    padding: 92px 0;
}

.reveal-on-scroll {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(35px) scale(0.96);
    transition:
        opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

.reveal-delay-1 {
    transition-delay: 0.12s;
}

.reveal-delay-2 {
    transition-delay: 0.24s;
}

.reveal-delay-3 {
    transition-delay: 0.36s;
}

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

.fixed {
    position: fixed;
}

.inset-0 {
    inset: 0;
}

.z-50 {
    z-index: 50;
}

.flex {
    display: flex;
}

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

.justify-center {
    justify-content: center;
}

.space-x-3 > * + * {
    margin-left: 12px;
}

.bg-black {
    background: #000000;
}

.bg-opacity-35 {
    background: rgba(0, 0, 0, 0.35);
}

.bg-white {
    background: var(--white);
}

.p-5 {
    padding: 20px;
}

.rounded-lg {
    border-radius: var(--radius);
}

.shadow-xl {
    box-shadow: var(--shadow);
}

.h-6,
.w-6 {
    height: 24px;
    width: 24px;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.text-indigo-600 {
    color: var(--primary);
}

.text-gray-700 {
    color: var(--ink);
}

.text-gray-500 {
    color: var(--muted);
}

.text-red-500 {
    color: #dc2626;
}

.text-xs {
    font-size: 12px;
}

.font-bold,
.font-semibold {
    font-weight: 800;
}

.mt-1 {
    margin-top: 4px;
}

.border-red-500 {
    border-color: #dc2626 !important;
}

.hover\:underline:hover {
    text-decoration: underline;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn {
    align-items: center;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    gap: 9px;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
    box-shadow: 0 12px 24px rgba(244, 183, 64, 0.27);
}

.btn-primary:hover {
    background: var(--accent-strong);
    box-shadow: 0 16px 32px rgba(244, 183, 64, 0.34);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    box-shadow: 0 14px 30px rgba(7, 55, 45, 0.2);
}

.btn-outline {
    background: var(--white);
    border: 1px solid rgba(15, 81, 63, 0.18);
    color: var(--primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-soft);
}

.eyebrow,
.hero-badge {
    align-items: center;
    background: rgba(47, 157, 166, 0.11);
    border: 1px solid rgba(47, 157, 166, 0.2);
    border-radius: 999px;
    color: #16626a;
    display: inline-flex;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    letter-spacing: 0;
    margin-bottom: 18px;
    padding: 7px 12px;
}

header.site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(15, 81, 63, 0.09);
    box-shadow: 0 10px 34px rgba(15, 81, 63, 0.06);
    left: 0;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-wrapper {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.logo-link {
    align-items: center;
    color: var(--primary-dark);
    display: flex;
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 900;
    gap: 8px;
}

.logo-icon,
.logo-link i {
    color: var(--accent-strong);
}

.logo-link span {
    color: var(--sky);
}

nav.main-nav ul {
    align-items: center;
    display: flex;
    gap: 24px;
    list-style: none;
}

nav.main-nav a {
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    padding: 7px 0;
    position: relative;
}

nav.main-nav a::after {
    background: var(--accent);
    bottom: 0;
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    transition: var(--transition);
    width: 0;
}

nav.main-nav a:hover,
nav.main-nav a.active {
    color: var(--primary);
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
    width: 100%;
}

nav.main-nav .btn::after {
    display: none;
}

.mobile-menu-btn {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--primary);
    cursor: pointer;
    display: none;
    font-size: 22px;
    height: 44px;
    width: 44px;
}

.hero-section {
    background: #f7faf8;
    min-height: 700px;
    overflow: hidden;
    padding: 132px 0 78px;
    position: relative;
}

.hero-section::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 42%, rgba(247, 250, 248, 0.78) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.34));
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.hero-section::after {
    background: linear-gradient(180deg, rgba(15, 81, 63, 0.1), rgba(255, 255, 255, 0));
    content: '';
    height: 160px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1;
}

.hero-bg-carousel,
.hero-bg-carousel span {
    inset: 0;
    position: absolute;
}

.hero-bg-carousel {
    z-index: 0;
}

.hero-bg-carousel span {
    animation: heroBackgroundFade 18s infinite;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.04);
}

.hero-bg-carousel span:nth-child(1) {
    animation-delay: 0s;
}

.hero-bg-carousel span:nth-child(2) {
    animation-delay: 6s;
}

.hero-bg-carousel span:nth-child(3) {
    animation-delay: 12s;
}

@keyframes heroBackgroundFade {
    0% {
        opacity: 0;
        transform: scale(1.04);
    }
    8%,
    31% {
        opacity: 0.42;
    }
    39%,
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.hero-layout {
    align-items: center;
    display: grid;
    gap: 50px;
    grid-template-columns: 0.9fr 1.1fr;
    position: relative;
    z-index: 2;
}

.hero-copy h1 {
    font-size: clamp(38px, 4.7vw, 58px);
    line-height: 1.1;
    margin-bottom: 22px;
    max-width: 620px;
    opacity: 0;
    animation: fadeUpBlur 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-copy p {
    color: var(--muted);
    font-size: 17px;
    max-width: 600px;
    opacity: 0;
    animation: fadeUpBlur 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
    opacity: 0;
    animation: fadeUpBlur 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.route-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    opacity: 0;
    animation: fadeUpBlur 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.route-strip span {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 81, 63, 0.12);
    border-radius: 999px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
}

@keyframes fadeUpBlur {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(30px) scale(0.97);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

.hero-media {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 0.78fr;
    grid-template-rows: 250px 170px 112px;
    min-height: 540px;
}

.hero-image {
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    opacity: 0;
}

.hero-image-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    animation: fadeUpBlur 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-image-small:nth-child(2) {
    animation: fadeUpBlur 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.hero-image-small:nth-child(3) {
    animation: fadeUpBlur 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.7s ease;
    width: 100%;
}

.hero-image:hover {
    box-shadow: 0 24px 60px rgba(13, 48, 39, 0.16);
    transform: translateY(-5px);
}

.hero-image:hover img {
    filter: saturate(1.08);
    transform: scale(1.045);
}

.hero-image-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.hero-image-caption {
    background: rgba(7, 55, 45, 0.86);
    bottom: 16px;
    color: var(--white);
    left: 16px;
    padding: 16px;
    position: absolute;
    right: 16px;
}

.hero-image-caption strong,
.hero-image-caption span {
    display: block;
}

.hero-image-caption strong {
    font-size: 16px;
    margin-bottom: 4px;
}

.hero-image-caption span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.hero-proof-card {
    background: var(--primary-dark);
    border-radius: var(--radius);
    color: var(--white);
    grid-column: 1 / 3;
    min-width: 0;
    overflow: hidden;
    padding: 20px 24px;
    opacity: 0;
    animation: fadeUpBlur 1s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}

.hero-proof-card span {
    color: var(--accent);
    display: block;
    font-size: clamp(27px, 3vw, 34px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
}

.hero-proof-card strong {
    display: block;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.2;
    margin-bottom: 4px;
}

.hero-proof-card p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.45;
    max-width: 520px;
}

.section-heading {
    margin: 0 auto 42px;
    max-width: 720px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 14px;
}

.section-heading p {
    color: var(--muted);
    font-size: 17px;
}

.section-heading-row {
    align-items: end;
    display: flex;
    justify-content: space-between;
    max-width: none;
    text-align: left;
}

.section-heading-row > div {
    max-width: 720px;
}

.service-section,
.routes-section,
.tours-section {
    background: var(--soft);
}

.services-grid,
.value-grid,
.routes-grid,
.posts-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.stat-card,
.route-card,
.post-card,
.booking-form-card,
.inquiry-box {
    background: var(--white);
    border: 1px solid rgba(15, 81, 63, 0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.feature-card {
    display: flex;
    flex-direction: column;
    min-height: 285px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.feature-card::before {
    background: var(--primary);
    content: '';
    height: 4px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.feature-card-highlight::before {
    background: var(--coral);
}

.feature-card:hover,
.route-card:hover,
.post-card:hover {
    border-color: rgba(47, 157, 166, 0.28);
    box-shadow: 0 24px 54px rgba(13, 48, 39, 0.13);
    transform: translateY(-8px);
}

.feature-card:hover .feature-icon,
.route-card:hover .route-icon {
    transform: translateY(-3px) scale(1.06);
}

.feature-icon {
    align-items: center;
    background: rgba(15, 81, 63, 0.09);
    border-radius: var(--radius);
    color: var(--primary);
    display: inline-flex;
    font-size: 24px;
    height: 52px;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
    width: 52px;
}

.feature-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
    flex: 1;
    font-size: 14px;
}

.feature-card a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
    margin-top: 22px;
}

.value-section {
    background: var(--white);
}

.value-layout {
    align-items: center;
    display: grid;
    gap: 48px;
    grid-template-columns: 0.72fr 1.28fr;
}

.value-copy h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 16px;
}

.value-copy p {
    color: var(--muted);
    font-size: 17px;
}

.stat-card {
    padding: 26px;
}

.stat-card:hover {
    border-color: rgba(232, 111, 81, 0.26);
    box-shadow: 0 18px 44px rgba(13, 48, 39, 0.11);
    transform: translateY(-6px);
}

.stat-number {
    color: var(--coral);
    display: block;
    font-size: 39px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 14px;
}

.stat-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.stat-card p {
    color: var(--muted);
    font-size: 14px;
}

.route-card {
    display: flex;
    flex-direction: column;
    min-height: 285px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.route-card::after {
    background: linear-gradient(135deg, rgba(47, 157, 166, 0.16), rgba(244, 183, 64, 0.18));
    border-radius: 999px;
    content: '';
    height: 120px;
    position: absolute;
    right: -48px;
    top: -48px;
    width: 120px;
    transition: var(--transition);
}

.route-card:hover::after {
    transform: scale(1.18);
}

.route-card-featured {
    background:
        linear-gradient(135deg, rgba(7, 55, 45, 0.92), rgba(15, 81, 63, 0.86)),
        url('../images/sri-lanka-beach.jpg') center/cover;
    color: var(--white);
}

.route-card-featured h3,
.route-card-featured p,
.route-card-featured a {
    color: var(--white);
}

.route-card-featured p {
    color: var(--white);
}

.route-icon {
    align-items: center;
    background: rgba(47, 157, 166, 0.12);
    border-radius: var(--radius);
    color: var(--sky);
    display: inline-flex;
    font-size: 23px;
    height: 52px;
    justify-content: center;
    margin-bottom: 26px;
    position: relative;
    transition: var(--transition);
    width: 52px;
    z-index: 1;
}

.route-card-featured .route-icon {
    background: rgba(255, 255, 255, 0.14);
    color: var(--accent);
}

.route-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.route-card p {
    color: var(--muted);
    flex: 1;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.route-card a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
    margin-top: 22px;
    position: relative;
    z-index: 1;
}

.booking-section {
    background:
        linear-gradient(rgba(7, 55, 45, 0.86), rgba(7, 55, 45, 0.9)),
        url('../images/yala-safari-hero.jpg') center/cover;
    color: var(--white);
}

.booking-layout {
    align-items: start;
    display: grid;
    gap: 38px;
    grid-template-columns: 0.68fr 1fr;
}

.booking-aside {
    position: sticky;
    top: 110px;
}

.booking-aside .eyebrow {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--accent);
}

.booking-aside h2 {
    color: var(--white);
    font-size: clamp(31px, 4vw, 48px);
    margin-bottom: 16px;
}

.booking-aside p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 17px;
}

.booking-points {
    display: grid;
    gap: 12px;
    list-style: none;
    margin-top: 28px;
}

.booking-points li {
    align-items: center;
    display: flex;
    gap: 10px;
    font-weight: 800;
}

.booking-points i {
    color: var(--accent);
}

.booking-form-card {
    padding: 0;
}

.inquiry-box {
    box-shadow: none;
    padding: 30px;
}

.form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
}

.form-control {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    min-height: 48px;
    padding: 12px 14px;
    transition: var(--transition);
    width: 100%;
}

textarea.form-control {
    min-height: 116px;
    resize: vertical;
}

.form-control:focus {
    background: var(--white);
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(47, 157, 166, 0.12);
    outline: none;
}

.posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.post-image-wrapper {
    aspect-ratio: 16 / 10;
    display: block;
    overflow: hidden;
    position: relative;
}

.post-image-wrapper img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.7s ease;
    width: 100%;
}

.post-card:hover .post-image-wrapper img {
    filter: saturate(1.08);
    transform: scale(1.07);
}

.post-badge {
    background: var(--accent);
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 900;
    left: 14px;
    padding: 6px 10px;
    position: absolute;
    top: 14px;
}

.post-fallback {
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--sky));
    color: var(--white);
    display: flex;
    font-size: 46px;
    font-weight: 900;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.post-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.post-card-content h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.post-card-content h3 a:hover {
    color: var(--primary);
}

.post-card-content p {
    color: var(--muted);
    flex: 1;
    font-size: 14px;
}

.post-card-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 16px;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 16px;
}

.read-more-link {
    color: var(--primary);
    white-space: nowrap;
}

.read-more-link:hover {
    color: var(--coral);
}

.empty-state {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    grid-column: 1 / -1;
    padding: 48px;
    text-align: center;
}

.empty-state i {
    color: var(--accent-strong);
    display: block;
    font-size: 40px;
    margin-bottom: 14px;
}

.empty-state p {
    color: var(--muted);
}

.success-banner {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius);
    color: #065f46;
    margin-bottom: 24px;
    padding: 34px 22px;
}

.success-banner h3 {
    color: #065f46;
    font-size: 22px;
    margin-bottom: 8px;
}

.wa-redirect-btn {
    background: #25d366;
    color: var(--white);
}

.wa-redirect-btn:hover {
    background: #128c7e;
}

.whatsapp-float {
    align-items: center;
    background: #25d366;
    border-radius: 999px;
    bottom: 26px;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.32);
    color: var(--white);
    display: flex;
    font-size: 27px;
    height: 58px;
    justify-content: center;
    position: fixed;
    right: 26px;
    width: 58px;
    z-index: 999;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: translateY(-2px) scale(1.04);
}

footer.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    padding: 70px 0 32px;
}

.footer-grid {
    display: grid;
    gap: 34px;
    grid-template-columns: 1.35fr 0.85fr 0.95fr 1.1fr;
    margin-bottom: 46px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

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

.footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    padding-top: 28px;
}

.post-detail-header {
    background:
        linear-gradient(rgba(7, 55, 45, 0.82), rgba(7, 55, 45, 0.9)),
        url('../images/yala-safari-hero.jpg') center/cover;
    color: var(--white);
    padding: 150px 0 92px;
    text-align: center;
}

.post-detail-header h1 {
    color: var(--white);
    font-size: clamp(34px, 5vw, 56px);
    margin: 12px auto 16px;
    max-width: 900px;
}

.post-meta {
    color: rgba(255, 255, 255, 0.76);
    display: flex;
    gap: 20px;
    justify-content: center;
}

.post-detail-image {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: -42px 0 36px;
    overflow: hidden;
}

.post-detail-image img {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

.post-detail-content {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 52px;
    padding: 42px;
}

.post-detail-content p,
.post-detail-content ul,
.post-detail-content ol {
    margin-bottom: 20px;
}

.post-detail-content h2 {
    font-size: 29px;
    margin: 36px 0 16px;
}

.post-detail-content h3 {
    font-size: 22px;
    margin: 28px 0 12px;
}

.post-detail-content ul,
.post-detail-content ol {
    padding-left: 22px;
}

.cta-banner {
    background: linear-gradient(135deg, var(--primary), var(--sky));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--white);
    margin-top: 50px;
    padding: 48px 30px;
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0 auto 26px;
    max-width: 600px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .hero-layout,
    .value-layout,
    .booking-layout {
        grid-template-columns: 1fr;
    }

    .hero-media {
        min-height: 520px;
    }

    .services-grid,
    .value-grid,
    .routes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-aside {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .container,
    .container-sm {
        width: min(100% - 28px, 1180px);
    }

    .section {
        padding: 68px 0;
    }

    .mobile-menu-btn {
        align-items: center;
        display: inline-flex;
        justify-content: center;
    }

    nav.main-nav {
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-soft);
        display: none;
        left: 0;
        padding: 22px;
        position: absolute;
        top: 100%;
        width: 100%;
    }

    nav.main-nav.active {
        animation: slideDown 0.24s ease;
        display: block;
    }

    nav.main-nav ul {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .hero-section {
        min-height: 0;
        padding: 112px 0 62px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-copy p {
        font-size: 17px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-media {
        gap: 12px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 150px auto;
        min-height: 0;
    }

    .hero-proof-card {
        grid-column: 1 / -1;
    }

    .section-heading,
    .section-heading-row {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        gap: 18px;
        text-align: left;
    }

    .services-grid,
    .value-grid,
    .routes-grid,
    .posts-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .booking-section {
        background-position: center;
    }

    .inquiry-box {
        padding: 20px;
    }

    .post-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (min-width: 769px) {
    nav.main-nav {
        background: transparent !important;
        box-shadow: none !important;
        display: block !important;
        padding: 0 !important;
        position: static !important;
        width: auto !important;
    }

    nav.main-nav ul {
        flex-direction: row !important;
    }
}

@media (max-width: 520px) {
    .logo-link {
        font-size: 20px;
    }

    .hero-copy h1 {
        font-size: 31px;
    }

    .hero-media {
        grid-template-columns: 1fr;
        grid-template-rows: 270px 170px 170px auto;
    }

    .hero-image-main {
        grid-column: auto;
        grid-row: auto;
    }

    .hero-image-caption {
        bottom: 10px;
        left: 10px;
        padding: 12px;
        right: 10px;
    }

    .whatsapp-float {
        bottom: 18px;
        height: 52px;
        right: 18px;
        width: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }

    .hero-bg-carousel span {
        animation: none;
    }

    .hero-bg-carousel span:first-child {
        opacity: 0.36;
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(15, 81, 63, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
