:root {
    --bs-brightred:#d80403;
    --bs-black:#000000;
    --bs-white:#fff;
}
/* Custom Accordion Styles for Services, FAQs, and Seasonal Overview */
.custom-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(0deg);
    transition: transform 0.2s ease-in-out;
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

/* Ensure the accordion button has proper styling */
.custom-accordion .accordion-button {
    color: var(--bs-black);
    font-weight: 500;
    padding: 15px 20px;
    border: none;
    box-shadow: none;
}
.custom-accordion .accordion-button::after {
	filter: invert(0) brightness(0);
}
.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--bs-brightred);
}
.custom-accordion .accordion-button:not(.collapsed)::after {
filter: invert(1) brightness(2);
}
.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* Custom Accordion Item Styling */
.custom-accordion .accordion-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: none;
}

.custom-accordion .accordion-body {
    padding: 20px;
    border-top: 1px solid var(--light-bg);
}
.itinerary-item .card .card-header .accordion-button {
    color: var(--bs-black);
    background-color: var(--bs-white);
    border-bottom: 2px solid var(--bs-brightred);
}
.itinerary-item .card .card-header .accordion-button:hover {
    color: var(--bs-brightred);
}
.itinerary-item .card .card-header .accordion-button:not(.collapsed) {
    color: var(--bs-brightred);
    background-color: var(--bs-white);
}
.itinerary-item .card .card-header .accordion-button:not(.collapsed)::after {
    filter: invert(16%) sepia(89%) saturate(6054%) hue-rotate(358deg) brightness(101%) contrast(112%) !important;
}
.itinerary-item .card .card-header .accordion-button::after {
    filter: invert(0) brightness(0) !important;
}
.itinerary-item .card .card-header .accordion-button:hover::after {
filter: invert(16%) sepia(89%) saturate(6054%) hue-rotate(358deg) brightness(101%) contrast(112%) !important;
}
#servicesAccordion .accordion-item .accordion-header  .accordion-button:not(.collapsed) {
    border: none;
}
#servicesAccordion .accordion-item  .accordion-body {
    border: none;
}
#servicesAccordion .accordion-item .accordion-header .accordion-button:not(.collapsed)::after {
    filter: invert(16%) sepia(89%) saturate(6054%) hue-rotate(358deg) brightness(101%) contrast(112%) !important;
}
#servicesAccordion .accordion-item .accordion-header .accordion-button::after {
    filter: invert(0) brightness(0) !important;
}
#servicesAccordion .accordion-item .accordion-header .accordion-button:hover::after {
    filter: invert(16%) sepia(89%) saturate(6054%) hue-rotate(358deg) brightness(101%) contrast(112%) !important;
}
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Main Content Layout */
.main-content {
    position: relative;
}

