/* Pakej Umrah Frontend Styles */

/* Grid Layouts */
.pakej-umrah-grid,
.pakej-umrah-featured-grid,
.special-pakej-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.pakej-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Package Card */
.pakej-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.pakej-card-featured {
    border: 2px solid #ffd700;
}

/* Card Image */
.pakej-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.pakej-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.pakej-card-image a {
    display: block;
    height: 100%;
}

/* Badges */
.pakej-badge {
    position: absolute;
    top: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.pakej-badge-featured {
    left: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.pakej-badge-discount {
    right: 15px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

/* Card Content */
.pakej-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pakej-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pakej-category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.pakej-card-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.pakej-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pakej-card-title a:hover {
    color: #667eea;
}

.pakej-card-excerpt {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Card Meta */
.pakej-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pakej-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.pakej-icon {
    font-size: 16px;
}

/* Tempoh Tags */
.pakej-tempoh-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.pakej-tempoh-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Card Footer */
.pakej-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pakej-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pakej-price-original {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.pakej-price-current {
    font-size: 22px;
    font-weight: 700;
    color: #2e7d32;
}

.pakej-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.pakej-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* Special Pakej Card */
.special-pakej-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: #fff;
}

.special-pakej-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.special-pakej-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.special-pakej-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.special-pakej-card:hover .special-pakej-card-image img {
    transform: scale(1.05);
}

.special-pakej-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.special-pakej-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.special-pakej-card-content {
    padding: 20px;
}

.special-pakej-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.special-pakej-type-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.special-pakej-card-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.special-pakej-card-title a {
    color: #fff;
    text-decoration: none;
}

.special-pakej-celebrity {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.celebrity-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
}

.celebrity-name {
    font-size: 18px;
    font-weight: 700;
}

.special-pakej-card-excerpt {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

.special-pakej-type-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.special-pakej-card-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pakej-button-special {
    background: #fff;
    color: #667eea;
    width: 100%;
    text-align: center;
}

.pakej-button-special:hover {
    background: #f8f9fa;
    color: #667eea;
}

/* Category Card */
.pakej-category-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.pakej-category-card a {
    text-decoration: none;
    color: #2c3e50;
}

.pakej-category-card h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
}

.pakej-category-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* No Results */
.no-pakej {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

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

    .pakej-umrah-grid,
    .pakej-umrah-featured-grid,
    .special-pakej-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pakej-categories-grid {
        grid-template-columns: 1fr;
    }

    .pakej-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .pakej-button {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    .pakej-umrah-grid,
    .pakej-umrah-featured-grid,
    .special-pakej-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pakej-card,
.special-pakej-card,
.pakej-category-card {
    animation: fadeInUp 0.5s ease forwards;
}

.pakej-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pakej-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pakej-card:nth-child(3) {
    animation-delay: 0.3s;
}

.pakej-card:nth-child(4) {
    animation-delay: 0.4s;
}

.pakej-card:nth-child(5) {
    animation-delay: 0.5s;
}

.pakej-card:nth-child(6) {
    animation-delay: 0.6s;
}