/*
Theme Name: Free Spirit Tours
Theme URI: https://freespirit.tours
Author: Free Spirit Tours Group
Description: Modern travel agency theme - Triply Style
Version: 1.0.0
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4B9EFF;
    --sky-blue: #38BDF8;
    --sky-deep: #0EA5E9;
    --sky-soft: #BAE6FD;
    --white: #FFFFFF;
    --light-gray-bg: #F0F9FF;
    --text-dark: #111111;
    --text-gray: #3b4a63;
    --star-yellow: #38BDF8;
    --light-blue: #EBF4FF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 500;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
[dir="rtl"] body, body[dir="rtl"] {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Inter', sans-serif;
}
h1, h2, h3, h4, h5, h6,
.heading-xl, .heading-lg {
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
}

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-gray-bg);
}

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

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

.heading-xl {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, #0c4a6e 0%, #0284c7 50%, #38BDF8 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #0284c7;
}

.heading-lg {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.heading-md {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.text-subtitle {
    color: #1f2a44;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

/* ===== COUNTRIES GRID ===== */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 3rem;
}
.country-card-wide {
    grid-column: span 2;
}
.country-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 280px;
}
.country-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.country-card .card-image { height: 100%; min-height: 280px; position: relative; }
.country-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
}
.country-flag { font-size: 2.5rem; margin-bottom: 8px; }
.country-name { font-size: 1.6rem; font-weight: 800; margin: 0 0 4px; }
.country-sub { font-size: 0.85rem; opacity: 0.85; margin-bottom: 12px; }
.country-seasons { display: flex; flex-wrap: wrap; gap: 6px; }
.season-tag {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.75rem;
}
.europe-countries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.eu-tag {
    background: rgba(75,158,255,0.3);
    border: 1px solid rgba(75,158,255,0.5);
    border-radius: 16px;
    padding: 3px 10px;
    font-size: 0.72rem;
}

/* ===== WORLD MAP ===== */
.world-map-container { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.world-map-wrapper { position: relative; width: 100%; max-width: 800px; }
.world-map-img { width: 100%; border-radius: 16px; opacity: 0.85; }
.map-pin { position: absolute; transform: translate(-50%,-50%); cursor: pointer; }
.pin-dot {
    width: 12px; height: 12px;
    background: #4B9EFF;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(75,158,255,0.3);
    animation: pulse 2s infinite;
}
.pin-main { background: #38BDF8; box-shadow: 0 0 0 4px rgba(56,189,248,0.4); width: 16px; height: 16px; }
.pin-label {
    position: absolute;
    top: -28px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    font-size: 0.65rem;
    padding: 3px 7px;
    border-radius: 8px;
    white-space: nowrap;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(75,158,255,0.4); } 50% { box-shadow: 0 0 0 8px rgba(75,158,255,0); } }
.map-stats { display: flex; gap: 3rem; justify-content: center; }
.map-stat { text-align: center; color: white; }
.map-stat-num { display: block; font-size: 2.5rem; font-weight: 900; color: #4B9EFF; }
.map-stat-label { font-size: 0.85rem; opacity: 0.7; }

/* ===== TEAM ===== */
.team-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 3rem;
}
.team-card {
    background: var(--light-gray-bg);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.team-photo {
    width: 80px; height: 80px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
}
.team-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.8rem; color: var(--text-gray); margin-bottom: 8px; }
.team-countries { font-size: 1.1rem; }

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #3a8eef;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-duration {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.badge-type {
    background-color: var(--text-dark);
    color: var(--white);
}

.rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--star-yellow);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.img-cover {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
body.home .navbar {
    background: transparent;
    box-shadow: none;
}
body.home .navbar.scrolled {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 32px;
    gap: 20px;
}
.nav-container > .nav-logo { justify-self: start; }
.nav-container > .nav-links { justify-self: center; }
.nav-container > .navbar-plan-btn,
.nav-container > .btn-outline { justify-self: end; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.navbar.scrolled .nav-logo {
    color: var(--text-dark);
}

.nav-logo-img {
    height: 48px;
    width: auto;
    display: block;
    transition: filter 0.3s;
}

.nav-links {
    display: flex;
    gap: 8px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.navbar.scrolled .nav-links {
    background: transparent;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-blue);
    color: var(--white);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--white);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/wp-content/uploads/2026/04/home-banner-destinations.jpg') center/cover no-repeat;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-eyebrow {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-headline {
    font-size: clamp(60px, 15vw, 140px);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-search {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-field input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: none;
    border-radius: 12px;
    background: var(--light-gray-bg);
    font-size: 14px;
    transition: all 0.3s;
}

.search-field input:focus {
    outline: 2px solid var(--primary-blue);
    background: var(--white);
}

.search-field .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-gray);
}

