:root {
    --bg-dark: #0B1D2A;
    --accent-orange: #F49C23;
    --accent-blue: #1E90FF;
    --text-light: #FFFFFF;
    --text-secondary: #D1D1D1;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {

    background-repeat: repeat;
    background-color: var(--bg-dark); /* Fallback color */
    color: var(--text-secondary);
    overflow-x: hidden; /* Prevents horizontal scrollbar from animations */
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
    text-transform: uppercase;
}

/* --- Text Color Utilities --- */
.text-orange {
    color: #ffc107 !important;
        font-size: 5.5rem;
}

.text-blue {
    color: var(--accent-blue) !important;
}

.overflow-hidden {
    /* Prevents horizontal scrollbars caused by animations like AOS */
    overflow-x: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-orange);
    bottom: 0;
    left: calc(50% - 30px);
}

/* --- Hero and Navbar --- */
.hero-section {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(11, 29, 42, 0.7), rgb(11 29 42 / 0%)), url(../images/IMG_3985.jpg) no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
  
}


.hero-section-small {
    position: relative;
    height: 54vh;
    background: linear-gradient(rgba(11, 29, 42, 0.7), rgb(11 29 42 / 0%)), url(../images/IMG_3985.jpg) no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.navbar {
    padding: 1rem 0;
    background: transparent;
    /* Add padding to the transition for the smooth resize effect */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    /* Ensure the navbar is always on top of other content */
    z-index: 1031;
}

.navbar.navbar-scrolled {
background-color: #0b1d2ae0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    position: fixed;
    width: 100vw;

}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-image {
    /* Set a larger initial height for the logo */
    max-height: 118px; 
    transition: max-height 0.3s ease;
}

.navbar-scrolled .logo-image {
    max-height: 50px; /* Shrink the logo on scroll */
}

.dropdown-menu {
    background-color: #102738; /* A slightly lighter dark blue */
    border: 1px solid var(--accent-blue);
    border-radius: 0;
    margin-top: 0.5rem !important;
}

.dropdown-item {
    color: var(--text-secondary);
    font-family: var(--font-body);
    transition: all 0.2s ease-in-out;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--accent-orange);
    color: var(--bg-dark) !important;
}

/* --- Mega Menu --- */
.mega-menu .dropdown-menu {
    width: 600px; /* Set a fixed width for the mega menu */
    padding: 1.5rem 1rem;
    left: auto; /* Override Bootstrap's default left:0 */
    right: 0;   /* Align menu to the right of the 'Tours' link */
}

.mega-menu-title {
    font-family: var(--font-heading);
    color: var(--accent-orange);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--accent-blue);
}

.mega-menu .list-group-item {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: none;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    text-decoration: none;
}

.mega-menu .list-group-item img {
width: 55px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.mega-menu .list-group-item span {
    font-family: var(--font-body);
    font-weight: 500;
    transition: color 0.3s ease;
}

.mega-menu .list-group-item:hover, .mega-menu .list-group-item:focus {
    background-color: transparent; /* Override bootstrap default */
    color: var(--text-secondary); /* Override bootstrap default */
}

.mega-menu .list-group-item:hover span {
    color: var(--accent-orange);
}

.mega-menu .list-group {
    /* Set a max height and enable scrolling for long lists */
    max-height: 190px; /* Adjust this value to show more/fewer items before scrolling */
    overflow-y: auto;
}

/* --- Custom Scrollbar for Mega Menu (Webkit browsers) --- */
.mega-menu .list-group::-webkit-scrollbar {
    width: 8px;
}

.mega-menu .list-group::-webkit-scrollbar-track {
    background: transparent;
}

.mega-menu .list-group::-webkit-scrollbar-thumb {
    background-color: var(--accent-blue);
    border-radius: 10px;
}

.mega-menu .list-group::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-orange);
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    color:white;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-orange) !important;
    border-bottom-color: var(--accent-orange);
}

.hero-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Add animation */
    animation: fadeInFromTop 1.2s ease-out 0.5s forwards;
    opacity: 0; /* Start as invisible for animation */
}

/* Keyframes for the hero text animation */
@keyframes fadeInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-subheadline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 700;
}

.btn-custom-orange {
    background-color: var(--accent-orange);
    color: var(--text-light);
    border: 2px solid var(--accent-orange);
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-custom-orange:hover {
    background-color: transparent;
    color: var(--accent-orange);
}

.btn-custom-blue-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-blue);
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-custom-blue-outline:hover {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

/* --- Wave Divider --- */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}
.wave-divider .shape-fill {
    fill: var(--bg-dark);
}

/* --- Featured Treks --- */
.featured-treks-section {
    background-color: #081824; /* A slightly different dark shade */
}

.btn-filter {
    color: var(--text-secondary);
    border: 1px solid var(--accent-blue);
    margin: 0 5px;
    transition: all 0.3s ease;
}
.btn-filter:hover, .btn-filter.active {
    background-color: var(--accent-blue);
    color: var(--text-light);
    border-color: var(--accent-blue);
}

