/* Google Fonts Entegrasyonu */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Tasarım Değişkenleri (CSS Variables) */
:root {
  --primary-blue: #00548f;
  /* Orijinal logodaki kurumsal koyu mavi */
  --accent-orange: #ff8f35;
  /* Vurgu rengi: sıcak turuncu */
  --text-dark: #2b303a;
  --text-muted: #64748b;
  --bg-light: #f5f7fa;
  --white: #ffffff;
  --border-color: #e2e8f0;

  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

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

/* Temel Sıfırlamalar ve Yapı */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer p {
  font-family: var(--font-body) !important;
  color: #fff !important;
  font-size: 14px;
}

.post-texts p,
.gramotech-content p,
.blog-detail p,
.blog-details p {
  font-family: var(--font-body) !important;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

footer ul {
  list-style: none;
  padding-left: 0 !important;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #d1690f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 125, 26, 0.3);
}

.btn-secondary {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background-color: transparent;
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 84, 143, 0.2);
}

/* Bölüm Başlıkları */
.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-blue);
  position: relative;
  padding-left: 20px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 28px;
  background-color: var(--accent-orange);
  border-radius: 4px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 8px;
}

/* ==========================================================================
   HEADER & NAVBAR (ŞEFFAF VE HAFİF OPAK)
   ========================================================================== */
header {
  width: 100%;
  position: relative;
  z-index: 1000;
}

/* Sadece Hero Slider olan ana sayfada Header görselin üzerine şeffaf oturur */
header:has(+ .hero),
header:has(+ main .hero),
body.home header,
header.hero-header {
  position: absolute;
  top: 0;
  left: 0;
}

.top-bar {
  position: relative;
  z-index: 1010;
  background-color: rgba(0, 84, 143, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.top-bar-socials {
  display: flex;
  gap: 16px;
}

.top-bar-socials a:hover {
  color: var(--accent-orange);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-right a:hover {
  opacity: 0.9;
}

/* Hesabım Dropdown Menüsü */
.account-dropdown-wrap {
  position: relative;
}

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.account-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.account-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--primary-blue);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  width: 220px;
  padding: 8px 0;
  display: none;
  z-index: 1100;
  margin-top: 8px;
}

.account-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.account-dropdown-wrap:hover .account-dropdown-menu,
.account-dropdown-menu.active {
  display: block;
  animation: dropdownFadeIn 0.2s ease-out forwards;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

.account-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.account-dropdown-menu a:last-child {
  border-bottom: none;
}

.account-dropdown-menu a:hover {
  background-color: var(--accent-orange);
  color: var(--white);
  padding-left: 22px;
}

/* Main Navbar */
.navbar {
  position: relative;
  z-index: 1005;
  background-color: rgba(0, 0, 0, 0.7);
  /* Slider üzerinde hafif opak saydam zemin */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.navbar .logo img {
  height: 55px;
  width: auto;
  filter: brightness(0) invert(1);
  /* Başlangıçta beyaz logo */
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar .nav-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  /* Slider üzerinde beyaz metin */
  position: relative;
  padding: 8px 0;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-orange);
  transition: var(--transition);
}

.navbar .nav-link:hover {
  color: var(--accent-orange);
}

.navbar .nav-link:hover::after {
  width: 100%;
}

.navbar .nav-link.active-link {
  color: var(--accent-orange);
}

.navbar .nav-link.active-link::after {
  width: 100%;
}

.navbar .nav-actions .nav-search-btn {
  color: var(--white);
}

.navbar .hamburger span {
  background-color: var(--white);
}


/* ==========================================================================
   MEGA MENU STYLING (MAX MEGA MENU ADAPTATION)
   ========================================================================== */
#mega-menu-wrap-header_menu {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.mega-menu {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.mega-menu-item {
  position: relative;
  flex-shrink: 0;
}

.mega-menu-horizontal>.mega-menu-item>.mega-menu-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  color: var(--white);
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
  border: none;
}

.navbar.sticky .mega-menu-horizontal>.mega-menu-item>.mega-menu-link {
  color: var(--text-dark);
}

