:root {
  --efp-anthracite: #1a2028;
  --efp-navy: #0f2a4a;
  --efp-teal: #0d7377;
  --efp-teal-light: #14a3a8;
  --efp-accent: #f4a259;
  --efp-text-dark: #212529;
  --efp-text-light: #e9ecef;
  --efp-section-alt: #f3f6f9;
}

body {
  color: var(--efp-text-dark);
}

.navbar-brand, .navbar-nav .nav-link {
  color: var(--efp-text-light) !important;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.navbar-brand-logo {
  height: 38px;
  width: auto;
}

.navbar-spacer {
  padding-top: 4rem;
}

.navbar-efp {
  background-color: var(--efp-anthracite) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.navbar-efp .nav-link {
  position: relative;
  padding-bottom: 0.35rem;
  margin-inline: 0.15rem;
  transition: color 0.15s ease;
}

.navbar-efp .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background-color: var(--efp-accent);
  transition: right 0.2s ease;
}

.navbar-efp .nav-link:hover {
  color: #ffffff !important;
}

.navbar-efp .nav-link:hover::after {
  right: 0;
}

/* Hero */
.hero-efp {
  background: linear-gradient(135deg, var(--efp-anthracite) 0%, var(--efp-navy) 55%, var(--efp-teal) 100%);
  color: var(--efp-text-light);
  position: relative;
  overflow: hidden;
}

.hero-efp::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero-icerik {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.hero-logo-plate {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Beyaz zemin: sağ kenarda yarım ton (halftone) noktalı geçişle laciverte karışır */
.hero-logo-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #f7f8fa;
}

.hero-logo-plate::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 168px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='168'%20height='12'%20fill='%23f7f8fa'%3E%3Ccircle%20cx='6.0'%20cy='6.0'%20r='8.60'/%3E%3Ccircle%20cx='18.0'%20cy='6.0'%20r='7.75'/%3E%3Ccircle%20cx='30.0'%20cy='6.0'%20r='6.93'/%3E%3Ccircle%20cx='42.0'%20cy='6.0'%20r='6.14'/%3E%3Ccircle%20cx='54.0'%20cy='6.0'%20r='5.37'/%3E%3Ccircle%20cx='66.0'%20cy='6.0'%20r='4.63'/%3E%3Ccircle%20cx='78.0'%20cy='6.0'%20r='3.93'/%3E%3Ccircle%20cx='90.0'%20cy='6.0'%20r='3.26'/%3E%3Ccircle%20cx='102.0'%20cy='6.0'%20r='2.63'/%3E%3Ccircle%20cx='114.0'%20cy='6.0'%20r='2.03'/%3E%3Ccircle%20cx='126.0'%20cy='6.0'%20r='1.49'/%3E%3Ccircle%20cx='138.0'%20cy='6.0'%20r='1.00'/%3E%3Ccircle%20cx='150.0'%20cy='6.0'%20r='0.56'/%3E%3Ccircle%20cx='162.0'%20cy='6.0'%20r='0.21'/%3E%3C/svg%3E") repeat-y;
  pointer-events: none;
}

.hero-logo {
  position: relative;
  width: 320px;
  max-width: 100%;
}

.hero-metin {
  flex: 1 1 320px;
  align-self: center;
}

/* Yazılar noktalı geçiş şeridi (168px) bittikten sonra başlasın */
@media (min-width: 768px) {
  .hero-metin {
    padding-left: calc(168px + 1.5rem) !important;
  }
}

.hero-efp h1 {
  color: #ffffff;
  font-weight: 700;
}

/* Phones: the logo plate shrinks to the screen; the short title (home.php) stays on one line, sized to the screen width */
@media (max-width: 767.98px) {
  .hero-logo-plate {
    flex: 1 1 100%;
  }

  .hero-metin {
    min-width: 0;
    container-type: inline-size;
  }

  /* The 40-letter title is about 20 font sizes wide (wide fonts), so this keeps it inside the box */
  .hero-baslik-kisa {
    font-size: min(calc(100cqi / 20.5), 2rem);
  }
}

.hero-slogan {
  color: var(--efp-accent) !important;
}

.hero-sub {
  color: var(--efp-text-light);
  opacity: 0.85;
}

/* Section backgrounds */
.section-alt {
  background-color: var(--efp-section-alt) !important;
}

/* Phones: the hero and the grey sections run edge to edge as color bands (out of the page's px-4 side padding) */
@media (max-width: 767.98px) {
  main .hero-efp,
  main .section-alt {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    border-radius: 0 !important;
  }
}

.section-heading {
  color: var(--efp-navy);
  font-weight: 700;
  border-left: 4px solid var(--efp-accent);
  padding-left: 0.6rem;
}

.list-check {
  list-style: none;
  padding-left: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.75rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.15rem;
  height: 1.15rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d7377'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Home page category pills link to their section on /Hizmetler; the fixed navbar must not cover it */
.kategori-bolum {
  scroll-margin-top: 4.5rem;
}

a.sektor-item:hover,
a.sektor-item:focus {
  color: var(--efp-teal);
  text-decoration: underline !important;
}

.sektor-link-ikon {
  flex-shrink: 0;
  color: var(--efp-teal);
}

.sektor-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  padding: 0.75rem 1rem;
  background-color: #fff;
  border-left: 4px solid var(--efp-accent);
  border-radius: 0.4rem;
  font-weight: 600;
  color: var(--efp-navy);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.content-card {
  background-color: #fff;
  border-left: 4px solid var(--efp-accent);
  border-radius: 0.4rem;
  padding: 1rem 1.25rem;
  color: var(--efp-text-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card-img-thumb {
  height: 160px;
  object-fit: cover;
}

.hizmet-thumb {
  height: 110px;
  object-fit: contain;
  background-color: #f3f6f9;
}

.hizmet-card {
  cursor: pointer;
}

.buyuk-foto-alani {
  display: flex;
  justify-content: center;
}

.buyuk-foto {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 0.4rem;
}

/* Gallery page checkboxes: the popup shows every page; on wide screens categories sit in two columns. */
@media (min-width: 992px) {
  .galeri-sayfalar {
    column-count: 2;
    column-gap: 2rem;
  }
}

.galeri-sayfa-grup {
  break-inside: avoid;
}

.admin-galeri-thumb {
  height: 140px;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
}

.faaliyet-card {
  display: block;
  overflow: hidden;
}

.faaliyet-card:hover .hizmet-thumb {
  transform: scale(1.04);
}

.faaliyet-card .hizmet-thumb {
  transition: transform 0.15s ease;
}

.card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn-efp-accent {
  background-color: var(--efp-accent);
  border-color: var(--efp-accent);
  color: var(--efp-text-dark);
}

.galeri-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.galeri-yan {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.galeri-grid-yan {
  flex: 0 1 232px;
  max-height: 70vh;
  overflow-y: auto;
  align-content: flex-start;
}

.galeri-kapak {
  flex: 0 1 560px;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.4rem;
  overflow: hidden;
  min-height: 200px;
  background-color: var(--efp-anthracite);
}

.galeri-kapak img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.galeri-thumb {
  position: relative;
  cursor: pointer;
  border-radius: 0.4rem;
  overflow: hidden;
  width: 110px;
  height: 110px;
  flex: 0 0 auto;
  background-color: var(--efp-anthracite);
}

.galeri-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.15s ease;
}

.galeri-thumb:hover img {
  transform: scale(1.06);
}

.galeri-thumb-fallback {
  width: 100%;
  height: 100%;
  background-color: var(--efp-anthracite);
}

.galeri-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.75rem;
  background: rgba(0, 0, 0, 0.25);
}

.galeri-icerik {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem;
}

.galeri-buyuk-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.galeri-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  z-index: 2;
}

.galeri-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.galeri-prev {
  left: 0.5rem;
}

.galeri-next {
  right: 0.5rem;
}

.btn-efp-accent:hover {
  filter: brightness(0.92);
  color: var(--efp-text-dark);
}

a {
  color: var(--efp-teal);
}

a:hover {
  color: var(--efp-teal-light);
}

footer.footer-efp {
  background-color: var(--efp-anthracite);
  color: var(--efp-text-light);
  padding-bottom: 1rem;
}

footer.footer-efp a {
  color: var(--efp-text-light);
  text-decoration: none;
}

footer.footer-efp a:hover,
footer.footer-efp a:focus {
  color: var(--efp-accent);
  text-decoration: underline;
}

footer.footer-efp .footer-marka {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-baslik {
  color: var(--efp-accent);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-soluk {
  color: var(--efp-text-light);
  opacity: 0.85;
}

.footer-alt {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}

/* Brand in the top bar: goes to the home page */
.navbar-efp .navbar-marka {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.navbar-efp .navbar-marka:hover,
.navbar-efp .navbar-marka:focus {
  color: var(--efp-accent);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.aciklama-satirli {
  white-space: pre-line;
}

.faaliyet-aciklama {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Drag & drop ordering in the admin lists (siralama-scripts.php). */
.siralama-tutamac {
  width: 1%;
  cursor: grab;
}

.siralama-suruklenen {
  opacity: 0.4;
}

/* Call button on phones and tablets (layout.php); the footer gets room at the bottom so it covers nothing */
.ara-butonu {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  background-color: var(--efp-accent);
  color: var(--efp-anthracite);
  font-weight: 700;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
}

.ara-butonu:hover,
.ara-butonu:focus {
  background-color: var(--efp-accent);
  color: var(--efp-anthracite);
}

@media (max-width: 991.98px) {
  footer.footer-efp {
    padding-bottom: 5rem;
  }
}
