:root {
    --himalayan-blue: #2A6BCF;
    --himalayan-blue-lite: #5A93E9;
    --terracotta-brown: #E2725B;
    --evergreen-green: #00703C;
    --goldenrod-gold: #DAA520;
    --mountain-rock-gray: #808080;
    --monastery-maroon: #800000;
    --cloud-white: #FFFFFF;
    --sunrise-orange: #FF6F00;
    --frost-gray: #f2f2f2;
    --highlight-color: #2c3e50;
    --highlight-background: #e9ecef;
    --dark-black-text: #1a1a1a;
    --primary-text: #2c2c2c;
    --secondary-text: #4d4d4d;
    --muted-text: #6e6e6e;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
}

.travel-tips-container {
    max-width: 1200px;
    margin: 0 auto; /* Ensures container is centered */
    padding: 20px;
    font-family: var(--font-family);
    background: var(--frost-gray);
    color: var(--primary-text);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    box-sizing: border-box; /* Prevents padding issues */
}

.travel-tips-header {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 0 0 20px 0; /* Explicit margin to avoid offsets */
    box-sizing: border-box;
}

.travel-tips-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.travel-tips-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.travel-tips-header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 2;
    box-sizing: border-box;
}

.travel-tips-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--cloud-white);
    letter-spacing: -0.02em;
    text-transform: capitalize;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 90%; /* Prevents overflow */
    overflow-wrap: break-word; /* Controls text wrapping */
}

.travel-tips-intro {
    font-size: 1.15rem;
    margin: 10px 0 0 0;
    color: var(--cloud-white);
    padding: 0;
    max-width: 90%; /* Prevents overflow */
    overflow-wrap: break-word;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.travel-tips-section {
    margin: 0 0 20px;
    background: var(--cloud-white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.travel-tips-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.travel-tips-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--evergreen-green);
    padding: 0 10px;
    position: relative;
}

.travel-tips-subtitle::after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--sunrise-orange);
    position: absolute;
    bottom: -6px;
    left: 10px;
}

.travel-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.travel-tips-item {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    color: var(--secondary-text);
    margin: 0 0 10px;
    padding: 10px;
    border-radius: 8px;
    background: var(--highlight-background);
    border: 1px solid var(--mountain-rock-gray);
    transition: var(--transition);
}

.travel-tips-item:hover {
    background: #f6f8fa;
    border-color: var(--sunrise-orange);
    transform: translateY(-2px);
}

.travel-tips-item-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 6px;
}

.travel-tips-item-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
    filter: invert(20%) sepia(50%) saturate(500%) hue-rotate(200deg);
}

.travel-tips-item-title {
    font-weight: 600;
    color: var(--dark-black-text);
    line-height: 24px;
    font-size: 1.1rem;
}

.travel-tips-item:hover .travel-tips-item-title {
    color: var(--evergreen-green);
}

.travel-tips-item-description {
    flex: 1;
    font-size: 1rem;
    color: var(--secondary-text);
}

.travel-tips-item:hover .travel-tips-item-description {
    color: var(--primary-text);
}

.back-link {
    color: var(--evergreen-green);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: var(--transition);
}

.back-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--himalayan-blue);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.back-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.back-link:hover {
    color: var(--sunrise-orange);
}

@media (max-width: 768px) {
    .travel-tips-container {
        padding: 15px;
    }

    .travel-tips-header {
        height: 200px;
    }

    .travel-tips-header-content {
        padding: 15px;
    }

    .travel-tips-title {
        font-size: 0.95rem;
        max-width: 95%; /* Tighter for mobile */
    }

    .travel-tips-intro {
        font-size: 0.75rem;
        max-width: 95%;
        margin: 8px 0 0 0;
    }

    .travel-tips-section {
        padding: 12px;
        margin: 0 0 15px;
    }

    .travel-tips-subtitle {
        font-size: 1.6rem;
        margin: 0 0 10px;
    }

    .travel-tips-item {
        font-size: 0.95rem;
        padding: 8px;
        margin: 0 0 8px;
    }

    .travel-tips-item-header {
        margin-bottom: 5px;
    }

    .travel-tips-item-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .travel-tips-item-title {
        line-height: 20px;
        font-size: 1rem;
    }

    .travel-tips-item-description {
        width: 100%;
        font-size: 0.95rem;
    }

    .back-link {
        color: var(--himalayan-blue-lite);
    }

    .back-link:hover {
        color: var(--sunrise-orange);
    }
}