@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* Smooth scrolling for all scrollable elements */
body {
    scroll-behavior: smooth;
}
.playfair {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}
/* Underline base */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #616161;
    transition: none; /* No transition by default */
}

/* Active state WITHOUT animation (instant on page load) */
.nav-link.active::after {
    width: 100%;
    transition: width 0.5s ease-in-out;
}

/* Active state WITH animation (after user interaction) */
.nav-link.active.animate::after {
    width: 100%;
    transition: width 0.5s ease-in-out;
}

/* Active link font weight */
.nav-link.active {
    font-weight: 600;
}
.pop-in {
    animation: popIn 0.6s ease-out both;
}
@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to{
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: slideUp 0.8s ease-out;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.4); /* REQUIRED */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari */
    animation: fadeIn 0.3s ease-out;
}
/* ADDED: Modal content slide up animation */
.modal-content {
    animation: slideUp 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ADDED: Line clamp for description preview */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mobile-nav {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav a.active{
    color: #0a2b61;
    text-decoration: underline;
}
.mobile-nav.open {
    transform: translateX(0);
}
.backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background-color: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
}
.backdrop.open {
    opacity: 0.5;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}
/* Hamburger to X */
.hamburger {
    cursor: pointer;
    width: 24px;
    height: 20px;
    position: relative;
}
.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #333;
    border-radius: 9px;
    /*transition: .25s ease-in-out;
    
     */
}
.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #333;
    border-radius: 9px;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2), .hamburger span:nth-child(3) {
    top: 9px;
}

.hamburger span:nth-child(4) {
    top: 18px;
}

.filter-btn.active {
    background-color: #114293;
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.active {
    max-height: 500px;
}

.rotate-icon {
    transition: transform 0.3s;
}

.rotate-icon.active {
    transform: rotate(180deg);
}

.package-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.show {
    display: none;
}

.filter-btn.active {
    background-color: #114293;
    color: white;
}

.sidebar-wrapper {
    position: sticky;
    top: 24px;
    align-self: flex-start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.sidebar-wrapper::-webkit-scrollbar {
    width: 4px;
}

.sidebar-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-wrapper::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.sidebar-wrapper::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}