/* ==========================================
   SERVICES PAGE SPECIFIC STYLES
   ========================================== */

/* ==========================================
   SERVICE DETAIL PAGES
   ========================================== */
.service-detail {
    padding: var(--space-4xl) 0;
    background-color: var(--bg-primary);
}

.service-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .service-content {
        grid-template-columns: 1fr 400px;
        gap: var(--space-4xl);
    }
}

.service-text {
    order: 2;
}

@media (min-width: 1024px) {
    .service-text {
        order: 1;
    }
}

.service-text .section-title {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    position: relative;
}

.service-text .section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
    .service-text .section-title {
        font-size: var(--font-size-4xl);
        margin-top: var(--space-3xl);
    }
}

.service-description {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.service-text p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.service-text p:last-child {
    margin-bottom: 0;
}

.service-image {
    order: 1;
    position: relative;
}

@media (min-width: 1024px) {
    .service-image {
        order: 2;
    }
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

@media (min-width: 768px) {
    .service-image img {
        height: 400px;
    }
}

.service-image:hover img {
    transform: scale(1.02);
}

.service-features {
    padding: var(--space-4xl) 0;
    background-color: var(--bg-secondary);
}

.service-features .section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
    color: var(--text-primary);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    position: relative;
}

.service-features .section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
    .service-features .section-title {
        font-size: var(--font-size-4xl);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3xl);
    }
}

.feature-card {
    background-color: var(--bg-primary);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.feature-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto var(--space-lg) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 48px !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
}

.feature-icon i {
    position: relative !important;
    z-index: 1 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
    color: white !important;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) !important;
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4) !important;
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Service Detail Animations */
.service-detail .service-content {
    animation: fadeInUp 0.8s ease-out;
}

.service-features .feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-features .feature-card:nth-child(1) { animation-delay: 0.1s; }
.service-features .feature-card:nth-child(2) { animation-delay: 0.2s; }
.service-features .feature-card:nth-child(3) { animation-delay: 0.3s; }
.service-features .feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .service-detail {
        padding: var(--space-2xl) 0;
    }
    
    .service-content {
        gap: var(--space-2xl);
    }
    
    .service-text .section-title {
        font-size: var(--font-size-2xl);
        margin-top: var(--space-lg);
        margin-bottom: var(--space-md);
    }
    
    .service-description {
        font-size: var(--font-size-base);
    }
    
    .service-image img {
        height: 250px;
    }
    
    .service-features {
        padding: var(--space-2xl) 0;
    }
    
    .service-features .section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-2xl);
    }
    
    .features-grid {
        gap: var(--space-lg);
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    .feature-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 38px !important;
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3) !important;
    }
    
    .feature-card h3 {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 480px) {
    .service-text .section-title {
        font-size: var(--font-size-xl);
    }
    
    .service-features .section-title {
        font-size: var(--font-size-xl);
    }
    
    .feature-card {
        padding: var(--space-md);
    }
    
    .feature-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 34px !important;
        margin-bottom: var(--space-md) !important;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
    }
}

/* Enhanced Visual Effects */
.service-text .section-title {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-description {
    position: relative;
    padding-left: var(--space-lg);
}

.service-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-sm);
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

/* Improved Typography */
.service-text p {
    text-align: justify;
    hyphens: auto;
}

.feature-card h3 {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   PAGE HEADER
   ========================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: var(--text-inverse);
    padding: calc(80px + var(--space-4xl)) 0 var(--space-4xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-md);
    color: var(--text-inverse);
}

@media (min-width: 768px) {
    .page-title {
        font-size: var(--font-size-6xl);
    }
}

.page-description {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--text-inverse);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-current {
    color: var(--accent-200);
    font-weight: var(--font-weight-medium);
}

/* ==========================================
   SERVICES OVERVIEW
   ========================================== */
.services-overview {
    padding: var(--space-4xl) 0;
    background-color: var(--bg-secondary);
}

.services-overview .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 768px) {
    .services-overview .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-overview .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.services-overview .service-card {
    background-color: var(--bg-primary);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
}

.services-overview .service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.services-overview .service-card.featured {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.services-overview .service-card.featured::before {
    content: 'Önerilen';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
    color: var(--text-inverse);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.services-overview .service-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.services-overview .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-full);
    color: var(--text-inverse);
    font-size: var(--font-size-3xl);
}

.services-overview .service-title {
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.services-overview .service-description {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.service-features i {
    color: var(--success-500);
    font-size: var(--font-size-xs);
}

.service-pricing {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.service-pricing .price {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-600);
}

.service-pricing .period {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ==========================================
   EXAM TYPES
   ========================================== */
.exam-types {
    padding: var(--space-4xl) 0;
    background-color: var(--bg-primary);
}

.exam-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 768px) {
    .exam-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .exam-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.exam-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 2px solid var(--border-light);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.exam-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-700));
}

.exam-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.exam-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.exam-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-600);
    margin-bottom: var(--space-xs);
}

.exam-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    margin-bottom: 0;
}

.exam-description {
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
}

.exam-features {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.exam-features li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.exam-features li:last-child {
    border-bottom: none;
}

.exam-dates {
    background-color: var(--bg-primary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
}

.exam-dates strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--space-xs);
}

.exam-dates span {
    color: var(--primary-600);
    font-weight: var(--font-weight-medium);
}

/* ==========================================
   SUCCESS STORIES
   ========================================== */
.success-stories {
    padding: var(--space-4xl) 0;
    background-color: var(--bg-secondary);
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.story-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    position: relative;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.story-quote {
    margin-bottom: var(--space-lg);
    position: relative;
}

.story-quote i {
    color: var(--primary-300);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-md);
}

.story-quote p {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.story-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-info h4 {
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    font-size: var(--font-size-lg);
}

.author-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

.story-score {
    text-align: center;
    background: linear-gradient(135deg, var(--success-500), var(--success-600));
    color: var(--text-inverse);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    min-width: 80px;
}

.story-score .score {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-extrabold);
}

.story-score .exam {
    font-size: var(--font-size-xs);
    opacity: 0.9;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: var(--text-inverse);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="2"/></g></svg>');
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-md);
    color: var(--text-inverse);
}

@media (min-width: 768px) {
    .cta-title {
        font-size: var(--font-size-5xl);
    }
}

.cta-description {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.cta-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-inverse);
}

.cta-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-inverse);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 640px) {
    .page-header {
        padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
    }
    
    .page-title {
        font-size: var(--font-size-3xl);
    }
    
    .page-description {
        font-size: var(--font-size-lg);
    }
    
    .services-overview .services-grid {
        grid-template-columns: 1fr;
    }
    
    .exam-grid {
        grid-template-columns: 1fr;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .story-author {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .cta-title {
        font-size: var(--font-size-2xl);
    }
    
    .cta-description {
        font-size: var(--font-size-base);
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-fade-scale {
    animation: fadeInScale 0.6s ease-out;
}

/* Stagger animations for cards */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.exam-card:nth-child(1) { animation-delay: 0.1s; }
.exam-card:nth-child(2) { animation-delay: 0.2s; }
.exam-card:nth-child(3) { animation-delay: 0.3s; }

.story-card:nth-child(1) { animation-delay: 0.1s; }
.story-card:nth-child(2) { animation-delay: 0.2s; }
.story-card:nth-child(3) { animation-delay: 0.3s; } 