.mega-menu-horizontal>.mega-menu-item:hover>.mega-menu-link,
.navbar.sticky .mega-menu-horizontal>.mega-menu-item:hover>.mega-menu-link {
  color: var(--accent-orange);
}

/* Submenu Dropdown Container */
.mega-menu .mega-sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  min-width: 300px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-menu-item:hover>.mega-sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-sub-menu .mega-menu-item {
  width: 100%;
}

.mega-sub-menu .mega-menu-link {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark) !important;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  text-align: left;
  border: none;
  background: transparent;
  width: 100%;
}

.mega-sub-menu .mega-menu-link:hover {
  background-color: rgba(0, 84, 143, 0.05);
  color: var(--primary-blue) !important;
  padding-left: 24px;
}

/* Deep Flyouts (Level 3 Submenus) */
.mega-sub-menu .mega-menu-item-has-children>.mega-menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mega-sub-menu .mega-sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 2px;
  margin-top: 0;
  transform: translateX(10px);
}

.mega-sub-menu .mega-menu-item:hover>.mega-sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Specific class modifications */
.mega-aytac-red .mega-menu-link {
  color: var(--accent-orange) !important;
}

.navbar.sticky .mega-aytac-red .mega-menu-link {
  color: var(--accent-orange) !important;
}

/* Sticky Navbar (Aşağı Kaydırılınca) */
.navbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
  border-bottom: none;
  animation: slideDown 0.3s ease-out;
  z-index: 9999 !important;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.navbar.sticky .logo img {
  filter: none;
  /* Orijinal renkli logo */
}

.navbar.sticky .nav-link {
  color: var(--text-dark);
}

.navbar.sticky .nav-link:hover {
  color: var(--primary-blue);
}

.navbar.sticky .nav-link.active-link {
  color: var(--accent-orange);
}

.navbar.sticky .nav-actions .nav-search-btn {
  color: var(--text-dark);
}

.navbar.sticky .hamburger span {
  background-color: var(--text-dark);
}

.navbar .logo {
  flex: 0 0 auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}

.nav-search-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar.sticky .nav-search-btn:hover {
  background-color: var(--bg-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   SECTION 1: HERO & TAM SAYFA SLIDER
   ========================================================================== */
.hero {
  padding-top: 100px;
  height: auto;
  aspect-ratio: 1920 / 750;
  position: relative;
  overflow: visible;
  background-color: var(--text-dark);
}

.hero-slider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform: scale(1.0);
}

/* Ken Burns Zoom Animasyonu */
.hero-slide.active img {
  animation: kenBurnsAnimation 6.5s ease-out forwards;
}

@keyframes kenBurnsAnimation {
  0% {
    transform: scale(1.0);
  }

  100% {
    transform: scale(1.06) translate(4px, 2px);
  }
}

/* Tam Sayfa Overlay Degradesi */
.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: center;
  z-index: 5;
  padding-top: 100px;
}

.hero-slide-content {
  max-width: 850px;
  padding-left: 20px;
}

/* Slayt iç metin süzülme animasyonları */
.hero-slide-category,
.hero-slide-title,
.hero-slide-desc,
.hero-slide-btns {
  opacity: 0;
  transform: translateY(20px);
}

.hero-slide.active .hero-slide-category {
  animation: slideTextUp 0.6s 0.3s ease-out forwards;
}

.hero-slide.active .hero-slide-title {
  animation: slideTextUp 0.6s 0.5s ease-out forwards;
}

.hero-slide.active .hero-slide-desc {
  animation: slideTextUp 0.6s 0.7s ease-out forwards;
}

.hero-slide.active .hero-slide-btns {
  animation: slideTextUp 0.6s 0.9s ease-out forwards;
}

@keyframes slideTextUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.hero-slide-category {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: inline-block;
}

.hero-slide-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-slide-title span {
  color: var(--accent-orange);
}

.hero-slide-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
  max-width: 680px;
  line-height: 1.5;
}

.hero-slide-btns {
  display: flex;
  gap: 16px;
}

/* Slider Noktaları */
.slider-dots {
  position: absolute;
  right: 48px;
  bottom: 90px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background-color: var(--accent-orange);
  width: 26px;
  border-radius: 10px;
}