.tour-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    height: 450px; /* A fixed height is good for grid alignment */
}

.tour-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.tour-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 29, 42, 1) 0%, rgba(11, 29, 42, 0.8) 40%, transparent 100%);
    padding: 1.5rem;
    color: var(--text-light);
    /* This transform shows only the title area initially */
    transform: translateY(calc(100% - 85px)); 
    transition: transform 0.4s ease-in-out;
}

.tour-card:hover .tour-card-overlay {
    transform: translateY(0);
}

.card-title-trek {
    color: var(--text-light);
    transition: color 0.3s ease;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.tour-card:hover .card-title-trek {
    color: var(--accent-orange);
}

/* Hide details initially */
.tour-card-overlay .card-text,
.tour-card-overlay .btn {
    opacity: 0;
    transition: opacity 0.3s ease 0.1s; /* Delay the fade-in */
}

/* Show details on hover */
.tour-card:hover .tour-card-overlay .card-text,
.tour-card:hover .tour-card-overlay .btn {
    opacity: 1;
}

/* --- Why Choose Us --- */
.why-us-section {
    /* Assumes you have a background image at public/images/why-us-bg.jpg */
    background: linear-gradient(rgba(11, 29, 42, 0.95), rgba(11, 29, 42, 0.95)), url('../images/why-us-bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}
.icon-box {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

/* --- Blog Section --- */
.blog-section {
    background-color: var(--bg-dark); /* Match the main body background */
}

.blog-card {
    background-color: #102738; /* Card background */
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.blog-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-category {
    background-color: var(--accent-blue);
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.blog-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
.blog-title a:hover {
    color: var(--accent-orange);
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: var(--accent-blue);
}

.read-more-link i {
    transition: transform 0.3s ease;
    display: inline-block;
}

.read-more-link:hover i {
    transform: translateX(5px);
}

/* --- Final CTA --- */
.final-cta-section {
    /* Assumes you have a background image at public/images/cta-bg.jpg */
    background: linear-gradient(rgba(11, 29, 42, 0.8), rgba(11, 29, 42, 0.8)), url('../images/cta-bg.jpg') no-repeat center center;
    background-size: cover;
}

/* --- Footer --- */
.footer-section {
    background-color: #000000;
    color: var(--text-secondary);
}
.footer-logo-image {
    max-height: 70px; /* Adjust size as needed */
}
.footer-link {
    color: var(--accent-orange);
 
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-link:hover {
color: var(--accent-blue);
}
.social-icons a {
    color: var(--accent-orange);
    font-size: 1.2rem;
    border: 1px solid var(--accent-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--text-light);
}
.copyright {
    background-color: rgba(0,0,0,0.2);
}

/* --- Tour Detail Page --- */
.page-header-small {
    background-color: #081824;
    padding: 4rem 0;
    height: 56vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    border-bottom: 2px solid var(--accent-blue);
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-title {
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.tour-detail-section {
    background-color: #081824;
}

.tour-detail-section .section-title::after {
    left: 0; /* Align the underline to the start */
}

.tour-description p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.tour-description ul {
    list-style-type: '✓';
    padding-left: 2rem;
}

.tour-description li {
    padding-left: 1rem;
    margin-bottom: 0.75rem;
}

.tour-info-box {
    background-color: #102738;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--accent-blue);
}

.info-box-title {
    color: var(--accent-orange);
    border-bottom: 1px solid var(--accent-blue);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.tour-info-box ul li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tour-info-box ul li i {
    color: var(--accent-orange);
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    margin-right: 1rem;
}

/* Style for disabled links where slug is missing */
.list-group-item.disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Breadcrumb Styles */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: #ff7f50;
    /* Theme orange color */
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.accordion-body {

    overflow: hidden;
}
/* Apply a background to the navbar on mobile devices */
@media (max-width: 991.98px) {
    /* Only apply the background when the mobile menu is expanded */
    .navbar.navbar-mobile-expanded {
        background: rgba(0, 0, 0, 0.56); /* This is the same as #0000008f */
        transition: background-color 0.2s ease-in-out;
        /* Make it absolute to overlay content instead of pushing it */
        position: absolute;
        width: 100%;
        top: 0;
        -webkit-backdrop-filter: blur(5px); /* Optional: Adds a nice blur effect on Safari */
        backdrop-filter: blur(5px); /* Optional: Adds a nice blur effect */
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 767.98px) {
    .hero-headline {
        font-size: 1.5rem;
    }

    /* Adjust the large "Au" on the homepage hero to be proportional */
    .hero-headline .text-orange {
        font-size: 4rem;
    }

    .hero-subheadline {
        font-size: 0.6rem; /* Adjusted for better readability on mobile */
            text-shadow: 1px 1px 9px rgb(0 0 0);
    }
}

/* --- Spam Prevention --- */
.honeypot-field {
    position: absolute;
    left: -5000px;
    top: -5000px;
}
