/* CSS Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --safari-color: #e67e22;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --info-color: #1abc9c;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --border-radius: 10px;
    --border-radius-sm: 6px;
    --box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    --box-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-safari: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 76px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

a:hover {
    color: var(--primary-color);
}

.btn {
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
    background: transparent;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 3px solid var(--secondary-color);
}

.navbar.scrolled {
    padding: 0.7rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
}

.brand-name {
    color: #fff;
    background: linear-gradient(to right, #fff, #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 0.9rem;
    color: #bdc3c7;
    font-weight: 300;
}

.navbar-brand i {
    color: #f1c40f;
    margin-right: 10px;
    font-size: 2rem;
}

.nav-link {
    color: #ecf0f1 !important;
    font-weight: 500;
    margin: 0 8px;
    padding: 10px 20px !important;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:before,
.nav-link.active:before {
    width: 80%;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
}

/* Compact Hero Slider - HEIGHT INCREASED TO 70% */
.hero-slider-compact {
    position: relative;
    height: 70vh;
    min-height: 550px;
    overflow: hidden;
    margin-top: -76px;
    padding-top: 76px;
    border-bottom: 5px solid var(--secondary-color);
}

.hero-slides-compact {
    height: 100%;
    width: 100%;
}

.hero-slide-compact {
    position: relative;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex !important;
    align-items: center;
    color: white;
}

.hero-slide-compact:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(52, 152, 219, 0.75) 100%);
}

.hero-slide-compact .container {
    position: relative;
    z-index: 2;
}

.hero-slider-compact .hero-title-compact {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
    background: linear-gradient(to right, #fff, #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slider-compact .hero-subtitle-compact {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 650px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-slider-compact .hero-buttons-compact {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-slider-compact .hero-title-compact .highlight {
    color: #f1c40f;
    position: relative;
    display: inline-block;
}

.hero-slider-compact .hero-title-compact .highlight:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f1c40f;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.slick-current .hero-title-compact .highlight:after {
    transform: scaleX(1);
    transform-origin: left;
    transition-delay: 0.8s;
}

/* Compact Slider Controls */
.slider-controls-compact {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.slider-prev-compact, .slider-next-compact {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.slider-prev-compact:hover, .slider-next-compact:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.slider-prev-compact {
    left: 30px;
}

.slider-next-compact {
    right: 30px;
}

/* Compact Slider Dots */
.slider-dots-compact {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex !important;
    justify-content: center;
    gap: 15px;
    z-index: 10;
    list-style: none;
    margin: 0;
    padding: 0;
}

.slider-dots-compact li {
    margin: 0;
}

.slider-dots-compact button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    font-size: 0;
    line-height: 0;
}

.slider-dots-compact .slick-active button,
.slider-dots-compact button:hover {
    background: white;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Quick Stats Section */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--box-shadow);
    border-top: 5px solid var(--secondary-color);
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background: var(--light-color);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Enhanced Tour Cards */
.tour-card-enhanced {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
    background: white;
    position: relative;
}

.tour-card-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.tour-card-enhanced:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.tour-image-enhanced {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.tour-image-enhanced img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-card-enhanced:hover .tour-image-enhanced img {
    transform: scale(1.1) rotate(2deg);
}

.tour-price-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-safari);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tour-price-badge del {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    margin-right: 5px;
}

.tour-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-dark);
    color: white;
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tour-card-body-enhanced {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 240px);
}

.tour-card-body-enhanced h5 {
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 1.3rem;
    font-weight: 700;
}