/* Slider İlerleme Çizgisi */
.slider-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--accent-orange);
  z-index: 15;
  opacity: 0.5;
}

/* Floating Hızlı Erişim */
.quick-access {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  z-index: 20;
  padding: 0 24px;
}

.quick-access-bar {
  background: rgb(55 93 141 / 30%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 10px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.quick-access-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 40px;
  transition: var(--transition);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  /* color: var(--white); */
}

.quick-access-item:hover {
  background-color: var(--white);
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.quick-access-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.quick-access-item:hover .quick-access-icon {
  background-color: rgba(0, 84, 143, 0.1);
  color: var(--primary-blue);
}

/* ==========================================================================
   BÖLÜMLER ARASI DALGA GEÇİŞLERİ (KESİNTİSİZ AKIŞ İÇİN)
   ========================================================================== */
.section-wave-header {
  position: absolute;
  bottom: -10px;
  left: 0;
  display: block;
  width: 100%;
  height: 90px;
  line-height: 0;
  z-index: 6;
  pointer-events: none;
}

.section-wave-header svg {
  width: 100%;
  height: 100%;
  display: block;
}

.section-wave {
  position: absolute;
  top: -80px;
  left: 0;
  display: block;
  width: 100%;
  height: 90px;
  line-height: 0;
  z-index: 6;
  pointer-events: none;
}

.section-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wave-fill-white {
  fill: var(--white);
}

.wave-fill-light {
  fill: var(--bg-light);
}

.wave-fill-blue {
  fill: var(--primary-blue);
}

/* ==========================================================================
   SECTION 1.5: EĞİTİM İŞ ORTAKLARIMIZ (LOGO BANDI)
   ========================================================================== */
.partners-banner {
  position: relative;
  padding: 60px 0 20px 0;
  background-color: var(--white);
}

.partners-inner {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.partners-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-align: left;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  background-color: var(--white);
  padding-right: 40px;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

/* ==========================================================================
   SECTION 2: PROGRAMLARIMIZ (FOTOĞRAF ARKA PLANLI GRİD - 4 SÜTUN)
   ========================================================================== */
.programs {
  padding: 75px 0 190px 0;
  background-color: var(--white);
}

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

.program-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 300px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: var(--white);
}

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

.program-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s ease;
}

.program-card:hover .program-card-bg {
  transform: scale(1.06);
}

.program-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 32, 0.82) 0%, rgba(15, 23, 32, 0.25) 45%, rgba(15, 23, 32, 0.88) 100%);
  z-index: 2;
}

.program-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-content h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.program-card:hover .program-content h3 {
  color: var(--accent-orange);
}

.program-content p {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.45;
  margin-top: 6px;
  margin-bottom: 12px;
}

.program-card-arrow {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--accent-orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  transition: var(--transition);
}

.program-card:hover .program-card-arrow {
  transform: translateX(4px);
}


/* ==========================================================================
   SECTION 3: HABERLER (1 BÜYÜK DİKEY + SLIDING ROW CARDS)
   ========================================================================== */
.news {
  position: relative;
  padding: 50px 0 190px 0;
  margin-top: -90px;
  background-color: var(--bg-light);
}

/* News Split Layout */
.news-layout-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.news-large-col {
  display: flex;
  flex-direction: column;
}

.news-main-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.news-main-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 84, 143, 0.15);
}

.news-main-img {
  position: relative;
  aspect-ratio: 9 / 4;
  overflow: hidden;
}

.news-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.news-main-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--accent-orange);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 5;
}

.news-main-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-main-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-main-body h3 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 12px;
  transition: var(--transition);
}

.news-main-card:hover .news-main-body h3 {
  color: var(--primary-blue);
}

.news-main-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.news-main-link {
  margin-top: auto;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.news-main-card:hover .news-main-link {
  color: var(--accent-orange);
}

.news-main-card:hover .news-main-link i {
  transform: translateX(4px);
  transition: var(--transition);
}

/* Small Cards Stack on Right (Birleşik ve Sayfalı) */
.news-small-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.news-small-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 6px;
}

.news-small-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
}

.news-small-arrows {
  display: flex;
  gap: 6px;
}