.search-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 160px;
}

.search-btn:hover {
    background: #3a8eef;
    transform: translateY(-2px);
}

.hero-stats {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-value {
    font-weight: 700;
    color: var(--white);
}

/* ===== FILTER PILLS ===== */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid var(--text-dark);
    background: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.filter-tab:hover:not(.active) {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    height: 220px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.card-image img {
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-desc {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== WHY CHOOSE US - OVERLAPPING LAYOUT ===== */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.why-left, .why-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}

.why-card:nth-child(2) {
    margin-top: 20px;
}

.why-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.why-icon svg {
    width: 26px;
    height: 26px;
}
.why-card:hover .why-icon {
    transform: translateY(-2px) rotate(-4deg);
    box-shadow: 0 10px 24px rgba(75,158,255,0.35);
}

.why-center {
    position: relative;
}

.why-center-img {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.why-right {
    background: var(--light-blue);
    padding: 25px;
    border-radius: 16px;
}

.why-right .why-card {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* ===== TRIP PLANNER FORM ===== */
.planner-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray-bg);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

/* ===== BLOG LAYOUT ===== */
.blog-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.blog-featured {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 400px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.blog-featured .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 30px;
}

.blog-featured .card-title {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 10px;
}

.blog-featured .card-desc {
    color: rgba(255,255,255,0.9);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-small {
    display: flex;
    gap: 15px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    height: 140px;
}

.blog-small img {
    width: 120px;
    height: 100%;
    object-fit: cover;
}

.blog-small .card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-small .card-title {
    font-size: 15px;
    margin-bottom: 5px;
}

.blog-date {
    font-size: 12px;
    color: var(--text-gray);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.testimonial-stars {
    color: var(--star-yellow);
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.author-info {
    font-weight: 600;
    font-size: 14px;
}

.author-flag {
    font-size: 18px;
    margin-left: 5px;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-gray);
    font-size: 14px;
}

.contact-form {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== FOOTER ===== */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-top: 15px;
}

.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.social-icon {
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
    box-shadow: 0 8px 22px -8px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}
.social-icon svg {
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 1;
}
.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--soc-bg, #4B9EFF);
    transition: filter 0.3s;
}
.social-icon:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 16px 32px -10px rgba(0,0,0,0.45);
    filter: brightness(1.1);
}

/* Brand colors per platform */
.social-icon--fb { --soc-bg: #1877F2; }
.social-icon--ig { --soc-bg: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon--ig::before { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon--yt { --soc-bg: #FF0000; }
.social-icon--tg { --soc-bg: #229ED9; }
.social-icon--wa { --soc-bg: #25D366; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* ===== WHATSAPP FLOATING ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.6);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    animation: wa-float-pulse 2.4s ease-in-out infinite;
}
.whatsapp-float svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
}
@keyframes wa-float-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50%      { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.card-hidden {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-headline {
        font-size: 60px;
    }

    .search-form {
        flex-direction: column;
    }

    .why-grid,
    .blog-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .why-center-img {
        height: 300px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

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

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

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

    .planner-form,
    .contact-form {
        padding: 25px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .blog-featured {
        height: 300px;
    }
}

@media (min-width: 1025px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* ===== RTL & ARABIC SUPPORT ===== */
body {
    direction: rtl;
    text-align: right;
}
.nav-links { direction: rtl; }
.hero-content { text-align: center; }
.card-content { text-align: right; }
.contact-grid { direction: rtl; }
.footer-grid { direction: rtl; }
input, textarea, select { text-align: right; direction: rtl; }
.search-form { direction: rtl; }

/* ===== LTR OVERRIDE (English / Russian) ===== */
html[dir="ltr"] body,
html[dir="ltr"] .nav-links,
html[dir="ltr"] .contact-grid,
html[dir="ltr"] .footer-grid,
html[dir="ltr"] .search-form,
html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select {
    direction: ltr;
    text-align: left;
}
html[dir="ltr"] .card-content { text-align: left; }
html[dir="ltr"] .hero-content { text-align: center; }

/* Override sections that hardcode direction:rtl in inline <style> blocks */
html[dir="ltr"] .hxh-home,
html[dir="ltr"] .bx-home,
html[dir="ltr"] .ph-home,
html[dir="ltr"] .hps,
html[dir="ltr"] .hcs,
html[dir="ltr"] .ht-tf,
html[dir="ltr"] .gp2-section,
html[dir="ltr"] .blog-v2-section,
html[dir="ltr"] .pkg-modern-card,
html[dir="ltr"] .why-grid,
html[dir="ltr"] .footer-col,
html[dir="ltr"] footer {
    direction: ltr;
    text-align: left;
}
html[dir="ltr"] .ht-tf__head,
html[dir="ltr"] .gp2-head,
html[dir="ltr"] .hps-head,
html[dir="ltr"] .hcs-head,
html[dir="ltr"] .bx-home__head,
html[dir="ltr"] .hxh-home__head,
html[dir="ltr"] .text-center {
    text-align: center;
}

/* =============================================
   COMPREHENSIVE MOBILE IMPROVEMENTS
   ============================================= */

@media (max-width: 768px) {

    /* === GENERAL === */
    .container { padding: 0 16px; }
    .section-padding { padding: 50px 0; }
    .heading-xl { font-size: 1.9rem !important; }
    .heading-lg { font-size: 1.5rem !important; }
    .text-subtitle { font-size: 0.9rem; }

    /* === NAVBAR === */
    .navbar { padding: 10px 0; }
    .nav-container { padding: 0 16px; }
    .nav-logo { font-size: 1rem; }
    .nav-logo-img { height: 36px; }
    .btn-outline { padding: 8px 14px; font-size: 0.78rem; }

    /* === HERO === */
    .hero { min-height: 100svh; padding-top: 70px; }
    .hero-content { padding: 20px 16px; }
    .hero-eyebrow { font-size: 0.75rem; padding: 6px 14px; }
    .hero-headline { font-size: 2.4rem !important; line-height: 1.15; }
    .hero-subtitle { font-size: 0.9rem; line-height: 1.6; margin-bottom: 24px; }

    /* Hero search */
    .hero-search { padding: 16px; border-radius: 16px; }
    .search-form { flex-direction: column; gap: 10px; }
    .search-field { padding: 12px 14px; border-radius: 12px; font-size: 0.85rem; }
    .search-btn { padding: 14px; font-size: 0.95rem; border-radius: 12px; width: 100%; }

    /* Hero stats */
    .hero-stats { flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
    .stat-item { font-size: 0.8rem; padding: 8px 12px; }
    .stat-value { font-size: 1.1rem; }

    /* === DESTINATIONS / COUNTRIES GRID === */
    .countries-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
    .country-card { min-height: 180px !important; }
    .country-card-wide { grid-column: span 2 !important; }
    .country-overlay { padding: 16px; }
    .country-flag { font-size: 1.8rem; margin-bottom: 6px; }
    .country-name { font-size: 1.2rem !important; }
    .country-sub { font-size: 0.75rem; margin-bottom: 8px; }
    .season-tag { font-size: 0.65rem; padding: 2px 8px; }
    .europe-countries { gap: 4px; }
    .eu-tag { font-size: 0.6rem; padding: 2px 7px; }

    /* === WORLD MAP === */
    .world-map-container { padding: 0 8px; }
    .world-map-wrapper { max-width: 100%; }
    .map-stats { gap: 20px; flex-wrap: wrap; }
    .map-stat-num { font-size: 1.8rem; }
    .pin-label { font-size: 0.55rem; padding: 2px 5px; }

    /* === WHY US === */
    .why-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .why-left, .why-right { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .why-center-img { height: 200px; border-radius: 20px; }
    .why-card { padding: 20px; }
    .why-icon { width: 44px; height: 44px; border-radius: 12px; }
    .why-icon svg { width: 22px; height: 22px; }

    /* === PACKAGES === */
    .filter-tabs { flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 8px; }
    .filter-tab { padding: 7px 14px; font-size: 0.8rem; }
    .packages-grid, .cards-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .card { border-radius: 16px; }
    .card-image { height: 180px; }
    .card-content { padding: 16px; }
    .card-title { font-size: 1rem; }

    /* === TEAM SECTION (homepage) === */
    .team-preview { grid-template-columns: 1fr 1fr !important; gap: 14px; }
    .team-card { border-radius: 16px; padding: 16px; }
    .team-photo { width: 64px; height: 64px; margin-bottom: 10px; }
    .team-name { font-size: 0.85rem; }
    .team-role { font-size: 0.72rem; }

    /* === TRIP PLANNER === */
    .planner-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .planner-form { padding: 20px 16px; border-radius: 20px; }
    .form-row { grid-template-columns: 1fr !important; }
    .form-control { padding: 12px 14px; font-size: 0.9rem; }
    .form-submit { padding: 14px; font-size: 1rem; }

    /* === BLOG === */
    .blog-grid { grid-template-columns: 1fr !important; }
    .blog-featured { height: 220px; border-radius: 16px; }
    .blog-list { gap: 14px; }
    .blog-item { gap: 12px; }
    .blog-item-img { width: 80px; height: 80px; border-radius: 12px; flex-shrink: 0; }

    /* === TESTIMONIALS === */
    .testimonials-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .testimonial-card { padding: 24px 20px; }

    /* === CONTACT === */
    .contact-grid { grid-template-columns: 1fr !important; gap: 24px; }
    .contact-info { gap: 14px; }
    .contact-item { padding: 14px; gap: 12px; }
    .contact-icon { font-size: 1.4rem; }
    .contact-form { padding: 20px 16px; border-radius: 20px; }

    /* === FOOTER === */
    .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-title { font-size: 1rem; }
    .footer-links li { margin-bottom: 8px; }

    /* === WHATSAPP BUTTON === */
    .whatsapp-float { width: 52px; height: 52px; font-size: 1.4rem; bottom: 20px; left: 20px; }

    /* === DESTINATION PAGES === */
    .dest-hero { height: 50vh; min-height: 300px; padding-bottom: 30px; }
    .dest-hero-content { padding: 0 16px; }
    .dest-title { font-size: 2rem !important; }
    .dest-tagline { font-size: 0.9rem; }
    .dest-flag { font-size: 2.2rem; }

    .season-tabs { gap: 0; overflow-x: auto; justify-content: flex-start; padding: 0 8px; }
    .season-tabs-wrapper { overflow: hidden; }
    .season-tab { padding: 14px 16px; font-size: 0.8rem; white-space: nowrap; flex-shrink: 0; }

    .packages-section { padding: 40px 0; }
    .packages-grid { grid-template-columns: 1fr !important; gap: 14px; }
    .pkg-card { padding: 20px; border-radius: 16px; }
    .pkg-name { font-size: 1rem; }
    .pkg-footer { flex-wrap: wrap; gap: 10px; }
    .pkg-book { padding: 10px 18px; text-align: center; }

    .info-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
    .info-card { padding: 16px; border-radius: 12px; }
    .info-icon { font-size: 1.5rem; }

    .hotels-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
    .hotel-card { padding: 14px; border-radius: 12px; }

    .dest-cta { padding: 50px 0; }
    .dest-cta h2 { font-size: 1.8rem; }
    .dest-cta .btn { display: block; margin: 8px auto; text-align: center; width: fit-content; }

    /* === ABOUT PAGE === */
    .about-hero-content { grid-template-columns: 1fr !important; padding: 80px 0 50px; }
    .about-hero-visual { display: none; }
    .about-hero h1 { font-size: 2.2rem !important; }
    .stats-strip { grid-template-columns: repeat(3, 1fr) !important; }
    .stat-strip-item { padding: 20px 10px; }
    .stat-strip-num { font-size: 1.8rem; }
    .story-layout { grid-template-columns: 1fr !important; gap: 40px; }
    .services-grid { grid-template-columns: 1fr !important; gap: 14px; }
    .branches-grid { grid-template-columns: 1fr 1fr !important; gap: 14px; }
    .branch-card { padding: 20px; }

    /* === TEAM PAGE === */
    .team-hero h1 { font-size: 2.2rem !important; }
    .team-hero-stats { gap: 20px; }
    .hero-stat-item strong { font-size: 1.6rem; }
    .founder-grid { grid-template-columns: 1fr !important; gap: 30px; }
    .founder-avatar-wrap { width: 200px; height: 200px; margin: 0 auto; }
    .founder-name { font-size: 2rem; }
    .team-bento, .team-masonry { grid-template-columns: 1fr 1fr !important; gap: 14px; }
    .tc-photo-wrap { height: 130px; }
    .tc-body { padding: 14px; }
    .values-grid { grid-template-columns: 1fr 1fr !important; gap: 14px; }
    .value-card { padding: 24px 16px; }

    /* === CONTACT PAGE === */
    .contact-layout { grid-template-columns: 1fr !important; gap: 24px; }
    .booking-form-box { padding: 24px 16px; }
    .form-row { grid-template-columns: 1fr !important; }
    .whatsapp-btn { font-size: 0.95rem; padding: 14px 20px; }
    .faq-list { margin: 24px auto 0; }
    .faq-question { padding: 16px 18px; font-size: 0.9rem; }

    /* === DESTINATIONS PAGE === */
    .dest-stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }

    /* === LEADERS === */
    .leaders-grid { grid-template-columns: 1fr !important; }
    .leader-card { flex-direction: column; gap: 20px; padding: 24px; }
    .leader-photo { width: 90px; height: 90px; }
    .leader-name { font-size: 1.2rem; }
}

/* Small phones */
@media (max-width: 480px) {
    .heading-xl { font-size: 1.6rem !important; }
    .hero-headline { font-size: 2rem !important; }
    .countries-grid { grid-template-columns: 1fr !important; }
    .country-card-wide { grid-column: span 1 !important; }
    .team-preview { grid-template-columns: 1fr 1fr !important; }
    .team-bento, .team-masonry { grid-template-columns: 1fr !important; }
    .hotels-grid { grid-template-columns: 1fr !important; }
    .info-grid { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr !important; }
    .branches-grid { grid-template-columns: 1fr !important; }
    .values-grid { grid-template-columns: 1fr !important; }
    .stats-strip { grid-template-columns: repeat(2, 1fr) !important; }
    .leaders-grid { grid-template-columns: 1fr !important; }
}

/* === MOBILE NAVBAR FIXES === */
/* ===== HERO PLAN CTA BUTTON (all devices) ===== */
.hero-mobile-cta {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

a.hero-mobile-plan-btn,
a.btn.hero-mobile-plan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #4B9EFF;
    background-image: linear-gradient(135deg, #5ba8ff, #3a8de8);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 16px 44px;
    border-radius: 50px;
    border: none;
    outline: none;
    text-decoration: none;
    box-shadow: 0 6px 0 #2571c7, 0 14px 28px rgba(0,0,0,0.28);
    transform: translateY(0);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-family: 'Tajawal', 'Inter', sans-serif;
    letter-spacing: 0.2px;
    position: relative;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

a.hero-mobile-plan-btn:link,
a.hero-mobile-plan-btn:visited,
a.btn.hero-mobile-plan-btn:link,
a.btn.hero-mobile-plan-btn:visited {
    color: #fff;
    text-decoration: none;
}

a.hero-mobile-plan-btn:hover,
a.btn.hero-mobile-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #2571c7, 0 18px 34px rgba(0,0,0,0.32);
    color: #fff;
}

a.hero-mobile-plan-btn:active,
a.btn.hero-mobile-plan-btn:active {
    box-shadow: 0 2px 0 #2571c7, 0 6px 12px rgba(0,0,0,0.22);
    transform: translateY(4px);
}

@media (max-width: 768px) {
    .hero-mobile-cta { margin-top: 20px; }

    a.hero-mobile-plan-btn,
    a.btn.hero-mobile-plan-btn {
        font-size: 0.88rem;
        padding: 12px 28px;
        gap: 8px;
        box-shadow: 0 4px 0 #2571c7, 0 8px 18px rgba(0,0,0,0.22);
    }
    a.hero-mobile-plan-btn:hover,
    a.btn.hero-mobile-plan-btn:hover {
        box-shadow: 0 6px 0 #2571c7, 0 12px 22px rgba(0,0,0,0.26);
    }
    a.hero-mobile-plan-btn:active,
    a.btn.hero-mobile-plan-btn:active {
        box-shadow: 0 1px 0 #2571c7, 0 4px 8px rgba(0,0,0,0.18);
    }
}

/* ===== TIPS / BLOG NEW DESIGN ===== */
.tips-section { background: #f8faff; }

.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.tips-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tip-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

.tip-card-large { height: 420px; }
.tip-card-side { height: 120px; flex-direction: row; }

.tip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}
.tip-card:hover .tip-img { transform: scale(1.05); }

.tip-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    gap: 6px;
}

.tip-card-side .tip-overlay {
    background: linear-gradient(to left, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    justify-content: flex-end;
    padding: 16px 20px;
}

.tip-tag {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 4px;
}

.tip-title {
    color: white;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}
.tip-card-side .tip-title { font-size: 0.85rem; }

.tip-desc {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tip-date {
    color: rgba(255,255,255,0.65);
    font-size: 0.7rem;
}

/* Mobile tips */
@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .tip-card-large { height: 280px; }
    .tips-side { gap: 12px; }
    .tip-card-side { height: 100px; }
    .tip-title { font-size: 0.9rem; }
    .tip-card-side .tip-title { font-size: 0.78rem; }
    .tip-overlay { padding: 16px; }
}

/* === PHUB-STYLE PACKAGE CARD (shared: home page, programs archive) === */
.pkg-modern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pkg-modern-card.filtered-out { display: none; }

.pkg-phub-card {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    display: block;
    box-shadow: 0 18px 50px -12px rgba(15,23,42,0.25);
    transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.5s;
    cursor: pointer;
    isolation: isolate;
}
.pkg-phub-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 30px 70px -15px rgba(15,23,42,0.4);
}
.pkg-phub-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 0.8s cubic-bezier(0.2,0.8,0.2,1);
    z-index: 0;
}
.pkg-phub-card:hover .pkg-phub-img { transform: scale(1.1); }
.pkg-phub-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.85) 100%);
    opacity: 0.95;
    transition: opacity 0.4s;
    z-index: 1;
}
.pkg-phub-card:hover .pkg-phub-overlay { opacity: 1; }
.pkg-phub-top {
    position: absolute; top: 18px; inset-inline: 18px;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
    z-index: 3;
}
.pkg-phub-flag {
    font-size: 2.6rem; line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    transition: transform 0.4s;
}
.pkg-phub-card:hover .pkg-phub-flag { transform: scale(1.1) rotate(-5deg); }
.pkg-phub-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.pkg-phub-chip {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
}
.pkg-phub-status {
    position: absolute; top: 18px; inset-inline-end: 18px;
    color: #fff; padding: 5px 12px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 800; z-index: 4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.pkg-phub-badge-shared {
    position: absolute; top: 14px; inset-inline-end: 14px;
    background: linear-gradient(135deg, #38BDF8, #0ea5e9);
    color: #0c4a6e;
    font-size: 0.7rem; font-weight: 900;
    padding: 6px 12px; border-radius: 999px;
    z-index: 4;
    box-shadow: 0 6px 20px rgba(14,165,233,0.4);
    animation: pkg-phub-pulse 2.5s ease-in-out infinite;
}
@keyframes pkg-phub-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.pkg-phub-content {
    position: absolute; bottom: 0; inset-inline: 0;
    padding: 22px 22px 24px;
    z-index: 3;
}
.pkg-phub-type {
    display: inline-block;
    background: rgba(255,255,255,0.92);
    color: #1d4ed8;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.pkg-phub-title {
    font-size: 1.45rem;
    font-weight: 900;
    margin: 0 0 6px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
    line-height: 1.25;
    transition: transform 0.4s;
}
.pkg-phub-card:hover .pkg-phub-title { transform: translateX(-4px); }
[dir="ltr"] .pkg-phub-card:hover .pkg-phub-title { transform: translateX(4px); }
.pkg-phub-tagline {
    font-size: 0.86rem;
    opacity: 0.92;
    line-height: 1.55;
    margin: 0 0 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pkg-phub-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
}
.pkg-phub-price { display: flex; flex-direction: column; line-height: 1.1; }
.pkg-phub-price-label { font-size: 0.7rem; opacity: 0.85; }
.pkg-phub-price-amount { font-size: 1.3rem; font-weight: 900; color: #fff; }
.pkg-phub-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px;
    background: rgba(255,255,255,0.95);
    color: #0f172a;
    font-size: 0.84rem; font-weight: 800;
    border-radius: 999px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.5);
    white-space: nowrap;
}
.pkg-phub-cta::after {
    content: '←';
    font-size: 1rem;
    transition: transform 0.3s;
    display: inline-block;
}
[dir="ltr"] .pkg-phub-cta::after { content: '→'; }
.pkg-phub-card:hover .pkg-phub-cta {
    background: #fff;
    color: #4B9EFF;
    padding-inline-start: 22px;
}
.pkg-phub-card:hover .pkg-phub-cta::after { transform: translateX(-4px); }
[dir="ltr"] .pkg-phub-card:hover .pkg-phub-cta::after { transform: translateX(4px); }
.pkg-phub-card.is-shared .pkg-phub-overlay {
    background:
        linear-gradient(180deg, rgba(2,132,199,0) 0%, rgba(2,132,199,0.35) 55%, rgba(12,74,110,0.92) 100%);
}
.pkg-phub-card.is-shared:hover .pkg-phub-cta { color: #0284c7; }
.pkg-phub-card.is-shared .pkg-phub-meta { margin-top: 32px; }
@media (max-width: 1024px) { .pkg-modern-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 600px) {
    .pkg-modern-grid { grid-template-columns: 1fr; gap: 20px; }
    .pkg-phub-card { aspect-ratio: 16 / 11; }
    .pkg-phub-flag { font-size: 2rem; }
    .pkg-phub-title { font-size: 1.2rem; }
}

/* === PHUB COUNTRY CARDS (shared: home destinations + /programs/ archive) === */
.phub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.phub-card {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    display: block;
    box-shadow: 0 18px 50px -12px rgba(15,23,42,0.25);
    transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.5s;
    cursor: pointer;
    isolation: isolate;
}
.phub-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 30px 70px -15px rgba(15,23,42,0.4);
}
.phub-card-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 0.8s cubic-bezier(0.2,0.8,0.2,1);
    z-index: 0;
}
.phub-card:hover .phub-card-img { transform: scale(1.1); }
.phub-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.85) 100%);
    opacity: 0.95;
    transition: opacity 0.4s;
    z-index: 1;
}
.phub-card:hover .phub-card-overlay { opacity: 1; }
.phub-card-top {
    position: absolute; top: 20px; inset-inline: 20px;
    display: flex; justify-content: space-between; align-items: flex-start;
    z-index: 3;
}
.phub-card-flag {
    font-size: 3rem; line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    transition: transform 0.4s;
}
.phub-card:hover .phub-card-flag { transform: scale(1.1) rotate(-5deg); }
.phub-card-count {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
.phub-card-count strong { font-size: 1rem; margin-inline-end: 4px; }
.phub-card-content {
    position: absolute; bottom: 0; inset-inline: 0;
    padding: 24px 24px 26px;
    z-index: 3;
}
.phub-card-title {
    font-size: 1.8rem; font-weight: 900;
    margin: 0 0 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    transition: transform 0.4s;
}
.phub-card:hover .phub-card-title { transform: translateX(-6px); }
[dir="ltr"] .phub-card:hover .phub-card-title { transform: translateX(6px); }
.phub-card-tagline {
    font-size: 0.92rem; opacity: 0.92; line-height: 1.55;
    margin: 0 0 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    min-height: 2.8em;
}
.phub-card-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.95);
    color: #0f172a;
    font-size: 0.9rem; font-weight: 800;
    border-radius: 999px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.5);
}
.phub-card:hover .phub-card-cta {
    background: #fff;
    padding-inline-start: 24px;
    color: #4B9EFF;
}
.phub-card-cta::after {
    content: '←';
    font-size: 1.1rem;
    transition: transform 0.3s;
    display: inline-block;
}
[dir="ltr"] .phub-card-cta::after { content: '→'; }
.phub-card:hover .phub-card-cta::after { transform: translateX(-4px); }
[dir="ltr"] .phub-card:hover .phub-card-cta::after { transform: translateX(4px); }

/* Shared variant */
.phub-card.is-shared .phub-card-overlay {
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.9) 100%),
        linear-gradient(135deg, #0c4a6e 0%, #0284c7 50%, #38BDF8 100%);
}
.phub-card.is-shared .phub-card-flags {
    display: flex; gap: 0;
    font-size: 2rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.phub-card.is-shared .phub-card-flags span {
    margin-inline-start: -10px;
    transition: transform 0.4s;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
}
.phub-card.is-shared:hover .phub-card-flags span:nth-child(1) { transform: translateX(8px); }
.phub-card.is-shared:hover .phub-card-flags span:nth-child(2) { transform: translateX(4px); }
.phub-card.is-shared:hover .phub-card-flags span:nth-child(4) { transform: translateX(-4px); }
.phub-card.is-shared:hover .phub-card-flags span:nth-child(5) { transform: translateX(-8px); }
.phub-card.is-shared:hover .phub-card-cta { color: #0284c7; }
.phub-shared-badge {
    position: absolute;
    top: -8px; inset-inline-end: -8px;
    background: linear-gradient(135deg, #38BDF8, #0ea5e9);
    color: #0c4a6e;
    font-size: 0.7rem; font-weight: 900;
    padding: 6px 12px; border-radius: 999px;
    z-index: 4;
    box-shadow: 0 6px 20px rgba(14,165,233,0.4);
    animation: phub-pulse 2.5s ease-in-out infinite;
}
@keyframes phub-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Stagger intro */
.phub-card { opacity: 0; transform: translateY(30px); animation: phub-rise 0.7s cubic-bezier(0.2,0.8,0.2,1) forwards; }
.phub-card:nth-child(1) { animation-delay: 0.05s; }
.phub-card:nth-child(2) { animation-delay: 0.12s; }
.phub-card:nth-child(3) { animation-delay: 0.19s; }
.phub-card:nth-child(4) { animation-delay: 0.26s; }
.phub-card:nth-child(5) { animation-delay: 0.33s; }
.phub-card:nth-child(6) { animation-delay: 0.40s; }
.phub-card:nth-child(7) { animation-delay: 0.47s; }
@keyframes phub-rise { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) {
    .phub-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
    .phub-grid { grid-template-columns: 1fr; gap: 20px; }
    .phub-card { aspect-ratio: 16 / 11; }
    .phub-card-flag { font-size: 2.4rem; }
    .phub-card-title { font-size: 1.5rem; }
    .phub-card-tagline { min-height: 0; }
}

/* === GLASS TREATMENT for phub package cards (home + destinations + /programs/) === */
.pkg-modern-grid .pkg-phub-card { isolation: isolate; }

.pkg-modern-grid .pkg-phub-img { filter: none; }

/* Clean dark fade — for content readability only, no full-image color tint */
.pkg-modern-grid .pkg-phub-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.45) 100%);
    opacity: 1;
    mix-blend-mode: normal;
    z-index: 2;
}

/* Subtle neutral shadow */
.pkg-modern-grid .pkg-phub-card {
    box-shadow: 0 18px 50px -12px rgba(15,23,42,0.30);
}
.pkg-modern-grid .pkg-phub-card:hover {
    box-shadow: 0 30px 70px -15px rgba(15,23,42,0.45);
}

.pkg-modern-grid .pkg-phub-content {
    inset-inline: 14px;
    bottom: 14px;
    padding: 16px 18px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(56,189,248,0.62) 0%, rgba(14,165,233,0.68) 100%);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.30);
    box-shadow:
        0 12px 32px rgba(14,165,233,0.25),
        inset 0 1px 0 rgba(255,255,255,0.35);
    transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1), background 0.5s;
}
.pkg-modern-grid .pkg-phub-card:hover .pkg-phub-content {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(56,189,248,0.74) 0%, rgba(2,132,199,0.80) 100%);
}

