* {
  box-sizing: border-box;
}

:root {
  --bg-dark: #1a1a1a;
  --bg-panel: #2a2a2a;
  --olive: #8a8c2d;
  --olive-dark: #6d6f24;
  --teal-dropdown: #2a4a4a;
  --red-accent: #d32f2f;
  --paper: #f0f0f0;
  --news-bg: #c8c8c8;
  --text-light: #e8e8e8;
  --text-muted: #b8b8b8;
  --frame-border: #3d3d3d;
  --teal-frame: #3a6b6b;
}

body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-light);
  background: var(--bg-dark);
  min-height: 100vh;
}

a {
  color: #9ec5ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-dark);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* --- Üst ince çubuk --- */
.utility-bar {
  background: #0d0d0d;
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #333;
}

.utility-bar a {
  color: var(--text-muted);
  margin-left: 12px;
}

.utility-bar a:hover {
  color: #fff;
}

.utility-left span {
  margin-right: 6px;
}

/* --- Ana başlık: MEB + isim + Atatürk --- */
.site-header {
  padding: 14px 16px 18px;
  background: linear-gradient(180deg, #222 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid #333;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 200px;
}

.header-brand img.meb-logo {
  width: 72px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.header-titles .il {
  margin: 0 0 2px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--red-accent);
  letter-spacing: 0.04em;
}

.header-titles h1 {
  margin: 0 0 4px 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.header-titles .subtext {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-right img.ataturk {
  height: 88px;
  width: auto;
  display: block;
  border: 2px solid var(--frame-border);
  object-fit: cover;
  background: #111;
}

.flag-mini {
  width: 52px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid #444;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* --- Zeytin yeşili menü + spiral delikler --- */
.nav-wrap {
  position: relative;
  background: var(--olive);
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-wrap.spiral-left {
  padding-left: 22px;
}

.nav-wrap.spiral-left::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  background:
    radial-gradient(circle at 50% 50%, var(--bg-dark) 0 35%, transparent 36%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.15), transparent);
  background-size: 14px 18px, 100% 100%;
  background-repeat: repeat-y;
  background-position: 2px 6px, 0 0;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.top-nav {
  list-style: none;
  margin: 0;
  padding: 0 8px 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.top-nav > li {
  position: relative;
}

.top-nav > li > a {
  display: block;
  padding: 11px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.top-nav > li > a:hover,
.top-nav > li:focus-within > a {
  background: var(--olive-dark);
  text-decoration: none;
}

.top-nav .has-sub:hover .submenu,
.top-nav .has-sub:focus-within .submenu {
  display: block;
}

.submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 200px;
  background: var(--teal-dropdown);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 50;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  border: 1px solid #1a3333;
}

.submenu a {
  display: block;
  padding: 8px 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.submenu a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* --- Yırtık kağıt şeridi --- */
.paper-rip {
  height: 22px;
  background: var(--paper);
  position: relative;
  margin: 0;
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 45%,
    98% 75%, 94% 40%, 90% 78%, 85% 42%, 80% 72%, 75% 38%,
    70% 70%, 65% 45%, 60% 68%, 55% 40%, 50% 72%, 45% 48%,
    40% 70%, 35% 42%, 30% 68%, 25% 45%, 20% 72%, 15% 40%,
    10% 68%, 5% 48%, 0% 70%
  );
}

.paper-rip--inverse {
  clip-path: polygon(
    0% 30%, 5% 55%, 10% 32%, 15% 58%, 20% 35%, 25% 60%, 30% 38%,
    35% 62%, 40% 40%, 45% 65%, 50% 42%, 55% 68%, 60% 45%,
    65% 70%, 70% 48%, 75% 72%, 80% 50%, 85% 68%, 90% 52%,
    95% 70%, 100% 55%, 100% 100%, 0% 100%
  );
  margin-top: -6px;
}

/* --- İçerik: öne çıkan + haberler --- */
.main-strip {
  padding: 20px 16px 24px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(138, 140, 45, 0.06) 0%, transparent 50%),
    var(--bg-dark);
}

.main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.left-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.poem-of-day {
  background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
  border: 1px solid #444;
  border-left: 5px solid var(--olive);
  padding: 16px 18px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.poem-of-day h2 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.poem-date {
  margin: 0 0 12px 0;
  font-size: 11px;
  color: var(--olive);
  font-weight: 600;
}

.poem-title {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: #f0f0f0;
  font-style: italic;
}

.poem-author {
  margin: 0 0 14px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.poem-body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.75;
  color: #e8e8e8;
  white-space: pre-line;
}

.feature-frame {
  border: 6px solid var(--frame-border);
  outline: 2px solid var(--teal-frame);
  outline-offset: -8px;
  background: repeating-linear-gradient(
    -45deg,
    #252525,
    #252525 4px,
    #2a2a2a 4px,
    #2a2a2a 8px
  );
  padding: 10px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
}

.feature-inner {
  position: relative;
  min-height: 280px;
  background: #1e1e1e
    url("meb-logo.png") center center / 120px auto no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.feature-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

.feature-caption {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
  text-align: center;
  width: 100%;
}

.feature-caption strong {
  display: block;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.feature-caption span {
  font-size: 12px;
  color: var(--text-muted);
}

.news-panel {
  background: var(--news-bg);
  color: #222;
  padding: 14px 14px 16px;
  border: 1px solid #9a9a9a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.25);
  position: relative;
}

.news-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.news-title-wrap {
  position: relative;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #888;
}

.news-title-wrap h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  text-transform: uppercase;
  font-family: "Segoe UI", Arial, sans-serif;
}

.tape {
  position: absolute;
  top: -6px;
  right: 12px;
  width: 48px;
  height: 18px;
  background: rgba(220, 210, 170, 0.85);
  transform: rotate(-8deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.news-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.news-item:last-child {
  border-bottom: none;
}

.news-thumb {
  width: 72px;
  height: 52px;
  flex-shrink: 0;
  background: #555 url("meb-logo.png") center / 36px auto no-repeat;
  border: 1px solid #666;
}

.news-body {
  min-width: 0;
}

.news-body h3 {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.news-body p {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: #333;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #555;
}

.news-cta {
  margin-top: 8px;
  margin-bottom: 0;
}

.cal-icon {
  color: var(--red-accent);
  font-size: 12px;
  line-height: 1;
}

.btn {
  display: inline-block;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  background: var(--olive);
  color: #fff !important;
  border: 1px solid var(--olive-dark);
  text-decoration: none;
}

.btn:hover {
  background: var(--olive-dark);
  text-decoration: none;
}

/* --- Bağlantılar çubuğu --- */
.links-bar-wrap {
  position: relative;
  background: var(--olive);
  padding-right: 22px;
  margin-top: 4px;
}

.links-bar-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  background:
    radial-gradient(circle at 50% 50%, var(--bg-dark) 0 35%, transparent 36%),
    linear-gradient(-90deg, rgba(0, 0, 0, 0.15), transparent);
  background-size: 14px 18px, 100% 100%;
  background-repeat: repeat-y;
  background-position: 2px 6px, 0 0;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.links-bar {
  text-align: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}

/* --- Alt footer --- */
.site-footer {
  background: var(--bg-panel);
  padding: 20px 20px 24px;
  border-top: 1px solid #3a3a3a;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 18px;
}

.footer-col h4 {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col a::before {
  content: "> ";
  color: var(--olive);
  font-weight: 700;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact {
  border-top: 1px solid #444;
  padding-top: 14px;
  margin-top: 4px;
}

.footer-contact p {
  margin: 0 0 6px 0;
}

.copyright {
  margin: 12px 0 0 0;
  font-size: 11px;
  color: #888;
}

@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .header-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    align-self: flex-end;
  }
}

.top-nav > li > a.nav-active {
  background: var(--olive-dark);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.submenu a.nav-active {
  background: rgba(255, 255, 255, 0.12);
}

.content-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 4px 8px 8px;
}

.content-page h1 {
  margin: 0 0 14px 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--olive);
  letter-spacing: 0.03em;
}

.content-page .lead {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.prose {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.65;
}

.prose p {
  margin: 0 0 12px 0;
}

.prose ul {
  margin: 8px 0 16px 1.2em;
  padding: 0;
}

.prose li {
  margin-bottom: 6px;
}

.poem-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.poem-list li {
  border: 1px solid #444;
  background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
  padding: 14px 16px;
  margin-bottom: 12px;
  border-left: 4px solid var(--olive);
}

.poem-list h2 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-style: italic;
  color: #f0f0f0;
}

.poem-list .meta {
  font-size: 11px;
  color: var(--olive);
  margin-bottom: 8px;
}

.story-list article {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #3a3a3a;
}

.story-list article:last-child {
  border-bottom: none;
}

.story-list h2 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: #fff;
}

.announce-list time {
  display: block;
  font-size: 11px;
  color: var(--olive);
  margin-bottom: 6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--bg-panel);
  border: 1px solid #444;
  padding: 18px;
}

.contact-card h2 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: #fff;
}

.contact-card p {
  margin: 0 0 8px 0;
}

.contact-form label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 12px;
  border: 1px solid #555;
  background: #1e1e1e;
  color: var(--text-light);
  font-family: inherit;
  font-size: 13px;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form button {
  padding: 8px 18px;
  background: var(--olive);
  color: #fff;
  border: 1px solid var(--olive-dark);
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--olive-dark);
}

.site-map ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-map li {
  margin-bottom: 8px;
}

.site-map ul ul {
  margin-top: 6px;
  margin-left: 1em;
}

.site-map a {
  color: #9ec5ff;
}

.search-box {
  max-width: 420px;
  margin-top: 12px;
}

.search-box input[type="search"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #555;
  background: #1e1e1e;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 10px;
}

.search-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

.home-intro {
  background: linear-gradient(135deg, #252525 0%, #1e1e1e 100%);
  border: 1px solid #444;
  padding: 16px 18px;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.home-intro h2 {
  margin: 0 0 10px 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-intro p {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-light);
}

.home-intro p:last-child {
  margin-bottom: 0;
}

.home-activities {
  background: #1e1e1e;
  border: 1px solid #3d3d3d;
  padding: 16px 18px;
}

.home-activities h2 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  border-left: 4px solid var(--olive);
  padding-left: 10px;
}

.home-activities ul {
  margin: 0;
  padding: 0 0 0 1.1em;
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.55;
}

.home-activities li {
  margin-bottom: 8px;
}

.main-strip--solo {
  min-height: 42vh;
}
