/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Loading Spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Home Button */
.back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 100;
}

.back-home:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.back-home i {
    font-size: 18px;
}

/* Banner Carousel */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    position: absolute;
    bottom: 12px;
    width: auto;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 4px 8px;
    border-radius: 12px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    margin: 0 3px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.carousel-dot.active {
    background-color: #3498db;
    transform: scale(1.1);
    box-shadow: 0 0 2px rgba(52, 152, 219, 0.6);
}

/* Main Heading */
.main-heading {
    text-align: center;
    margin: 20px 0;
    color: #2c3e50;
    font-size: 28px;
}

/* Service Head Grid */
.service-head-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.service-head-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    text-align: center;
    height: 180px;
}

.service-head-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-head-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    margin-bottom: 0;
}

.service-head-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    padding: 10px;
    background-color: white;
    width: 100%;
}

/* Back Button */
.back-button {
    margin-bottom: 15px;
}

.back-button a {
    display: inline-flex;
    align-items: center;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 20px;
    transition: background-color 0.2s ease;
}

.back-button a:hover {
    background-color: #e5e5e5;
}

.back-button a i {
    margin-right: 5px;
}

/* Service Banner */
.service-banner {
    width: 100%;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.service-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Filter Bar */
.filter-bar {
    width: 100%;
    margin: 0 0 15px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 5px 0;
}

.filter-bar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.filter-list {
    display: flex;
    padding: 0 5px;
}

.filter-item {
    padding: 8px 16px;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    background-color: #f5f5f5;
    color: #555;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.filter-item:hover {
    background-color: #e5e5e5;
}

.filter-item.active {
    background-color: #3498db;
    color: white;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-top: 20px;
}

.no-results p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

/* Service Cards */
.service-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 2px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.service-card-header:hover, .service-address:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.service-card-header {
    display: flex;
    padding: 10px 12px;
    position: relative;
}

.profile-image-container {
    width: 90px;
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    flex-direction: column;
}

.profile-image {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 5px;
}

.service-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #2c3e50;
    line-height: 1.3;
}

.service-description {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.service-address {
    display: flex;
    align-items: flex-start;
    padding: 0 12px 10px;
    font-size: 11px;
    color: #95a5a6;
    width: 100%;
    line-height: 1.3;
    border-bottom: 1px solid #f0f0f0;
}

.service-address i {
    margin-right: 5px;
    color: #7f8c8d;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
}

.service-address span {
    word-wrap: break-word;
}

.trusted-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f39c12;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.service-icons {
    display: flex;
    padding: 10px 12px;
    background-color: #f9f9f9;
    position: relative;
    cursor: default;
    border-top: 1px solid #eee;
}

.icons-amount {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-count {
    color: #7f8c8d;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}

.view-count i {
    font-size: 11px;
}

.icon-link {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    transition: transform 0.2s ease;
    margin-right: 10px;
}

.icon-link.phone {
    background-color: #3498db;
    color: white;
    width: auto;
    padding: 0 12px;
    border-radius: 16px;
}

.icon-text {
    margin-left: 5px;
    font-size: 12px;
    font-weight: 500;
}

.icon-link.whatsapp {
    background-color: #25D366;
    color: white;
}

.icon-link.location {
    background-color: #FF5252;
    color: white;
}

.icon-link.youtube {
    background-color: #FF0000;
    color: white;
}

.icon-link.website {
    background-color: #4285F4;
    color: white;
}

.icon-link.calendar {
    background-color: #34A853;
    color: white;
}

.icon-link.instagram {
    background-color: #E1306C;
    color: white;
}

.icon-link.facebook {
    background-color: #1877F2;
    color: white;
}

.icon-link:hover {
    transform: scale(1.1);
}

.service-amount {
    color: #2ecc71;
    font-size: 13px;
    font-weight: 600;
}

/* Loading Screen Styles (for transitions) */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.loading-screen.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    max-width: 80%;
}

.loading-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.progress-container {
    width: 300px;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* Loading Screen Styles (for transitions) */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.loading-screen.active {
    opacity: 1;
    visibility: visible;
}

/* Progress Indicator Styles (for incoming navigation) */
.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
}

.progress-indicator.hidden {
    opacity: 0;
    visibility: hidden;
}

.progress-indicator-content {
    text-align: center;
    max-width: 80%;
}

.progress-indicator-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.progress-indicator-container {
    width: 300px;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.progress-indicator-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    transition: width 0.4s ease;
}

.progress-indicator-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

.progress-indicator-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .service-head-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .banner-carousel {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .service-head-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .banner-carousel {
        height: 300px;
    }
    
    .service-banner {
        height: 150px;
    }
    
    .progress-indicator-container {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .service-head-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .service-head-card {
        height: 150px;
        padding: 0;
    }
    
    .service-head-image {
        width: 100%;
        height: 100px;
        margin-bottom: 0;
    }
    
    .service-head-title {
        font-size: 11px;
    }
    
    .main-heading {
        font-size: 22px;
    }
    
    .banner-carousel {
        height: 250px;
        border-radius: 8px;
    }
}

@media (max-width: 360px) {
    .banner-carousel {
        height: 200px;
    }
} 