.news-arrow-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--primary-blue);
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.news-arrow-btn:hover {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--white);
  transform: translateY(-1px);
}

.news-small-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--border-radius);
}

.news-small-track {
  display: flex;
  width: 200%;
  /* 2 sayfa yan yana */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-small-page {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Birleşik (Tighter Gap) */
}

.news-row-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px;
  /* Birleşik (Tighter padding) */
  background-color: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.news-row-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 84, 143, 0.15);
}

.news-row-img {
  width: 100px;
  /* Biraz daha birleşik ve küçük */
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.news-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-row-card:hover .news-row-img img {
  transform: scale(1.08);
}

.news-row-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 700;
  z-index: 5;
  transition: var(--transition);
}

.news-row-card:hover .news-row-badge {
  background-color: var(--accent-orange);
}

.news-row-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-row-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-row-body h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 6px;
  transition: var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-row-card:hover .news-row-body h4 {
  color: var(--primary-blue);
}

.news-row-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-row-link {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.news-row-card:hover .news-row-link {
  color: var(--accent-orange);
}

.news-row-card:hover .news-row-link i {
  transform: translateX(3px);
  transition: var(--transition);
}

@media (max-width: 1400px) {
  .mega-menu {
    gap: 16px;
  }

  .mega-menu-horizontal>.mega-menu-item>.mega-menu-link {
    font-size: 0.9rem;
    padding: 8px 0;
  }
}

/* Responsive Grid Split */
@media (max-width: 1024px) {
  .news-layout-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .news-row-card {
    flex-direction: column;
    align-items: stretch;
  }

  .news-row-img {
    width: 100%;
    height: 160px;
  }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.news-large-col.scroll-reveal {
  transition-delay: 0.05s;
}

.news-small-col .news-row-card.scroll-reveal:nth-child(1) {
  transition-delay: 0.15s;
}

.news-small-col .news-row-card.scroll-reveal:nth-child(2) {
  transition-delay: 0.25s;
}

.news-small-col .news-row-card.scroll-reveal:nth-child(3) {
  transition-delay: 0.35s;
}

.programs-grid .program-card.scroll-reveal:nth-child(1) {
  transition-delay: 0.05s;
}

.programs-grid .program-card.scroll-reveal:nth-child(2) {
  transition-delay: 0.15s;
}

.programs-grid .program-card.scroll-reveal:nth-child(3) {
  transition-delay: 0.25s;
}

.programs-grid .program-card.scroll-reveal:nth-child(4) {
  transition-delay: 0.35s;
}

.programs-grid .program-card.scroll-reveal:nth-child(5) {
  transition-delay: 0.45s;
}

.programs-grid .program-card.scroll-reveal:nth-child(6) {
  transition-delay: 0.55s;
}

.programs-grid .program-card.scroll-reveal:nth-child(7) {
  transition-delay: 0.65s;
}

.programs-grid .program-card.scroll-reveal:nth-child(8) {
  transition-delay: 0.75s;
}

.programs-grid .program-card.scroll-reveal:nth-child(9) {
  transition-delay: 0.85s;
}

.programs-grid .program-card.scroll-reveal:nth-child(10) {
  transition-delay: 0.95s;
}

.articles-track .article-card.scroll-reveal {
  transform: translateY(60px);
}

.articles-track .article-card.scroll-reveal.active {
  transform: translateY(0);
}

.articles-track .article-card.scroll-reveal:nth-child(1) {
  transition-delay: 0.05s;
}

.articles-track .article-card.scroll-reveal:nth-child(2) {
  transition-delay: 0.25s;
}

.articles-track .article-card.scroll-reveal:nth-child(3) {
  transition-delay: 0.45s;
}

.articles-track .article-card.scroll-reveal:nth-child(4) {
  transition-delay: 0.65s;
}

.articles-track .article-card.scroll-reveal:nth-child(5) {
  transition-delay: 0.85s;
}

.events-grid .event-card.scroll-reveal:nth-child(1) {
  transition-delay: 0.05s;
}

.events-grid .event-card.scroll-reveal:nth-child(2) {
  transition-delay: 0.2s;
}

.events-grid .event-card.scroll-reveal:nth-child(3) {
  transition-delay: 0.35s;
}

/* ==========================================================================
   SECTION 4: ETKİNLİKLER (3 SÜTUN HOVER REVEAL CARD DECK)
   ========================================================================== */
.stream {
  position: relative;
  padding: 50px 0 190px 0;
  margin-top: -90px;
  background-color: var(--white);
}

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

.event-card {
  height: 440px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  background-color: var(--text-dark);
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover img {
  transform: scale(1.08);
}

.event-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 5;
}

.event-content {
  padding: 30px;
  color: var(--white);
}

.event-content h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
  transition: var(--transition);
}

.event-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-category {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.event-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  line-height: 1.45;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease, max-height 0.45s ease;
}

.event-link {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.45s 0.1s ease, transform 0.45s 0.1s ease;
}

/* Hover Animasyonu */
.event-card:hover .event-desc {
  opacity: 1;
  max-height: 120px;
  transform: translateY(0);
}

.event-card:hover .event-link {
  opacity: 1;
  transform: translateY(0);
}

.event-card:hover h3 {
  color: var(--accent-orange);
}

/* ==========================================================================
   SECTION 5: HIZLI ERİŞİM & PROJELERİMİZ (SPLIT CARD DÜZENİ)
   ========================================================================== */
.quick-links {
  position: relative;
  padding: 5px 0 200px 0;
  margin-top: -90px;
  background-color: var(--white);
}

.quick-split-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.quick-split-left,
.quick-split-right {
  width: 100%;
}

/* Sol Kadran (2x2 Grid) */
.quadrant-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 165px);
  background-color: var(--primary-blue);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quadrant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 84, 143, 0.25);
}

