/**
 * Frontend Styles
 * Modern ve responsive tasarım
 */

/* ==========================================
   TEMEL STILLER
========================================== */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --bg-color: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --spacing: 1rem;
    --radius: 0.5rem;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* ==========================================
   HEADER
========================================== */
.site-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    max-height: 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav li.active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.language-switcher .lang-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
}

.language-switcher .lang-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* ==========================================
   HERO SLIDER
========================================== */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* ==========================================
   VIDEO SLIDER - TAM EKRAN OVERRIDE
========================================== */
.wpo-hero-slider .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

.wpo-hero-slider .slide-inner,
.wpo-hero-slider .slide-inner.slide-bg-video,
.wpo-hero-slider .slide-inner.slide-bg-image {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
}

/* Video Background Container */
.slide-bg-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.video-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    overflow: hidden !important;
}

.video-background video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    transform: translate(-50%, -50%) !important;
    object-fit: cover !important;
    pointer-events: none !important;
}

/* YouTube Background */
.youtube-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.youtube-background iframe {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100vw !important;
    height: 56.25vw !important; /* 16:9 aspect ratio */
    min-height: 100vh !important;
    min-width: 177.78vh !important; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%) !important;
    pointer-events: none !important;
    border: none !important;
}

.slide-bg-youtube {
    position: relative !important;
    overflow: hidden !important;
}

/* Gradient Overlay */
.gradient-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%) !important;
    z-index: 5 !important;
}

/* Slider İçerik - Yazılar */
.wpo-hero-slider .slide-inner .container-fluid {
    position: relative !important;
    z-index: 100 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.wpo-hero-slider .slide-inner .slide-content {
    position: relative !important;
    z-index: 100 !important;
    text-align: left !important;
}

.wpo-hero-slider .slide-inner .slide-title h2 {
    color: #fff !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8) !important;
}

.wpo-hero-slider .slide-inner .slide-text p {
    color: #fff !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7) !important;
}

.wpo-hero-slider .slide-inner .slide-btns {
    display: flex !important;
    justify-content: flex-start !important;
}

/* Navigation Arrows - Dikey Ortala */
.wpo-hero-slider .swiper-button-prev,
.wpo-hero-slider .swiper-button-next {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Tema :before pseudo-element'ini kaldır - kendi gradient'imizi kullanıyoruz */
.wpo-hero-slider .slide-inner.slide-bg-video:before {
    display: none !important;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

/* ==========================================
   SERVICE SECTION - SABİT YÜKSEKLİK
========================================== */
.wpo-service-section .service-slider.owl-carousel .item {
    display: flex !important;
    flex-direction: column !important;
}

.wpo-service-section .service-slider.owl-carousel .item .image,
.service-slider .item .image {
    position: relative !important;
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #f0f0f0 !important;
}

.wpo-service-section .service-slider.owl-carousel .item .image img,
.service-slider .item .image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: all 0.8s ease-in-out !important;
}

.wpo-service-section .service-slider .item .content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wpo-service-section .service-slider .item .content h2 {
    min-height: 60px;
    display: flex;
    align-items: center;
}

.wpo-service-section .service-slider .item .content p {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding-top: 10rem;
    max-width: 600px;
}

.slide-content.center {
    margin: 0 auto;
    text-align: center;
}

.slide-content.right {
    margin-left: auto;
    text-align: right;
}

.slide-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.slide-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.slide-content.center .slide-buttons {
    justify-content: center;
}

.slide-content.right .slide-buttons {
    justify-content: flex-end;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    z-index: 10;
    transition: var(--transition);
}

.slider-prev:hover,
.slider-next:hover {
    background: #fff;
    box-shadow: var(--shadow);
}

.slider-prev {
    left: 2rem;
}

.slider-next {
    right: 2rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: #fff;
}

/* ==========================================
   SECTIONS
========================================== */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 4rem 0 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-header .post-meta {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.page-header .post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================
   BLOG
========================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-image {
    display: block;
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-summary {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.75rem;
}

/* Blog Detail */
.blog-detail .article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-image {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
}

.article-summary {
    font-size: 1.2rem;
    color: var(--text-muted);
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
    border-radius: var(--radius);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.article-body h1,
.article-body h2,
.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.article-share {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.article-share h4 {
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
    transform: scale(1.1);
}

.article-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* ==========================================
   CONTACT
========================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info .info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-content a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-content a:hover {
    color: var(--primary-color);
}

.contact-map {
    margin-top: 3rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ==========================================
   FORMS
========================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================
   BUTTONS
========================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #4f46e5;
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background: #7c3aed;
}

/* ==========================================
   ALERTS
========================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* ==========================================
   PAGINATION
========================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-info {
    color: var(--text-muted);
}

/* ==========================================
   FOOTER
========================================== */
.site-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-contact,
.footer-links {
    list-style: none;
}

.footer-contact li,
.footer-links li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact a,
.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover,
.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
}

/* ==========================================
   UTILITIES
========================================== */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-posts i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Values Section */
.values-section {
    margin-top: 4rem;
}

.values-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.value-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   FEATURE SECTION CUSTOM
========================================== */
.wpo-feature-section .wraper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.wpo-feature-section .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 25%;
    box-sizing: border-box;
    padding: 0 10px;
}

.wpo-feature-section .item .icon {
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.wpo-feature-section .item .icon img {
    max-width: 100%;
    height: auto;
}

.wpo-feature-section .item .content {
    text-align: center;
}

.wpo-feature-section .item .content h3 {
    text-align: center;
    margin: 0;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    font-size: 16px;
}

/* Feature Section Responsive */
@media (max-width: 991px) {
    .wpo-feature-section .wraper {
        justify-content: center;
        padding: 30px 20px 10px;
    }
    .wpo-feature-section .item {
        width: 50%;
        margin-bottom: 25px;
    }
    .wpo-feature-section .item .icon {
        width: 150px;
    }
}

@media (max-width: 575px) {
    .wpo-feature-section .wraper {
        padding: 20px 15px 10px;
    }
    .wpo-feature-section .item {
        width: 50%;
        margin-bottom: 20px;
        padding: 0 5px;
    }
    .wpo-feature-section .item .icon {
        width: 100px;
    }
    .wpo-feature-section .item .content h3 {
        font-size: 13px;
        line-height: 1.3;
    }
}

/* ==========================================
   SERVICE SECTION CUSTOM
========================================== */
.wpo-service-section-custom {
    background: #f8f9fa;
    padding: 80px 0;
}

.wpo-service-section-custom .wpo-section-title {
    margin-bottom: 50px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-number {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 60px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.service-card-content {
    padding: 30px;
}

.service-card-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-card-content h2 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-card-content h2 a:hover {
    color: #c9a227;
}

.service-card-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 991px) {
    .wpo-service-section-custom {
        padding: 60px 0;
    }

    .service-card-content h2 {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .wpo-service-section-custom {
        padding: 40px 0;
    }

    .service-card-content {
        padding: 20px;
    }

    .service-number {
        font-size: 40px;
    }
}

p {
    font-size: 18px;
}

.wpo-breadcumb-area{
min-height:160px;
}