@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* ODTU Teknokent Brand Colors */
  --primary-color: #005397;
  /* TTO Dark Blue */
  --secondary-color: #0073CF;
  /* Lighter Blue */
  --accent-color: #0073CF;
  /* Professional Blue Accent instead of Yellow */
  --light-bg: #F8FAFC;
  --dark-bg: #0B1120;
  --text-dark: #1E293B;
  --text-light: #64748B;
  --white: #FFFFFF;

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.75;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

section p {
  text-align: justify;
}

.team-member p,
.news-card p,
.event-info p,
.stat-label,
.persona-desc {
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-color);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* --- Typography --- */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

/* --- Layout --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 992px) {
  .desktop-only {
    display: none !important;
  }
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo-main .dot {
  color: var(--accent-color);
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: -4px;
}

.top-bar-logo {
  height: 22px;
  /* Base height */
  width: auto;
  object-fit: contain;
  transition: filter 0.2s;
  display: block;
  /* Removes baseline gap for perfect vertical centering */
}

/* --- Top Bar --- */
.top-bar {
  background-color: #002855;
  padding: 0.6rem 0;
  /* Increased padding to give logos breathing room */
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.top-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-bar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .top-bar .container {
    justify-content: center;
  }

  .top-bar-links {
    gap: 1rem;
  }
}

/* Specific scaling to ensure they look the same size visually */
img[alt="ODTÜ"] {
  height: 22px;
  width: auto;
  scale: 1.5;

}

img[alt="ODTÜ TEKNOKENT"] {
  height: 12px;
  width: auto;
}

img[alt="ODTÜ TTO"] {
  height: 22px;
  width: auto;
}

.top-bar-logo:hover {
  filter: brightness(1.2);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links li a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
}

.nav-links li a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

/* --- Dropdown Menu --- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 1rem 0;
  z-index: 100;
  border: 1px solid var(--glass-border);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.5rem !important;
  color: var(--text-dark) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  transition: var(--transition);
}

.dropdown-menu li a:hover {
  background: var(--light-bg);
  color: var(--primary-color) !important;
  padding-left: 2rem !important;
}

.dropdown-menu li a::after {
  display: none !important;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 79, 140, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 79, 140, 0.4);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* --- Mobile Menu --- */
.menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  background: none;
  border: none;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding-top: 5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 30, 70, 0.88) 0%, rgba(0, 83, 151, 0.75) 60%, rgba(0, 115, 207, 0.5) 100%);
  z-index: 0;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
}

.shape-1 {
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: rgba(0, 115, 207, 0.2);
  animation: float 10s ease-in-out infinite alternate;
}

