/* Ortak kategori yan paneli — projelerim referans görünümü */

body.dogus-layout .projects-layout,
body.dogus-layout .content-layout.gumus-content-layout,
body.dogus-layout .category-table-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
  width: 100%;
}

/* Sol panel kartı — detay tablo stili site-updates.css içinde */
body.dogus-layout .content-section-table,
body.dogus-layout .projects-layout .project-filters.content-section-table,
body.dogus-layout .category-table-sidebar {
  position: sticky;
  top: 98px;
  display: flex;
  flex-direction: column;
}

body.dogus-layout .category-table-link--see-all,
body.dogus-layout .content-section-tab--see-all,
body.dogus-layout .filter-chips [data-project-filter="all"] {
  margin-top: 0.65rem;
  padding-top: 0.85rem !important;
  border-top: 1px solid rgba(70, 155, 55, 0.16) !important;
}

body.dogus-layout .category-table-link--see-all,
body.dogus-layout .content-section-tab--see-all {
  background: #529a3a !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
}

body.dogus-layout .category-table-link--see-all:hover,
body.dogus-layout .content-section-tab--see-all:hover {
  background: #469b37 !important;
  color: #fff !important;
}

body.dogus-layout .category-table-link--see-all.is-active,
body.dogus-layout .content-section-tab--see-all.is-active {
  background: #529a3a !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.dogus-layout .content-layout.gumus-content-layout.is-show-all .content-sections .content-block {
  display: block;
}

body.dogus-layout .content-layout.gumus-content-layout.is-show-all .content-sections .content-block + .content-block {
  margin-top: 1rem;
}

body.dogus-layout .content-section-table .project-search,
body.dogus-layout .category-table-sidebar .project-search,
body.dogus-layout .projects-layout .project-search {
  width: 100%;
  max-width: none;
  padding: 0.85rem 1rem;
  margin: 0 0 0.35rem;
  border: 1px solid #e4e6e2 !important;
  border-radius: 10px !important;
  font: inherit;
  font-size: 0.95rem;
  background: #fff !important;
  color: #1e2d3d !important;
  box-shadow: none !important;
}

body.dogus-layout .content-section-table .project-search::placeholder,
body.dogus-layout .category-table-sidebar .project-search::placeholder,
body.dogus-layout .projects-layout .project-search::placeholder {
  color: #9aa3ab;
}

body.dogus-layout .content-section-table .filter-chips {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: none;
}

/* Sekme / kategori satırları */
body.dogus-layout .content-section-tab,
body.dogus-layout button.content-section-tab,
body.dogus-layout .category-table-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.85rem 1.05rem;
  border: none !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #1e2d3d !important;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

body.dogus-layout .content-section-tab:hover,
body.dogus-layout .category-table-link:hover {
  transform: none;
}

body.dogus-layout .category-table-sidebar > .category-table-link:hover,
body.dogus-layout .content-section-table > .content-section-tab:hover,
body.dogus-layout .content-section-table > button.content-section-tab:hover {
  background: #fff !important;
  color: #469b37 !important;
  border: none !important;
}

body.dogus-layout .category-table-sidebar > .category-table-link--sub:hover {
  background: #fff !important;
  color: #469b37 !important;
  border-left: none !important;
}

body.dogus-layout .content-section-tab.is-active,
body.dogus-layout .category-table-link.is-active {
  background: transparent !important;
  color: #1e2d3d !important;
  border: none !important;
  box-shadow: none !important;
}

body.dogus-layout .category-table-link--sub {
  min-height: 36px;
  margin-left: 0.85rem;
  padding: 0.55rem 0.85rem 0.55rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #000000 !important;
  background: transparent !important;
  border: none !important;
  border-left: 2px solid rgba(82, 154, 58, 0.35) !important;
  border-radius: 0 8px 8px 0 !important;
}

body.dogus-layout .category-table-link--sub:hover {
  border-left-color: #529a3a !important;
}

body.dogus-layout .category-table-sidebar > .category-table-link--sub:hover {
  border-left: none !important;
}

body.dogus-layout .category-table-link--sub.is-active {
  background: transparent !important;
  color: #000000 !important;
  border-left: 2px solid rgba(82, 154, 58, 0.35) !important;
}

/* Hizmetler: aynı panel dili + alt menü */
body.dogus-layout .category-table-layout--services .category-table-sidebar {
  gap: 1px;
  padding: 7px;
}

body.dogus-layout .category-table-layout--services .category-table-link {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  position: relative;
}

