/* Modern Card (General) */
.modern-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Service Detail Styles */
.service-detail-section article {
    line-height: 1.8;
}

.service-features-box {
    transition: all 0.3s ease;
}

.service-features-box:hover {
    transform: translateY(-5px);
}

.service-cta-box {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(13, 148, 136, 0.1) 100%);
}

.service-sidebar .modern-card {
    border-top: 4px solid var(--primary-color);
}

/* Page Hero Modern */
.page-hero-modern {
    padding-top: 6rem;
    padding-bottom: 3rem;
    background-color: #0f172a;
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
}

/* Legacy Page Hero (for backward compatibility or override) */
.page-hero {
    position: relative;
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    color: white;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* Overlay handled by inline style usually, but fallback here */
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

/* Breadcrumb Styling */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

.breadcrumb-item a:hover {
    color: var(--primary-color) !important;
}

/* Service Card Modern (Listing) */
.service-card-modern {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(13, 148, 136, 0.15);
    border-color: rgba(13, 148, 136, 0.2);
}

.service-card-modern .card-image-wrapper {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.service-card-modern .card-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.service-card-modern:hover .card-bg-image {
    transform: scale(1.1);
}

.service-card-modern .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    transition: opacity 0.3s ease;
}

.service-card-modern .card-icon-floating {
    position: absolute;
    bottom: -25px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: var(--primary-color);
    font-size: 1.5rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.service-card-modern:hover .card-icon-floating {
    transform: scale(1.1) rotate(10deg);
    background: var(--primary-color);
    color: white;
}

.service-card-modern .card-content {
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-modern .category-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.service-card-modern .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.service-card-modern .card-text {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card-modern .btn-link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-card-modern .btn-link-arrow i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-card-modern:hover .btn-link-arrow i {
    transform: translateX(5px);
}

/* CTA Card Modern */
.cta-card-modern {
    background: var(--primary-color);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    color: white;
    min-height: 200px;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.2);
}

.cta-card-modern .cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: transform 0.8s ease;
}

.cta-card-modern:hover .cta-bg-image {
    transform: scale(1.1);
}

.cta-card-modern .cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), rgba(15, 23, 42, 0.9));
    opacity: 0.9;
}

.cta-card-modern .cta-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.cta-card-modern .shape-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-card-modern .shape-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* -------------------------------------------------------------------------- */
/* NEW ADDITIONS FOR HIZMETLER.PHP                                            */
/* -------------------------------------------------------------------------- */

/* Utilities */
.bg-white-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hover-transform {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-transform:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.hover-filled:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

/* Category Filters Scroll Wrapper (Mobile) */
.category-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.category-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.service-filters-modern {
    display: inline-flex;
    min-width: 100%; /* Ensure full width on mobile */
    /* If flex container needs to scroll, we rely on wrapper */
}

/* Modern Filter Buttons */
.filter-btn-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    background: white;
    color: #4b5563;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn-modern .btn-text {
    color: #374151; /* Dark gray to ensure visibility */
}

.filter-btn-modern:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.filter-btn-modern.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.filter-btn-modern.active .btn-text {
    color: white;
}

.filter-btn-modern.active:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 0.9;
    transform: translateY(-1px);
}

.filter-btn-modern .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: color 0.2s ease;
    color: #6b7280; /* Explicitly set icon color */
}

.filter-btn-modern.active .icon-wrapper {
    color: white !important;
}

.filter-btn-modern .count-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
}

.filter-btn-modern.active .count-badge {
    background-color: white !important;
    color: var(--primary-color) !important;
}

/* Service Item Animation */
.service-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
