body {
  margin: 0;
  padding: 0;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  background-color: #f5f6f8;
}

.navbar-nav .nav-link {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  display: inline-block;
  line-height: 1.2;
}

/* Sadece aktif link: kompakt arka plan */
.navbar-nav .nav-link.active {
  border: 2px dotted #fff;
  color: #fff !important;
}

@media (min-width: 768px) {
  #logouter {
    margin-left: 10px;
  }
}

/* Sadece mobilde alttan boşluk */
@media (max-width: 991.98px) {
  .navbar-nav .nav-item {
    margin-bottom: 0.4rem;
  }

  .navbar-nav .nav-item:first-child {
    margin-top: 0.6rem;
    /* sadece ilk item'e üstten boşluk */
  }
}

.logo-img {
  height: 30px;
  /* Navbar yüksekliğiyle dengeli */
  width: auto;
  /* oranı korur */
  object-fit: contain;
  padding: 2px 0;
  /* dikey hizalama daha iyi olur */
}

footer {
  background-color: #3d3d3d;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 100px;
}

.footer-top {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-bottom: 20px;
}

.footer-top a {
  color: white;
}

.footer-top a:hover {
  color: #0d6efd;
}

.footer-middle {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding-bottom: 20px;
}

.footer-middle a {
  color: white;
  text-decoration: none;
}

.footer-middle a:hover {
  text-decoration: underline;
}

.footer-bottom {
  font-size: 14px;
  padding-top: 20px;
  border-top: 1px solid #707070;
}

footer p {
  margin: 0;
}

@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-top {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .footer-middle {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 25px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}

/* Index Page */

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product {
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  background-color: white;
}

.product img {
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .content-wrapper {
    display: flex;
  }

  .main-content {
    flex: 3;
  }
}

h5.product-name {
  font-size: 16px;
  font-weight: bold;
}

h5.product-name:hover {
  color: #002d70;
}

/* End of Index Page */

.navbar-toggler {
  border: var(--bs-border-width) solid rgb(255 255 255 / 16%);
}

.hero-section {
  background: linear-gradient(135deg, #557bff, #88e377);
  color: white;
  padding: 100px 0;
  text-align: center;
}
.service-card {
  transition: transform 0.3s;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-icon {
  font-size: 2.5rem;
  color: #6e8efb;
}

#services {
  background-color: white;
}

.custom-btn:hover {
  color: black !important;
}

table.table-bordered,
table.table-bordered th,
table.table-bordered td {
  border: 1px solid #0000009e !important;
}

.breadcrumb {
  background-color: transparent;
  padding: 1rem 0;
  margin-bottom: 0;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

/* Her breadcrumb öğesi tek satırda, sıkışmadan görünür */
.breadcrumb-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-width: fit-content;
}

/* Son öğe (post.title) taşarsa üç nokta ekle */
.breadcrumb-item.active {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  min-width: 0; /* ellipsis'in çalışması için önemli */
}

/* Mobil uyum */
@media (max-width: 576px) {
  .breadcrumb {
    font-size: 0.85rem;
  }
}

.post-title {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin: 0.4rem 0 1.7rem 0;
  line-height: 1.2;
}

@media (min-width: 767px) {
  .post-title {
    padding: 0 7rem 0 2rem;
  }
}

.featured-image-mobile {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: -10px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 10rem;
  height: auto;
  border-radius: 8px;
}

.featured-image-desktop {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  width: 100%;
  max-width: 16rem;
  height: auto;
  border-radius: 8px;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.5);
}

.post-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #000000;
}

.post-content p {
  margin-bottom: 1.5rem;
}

/* Desktop Sidebar */
.sidebar-desktop {
  position: relative;
}

.sidebar-banner-desktop {
  width: 175px;
  position: sticky;
  top: 20px;
  border-radius: 8px;
}

.sidebar-banner-desktop img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Mobile Sidebar */
.sidebar-mobile {
  display: none;
}

.sidebar-banner-mobile img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .sidebar-desktop {
    display: none;
  }

  .sidebar-mobile {
    display: block;
  }

  .post-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .post-title {
    font-size: 1.5rem;
  }

  .post-content {
    padding: 1.5rem;
    font-size: 1rem ;
  }
}


@media (max-width: 767px) {
  .featured-image-desktop {
    display: none;
  }
}

@media (min-width: 767px) {
  .breadcrumb {
    margin-left: 100px;
  }

  .featured-image-mobile {
    display: none;
  }
}

li a {
  color: #0049b5;
}

li a:hover {
  color: #992400;
}

.form-control {
  border: var(--bs-border-width) solid #c5c5c5 !important;
}

.form-select {
  border: var(--bs-border-width) solid #c5c5c5 !important;
}

.form-label {
  font-weight: bold;
}

a.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  text-decoration: none;
  color: #0d6efd;
  font-weight: 500;
}

a.back-link:hover {
  text-decoration: underline;
}

#firstTD {
  word-wrap: break-word;
  white-space: normal;
  max-width: 44ch;
}

#secondTD {
  word-wrap: break-word;
  white-space: normal;
  max-width: 21ch;
}

#back-link {
  display: flex;
  justify-content: flex-start;
}

#back-link b {
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
}

/* Tablo container - yatay kaydırma için */
.bsod-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tablo temel stilleri */
.bsod-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Tablonun minimum genişliği */
    font-size: 14px;
}

/* Başlık stilleri */
.bsod-table thead {
    background-color: #0066cc;
    color: white;
}

.bsod-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #004999;
}

/* Hücre stilleri */
.bsod-table td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
    word-wrap: break-word;
    word-break: break-word;
}

/* Satır stilleri */
.bsod-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.bsod-table tbody tr:hover {
    background-color: #f0f0f0;
}

/* Mobile responsive ayarları */
@media screen and (max-width: 768px) {
    .bsod-table {
        font-size: 12px;
        min-width: 500px;
    }
    
    .bsod-table th,
    .bsod-table td {
        padding: 8px 6px;
    }
}

@media screen and (max-width: 480px) {
    .bsod-table {
        font-size: 11px;
        min-width: 400px;
    }
    
    .bsod-table th,
    .bsod-table td {
        padding: 6px 4px;
    }
}