/* ==========================================================================
   PSEO & Landing Pages - Premium Corporate Design (v9)
   Matches the SerProfil global style.css identity
   ========================================================================== */

/* 1. Article Layout (Prose on Left, Sidebar on Right) */
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr 350px;
    }
}

/* 2. Prose Styling (Matches Premium Look) */
.prose {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}
.prose h2, .prose h3 {
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}
.prose h2 { font-size: 1.8rem; }
.prose h3 { font-size: 1.4rem; }

/* 3. Premium Responsive Grids */
/* For Services: Spacious, Premium Cards */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

/* For Districts (Iller/Ilceler): Slightly smaller but still premium badges */
.pin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* 4. Premium Card Overrides */
.service-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: #cbd5e1;
}
.service-card .s-tag {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    align-self: flex-start;
}
.service-card h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.service-card-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}
.service-card-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}
.service-card-links a:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* District Pin Styling */
.pin-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.pin-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary);
    color: var(--primary);
}
.pin-card svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 2rem;
}

/* FAQ Styling */
.faq-section {
    margin-top: 4rem;
}
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.faq-box {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.faq-box h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.faq-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Hero Section Updates specifically for PSEO pages to match home.php */
.hero {
    text-align: center;
    background: var(--hero-bg); /* Assuming style.css defines this, otherwise fallback */
}

/* =========================================
   STYLES MOVED FROM HEADER.PHP
   ========================================= */
/* =========================================
           GLOBAL VARIABLES (MATCHING REST OF SITE)
           ========================================= */
        :root { 
            --bg-body: #f4f7f9; 
            --header-h: 76px; 
            --primary: #1e3a8a; 
            --accent: #2563eb; 
            --border: #e2e8f0; 
            --text-muted: #475569; 
            --card-shadow: 0 20px 40px -10px rgba(15,23,42,0.1);
        }
        
        body { 
            margin: 0; 
            padding: 0; 
            font-family: 'Inter', system-ui, sans-serif; 
            background-color: var(--bg-body); 
            color: #0f172a; 
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        /* -----------------------------------------
           HERO SECTION (Matches page-header style)
           ----------------------------------------- */
        .hero { 
            background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%); 
            padding: calc(var(--header-h) + 4rem) 5% 8rem; 
            color: white; 
            position: relative; 
            overflow: hidden; 
            text-align: center;
        }
        
        .hero::before { 
            content: ''; 
            position: absolute; 
            width: 800px; 
            height: 800px; 
            border-radius: 50%; 
            top: -200px; 
            left: -200px; 
            background: rgba(37, 99, 235, 0.2); 
            filter: blur(100px); 
            z-index: 0;
        }
        
        .hero::after { 
            content: ''; 
            position: absolute; 
            width: 600px; 
            height: 600px; 
            border-radius: 50%; 
            bottom: -150px; 
            right: -100px; 
            background: rgba(14, 165, 233, 0.15); 
            filter: blur(100px); 
            z-index: 0;
        }

        .hero-content {
            position: relative;
            z-index: 10;
            max-width: 900px;
            margin: 0 auto;
        }

        .hero-badge {
            display: inline-block;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            margin-bottom: 2rem;
            backdrop-filter: blur(10px);
        }

        .hero-title { 
            font-family: 'Outfit', sans-serif;
            font-size: 1.8rem; 
            font-weight: 800; 
            margin-bottom: 1.5rem; 
            letter-spacing: -0.02em; 
            line-height: 1.2;
        }
        
        .hero-title span {
            color: #60a5fa;
        }

        .hero-subtitle { 
            font-size: 1.1rem; 
            opacity: 0.9; 
            max-width: 700px; 
            margin: 0 auto 2.5rem; 
            line-height: 1.7; 
            font-weight: 400; 
            color: #cbd5e1; 
        }

        .hero-actions {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            align-items: center;
            justify-content: center;
        }

        .btn-primary-hero { 
            background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%); 
            color: #fff; 
            text-decoration: none; 
            border-radius: 12px; 
            font-weight: 700; 
            font-size: 1.1rem;
            padding: 1.25rem 2.5rem;
            transition: all 0.3s ease; 
            display: inline-flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
            border: 1px solid #60a5fa;
            width: 100%;
            justify-content: center;
            box-sizing: border-box;
        }

        .btn-primary-hero:hover { 
            transform: translateY(-3px); 
            box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.5); 
        }

        .btn-outline-hero {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
            text-decoration: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 1.1rem;
            padding: 1.25rem 2.5rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            display: inline-flex;
            justify-content: center;
            width: 100%;
            box-sizing: border-box;
        }

        .btn-outline-hero:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.4);
        }

        /* -----------------------------------------
           CONTENT WRAPPER & CARDS
           ----------------------------------------- */
        .content-wrapper { 
            background: var(--bg-body); 
            padding: 0 5% 5rem; 
        }
        
        .content-card { 
            max-width: 1100px; 
            margin: -4rem auto 0; /* Overlaps with hero precisely like hizmetler.php */
            background: #fff; 
            padding: 3rem 1.5rem; 
            border-radius: 16px; 
            box-shadow: var(--card-shadow); 
            border: 1px solid var(--border); 
            position: relative; 
            z-index: 10; 
            margin-bottom: 4rem;
        }

        .section-title { 
            font-family: 'Outfit', sans-serif;
            font-size: 2rem; 
            color: #0f172a; 
            font-weight: 800; 
            letter-spacing: -0.02em; 
            text-align: center;
            margin-bottom: 1rem;
        }

        .section-desc {
            text-align: center;
            color: var(--text-muted);
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto 3rem;
            line-height: 1.7;
        }

        /* -----------------------------------------
           FEATURES GRID (Mobile First)
           ----------------------------------------- */
        .features-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .feature-box {
            background: #f8fafc;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 2.5rem;
            text-align: center;
            transition: all 0.3s ease;
        }

        .feature-box:hover {
            transform: translateY(-5px);
            border-color: var(--accent);
            box-shadow: 0 15px 30px -5px rgba(15,23,42,0.1);
        }

        .feature-icon {
            width: 64px;
            height: 64px;
            background: rgba(37, 99, 235, 0.1);
            color: var(--accent);
            border-radius: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
        }

        .feature-box h3 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.3rem;
            color: #0f172a;
            font-weight: 800;
            margin-bottom: 1rem;
        }

        .feature-box p {
            color: var(--text-muted);
            line-height: 1.6;
            margin: 0;
            font-size: 1rem;
        }

        /* -----------------------------------------
           HOW IT WORKS (Adım Adım)
           ----------------------------------------- */
        .steps-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            margin-top: 2rem;
        }

        .step-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 1.5rem;
        }

        .step-num {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            color: #fff;
            font-family: 'Outfit', sans-serif;
            font-size: 2rem;
            font-weight: 800;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
        }

        .step-text h4 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.3rem;
            color: #0f172a;
            margin: 0 0 0.5rem 0;
        }

        .step-text p {
            color: var(--text-muted);
            margin: 0;
            line-height: 1.6;
        }

        /* -----------------------------------------
           SEO RICH TEXT SETTINGS
           ----------------------------------------- */
        .seo-text h2 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.8rem;
            color: #0f172a;
            margin-top: 2.5rem;
            margin-bottom: 1rem;
            font-weight: 800;
        }
        
        .seo-text p {
            color: var(--text-muted);
            font-size: 1.05rem;
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }

        .seo-text ul {
            padding-left: 1.5rem;
            color: var(--text-muted);
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }

        .seo-text li {
            margin-bottom: 0.5rem;
        }

        /* -----------------------------------------
           FAQ STYLES
           ----------------------------------------- */
        .faq-item {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 12px;
            margin-bottom: 1rem;
            overflow: hidden;
        }

        .faq-question {
            padding: 1.5rem;
            font-weight: 700;
            color: #0f172a;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.05rem;
            transition: background 0.3s;
        }

        .faq-question:hover {
            background: #f8fafc;
        }

        .faq-icon {
            color: var(--accent);
            font-size: 1.5rem;
            transition: transform 0.3s;
        }

        .faq-answer {
            padding: 0 1.5rem;
            max-height: 0;
            overflow: hidden;
            transition: all 0.4s ease;
            color: var(--text-muted);
            line-height: 1.7;
        }

        .faq-item.active {
            border-color: var(--accent);
            box-shadow: 0 4px 15px rgba(37,99,235,0.1);
        }

        .faq-item.active .faq-question {
            color: var(--accent);
            border-bottom: 1px solid #f1f5f9;
        }

        .faq-item.active .faq-answer {
            padding: 1.5rem;
            max-height: 600px;
        }

        .faq-item.active .faq-icon {
            transform: rotate(45deg);
        }

        /* =========================================
           MEDIA QUERIES (TABLET & DESKTOP)
           ========================================= */
        @media (min-width: 640px) {
            .hero-title { font-size: 2.5rem; }
            .hero-actions { 
                flex-direction: row; 
            }
            .btn-primary-hero, .btn-outline-hero {
                width: auto;
            }
            .content-card { padding: 4rem; }
            .features-grid { grid-template-columns: repeat(2, 1fr); }
            
            .step-item {
                flex-direction: row;
                text-align: left;
            }
        }

        @media (min-width: 1024px) {
            .hero { padding: calc(var(--header-h) + 6rem) 5% 10rem; }
            .hero-title { font-size: 3rem; }
            .hero-subtitle { font-size: 1.25rem; }
            
            .features-grid { grid-template-columns: repeat(3, 1fr); }
            .steps-container { grid-template-columns: repeat(3, 1fr); }
            
            .step-item {
                flex-direction: column;
                text-align: center;
            }
        }