.pkg-modern-grid .pkg-phub-title {
    font-size: 1.25rem;
    margin: 0 0 10px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.pkg-modern-grid .pkg-phub-tagline { text-shadow: 0 1px 6px rgba(0,0,0,0.4); }

.pkg-modern-grid .pkg-phub-cta {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 14px;
    font-size: 0.8rem;
}
.pkg-modern-grid .pkg-phub-card:hover .pkg-phub-cta {
    background: rgba(255,255,255,0.95);
    color: var(--cardC, #1d4ed8);
    border-color: rgba(255,255,255,0.9);
    padding-inline-start: 20px;
}

/* Top chips (days etc.) — matching dark glass */
.pkg-modern-grid .pkg-phub-chip {
    background: rgba(15,23,42,0.32);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
}

@media (max-width: 600px) {
    .pkg-modern-grid .pkg-phub-content { inset-inline: 10px; bottom: 10px; padding: 12px 14px 14px; border-radius: 18px; }
    .pkg-modern-grid .pkg-phub-title { font-size: 1.05rem; }
}

/* === Audit consolidation === */

/* === Audit consolidation: utility classes === */
.card-lift-sm { transition: transform .3s ease, box-shadow .3s ease; }
.card-lift-sm:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.10); }
.card-lift-md { transition: transform .3s ease, box-shadow .3s ease; }
.card-lift-md:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0,0,0,0.15); }