.tour-card-body-enhanced p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tour Tags */
.tour-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tour-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tour-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Tag Colors */
.tag-escorted { background: linear-gradient(135deg, #3498db, #2980b9); }
.tag-river-cruise { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.tag-safari { background: linear-gradient(135deg, #e67e22, #d35400); }
.tag-tour-cruise { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.tag-wildlife { background: linear-gradient(135deg, #1abc9c, #16a085); }
.tag-rail-tour { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.tag-gorilla { background: linear-gradient(135deg, #34495e, #2c3e50); }
.tag-cultural { background: linear-gradient(135deg, #f39c12, #e67e22); }
.tag-adventure { background: linear-gradient(135deg, #d35400, #a04000); }
.tag-beach { background: linear-gradient(135deg, #1abc9c, #16a085); }

/* Tour Ratings */
.tour-rating {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--warning-color);
}

.rating-stars {
    color: #ffd700;
    font-size: 1rem;
    margin-right: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.rating-score {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 5px;
    font-size: 1.1rem;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.85rem;
}

.tour-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px dashed #e9ecef;
}

.tour-duration {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.tour-duration i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title .text-muted {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 15px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.services-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(245,247,250,1), rgba(245,247,250,0));
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    padding: 40px 30px 30px;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    position: relative;
}

.why-choose-us:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0));
}

.why-choose-us img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    border: 8px solid white;
    transition: var(--transition);
}

.why-choose-us img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.feature-item {
    display: flex;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
}

.feature-content h5 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* Video CTA Section - FIXED FOR HEADER */
header ~ .video-cta-section {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    position: relative;
    z-index: 1;
    height: 500px;
    margin-bottom: 80px !important;
}

.video-cta-section .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    border-radius: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85), rgba(52, 152, 219, 0.75));
    z-index: -1;
}

.video-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
}

.video-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    background: linear-gradient(to right, #fff, #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-content .lead {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.cta-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    margin: 0 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cta-buttons .btn-primary {
    background: var(--gradient-safari);
    border: none;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
}

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

/* News Cards */
.news-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    margin-bottom: 30px;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-primary);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content {
    padding: 25px;
}

.news-content h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
    font-size: 1.2rem;
    font-weight: 700;
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Gallery Grid - FIXED */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    width: 100%;
}

.gallery-grid .gallery-item {
    width: 100%;
    margin-bottom: 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 25px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-caption {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
}

/* Contact Form */
.form-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    padding: 50px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.form-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.form-control, .form-select {
    border-radius: var(--border-radius-sm);
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    margin-bottom: 25px;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8f9fa;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
    background: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 70px 0 30px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.footer h5 {
    color: white;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 12px;
    font-size: 1.3rem;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

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

.footer-links a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

.copyright a {
    color: var(--secondary-color);
    text-decoration: none;
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
}

/* Page Header */
.page-header {
    background: var(--gradient-dark);
    color: white;
    padding: 70px 0 50px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.page-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23000000" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(to right, #fff, #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    padding: 15px;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    display: inline-flex;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.9);
    transition: var(--transition);
}

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

.breadcrumb-item.active {
    color: #f1c40f;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.news-card, .tour-card-enhanced, .service-card {
    animation: fadeInUp 0.8s ease-out;
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Fix for tours.php page - ADDED STYLES */
.tours-page .page-header {
    margin-bottom: 30px;
}

.tour-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
    background: white;
    position: relative;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.tour-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.tour-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-card:hover .tour-image img {
    transform: scale(1.1) rotate(2deg);
}

.tour-price {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tour-price del {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    margin-right: 5px;
}

.tour-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-dark);
    color: white;
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tour-card .card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 220px);
}

.tour-card .card-title {
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 1.25rem;
    font-weight: 700;
    min-height: 60px;
}

.tour-card .card-text {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tour-meta-small {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.tour-meta-small small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.tour-meta-small i {
    color: var(--secondary-color);
    width: 20px;
}

.tour-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 2px dashed #e9ecef;
}

.featured-safari-tours .tour-card {
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--safari-color), #d35400) border-box;
}

.featured-safari-tours .tour-badge {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.featured-safari-tours .tour-price {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.safari-badge {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
}

.tour-filter-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px auto;
    box-shadow: var(--box-shadow);
    border-top: 5px solid var(--secondary-color);
}

.tour-filter-section .card {
    border: none;
    box-shadow: none;
    background: transparent;
}

.tour-filter-section .form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.tour-filter-section .form-control,
.tour-filter-section .form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    padding: 12px 15px;
    transition: var(--transition);
    background: #f8f9fa;
}

.tour-filter-section .form-control:focus,
.tour-filter-section .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
    background: white;
}

.tours-page .news-card {
    height: 100%;
}

.tours-page .news-card:hover {
    transform: translateY(-5px);
}

.no-tours-found {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    border: 2px dashed var(--secondary-color);
}

.no-tours-found i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

/* UPDATED HERO FIXES - REMOVE WHITE SPACE AND PUSH CONTENT DOWN */
.hero-slider-compact {
    height: 650px !important;
    margin-bottom: 0 !important;
}

.hero-slide-compact {
    height: 650px !important;
    background-size: cover !important;
    background-position: center !important;
    display: flex !important;
    align-items: center !important;
}

.hero-slide-compact .container {
    width: 100% !important;
    margin-top: auto !important;
    padding-bottom: 100px !important;
}

.hero-slider-compact .hero-title-compact {
    margin-bottom: 1.5rem !important;
}

.hero-slider-compact .hero-subtitle-compact {
    margin-bottom: 3rem !important;
}

#featured-tours {
    margin-top: 0 !important;
    padding-top: 3rem !important;
}

.slick-list, .slick-track, .slick-slide, .slick-slide > div {
    height: 100% !important;
}

.hero-slider-compact + section {
    margin-top: 0 !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Selection Styling */
::selection {
    background: rgba(52, 152, 219, 0.3);
    color: var(--primary-color);
}

::-moz-selection {
    background: rgba(52, 152, 219, 0.3);
    color: var(--primary-color);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design - UPDATED FOR 70vh HERO */
@media (max-width: 1200px) {
    .hero-slider-compact .hero-title-compact {
        font-size: 3.2rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    header ~ .video-cta-section {
        height: 450px;
        margin-bottom: 70px !important;
    }
    
    .video-cta-section .video-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .hero-slider-compact {
        height: 60vh;
        min-height: 480px;
    }
    
    .hero-slider-compact .hero-title-compact {
        font-size: 2.6rem;
    }
    
    .hero-slider-compact .hero-subtitle-compact {
        font-size: 1.2rem;
    }
    
    .video-content h2 {
        font-size: 2.8rem;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tour-card .card-title {
        font-size: 1.1rem;
        min-height: 50px;
    }
    
    .tour-image {
        height: 200px;
    }
    
    .tour-card .card-body {
        height: calc(100% - 200px);
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    header ~ .video-cta-section {
        height: 400px;
        margin-bottom: 60px !important;
    }
    
    .video-cta-section .video-content h2 {
        font-size: 2.4rem;
    }
    
    .video-cta-section .video-content .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-slider-compact .hero-title-compact {
        font-size: 2.2rem;
    }
    
    .hero-slider-compact .hero-subtitle-compact {
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .video-content h2 {
        font-size: 2.2rem;
    }
    
    .video-content .lead {
        font-size: 1.1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .cta-buttons .btn.me-3 {
        margin-right: 0 !important;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .form-container {
        padding: 30px;
    }
    
    .slider-prev-compact, .slider-next-compact {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .slider-prev-compact {
        left: 20px;
    }
    
    .slider-next-compact {
        right: 20px;
    }
    
    .tour-filter-section {
        padding: 20px;
        margin: 20px auto;
    }
    
    .tour-image {
        height: 180px;
    }
    
    .tour-card .card-body {
        height: calc(100% - 180px);
        padding: 15px;
    }
    
    .tour-card .card-title {
        font-size: 1rem;
        min-height: 45px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .gallery-overlay {
        padding: 15px;
    }
    
    .gallery-caption {
        font-size: 1rem;
    }
    
    header ~ .video-cta-section {
        height: 350px;
        margin-bottom: 50px !important;
    }
    
    .video-cta-section .video-content h2 {
        font-size: 2rem;
    }
    
    .video-cta-section .video-content .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .video-cta-section .video-content {
        padding: 30px 15px;
    }
    
    .cta-buttons .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-slider-compact {
        height: 45vh;
        min-height: 350px;
    }
    
    .hero-slider-compact .hero-title-compact {
        font-size: 1.8rem;
    }
    
    .hero-slider-compact .hero-subtitle-compact {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .video-cta-section {
        margin: 40px 10px;
        padding: 80px 20px;
    }
    
    .video-content h2 {
        font-size: 1.8rem;
    }
    
    .video-content .lead {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 50px 0 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .tour-image {
        height: 160px;
    }
    
    .tour-card .card-body {
        height: calc(100% - 160px);
    }
    
    .tour-price, .tour-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item {
        height: 200px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    header ~ .video-cta-section {
        height: 300px;
        margin-bottom: 40px !important;
    }
    
    .video-cta-section .video-content h2 {
        font-size: 1.8rem;
    }
    
    .video-cta-section .video-content .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .video-cta-section .video-content {
        padding: 20px 10px;
    }
    
    .cta-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-bottom: 10px;
        display: block;
        width: 100%;
    }
    
    .cta-buttons .btn.me-3 {
        margin-right: 0 !important;
    }
}
/* Travel News Styles */
.news-card-detailed {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
}

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

.news-image-detailed {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-image-detailed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.news-meta {
    font-size: 14px;
    color: #666;
}

.news-title-detailed a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title-detailed a:hover {
    color: var(--primary);
}

.subscribe-form .input-group {
    max-width: 500px;
}

.tips-card {
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.tips-icon {
    color: var(--primary);
}

/* Gallery Styles */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
}

.gallery-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
}

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

.gallery-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image-wrapper img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

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

.gallery-info {
    color: white;
    width: 100%;
}

.gallery-info h5 {
    font-size: 18px;
    margin-bottom: 5px;
}

.gallery-view {
    color: white;
    text-decoration: none;
    background: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.gallery-likes {
    color: white;
    font-size: 14px;
}

.gallery-likes i {
    color: #ff4757;
}

.upload-area {
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary);
}

.photographer-card {
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.photographer-image img {
    border: 3px solid var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-filter {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
}
/* Alternative: Crop and center the logo */
.navbar-logo-img {
    height: 40px;
    width: 150px; /* Fixed width */
    object-fit: cover; /* Crop instead of contain */
    object-position: center; /* Center the crop */
}
/* Tour Inquiry Form Styles */
.tour-inquiry-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.tour-inquiry-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
}

.inquiry-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.inquiry-error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.tour-inquiry-card .form-control:focus,
.tour-inquiry-card .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.tour-inquiry-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
}

.tour-inquiry-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tour-inquiry-card .card-body {
        padding: 20px;
    }
    
    .tour-inquiry-card .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}