/* Custom CSS Fixes */

/* Bootstrap renk değişkenleri */
:root {
    --bs-primary: #163172;
    --bs-primary-rgb: 22, 49, 114;
}

/* Sayfa başlığı arka plan rengi */
.page-header.bg-primary {
    background-color: #163172 !important;
}

/* Topbar mobil görünüm ayarları - Sadece masaüstünde görünsün */
@media (max-width: 991.98px) {
    header .top-bar,
    body header .top-bar,
    body .top-bar,
    .top-bar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
}

/* CNC Tezgahları Sayfası Minimal Tasarım */
.cnc-machines-section {
    margin-bottom: 50px;
}

.cnc-machine-item {
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border-radius: 5px;
    overflow: visible;
    background-color: transparent;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.cnc-machine-image {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    max-height: 280px;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cnc-machine-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cnc-machine-content {
    height: auto;
    padding: 12px 15px !important;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
}

.cnc-machine-content .machine-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #163172;
    margin-bottom: 8px;
    margin-top: 0;
    position: relative;
    padding-bottom: 5px;
    padding-top: 0;
}

.cnc-machine-content .machine-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: #163172;
}

.machine-description {
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
    max-height: 120px;
    overflow-y: auto;
    margin-top: 5px;
}

.machine-specs {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 15px;
    border-left: 3px solid #163172;
    margin-top: 0;
    font-size: 0.95rem;
    max-height: none;
    overflow-y: visible;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: block;
    width: 100%;
    position: relative;
    z-index: 5;
    margin-bottom: 30px;
    flex: 1 0 auto;
}

.specs-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #163172;
    margin-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.specs-content ul {
    padding-left: 20px;
    margin-bottom: 0;
    columns: 2;
}

.specs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.specs-content table td, .specs-content table th {
    padding: 8px;
    border: 1px solid #ddd;
}

.specs-content table th {
    background-color: #f2f2f2;
    font-weight: 600;
    text-align: left;
}

.specs-content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.specs-content p {
    margin-bottom: 10px;
}

.specs-content p:last-child {
    margin-bottom: 0;
}

.specs-content li {
    margin-bottom: 5px;
    break-inside: avoid;
}

@media (max-width: 767.98px) {
    .specs-content ul {
        columns: 1;
    }

    .cnc-machine-image {
        max-height: 180px;
    }

    .cnc-machine-image img {
        height: 180px;
    }

    .machine-description {
        max-height: 120px;
    }

    .machine-specs {
        padding: 12px;
    }

    .cnc-machine-content .machine-title {
        font-size: 1.3rem;
    }

    .specs-title {
        font-size: 1rem;
    }

    .cnc-machine-item {
        margin-bottom: 15px;
    }

    .cnc-machine-content {
        padding: 15px !important;
    }

    .row-cols-1 {
        margin-left: -10px;
        margin-right: -10px;
    }

    .row-cols-1 > .col {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 575.98px) {
    .cnc-machine-image {
        max-height: 160px;
    }

    .cnc-machine-image img {
        height: 160px;
    }

    .machine-description {
        max-height: 100px;
    }

    .machine-specs {
        padding: 10px;
    }

    .cnc-machine-content {
        padding: 12px !important;
    }

    .cnc-machine-content .machine-title {
        font-size: 1.2rem;
    }

    .specs-title {
        font-size: 0.95rem;
    }

    .row-cols-1 {
        margin-left: -5px;
        margin-right: -5px;
    }

    .row-cols-1 > .col {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Fix for social share buttons in blog posts */
.blog-share .social-icons {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.blog-share .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 50%;
    margin-right: 10px;
    color: #163172;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-decoration: none;
}

.blog-share .social-icons a:hover {
    background-color: #163172;
    color: #fff;
    transform: translateY(-3px);
    border-color: #163172;
}

/* Service share buttons fix */
.service-share .social-icons {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.service-share .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 50%;
    margin-right: 10px;
    color: #163172;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-decoration: none;
}

.service-share .social-icons a:hover {
    background-color: #163172;
    color: #fff;
    transform: translateY(-3px);
    border-color: #163172;
}

/* Kariyer Sayfası Stilleri */
.career-section {
    padding: 40px 0;
}

.job-card {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.job-card.featured {
    border-top: 3px solid #163172;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffc107;
    color: #212529;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 500;
}

.job-title {
    color: #163172;
    font-weight: 600;
}

.job-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.job-deadline {
    margin-top: 10px;
}

.career-benefits li {
    margin-bottom: 10px;
    list-style: none;
    padding-left: 0;
}

/* İş Detay Sayfası */
.job-detail-section {
    padding: 40px 0;
}

.job-details {
    margin-bottom: 30px;
}

.job-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.job-description h3,
.job-requirements h3 {
    color: #163172;
    font-weight: 600;
}

.job-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.job-share .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f8f9fa;
    border-radius: 50%;
    margin-right: 10px;
    color: #163172;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-decoration: none;
}

.job-share .social-icons a:hover {
    background-color: #163172;
    color: #fff;
    transform: translateY(-3px);
    border-color: #163172;
}

.application-form {
    margin-bottom: 30px;
}

.similar-jobs h3 {
    color: #163172;
    font-weight: 600;
    margin-bottom: 20px;
}

.similar-jobs h4 a {
    color: #333;
    transition: all 0.3s ease;
}

.similar-jobs h4 a:hover {
    color: #163172;
    text-decoration: none;
}

/* Footer Menü Stilleri */
footer .footer-menu li {
    margin-bottom: 8px;
}

footer .footer-menu li a {
    display: flex;
    align-items: center;
}

footer .footer-menu li a i {
    margin-right: 8px;
    transition: all 0.3s ease;
}

footer .footer-menu li a:hover i {
    transform: translateX(3px);
}

footer .footer-submenu {
    margin-top: 5px;
    margin-left: 15px;
}

footer .footer-submenu li {
    margin-bottom: 5px;
}

footer .footer-submenu li a {
    font-size: 0.9em;
    padding: 3px 0;
}

/* Footer Copyright Hizalama */
footer .footer-divider {
    margin: 20px 0;
    opacity: 0.2;
}

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

footer .footer-table {
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 0;
    height: 46px; /* Sabit yükseklik */
}

footer .copyright-cell {
    text-align: left;
    vertical-align: middle;
    padding: 0;
    line-height: 1.5;
    height: 46px;
}

footer .designer-cell {
    text-align: right;
    vertical-align: middle;
    padding: 0;
    line-height: 1.5;
    white-space: nowrap;
    height: 46px;
}

footer .designer-text {
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    footer .footer-table {
        height: auto;
    }

    footer .footer-table,
    footer .footer-table tbody,
    footer .footer-table tr,
    footer .footer-table td {
        display: block;
        width: 100%;
    }

    footer .copyright-cell,
    footer .designer-cell {
        text-align: center;
        padding: 5px 0;
        height: auto;
    }

    footer .designer-cell {
        margin-top: 5px;
    }
}