/* Glass panel utilities (consolidates .season-tag, .pkg-phub-chip, .hx-service-badge patterns) */
.glass {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.20);
}
.glass-dark {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
}

/* Shared hero primitives (used by hero-* template-parts) */
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%); pointer-events: none; }
.hero-breadcrumb { display: inline-flex; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.85); }
.hero-breadcrumb a { color: inherit; text-decoration: none; }
.hero-breadcrumb a:hover { color: #fff; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font-weight: 700; transition: transform .25s ease, box-shadow .25s ease; }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.hero-cta--primary { background: var(--accent, #d4a574); color: #1a1a1a; }
.hero-cta--ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(10px); }

/* ===== Team member photos — keep faces (top of frame) visible at every size ===== */
/* Anchor cover-cropped portraits to the top so heads/foreheads are never cut. */
.tm-leader-photo img,
.tm-card img,
.tm-photo img,
.hceo-photo img,
.hceo-photo,
.hcs-card img,
.hcs-photo img,
.htch-avatar img,
.htc-avatar img,
.htl-tile-img,
.htf-photo-frame img,
.htf-marquee-photo img,
.hte-photo img,
.htci-photo img,
.htm-tile img,
.hfs-tile img,
.home-team-split .split-photo img,
.home-team-carousel .htc-carousel-img,
img.team-photo,
[class*="team-photo"] img,
[class*="team-card"] img,
[class*="team-avatar"] img {
    object-position: center top !important;
}
/* Background-image variants (CSS backgrounds, not <img>) */
.hceo-photo[style*="background-image"],
.htf-photo-frame[style*="background-image"],
[class*="team"][style*="background-image"] {
    background-position: center top !important;
}