.quadrant-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white) !important;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
  padding: 20px;
  text-align: center;
}

.quadrant-item:nth-child(2),
.quadrant-item:nth-child(4) {
  border-right: none;
}

.quadrant-item:nth-child(3),
.quadrant-item:nth-child(4) {
  border-bottom: none;
}

.quadrant-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.quadrant-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.quadrant-item:hover .quadrant-icon {
  transform: scale(1.15);
}

.quadrant-item h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

/* Sağ Yığılmış Dikey Kartlar */
.quick-split-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.split-vertical-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 30px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.split-vertical-card:hover {
  transform: translateY(-5px);
}

.orange-card {
  color: var(--accent-orange) !important;
  background-color: #ff953f26;
}

.orange-card:hover {
  box-shadow: 0 15px 30px rgba(240, 125, 26, 0.35);
}

.blue-card {
  /* background-color: #e6f0fa; */
  background-color: #e6f0fa75;
  color: var(--primary-blue);
}

.blue-card:hover {
  box-shadow: 0 15px 30px rgba(0, 84, 143, 0.15);
}

.split-card-icon {
  font-size: 2.6rem;
  opacity: 0.95;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--white);
  border-radius: 14px;
  flex-shrink: 0;
  transition: var(--transition);
}

.orange-card .split-card-icon {
  color: var(--accent-orange);
}

.blue-card .split-card-icon {
  color: var(--primary-blue);
}

.split-vertical-card:hover .split-card-icon {
  transform: scale(1.1);
  /* background-color: rgba(255, 255, 255, 0.6); */
}

.split-card-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.split-card-content h3 {
  font-family: var(--font-title);
  font-weight: 750;
  font-size: 1.2rem;
  margin: 0;
}

.split-card-content p {
  font-size: 0.86rem;
  opacity: 0.85;
  margin: 0;
  line-height: 1.4;
}

.split-card-action {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.split-card-action i {
  transition: transform 0.3s ease;
}

.split-vertical-card:hover .split-card-action i {
  transform: translateX(5px);
}

/* Partner Logo Slider (Sonsuz Loop Marquee) */
.logo-slider {
  overflow: hidden;
  flex-grow: 1;
  padding: 10px 0;
  position: relative;
  z-index: 5;
  margin-left: -30px;
}

/* Yumuşak geçişli sol ve sağ maskeleme degradesi */
.logo-slider::before,
.logo-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: calc(210px * 12);
  /* 12 slides (6 orijinal + 6 kopya) */
  animation: logoScroll 22s linear infinite;
}

