/* ==========================================
   Thripzel Travel Website - Complete CSS
   ========================================== */

:root {
    --primary-color: #2A8BCB;
    --primary-dark: #1f6ea8;
    --secondary-color: #1ecad3;
    --dark-color: #2c3e50;
    --text-color: #333;
    --gray-light: #f8f9fa;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

/* ==========================================
   Navigation
   ========================================== */

.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand .logo {
    height: 50px;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
    font-size: 15px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Underline Animation - ONLY for regular nav items (NOT dropdown) */
.navbar-nav .nav-item:not(.dropdown) .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-item:not(.dropdown) .nav-link:hover::after,
.navbar-nav .nav-item:not(.dropdown) .nav-link.active::after {
    width: 80%;
}

/* ==========================================
   Dropdown Navigation - COMPLETE FIX
   ========================================== */

/* Dropdown arrow - Always visible */
.navbar-nav .dropdown-toggle::after {
    display: inline-block !important;
    margin-left: 0.5rem;
    vertical-align: 0.15em;
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    border: none !important;
    font-size: 0.75rem;
}

/* Underline for dropdown link on desktop */
.navbar-nav .dropdown .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .dropdown:hover .nav-link::after,
.navbar-nav .dropdown .nav-link.active::after {
    width: 80%;
}

/* Desktop behavior */
@media (min-width: 992px) {
    .navbar-nav .dropdown-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }
    
    /* Invisible bridge to prevent menu from closing */
    .dropdown-hover::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 20px;
        background: transparent;
    }
    
    .dropdown-hover .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        margin-top: 0;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    
    .dropdown-hover:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    
    .dropdown-menu:hover {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
    }
}

/* Mobile behavior - NO CHANGES */
@media (max-width: 991px) {
    .navbar-nav .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .navbar-nav .dropdown-toggle::after {
        margin-left: auto;
    }
    
    /* Remove underline on mobile */
    .navbar-nav .nav-link::after {
        display: none !important;
    }
    
    /* Remove borders and lines */
    .navbar-nav .nav-item,
    .navbar-nav .nav-link {
        border: none !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
    }
    
    .navbar-nav .dropdown-menu {
        border: none !important;
        box-shadow: none;
        background: transparent;
        padding-left: 1rem;
        margin-top: 0;
        display: none;
    }
    
    .navbar-nav .dropdown.show .dropdown-menu {
        display: block;
    }
    
    .navbar-nav .dropdown-item {
        color: var(--dark-color);
        padding: 0.5rem 1rem;
        border-radius: 5px;
        font-size: 15px;
        border: none !important;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: rgba(42, 139, 203, 0.1);
        color: var(--primary-color);
    }
}

/* Dropdown menu styling */
.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    margin-top: 0;
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    transition: var(--transition);
    font-size: 14px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--primary-color);
    color: white;
}



/* ==========================================
   Hero Section
   ========================================== */

.hero-section {
    position: relative;
    margin-top: -76px;
}

.carousel {
    height: 100vh;
    min-height: 600px;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
}

.carousel-image {
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42,139,203,0.7), rgba(30,202,211,0.5));
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: center;
    z-index: 10;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: 300;
}

/* ==========================================
   Booking Form
   ========================================== */

.booking-form-wrapper {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 10;
}

.booking-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.booking-form h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.booking-form .form-control,
.booking-form .form-select {
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 14px;
}

.booking-form .form-control:focus,
.booking-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(42,139,203,0.25);
}

/* ==========================================
   Buttons
   ========================================== */

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42,139,203,0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-light {
    background: white;
    color: var(--dark-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-light:hover {
    background: var(--gray-light);
    transform: scale(1.05);
}

/* ==========================================
   Sections
   ========================================== */

.about-section {
    padding: 80px 0;
}

.about-section img {
    border-radius: var(--border-radius);
}

.about-section h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    flex: 1;
}

.stat-number {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
}

/* Section Headers */
.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    font-weight: 700;
}

.section-header .lead {
    color: #666;
    font-size: 1.2rem;
}

/* ==========================================
   Trek Cards
   ========================================== */

.trek-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    cursor: pointer;
}

.trek-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.trek-card-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 15px;
}

.trek-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.trek-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
}

.trek-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.trek-listing-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.trek-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    z-index: 3;
}

/* ==========================================
   Features
   ========================================== */

