.a-service-header {
    background-image: url('../images/backgroundheader.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 8rem 0 5rem 0;
    color: white;
    width: 100%;
    margin-top: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Gradient Overlay */
.a-service-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 0, 53, 0.85) 0%, rgba(0, 174, 239, 0.4) 100%);
    z-index: -1;
}

.a-service-heading {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    display: inline-block;
}

.a-service-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00aeef, transparent);
    border-radius: 2px;
    animation: fadeIn 1s ease-out 0.3s both;
}

.a-service-subheading {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

#a-services .a-container,
#a-service .a-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 2rem 1rem;
}

.service-item {
    display: flex;
    align-items: stretch;
    /* Kartın tam yüksekliğini kullanması için stretch */
    gap: 40px;
    padding: 40px 0;
    width: 100%;
    max-width: 100%;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

/* Görsel ve metin başlangıç pozisyonu ve animasyon efektleri */
.service-item img,
.service-text {
    opacity: 0;
    transition: transform 3s ease;
}

.service-item img {
    width: 100%;
    max-width: 500px;
    height: 100%;
    /* Kartın tam yüksekliğini kullanması için */
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateX(-100px);
    flex-shrink: 0;
    align-self: stretch;
    /* Görselin de kartın tam yüksekliğini kullanması için */
}

.service-item.reverse img {
    transform: translateX(100px);
}

.service-text {
    flex: 1;
    max-width: 600px;
    text-align: left;
    transform: translateX(100px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* İçeriği üst ve alt sınırlara hizalamak için */
    padding: 0;
    /* Padding'i kaldırıyoruz, kartın tam yüksekliğini kullanması için */
}

.service-item.reverse .service-text {
    transform: translateX(-100px);
}

/* Görünür olduğunda animasyon efekti */
.service-item.visible img,
.service-item.visible .service-text {
    opacity: 1;
    transform: translateX(0);
}

/* Başlık ve ikon stili */
.service-text h3 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
    margin-top: 0;
    /* Üst boşluğu kaldırıyoruz */
    /* Başlık ve metin arasındaki boşluk ayarlandı */
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-text h3 .service-icon {
    font-size: 1.5em;
    color: #00aeef;
}

.service-icon {
    font-size: 30px;
    /* İkon boyutu */
    color: #00aeef;
    /* İkon rengi */
    margin-right: 10px;
    /* Başlıkla aradaki boşluk */
    vertical-align: middle;
}

.service-text p {
    font-size: 1.2em;
    color: #666;
    line-height: 1.8;
    margin-top: 0;
    margin-bottom: 1rem;
    /* Metin başlıkla hizalı olacak */
}

/* Service Sub-list (Alt hizmetler listesi) */
.service-sub-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.service-sub-list li {
    font-size: 0.95rem;
    color: #555;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.service-sub-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00aeef;
    font-weight: bold;
    font-size: 1rem;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    /* Buton sadece içeriği kadar genişler */
    margin-top: auto;
    /* Alt sınırla hizalamak için auto margin */
    margin-bottom: 0;
    /* Alt boşluğu kaldırıyoruz */
    padding: 11px 20px;
    /* Daha kompakt padding */
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(144deg, #020035, #00aeef);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.learn-more:hover {
    background: linear-gradient(153deg, #00aeef, #020035);
    transform: scale(1.05);
    /* Hafif büyüme efekti */
}

/* Responsive Design */
@media (max-width: 768px) {
    .a-service-header {
        padding: 6rem 0 4rem 0;
        background-attachment: scroll;
    }
    
    .a-service-heading {
        font-size: 2.5rem;
    }
    
    .a-service-subheading {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .service-item.reverse {
        flex-direction: column;
    }

    .service-text {
        max-width: 100%;
    }

    .service-item img {
        width: 100%;
        max-width: 400px;
        /* Mobilde daha küçük bir görsel boyutu */
    }

    .service-text h3 {
        font-size: 2em;
    }

    .service-text p {
        font-size: 1.1em;
    }
    
    .service-sub-list {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    
    .service-sub-list li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .a-service-heading {
        font-size: 2rem;
    }
    
    .a-service-subheading {
        font-size: 1rem;
    }
}

/* =========================================================================================================================== */
/* ================================================== COMPACT SERVICES GRID (HOME PAGE) ==================================== */
/* =========================================================================================================================== */

.services-compact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.services-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-compact-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 174, 239, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-compact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 174, 239, 0.2);
    border-color: #00aeef;
}

.service-compact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #020035 0%, #00aeef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-compact-card:hover .service-compact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 20px rgba(0, 174, 239, 0.4);
}

.service-compact-icon i {
    font-size: 2rem;
    color: #fff;
}

.service-compact-card h3 {
    font-size: 1.3rem;
    color: #020035;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.service-compact-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.services-compact-cta {
    text-align: center;
    margin-top: 2rem;
}

.services-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #020035 0%, #00aeef 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

.services-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 174, 239, 0.4);
    background: linear-gradient(135deg, #00aeef 0%, #020035 100%);
}

.services-view-all-btn i {
    transition: transform 0.3s ease;
}

.services-view-all-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Design for Compact Grid */
@media (max-width: 992px) {
    .services-compact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-compact-container {
        padding: 2rem 1rem;
    }
    
    .services-compact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-compact-card {
        padding: 1.8rem 1.5rem;
    }
    
    .service-compact-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-compact-icon i {
        font-size: 1.7rem;
    }
    
    .service-compact-card h3 {
        font-size: 1.2rem;
    }
    
    .service-compact-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .services-compact-card {
        padding: 1.5rem 1rem;
    }
    
    .service-compact-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 1rem;
    }
    
    .service-compact-icon i {
        font-size: 1.5rem;
    }
    
    .service-compact-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .services-view-all-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* =========================================================================================================================== */
/* ============================================ SERVICES PAGE ENHANCEMENTS =================================================== */
/* =========================================================================================================================== */

/* Process Section */
.services-process-section {
    padding: 4rem 1rem;
    background: white;
}

.services-process-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #020035;
    text-align: center;
    margin-bottom: 1rem;
}

.services-process-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
}

