/*
Theme Name: Korana Yazılım
Theme URI: https://www.koranayazilim.com.tr/
Author: Korana Yazılım
Author URI: https://www.koranayazilim.com.tr/
Description: Korana Yazılım için özel olarak hazırlanmış, modern, şık ve SEO uyumlu WordPress teması.
Version: 1.1.0
Requires at least: 6.0
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: korana-yazilim
*/

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family-base);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Main Menu Styling (Fix for WordPress Standard Output) */
.navbar-nav {
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Desktop Layout Fix */
@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row !important; /* Force row on desktop */
        display: flex !important;
    }
    
    .navbar-nav > .menu-item {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

.navbar-nav .menu-item {
    position: relative;
    list-style: none;
}

.navbar-nav > .menu-item > a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-nav > .menu-item > a:hover,
.navbar-nav > .menu-item.current-menu-item > a {
    color: var(--primary-color);
}

/* Dropdown Menu (Sub-menu) */
.navbar-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    border-radius: 0.25rem;
    z-index: 1000;
    list-style: none;
    margin: 0;
    border-top: 3px solid var(--primary-color);
}

.navbar-nav .menu-item:hover > .sub-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.navbar-nav .sub-menu .menu-item {
    display: block; /* Ensure list items stack vertically */
    width: 100%;
}

.navbar-nav .sub-menu .menu-item a {
    display: block;
    padding: 0.5rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.navbar-nav .sub-menu .menu-item a:hover {
    color: var(--primary-color);
    background-color: #f8f9fa;
    padding-left: 1.8rem; /* Slight movement effect */
}

/* Dropdown Arrow Indicator */
.navbar-nav .menu-item-has-children > a::after {
    content: "\f107"; /* FontAwesome Down Arrow */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 0.5rem;
    font-size: 0.8em;
    opacity: 0.5;
}

.navbar-nav .sub-menu .menu-item-has-children > a::after {
    content: "\f105"; /* Right Arrow for nested menus */
    float: right;
}

/* Nested Dropdowns (Level 3+) */
.navbar-nav .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu Adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        flex-direction: column !important;
        align-items: flex-start;
    }

    .navbar-nav .sub-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        padding-left: 1rem;
        background: transparent;
        display: none; /* Hidden by default on mobile too */
        width: 100%;
    }
    
    /* Show submenu on hover/click on mobile - simplified for CSS only */
    .navbar-nav .menu-item:hover > .sub-menu {
        display: block;
    }

    .navbar-nav .sub-menu .sub-menu {
        margin-top: 0;
    }
    
    .navbar-nav .menu-item-has-children > a::after {
        float: right;
    }
    
    .navbar-nav > .menu-item {
        width: 100%;
    }
}

/* Old Nav Link Styles (Kept for compatibility but overridden above where needed) */
.nav-link {
    font-weight: 600;
    color: #333 !important;
    transition: color 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.icon-box {
    transition: transform 0.3s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.1);
}

/* Accordion */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.1);
}

/* Footer */
.site-footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-color) !important;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
}

/* Utilities */
.ls-1 {
    letter-spacing: 1px;
}

.text-justify {
    text-align: justify;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1);
}

.my-float {
    margin-top: 0px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Content Styling */
.content-wrapper h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper h3 {
    color: var(--dark-color);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-wrapper ul {
    list-style: none;
    padding-left: 0;
}

.content-wrapper ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-wrapper ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