.logo-slide {
  width: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.logo-slide img {
  max-width: 100%;
  max-height: 75px;
  object-fit: contain;
  filter: none;
  opacity: 0.85;
  transition: var(--transition);
}

.logo-slide:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.06);
}


/* Üzerine gelince döngüyü duraklat */
.logo-slider:hover .logo-track {
  animation-play-state: paused;
}

@keyframes logoScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-210px * 6));
    /* Tam yarısı (Genlik + Gap) */
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER (ÇEREZ ONAY BARI)
   ========================================================================== */
.cookie-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(43, 48, 58, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  padding: 16px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-bar.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-consent-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cookie-text {
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-text p {
  color: var(--white);
}

.cookie-text a:hover {
  color: var(--accent-orange);
}

.cookie-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background-color: var(--accent-orange);
  color: var(--white);
  border: none;
  padding: 8px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-btn-accept:hover {
  background-color: #d1690f;
}

.cookie-btn-settings {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-btn-settings:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  clear: both !important;
  position: relative;
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 10px 0 20px 0;
  margin-top: 0;
  font-size: 0.9rem;
  flex: 1;
}

/* Float temizleme (Clearfix) - floated div'lerin (pull-left/pull-right) yüksekliğinin 0 olmasını engeller */
.gramotech-content,
.main-content,
.blog-details,
.blog-detail,
.site-main,
.row {
  display: flow-root;
}

.gramotech-content::after,
.main-content::after,
.blog-details::after,
.blog-detail::after,
.site-main::after,
.row::after {
  content: "";
  display: table;
  clear: both;
}

/* WordPress Gramotech İçerik & Blog Sayfaları (gramotech-content) Spacing */
.main-content,
.blog-details,
.site-main {
  position: relative;
  z-index: 1;
  background-color: var(--white);
  padding-top: 40px;
  padding-bottom: 60px;
}

.gramotech-default-content,
.aytac-gramotech-content {
  padding-top: 40px;
  padding-bottom: 60px;
}

.stitle {
  position: relative;
  padding-left: 30px !important;
  margin-bottom: 40px !important;
}

.gramotech-content+footer,
.main-content+footer,
.blog-details+footer,
div+footer {
  margin-top: 0;
  clear: both !important;
}

/* Sadece ana sayfada veya öncesinde dalgalı bölüm (.publications vb.) olduğunda dalga ile birleşir */
section+footer,
.publications+footer,
.quick-links+footer,
.has-wave+footer {
  margin-top: -90px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent-orange);
}

.footer-about img {
  height: 55px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-about p {
  opacity: 0.8;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  background-color: var(--accent-orange);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-orange);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact-item span {
  font-size: 1.1rem;
  color: var(--accent-orange);
}

.footer-contact-item p {
  opacity: 0.8;
  line-height: 1.4;
}

/* Harita / Yol tarifi kutusu */
.footer-map-btn {
  margin-top: 10px;
  width: 100%;
}

/* Telif Hakkı */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.7;
  background: var(--primary-blue);
  float: none;
}

/* Yatay Scroll Progress Bar */
.horizontal-scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.15);
  z-index: 1005;
  pointer-events: none;
}

.navbar.sticky .horizontal-scroll-progress {
  background-color: rgba(0, 0, 0, 0.05);
}

.scroll-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, var(--primary-blue), var(--accent-orange));
  transition: width 0.05s linear;
}

@media (min-width: 1025px) {

  #progMedical,
  .programs-grid .program-card:nth-child(9) {
    grid-column: 2 / span 1;
  }

  #progEnglish,
  .programs-grid .program-card:nth-child(10) {
    grid-column: 3 / span 1;
  }
}


/* ==========================================================================
   SECTION 4: KURUMSAL E-YAYINLARIMIZ (GÜNCE & BÜLTEN KARTLARI)
   ========================================================================== */
.publications {
  position: relative;
  padding: 50px 0 190px 0;
  margin-top: -90px;
  background-color: var(--bg-light);
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.publication-card {
  display: flex;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  height: 250px;
}

.publication-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 84, 143, 0.2);
}

