:root {
    /* Primary Colors */
    --color-primary: #002D62;
    /* Midnight Navy */
    --color-primary-dark: #001f44;
    --color-secondary: #D4AF37;
    /* Burnished Gold */
    --color-secondary-light: #F4C430;

    /* Neutral Colors */
    --color-bg: #F8F9FA;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;

    /* Accents */
    --color-sky: #87CEEB;
    --color-success: #28a745;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #C9A227 100%);
    --gradient-blue: linear-gradient(135deg, #002D62 0%, #1a365d 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    background: transparent;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(0, 45, 98, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

/* Slider Styles */
.hero-slider-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: -85px;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Increased darkness for better contrast */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    /* Gradient for better depth */
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(30px);
    opacity: 0;
    /* Immediate exit when active class is removed */
    transition: all 0.5s ease-out 0s;
}

.hero-slide.active .hero-slide-content {
    transform: translateY(0);
    opacity: 1;
    /* Delayed enter to allow previous slide to clear */
    transition: all 0.8s ease-out 0.5s;
}

.hero-slide-content h1 {
    font-size: 3.5rem;
    /* Slightly smaller to prevent wrapping issues */
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-slide-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.slider-nav button:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

@media (max-width: 768px) {
    .hero-slide-content h1 {
        font-size: 2.2rem;
    }

    .hero-slide-content p {
        font-size: 1.1rem;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }
}

/* Improved Section Spacing */
.section {
    padding: 100px 0;
}

/* Card Improvements */
.dest-card,
.pkg-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dest-info,
.pkg-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dest-info .btn-link,
.pkg-info .btn-primary {
    margin-top: auto;
}

/* Hero Text Contrast - Keep existing overrides but ensure they match new logic */
.hero-slide-content h1 {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    font-weight: 800;
}

.hero-slide-content p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
}