: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;
}

/* Utility Top Bar */
.utility-top-bar {
    background-color: #f8f9fa;
    height: 35px;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
}

.utility-top-bar .social-icons {
    gap: 15px;
}

.utility-top-bar .social-icons a {
    color: var(--text-deep);
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.utility-top-bar .social-icons a:hover {
    color: var(--brand-orange);
    opacity: 1;
    transform: translateY(-1px);
}

.mobile-only {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    z-index: 1;
}

.hero.menu-open {
    z-index: 9999;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
    clip-path: ellipse(100% 100% at 50% 0%);
    z-index: -1;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 300px;
    /* Adjust size as needed */
    height: auto;
    z-index: 10;
    filter: brightness(0) invert(1);
    opacity: 1;
}

.top-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.hamburger-menu {
    display: none;
}

.nav-links-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    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;
}

.search-input {
    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: 100%;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    width: 100%;
    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-container.hero-search {
    margin: 2rem auto 0;
    max-width: 360px;
    width: 100%;
    display: flex;
    /* Ensure centering works as wrapper */
    justify-content: center;
}

.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: flex;
        justify-content: flex-end;
        /* Align items to the right */
        width: 100%;
        /* Ensure it spans the width */
    }

    /* Hamburger Menu Button */
    .hamburger-menu {
        display: block;
        background: none;
        border: none;
        color: white;
        /* Make sure it's visible against the hero background */
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
        /* Ensure it's above the mobile menu */
        margin-left: 15px;
        padding: 5px;
    }

    .utility-top-bar {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    .nav-links-group {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 250px;
        height: 100vh;
        background: rgba(45, 49, 61, 0.98);
        /* Text Deep color with opacity */
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links-group.active {
        right: 0;
        /* Slide in */
    }

    .nav-link {
        color: white;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        background: none;
        text-align: left;
    }

    .nav-link:hover {
        background: none;
        color: var(--brand-orange);
        transform: translate(5px);
    }

    .social-icons {
        margin-top: 2rem;
        justify-content: center;
        width: 100%;
    }

    .search-container {
        width: 100%;
        max-width: 250px;
        margin-top: 0.5rem;
        position: relative;
        z-index: 5;
        order: 5;
        /* display: flex;  Removes this from top-nav logic, but we are hiding it anyway */
        justify-content: center;
        display: none;
        /* Hide default top-nav search on mobile */
    }

    .search-container.hero-search {
        max-width: 60%;
        margin: 1rem auto 0;
    }

    .search-input {
        width: 100%;
        padding: 0.4rem 2rem 0.4rem 2.5rem;
        font-size: 0.9rem;
    }

    .search-input: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-top: 15px;
        /* Prevent clipping at top when cards shift up */
        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;
    /* Fix for mobile Safari border-radius clipping */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: -webkit-radial-gradient(white, black);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    isolation: isolate;
}

.card:hover {
    transform: translate3d(0, -10px, 0);
    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;
    /* Fallback border-radius for mobile */
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.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 {
    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);
}

/* Status Badge Variants */
.status-badge.sold-out {
    background: #d32f2f;
}

.status-badge.last-seat {
    background: #f57c00;
}

.status-badge.early-bird {
    background: #388e3c;
}

.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;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.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;
    flex-grow: 1;
}

.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);
    margin-top: auto;
}

.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;
    }

    /* Scoped overrides for Our Mission page */
    .page-our-mission .hero h1 {
        font-size: 1.5rem;
    }

    .page-our-mission .hero p {
        font-size: 0.8rem;
    }

    .page-our-mission main.container>div {
        font-size: 1rem !important;
        margin-top: 2rem !important;
    }

    .page-our-mission main.container p:first-of-type {
        font-size: 1.0rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Clergy Invitation Section */
.clergy-section {
    background: var(--accent-tint);
    padding: 6rem 0;
    margin: 0rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.clergy-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--brand-orange);
    opacity: 0.05;
    border-radius: 50%;
    pointer-events: none;
}

.clergy-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: var(--brand-orange-dark);
    opacity: 0.03;
    border-radius: 50%;
    pointer-events: none;
}

.clergy-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.clergy-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-deep);
}

.clergy-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    line-height: 1.8;
}

.clergy-features {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    font-size: 2rem;
    color: var(--brand-orange);
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
}

.feature-item span {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-deep);
}

.btn-cta-clergy {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(237, 105, 56, 0.25);
}

.btn-cta-clergy:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(237, 105, 56, 0.4);
    color: white;
}

@media (max-width: 768px) {
    .clergy-section {
        padding: 4rem 1rem;
        margin: 2rem 0;
    }

    .clergy-content h2 {
        font-size: 1.8rem;
    }

    .clergy-content p {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .clergy-features {
        flex-direction: column;
        gap: 2.5rem;
        margin-bottom: 3rem;
    }

    .feature-item i {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .btn-cta-clergy {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
}