.features-section {
    padding: 80px 0;
}

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.3rem;
    color: var(--dark-color);
    font-weight: 700;
}

/* ==========================================
   Statistics Counter
   ========================================== */

.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
}

.stat-box {
    padding: 2rem;
}

.stat-icon {
    font-size: 3rem;
    color: white;
    opacity: 0.9;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin: 1rem 0;
}

.stat-label {
    font-size: 1.1rem;
    color: white;
    margin: 0;
    opacity: 0.95;
}

/* ==========================================
   Testimonials
   ========================================== */

.testimonials-carousel .owl-stage-outer {
    padding: 2rem 0;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 0 10px;
}

.testimonial-card .stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
}

.testimonial-author h5 {
    color: var(--dark-color);
    font-weight: 700;
}

.testimonial-author span {
    color: #888;
    font-size: 0.9rem;
}

.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 1.5rem;
}

.owl-carousel .owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition);
}

.owl-carousel .owl-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

/* ==========================================
   CTA Section
   ========================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0;
}

.cta-section h2 {
    color: white;
    font-weight: 700;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    padding: 60px 0 20px;
    background: var(--dark-color);
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255,255,255,0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    padding-left: 0;
}

.footer-contact li::before {
    display: none;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
    font-size: 1.1rem;
}

/* ==========================================
   Scroll to Top
   ========================================== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    z-index: 1000;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

.scroll-top.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 991px) {
    .stats-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .carousel,
    .carousel-item {
        height: 70vh;
        min-height: 500px;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .booking-form-wrapper {
        position: relative;
        bottom: 0;
        margin-top: -50px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .trek-card-image {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 1.75rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.bg-light {
    background-color: var(--gray-light) !important;
}

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

/* ==========================================
   Page-Specific Styles
   ========================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 100px 0 60px;
    margin-top: -76px;
    padding-top: 176px;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* About Page */
.about-content {
    background: white;
}

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

