/* ... Previous styles ... */
:root {
  --brand: #0E7490;
  --bg: #F8FAFC;
  --grad1: #5b6cff;
  --grad2: #8e5cff;

  /* User Provided Header Variables */
  --primary-color: #2c5f2d;
  --primary-dark: #1e451e;
  --secondary-color: #d4a373;
  --text-color: #333;
  --bg-white: #ffffff;
  --transition: all 0.3s ease-in-out;
}

body {
  background: var(--bg);
  font-family: 'Outfit', sans-serif !important;
}

/* Top Bar (Clean) */
.top-bar {
  background-color: transparent;
  /* Handled by bg-white in HTML */
  padding: 5px 0;
  font-size: 1rem;
}

.top-bar a.lang-link {
  color: #333;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  opacity: 0.7;
}

.top-bar a.lang-link.active,
.top-bar a.lang-link:hover {
  color: #000;
  opacity: 1;
  transform: scale(1.05);
  display: inline-block;
}

.top-bar .lang-separator {
  color: #ccc;
  margin: 0 8px;
}


/* Global links overridden by Bootstrap usually, but we can set brand color */
a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  color: #1F3D2B;
  text-decoration: underline;
}

.navbar-brand i {
  color: #1F3D2B
}

/* Redesigned Hero Section */
.hero {
  /* Subtle gradient background or Image */
  background: radial-gradient(1200px 500px at 20% 0%, #e0f2fe 0, transparent 60%), radial-gradient(1200px 500px at 80% 0%, #dcfce7 0, transparent 60%);
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out;
}

.hero-badge {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

.badge-soft-green {
  background-color: rgba(44, 95, 45, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(44, 95, 45, 0.2);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.6;
}

.hero-meta {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Premium Unified Countdown Bar */
.countdown {
  display: inline-flex;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  /* Soft shadow */
  padding: 1.5rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  gap: 0;
  /* No gap, dividers instead */
  position: relative;
  justify-content: center;
  align-items: center;
}

.cd-box {
  background: transparent;
  padding: 0 2.5rem;
  /* Wide spacing */
  border-radius: 0;
  min-width: auto;
  text-align: center;
  box-shadow: none;
  border: none;
  position: relative;
  transition: transform 0.3s ease;
}

.cd-box:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

/* Thin Dividers between boxes */
.cd-box:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.08);
}

/* Premium Typography for Numbers */
.cd-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  /* Large and bold */
  color: #1F3D2B;
  /* Deep Academic Green */
  line-height: 1;
  margin-bottom: 0.3rem;
  background: none;
  -webkit-text-fill-color: #1F3D2B;
}

/* Animation for Numbers */
@keyframes softPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.cd-num {
  animation: softPulse 2s infinite ease-in-out;
}

.cd-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  font-weight: 600;
}


/* Premium Hero Buttons (Dark Green Theme) */
.btn-hero-primary {
  background-color: #1F3D2B;
  /* Dark Green */
  color: #fff;
  border: none;
  border-radius: 12px;
  /* Smooth corners */
  font-weight: 600;
  /* Stronger font weight */
  font-size: 1.15rem;
  padding: 1rem 3rem;
  /* Taller and wider */
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(31, 61, 43, 0.15);
  /* Subtle green shadow */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-hero-primary:hover {
  background-color: #162e20;
  /* Slightly darker on hover */
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(31, 61, 43, 0.25);
  color: #fff;
  text-decoration: none;
}

.btn-hero-secondary {
  background-color: transparent;
  color: #1F3D2B;
  /* Dark Green Text */
  border: 1px solid rgba(31, 61, 43, 0.2);
  /* Subtle Green Border */
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 1rem 3rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-hero-secondary:hover {
  background-color: rgba(31, 61, 43, 0.04);
  /* Very light green fill */
  border-color: rgba(31, 61, 43, 0.4);
  color: #1F3D2B;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .countdown {
    flex-wrap: wrap;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .cd-box {
    padding: 0 1rem;
    min-width: 45%;
    /* Two per row on mobile */
    border: none;
    /* Remove dividers on mobile wrap */
  }

  .cd-box:not(:last-child)::after {
    display: none;
  }

  .cd-num {
    font-size: 2.5rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Global Button Fix for Lower Sections to Match (Green Theme) */
.btn-primary {
  background-color: #1F3D2B;
  border-color: #1F3D2B;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #162e20;
  border-color: #162e20;
  box-shadow: 0 5px 15px rgba(31, 61, 43, 0.2);
}

.btn-outline-primary {
  color: #1F3D2B;
  border-color: #1F3D2B;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: #1F3D2B;
  color: #fff;
  box-shadow: 0 5px 15px rgba(31, 61, 43, 0.2);
}

.btn-hero-secondary {
  background-color: transparent;
  color: #888;
  /* Softer gray/text color */
  border: 1px solid #ddd;
  /* Softer border */
  border-radius: 8px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
  padding: 0.8rem 2.5rem;
}

.btn-hero-secondary:hover {
  background-color: #fcfcfc;
  border-color: #bbb;
  color: #555;
  transform: translateY(-2px);
}


/* Header Navigation Styles Matching Reference */
#header {
  background-color: var(--bg-white);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid #f0f0f0;
}

.nav-links li a {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-color);
  padding: 5px 0;
  position: relative;
  /* Remove default underline */
  text-decoration: none;
}

/* Gold Underline Effect from Reference */
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  /* Gold color */
  transition: width 0.3s ease;
}

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

.nav-links li a:hover {
  color: #000;
  text-decoration: none;
}


/* ===========================
   Existing Required Styles
   =========================== */
.card-hover {
  transition: .25s ease
}

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

.year-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 1.0rem;
  font-weight: 800;
  padding: .2rem .55rem;
  border-radius: .75rem;
  background: linear-gradient(135deg, #1F3D2B, #2c5f2d);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12)
}

.past-card .card-img-top {
  aspect-ratio: 3/2;
  object-fit: cover
}

/* Timeline CSS (Clean) */
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 20px auto;
}

