/* ========================================
   LOAD MORE BUTTON STYLES
   ======================================== */

   .hidden-item {
    display: none !important;
}

.load-more-btn {
    background: transparent;
    border: none;
    color: var(--primary-color1, #ff7757);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.load-more-btn:hover {
    color: var(--primary-color2, #ff5533);
}

.checkbox-container .load-more-btn,
.tour-type-container .load-more-btn {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* ========================================
   FIXED CARD SIZES - ALL PAGES
   ======================================== */

.package-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    max-height: 420px;
}

/* Fixed Image Container - Don't touch images */
.package-card .package-img-wrap {
    position: relative;
    flex-shrink: 0;
}

.blog-card .blog-img {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card .blog-img a {
    display: block;
    height: 100%;
    width: 100%;
}

.blog-card .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fixed Content Area */
.package-card .package-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.blog-card .blog-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    min-height: 220px;
    max-height: 220px;
    overflow: hidden;
}

/* Fixed Title Height */
.package-card .package-content h5 {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 15px;
    min-height: 45px;
    max-height: 45px;
    overflow: hidden;
}

.package-card .package-content h5 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    font-size: 15px;
    word-wrap: break-word;
    word-break: break-word;
}

.blog-card .blog-content h4 {
    min-height: 45px;
    max-height: 45px;
    overflow: hidden;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 15px;
}

.blog-card .blog-content h4 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    font-size: 15px;
    word-wrap: break-word;
    word-break: break-word;
}

/* Fixed Location/Meta Area */
.package-card .location-and-time {
    min-height: 24px;
    max-height: 24px;
    overflow: hidden;
    margin-bottom: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.package-card .location-and-time .location,
.package-card .location-and-time span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
}

.blog-card .blog-meta {
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Fixed Description/Info Area */
.package-card .package-info {
    min-height: 44px;
    max-height: 44px;
    overflow: hidden;
    margin-bottom: 12px;
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.package-card .package-info li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.package-card .package-info li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-card .blog-content p {
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Fixed Button Area */
.package-card .btn-and-price-area {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.package-card .btn-and-price-area .primary-btn1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.package-card .btn-and-price-area .price-area {
    flex-shrink: 0;
    text-align: right;
}

.blog-card .blog-content .read-more {
    margin-top: auto;
    padding-top: 12px;
}

/* Blog Specific Adjustments */
.blog-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.blog-card .blog-content {
    background: #fff;
}

.blog-card .blog-content h4 {
    margin-bottom: 10px;
}

.blog-card .blog-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

.blog-card .blog-content h4 a:hover {
    color: #ff7757;
}

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ff7757;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.blog-card .read-more:hover {
    color: #ff5533;
}

/* Ensure all card rows have equal height */
.package-grid-section .row.gy-md-5.gy-4 {
    display: flex;
    flex-wrap: wrap;
}

.package-grid-section .row.gy-md-5.gy-4>[class*='col-'] {
    display: flex;
    flex-direction: column;
}

/* Additional text overflow protection */
.package-card h5,
.package-card h5 a,
.package-card .location-and-time,
.package-card .package-info li {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Responsive Adjustments */
@media (max-width: 991px) {

    .package-card,
    .blog-card {
        /* min-height: 400px; */
        /* max-height: 400px; */
    }

    .package-card .package-img-wrap,
    .blog-card .blog-img {
        /* height: 180px; */
        /* min-height: 180px; */
        /* max-height: 180px; */
    }

    .package-card .package-content,
    .blog-card .blog-content {
        /* min-height: 220px; */
        /* max-height: 220px; */
    }
}

@media (max-width: 767px) {

    .package-card,
    .blog-card {
        /* min-height: 408px; */
        /* max-height: 408px; */
    }

    .package-card .package-img-wrap,
    .blog-card .blog-img {
        /* height: 171px; */
        /* min-height: 160px; */
        /* max-height: 160px; */
    }

    .package-card .package-content,
    .blog-card .blog-content {
        /* min-height: 220px; */
        /* max-height: 220px; */
        padding: 15px;
    }

    .package-card .package-content h5,
    .blog-card .blog-content h4 {
        font-size: 15px;
    }
}

/* ========================================
   BLOG TYPE FILTERS
   ======================================== */

.blog-type-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
}

.blog-type-filters .filter-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog-type-filters .filter-btn:hover,
.blog-type-filters .filter-btn.active {
    background: #ff7757;
    border-color: #ff7757;
    color: #fff;
}

/* ========================================
   DETAIL BUTTON STYLE - MATCHING HOMEPAGE
   ======================================== */

.package-card .detail-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color1, #7743e6); /* Fallback to purple if var not set */
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.package-card .detail-btn:hover {
    background: var(--primary-color4, #5a2fb5); /* Darker purple */
    color: #fff;
    transform: translateY(-2px);
}

/* ========================================
   PRIMARY BUTTON OVERRIDE IN CARDS
   ======================================== */

/* Override primary-btn1 animation inside package cards for simpler hover */
.package-card .primary-btn1::after {
    display: none !important;
}

.package-card .primary-btn1::before {
    display: none !important;
}

.package-card .primary-btn1 > span {
    transform: none !important;
    opacity: 1 !important;
    position: static !important;
}

.package-card .primary-btn1 > span:nth-child(2) {
    display: none !important;
}

.package-card .primary-btn1:hover {
    background: var(--primary-color4, #5a2fb5) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.package-card .primary-btn1:hover > span {
    transform: none !important;
    opacity: 1 !important;
}
