:root {
  --green: #1f8f4e;
  --dark-green: #146437;
  --light-green: #e9f7ef;
  --white: #ffffff;
  --text: #203229;
  --muted: #5b6b63;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #f7faf8;
  font-size: 18px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1320px, 94%);
  margin: 0 auto;
}

.header {
  background: var(--white);
  border-bottom: 1px solid #d9e8de;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: var(--dark-green);
  font-size: 1.2rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dark-green), var(--green));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.menu > li {
  position: relative;
}

.has-dropdown {
  padding-bottom: 14px;
  margin-bottom: -14px;
}

.menu > li > a {
  display: block;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
}

.menu > li > a:hover,
.menu > li > a.active {
  background: var(--light-green);
  color: var(--dark-green);
}

.dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  min-width: 240px;
  background: #fff;
  border: 1px solid #d9e8de;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
  padding: 0.45rem;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0s linear 0.38s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.dropdown a {
  display: block;
  padding: 0.72rem 0.8rem;
  border-radius: 8px;
  color: var(--muted);
}

.dropdown a:hover {
  background: var(--light-green);
  color: var(--dark-green);
}

.hero {
  background: #fff;
  margin-top: 1.2rem;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  border: 1px solid #d9e8de;
}

.hero-content {
  padding: 2.8rem;
}

.hero h1 {
  margin-top: 0;
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.2;
}

.hero h1 span {
  color: var(--green);
}

.hero p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.08rem;
}

.cta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.btn {
  background: var(--green);
  color: #fff;
  border: 0;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
}

.btn.secondary {
  background: #fff;
  color: var(--green);
  border: 1px solid var(--green);
}

.hero {
  background: #fff;
  margin-top: 1.2rem;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  border: 1px solid #d9e8de;
  max-height: 520px;
  height: 520px;
}

.hero-image-upload {
  position: relative;
  min-height: 420px;
  background: linear-gradient(rgba(24, 55, 37, 0.24), rgba(24, 55, 37, 0.22)),
    url(fotokato.JPG) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.1rem;
}




.section {
  margin: 2.4rem 0;
}

.section h2 {
  margin-bottom: 0.85rem;
  color: var(--dark-green);
  font-size: 1.65rem;
}

.section p {
  font-size: 1.05rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 0.95rem;
}

.media-slot {
  display: block;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #d9e8de;
  padding: 0.7rem;
}

.media-slot .media {
  height: 150px;        
  overflow: hidden;     
  padding: 0;
}

.media-slot .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* düzgün sığdırır */
  display: block;
  border-radius: 8px;
}

.media-slot .caption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #3e5449;
}

.page-box {
  background: #fff;
  border: 1px solid #d9e8de;
  border-radius: 16px;
  padding: 1.6rem;
  margin-top: 1.2rem;
}

.page-box h1 {
  font-size: 2rem;
  margin: 0 0 0.6rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #d9e8de;
  border-radius: 14px;
  margin-top: 1rem;
  background: #fff;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  margin-top: 0;
}

th,
td {
  border: 1px solid #cde0d2;
  padding: 0.65rem;
  text-align: left;
  font-size: 1rem;
}

th {
  background: #ecf9f0;
  color: var(--dark-green);
}

tbody tr:nth-child(even) {
  background: #f9fdfb;
}

.map {
  width: 100%;
  border: 0;
  min-height: 360px;
  border-radius: 12px;
}

.footer {
  margin-top: 2.7rem;
  background: var(--dark-green);
  color: #d8f1e1;
  padding: 1.1rem 0;
  text-align: center;
  font-size: 1rem;
}

@media (max-width: 960px) {
  body {
    font-size: 17px;
  }

  .container {
    width: min(1360px, 96%);
  }

  .nav {
    min-height: 82px;
    align-items: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 2rem;
  }

  .hero-image-upload {
    min-height: 340px;
  }

  .page-box {
    padding: 1.3rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .menu {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  .menu > li > a {
    padding: 0.78rem 0.88rem;
    font-size: 0.99rem;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.5rem 0;
  }

  .menu {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-content {
    padding: 1.4rem;
  }

  .hero-image-upload {
    min-height: 280px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(145px, 1fr));
  }
}

@media (max-width: 420px) {
  body {
    font-size: 16px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .menu > li > a {
    padding: 0.7rem 0.72rem;
    font-size: 0.94rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-upload {
    min-height: 220px;
  }

  table {
    min-width: 640px;
  }
}