.publication-cover {
  width: 40%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.publication-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.publication-card:hover .publication-cover img {
  transform: scale(1.08);
}

.publication-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-blue);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  z-index: 3;
}

.publication-badge.bulten-badge {
  background: var(--accent-orange);
}

.publication-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.publication-body h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.3;
  margin-bottom: 8px;
  transition: var(--transition);
}

.publication-card:hover .publication-body h3 {
  color: var(--accent-orange);
}

.publication-body p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.publication-btn {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.publication-card:hover .publication-btn {
  color: var(--accent-orange);
  transform: translateX(4px);
}

/* ==========================================================================
   SECTION 4.5: DUYURU & GÜNCEMİZ (İKİLİ SLIDE-IN KARTLAR)
   ========================================================================== */
.bulletin {
  position: relative;
  padding: 50px 0 190px 0;
  margin-top: -90px;
  background-color: var(--bg-light);
}

.bulletin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-top: 40px;
}

.bulletin-card {
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  background-color: var(--white);
}

.bulletin-blue {
  background: linear-gradient(135deg, var(--white) 60%, rgba(0, 84, 143, 0.05) 100%);
  border-left: 5px solid var(--primary-blue);
}

.bulletin-orange {
  background: linear-gradient(135deg, var(--white) 60%, rgba(240, 125, 26, 0.05) 100%);
  border-left: 5px solid var(--accent-orange);
}

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

.bulletin-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.bulletin-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.bulletin-blue .bulletin-icon-box {
  background-color: rgba(0, 84, 143, 0.08);
  color: var(--primary-blue);
}

.bulletin-orange .bulletin-icon-box {
  background-color: rgba(240, 125, 26, 0.08);
  color: var(--accent-orange);
}

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

.bulletin-card:hover .bulletin-orange .bulletin-icon-box {
  background-color: var(--accent-orange);
  color: var(--white);
}

.bulletin-card-header h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
}

.bulletin-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.bulletin-item {
  display: flex;
  gap: 18px;
  padding: 12px;
  border-radius: 12px;
  transition: var(--transition);
}