.info-box {
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.info-box h5 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Team Section */
.team-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.team-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.team-card h5 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.team-social a {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* FAQ Page */
.accordion-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-button {
    background: white;
    color: var(--dark-color);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-body {
    padding: 1.5rem;
    background: #f8f9fa;
}

/* Contact Page */
.contact-info-box {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info-box h5 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-info-box p {
    margin: 0;
    color: #666;
}

.social-links-contact {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links-contact a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links-contact a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form-box {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form-box h3 {
    color: var(--dark-color);
    font-weight: 700;
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.map-section iframe {
    display: block;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .team-image img {
        width: 120px;
        height: 120px;
    }
}
/* ==========================================
   Trek Listing Pages
   ========================================== */

.filter-section {
    background: #f8f9fa;
}

.trek-card-detail {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trek-card-detail:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.trek-card-detail .trek-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trek-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.trek-features span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Homestays */
.homestay-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.homestay-card:hover {
    transform: translateY(-10px);
}

.homestay-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.homestay-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.rating-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    color: #ffc107;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.homestay-content {
    padding: 1.5rem;
}

.homestay-content .location {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.amenities span {
    font-size: 0.85rem;
    color: #666;
}

.homestay-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Blog */
.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.widget-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffc107;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
}

/* Trek Rating */
.trek-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.trek-rating i {
    color: #ffc107;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ==========================================
   Beautiful Trek Cards - 4 Column Layout
   ========================================== */

.trek-card-detail {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.trek-card-detail:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(42, 139, 203, 0.15);
    border-color: rgba(42, 139, 203, 0.2);
}

/* Card Image - Slightly smaller for 4 columns */
.trek-card-detail .trek-card-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.trek-card-detail .trek-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.trek-card-detail:hover .trek-card-image::before {
    background: linear-gradient(to bottom, rgba(42,139,203,0.2) 0%, rgba(0,0,0,0.5) 100%);
}

/* Badges */
.trek-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    padding: 0.4rem 0.85rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.trek-badge.Easy {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
}

.trek-badge.Moderate {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.trek-badge.Difficult {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white;
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.4rem 0.85rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.7rem;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Card Content - Compact for 4 columns */
.trek-card-detail .trek-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trek-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.85rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
}

/* Meta Info - Stacked for 4 columns */
.trek-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
    color: #666;
}

.trek-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.trek-card-meta i {
    color: var(--primary-color);
    font-size: 0.9rem;
    width: 16px;
}

/* Features - Compact */
.trek-features {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding: 0.85rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--dark-color);
}

.trek-features span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.trek-features i {
    color: var(--primary-color);
    font-size: 0.95rem;
    width: 16px;
}

/* Rating */
.trek-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
    color: #666;
}

.trek-rating i {
    color: #fbbf24;
    font-size: 0.95rem;
}

.trek-rating strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* Card Footer */
.trek-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 2px solid #f1f5f9;
}

.trek-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.trek-price small {
    font-size: 0.7rem;
    font-weight: 400;
    color: #666;
}

/* View Details Button - Smaller for 4 columns */
.trek-card-footer .btn-primary {
    padding: 0.6rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color), #1e88e5);
    border: none;
    box-shadow: 0 4px 12px rgba(42, 139, 203, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.trek-card-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 139, 203, 0.4);
    background: linear-gradient(135deg, #1e88e5, var(--primary-color));
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .trek-card-title {
        font-size: 1.1rem;
    }
    
    .trek-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .trek-card-detail .trek-card-image {
        height: 220px;
    }
    
    .trek-card-title {
        font-size: 1.2rem;
    }
    
    .trek-price {
        font-size: 1.5rem;
    }
    
    .trek-card-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .trek-features {
        flex-direction: row;
        gap: 1rem;
    }
}

/* Loading State */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* ==========================================
   Trek Details Page
   ========================================== */

/* Hero Section */
.trek-hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: -76px;
    padding-top: 76px;
}

.trek-hero-content {
    color: white;
}

.trek-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.trek-breadcrumb a {
    color: white;
    text-decoration: none;
}

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

.trek-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.trek-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 1rem;
}

.trek-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trek-hero-meta i {
    font-size: 1.1rem;
}

/* Sticky Navigation */
.trek-nav-sticky {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 100;
    transition: all 0.3s ease;
}

.trek-nav-sticky.sticky {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.trek-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}

.trek-nav-menu li a {
    display: block;
    padding: 1.25rem 0;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.trek-nav-menu li a:hover,
.trek-nav-menu li a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Detail Sections */
.detail-section {
    scroll-margin-top: 150px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.info-box-detail {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-box-detail:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.info-box-detail i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.info-box-detail:hover i {
    color: white;
}

.info-box-detail h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-box-detail p {
    margin: 0;
    font-weight: 500;
}

/* Highlight List */
.highlight-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.highlight-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
}

.highlight-list i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    font-size: 1.1rem;
}

/* Itinerary Timeline */
.itinerary-timeline {
    position: relative;
    padding-left: 2rem;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #e0e7ff);
}

.itinerary-item {
    position: relative;
    padding-bottom: 2rem;
}

.itinerary-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.itinerary-day {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #1e88e5);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.itinerary-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.itinerary-content p {
    color: #666;
    line-height: 1.7;
}

/* Inclusion/Exclusion Lists */
.inclusion-list {
    list-style: none;
    padding: 0;
}

.inclusion-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.inclusion-list i {
    margin-top: 0.2rem;
    font-size: 1.1rem;
}

.bring-item {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
}

.bring-item i {
    font-size: 0.5rem;
    color: var(--primary-color);
}

/* Photo Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Booking Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 150px;
}

.booking-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.price-tag {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 15px;
    margin-bottom: 2rem;
}

.price-tag .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-tag .per-person {
    font-size: 1rem;
    color: #666;
}

.booking-form h5 {
    color: var(--dark-color);
    font-weight: 700;
}

.booking-form .form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.booking-form .form-control,
.booking-form .form-select {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
}

.booking-form .form-control:focus,
.booking-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(42, 139, 203, 0.15);
}

.contact-info {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
}

.contact-link:hover {
    color: var(--secondary-color);
}

/* Why Book Card */
.why-book-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.why-book-card h6 {
    font-weight: 700;
    color: var(--dark-color);
}

.why-book-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-book-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    border-bottom: 1px solid #f3f4f6;
}

.why-book-list li:last-child {
    border-bottom: none;
}

.why-book-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .trek-hero {
        height: 400px;
    }
    
    .trek-hero h1 {
        font-size: 2rem;
    }
    
    .trek-nav-menu {
        overflow-x: auto;
        white-space: nowrap;
        gap: 1rem;
    }
    
    .trek-nav-sticky.sticky {
        top: 60px;
    }
    
    .highlight-list {
        grid-template-columns: 1fr;
    }
    
    .sticky-sidebar {
        position: relative;
        top: 0;
    }
}

/* Clickable Trek Cards */
.trek-card-link {
    text-decoration: none;
    display: block;
}

.trek-title-link {
    text-decoration: none;
    color: inherit;
}

.trek-title-link:hover .trek-card-title {
    color: var(--primary-color);
}

/* Gallery Lightbox */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1055;
}

.lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Similar Treks - compact cards */
.similar-treks .trek-card-detail {
    height: 100%;
}

.similar-treks .trek-card-image {
    height: 200px !important;
}

.similar-treks h5 {
    font-size: 1.1rem;
    color: var(--dark-color);
}

.similar-treks h5:hover {
    color: var(--primary-color);
}

/* ==========================================
   Section Title - Clean & Professional
   ========================================== */

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
    border-bottom: 3px solid #f1f5f9;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Alternative: Left Border Style */
.section-title-alt {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-color);
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}

