/* Custom Font Styles */
body {
    font-family: 'Montserrat', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, 
.title_primary, 
.shortcode_title .title_primary {
    font-family: 'Cinzel', serif !important;
}

/* Ensure headings have a more consistent weight and style */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-icons a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.7;
}

.social-icons .fa-facebook:hover {
    color: #3b5998;
}

.social-icons .fa-instagram:hover {
    color: #e1306c;
}

.social-icons .fa-whatsapp:hover {
    color: #25d366;
}

/* Safari Packages Section Styling */
.safari-packages-section {
    background: linear-gradient(135deg, rgba(255,179,0,0.1) 0%, rgba(255,255,255,0.1) 100%);
    border-top: 3px solid #ffb300;
    border-bottom: 3px solid #ffb300;
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #666;
    font-weight: 300;
}

.package-filter-menu {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.package-filter-menu .btn-group {
    background-color: rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.package-filter-menu .btn {
    margin: 0 5px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.package-filter-menu .btn.active {
    background-color: #ffb300;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.package-filter-menu .btn:not(.active) {
    background-color: transparent;
    color: #333;
    border: 2px solid transparent;
}

.package-filter-menu .btn:not(.active):hover {
    border-color: #ffb300;
    color: #ffb300;
}

.package-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: flex-start;
    width: 100%;
}

.package-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
    opacity: 1;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    padding: 0;
    margin-left: 15px;
    margin-right: 15px;
    flex: 0 0 calc(100% - 30px);
    max-width: calc(100% - 30px);
    position: relative;
}

.package-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 10;
}

.package-item .post_images {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.package-item:hover .post_images img {
    transform: scale(1.15);
}

.package-item .post_images::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.8) 100%);
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.package-item:hover .post_images::before {
    opacity: 0.95;
    background: linear-gradient(to bottom, 
        rgba(255,179,0,0.2) 0%,
        rgba(0,0,0,0.6) 100%);
}

.package-item .price {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ffb300;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-item:hover .price {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 16px rgba(255,179,0,0.4);
    background-color: #ff9800;
}

.package-item .wrapper_content {
    padding: 25px 25px;
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease;
}

.package-item:hover .wrapper_content {
    transform: translateY(-5px);
}

.package-item .wrapper_content h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.package-item .wrapper_content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50px;
    height: 2px;
    background-color: #ffb300;
    transition: transform 0.4s ease;
}

.package-item:hover .wrapper_content h4 {
    color: #ffb300;
    transform: translateY(-5px);
}

.package-item:hover .wrapper_content h4::after {
    transform: translateX(-50%) scaleX(1);
}

.package-item .wrapper_content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

.package-item .read_more {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background-color: #f9f9f9;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.package-item:hover .read_more {
    background-color: #f0f0f0;
}

.package-item .read_more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,179,0,0.1), rgba(255,179,0,0));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.package-item:hover .read_more::before {
    transform: translateX(0);
}

.package-item .read_more .read_more_button {
    background-color: #ffb300;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-decoration: none;
    font-size: 15px;
    width: 90%;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(255,179,0,0.3);
    position: relative;
    overflow: hidden;
}

.package-item .read_more .read_more_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.package-item .read_more .read_more_button:hover {
    background-color: #ff9800;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(255,179,0,0.4);
    width: 90%;
    max-width: 280px;
}

.package-item .read_more .read_more_button:hover::before {
    transform: translateX(100%) rotate(45deg);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .package-item .wrapper_content {
        min-height: 240px;
    }
    
    .package-item .read_more .read_more_button {
        font-size: 14px;
        padding: 14px 28px;
    }
}

@media (max-width: 991px) {
    .package-item {
        margin-bottom: 30px;
    }
    
    .package-item .post_images {
        height: 220px;
    }
    
    .package-item .wrapper_content {
        min-height: 200px;
    }
}

