.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: smaller;
    font-style: italic;
}

.truncate-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.truncate-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.truncate-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.modal-dialog.large {
    width: 80% !important;
    max-width: unset;
}

.modal-dialog.mid-large {
    width: 50% !important;
    max-width: unset;
}

@media (max-width:900px) {
    .modal-dialog.large {
        width: 100% !important;
        max-width: unset;
    }
    .modal-dialog.mid-large {
        width: 100% !important;
        max-width: unset;
    }
    .modal-dialog {
        margin: unset !important;
    }
}

#viewer_modal .btn-close {
    position: absolute;
    z-index: 999999;
    /*right: -4.5em;*/
    background: unset;
    color: white;
    border: unset;
    font-size: 27px;
    top: 0;
}

#viewer_modal .modal-dialog {
    width: 80%;
    max-width: unset;
    height: calc(90%);
    max-height: unset;
}

#viewer_modal .modal-content {
    background: black;
    border: unset;
    height: calc(100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#viewer_modal img,
#viewer_modal video {
    max-height: calc(100%);
    max-width: calc(100%);
}

table.dataTable th,
table.dataTable td {
    padding: 5px !important;
}

#preloader {
    position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 9999;
      overflow: hidden;
      background: #6161614a;
      width: calc(100%);
      height: calc(100%);
      align-items: center;
      justify-content: center;
      display: flex;
  }
   #preloader .loader-holder{
    position: relative;
    width: 64px;
    height: 64px;
    margin: auto; 
  }
  
   #preloader .loader-holder div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 5px;
    border: 5px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #0088ff transparent transparent transparent;
  }
   #preloader .loader-holder div:nth-child(1) {
    animation-delay: -0.45s;
  }
   #preloader .loader-holder div:nth-child(2) {
    animation-delay: -0.3s;
  }
   #preloader .loader-holder div:nth-child(3) {
    animation-delay: -0.15s;
  }
  @keyframes lds-ring {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  .page-content img, .page-content video {
    max-width: 100% !important;
    object-fit: scale-down;
    object-position: center center;
}

.titleTxt span{
    color: #899bbd;
    font-size: 14px;
    font-weight: 400;
}
.table-responsive{
    overflow-x: unset;
}

/* Mobil Uyumluluk Kuralları */
@media (max-width: 768px) {
    /* Header ve Navigation */
    .header {
        padding: 0 15px;
    }
    
    .header .logo span {
        display: none;
    }
    
    .header .toggle-sidebar-btn {
        display: block;
    }
    
    /* Ana Sayfa Navigation */
    .header-nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        z-index: 999;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .header-nav.show {
        left: 0;
    }
    
    .header-nav ul {
        flex-direction: column !important;
        height: auto !important;
        padding: 20px;
        width: 100%;
        margin: 0;
    }
    
    .header-nav .nav-item {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .header-nav .nav-link {
        padding: 15px 20px;
        border-radius: 8px;
        background: rgba(65, 84, 241, 0.1);
        color: #4154f1;
        font-weight: 500;
        transition: all 0.3s ease;
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .header-nav .nav-link:hover {
        background: #4154f1;
        color: white;
    }
    
    /* Bootstrap 5 Collapse için */
    .header-nav .navbar-collapse {
        position: fixed !important;
        top: 60px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        transition: all 0.3s ease !important;
        z-index: 999 !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 20px !important;
        border: none !important;
        box-shadow: none !important;
        overflow-y: auto !important;
    }
    
    .header-nav .navbar-collapse.show {
        left: 0 !important;
    }
    
    /* Mobilde navigation overlay */
    .header-nav .navbar-collapse::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .header-nav .navbar-collapse ul {
        flex-direction: column !important;
        height: auto !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .header-nav .navbar-collapse .nav-item {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .header-nav .navbar-collapse .nav-link {
        padding: 15px 20px !important;
        border-radius: 8px !important;
        background: rgba(65, 84, 241, 0.1) !important;
        color: #4154f1 !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        margin: 0 !important;
    }
    
    .header-nav .navbar-collapse .nav-link:hover {
        background: #4154f1 !important;
        color: white !important;
    }
    
    /* Mobile Menu Button */
    .navbar-toggler {
        display: block !important;
        border: none !important;
        background: transparent !important;
        padding: 8px !important;
        margin-left: auto !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none !important;
    }
    
    .navbar-toggler-icon {
        width: 20px !important;
        height: 2px !important;
        background: #4154f1 !important;
        display: block !important;
        position: relative !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: '' !important;
        position: absolute !important;
        width: 20px !important;
        height: 2px !important;
        background: #4154f1 !important;
        transition: all 0.3s ease !important;
    }
    
    .navbar-toggler-icon::before {
        top: -6px !important;
    }
    
    .navbar-toggler-icon::after {
        bottom: -6px !important;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background: transparent !important;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
        transform: rotate(45deg) !important;
        top: 0 !important;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
        transform: rotate(-45deg) !important;
        bottom: 0 !important;
    }
    
    /* Ana İçerik */
    #main {
        margin-top: 60px;
        padding: 15px;
    }
    
    .pagetitle h1 {
        font-size: 20px;
    }
    
    /* Kartlar */
    .card {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* Tablolar */
    .table-responsive {
        overflow-x: auto;
    }
    
    .table th,
    .table td {
        padding: 8px 5px;
        font-size: 14px;
    }
    
    /* Butonlar */
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* Formlar */
    .form-control {
        font-size: 16px; /* iOS zoom'u önlemek için */
    }
    
    /* Modal */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    /* Site Header */
    #site-header {
        height: 300px;
    }
    
    #site-header .header-content {
        padding: 40px 20px;
    }
    
    #site-header .siteTitle {
        font-size: 28px;
    }
    
    /* Container */
    .container-xl {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Header container düzenleme */
    .header .container-lg {
        flex-wrap: wrap;
    }
    
    .header .d-flex.align-items-center.justify-content-between {
        order: 1;
        width: 100%;
        justify-content: space-between !important;
    }
    
    .header .header-nav {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    .header .d-flex.align-items-center.justify-content-between:last-child {
        order: 2;
        width: auto;
    }
    
    /* Logo mobilde düzgün görünsün */
    .header .logo {
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
    }
    
    .header .logo img {
        max-height: 40px !important;
        width: auto !important;
        margin-right: 10px !important;
    }
    
    .header .logo span {
        font-size: 18px !important;
        font-weight: 600 !important;
        color: #012970 !important;
    }
    
    @media (max-width: 576px) {
        .header .logo img {
            max-height: 35px !important;
        }
        
        .header .logo span {
            font-size: 16px !important;
        }
    }
}

@media (max-width: 576px) {
    /* Çok küçük ekranlar */
    #main {
        padding: 10px;
    }
    
    .pagetitle h1 {
        font-size: 18px;
    }
    
    .card-body {
        padding: 10px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    #site-header {
        height: 250px;
    }
    
    #site-header .siteTitle {
        font-size: 24px;
    }
    
    /* Tablo scroll */
    .table-responsive {
        border: none;
    }
    
    /* Modal tam ekran */
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }
    
    .modal-content {
        border-radius: 0;
        height: 100%;
    }
    
    /* Navigation daha kompakt */
    .header-nav .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Header daha kompakt */
    .header {
        padding: 0 10px;
    }
    
    .header .logo img {
        max-height: 30px;
    }
}

/* Touch cihazlar için */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .nav-link:hover {
        background-color: transparent;
    }
}