/* Tab Navigation */
.tab-navigation {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 15px;
    margin-bottom: 30px;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.nav-pills .nav-link {
    color: var(--bs-black);
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    font-size: 16px;
    font-weight: 500;
}

.nav-pills .nav-link i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Tab Content */
.tab-content {
    background-color: var(--bs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 9px;
    margin-bottom: 30px;
    position: relative;
}

.tab-content h2 {
    color: var(--bs-black);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bs-black);
	font-size:24px;
	font-weight: 600;
}
.flex-shrink-0 i {
    color: var(--bs-brightred);
}
/* Accordion */
.accordion .card {
    border: none;
    margin-bottom: 15px;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion .card-header {
    background-color: #3498db;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: var(--border-radius) !important;
    transition: all 0.3s ease;
}

.accordion .card-header.collapsed {
    background-color: #3498db;
}

.accordion .card-header:not(.collapsed) {
    background-color: #e74c3c;
}

.accordion .card-header .title {
    padding: 15px 20px;
    display: block;
    font-weight: 600;
    color: white;
}

.accordion .card-header .accicon {
    float: right;
    padding: 15px 20px;
    color: white;
}

.accordion .card-body {
    padding: 20px;
    border-top: 1px solid var(--light-bg);
}

/* Services Table */
.table-responsive {
    border-radius: var(--border-radius);
}

.table-hover tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.table-hover tbody tr td {
    border: none;
    padding: 12px 15px;
}

.fa-check {
    color: #27ae60;
}

.fa-times {
    color: var(--accent-color);
}

/* Map */
.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Gallery */
.gallery-carousel .carousel-item img {
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
}

/* Author Section */
.author-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.author-section img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* Sidebar */
.blog_right_sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background-color: var(--bs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.widget_title {
    color: var(--bs-black);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bs-brightred);
}

.cat-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    list-style: none;
}

.cat-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cat-list li a {
    color: var(--bs-black);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
	font-weight: 500;
}

.cat-list li a:hover {
    color: var(--bs-brightred);
}

/* Comments */
.comments-area {
    background-color: var(--bs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.comments-area h4 {
    color: var(--bs-black);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bs-brightred);
}

.comment-list {
    margin-bottom: 30px;
}

.comment-list .single-comment {
    margin-bottom: 25px;
}

.comment-list .thumb img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-list .desc {
    margin-left: 20px;
    flex: 1;
}

.comment-list .date {
    color: var(--light-text);
    font-size: 0.9rem;
}

.child-cmnt {
    margin-left: 80px;
}

/* Rating Stars */
.rating-stars {
    color: #f39c12;
    margin-bottom: 5px;
}

/* Booking Form */
.booking-form {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 9px;
    margin-bottom: 30px;
}

.booking-form .form-control {
    border-radius: var(--border-radius);
    padding: 12px 15px;
    /* margin-bottom: 15px; */
    border: 1px solid var(--bs-black);
}
.contactForm .form-group {
    margin-top: 12px;
}
.booking-form .btn-primary {
    border: 1px solid var(--bs-brightred);
    padding: 12px 30px;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s ease;
}

.booking-form .btn-primary:hover {
    background-color: var(--bs-brightred);
}
/* Improve select dropdown styling */
.booking-form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.booking-form select.form-control:focus {
    border-color: var(--bs-brightred);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}
/* Seasonal Overview Table */
.seasonal-overview {
    margin-bottom: 40px;
}

.seasonal-table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.seasonal-table th {
    color: var(--bs-black);
    font-weight: 500;
    text-align: center;
    padding: 15px;
}

.seasonal-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.seasonal-table .recommended-high {
    background-color: rgba(39, 174, 96, 0.1);
}

.seasonal-table .recommended-moderate {
    background-color: rgba(241, 196, 15, 0.1);
}

.seasonal-table .recommended-challenging {
    background-color: rgba(231, 76, 60, 0.1);
}

.recommendation-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.badge-high {
    color: var(--bs-black);
	border: 1px solid var(--bs-brightred)
}

.badge-moderate {
    background-color: var(--bs-black);
    color: var(--bs-white);
}

.badge-challenging {
    background-color: var(--bs-brightred);
    color: var(--bs-white);
}

/* Best Season Details */
.season-details {
    margin-top: 40px;
}
#seasonAccordion .advantages-list li {
    list-style: none;
}
.season-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: none;
}

.season-card .card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 15px 20px;
    border: none;
    position: relative;
}

.season-card .card-header::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.season-card .card-header.collapsed::after {
    transform: translateY(-50%) rotate(-90deg);
}

.season-card .card-body {
    padding: 20px;
}

.season-card .advantages-list {
    margin-top: 15px;
}

.season-card .advantages-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.season-card .advantages-list li i {
    color: #27ae60;
    margin-right: 10px;
    margin-top: 3px;
}

/* Tour Highlights */
.highlight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: rgba(52, 152, 219, 0.05);
}