.bulletin-item:hover {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.bulletin-date {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
}

.bulletin-blue .bulletin-date {
  background-color: rgba(0, 84, 143, 0.06);
  color: var(--primary-blue);
}

.bulletin-orange .bulletin-date {
  background-color: rgba(240, 125, 26, 0.06);
  color: var(--accent-orange);
}

.bulletin-date span:nth-child(1) {
  font-size: 1.15rem;
}

.bulletin-date span:nth-child(2) {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 600;
}

.bulletin-text h4 {
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  transition: var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.bulletin-item:hover .bulletin-text h4 {
  color: var(--primary-blue);
}

.bulletin-orange .bulletin-item:hover .bulletin-text h4 {
  color: var(--accent-orange);
}

.bulletin-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.bulletin-btn {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  padding: 10px 0;
}

.btn-blue {
  color: var(--primary-blue);
}

.btn-orange {
  color: var(--accent-orange);
}

.bulletin-btn:hover {
  gap: 10px;
}

.bulletin-btn i {
  transition: var(--transition);
}

/* Slide Reveal (Left and Right) */
.reveal-from-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-from-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-from-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-from-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (RESPONSIVE UYUMLULUK)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-slide-overlay {
    padding-top: 140px;
    align-items: flex-start;
    padding-bottom: 240px;
  }

  .hero-slide-title {
    font-size: 2.8rem;
  }

  .slider-dots {
    right: 24px;
    bottom: 60px;
  }

  .quick-access {
    bottom: -40px;
  }

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

  .news-grid-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .quick-split-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .quadrant-card {
    grid-template-rows: repeat(2, 150px);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .bulletin-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .publications-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 16px 0;
  }

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

  .mega-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    padding: 30px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow-y: auto;
    align-items: flex-start;
    display: flex;
  }

  .mega-menu.active {
    left: 0;
  }

  .mega-menu-horizontal>.mega-menu-item {
    width: 100%;
  }

  .mega-menu-horizontal>.mega-menu-item>.mega-menu-link {
    color: var(--text-dark);
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .mega-menu .mega-sub-menu {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    margin-top: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mega-menu .mega-menu-item.open>.mega-sub-menu {
    display: block !important;
  }

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

  .mega-menu-item.open>.mega-menu-link>i {
    transform: rotate(180deg);
  }

  .mega-menu .mega-sub-menu .mega-menu-link {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
  }

  .mega-menu .mega-sub-menu .mega-sub-menu {
    position: relative;
    left: 0;
    transform: none;
    padding-left: 16px;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

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

  .hero-slide-desc {
    font-size: 1rem;
  }

  .hero {
    height: auto;
    overflow: visible;
    padding-top: 65px;
  }

  .hero-slider-wrapper {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .quick-access {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 20px;
    padding: 0;
    z-index: 25;
  }

  .slider-dots {
    bottom: 16px;
    right: 50%;
    transform: translateX(50%);
  }

  .quick-access-bar {
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
    gap: 12px;
    background: rgba(0, 84, 143, 0.9);
    box-shadow: var(--shadow-md);
  }

  .quick-access-item {
    justify-content: center;
    padding: 10px;
    color: var(--white);
    font-size: 0.85rem;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }

  .quick-access-item:hover {
    background-color: var(--white);
    color: var(--primary-blue);
  }

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

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

  .quick-split-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quadrant-card {
    grid-template-rows: repeat(2, 140px);
  }

  .split-vertical-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cookie-consent-bar .container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom p {
    color: #fff !important;
  }

  .section-wave {
    height: 40px;
  }

  .partners-banner {
    margin-top: -40px;
    padding-top: 70px;
  }

  .partners-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .partners-title {
    padding-right: 0;
    margin-bottom: 0;
  }

  .logo-slider {
    margin-left: 0;
  }

  .news,
  .stream,
  .bulletin,
  .quick-links,
  section+footer {
    margin-top: -40px;
    padding-top: 100px;
  }

  .bulletin-card {
    padding: 24px;
  }
}

@media (max-width: 768px) {

  .section-title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
  }

  .section-title {
    font-size: 1.65rem;
    padding-left: 16px;
    line-height: 1.25;
  }

  .section-title::before {
    height: 22px;
    width: 5px;
  }

  .section-subtitle {
    font-size: 0.88rem;
    margin-top: 6px;
  }

  .top-bar,
  .section-wave {
    display: none;
  }

  .publications-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }

  .publication-card {
    height: auto;
    min-height: 180px;
  }

  .publication-cover {
    width: 130px;
    flex-shrink: 0;
  }

  .publication-body {
    padding: 20px 18px;
  }

  .publication-body h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }

  .publication-body p {
    font-size: 0.84rem;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .publication-card {
    flex-direction: column;
    height: auto;
  }

  .publication-cover {
    width: 100%;
    height: 180px;
  }

  .publication-body {
    padding: 20px 18px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.45rem;
  }
}

.navbar.sticky .slider-progress-bar {
  display: none;
}

/* ==========================================================================
   ARAMA MODAL / OVERLAY STİLLERİ
   ========================================================================== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-modal {
  background: #ffffff;
  width: 90%;
  max-width: 650px;
  border-radius: 20px;
  padding: 35px 40px 40px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(-20px) scale(0.95);
  transition: transform 0.3s ease;
}

.search-overlay.active .search-modal {
  transform: translateY(0) scale(1);
}

.search-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.search-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.search-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 6px 6px 6px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-group:focus-within {
  border-color: var(--primary-blue, #004b93);
  box-shadow: 0 0 0 4px rgba(0, 75, 147, 0.12);
  background: #ffffff;
}

.search-input-group .search-icon {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-right: 12px;
}

.search-field {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: #1e293b;
  outline: none;
  font-family: inherit;
  padding: 8px 0;
}

.search-field::placeholder {
  color: #94a3b8;
}

.search-submit-btn {
  background: var(--primary-blue, #004b93);
  color: #ffffff;
  border: none;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.search-submit-btn:hover {
  background: #00376d;
}

.search-submit-btn:active {
  transform: scale(0.97);
}

.edugrade-courses.courses-new .row>a {
  display: contents;
  text-decoration: none !important;
  color: inherit !important;
}