/*
Theme Name: Perminet Theme
Theme URI: https://perminet.com
Author: Perminet Technology
Author URI: https://perminet.com
Description: Özel tasarım Perminet blog teması
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: perminet-theme
*/

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* BLOG LAYOUT */
.blog-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.main-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* BLOG POST CARD */
.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.post-thumbnail {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 15px;
}

.post-meta i {
    color: #002b5c;
    margin-right: 5px;
}

.post-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #002b5c;
}

.post-excerpt {
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    background: #002b5c;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #001a3d;
}

/* SINGLE POST */
.single-post {
    background: white;
    border-radius: 15px;
    
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.single-post-title {
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.single-post-meta {
    display: flex;
    gap: 25px;
    padding: 20px 0;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 30px;
    font-size: 15px;
    color: #64748b;
}

.single-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    color: #0f172a;
    margin: 30px 0 15px 0;
    font-weight: 700;
}

.single-post-content h2 {
    font-size: 32px;
}

.single-post-content h3 {
    font-size: 26px;
}

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

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
}

.single-post-content ul,
.single-post-content ol {
    margin: 20px 0 20px 30px;
}

.single-post-content li {
    margin-bottom: 10px;
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #002b5c;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    background: white;
    border-radius: 8px;
    color: #002b5c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pagination a:hover {
    background: #002b5c;
    color: white;
}

.pagination .current {
    background: #002b5c;
    color: white;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .single-post {
        padding: 30px 20px;
    }

    .single-post-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 22px;
    }

    .single-post-title {
        font-size: 28px;
    }

    .main-content {
        padding: 25px;
    }
}

/* HEADER STYLES */
/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #002b5c 0%, #004080 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #001a3d 0%, #002b5c 100%);
}

/* BANNER */
#turuncu-banner {
    background-color: #ffc107;
    height: 44px;
    line-height: 24px;
    position: relative;
    text-align: center;
    overflow: hidden;
    display: block;
    width: 100%;
}

#banner-content { 
    display: flex; 
    transition: transform 0.5s ease-in-out; 
    width: 100%;
}

#banner-content > div { 
    min-width: 100%; 
    flex: 0 0 100%; 
    padding: 10px 0;
    white-space: nowrap;
}

/* HEADER */
header { 
    background: #ffffff; 
    position: sticky;
    top: 0;
    z-index: 999;
    min-height: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

/* DESKTOP NAVIGATION */
nav ul { 
    display: flex; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    align-items: center; 
}

nav ul li { 
    position: relative; 
}

nav ul li > a { 
    text-decoration: none; 
    display: block; 
    padding: 30px 15px; 
    color: #333; 
    font-weight: 600; 
}

.mega-menu {
    position: absolute; 
    top: 100%; 
    left: 50%; 
    transform: translateX(-50%);
    width: 1140px; 
    background: #fff; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    display: none;
    padding: 30px; 
    border-top: 3px solid #ffb400;
    z-index: 1000;
}

nav ul li:hover .mega-menu { 
    display: block; 
}

.service-menu-item {
    display: block;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: 1px solid transparent;
}

.service-menu-item:hover {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    transform: translateY(-2px);
}

.icon-box-small {
    width: 40px;
    height: 40px;
    background: #002244;
    color: #FFB800;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* HAMBURGER BUTTON */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 10002;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #002b5c;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 4px 0 30px rgba(0,0,0,0.5);
    z-index: 10001;
    overflow-y: auto;
    transition: transform 0.3s ease;
    padding: 20px 0 30px 0;
    transform: translateX(-100%);
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu-content {
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    color: #002b5c;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease;
}

.mobile-menu-item > a:hover {
    background: #f8f9fa;
}

.mobile-submenu-toggle {
    background: none;
    border: none;
    padding: 18px 25px;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #002b5c;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease;
}

.mobile-submenu-toggle:hover {
    background: #f8f9fa;
}

.mobile-submenu-toggle i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.mobile-submenu-toggle.active i {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    background: #f8f9fa;
    transition: max-height 0.4s ease;
}

.mobile-submenu.active {
    max-height: 2000px;
}

.mobile-submenu-item {
    padding: 15px 25px 15px 40px;
    border-bottom: 1px solid #e9ecef;
}

.mobile-submenu-item:last-child {
    border-bottom: none;
}

.mobile-submenu-item a {
    text-decoration: none;
    color: #002b5c;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mobile-icon-box {
    width: 36px;
    height: 36px;
    background: #002244;
    color: #FFB800;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.mobile-service-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #002b5c;
}

.mobile-service-info p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.mobile-auth-buttons {
    padding: 20px 25px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-auth-buttons a {
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.mobile-btn-login {
    background: transparent;
    color: #002b5c;
    border: 2px solid #002b5c;
}

.mobile-btn-login:hover {
    background: #002b5c;
    color: #fff;
}

.mobile-btn-signup {
    background: #002b5c;
    color: #fff;
    border: 2px solid #002b5c;
}

.mobile-btn-signup:hover {
    background: #001a3d;
    border-color: #001a3d;
}

/* RESPONSIVE HEADER */
@media (max-width: 991px) {
    #turuncu-banner {
        display: none !important;
    }

    nav, .header-buttons { 
        display: none !important; 
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    header {
        min-height: 60px;
    }

    .header-container {
        padding: 10px 15px !important;
    }

    .logo img {
        width: 180px !important;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 90%;
    }

    .logo img {
        width: 150px !important;
    }
}
.post-excerpt {
    word-wrap: break-word;       /* Eski tarayıcılar için */
    overflow-wrap: break-word;    /* Modern tarayıcılar için */
    word-break: break-all;       /* Hiç boşluk yoksa harf harf böler */
    hyphens: auto;               /* Gerekirse tireleme yapar */
    max-width: 100%;             /* Genişliğin dışına çıkmasını engeller */
}

/* Başlıklar için de benzer bir durum varsa bunu da ekleyin */
.post-title a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