.shape-2 {
  bottom: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: rgba(242, 169, 0, 0.1);
  animation: float 15s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: white;
  background: none;
  -webkit-text-fill-color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.2s both;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* --- Funnel Container (Personas) --- */
.funnel-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.persona-card {
  background: white;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.persona-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.persona-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.persona-card:hover::before {
  transform: scaleX(1);
}

.persona-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem auto;
  background: var(--light-bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.persona-card:hover .persona-icon {
  background: var(--primary-color);
  color: white;
}

.persona-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.persona-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.persona-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.persona-link i {
  transition: transform 0.3s ease;
}

.persona-card:hover .persona-link i {
  transform: translateX(5px);
}

/* --- METU GLANCE SECTION --- */
.metu-glance {
  padding: 4rem 0;
  background-color: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glance-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.glance-title {
  background: #ce0037;
  color: white;
  display: inline-block;
  padding: 0.6rem 2rem;
  border-radius: 50px;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(206, 0, 55, 0.2);
}

.glance-subtitle {
  font-size: 1.15rem;
  color: #334155;
  line-height: 1.6;
}

.glance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.glance-stats-box {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.stats-box-title {
  font-size: 1.4rem;
  color: #ce0037;
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(206, 0, 55, 0.1);
}

.stats-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.mini-stat:hover {
  background: #f1f5f9;
}

.ms-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  font-family: 'Outfit', sans-serif;
}

.ms-label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

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

/* --- Connection Layout (Horizontal) --- */
.connection-layout {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
}

.odtu-part,
.pyo-part {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Ensure the stats at the bottom of the boxes align even if text heights differ */
.odtu-part>div:last-child,
.pyo-part>div:last-child {
  margin-top: auto;
}

.bridge-icon {
  align-self: center;
}

@media (max-width: 992px) {
  .connection-layout {
    flex-direction: column;
  }

  .bridge-icon i {
    transform: rotate(90deg);
  }
}

/* --- About (Hakkımızda) --- */
.about {
  background: var(--white);
  overflow: hidden;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.about-content {
  flex: 1;
}

.about-content .section-title {
  margin-bottom: 1.5rem;
}

.about-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-desc strong {
  color: var(--primary-color);
  font-weight: 700;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image .image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--glass-border);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-badge {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--glass-border);
  z-index: 2;
}

.about-badge i {
  color: var(--accent-color);
  font-size: 1.5rem;
}

@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .about-content .section-title {
    text-align: center !important;
  }

  .about-badge {
    left: 2rem;
    bottom: 2rem;
  }
}


/* --- Stats Section (Dual Category Card) --- */
.stats {
  padding: 4rem 0;
  background: var(--white);
}

.stats-grid-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 15px 50px rgba(0, 83, 151, 0.1);
  border: 1px solid rgba(0, 83, 151, 0.05);
  overflow: hidden;
}

.stats-category {
  padding: 3.5rem 2.5rem;
  background: var(--white);
}

.stats-category.separator {
  background: rgba(0, 83, 151, 0.02);
  border-left: 1px solid rgba(0, 83, 151, 0.08);
}

.stats-cat-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.stats-cat-title i {
  color: var(--secondary-color);
  font-size: 1.3rem;
}

.stats-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 1.5rem;
}

.stat-item-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-item-mini .stat-number {
  font-size: 2.4rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.4rem;
  color: var(--primary-color);
  text-align: center;
}

.stat-item-mini .stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 992px) {
  .stats-grid-dual {
    grid-template-columns: 1fr;
  }

  .stats-category.separator {
    border-left: none;
    border-top: 1px solid rgba(0, 83, 151, 0.08);
  }
}

/* --- Hizmetlerimiz Advanced --- */
.services-advanced {
  background: var(--white);
  padding: 0;
}

/* New card layout for services */
.svc-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.svc-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.svc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.svc-card:hover .svc-card-image img {
  transform: scale(1.05);
}

.svc-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.svc-card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Team member department badge */
.member-dept {
  font-size: 0.78rem;
  color: white;
  background: var(--primary-color);
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
}

/* Equal-height svc-card grid */
#ab-proje {
  align-items: stretch;
}

@media (max-width: 768px) {
  #ab-proje {
    grid-template-columns: 1fr !important;
  }
}


.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 6rem;
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-row.reverse {
  direction: rtl;
}

.service-row.reverse>* {
  direction: ltr;
  /* Reset text direction inside */
}

.service-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 400px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-icon-heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-icon-heading .icon-box {
  width: 60px;
  height: 60px;
  background: rgba(0, 83, 151, 0.1);
  color: var(--primary-color);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.service-icon-heading h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0;
}

.service-text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.service-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-check-list i {
  font-size: 1.5rem;
  margin-top: 3px;
}

.service-check-list strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.service-check-list span {
  font-size: 0.95rem;
  color: var(--text-light);
}

.service-number-list {
  list-style: none;
  padding: 0;
}

.service-number-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
}

.service-number-list .number-circle {
  width: 35px;
  height: 35px;
  background: #E0E7FF;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.service-number-list span {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

@media (max-width: 992px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service-row.reverse {
    direction: ltr;
  }

  .service-row.reverse .service-image {
    order: -1;
  }
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover .service-icon,
.service-card:hover .service-title,
.service-card:hover .service-desc {
  color: var(--white);
}

/* --- Projects (Projeler) --- */
.projects {
  background: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  transition: var(--transition);
  text-align: center;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 83, 151, 0.3);
}

.project-card .project-logo-wrapper {
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  /* Increased height for collage */
  overflow: hidden;
}

.project-card .project-logo-wrapper img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
  max-width: 80%;
  object-fit: contain;
}

