/*
Theme Name: Avrupa Theme
Theme URI: https://example.com
Author: Avrupa
Author URI: https://example.com
Description: Modern ve responsive WordPress teması
Version: 1.0.0
Requires at least: 5.9
Tested up to: 5.9.12
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avrupa-theme
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #222;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

p {
    margin: 1rem 0;
}

/* Header Styles - Tabela Design */
.site-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    background-color: transparent;
}

.header-tabela-container {
    display: flex;
    height: 75px;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #333333;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.03) 0px,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    position: relative;
    z-index: 1000;
}

.header-logo-section {
    flex: 0 0 350px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 40px;
    position: relative;
    z-index: 20;
}

/* White Separator Box */
.header-logo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 100%, 0 100%);
    z-index: 1;
}

/* Red Logo Box */
.header-logo-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ed1c1d;
    clip-path: polygon(0 0, calc(100% - 33px) 0, calc(100% - 8px) 100%, 0 100%);
    z-index: 2;
}

.site-logo {
    position: relative;
    z-index: 21;
}

.site-logo a {
    display: block;
    line-height: 0;
}

.site-logo img {
    max-height: 65px;
    width: auto;
}

.header-nav-section {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Hide the old physical slant div since we handle it via pseudo-elements */
.header-divider-slant {
    display: none;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Move items to the left instead of center */
    width: 100%;
    height: 100%;
    padding-left: 0px; /* Space after slant */
    padding-right: 20px;
}

/* Primary Navigation Overrides */
.primary-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 18px; /* Slightly increased gap for larger font */
}

.primary-menu>li {
    position: relative;
}

.primary-menu>li>a {
    color: #ffffff;
    font-size: 15px; /* Increased from 13px */
    font-weight: 600; /* Medium-bold for clarity */
    letter-spacing: 0.2px;
    text-transform: uppercase;
    padding: 28px 0; /* Reduced padding */
    display: block;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap; /* Prevent wrapping */
}

.primary-menu>li>a:hover {
    color: #ed1c24;
    transform: translateY(-2px);
}

/* Dropdown Menu - Modern Styling */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
    border-top: 3px solid #ed1c1d;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.primary-menu li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu li {
    width: 100%;
    margin: 0;
}

.primary-menu .sub-menu a {
    color: #444444;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 25px;
    display: block;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    text-shadow: none;
    white-space: normal;
    border-bottom: 1px solid #f2f2f2;
}

.primary-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.primary-menu .sub-menu a:hover {
    background-color: #f8f9fa;
    color: #ed1c1d;
    padding-left: 30px;
    transform: none; /* override hover block from parent */
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    z-index: 30;
}

/* Slider Styles */
.home-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slider-item {
    width: 100%;
    position: relative;
}

.slider-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Homepage Selected Pages */
.homepage-pages {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-content-item {
    margin-bottom: 40px;
}

.page-content-item h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.page-content-item .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* Page Hero Banner */
.page-hero-banner {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.9) 0%, rgba(196, 24, 32, 0.9) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
}

.page-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.page-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero-title {
    font-size: 48px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
    color: #ffffff;
}

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

.page-breadcrumb .current {
    color: #ffffff;
    font-weight: 500;
}

/* Footer Styles */
.site-footer {
    background-color: #f5f5f5;
    color: #333333;
    padding-top: 60px;
}