body.dogus-layout .category-table-layout--services .category-table-link--parent::after {
  content: "+";
  margin-left: auto;
  color: #529a3a;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

body.dogus-layout .category-table-layout--services .category-table-link[data-category-target="all"]::after {
  content: none;
}

body.dogus-layout .category-table-layout--services .category-table-link.is-active.category-table-link--parent:not(.is-parent-open)::after {
  color: #fff;
}

body.dogus-layout .category-table-layout--services .category-table-link.is-parent-open.category-table-link--parent::after {
  content: "−";
  color: #2d6a1f !important;
}

body.dogus-layout .category-table-layout--services .category-table-link.is-parent-open:not(.is-active) {
  background: rgba(82, 154, 58, 0.1) !important;
  color: #3d7a2c !important;
}

body.dogus-layout .category-table-layout--services .category-table-link.is-parent-open.category-table-link--parent:not(.is-active)::after {
  color: #3d7a2c;
}

body.dogus-layout .category-table-layout--services .category-table-link--sub {
  display: none;
  opacity: 0;
  transform: translateY(-4px);
  margin-left: 0.9rem;
  margin-right: 0.15rem;
  min-height: 34px;
  padding: 0.5rem 0.75rem 0.5rem 1.05rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-left: 2px solid rgba(82, 154, 58, 0.4) !important;
  border-radius: 0 8px 8px 0 !important;
}

body.dogus-layout .category-table-layout--services .category-table-link--sub:not(.is-active) {
  background: #ffffff !important;
  color: #000000 !important;
}

body.dogus-layout .category-table-layout--services .category-table-link--sub:hover:not(.is-active) {
  background: rgba(82, 154, 58, 0.08) !important;
  color: #3d7a2c !important;
  border-left-color: #529a3a !important;
}

body.dogus-layout .category-table-layout--services .category-table-link--sub.is-active {
  background: rgba(82, 154, 58, 0.16) !important;
  color: #2f6b22 !important;
  border-left: 3px solid #529a3a !important;
  box-shadow: none !important;
}

body.dogus-layout .category-table-layout--services .category-table-link--sub.is-submenu-open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

body.dogus-layout .category-table-layout--services .category-table-link--sub::before {
  content: none;
}

/* Alt kategori: + yok — hiyerarşi okunaklı kalsın */
body.dogus-layout .category-table-layout--services .category-table-link--sub::after {
  content: none !important;
}

body.dogus-layout .content-sections {
  min-width: 0;
}

body.dogus-layout .content-sections .content-block {
  display: none;
  padding: 2rem 2.1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(70, 155, 55, 0.14);
  box-shadow: 0 10px 28px rgba(2, 22, 2, 0.06);
}

body.dogus-layout .content-sections .content-block.is-active {
  display: block;
  animation: gumusTabFade 0.32s ease both;
}

body.dogus-layout .content-sections .content-block h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid #529a3a;
  color: #047f04;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 800;
}

body.dogus-layout .content-sections .content-block p,
body.dogus-layout .content-sections .content-block .content-rich {
  color: #000000;
  line-height: 1.7;
}

body.dogus-layout .projects-results {
  min-width: 0;
}

body.dogus-layout .projects-results .project-group,
body.dogus-layout .projects-results .project-group-single {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  border: 1px solid rgba(70, 155, 55, 0.14);
  box-shadow: 0 10px 28px rgba(2, 22, 2, 0.06);
}

body.dogus-layout .projects-results .project-group-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 1.15rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid #529a3a;
  color: #047f04 !important;
}

body.dogus-layout .projects-table {
  display: grid;
  gap: 0.75rem;
}

body.dogus-layout .project-table-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) minmax(110px, auto) 28px;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(70, 155, 55, 0.16);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

body.dogus-layout .project-table-row:hover,
body.dogus-layout .project-table-row:focus-visible {
  border-color: #529a3a;
  box-shadow: 0 8px 22px rgba(2, 22, 2, 0.1);
  transform: translateY(-1px);
  outline: none;
}

body.dogus-layout .project-table-image {
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #5cb049, #2d6b24);
}

body.dogus-layout .project-table-image img,
body.dogus-layout .project-table-image .project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.dogus-layout .project-table-main h3 {
  margin: 0.35rem 0 0.25rem;
  color: #047f04;
  font-size: 1.05rem;
}

body.dogus-layout .project-table-desc {
  color: #000000;
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.dogus-layout .project-table-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  color: #000000;
  font-size: 0.88rem;
  text-align: right;
}

body.dogus-layout .project-table-meta strong {
  color: #529a3a;
}

body.dogus-layout .project-table-arrow {
  color: #529a3a;
  font-size: 1.8rem;
  line-height: 1;
}

@keyframes gumusTabFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  body.dogus-layout .projects-layout,
  body.dogus-layout .content-layout.gumus-content-layout,
  body.dogus-layout .category-table-layout {
    grid-template-columns: 1fr;
  }

  body.dogus-layout .content-section-table,
  body.dogus-layout .projects-layout .project-filters.content-section-table,
  body.dogus-layout .category-table-sidebar {
    position: static;
  }

  body.dogus-layout .project-table-row {
    grid-template-columns: 88px minmax(0, 1fr) 24px;
  }

  body.dogus-layout .project-table-meta {
    grid-column: 2 / 3;
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