@media (max-width: 767px) {
    .safari-packages-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .package-filter-menu {
        margin-bottom: 40px;
    }
    
    .package-filter-menu .btn {
        margin: 5px;
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .package-item .post_images {
        height: 200px;
    }
    
    .package-item .wrapper_content {
        min-height: 180px;
        padding: 20px;
    }
    
    .package-item .wrapper_content h4 {
        font-size: 18px;
    }
    
    .package-item .read_more {
        padding: 20px;
    }
    
    .package-item .read_more .read_more_button {
        padding: 12px 24px;
        width: 100%;
        font-size: 13px;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .safari-packages-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .package-filter-menu .btn-group {
        flex-direction: column;
        background-color: transparent;
        box-shadow: none;
        width: 100%;
        padding: 0;
    }
    
    .package-filter-menu .btn {
        margin: 5px 0;
        width: 100%;
    }
    
    .package-item .post_images {
        height: 180px;
    }
}

@media (min-width: 768px) {
    .package-item {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (min-width: 992px) {
    .package-item {
        flex: 0 0 calc(33.333% - 30px);
        max-width: calc(33.333% - 30px);
    }
}

/* Gallery Section Styling */
.gallery-section {
    background-color: #f9f9f9;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.gallery-item-wrap {
    position: relative;
    overflow: hidden;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.8));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-title {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #fff;
}

.gallery-caption {
    font-size: 0.9em;
    margin-bottom: 15px;
    color: #ddd;
}

.gallery-overlay .btn-primary {
    background-color: #ffb300;
    border-color: #ffb300;
    color: #fff;
    transition: all 0.3s ease;
}

.gallery-overlay .btn-primary:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .package-filter-menu .btn {
        margin: 5px;
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        flex-basis: calc(50% - 20px);
    }
    
    .gallery-item-wrap img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        flex-basis: 100%;
    }
    
    .gallery-item-wrap img {
        height: 200px;
    }
}

/* Tours page styling */
.wrapper-tours-slider {
    margin: 0 -15px;
}

.tours.products {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.item-tour {
    padding: 0 15px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .item-tour {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .item-tour {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

.item-tour .item_border {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background-color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.item-tour:hover .item_border {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.item-tour .post_images {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.item-tour .post_images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.item-tour .post_images::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8));
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.item-tour .wrapper_content {
    padding: 25px 25px;
    flex-grow: 1;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.item-tour .wrapper_content .post_title {
    text-align: center;
    margin-bottom: 15px;
}

.item-tour .wrapper_content .post_title h4 {
    margin-top: 0;
    margin-bottom: 5px;
}

.item-tour .wrapper_content .post_title h4 a {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    transition: color 0.3s ease;
    text-decoration: none;
}

.item-tour:hover .wrapper_content .post_title h4 a {
    color: #ffb300;
}

.item-tour .wrapper_content .post_date {
    display: block;
    text-align: center;
    font-weight: 600;
    color: #ffb300;
    margin-bottom: 15px;
}

.item-tour .wrapper_content .description {
    flex-grow: 1;
}

.item-tour .wrapper_content .description p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.item-tour .read_more {
    padding: 25px;
    background-color: #f9f9f9;
    text-align: center;
    transition: background-color 0.3s ease;
}

.item-tour:hover .read_more {
    background-color: #f0f0f0;
}

.item-tour .read_more .button {
    background-color: #ffb300;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    font-size: 15px;
    width: 90%;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(255, 179, 0, 0.3);
}

.item-tour .read_more .button:hover {
    background-color: #333;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 280px;
}

.item-tour .price {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ffb300;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.item-tour:hover .price {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .item-tour .wrapper_content {
        min-height: 240px;
    }
}

@media (max-width: 991px) {
    .item-tour .post_images {
        height: 220px;
    }
    
    .item-tour .wrapper_content {
        min-height: 200px;
    }
}

@media (max-width: 767px) {
    .item-tour .post_images {
        height: 200px;
    }
    
    .item-tour .wrapper_content {
        min-height: 180px;
        padding: 20px;
    }
    
    .item-tour .wrapper_content .post_title h4 a {
        font-size: 18px;
    }
    
    .item-tour .read_more {
        padding: 20px;
    }
    
    .item-tour .read_more .button {
        padding: 12px 24px;
        width: 100%;
        font-size: 13px;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .item-tour {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .item-tour .post_images {
        height: 180px;
    }
}

/* Navigation and Dropdown Menu Styles */
.navbar-nav > li {
    position: relative;
}

.navbar-nav > li > a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 15px;
    transition: color 0.3s ease;
}

.navbar-nav > li > a:hover {
    color: #ffb300;
}

/* Dropdown Menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #1a1a1a !important; /* Solid dark background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 4px;
    border-top: 3px solid #ffb300;
    padding: 10px 0;
    z-index: 1000;
}

.navbar-nav > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    display: block;
    padding: 0;
    position: relative;
    background: transparent !important;
}

.sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: 0.5px;
    background: transparent !important;
}

.sub-menu li a:hover {
    color: #ffb300 !important;
    background: rgba(255, 179, 0, 0.15) !important;
    padding-left: 25px;
}

/* Nested Dropdowns */
.sub-menu .sub-menu {
    left: 100%;
    top: -13px;
    background: #1a1a1a !important;
}

.sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Active State */
.navbar-nav > li.current-menu-item > a,
.navbar-nav > li.current-menu-parent > a,
.sub-menu li.current-menu-item > a {
    color: #ffb300 !important;
}

/* Mobile Menu Adjustments */
@media (max-width: 991px) {
    .sub-menu {
        position: static;
        background: rgba(0, 0, 0, 0.5) !important;
        box-shadow: none;
        border-top: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 15px;
    }

    .sub-menu li a {
        color: #fff !important;
        padding: 10px 15px;
        font-size: 14px;
        opacity: 0.9;
    }

    .sub-menu li a:hover {
        background: transparent !important;
        color: #ffb300 !important;
        opacity: 1;
    }
}
