:root {
  --primary-color: #1e3c72;
  --secondary-color: #2a5298;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --dark-gray: #666;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.top-bar {
  background: var(--primary-color);
  color: white;
  padding: 10px 0;
}

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

.social-links a {
  color: white;
  margin-right: 15px;
  text-decoration: none;
}

.language-select a {
  color: white;
  text-decoration: none;
  margin-left: 10px;
  font-size: 14px;
}

.language-select a.active {
  font-weight: bold;
}

.main-nav {
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.main-nav .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  text-align: center;
  margin-bottom: 15px;
}

.logo img {
  height: 60px;
}

.nav-links {
  display: flex;
  list-style: none;
  justify-content: center;
  width: 100%;
}

.nav-links li {
  position: relative;
}

.nav-links li:not(:last-child) {
  box-shadow: -1px 0 0 0 rgb(0 0 0 / 0.05);
}

.nav-links li a {
  color: var(--text-color);
  text-decoration: none;
  padding: 10px 25px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links li a:hover {
  color: var(--primary-color);
}
/* sadece ok ikonları */
.nav-links .arrow {
  font-size: 10px; /* 🔽 küçült */
  margin-left: auto; /* ➡️ tamamen sağa yasla */
  color: #999; /* sade gri */
  transition: transform 0.2s ease;
}

/* ana menü aşağı ok */
.has-dropdown:hover > a .arrow {
  transform: rotate(180deg);
}

/* dergiler sağ ok */
.has-sub-dropdown:hover > a .arrow {
  transform: rotate(90deg);
}
.nav-links li a {
  display: flex;
  align-items: center;
  gap: 10px; /* ikon + yazı arası */
}
/* Dropdown Menu Styles */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  border-radius: 4px;
}
.dropdown {
  overflow: visible; /* 🔥 ÇOK ÖNEMLİ */
}

.has-sub-dropdown > a {
  display: flex;
  justify-content: space-between;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  display: block;
  width: 100%;
  box-shadow: none !important;
}

.dropdown li a {
  padding: 12px 20px;
  display: block;
  color: var(--text-color);
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

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

.dropdown li a:hover {
  background: var(--light-gray);
  padding-left: 25px;
}

.has-dropdown > a i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.has-dropdown:hover > a i {
  transform: rotate(180deg);
}
.has-sub-dropdown {
  position: relative;
}

.sub-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  border-radius: 4px;
  z-index: 200;
}

.has-sub-dropdown:hover .sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.sub-dropdown li a {
  padding: 12px 18px;
  display: block;
  border-bottom: 1px solid #eee;
}

.sub-dropdown li a:hover {
  background: var(--light-gray);
}

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.slider {
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

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

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.slider-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
}

.slider-nav .prev {
  left: 20px;
}

.slider-nav .next {
  right: 20px;
}

/* Featured Section */
.featured {
  padding: 60px 0;
  background: var(--light-gray);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.featured-item {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.featured-item i {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Departments Section */
.departments {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.main-box-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  font-size: 2rem;
  color: var(--primary-color);
  padding-bottom: 15px;
}

.main-box-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary-color);
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.department-item {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.department-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.department-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.department-icon i {
  font-size: 32px;
  color: white;
}

.department-item h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.department-item p {
  color: var(--dark-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* News Section */
.news {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  margin-top: 10px;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: white;
  text-decoration: none;
}

.newsletter-form {
  margin-top: 20px;
}

.newsletter-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
}

.newsletter-form button {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    height: 300px;
  }

  .featured-grid,
  .news-grid,
  .footer-grid,
  .departments-grid {
    grid-template-columns: 1fr;
  }
}
.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .main-nav .container {
    align-items: flex-start;
  }

  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
    margin-bottom: 10px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    border-top: 1px solid #eee;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    padding: 15px;
    border-bottom: 1px solid #eee;
    justify-content: space-between;
  }

  /* dropdown mobile */
  .dropdown,
  .sub-dropdown {
    position: static;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .has-dropdown.open > .dropdown,
  .has-sub-dropdown.open > .sub-dropdown {
    display: block;
  }

  .has-dropdown > a i,
  .has-sub-dropdown > a i {
    transform: rotate(0);
  }
}
