/* Appointment Websites Widget Styles */
.appointment-websites-widget {
    width: 100%;
}

.appointment-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

/* Grid View */
.appointment-container.elementor-view-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* List View */
.appointment-container.elementor-view-list {
    flex-direction: column;
}

.appointment-container.elementor-view-list .appointment-item {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: right;
}

.appointment-container.elementor-view-list .appointment-image {
    margin-left: 20px;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Item Styles */
.appointment-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 30px 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

/* Hover Effect */
.appointment-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.appointment-item:hover::before {
    opacity: 1;
}

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

/* Image Styles */
.appointment-image {
    margin-bottom: 20px;
    transition: all 0.3s ease;
    line-height: 0;
}

.appointment-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.appointment-item:hover .appointment-image img {
    transform: scale(1.05);
}

/* Title Styles */
.appointment-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .appointment-container.elementor-grid-columns-4,
    .appointment-container.elementor-grid-columns-5,
    .appointment-container.elementor-grid-columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .appointment-container.elementor-grid-columns-3,
    .appointment-container.elementor-grid-columns-4,
    .appointment-container.elementor-grid-columns-5,
    .appointment-container.elementor-grid-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .appointment-container.elementor-view-list .appointment-item {
        flex-direction: column;
        text-align: center;
    }
    
    .appointment-container.elementor-view-list .appointment-image {
        margin-left: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .appointment-container.elementor-grid-columns-2,
    .appointment-container.elementor-grid-columns-3,
    .appointment-container.elementor-grid-columns-4,
    .appointment-container.elementor-grid-columns-5,
    .appointment-container.elementor-grid-columns-6 {
        grid-template-columns: 1fr;
    }
}

/* RTL Support */
.rtl .appointment-container.elementor-view-list .appointment-item {
    text-align: right;
}

.rtl .appointment-container.elementor-view-list .appointment-image {
    margin-right: 20px;
    margin-left: 0;
}

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

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

/* Add some default animations */
.elementor-animation-pulse:hover {
    animation: pulse 1.5s infinite;
}

.elementor-animation-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animations for items */
.appointment-container .appointment-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.appointment-container .appointment-item:nth-child(1) { animation-delay: 0.1s; }
.appointment-container .appointment-item:nth-child(2) { animation-delay: 0.2s; }
.appointment-container .appointment-item:nth-child(3) { animation-delay: 0.3s; }
.appointment-container .appointment-item:nth-child(4) { animation-delay: 0.4s; }
.appointment-container .appointment-item:nth-child(5) { animation-delay: 0.5s; }