.services-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-process-step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.services-process-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #020035 0%, #00aeef 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

.services-process-step h3 {
    font-size: 1.3rem;
    color: #020035;
    margin-bottom: 1rem;
    font-weight: 600;
}

.services-process-step p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Testimonials Section */
.services-testimonials-section {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #020035 0%, #1a1a4a 100%);
    color: white;
}

.services-testimonials-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: white;
}

.services-testimonials-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.services-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.services-testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.services-testimonial-quote {
    font-size: 2rem;
    color: #00aeef;
    margin-bottom: 1rem;
}

.services-testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.services-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.services-testimonial-author strong {
    color: white;
    font-size: 1.1rem;
}

.services-testimonial-author span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* FAQ Section */
.services-faq-section {
    padding: 4rem 1rem;
    background: #f8f9fa;
}

.services-faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #020035;
    text-align: center;
    margin-bottom: 1rem;
}

.services-faq-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
}

.services-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.services-faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.services-faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.15);
}

.services-faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.services-faq-question:hover {
    background: #f8f9fa;
}

.services-faq-question h3 {
    font-size: 1.1rem;
    color: #020035;
    font-weight: 600;
    margin: 0;
}

.services-faq-question i {
    color: #00aeef;
    transition: transform 0.3s ease;
}

.services-faq-item.active .services-faq-question i {
    transform: rotate(180deg);
}

.services-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.services-faq-item.active .services-faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.services-faq-answer p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* CTA Section */
.services-cta-section {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, #020035 0%, #00aeef 100%);
    color: white;
    text-align: center;
}

.services-cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.services-cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.services-cta-button {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.services-cta-button.primary {
    background: white;
    color: #020035;
}

.services-cta-button.primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.services-cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.services-cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Responsive Design for New Sections */
@media (max-width: 992px) {
    .services-process-grid,
    .services-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-process-title,
    .services-testimonials-title,
    .services-faq-title,
    .services-cta-title {
        font-size: 2rem;
    }
    
    .services-process-grid,
    .services-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-cta-button {
        width: 100%;
        max-width: 300px;
    }
}