/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-blue: #002B7F;
    --primary-gold: #D4AF37;
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --bg-light-gray: #f8f9fa;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
}

/* Typography & Utility */
.text-gold { color: var(--primary-gold) !important; }
.text-blue { color: var(--primary-blue) !important; }
.bg-blue { background-color: var(--primary-blue) !important; }
.bg-gold { background-color: var(--primary-gold) !important; }

.btn-custom-gold {
    background-color: var(--primary-gold);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}
.btn-custom-gold:hover {
    background-color: var(--primary-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Navbar & Sticky Scroll */
.navbar {
    transition: background-color 0.4s ease, padding 0.4s ease;
    padding: 15px 0;
}
.navbar.scrolled {
    background-color: var(--primary-blue);
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.navbar.scrolled .nav-link { color: #fff !important; }
.navbar-brand img { height: 50px; transition: 0.3s; }

/* Nested Dropdown CSS */
/*.dropdown-menu li { position: relative; }
.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: -7px;
}
.dropdown-menu .dropdown-submenu-left { right: 100%; left: auto; }
.dropdown-menu > li:hover > .dropdown-submenu { display: block; }
.dropdown-item:hover {
    background-color: var(--primary-gold);
    color: #fff;
}*/

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
}
.swiper-slide {
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 43, 127, 0.4);
}
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}
.hero-content h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

/* Floating Search Box */
.floating-search {
    position: relative;
    margin-top: -60px;
    z-index: 10;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
}

/* Destination Cards */
.dest-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}
.dest-card img {
    height: 250px;
    object-fit: cover;
    transition: 0.5s;
}
.dest-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.dest-card:hover img { transform: scale(1.1); }
.dest-card .card-body { position: relative; background: #fff; }

/* Buddhist Circuit Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-gold);
    top: 0; bottom: 0; left: 50%;
    margin-left: -2px;
}
.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--primary-gold);
    top: 15px; border-radius: 50%; z-index: 1;
}
.left-timeline { left: 0; }
.right-timeline { left: 50%; }
.right-timeline::after { left: -10px; }
.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: #fff;
    padding-top: 60px;
}
footer h5 { color: var(--primary-gold); }
footer a { color: #ccc; text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--primary-gold); padding-left: 5px; }

/* Responsive adjustments */
@media screen and (max-width: 991px) {
    .navbar { background-color: var(--primary-blue); }
    .hero-content h1 { font-size: 2.5rem; }
    .timeline::after { left: 31px; }
    .timeline-container { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-container::after { left: 21px; }
    .right-timeline { left: 0%; }
}


/* =========================================
   Corrected Dropdown & Hover CSS 
========================================= */

/* 1. Ensure list items can anchor their sub-menus */
.dropdown-menu li { 
    position: relative; 
}

/* 2. Position the nested ULs (not the LIs) to the right */
.dropdown-menu .dropdown-submenu > .dropdown-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: -7px;
    margin-top: 0;
}

/* 3. Desktop Hover Logic */
@media all and (min-width: 992px) {
    /* Open main dropdown on hover */
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInDropdown 0.3s ease;
    }
    
    /* Open nested submenus on hover */
    .dropdown-menu > li.dropdown-submenu:hover > .dropdown-menu { 
        display: block; 
    }
}

/* Smooth fade-in for the main dropdown */
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}