/* Custom CSS for Travel News and Gallery Pages */

/* Travel News Page Styles */
.page-hero {
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    z-index: 1;
}

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

.news-card-detailed {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

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

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

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

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary, #0d6efd);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content-detailed {
    padding: 1.5rem;
}

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

.news-meta i {
    margin-right: 5px;
}

.news-title-detailed {
    margin-bottom: 1rem;
}

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

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

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-actions a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-actions a:hover {
    color: var(--primary, #0d6efd) !important;
}

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

.tips-card {
    padding: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
}

.tips-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tips-icon {
    color: var(--primary, #0d6efd);
    margin-bottom: 1rem;
}

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

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

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

.gallery-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.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.05);
}

.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;
    color: white;
}

.gallery-view {
    color: white;
    text-decoration: none;
    background: var(--primary, #0d6efd);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
    transition: background 0.3s ease;
}

.gallery-view:hover {
    background: #0b5ed7;
    color: white;
}

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

.gallery-likes i {
    color: #ff4757;
    margin-right: 5px;
}

.gallery-caption {
    padding: 1rem;
}

.upload-form {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary, #0d6efd);
}

.photographer-card {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.photographer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.photographer-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--primary, #0d6efd);
    padding: 3px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gallery-filter {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }
    
    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .news-image-detailed,
    .gallery-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .page-hero .display-4 {
        font-size: 2rem;
    }
    
    .page-hero .lead {
        font-size: 1rem;
    }
    
    .news-content-detailed {
        padding: 1rem;
    }
    
    .gallery-caption {
        padding: 0.75rem;
    }
}

/* Animation for gallery filter */
.gallery-item {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom button styles */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Form styles */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Section spacing */
section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Lightbox modal styles */
#galleryModal .modal-content {
    border-radius: 10px;
    overflow: hidden;
}

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

#modalImage {
    max-height: 70vh;
    width: auto;
    margin: 0 auto;
}

/* Pagination styles */
.pagination .page-link {
    color: var(--primary, #0d6efd);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary, #0d6efd);
    border-color: var(--primary, #0d6efd);
}

/* =============================================
   VIDEO SECTION FIX - RESTORE ORIGINAL POSITION
   ============================================= */

/* Reset video section to original positioning */
.video-cta-section {
    position: relative;
    overflow: hidden;
    height: auto !important; /* Reset any height constraints */
    min-height: 600px; /* Set a minimum height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000; /* Fallback background */
}

/* Video background should fill the container */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video overlay for better text visibility */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* Center content vertically and horizontally */
.video-content {
    position: relative;
    z-index: 1;
    padding: 80px 0; /* Add vertical padding */
}

/* Ensure featured tours start below video */
#featured-tours {
    position: relative;
    background: white;
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: 0;
}

/* Make sure there's no negative margin pulling it up */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* =============================================
   NEWS DETAIL PAGE STYLES
   ============================================= */

.article-hero {
    background-size: cover;
    background-position: center;
    position: relative;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5));
}

.article-hero .container {
    position: relative;
    z-index: 1;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

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

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

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary, #0d6efd);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.article-content blockquote footer {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #777;
}

.article-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-meta i {
    margin-right: 5px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: var(--primary, #0d6efd);
}

.comments-section .comment {
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.comments-section .comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.add-comment {
    padding-top: 2rem;
    margin-top: 2rem;
}

.article-navigation {
    gap: 1rem;
}

.article-navigation a {
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    background: white;
}

.article-navigation a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: var(--primary, #0d6efd);
    color: white;
    border-color: var(--primary, #0d6efd);
}

.article-tags .btn {
    transition: all 0.3s ease;
}

.article-tags .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.share-article .btn {
    transition: all 0.3s ease;
}

.share-article .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .article-hero {
        padding: 80px 0 30px;
        min-height: 50vh;
    }
    
    .article-hero h1 {
        font-size: 2rem;
    }
    
    .article-navigation {
        flex-direction: column;
    }
    
    .article-navigation a {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .article-navigation > div:empty {
        display: none;
    }
    
    .share-article .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .share-article .btn {
        width: 100%;
    }
    
    .article-content img {
        max-width: 100%;
        height: auto;
    }
}

/* Print styles for articles */
@media print {
    .article-hero {
        color: black !important;
        background: none !important;
    }
    
    .article-hero::before {
        display: none;
    }
    
    .navbar, .footer, .comments-section, .share-article, .article-navigation {
        display: none !important;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.6;
    }
}
/* 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;
    }
}