.highlight-icon {
    border: 1px solid var(--bs-brightred);
    color: var(--bs-black);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.highlight-content h4 {
    margin-bottom: 5px;
    color: var(--bs-black);
}

/* Itinerary Section */
.itinerary-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.itinerary-item .card-header {
    background-color: #3498db;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.itinerary-item .card-header:not(.collapsed) {
    background-color: #e74c3c;
}

.itinerary-item .card-header button {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    border: none;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.itinerary-item .card-body {
    padding: 15px 20px;
    border-top: 1px solid var(--light-bg);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .child-cmnt {
        margin-left: 40px;
    }
    
    .tab-navigation {
        position: relative;
        top: 0;
    }
    
    .seasonal-table {
        font-size: 0.9rem;
    }
    
    .seasonal-table th,
    .seasonal-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 80px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .tab-navigation {
        margin-bottom: 20px;
    }
    
    .nav-pills .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 9px;
    }
    
    .child-cmnt {
        margin-left: 20px;
    }
    
    .seasonal-table {
        font-size: 0.85rem;
    }
    
    .seasonal-table th,
    .seasonal-table td {
        padding: 8px 10px;
    }
    
    .recommendation-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .author-section .media {
        flex-direction: column;
        text-align: center;
    }
    
    .author-section .media-body {
        margin-top: 15px;
    }
    
    .comment-list .single-comment {
        flex-direction: column;
    }
    
    .comment-list .thumb {
        margin-bottom: 15px;
    }
    
    .comment-list .desc {
        margin-left: 0;
    }
    
    .child-cmnt {
        margin-left: 0;
    }
    
    .seasonal-table {
        font-size: 0.8rem;
    }
    
    .seasonal-table th,
    .seasonal-table td {
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .seasonal-table {
        min-width: 450px;
    }
}
/* Mobile Tab Navigation Styles */
.mobile-tab-navigation {
    position: relative;
    background: var(--bs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.mobile-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--bs-brightred) #f1f1f1;
    padding-bottom: 5px;
}

.mobile-tabs::-webkit-scrollbar {
    height: 4px;
}

.mobile-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.mobile-tabs::-webkit-scrollbar-thumb {
    background: var(--bs-brightred);
    border-radius: 10px;
}

.mobile-tabs .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 10px 12px;
    margin: 0 5px;
    border-radius: 8px;
    color: var(--bs-black);
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-tabs .nav-link i {
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
}

.mobile-tabs .nav-link.active {
    background: var(--bs-brightred);
    color: var(--bs-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 4, 3, 0.2);
}

.mobile-tabs .nav-link:hover:not(.active) {
    background: rgba(216, 4, 3, 0.1);
    color: var(--bs-brightred);
}

/* Desktop Tab Navigation */
.tab-navigation {
    background-color: var(--bs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 15px;
    margin-bottom: 30px;
    position: sticky;
    top: 100px;
    z-index: 100;
}

.nav-pills .nav-link {
    color: var(--bs-black);
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

.nav-pills .nav-link i {
    margin-right: 10px;
    font-size: 1.2rem;
    min-width: 24px;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .tab-navigation {
        padding: 12px;
    }
    
    .nav-pills .nav-link {
        padding: 10px 15px;
        font-size: 15px;
    }
    
    .nav-pills .nav-link i {
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    .tab-navigation {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    
    .nav-pills .nav-link {
        padding: 12px 15px;
    }
    
    .mobile-tabs .nav-link {
        min-width: 65px;
        padding: 8px 10px;
    }
}

@media (max-width: 767.98px) {
    .mobile-tabs .nav-link {
        min-width: 60px;
        padding: 8px;
        font-size: 11px;
    }
    
    .mobile-tabs .nav-link i {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .mobile-tab-navigation {
        padding: 8px;
        margin-bottom: 15px;
    }
    
    /* Hide text on very small screens, show only icons */
    @media (max-width: 575.98px) {
        .mobile-tabs .nav-link span {
            display: none;
        }
        
        .mobile-tabs .nav-link {
            min-width: 50px;
            padding: 8px 5px;
        }
        
        .mobile-tabs .nav-link i {
            margin-bottom: 0;
            font-size: 16px;
        }
        
        /* Show tooltip on hover */
        .mobile-tabs .nav-link {
            position: relative;
        }
        
        .mobile-tabs .nav-link:hover::after {
            content: attr(data-title);
            position: absolute;
            bottom: -35px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            white-space: nowrap;
            z-index: 1000;
        }
    }
}

@media (max-width: 375px) {
    .mobile-tabs .nav-link {
        min-width: 45px;
        padding: 6px 3px;
    }
    
    .mobile-tabs .nav-link i {
        font-size: 14px;
    }
}

/* Fix tab content spacing on mobile */
@media (max-width: 991.98px) {
    .tab-content {
        margin-top: 0;
    }
}

/* Animation for tab switch */
.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Active state enhancements */
.nav-pills .nav-link.active i {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
/* Mobile Tab Navigation Styles */
.mobile-tab-navigation {
    position: relative;
    background: var(--bs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.mobile-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--bs-brightred) #f1f1f1;
    padding-bottom: 5px;
}

.mobile-tabs::-webkit-scrollbar {
    height: 4px;
}

.mobile-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.mobile-tabs::-webkit-scrollbar-thumb {
    background: var(--bs-brightred);
    border-radius: 10px;
}

.mobile-tabs .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 10px 12px;
    margin: 0 5px;
    border-radius: 8px;
    color: var(--bs-black);
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-tabs .nav-link i {
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
}

.mobile-tabs .nav-link.active {
    background: var(--bs-brightred);
    color: var(--bs-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 4, 3, 0.2);
}

.mobile-tabs .nav-link:hover:not(.active) {
    background: rgba(216, 4, 3, 0.1);
    color: var(--bs-brightred);
}

/* Desktop Tab Navigation */
.tab-navigation {
    background-color: var(--bs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 15px;
    margin-bottom: 30px;
    position: sticky;
    top: 100px;
    z-index: 100;
}

.nav-pills .nav-link {
    color: var(--bs-black);
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

.nav-pills .nav-link i {
    margin-right: 10px;
    font-size: 1.2rem;
    min-width: 24px;
}



/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .tab-navigation {
        padding: 12px;
    }
    
    .nav-pills .nav-link {
        padding: 10px 15px;
        font-size: 15px;
    }
    
    .nav-pills .nav-link i {
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    .tab-navigation {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    
    .nav-pills .nav-link {
        padding: 12px 15px;
    }
    
    .mobile-tabs .nav-link {
        min-width: 65px;
        padding: 8px 10px;
    }
}

@media (max-width: 767.98px) {
    .mobile-tabs .nav-link {
        min-width: 60px;
        padding: 8px;
        font-size: 11px;
    }
    
    .mobile-tabs .nav-link i {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .mobile-tab-navigation {
        padding: 8px;
        margin-bottom: 15px;
    }
    
    /* Hide text on very small screens, show only icons */
    @media (max-width: 575.98px) {
        .mobile-tabs .nav-link span {
            display: none;
        }
        
        .mobile-tabs .nav-link {
            min-width: 50px;
            padding: 8px 5px;
        }
        
        .mobile-tabs .nav-link i {
            margin-bottom: 0;
            font-size: 16px;
        }
        
        /* Show tooltip on hover */
        .mobile-tabs .nav-link {
            position: relative;
        }
        
        .mobile-tabs .nav-link:hover::after {
            content: attr(data-title);
            position: absolute;
            bottom: -35px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            white-space: nowrap;
            z-index: 1000;
        }
    }
}

@media (max-width: 375px) {
    .mobile-tabs .nav-link {
        min-width: 45px;
        padding: 6px 3px;
    }
    
    .mobile-tabs .nav-link i {
        font-size: 14px;
    }
}

/* Fix tab content spacing on mobile */
@media (max-width: 991.98px) {
    .tab-content {
        margin-top: 0;
    }
}

/* Animation for tab switch */
.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Active state enhancements */
.nav-pills .nav-link.active i {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Scroll indicator for mobile tabs */
.mobile-tab-navigation::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, var(--bs-white));
    pointer-events: none;
}

/* Responsive container adjustment */
@media (max-width: 991.98px) {
    .row.flex-md-nowrap {
        flex-wrap: wrap;
    }
}
/* Sticky Tab Navigation for Mobile/Tablet */
.sticky-tab-navigation {
    position: relative;
    background: var(--bs-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sticky-tab-navigation.sticky-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 0;
    padding: 0 15px;
    z-index: 1050;
}

.sticky-tabs-wrapper {
    overflow: hidden;
    border-radius: inherit;
}

.sticky-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--bs-brightred) #f1f1f1;
    padding: 10px 0;
    background: var(--bs-white);
}

.sticky-tabs::-webkit-scrollbar {
    height: 4px;
}

.sticky-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sticky-tabs::-webkit-scrollbar-thumb {
    background: var(--bs-brightred);
    border-radius: 10px;
}

.sticky-tabs .nav-link {
    flex: 0 0 auto;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 8px;
    color: var(--bs-black);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.sticky-tabs .nav-link:hover {
    color: var(--bs-brightred);
}

.sticky-tabs .nav-link.active {
    background: var(--bs-brightred);
    color: var(--bs-white);
    box-shadow: 0 4px 8px rgba(216, 4, 3, 0.3);
}

/* Hide icons on mobile and tablet */
@media (max-width: 991.98px) {
    .nav-pills .nav-link i {
        display: none !important;
    }
    
    .tab-navigation {
        display: none;
    }
    
    .sticky-tab-navigation {
        display: block;
    }
    
    /* Adjust tab content for sticky tabs */
    .tab-content-container {
        margin-top: 0;
    }
}

/* Desktop styles */
@media (min-width: 992px) {
    .sticky-tab-navigation {
        display: none;
    }
    
    .tab-navigation {
        display: block;
        position: sticky;
        top: 120px;
        background-color: var(--bs-white);
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        padding: 15px;
        z-index: 100;
    }
    
    .nav-pills .nav-link i {
        display: inline-block;
        margin-right: 10px;
        font-size: 1.2rem;
        min-width: 24px;
    }
}

/* Tab Section Styles */
.tab-section {
    padding-top: 20px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
    scroll-margin-top: 120px; /* For smooth scrolling offset */
}

.tab-section:last-of-type {
    border-bottom: none;
}

.tab-section h2 {
    color: var(--bs-black);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bs-brightred);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Active section highlight */
.tab-section:target {
    animation: highlightSection 1.5s ease;
}

@keyframes highlightSection {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(216, 4, 3, 0.05);
    }
    100% {
        background-color: transparent;
    }
}

/* Active nav link indicator */
/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sticky-tabs .nav-link {
        padding: 8px 12px;
        font-size: 13px;
        margin: 0 3px;
    }
    
    .tab-section {
        scroll-margin-top: 80px;
        padding-top: 15px;
        padding-bottom: 30px;
    }
    
    .tab-section h2 {
        font-size: 20px;
    }
}

@media (max-width: 575.98px) {
    .sticky-tabs .nav-link {
        padding: 8px 10px;
        font-size: 12px;
        margin: 0 2px;
    }
    
    .sticky-tab-navigation.sticky-active {
        padding: 0 10px;
    }
}

/* Body padding adjustment for sticky tabs */
@media (max-width: 991.98px) {
    body {
        padding-top: 0;
    }
    
    .sticky-tab-navigation.sticky-active + .tab-content-container {
        padding-top: 60px;
    }
}


/* Animation for tab switch */
.tab-section {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
}

.scroll-indicator ul {
    list-style: none;
    padding: 0;
}

.scroll-indicator li {
    margin: 10px 0;
}

.scroll-indicator a {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.scroll-indicator a.active {
    background: var(--bs-brightred);
    transform: scale(1.3);
}

/* For very small screens, reduce padding */
@media (max-width: 375px) {
    .sticky-tabs .nav-link {
        padding: 6px 8px;
        font-size: 11px;
    }
}
/* Fix for Intersection Observer active state */
.tab-section {
    padding-top: 20px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
    scroll-margin-top: 120px;
    position: relative;
}

.tab-section:last-of-type {
    border-bottom: none;
}

/* Active state for tabs - Important! */
.nav-pills .nav-link.active,
.sticky-tabs .nav-link.active {
    color: var(--bs-brightred) !important;
    background-color: transparent;
}

/* Desktop active indicator */
@media (min-width: 992px) {
    .nav-pills .nav-link.active {
        position: relative;
    }
}

/* Mobile sticky tabs active state */
.sticky-tabs .nav-link.active {
    position: relative;
    z-index: 2;
}

/* Fix for body padding when sticky */
body.sticky-tabs-active {
    padding-top: 60px !important;
}

/* Better scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Active section highlight animation */
@keyframes sectionActive {
    0% { opacity: 1; }
    50% { opacity: 0.9; }
    100% { opacity: 1; }
}

.tab-section:target {
    animation: sectionActive 1s ease;
}

/* Fix for sticky tabs on mobile */
@media (max-width: 991.98px) {
    .sticky-tab-navigation.sticky-active {
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    /* Adjust for sticky header */
    .tab-section {
        scroll-margin-top: 80px;
    }
}

/* Ensure links have proper cursor */
.nav-link {
    cursor: pointer;
}

/* Hover effects */
.nav-pills .nav-link:hover:not(.active) {
    color: var(--bs-brightred) !important;
}

.sticky-tabs .nav-link:hover:not(.active) {
    color: var(--bs-brightred) !important;
}

/* Active tab transition */
.nav-link {
    transition: all 0.3s ease !important;
}

/* Fix for active state z-index */
.nav-pills .nav-link.active,
.sticky-tabs .nav-link.active {
    z-index: 1;
}
.tab-section ul, .tab-section ol {
    padding: revert-layer;
}