/* Logo Collage Style */
.project-logo-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
}

.project-logo-collage img {
  max-height: 45px !important;
  width: auto !important;
  max-width: 100% !important;
  transition: all 0.3s ease;
}

.project-card:hover .project-logo-collage img {
  transform: scale(1.05);
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.4;
  /* Kırılmayı engellemek ve hizayı korumak için */
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card .btn {
  width: fit-content;
  margin: 0 auto;
  margin-top: auto;
}

.project-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(242, 169, 0, 0.15);
  color: #D97706;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* --- Carousel Styles --- */
.carousel-container {
  position: relative;
  width: 100%;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 20px;
}

.carousel-track {
  display: flex;
  gap: 2.5rem;
  transition: transform 0.5s ease-in-out;
}

.carousel-card {
  flex: 0 0 calc((100% - 5rem) / 3);
  /* 3 cards visible */
  min-width: 0;
  height: auto;
  display: flex !important;
  flex-direction: column;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .carousel-card {
    flex: 0 0 calc((100% - 2.5rem) / 2);
  }
}

@media (max-width: 768px) {
  .carousel-card {
    flex: 0 0 100%;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: white;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--primary-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: white;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  background: #cbd5e1;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots .dot.active {
  background: var(--primary-color);
  width: 20px;
  border-radius: 10px;
}

/* --- Partner Logos Component --- */
.project-partners {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid #e2e8f0;
}

.partner-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

@media (max-width: 992px) {
  .carousel-card {
    width: calc((100% - 2.5rem) / 2);
    /* 2 cards visible */
  }
}

@media (max-width: 768px) {
  .carousel-card {
    width: 100%;
    /* 1 card visible */
  }

  .carousel-btn {
    display: none;
    /* Hide arrows on mobile, rely on swipe if implemented, or just dots */
  }

  .carousel-container {
    padding: 0;
  }
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* --- Team (Ekibimiz) --- */
.team {
  background: var(--light-bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem 2.5rem;
}

.director-card {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member {
  text-align: center;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-image {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-member:hover .member-image img {
  transform: scale(1.1);
}

.member-socials {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 79, 140, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: var(--transition);
}

.team-member:hover .member-socials {
  opacity: 1;
}

.member-socials a {
  width: 35px;
  height: 35px;
  background: var(--white);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.member-socials a:hover {
  background: var(--accent-color);
  color: var(--white);
}

.member-name {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
  text-align: center;
}

.member-role {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.5rem;
}

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

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-member:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {

  .projects-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-member:first-child {
    grid-column: span 1;
  }
}

/* --- Güncel & Duyurular (Grid Layout) --- */
.news-section {
  background: var(--light-bg);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.news-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--glass-border);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.news-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--accent-color);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 115, 207, 0.4);
}

.news-content {
  padding: 2.5rem;
}

.news-title {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.news-excerpt {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.read-more i {
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

.side-news {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.side-widget {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.widget-header i {
  font-size: 1.4rem;
}

.widget-header h4 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--primary-color);
}

.text-accent {
  color: var(--accent-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
  font-weight: 600;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.3rem;
}

.widget-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.widget-item {
  display: block;
  padding: 1rem;
  border-radius: 12px;
  transition: var(--transition);
  background: var(--light-bg);
}

.widget-item:hover {
  background: rgba(0, 83, 151, 0.05);
  transform: translateX(5px);
}

.widget-title {
  font-size: 1rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}

.widget-event {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.calendar-icon {
  background: var(--primary-color);
  color: white;
  border-radius: 10px;
  min-width: 65px;
  text-align: center;
  padding: 0.5rem 0;
  box-shadow: var(--shadow-sm);
}

.calendar-icon .day {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.calendar-icon .month {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-top: 0.2rem;
  opacity: 0.9;
}

/* --- Events Strip (full width horizontal) --- */
.events-strip {
  margin-top: 2.5rem;
  background: #f4f8ff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(0, 83, 151, 0.08);
}

.events-strip-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 83, 151, 0.1);
}

.events-strip-header i {
  font-size: 1.4rem;
  color: var(--primary-color);
}

.events-strip-header h4 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 0;
  flex: 1;
}

.see-all-link {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.see-all-link:hover {
  gap: 0.7rem;
}

.events-strip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.event-strip-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  border-radius: 14px;
  padding: 1.4rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-decoration: none;
  flex: 1 1 320px;
  max-width: 380px;
}

.event-strip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 83, 151, 0.2);
}

.event-date-badge {
  background: var(--primary-color);
  color: white;
  border-radius: 10px;
  min-width: 56px;
  text-align: center;
  padding: 0.6rem 0.5rem;
  flex-shrink: 0;
}

.ev-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.ev-month {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
  opacity: 0.9;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.event-type {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-info h5 {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}

.event-loc {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.event-loc i {
  color: var(--primary-color);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

@media (max-width: 900px) {
  .event-strip-card {
    max-width: none;
  }
}

@media (max-width: 500px) {
  .event-strip-card {
    flex-basis: 100%;
  }
}

/* --- Testimonials (Görüşler) --- */
.testimonials {
  padding: 2rem 0 5rem 0;
  background-color: var(--light-bg);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
  align-items: stretch;
}

.testimonial-card {
  background: var(--white);
  padding: 1.8rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Fill grid cell so all cards are same height */
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.quote-icon {
  font-size: 2rem;
  color: rgba(0, 83, 151, 0.1);
  margin-bottom: 0.8rem;
}

.testimonial-text {
  font-size: 1rem;
  color: #475569;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 2rem;
  text-align: left;
  flex: 1;
  /* Grows to push the divider line to the same height in all cards */
}

.testimonial-author {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1.5rem;
  /* No margin-top: auto — divider stays fixed, name goes right below it */
}

.author-info h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin: 0 0 0.3rem 0;
  font-weight: 700;
}

.author-info span {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

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

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

/* --- Call to Action --- */
.cta {
  background: #005397;
  color: white;
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(242, 169, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.cta-title {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
}

.cta-desc {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* --- Footer --- */
.footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-desc {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.footer-brand .social-links {
  justify-content: center;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.footer-title {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--accent-color);
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .funnel-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .menu-btn {
    display: block;
  }

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

@media (max-width: 576px) {

  .funnel-container,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

/* --- VISUAL STATS STRIP --- */
.stat-icon {
  font-size: 2.5rem;
  color: rgba(0, 83, 151, 0.15);
  margin-bottom: -1rem;
  display: block;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #005397;
  margin-bottom: 0.2rem;
  position: relative;
  z-index: 2;
}

.stat-label {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-item-visual {
  transition: transform 0.3s ease;
}

.stat-item-visual:hover {
  transform: translateY(-5px);
}

/* --- INVISIBLE LINE SMOOTH ACCORDION (AB DETAY) --- */
.smooth-accordion-container {
  width: 100%;
}

.line-summary {
  display: block;
  cursor: pointer;
  outline: none;
  margin: 0;
}

.line-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  /* click area */
  transition: all 0.3s ease;
}

.thin-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #cbd5e1;
  z-index: 1;
  transition: background-color 0.3s ease;
}

.arrow-circle {
  position: relative;
  z-index: 2;
  background: #ffffff;
  width: 50px;
  height: 50px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Open State Hover & Transforms */
.smooth-accordion-container.open .arrow-circle {
  transform: rotate(180deg);
  background: #005397;
  color: #fff;
  border-color: #005397;
  box-shadow: 0 4px 15px rgba(0, 83, 151, 0.2);
}

.line-wrapper:hover .thin-line {
  background-color: #94a3b8;
}

.line-wrapper:hover .arrow-circle {
  color: #005397;
  border-color: #005397;
}

/* Smooth Accordion Body Using CSS Grid */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.smooth-accordion-container.open .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-inner {
  overflow: hidden;
}

.line-content {
  border-bottom: 1px solid #e2e8f0;
}

/* --- Kurgu/Demo Badge --- */
.kurgu-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(241, 245, 249, 0.9);
  backdrop-filter: blur(4px);
  color: #64748b;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.kurgu-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
}

/* --- Kaynak ve Başvuru Bölümü --- */
.source-section {
  margin-top: 4rem;
  padding: 2.5rem;
  background: #f8fafc;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.source-section h4 {
  font-size: 1.1rem;
  color: #005397;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.source-section p {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  text-align: left;
}

.btn-source {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #005397;
  color: white !important;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 83, 151, 0.2);
}

.btn-source:hover {
  background: #003d70;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 83, 151, 0.3);
}

/* Added for justification of news items site-wide */
.news-excerpt,
.news-title,
.widget-title,
.project-desc {
  text-align: justify !important;
}

/* MOBILE OPTIMIZATIONS START */

/* ============================
   TABLET (max 992px)
   ============================ */
@media (max-width: 992px) {

  /* Navbar */
  .menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
  }

  .nav-links.active {
    display: flex;
  }

  .navbar {
    padding: 0.6rem 0;
  }

  .nav-links li a:not(.btn) {
    font-size: 1.2rem;
  }

  .desktop-only {
    display: none !important;
  }

  /* Hero */
  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* Persona cards: 2 column on tablet */
  .funnel-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Connection layout */
  .connection-layout {
    flex-direction: column;
  }

  .bridge-icon i {
    transform: rotate(90deg);
  }

  /* About */
  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .about-content .section-title {
    text-align: center !important;
  }

  .about-badge {
    left: 2rem;
    bottom: 2rem;
  }

  /* Stats */
  .stats-grid-dual {
    grid-template-columns: 1fr;
  }

  .stats-category.separator {
    border-left: none;
    border-top: 1px solid rgba(0, 83, 151, 0.08);
  }

  /* Service rows */
  .service-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service-row.reverse {
    direction: ltr;
  }

  .service-row.reverse .service-image {
    order: -1;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Carousel */
  .carousel-card {
    flex: 0 0 calc((100% - 2.5rem) / 2);
  }

  /* Team */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-member:first-child {
    grid-column: span 2;
  }

  /* News */
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Top bar */
  .top-bar-links {
    padding-left: 0 !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .top-bar .container {
    justify-content: center !important;
  }

  /* Testimonials - tablet: 2 col */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }

  /* Responsive 2-col grids */
  .responsive-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .content-card {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: auto !important;
  }

  .content-card img {
    height: 250px !important;
    object-fit: cover !important;
  }
}

/* ============================
   MOBILE (max 768px)
   ============================ */
@media (max-width: 768px) {

  /* General */
  section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.2rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }

  /* Top bar */
  .top-bar .container {
    justify-content: center;
  }

  .top-bar-links {
    gap: 1rem;
  }

  /* Hero */
  .hero-title {
    font-size: 1.8rem;
    padding: 0 1rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.6;
  }

  .hero-subtitle span {
    display: inline !important;
  }

  .hero {
    min-height: 80vh;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .navbar .logo img {
    height: 45px !important;
  }

  /* Persona cards: 1 column on mobile */
  .funnel-container {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .persona-card {
    padding: 1.5rem 1rem;
  }

  .persona-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  /* Connection layout: logo badges smaller */
  .odtu-part,
  .pyo-part {
    padding: 2rem 1.2rem !important;
    margin-top: 2rem;
  }

  /* Glance grid */
  .glance-grid {
    grid-template-columns: 1fr;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* AB proj grid */
  #ab-proje {
    grid-template-columns: 1fr !important;
  }

  /* Carousel */
  .carousel-card {
    flex: 0 0 100%;
  }

  .carousel-btn {
    display: none;
  }

  .carousel-container {
    padding: 0;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .team-member:first-child,
  .director-card {
    grid-column: span 1;
  }
}

/* --- Team Carousel (new structure) --- */
.director-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.director-wrapper .director-card {
  grid-column: unset;
  margin-bottom: 0;
}

.team-unit {
  margin-bottom: 3rem;
}

.team-unit-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.team-unit-title i {
  color: var(--secondary-color);
}

.team-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.team-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  flex: 1;
  overflow: hidden;
}

.team-carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  color: var(--primary-color);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  /* Hidden on desktop since all 3 fit */
  display: none;
}

.team-carousel-btn:hover {
  background: var(--primary-color);
  color: white;
}

@media (max-width: 768px) {
  .team-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.2rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
  }

  .team-carousel::-webkit-scrollbar {
    display: none;
  }

  .team-carousel .team-member {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }

  .team-carousel-btn {
    display: none !important;
  }

  .team-carousel-wrapper {
    gap: 0;
  }

  .team-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
  }

  .team-dot {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .team-dot.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 10px;
  }








  /* About */
  .about-container {
    gap: 2rem;
  }

  .about-badge {
    left: 1rem;
    bottom: 1rem;
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
  }

  /* Service image height */
  .service-image {
    height: 250px;
  }

  /* Stats */
  .stats-subgrid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }

  /* News */
  .news-image {
    height: 200px;
  }

  .news-content {
    padding: 1.5rem;
  }

  .news-title {
    font-size: 1.35rem !important;
    line-height: 1.3;
  }
}

/* ============================
   SMALL MOBILE (max 480px)
   ============================ */
@media (max-width: 480px) {

  .hero-title {
    font-size: 1.75rem;
  }

  .funnel-container {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
  }

  /* Logo badges in connection layout */
  .odtu-part [style*="position: absolute"],
  .pyo-part [style*="position: absolute"] {
    min-width: 120px !important;
    padding: 8px 16px !important;
  }

  /* Metric grid inside cards */
  .odtu-part [style*="display: grid"],
  .pyo-part [style*="display: grid"] {
    gap: 0.5rem !important;
  }
}

/* --- GLOBAL RESPONSIVE UTILITIES FOR SUBPAGES --- */
.responsive-grid-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 992px) {
  .responsive-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* Subpage Hero Adjustments */
@media (max-width: 768px) {

  .page-hero,
  .detail-hero {
    padding: 3rem 0 2.5rem !important;
    text-align: center;
  }

  .page-hero-bc,
  .breadcrumb {
    justify-content: center;
  }

  .page-hero h1,
  .detail-hero h1 {
    font-size: 1.8rem !important;
  }

  .page-hero .hero-sub-text,
  .detail-hero p {
    font-size: 0.95rem !important;
    margin: 1rem auto 0;
  }
}

/* Content Cards (News/Events) Mobile Stacking */
@media (max-width: 850px) {

  .content-card,
  .article-layout {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: auto !important;
    gap: 2rem !important;
  }

  .content-card>a {
    height: 220px !important;
  }

  .content-card>div,
  .article-body {
    padding: 1.5rem !important;
  }

  .content-card h2 {
    font-size: 1.4rem !important;
  }

  .info-grid {
    grid-template-columns: 1fr !important;
  }
}

/* FAQ Mobile Optimization */
@media (max-width: 768px) {
  .faq-container {
    padding: 0 0.5rem;
  }

  .faq-header {
    padding: 1rem !important;
    font-size: 0.92rem !important;
  }

  .faq-content div {
    padding: 1.2rem !important;
    font-size: 0.88rem !important;
  }
}

/* Navbar Logo Scaling for Subpages */
@media (max-width: 768px) {
  .navbar .logo img {
    height: 45px !important;
  }

  .top-bar-logo {
    height: 18px !important;
  }

  .nav-links .btn-primary {
    margin: 1rem 0;
    width: 100%;
    justify-content: center;
  }
}

/* Stats Item Mini Mobile */
@media (max-width: 480px) {
  .stats-subgrid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* --- MOBILE OPTIMIZATIONS END --- */

/* =============================================
   LANGUAGE SWITCHER (TR / EN)
   ============================================= */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 1rem;
  background: rgba(0, 83, 151, 0.07);
  border-radius: 50px;
  padding: 3px 6px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  padding: 4px 9px;
  border-radius: 50px;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  font-family: 'Outfit', sans-serif;
}

.lang-btn.active {
  background: var(--primary-color);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  background: rgba(0, 83, 151, 0.12);
  color: var(--primary-color);
}

.lang-sep {
  color: #cbd5e1;
  font-size: 0.75rem;
  user-select: none;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}