:root {
    --brand-orange: #ED6938;
    --brand-orange-dark: #d35400;
    --brand-orange-light: #ff8a5c;
    --accent-tint: #fff5f0;
    --sacred-white: #ffffff;
    --stone-grey: #f4f6f8;
    --text-deep: #2d313d;
    --text-muted: #6b7280;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.06);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--stone-grey);
    color: var(--text-deep);
    line-height: 1.6;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    clip-path: ellipse(100% 100% at 50% 0%);
    margin-bottom: 2rem;
    position: relative;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 300px;
    /* Adjust size as needed */
    height: auto;
    z-index: 10;
}

.top-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.nav-links-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    opacity: 0.9;
}

.social-icons a:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

#programSearch {
    padding: 0.5rem 2.5rem 0.5rem 2.5rem;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    width: 200px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#programSearch:focus {
    outline: none;
    width: 250px;
    background: white;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: none;
    /* Hidden by default */
}

.search-clear:hover {
    color: var(--brand-orange);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    /* Space for shadow/scroll */
}

@media (max-width: 768px) {
    .hero {
        padding: 3.5rem 1rem 4rem;
        /* Reduced top padding further */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        position: relative;
    }

    .logo {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 140px;
        margin: 0;
    }

    .top-nav {
        display: contents;
    }

    .nav-links-group {
        position: absolute;
        top: 10px;
        right: 10px;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        padding: 0;
        z-index: 10;
    }

    .search-container {
        width: 100%;
        max-width: 250px;
        margin-top: 0.5rem;
        position: relative;
        z-index: 5;
        order: 5;
        display: flex;
        justify-content: center;
    }

    #programSearch {
        width: 100%;
        padding: 0.4rem 2rem 0.4rem 2.5rem;
        font-size: 0.85rem;
    }

    #programSearch:focus {
        width: 100%;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-top: 0.5rem;
        /* Reduced to pull content up */
    }

    .hero p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .grid::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .card {
        flex: 0 0 85%;
        /* Show 85% of card to encourage swipe */
        scroll-snap-align: center;
        margin-right: 0;
    }

    .card-title {
        font-size: 1.0rem;
    }

    .card-subtitle {
        font-size: 0.7rem;
    }

    .btn-view {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Card Styles */
.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--brand-orange-light);
}

.card-image {
    height: 200px;
    background: var(--stone-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 0.85rem;
    /* Smaller */
    color: var(--text-muted);
    /* Light Grey */
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-view {
    margin-top: auto;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(237, 105, 56, 0.2);
    border: 1px solid transparent;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(237, 105, 56, 0.4);
    background: linear-gradient(135deg, var(--brand-orange-dark), var(--brand-orange));
    color: white;
}

/* Price Tag */
.price-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 67, 119, 0.9);
    /* Brand Blue/Dark Blue */
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 300;
    font-size: 0.9rem;
    border-top-right-radius: 8px;
    z-index: 2;
}

/* Status Badge (e.g., Sold Out) */
.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #d32f2f;
    /* Red */
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-date {
    font-size: 0.95rem;
    color: var(--brand-orange-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.card-guide {
    font-size: 0.9rem;
    color: var(--text-deep);
    font-style: italic;
    margin-bottom: 2.5rem;
    line-height: 1.4;
    opacity: 0.95;
}

.footer {
    background: var(--accent-tint);
    padding: 4rem 0 2rem;
    color: var(--text-deep);
    border-top: 1px solid rgba(237, 105, 56, 0.1);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr 1.6fr 0.6fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.footer-logo {
    width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 250px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-deep);
}

.footer-contact-item,
.footer-address {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-contact-item i {
    color: var(--brand-orange);
    margin-right: 8px;
    width: 16px;
}

.footer-contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-contact-item a:hover {
    color: var(--brand-orange);
}

.tico-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tico-logo {
    height: 45px;
    width: auto;
    margin-bottom: 0.75rem;
}

.tico-number {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 3rem 0 1.5rem;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-heading {
        margin-bottom: 1rem;
    }

    .tico-section {
        align-items: center;
    }
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 4rem 0 3rem;
    color: var(--text-deep);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand-orange);
    border-radius: 2px;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--brand-orange-light);
}

.testimonial-content p {
    font-size: 1.1rem;
    color: var(--text-deep);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content p::before {
    content: '\201C';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--brand-orange);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--text-deep);
    font-size: 1rem;
}

.author-tour {
    font-size: 0.85rem;
    color: var(--brand-orange-dark);
    font-weight: 600;
}

/* Media Section */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.media-item {
    background: var(--sacred-white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.media-item:hover {
    background: var(--accent-tint);
    border-color: rgba(237, 105, 56, 0.2);
    transform: translateY(-5px);
}

.media-icon {
    font-size: 2.5rem;
    color: var(--brand-orange);
    margin-bottom: 1.5rem;
}

.media-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-deep);
}

.media-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.media-link {
    color: var(--brand-orange-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.media-link:hover {
    color: var(--brand-orange);
}

/* Responsive Styles */
@media (max-width: 992px) {

    .testimonials-grid,
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        margin: 3rem 0 2rem;
    }

    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 2rem;
        scrollbar-width: none;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .media-item {
        padding: 2rem;
    }
}