:root {
    --primary-color: #4f8ae1;
    --secondary-color: #e58820;
    --accent-color: #f6dc5f;
    --dark-color: #2c3e50;
    --light-bg: #f8f9fa;
    --success-color: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Promotional Bar */
.promotional-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 0;
    font-size: 14px;
    overflow: hidden;
    position: relative;
}

.promotional-text {
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Header Styles */
.main-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 600;
    padding: 15px 20px !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateX(5px);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #3a7bd5);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 138, 225, 0.3);
    background: linear-gradient(135deg, #3a7bd5, var(--primary-color));
}

.btn-warning {
    background: linear-gradient(135deg, var(--secondary-color), #d47a1b);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 136, 32, 0.3);
    background: linear-gradient(135deg, #d47a1b, var(--secondary-color));
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #218838);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

/* Hero Slider */
.hero-slider {
    margin-top: 0;
}

.slider-content {
    background-size: cover !important;
    background-position: center !important;
    height: 70vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

/* Features Section */
.features-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.feature-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #3a7bd5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

/* NEW: Tour Cards Section - Exactly as requested */
.tour-cards-section {
    padding: 80px 0;
    background: white;
}

.tour-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    margin-bottom: 30px;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tour-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tour-card:hover .tour-image img {
    transform: scale(1.1);
}

.duration-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tour-content {
    padding: 25px;
}

.tour-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.tour-itinerary {
    margin-bottom: 15px;
}

.itinerary-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.itinerary-item i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 0.8rem;
}

.tour-features-horizontal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-item {
    text-align: center;
    flex: 1;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.feature-item span {
    display: block;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.tour-inclusions-horizontal {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 10px 0;
}

.inclusion-item {
    text-align: center;
}

.inclusion-item i {
    color: var(--success-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.inclusion-item span {
    display: block;
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.tour-pricing {
    flex: 1;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.discounted-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.price-note {
    font-size: 0.7rem;
    color: #999;
    display: block;
}

.tour-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.tour-actions .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 20px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Swiper Slider */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }

    .tour-features-horizontal,
    .tour-inclusions-horizontal {
        flex-wrap: wrap;
        gap: 10px;
    }

    .feature-item,
    .inclusion-item {
        flex: 0 0 calc(50% - 10px);
    }

    .tour-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .tour-actions {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .slider-content {
        height: 50vh;
    }

    .slider-content h1 {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .promotional-bar {
        font-size: 12px;
    }

    .btn-primary,
    .btn-warning {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .tour-card {
        margin-bottom: 20px;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Swiper Slider Fixes */
.main-slider {
    width: 100%;
    height: 70vh;
}

.swiper-slide {
    width: 100%;
    height: 100%;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Fade effect for smooth transitions */
.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}

.swiper-fade .swiper-slide .swiper-slide {
    pointer-events: none;
}

.swiper-fade .swiper-slide-active,
.swiper-fade .swiper-slide-active .swiper-slide-active {
    pointer-events: auto;
}

/* Fix card spacing issues */
.tour-cards-section .row {
    margin-top: -15px;
    margin-bottom: -15px;
}

.tour-cards-section .row>[class*='col-'] {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Ensure consistent card height and spacing */
.tour-card {
    margin-bottom: 0;
    height: 100%;
    transition: all 0.3s ease;
}

/* Fix for specific sections */
.featured-tours .row,
.domestic-tours .row,
.international-tours .row {
    margin: -10px;
}

.featured-tours .row>[class*='col-'],
.domestic-tours .row>[class*='col-'],
.international-tours .row>[class*='col-'] {
    padding: 10px;
}

/* Additional spacing for better visual separation */
.section-spacing {
    padding: 30px 0;
}

.card {
    border-radius: 12px;
    overflow: hidden;
}

/* Simple fix for card spacing */
.tour-card {
    margin-bottom: 30px !important;
}

/* Ensure consistent spacing in all sections */
.featured-tours .col-lg-4,
.domestic-tours .col-lg-4,
.international-tours .col-lg-4 {
    margin-bottom: 30px;
}

/* Fix for Bootstrap grid spacing */
.row.g-4 {
    margin: 0 -15px;
}

.row.g-4>[class*='col-'] {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* Improved Tour Card Buttons */
.tour-card .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.8rem;
    padding: 8px 12px;
}

.tour-card .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #3a7bd5);
    box-shadow: 0 2px 8px rgba(79, 138, 225, 0.3);
}

.tour-card .btn-primary:hover {
    background: linear-gradient(135deg, #3a7bd5, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 138, 225, 0.4);
}

.tour-card .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.tour-card .btn-success:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Button icons */
.tour-card .btn i {
    font-size: 0.7rem;
}

/* Card footer spacing */
.tour-card .card-footer {
    padding: 1rem 1.25rem 1.25rem;
}

/* Footer Bottom Styling */
.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
}

/* Footer bottom spacing */
.bg-dark .container {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Footer Text Visibility Fix */
.bg-dark .text-light {
    color: #f8f9fa !important;
}

.bg-dark .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bg-dark a.text-white-50:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Hover effect for footer links */
.hover-text-white:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Footer bottom specific styling */
.footer-links a {
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    transform: translateY(-1px);
}

/* Clickable Tour Images */
.tour-image {
    position: relative;
    overflow: hidden;
}

.tour-image a {
    display: block;
    transition: all 0.3s ease;
}

.tour-image a:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.tour-image img {
    transition: transform 0.3s ease;
}

.tour-image:hover img {
    transform: scale(1.05);
}

/* Make sure badges stay above the clickable area */
.tour-image .position-absolute {
    z-index: 2;
}

/* Optional: Add a hover overlay effect */
.tour-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.tour-image:hover::after {
    opacity: 1;
}