.timeline__event {
  position: relative;
  display: flex;
  margin: 20px 0;
  border-radius: 6px;
  align-self: center;
  width: min(800px, 90vw);
}

.timeline__event:nth-child(2n+1) {
  flex-direction: row-reverse;
}

.timeline__event__title {
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #9251ac;
  letter-spacing: 1.2px
}

.timeline__event__content {
  padding: 20px;
  box-shadow: 0 30px 60px -12px rgba(50, 50, 93, .25), 0 18px 36px -18px rgba(0, 0, 0, .3), 0 -12px 36px -8px rgba(0, 0, 0, .025);
  background: #fff;
  width: calc(40vw - 84px);
  max-width: 520px;
  border-radius: 0 6px 6px 0
}

.timeline__event:nth-child(2n+1) .timeline__event__content {
  border-radius: 6px 0 0 6px
}

.timeline__event__date {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  background: #9251ac;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 20px;
  border-radius: 6px 0 0 6px
}

.timeline__event:nth-child(2n+1) .timeline__event__date {
  border-radius: 0 6px 6px 0
}

.timeline__event__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9251ac;
  align-self: center;
  margin: 0 20px;
  background: #f6a4ec;
  border-radius: 100%;
  width: 40px;
  height: 40px;
  position: relative;
  box-shadow: 0 30px 60px -12px rgba(50, 50, 93, .25), 0 18px 36px -18px rgba(0, 0, 0, .3), 0 -12px 36px -8px rgba(0, 0, 0, .025)
}

.timeline__event--type2 .timeline__event__date {
  background: #555ac0;
  color: #ffffff
}

.timeline__event--type2 .timeline__event__icon {
  background: #87bbfe;
  color: #555ac0
}

.timeline__event--type2 .timeline__event__title {
  color: #555ac0
}

.timeline__event--type3 .timeline__event__date {
  background: #24b47e;
  color: #ffffff
}

.timeline__event--type3 .timeline__event__icon {
  background: #aff1b6;
  color: #24b47e
}

.timeline__event--type3 .timeline__event__title {
  color: #24b47e
}

@media (max-width: 786px) {
  .timeline__event {
    flex-direction: column;
    align-self: center
  }

  .timeline__event__content {
    width: 100%
  }

  .timeline__event__icon {
    border-radius: 6px 6px 0 0;
    width: 100%;
    margin: 0;
    box-shadow: none
  }

  .timeline__event__date {
    border-radius: 0;
    padding: 20px
  }

  .timeline__event:nth-child(2n+1) {
    flex-direction: column;
    align-self: center
  }

  .timeline__event:nth-child(2n+1) .timeline__event__date {
    border-radius: 0
  }

  .timeline__event:nth-child(2n+1) .timeline__event__icon {
    border-radius: 6px 6px 0 0;
    margin: 0
  }
}

.contact-card {
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(76, 64, 247, .12)
}


/* =========================================
   HEADER STYLES
   ========================================= */

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

/* Logo Area */
.logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-img {
  height: 65px;
  /* Logo Yüksekliği */
  width: auto;
  display: block;
}

.department-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.4;
  border-left: 2px solid var(--secondary-color);
  padding-left: 20px;
  max-width: 280px;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Hamburger Menu (Mobil) */
.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
}

.bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  transition: var(--transition);
  border-radius: 2px;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Media Queries (Responsive) */
@media (max-width: 992px) {
  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
  }

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

  .nav-links li {
    margin: 15px 0;
  }

  .logo-area {
    gap: 10px;
  }

  .logo-img {
    height: 50px;
  }

  .department-name {
    font-size: 0.8rem;
    padding-left: 10px;
    line-height: 1.3;
    border-left-width: 2px;
  }

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