/* ===================== CSS Variables (Design Tokens) ===================== */
:root{
  --bg: #ffffff;
  --ink: #0f172a;           /* slate-900 */
  --ink-2:#334155;          /* slate-700 */
  --muted:#64748b;          /* slate-500 */
  --brand:#d21e2b;          /* IOP-like red */
  --brand-dark:#a2151f;
  --nav:#111827;            /* near-black */
  --surface:#f8fafc;        /* slate-50 */
  --surface-2:#eef2f7;
  --border:#e2e8f0;
  --radius:14px;
  --shadow:0 8px 28px rgba(2,8,23,.08);
  --container: 1200px;
  --pad: 24px;
  --speed:.2s;
  --focus: 2px solid #111827;
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ===================== Base / Resets ===================== */
*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{ color:var(--ink); background:var(--bg); line-height:1.6; }
img{ max-width:100%; display:block; }
a{ color:inherit; }
a:focus-visible, button:focus-visible, input:focus-visible{ outline: var(--focus); outline-offset: 2px; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.container{ max-width:var(--container); margin-inline:auto; padding-inline:var(--pad); }
.skip-link{ position:absolute; left:-9999px; top:0; background:#000; color:#fff; padding:6px 10px; z-index:1000; }
.skip-link:focus{ left:12px; top:12px; }

/* ===================== Utility Buttons ===================== */
.btn{ display:inline-block; padding:.85rem 1.15rem; border-radius:999px; border:1px solid transparent; font-weight:700; text-decoration:none; transition:transform var(--speed), box-shadow var(--speed), background var(--speed), color var(--speed); }
.btn.primary{ background:var(--brand); color:#fff; }
.btn.primary:hover{ background:var(--brand-dark); box-shadow:var(--shadow); transform:translateY(-1px); }
.btn.secondary{ background:transparent; color:#fff; border-color:#fff; }
.btn.secondary:hover{ background:rgba(255,255,255,.08); transform:translateY(-1px); }
.btn.ghost{ background:transparent; border-color:var(--ink); color:var(--ink); }
.btn.ghost:hover{ background:var(--surface); box-shadow:var(--shadow); transform:translateY(-1px); }
.btn.sm{ padding:.6rem .8rem; font-weight:600; }

.iconbtn{ background:#fff; border:1px solid var(--border); border-radius:10px; padding:.5rem .6rem; cursor:pointer; }
.iconbtn:hover{ background:var(--surface); }


/* ===================== Topbar ===================== */





.top-search{ display:flex; align-items:center; gap:10px; }
.search{ display:flex; gap:8px; align-items:center; transition:max-height var(--speed), opacity var(--speed); }
.search input{ padding:8px 12px; border:1px solid var(--border); border-radius:10px; min-width:180px; }
.search.collapsed{ max-height:0; opacity:0; overflow:hidden; }
.search.expanded{ max-height:60px; opacity:1; }

/* ===================== Header / Mainnav ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  padding: 8px 10px;
  letter-spacing: .5px;
}

.brand-text {
  display: grid;
}

.brand-title {
  font-weight: 800;
  line-height: 1;
  letter-spacing: .2px;
}

.brand-sub {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1;
}

.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--nav);
  margin: 6px 0;
  transition: transform var(--speed);
}

.mainnav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.mainnav a {
  text-decoration: none;
  color: var(--ink-2);
  padding: 10px 8px;
  border-radius: 8px;
}

.mainnav a:hover,
.mainnav a.active {
  color: var(--ink);
  background: var(--surface);
}

/* Menü ve sosyal medya hizalaması */
.mainnav {
  display: flex;
  justify-content: space-between; /* Menü solda, sosyal sağda */
  align-items: center;
}

/* ---------- Sosyal linkler (MARKA RENKLERİ) ---------- */
.social-links ul {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  text-decoration: none;
}

.social-links a:hover {
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

/* LinkedIn */
.social-links a[aria-label="linkedin"] {
  background-color: #0A66C2;
}
.social-links a[aria-label="linkedin"]:hover {
  background-color: #0859a8;
}

/* Instagram */
.social-links a[aria-label="instagram"] {
  background: linear-gradient(45deg, #f58529 0%, #dd2a7b 35%, #8134af 65%, #515bd4 100%);
}
.social-links a[aria-label="instagram"]:hover {
  filter: brightness(0.96);
}

/* X (Twitter) */
.social-links a[aria-label="twitter"] {
  background-color: #000;
}
.social-links a[aria-label="twitter"]:hover {
  background-color: #111;
}

/* ===================== Mobil ===================== */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .mainnav {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .mainnav.open {
    display: flex;
  }

  .mainnav ul {
    flex-direction: column;
    padding: 12px;
  }

  /* Sosyal linkler mobilde de yan yana kalsın */
  .social-links ul {
    flex-direction: row;
    justify-content: center;
    padding: 12px;
  }
}

/* ===================== Hero ===================== */
.hero {
  background: linear-gradient(180deg, var(--surface), transparent 60%);
  padding: 56px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
  font-size: .8rem;
  margin: 0 0 8px;
}
.hero h1 {
  font-size: clamp(2rem, 2.6vw + 1rem, 3.2rem);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -.5px;
}
.hero .lead {
  color: var(--ink-2);
  font-size: clamp(1rem, 1vw + .8rem, 1.2rem);
  margin: 0 0 18px;
}
.hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-art img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface-2);
}

@media (max-width: 900px){
  .hero-inner { grid-template-columns: 1fr; }
}

/* ===================== Section Box Wrapper ===================== */
.section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px; /* kutular arası boşluk */
}

/* Mobil görünümde tek kolon */
@media (max-width: 768px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== Section Box (Books & Journals) ===================== */
.section-box {
  background: #f7f7f7; /* açık gri */
  border-radius: 6px;
  padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center; /* içerik ortalansın */
  text-align: center;
}

.section-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* Resim kapsayıcı varsayılan (masaüstü için) */
.image-wrapper {
  max-width: 80%; /* masaüstünde %80 */
  margin-top: 8px;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Mobilde %80 */
@media (max-width: 768px) {
  .image-wrapper {
    max-width: 80%;
  }
}


/* ===================== Publication Link ===================== */
.pub-link {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.pub-link:hover {
  background: var(--surface-2);
  color: var(--ink-2);
}

/* ===================== Stats ===================== */

.stats{ padding: 28px 0 12px; list-style-type: none;}
.stats-grid{ display:grid; grid-template-columns:repeat(5, 1fr); gap:18px; padding: 8px 0; list-style-type: none;}
.stat{ text-align:center; background: #fff; border:1px solid var(--border); border-radius: var(--radius); padding:18px; box-shadow: var(--shadow); list-style-type: none; }
.stat-number{ font-weight:800; font-size: clamp(1.4rem, 1.3vw + 1rem, 2rem); color: var(--nav); list-style-type: none; }
.stat-label{ color:var(--muted); margin:4px 0 0; font-size:.95rem; list-style-type: none;}

@media (max-width: 1100px){
  .stats-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px){
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* ===================== Feature Cards ===================== */
.features {
  padding: 8px 0 48px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 1vw + 1rem, 1.9rem);
}

.section-head p {
  margin: 0;
  color: var(--ink-2);
  max-width: 60ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform var(--speed), box-shadow var(--speed);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(2, 8, 23, .12);
}

.card-img {
  width: 100%;
  height: auto;              /* doğal boy oranı */
  object-fit: cover;         /* sığdırırken orantılı kırpma */
  background: var(--surface-2);
  display: block;
}

.card-body {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--ink-2);
}

.card-link {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}

.card-link:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

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



/* ===================== New Slider Styles ===================== */
.card-slider-wrapper {
  position: relative; /* Needed for positioning dots */
  overflow: hidden;   /* Hides the other slides */
  width: 100%;
}

.card-slides {
  display: flex; /* Aligns slides horizontally */
  transition: transform 0.5s ease-in-out; /* Smooth sliding animation */
}

.card-slide {
  flex: 0 0 100%; /* Each slide takes up full width of the container */
  width: 100%;
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.dot:hover {
  opacity: 0.8;
}

/* The active dot's opacity will be set to 1 by the JavaScript */



/* ===================== News grid ===================== */
.news {
  padding: 8px 0 48px;
}

.news .section-head .link {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}

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

.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.news-card img {
  width: 100%;
  height: auto;              /* doğal boy oranı */
  object-fit: cover;         /* taşarsa kırpma yapar */
  background: var(--surface-2);
  display: block;
}

.news-body {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-2);
  text-decoration: none;
  width: max-content;
}

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

/* ===================== CTA ===================== */
.cta{ background: var(--nav); color:#fff; padding: 32px 0; }
.cta-inner{ display:grid; grid-template-columns: 1fr auto; align-items:center; gap:20px; }
@media (max-width: 640px){
  .cta-inner{ grid-template-columns: 1fr; }
}

/* ===================== Footer ===================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

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

/* Mobil uyum: küçük ekranlarda alt alta dizilsin */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer a {
  text-decoration: none;
  color: var(--ink-2);
}

.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.newsletter {
  display: flex;
  gap: 8px;
}

.newsletter input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.footnote {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 16px 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===================== Back to Top ===================== */
.to-top{ position:fixed; right:18px; bottom:18px; border-radius:999px; border:1px solid var(--border); background:#fff; padding:.7rem .9rem; box-shadow: var(--shadow); cursor:pointer; opacity:0; visibility:hidden; transition: opacity var(--speed), transform var(--speed), visibility var(--speed); }
.to-top.show{ opacity:1; visibility:visible; transform: translateY(0); }

/* ===================== Subtle Animations ===================== */
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(8px); }
  to{ opacity:1; transform:none; }
}
.hero,.stats,.features,.news,.cta{ animation: fadeUp .45s ease both; }

.mainnav a.active {
  background-color: #f1f1f1;
  border-radius: 6px;
}


/* Active nav item styling */
.mainnav a.active{
  background:#f1f5f9;
  border-radius:8px;
  padding:6px 12px;
}