.footer-widgets {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 4fr 2fr 2fr 4fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget {
    padding: 0 10px;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333333;
    font-weight: 600;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #666666;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-widget ul li a:hover {
    color: #ed1c24;
}

/* Footer Divider */
.footer-divider {
    border: none;
    border-top: 3px solid #ed1c24;
    margin: 0 20px;
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.footer-copyright {
    color: #666666;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.footer-social a {
    color: #666666;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #ed1c24;
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* Page Hero Mobile */
    .page-hero-banner {
        height: 200px;
    }

    .page-hero-title {
        font-size: 28px;
    }

    .page-breadcrumb {
        font-size: 12px;
    }

    /* Header Mobile - Tabela Adjustments */
    .site-header {
        height: auto;
    }

    .header-tabela-container {
        height: 60px;
        /* Removed overflow: hidden so the mobile menu can display outside this container */
    }

    .header-logo-section {
        flex: 0 0 200px;
        padding-left: 10px;
    }

    .header-logo-section .site-logo img {
        max-height: 50px;
        margin-top: 5px; /* Adjusting for visual center */
    }

    .header-divider-slant {
        display: none;
    }

    .header-nav-section {
        padding-left: 15px;
    }

    .nav-content {
        padding: 0 15px;
        justify-content: flex-end;
    }

    .mobile-menu-toggle {
        display: block;
        padding: 5px;
    }

    .primary-navigation {
        position: absolute;
        top: 70px; /* Below the header */
        left: 0;
        width: 100%;
        background-color: #ed1c1d; /* Matching red aesthetic */
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: all 0.3s ease;
        z-index: 9999; /* Ensure it stays above everything */
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .primary-navigation.active {
        max-height: calc(100vh - 70px);
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .primary-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
    }

    .primary-menu>li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .primary-menu>li>a {
        padding: 15px 20px !important;
        text-align: left;
    }

    .primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
        display: none;
    }

    .primary-menu li.menu-item-has-children.active>.sub-menu {
        display: block;
    }

    .primary-menu .sub-menu li a {
        color: #ffffff;
        padding: 12px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .primary-menu .sub-menu li a:hover {
        background-color: rgba(0, 0, 0, 0.2);
        color: #ffffff;
    }

    /* Footer Mobile */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-social {
        justify-content: center;
    }

    /* Homepage */
    .homepage-pages {
        padding: 40px 15px;
    }

    .page-content-item h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        margin-right: 20px;
    }

    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Paketler Container - Zorla Yan Yana */
.packages-wrapper {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

/* Paket Kartı */
.package-card {
    flex: 0 0 320px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(237, 28, 36, 0.15);
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ed1c24 0%, #ff4d4d 100%);
}

.package-header {
    background: linear-gradient(135deg, #ed1c24 0%, #c41820 100%);
    padding: 24px 20px;
    text-align: center;
}

.package-header h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0;
    text-transform: uppercase;
}

.package-price {
    background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%);
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.package-price .amount {
    font-size: 38px;
    font-weight: 800;
    color: #222;
    line-height: 1;
}

.package-price .currency {
    font-size: 18px;
    font-weight: 600;
    color: #ed1c24;
    margin-left: 4px;
}

.package-price .period {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.package-content {
    padding: 20px;
}

.package-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.package-content li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.package-content li:last-child {
    border-bottom: none;
}

.package-content li::before {
    content: '✓';
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: linear-gradient(135deg, #ed1c24 0%, #ff4d4d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    margin-top: 1px;
}

.package-cta {
    padding: 0 20px 24px;
}

.package-cta a {
    display: block;
    background: linear-gradient(135deg, #ed1c24 0%, #c41820 100%);
    color: #fff !important;
    text-align: center;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237, 28, 36, 0.3);
}

.package-cta a:hover {
    box-shadow: 0 8px 25px rgba(237, 28, 36, 0.4);
    transform: translateY(-2px);
}

/* Mobil */
@media (max-width: 768px) {
    .packages-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .package-card {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

.home-links-wrapper {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    margin: 30px auto !important;
    max-width: 1200px !important;
    padding: 0 20px !important;
}

/* P taglarını tamamen sıfırla ve flex item yap */
.home-links-wrapper p {
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 200px !important;
    display: block !important;
}

.home-link {
    width: 100% !important;
    height: 200px !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.home-link i {
    font-size: 48px !important;
    margin-bottom: 15px !important;
    line-height: 1 !important;
    display: block !important;
}

.home-link span {
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    line-height: 1.3 !important;
    display: block !important;
}

.home-link:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Mobil görünüm */
@media (max-width: 768px) {
    /* 1. Quick Action Buttons (5 Buttons) - App Shortcut Scrollable Row */
    .home-links-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 12px !important;
        padding: 10px 20px 20px 20px !important; /* Bottom padding for scrollbar visibility and shadow */
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        scroll-snap-type: x mandatory; /* Smooth snapping */
    }
    .home-links-wrapper::-webkit-scrollbar {
        display: none; /* Hide scrollbar in webkit */
    }

    /* Target both p tags (fallback) and direct a tags */
    .home-links-wrapper p,
    .home-links-wrapper > a.home-link {
        flex: 0 0 100px !important; /* Fixed width */
        max-width: 100px !important;
        width: 100px !important;
        scroll-snap-align: start; /* Snap items to start */
    }

    .home-link {
        width: 100% !important;
        height: 105px !important;
        border-radius: 18px !important; /* Rounder for app feel */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 10px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        border: 2px solid rgba(255,255,255,0.2) !important;
    }

    .home-link i {
        font-size: 32px !important; /* Slightly smaller icon */
        margin-bottom: 8px !important;
    }

    .home-link span {
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        line-height: 1.2 !important;
    }

    /* Natural Aspect Ratio for Home Slider (Prevents Text Cropping) */
    .home-slider .slider-item img {
        height: auto !important;
        width: 100% !important;
        object-fit: contain !important;
        border-radius: 8px; /* Optional rounding */
    }

    /* Fallback Horizontal Scroll for Blog/Posts Grid */
    .posts-grid, 
    .wp-block-latest-posts.is-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        gap: 15px !important;
        padding-bottom: 20px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .posts-grid::-webkit-scrollbar, 
    .wp-block-latest-posts.is-grid::-webkit-scrollbar {
        display: none;
    }
    .posts-grid > *, 
    .wp-block-latest-posts.is-grid > * {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        scroll-snap-align: center;
        margin-bottom: 0 !important;
    }
}

/* Bootstrap Uyumluluk Düzeltmeleri */
.site-main .container {
    max-width: 1200px;
}

/* Bootstrap butonlarının tema rengiyle uyumu */
.btn-danger {
    background-color: #ed1c24 !important;
    border-color: #ed1c24 !important;
}

.btn-danger:hover {
    background-color: #c41820 !important;
    border-color: #c41820 !important;
}

.btn-outline-danger {
    color: #ed1c24 !important;
    border-color: #ed1c24 !important;
}

.btn-outline-danger:hover {
    background-color: #ed1c24 !important;
    border-color: #ed1c24 !important;
    color: #fff !important;
}

.text-danger {
    color: #ed1c24 !important;
}

.bg-danger {
    background-color: #ed1c24 !important;
}

.border-danger {
    border-color: #ed1c24 !important;
}

/* Grayscale efekti referans logoları için */
.grayscale {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.grayscale:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Gutenberg Blokları için Genel Düzeltmeler */
.wp-block-latest-posts,
.wp-block-latest-comments,
.wp-block-categories,
.wp-block-archives,
.wp-block-tag-cloud {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 40px 20px !important;
    width: 100% !important;
}

/* Son Yazılar Bloğu Özel Stiller */
.wp-block-latest-posts {
    list-style: none !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
}

.wp-block-latest-posts li {
    margin-bottom: 0 !important;
    padding: 20px !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.wp-block-latest-posts li:hover {
    box-shadow: 0 5px 20px rgba(237, 28, 36, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .wp-block-latest-posts {
        grid-template-columns: 1fr !important;
    }
}

.wp-block-latest-posts li a {
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 10px !important;
}

.wp-block-latest-posts li a:hover {
    color: #ed1c24 !important;
}

/* Son Yazılar - Görsel varsa */
.wp-block-latest-posts__featured-image {
    margin-bottom: 15px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.wp-block-latest-posts__featured-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.wp-block-latest-posts li:hover .wp-block-latest-posts__featured-image img {
    transform: scale(1.05) !important;
}

/* Son Yazılar - Tarih */
.wp-block-latest-posts__post-date {
    color: #999 !important;
    font-size: 14px !important;
    display: block !important;
    margin-top: 5px !important;
}

/* Son Yazılar - Özet */
.wp-block-latest-posts__post-excerpt {
    color: #666 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-top: 10px !important;
}

/* ============================================
   SINGLE POST (Blog Yazısı) STYLES
   ============================================ */

.single-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.single-article {
    background: #fff;
}

/* Article Layout - Sol/Sağ Düzen */
.article-layout {
    display: grid;
    grid-template-columns: 33% 1fr;
    gap: 50px;
}

/* Sol Sidebar - Görsel ve Meta */
.article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.article-sidebar .post-thumbnail {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.article-sidebar .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.article-sidebar .entry-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.article-sidebar .entry-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.article-sidebar .entry-meta i {
    color: #ed1c24;
    font-size: 14px;
    width: 20px;
}

.article-sidebar .entry-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-sidebar .entry-meta a:hover {
    color: #ed1c24;
}

/* Sağ Main - Başlık ve İçerik */
.article-main {
    min-width: 0;
}

.article-main .entry-header {
    margin-bottom: 30px;
}

.article-main .entry-title {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin: 0;
}

/* Entry Content - İçerik */
.single-article .entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

.single-article .entry-content p {
    margin-bottom: 20px;
}

.single-article .entry-content h2,
.single-article .entry-content h3,
.single-article .entry-content h4 {
    color: #222;
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.single-article .entry-content h2 {
    font-size: 28px;
    border-left: 4px solid #ed1c24;
    padding-left: 15px;
}

.single-article .entry-content h3 {
    font-size: 24px;
}

.single-article .entry-content h4 {
    font-size: 20px;
}

.single-article .entry-content ul,
.single-article .entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.single-article .entry-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.single-article .entry-content a {
    color: #ed1c24;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-article .entry-content a:hover {
    color: #c41820;
}

.single-article .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.single-article .entry-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background: #f9f9f9;
    border-left: 4px solid #ed1c24;
    font-style: italic;
    color: #666;
}

/* Entry Footer - Etiketler */
.single-article .entry-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #f5f5f5;
}

.single-article .tags-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.single-article .tags-links i {
    color: #ed1c24;
    font-size: 16px;
}

.single-article .tags-links a {
    display: inline-block;
    padding: 6px 14px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.single-article .tags-links a:hover {
    background: #ed1c24;
    color: #fff;
}

/* Post Navigation - Önceki/Sonraki */
.post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f5f5f5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f9f9f9;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.post-navigation .nav-link:hover {
    background: #ed1c24;
    color: #fff;
    border-color: #ed1c24;
    transform: translateY(-2px);
}

.post-navigation .nav-link i {
    font-size: 12px;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .single-post-container {
        padding: 40px 15px;
    }

    /* Mobilde tek kolon */
    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-sidebar {
        position: static;
    }

    .article-sidebar .entry-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .article-sidebar .entry-meta span {
        font-size: 13px;
    }

    .article-main .entry-title {
        font-size: 28px;
    }

    .single-article .entry-content {
        font-size: 16px;
    }

    .single-article .entry-content h2 {
        font-size: 24px;
    }

    .single-article .entry-content h3 {
        font-size: 20px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .post-navigation .nav-next {
        text-align: left;
    }

    .post-navigation .nav-link {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================
   WPFORMS - PREMIUM BAYILIK BAŞVURU FORMU
   (Modern Markup + choices.js uyumlu)
   ============================================ */

/* Sayfa içeriği wrapper */
.page-content .entry-content {
    color: #444 !important;
}

/* Form sayfası başlık ve paragraf */
.page-content .entry-content h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ed1c24 !important;
    margin-bottom: 12px !important;
    text-align: center !important;
}

.page-content .entry-content > p {
    font-size: 16px !important;
    color: #666 !important;
    line-height: 1.8 !important;
    margin-bottom: 40px !important;
    text-align: center !important;
}

/* WPForms Ana Wrapper */
.wpforms-container {
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* Ana Form Kutusu */
.wpforms-form {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%) !important;
    border-radius: 24px !important;
    padding: 50px !important;
    box-shadow:
        0 20px 60px rgba(237, 28, 36, 0.08),
        0 4px 20px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(237, 28, 36, 0.08) !important;
    position: relative !important;
    overflow: visible !important;
}

/* Üst animasyonlu kırmızı çizgi */
.wpforms-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, #ed1c24 0%, #ff6b6b 50%, #ed1c24 100%);
    background-size: 200% 100%;
    animation: wpf-shimmer 3s ease infinite;
}

@keyframes wpf-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Field wrapper */
.wpforms-field {
    margin-bottom: 20px !important;
    position: relative !important;
}

/* Label */
.wpforms-field-label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #555 !important;
    margin-bottom: 8px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.wpforms-required-label {
    color: #ed1c24 !important;
    margin-left: 2px !important;
}

/* ---- INPUT / TEXTAREA ---- */
/* WPForms Modern Markup: inputlar .wpforms-field-large / .wpforms-field-medium class'ına sahip */
.wpforms-form input.wpforms-field-large,
.wpforms-form input.wpforms-field-medium,
.wpforms-form input.wpforms-field-small,
.wpforms-form textarea.wpforms-field-large,
.wpforms-form textarea.wpforms-field-medium,
.wpforms-form select.wpforms-field-large,
.wpforms-form select.wpforms-field-medium,
.wpforms-form select.wpforms-field-small {
    width: 100% !important;
    padding: 13px 16px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: #2d2d2d !important;
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    line-height: 1.5 !important;
}

.wpforms-form input.wpforms-field-large:focus,
.wpforms-form input.wpforms-field-medium:focus,
.wpforms-form textarea.wpforms-field-large:focus,
.wpforms-form textarea.wpforms-field-medium:focus,
.wpforms-form select.wpforms-field-large:focus,
.wpforms-form select.wpforms-field-medium:focus {
    border-color: #ed1c24 !important;
    box-shadow:
        0 0 0 4px rgba(237, 28, 36, 0.1),
        0 4px 14px rgba(237, 28, 36, 0.1) !important;
    background: #fff !important;
}

.wpforms-form input.wpforms-field-large:hover,
.wpforms-form input.wpforms-field-medium:hover,
.wpforms-form textarea.wpforms-field-large:hover,
.wpforms-form textarea.wpforms-field-medium:hover {
    border-color: #bbb !important;
}

.wpforms-form input::placeholder,
.wpforms-form textarea::placeholder {
    color: #bbb !important;
    font-size: 14px !important;
}

.wpforms-form textarea.wpforms-field-large,
.wpforms-form textarea.wpforms-field-medium {
    min-height: 130px !important;
    resize: vertical !important;
    line-height: 1.6 !important;
}

/* Classic select (choices.js olmayan) */
.wpforms-field-select-style-classic select.wpforms-field-large,
.wpforms-field-select-style-classic select.wpforms-field-medium {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ed1c24' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 42px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 43px !important;
    line-height: 43px !important;
    cursor: pointer !important;
}

.wpforms-field-select-style-classic select.wpforms-field-large option,
.wpforms-field-select-style-classic select.wpforms-field-medium option {
    padding: 8px 16px !important;
    line-height: normal !important;
}

/* ---- CHOICES.JS SELECT STİLLERİ ---- */
.wpforms-form .choices {
    margin-bottom: 0 !important;
}

.wpforms-form .choices__inner {
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 0 16px !important;
    min-height: 43px !important;
    height: 43px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: #2d2d2d !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
}

.wpforms-form .choices.is-open .choices__inner,
.wpforms-form .choices__inner:hover {
    border-color: #ed1c24 !important;
    box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.1) !important;
}

.wpforms-form .choices__list--single .choices__item {
    color: #2d2d2d !important;
    font-size: 15px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.wpforms-form .choices__list--single {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 !important;
}

.wpforms-form .choices__placeholder {
    color: #bbb !important;
    opacity: 1 !important;
}

.wpforms-form .choices[data-type*="select-one"]::after {
    border-color: #ed1c24 transparent transparent transparent !important;
    right: 16px !important;
}

.wpforms-form .choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent #ed1c24 transparent !important;
}

.wpforms-form .choices__list--dropdown {
    background: #ffffff !important;
    border: 2px solid #ed1c24 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 30px rgba(237, 28, 36, 0.12) !important;
    margin-top: 4px !important;
    z-index: 9999 !important;
    overflow: hidden !important;
}

.wpforms-form .choices__input {
    background: #f9f9f9 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #333 !important;
    width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.wpforms-form .choices__list--dropdown .choices__item {
    padding: 11px 16px !important;
    font-size: 14px !important;
    color: #444 !important;
    transition: all 0.15s ease !important;
}

.wpforms-form .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background: linear-gradient(135deg, #ed1c24 0%, #c41820 100%) !important;
    color: #ffffff !important;
}

/* ---- SUBMIT BUTONU ---- */
.wpforms-submit-container {
    margin-top: 30px !important;
    text-align: left !important;
}

.wpforms-submit,
button[type="submit"].wpforms-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 16px 52px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #ed1c24 0%, #c41820 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow:
        0 8px 25px rgba(237, 28, 36, 0.35),
        0 2px 8px rgba(237, 28, 36, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

.wpforms-submit:hover {
    transform: translateY(-3px) !important;
    box-shadow:
        0 15px 35px rgba(237, 28, 36, 0.45),
        0 5px 15px rgba(237, 28, 36, 0.3) !important;
    background: linear-gradient(135deg, #ff2d35 0%, #d41e26 100%) !important;
}

.wpforms-submit:active {
    transform: translateY(-1px) !important;
}

/* ---- HATA MESAJLARI ---- */
label.wpforms-error {
    color: #ed1c24 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-top: 5px !important;
    display: block !important;
}

.wpforms-form input.wpforms-error,
.wpforms-form select.wpforms-error,
.wpforms-form textarea.wpforms-error {
    border-color: #ed1c24 !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1) !important;
}

/* ---- BAŞARILI MESAJ ---- */
.wpforms-confirmation-container-full,
.wpforms-confirmation-container {
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%) !important;
    border: 2px solid #4caf50 !important;
    border-radius: 16px !important;
    padding: 40px !important;
    text-align: center !important;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.15) !important;
}

.wpforms-confirmation-container-full p,
.wpforms-confirmation-container p {
    color: #2e7d32 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .wpforms-form {
        padding: 30px 20px !important;
        border-radius: 16px !important;
    }

    .wpforms-submit {
        width: 100% !important;
        padding: 16px 30px !important;
    }
}

@media (max-width: 480px) {
    .wpforms-form {
        padding: 24px 16px !important;
    }
}
