:root {
    /* Colors */
    --color-primary: #2C3E50; /* Dark Slate Blue */
    --color-secondary: #E6B89C; /* Muted Gold */
    --color-accent: #F0A38B; /* Coral */
    --color-text-dark: #333333;
    --color-text-light: #FFFFFF;
    --color-background-light: #F9F9F9;
    --color-background-dark: #1E2B38; /* Slightly darker than primary for contrast */
    --color-border: #E0E0E0;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Raleway', sans-serif;
    --font-size-base: 1.125rem; /* 18px */
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 1.875rem;
    --font-size-h4: 1.5rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Border Radius */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;

    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-speed: 0.3s ease-in-out;
}

/* Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--color-background-light);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }

.section {
    padding: var(--spacing-xxl) 0;
}

.section__title {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section__title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: var(--border-radius-sm);
    opacity: 1;.8;
}

.section__title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section__description {
    font-size: calc(var(--font-size-base) * 0.9);
    margin-bottom: var(--spacing-md);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons (static anchor links) */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    cursor: pointer; /* Visually indicate interactability */
    border: none;
    font-size: 0.95rem;
}

.btn--primary {
    background: linear-gradient(45deg, var(--color-primary), #3f5f7e);
    color: var(--color-text-light);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    background: linear-gradient(45deg, #3f5f7e, var(--color-primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header */
.header {
    background-color: var(--color-background-light);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: color var(--transition-speed);
}

.logo:hover {
    color: var(--color-accent);
}

.nav__list {
    list-style: none;
    display: flex;
}

.nav__item {
    margin-left: var(--spacing-lg);
}

.nav__link {
    font-weight: 500;
    color: var(--color-primary);
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: color var(--transition-speed);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed);
}

.nav__link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 3px;
    background-color: var(--color-primary);
    transition: all var(--transition-speed);
    border-radius: var(--border-radius-sm);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hamburger active state */
.nav-toggle.is-active .hamburger {
    background-color: transparent;
}

.nav-toggle.is-active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.is-active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    background: url('images/image_15.jpg') no-repeat center center/cover; /* Large scenic image */
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: var(--spacing-md);
    animation: fadeIn 1.5s ease-out forwards;
}

/* Glassmorphism wrapper for hero title/subtitle */
.hero-glass {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    padding: calc(var(--spacing-md) * 1.2) calc(var(--spacing-md) * 1.6);
    box-shadow: var(--shadow-lg);
    margin: 0 auto var(--spacing-md);
}

.hero__title {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 1;
}

.hero__subtitle {
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
    animation: slideInUp 1s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 1;
}

.hero .btn {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.9s;
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 1; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 1;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Grid Layouts */
.grid-layout {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-layout--2-col {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.grid-layout--3-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-layout--destinations {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: var(--spacing-xxl);
}

/* About Section */
.section--about .about__image-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.section--about .about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.section--about .about__image:hover {
    transform: scale(1.05);
}

.section--about .section__title {
    text-align: left;
}

.section--about .section__title::after {
    left: 0;
    transform: translateX(0);
}

/* Post Card */
.post-card {
    background-color: var(--color-text-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.post-card__image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.post-card:hover .post-card__image {
    transform: scale(1.08);
}

.post-card__content {
    padding: var(--spacing-md);
    flex-grow: 1; /* Allows content to take up remaining space */
    display: flex;
    flex-direction: column;
}

.post-card__title {
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.post-card__excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: var(--spacing-sm);
    flex-grow: 1; /* Pushes meta and link to bottom */
}

.post-card__meta {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.post-card__link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.post-card__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed);
}

.post-card__link:hover::after {
    width: 100%;
}

/* Destination Cards */
.destination-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4/3; /* Maintain aspect ratio */
    box-shadow: var(--shadow-md);
    display: block; /* Make the whole card clickable */
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.destination-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover .destination-card__image {
    transform: scale(1.1);
}

.destination-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
    transition: background-color var(--transition-speed);
}

.destination-card:hover .destination-card__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%);
}

.destination-card__title {
    color: var(--color-text-light);
    font-size: var(--font-size-h3);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    margin-bottom: 0;
}

/* Insights Section */
.section--insights .insights__image-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.section--insights .insights__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.section--insights .insights__image:hover {
    transform: scale(1.05);
}

.section--insights .section__title {
    text-align: left;
}
.section--insights .section__title::after {
    left: 0;
    transform: translateX(0);
}

/* Community Section */
.community-grid {
    margin-top: var(--spacing-xxl);
}

.community-card {
    background-color: var(--color-text-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.community-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--color-background-light), #f0f0f0);
}

.community-card__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
}

.community-card__title {
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-xs);
}

.community-card__text {
    font-size: 0.95rem;
    color: #666;
}

/* Footer */
.footer {
    background-color: var(--color-background-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    font-size: 0.9rem;
}

.footer__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.footer__brand,
.footer__nav,
.footer__social {
    flex: 1 1 200px; /* Allow items to grow and shrink, with a base width */
    margin-bottom: var(--spacing-md);
}

.footer__logo {
    color: var(--color-text-light);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.footer__logo:hover {
    color: var(--color-accent);
}

.footer__brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer__heading {
    font-size: var(--font-size-h4);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: var(--spacing-xs);
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed);
}

.footer__link:hover {
    color: var(--color-accent);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}


/* Responsive Design */
@media (max-width: 992px) {
    :root {
        --font-size-h1: 2.8rem;
        --font-size-h2: 2rem;
        --font-size-h3: 1.5rem;
        --font-size-h4: 1.25rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }

    .grid-layout--2-col {
        grid-template-columns: 1fr;
    }

    .section--about .about__content,
    .section--insights .insights__content {
        order: -1; /* Image appears first on mobile */
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 1rem;
        --font-size-h1: 2.2rem;
        --font-size-h2: 1.8rem;
        --font-size-h3: 1.3rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
        --spacing-xxl: 3rem;
    }

    .header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--color-background-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform var(--transition-speed);
        z-index: 999;
        opacity: 1; /* Hidden by default */
        pointer-events: none;
    }

    .nav.nav--open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav__list {
        flex-direction: column;
        text-align: center;
    }

    .nav__item {
        margin: var(--spacing-md) 0;
    }

    .nav__link {
        font-size: var(--font-size-h3);
        color: var(--color-text-light);
    }
    .nav__link:hover::after {
        background-color: var(--color-accent);
    }
    
    .nav-toggle {
        display: block;
    }

    .hero {
        height: 65vh;
    }
    .hero__title {
        font-size: var(--font-size-h2);
    }
    .hero__subtitle {
        font-size: var(--font-size-base);
    }

    .section__title {
        font-size: var(--font-size-h2);
        margin-bottom: var(--spacing-md);
    }
    .section__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .section--about .section__title,
    .section--insights .section__title {
        text-align: center;
    }
    .section--about .section__title::after,
    .section--insights .section__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .grid-layout--3-col {
        grid-template-columns: 1fr;
    }

    .grid-layout--destinations {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .post-card__image-wrapper {
        height: 180px;
    }

    .footer__content {
        flex-direction: column;
        text-align: center;
    }

    .footer__brand {
        margin-bottom: var(--spacing-lg);
    }

    .footer__nav,
    .footer__social {
        margin-bottom: var(--spacing-lg);
    }

    .footer__list {
        padding: 0; /* Remove default ul padding */
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-h1: 1.8rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.2rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero {
        height: 60vh;
    }
    .hero__title {
        font-size: var(--font-size-h2);
    }
    .hero__subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}
/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