/* Remove old underline styles */
.section-title span {
    /* Remove all span styling */
}

.section-title::before {
    /* Remove if present */
    display: none;
}


/* Lightbox Modal improvements */
#lightboxModal .modal-content {
    background: transparent !important;
}

#lightboxModal .modal-body {
    padding: 0;
}

#lightboxModal img {
    max-height: 85vh;
    width: auto;
    margin: 0 auto;
    display: block;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Gallery improvements */
.gallery-item {
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Similar Treks cards */
.similar-treks .trek-card-detail:hover h5 {
    color: var(--primary-color);
}

/* Z-index fix for modal close button */
.z-3 {
    z-index: 3 !important;
}

.blog-card .card-title:hover {
    color: #0066cc !important;
    text-decoration: underline;
}

.blog-card .card-img-top {
    transition: transform 0.3s ease;
}

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

.blog-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.blog-card .card-img-top {
    transition: transform 0.3s ease;
}

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

.pagination .page-link {
    color: #667eea;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    margin: 0 3px;
    border-radius: 8px;
}

.pagination .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
    color: #fff;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

/* Blog Carousel - Match Trek Card Style */
.blog-carousel .trek-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    margin: 10px 0;
}

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

.blog-carousel .trek-image {
    background-size: cover;
    background-position: center;
    height: 250px;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.blog-carousel .trek-content {
    padding: 1.5rem;
    background: white;
}

.blog-carousel .trek-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.blog-carousel .trek-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blog-carousel .trek-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
}

/* Owl Carousel - Remove box & Fix arrows */
.blog-carousel.owl-carousel {
    position: relative;
}

.blog-carousel .owl-stage-outer {
    overflow: visible !important;
    padding: 10px 0;
}

.blog-carousel .owl-item {
    opacity: 1 !important;
}

/* Navigation Arrows - FIXED POSITION */
.blog-carousel .owl-nav {
    position: absolute;
    top: 40%;
    width: 100%;
    left: 0;
    right: 0;
}

.blog-carousel .owl-nav button.owl-prev,
.blog-carousel .owl-nav button.owl-next {
    position: absolute;
    background: var(--primary-color) !important;
    color: white !important;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.blog-carousel .owl-nav button:hover {
    background: var(--primary-dark) !important;
    transform: scale(1.1);
}

.blog-carousel .owl-nav .owl-prev {
    left: -45px;
}

.blog-carousel .owl-nav .owl-next {
    right: -45px;
}

.blog-carousel .owl-nav button i {
    margin: 0;
}

/* Dots */
.blog-carousel .owl-dots {
    margin-top: 30px;
    text-align: center;
}

.blog-carousel .owl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #ddd;
    border-radius: 50%;
    transition: all 0.3s;
}

.blog-carousel .owl-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

.blog-content-area {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content-area h2,
.blog-content-area h3,
.blog-content-area h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.blog-content-area p {
    margin-bottom: 1.5rem;
}

.blog-content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-content-area ul,
.blog-content-area ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.recent-post-item:last-child,
.popular-post-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.related-posts .card {
    transition: all 0.3s ease;
}

.related-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.share-section .btn {
    min-width: 130px;
}

.share-section .btn i {
    font-size: 1rem;
}

.share-section .btn span {
    font-size: 0.95rem;
}