/* Landscape modunda */
@media (max-width: 768px) and (orientation: landscape) {
    #site-header {
        height: 200px;
    }
    
    #site-header .header-content {
        padding: 20px;
    }
    
    .header-nav {
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
}

/* Yüksek DPI ekranlar */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        border-width: 0.5px;
    }
}

/* Dark mode desteği */
@media (prefers-color-scheme: dark) {
    /* Dark mode için ek kurallar eklenebilir */
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Ana Sayfa Modern Tasarım */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.hero-section h1 {
    color: #012970;
    font-weight: 700;
}

.hero-section .lead {
    color: #6c757d;
    font-size: 1.1rem;
}

.feature-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
}

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

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon i {
    color: #4154f1;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

.service-preview-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    cursor: pointer;
}

.service-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.service-preview-card .service-icon i {
    transition: all 0.3s ease;
}

.service-preview-card:hover .service-icon i {
    transform: scale(1.1);
    color: #717ff5;
}

.stat-card {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4154f1 0%, #717ff5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-info-card, .map-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
}

.contact-info-card:hover, .map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.contact-item {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 10px;
}

.contact-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4154f1 0%, #717ff5 100%);
    border-radius: 50%;
    color: white !important;
}

.contact-icon i {
    color: white !important;
}

.map-container {
    position: relative;
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: scale(1.02);
}

