/* ========== GLOBAL ========== */
:root {
  --primary: #8cbf2a;         /* logo yaprak yeşili */
  --primary-soft: #f1f7e6;    /* çok açık yeşilimsi arka plan */
  --accent: #a4ce39;          /* ikinci yeşil ton */
  --dark: #333739;            /* logo yazısına yakın koyu gri */
  --text: #4a4f54;            /* gövde metin rengi */
  --muted: #8a929a;           /* soluk metin / açıklama rengi */
  --bg: #f7f8fa;              /* sayfa arka planı */
  --radius-lg: 1.1rem;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.15);
  --transition: all 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Helpers */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ========== HEADER / NAV ========== */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Üst beyaz barın yüksekliği ve hizası */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;   /* LOGO + sağdaki yazıların ALT çizgisini hizalar */
  gap: 1.5rem;
  padding: 0.6rem 0 0.4rem;
}

/* PNG LOGO */
.logo-group {
  display: flex;
  align-items: flex-end;
}

.logo-img {
  height: 72px;            /* büyük gelirse 68 / 64 yapabilirsin */
  width: auto;
  display: block;
  margin-top: -6px;        /* PNG’nin üstteki transparan boşluğunu telafi eder */
}

/* Sağdaki küçük linkler */
.top-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.top-links-small {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.top-links-small a:hover {
  color: var(--primary);
}

.top-phone {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

/* MAIN NAV */

.navbar {
  background: var(--primary);
  color: #f9fafb;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.nav-menu a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255, 255, 255, 0.14);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-search input {
  border-radius: 999px;
  border: none;
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  width: 140px;
}

.nav-search button {
  border-radius: 999px;
  border: none;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: white;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.nav-search button:hover {
  background: #f3faf7;
}

/* ========== HERO (index) ========== */

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 0.8rem 0 0.4rem;
  color: var(--dark);
}

.hero-lead {
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 14px 25px rgba(140, 191, 42, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(140, 191, 42, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(140, 191, 42, 0.35);
}

.btn-secondary:hover {
  background: var(--primary-soft);
}

.hero-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta strong {
  color: var(--dark);
}

.hero-image-card {
  background: white;
  border-radius: 1.4rem;
  padding: 0.9rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-image-main {
  border-radius: 1rem;
  overflow: hidden;
}

.hero-tag-strip {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.75rem;
}

.hero-tag-strip span {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

/* ========== FEATURE PROGRAMS GRID (index) ========== */

.section {
  padding: 1rem 0 2.5rem;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
}

.section-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.15);
}

.card-image {
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 0.9rem 1rem 1.1rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.card-location {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.card-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(164, 206, 57, 0.15);
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.card-footer {
  margin-top: 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.card-footer a {
  font-weight: 600;
  color: var(--primary);
}

.card-footer a:hover {
  text-decoration: underline;
}

/* ========== PAGE TOP (subpages) ========== */

.page-hero {
  padding: 2.2rem 0 1.3rem;
}

.page-breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.page-breadcrumb a {
  color: var(--primary);
}

.page-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dark);
}

.page-lead {
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 40rem;
  margin-top: 0.35rem;
}

/* Program detail layout */

.program-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.program-main {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.program-main h2 {
  font-size: 1.1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.program-main ul {
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.program-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.program-photo {
  background: white;
  border-radius: var(--radius-lg);
  padding: 0.7rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.info-row span:first-child {
  color: var(--muted);
}

.info-row span:last-child {
  font-weight: 500;
}

/* ========== GENERIC CONTENT (YURTDIŞI vb.) ========== */

.text-block {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  font-size: 0.92rem;
}

.text-block h2 {
  font-size: 1.05rem;
  margin-top: 0.4rem;
}

.text-block p + p {
  margin-top: 0.4rem;
}

.feature-list {
  margin-top: 0.7rem;
  padding-left: 1.1rem;
}

/* ========== CONTACT ========== */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.contact-form,
.contact-info {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.form-row {
  display: flex;
  gap: 0.9rem;
}

.form-group {
  margin-bottom: 0.8rem;
  width: 100%;
}

label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-family: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* ========== FOOTER ========== */

footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.2rem 0;
  font-size: 0.8rem;
  color: var(--muted);
  background: #f9fafb;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
  .hero-grid,
  .program-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image-card {
    order: -1;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-search {
    width: 100%;
  }

  .nav-search input {
    flex: 1;
    width: auto;
  }
}