.map-container iframe {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-cta-section {
    background: linear-gradient(135deg, #4154f1 0%, #717ff5 100%);
    position: relative;
    overflow: hidden;
}

.contact-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.contact-cta-section .container {
    position: relative;
    z-index: 1;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #4154f1 0%, #717ff5 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(65, 84, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(65, 84, 241, 0.4);
}

.btn-outline-primary {
    border: 2px solid #4154f1;
    color: #4154f1;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #4154f1;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        order: 2;
        margin-top: 2rem;
    }
    
    .hero-section .col-lg-6:last-child {
        order: 1;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .contact-cta-section {
        text-align: center;
    }
    
    .contact-cta-section .col-lg-4 {
        margin-top: 1rem;
    }
    
    .contact-info-card, .map-card {
        margin-bottom: 1rem;
    }
    
    .contact-item {
        padding: 0.75rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1.2rem !important;
    }
    
    .map-container {
        height: 300px !important;
    }
}

/* Anasayfa Mobil Uyumluluk */

@media (max-width: 768px) {
    /* Anasayfa Header */
    .header .container-lg {
        padding: 0 10px;
    }
    
    .header .header-nav {
        flex: 1;
        margin: 0 10px;
    }
    
    .header .header-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header .header-nav .nav-item {
        padding: 0 5px;
    }
    
    .header .header-nav .nav-link {
        font-size: 14px;
        padding: 8px 5px;
        white-space: nowrap;
    }
    
    .header .d-flex.align-items-center.justify-content-between:last-child {
        margin-left: auto;
    }
    
    .header .btn-primary {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    /* Anasayfa logo span gizle */
    .header .logo span {
        display: none;
    }
}

@media (min-width: 769px) {
    /* PC'de logo span göster */
    .header .logo span {
        display: block !important;
    }
}

/* iPhone SE ve çok küçük ekranlar için (375px ve altı) */
@media (max-width: 375px) {
    .header .container-lg {
        padding: 0 5px;
    }
    
    .header .logo img {
        max-height: 30px;
        width: auto;
    }
    
    /* Logo span görünür yap */
    .header .logo span {
        display: block !important;
        font-size: 12px;
        margin-left: 5px;
    }
    
    /* Giriş Yap butonunu düzelt */
    .header .btn-primary {
        font-size: 11px;
        padding: 5px 6px;
        white-space: nowrap;
    }
    
    /* Hamburger menü butonunu düzelt */
    .header .navbar-toggler {
        padding: 3px 5px;
        font-size: 12px;
        margin-left: 8px;
    }
    
    /* Header düzenleme */
    .header .d-flex.align-items-center.justify-content-between {
        flex-wrap: nowrap;
        gap: 3px;
    }
    
    /* Logo container'ı düzelt */
    .header .logo {
        flex-shrink: 0;
        margin-right: 8px;
    }
}

/* iPad ve orta boyutlu ekranlar için (768px ve altı, 375px üstü) */
@media (min-width: 376px) and (max-width: 768px) {
    .header .logo span {
        display: block !important;
    }
    
    .header .logo img {
        max-height: 40px;
        width: auto;
    }
    
    .header .btn-primary {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* PC'de navigation menüsünü göster */
@media (min-width: 769px) {
    .header .header-nav {
        display: block !important;
    }
    
    .header .header-nav ul {
        display: flex !important;
    }
    
    .header .header-nav .nav-item {
        display: block !important;
    }
    
    .header .header-nav .nav-link {
        display: block !important;
    }
}

/* Mobile Sidebar Styles - Homepage Specific */
/* Bu kurallar artık homepage-responsive.css'te tanımlı */

/* Mobil menü butonu için ek kurallar */
.navbar-toggler {
    display: block !important;
    border: none !important;
    padding: 8px 12px !important;
    background: transparent !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    position: relative !important;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: #333;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -6px;
}

.navbar-toggler-icon::after {
    bottom: -6px;
}

/* Mobil responsive düzeltmeler */
@media (max-width: 768px) {
    .header .header-nav {
        display: none !important;
    }
    
    .navbar-toggler {
        display: block !important;
    }
    
    /* Mobilde header'ın z-index'ini artır */
    .header {
        z-index: 9997 !important;
    }
    
    /* Mobilde body overflow'u kontrol et */
    body.sidebar-open {
        overflow: hidden !important;
    }
    
    /* Mobilde container'ı düzelt */
    .header .container-lg {
        position: relative !important;
        z-index: 9997 !important;
    }
}

@media (min-width: 769px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* Ana sayfa için navigation menüsünü düzelt - sadece PC'de */
@media (min-width: 769px) {
    .homepage .header .header-nav {
        position: static !important;
        left: auto !important;
        transform: none !important;
        width: auto !important;
        margin: 0 auto !important;
    }
}

