/* Global Styles */
:root {
  --primary-color: #4a90e2;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --background-light: #f5f6fa;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--background-light);
}

/* Top Header Styles */
.top-header-area {
  position: fixed;
  width: 100%;
  top: 0;
  background: #2c3e50;
  color: white;
  padding: 8px 0; /* 10px'den 8px'e düşürüldü */
  font-size: 13px; /* 14px'den 13px'e düşürüldü */
  z-index: 1002;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.top-header-container {
  max-width: 1200px; /* Ana içerik ile aynı genişlik */
  margin: 0 auto; /* Ortalama */
  padding: 0 1rem; /* 2rem'den 1rem'e düşürüldü */
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

.top-header-left {
  display: flex !important;
  gap: 20px; /* 25px'den 20px'e düşürüldü */
  align-items: center;
  margin-left: 0; /* -5% yerine 0 */
}

.top-header-right {
  display: flex !important;
  gap: 20px; /* 30px'den 20px'e düşürüldü */
  align-items: center;
}

.top-header-item {
  display: flex !important;
  align-items: center;
  gap: 5px; /* 6px'den 5px'e düşürüldü */
  color: rgb(0, 0, 0);
  font-size: 11px; /* 12px'den 11px'e düşürüldü */
}

.top-header-item i {
  color: #000000; /* Siyahtan beyaza değiştirildi */
  font-size: 13px; /* 14px'den 13px'e düşürüldü */
}

.top-header-area a {
  color: rgb(0, 0, 0); /* Siyahtan beyaza değiştirildi */
  text-decoration: none;
  transition: color 0.3s;
}

.top-header-area a:hover {
  color: #4a90e2;
}

.social-links {
  display: flex !important;
  gap: 10px; /* 15px'den 10px'e düşürüldü */
}

.social-links a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 26px; /* 28px'den 26px'e düşürüldü */
  height: 26px; /* 28px'den 26px'e düşürüldü */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  font-size: 13px; /* 14px'den 13px'e düşürüldü */
}

.social-links a:hover {
  background: #4a90e2;
  color: #f1f1f1;
  transform: translateY(-2px);
}

/* Header Styles */
.header {
  position: fixed;
  width: 100%;
  top: 32px; /* 35px'den 32px'e düşürüldü */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 2rem; /* 8px'den 6px'e düşürüldü */
  max-width: 1200px; /* Ana içerik ile aynı genişlik */
  margin: 0 auto; /* Ortalama */
  position: relative;
}

.logo {
  font-size: 1.9rem;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1003;
}

.logo-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.9rem;
  margin-left: 0.3rem;
  transition: color 0.3s;
}

.logo-link:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s;
  padding: 6px 10px; /* 8px 12px'den 6px 10px'e düşürüldü */
  border-radius: 8px;
  position: relative;
  white-space: nowrap;
}

.nav-menu a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1003;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hamburger menu animation */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

/* Slider Section */
.slider-section {
  margin-top: 95px; /* 112px'den 95px'e düşürüldü (header'lar küçüldü) */
  width: 100vw;
  max-width: 100vw;
  background: #fff;
  position: relative;
  overflow: hidden;
  margin-left: 0;
  margin-right: 0;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-container {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0 auto;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-slide {
  display: none;
  position: absolute;
  width: 100vw;
  height: 650px;
  left: 0;
  top: 0;
  transition: opacity 0.5s;
}
.slider-slide.active {
  display: block;
  opacity: 1;
  z-index: 2;
}
.slider-slide img {
  width: 100vw;
  height: 650px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.slider-caption {
  position: absolute;
  left: 360px;
  bottom: 40px;
  background: rgba(44, 62, 80, 0.7);
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  max-width: 400px;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: background 0.3s;
}
.slider-btn.prev {
  left: 20px;
}
.slider-btn.next {
  right: 20px;
}
.slider-btn:hover {
  background: var(--accent-color);
}

/* About Section */
.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 5rem 1rem 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.about-text {
  flex: 1;
}
.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.about-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}
.about-text .btn {
  background: var(--primary-color);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}
.about-text .btn:hover {
  background: var(--accent-color);
}
.about-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.15);
}

/* Courses Section */
.courses-section {
  padding: 5rem 1rem;
  background: var(--background-light);
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.course-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
.course-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.course-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.course-card p {
  color: var(--text-dark);
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(50, 50, 93, 0.15);
}

/* Stats Section */
.stats-section {
  background: var(--secondary-color);
  color: #fff;
  padding: 4rem 1rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 4rem 1rem 1rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--accent-color);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--primary-color);
}
.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Section Styles for Course Pages */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 125px 0 80px 0; /* 142px'den 125px'e düşürüldü */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero .btn {
  background: #e74c3c;
  color: white;
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.hero .btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* General Content Spacing */
.main-content {
  padding-top: 105px; /* 112px'den 105px'e düşürüldü */
}

/* Course Content Sections */
.course-section {
  padding: 60px 0;
}

.course-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.course-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  text-align: center;
}

.course-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #34495e;
}

/* Registration Form Styles */
.registration-form {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 999;
  width: 300px;
  border: 2px solid #4a90e2;
}

.registration-form h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.5rem;
}

.registration-form .form-group {
  margin-bottom: 15px;
}

.registration-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #34495e;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  border-color: #4a90e2;
  outline: none;
}

.registration-form .btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.registration-form .btn-submit:hover {
  background: linear-gradient(135deg, #357abd, #2c5aa0);
  transform: translateY(-2px);
}

/* Navigation Dropdown Styles */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  right: 0; /* left: 0 yerine right: 0 */
  top: 100%;
  background: white;
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  z-index: 1003;
  padding: 8px 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
/* Menü sağ tarafta görünüm için alternatif */
.nav-dropdown:last-child .dropdown-menu {
  right: 0;
  left: auto;
}

/* Menü sol tarafta görünüm için alternatif */
.nav-dropdown:first-child .dropdown-menu {
  left: 0;
  right: auto;
}

/* Orta menüler için otomatik pozisyonlama */
.nav-dropdown:not(:first-child):not(:last-child) .dropdown-menu {
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
}
.nav-dropdown:not(:first-child):not(:last-child).active .dropdown-menu {
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown.active .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px !important;
  color: var(--text-dark) !important;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px !important;
  margin: 4px 8px;
  transition: all 0.2s ease;
  background: transparent !important;
}

.dropdown-menu a:hover {
  background: var(--primary-color) !important;
  color: white !important;
  transform: translateX(4px);
}

/* Mega Menu Styles */
.mega-dropdown {
  position: static;
}

/* Mega Menu Styles */
.mega-dropdown .mega-menu {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: 1200px;
  max-width: calc(100vw - 4rem);
  background: white;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 20px 20px;
  z-index: 1003;
  padding: 40px 2rem;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 40px;
  justify-content: flex-start;
  overflow-x: auto;
  border-top: 3px solid var(--primary-color);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-20px);
  transition: all 0.4s ease;
}
/* Ekran kenarlarında mega menü pozisyonu */
@media (min-width: 1201px) {
  .mega-dropdown .mega-menu {
    left: 50% !important;
    transform: translateX(-50%);
  }
}
@media (max-width: 1200px) {
  .mega-dropdown .mega-menu {
    left: 0;
    right: 0;
    transform: none;
    width: 100vw;
    max-width: 100vw;
    padding: 40px 2rem;
  }

  .mega-dropdown.active .mega-menu {
    transform: translateY(0);
  }
}
.mega-dropdown.active .mega-menu {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-column {
  flex: 1;
  min-width: 240px;
}

.mega-menu-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
  position: relative;
}
/* Viewport kontrolü için JavaScript desteği */
.nav-dropdown.dropdown-right .dropdown-menu {
  right: 0;
  left: auto;
}

.nav-dropdown.dropdown-left .dropdown-menu {
  left: 0;
  right: auto;
}

.nav-dropdown.dropdown-center .dropdown-menu {
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
}

.nav-dropdown.dropdown-center.active .dropdown-menu {
  transform: translateX(-50%) translateY(0);
}
.mega-menu-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.mega-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu ul li {
  margin: 0;
  padding: 0;
}

.mega-menu ul li a {
  display: block;
  padding: 10px 0 !important;
  color: var(--text-dark) !important;
  text-decoration: none;
  border-radius: 6px !important;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  background: transparent !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mega-menu ul li a:hover {
  color: var(--primary-color) !important;
  background: rgba(74, 144, 226, 0.1) !important;
  transform: translateX(8px);
  padding-left: 15px !important;
}

/* Responsive Design */
@media (max-width: 1000px) {
  .about-section {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .about-image img {
    max-width: 300px;
  }
}
@media (max-width: 768px) {
  .top-header-area {
    top: 0;
    height: 35px;
    padding: 5px 0;
    font-size: 11px;
  }

  .top-header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }

  .top-header-left {
    gap: 15px;
    margin-left: 0;
    flex: 1;
  }

  .top-header-right {
    gap: 10px;
    flex-shrink: 0;
  }

  .top-header-item {
    font-size: 11px;
    gap: 5px;
  }

  .top-header-item span {
    display: none !important;
  }

  .top-header-item i {
    font-size: 12px;
    display: inline-block !important;
  }

  .social-links {
    gap: 8px;
  }

  .social-links a {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .header {
    top: 32px;
  }

  .top-header-container {
    padding: 0 1rem;
  }

  .navbar {
    padding: 5px 1rem; /* 8px'den 5px'e düşürüldü */
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 100px 20px 20px 20px;
    gap: 0;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 1004;
    transition: right 0.4s ease;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    margin-bottom: 0;
  }

  .nav-menu a {
    display: block !important;
    width: 100%;
    padding: 15px 0 !important;
    text-align: left;
    border-radius: 0 !important;
    border-bottom: 1px solid #f0f0f0;
    background: transparent !important;
    margin: 0 !important;
    transform: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1005;
  }

  /* Mobile dropdown styles */
  .nav-dropdown .dropdown-menu {
    position: static !important;
    display: none;
    background: #f8f9fa;
    box-shadow: none !important;
    border-radius: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
    opacity: 1 !important;
    transform: none !important;
    border: none;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 12px 20px !important;
    border-bottom: 1px solid #e9ecef;
    margin: 0 !important;
  }

  /* Mobile mega menu styles */
  .mega-dropdown .mega-menu {
    left: 70px;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }
  .mega-dropdown.active .mega-menu {
    transform: translateY(0);
  }
  .mega-menu-column {
    min-width: 100%;
  }

  .mega-menu-title {
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 5px;
  }

  .mega-menu ul li a {
    padding: 10px 20px !important;
    border-bottom: 1px solid #e9ecef;
    transform: none !important;
  }

  .slider-container {
    height: 180px; /* 200px'den 180px'e düşürüldü */
  }

  .slider-section {
    margin-top: 105px !important; /* 65px'den 60px'e düşürüldü */
    height: 220px !important; /* 250px'den 220px'e düşürüldü */
  }

  .hero {
    padding: 80px 0 45px 0; /* 85px'den 80px'e düşürüldü */
  }

  .about-banner {
    height: 180px; /* 200px'den 180px'e düşürüldü */
    font-size: 1.6rem; /* 1.8rem'den 1.6rem'e düşürüldü */
    margin-top: 60px !important; /* 65px'den 60px'e düşürüldü */
  }

  .about-main {
    flex-direction: column;
    gap: 2rem;
    margin: 2rem auto;
    padding: 1.5rem 1rem;
  }

  .about-section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .main-content {
    padding-top: 92px; /* 100px'den 92px'e düşürüldü */
  }

  .course-section {
    padding: 40px 0;
  }

  .course-section h2 {
    font-size: 2rem;
  }

  .course-section .container {
    padding: 0 15px;
  }
}
.footer-social {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}
.footer-social a {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.footer-social a:hover {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.15);
}
.newsletter-form input[type="email"] {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: none;
  margin-bottom: 0.5rem;
  width: 100%;
}
.newsletter-form button[type="submit"] {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}
.newsletter-form button[type="submit"]:hover {
  background: var(--accent-color);
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Inline dropdown styles for mobile */
@media (max-width: 768px) {
  .nav-dropdown .dropdown-menu {
    position: static !important;
    display: none;
    background: #f8f9fa;
    box-shadow: none !important;
    border-radius: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    margin-left: 0;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
  }
  .nav-dropdown.active .dropdown-menu {
    display: block;
  }
  .dropdown-menu a {
    padding: 0.8rem 2rem;
    border-bottom: 1px solid #e9ecef;
    margin-left: 0;
  }
}
.dropdown-menu li {
  list-style: none;
}
.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover {
  background: var(--primary-color);
  color: #fff;
}
.nav-dropdown > a i {
  margin-left: 0.3em;
  font-size: 0.9em;
}
.about-banner {
  width: 100vw;
  height: 280px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 60%,
    var(--secondary-color) 100%
  );
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 105px !important; /* 75px'den 105px'e çıkarıldı */
}
.about-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem 1rem;
}
.about-main-image {
  flex: 1;
  min-width: 260px;
  display: flex;
  justify-content: center;
}
.about-main-image img {
  max-width: 350px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.15);
}
.about-main-text {
  flex: 2;
  min-width: 260px;
}
.about-main-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.about-main-text p {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.mega-dropdown {
  position: static;
}
.mega-dropdown .mega-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100vw;
  max-width: 100vw;
  background: white;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 20px 20px;
  z-index: 1003;
  padding: 40px 5% 40px 5%;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 40px;
  justify-content: flex-start;
  overflow-x: auto;
  border-top: 3px solid var(--primary-color);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
}
/* Desktop click functionality - no hover effects */
.mega-menu-column {
  flex: 1;
  min-width: 240px;
}
.mega-menu-title {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
}
.mega-menu-list-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mega-menu-list-4col li {
  margin-bottom: 0.2rem;
}
.mega-menu-list-4col .mega-menu-title {
  grid-column: 1 / -1;
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 1rem 0 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.3rem;
}
.mega-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mega-menu ul li a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.mega-menu ul li a:hover {
  background: var(--primary-color);
  color: #fff;
}
@media (max-width: 1000px) {
  .mega-dropdown .mega-menu {
    flex-direction: column;
    width: 100vw;
    left: 0;
    right: 0;
    top: 70px;
    padding: 1rem;
    gap: 1rem;
    max-width: 100vw;
    overflow-x: visible;
    border-radius: 0 0 16px 16px;
  }
  .mega-menu-column {
    min-width: 0;
  }

  /* Mobilde nav menü açık olduğunda mega menu'yu menü içinde göster */
  .nav-menu.open .mega-dropdown .mega-menu {
    position: static;
    left: 0;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    flex-direction: column;
    gap: 0;
    background: transparent;
    overflow-x: visible;
  }

  .nav-menu.open .mega-menu-column {
    width: 100%;
    margin: 0;
    padding: 0;
    border-left: none;
  }

  .nav-menu.open .mega-menu-title {
    padding: 12px 0 8px 0;
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
  }

  .nav-menu.open .mega-menu ul {
    margin: 0;
    padding: 0;
  }

  .nav-menu.open .mega-menu ul li {
    margin: 0;
    padding: 0;
  }

  .nav-menu.open .mega-menu ul li a {
    display: block;
    padding: 10px 0;
    color: #7f8c8d;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: color 0.3s ease;
    background: transparent;
  }

  .nav-menu.open .mega-menu ul li a:hover {
    color: #27ae60;
    background: transparent;
  }

  .nav-menu.open .mega-menu-list-4col {
    display: block;
    grid-template-columns: none;
  }

  .nav-menu.open .mega-menu-list-4col .mega-menu-title {
    grid-column: auto;
  }
}

/* Top Header Styles */
.top-header-area {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.85rem;
}

.top-header-content li {
  white-space: nowrap;
}

.top-header-content a:hover {
  color: var(--primary-color) !important;
}

.top-header-optional a:hover {
  transform: translateY(-2px);
}

/* Responsive design for top header */
@media (max-width: 768px) {
  .top-header-area {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    z-index: 1002 !important;
  }

  .top-header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .top-header-left {
    display: flex !important;
    flex: 1 !important;
  }

  .top-header-right {
    display: flex !important;
    flex-shrink: 0 !important;
  }

  .top-header-item {
    display: flex !important;
  }

  .social-links {
    display: flex !important;
  }
}

@media (max-width: 576px) {
  .top-header-area {
    display: block !important;
    visibility: visible !important;
    height: 30px;
    padding: 4px 0;
    font-size: 10px;
    position: fixed !important;
    top: 0 !important;
    z-index: 1002 !important;
  }

  .top-header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .top-header-left {
    display: flex !important;
  }

  .top-header-right {
    display: flex !important;
  }

  .top-header-item {
    font-size: 10px;
    gap: 3px;
    display: flex !important;
  }

  .top-header-item i {
    font-size: 10px;
  }

  .social-links {
    display: flex !important;
  }

  .social-links a {
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: inline-flex !important;
  }

  .header {
    top: 30px;
  }

  .navbar {
    padding: 3px 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .slider-section {
    margin-top: 55px;
    height: 180px;
  }

  .slider-container {
    height: 160px;
  }

  .hero {
    padding: 70px 0 40px 0;
  }

  .about-banner {
    height: 150px;
    font-size: 1.4rem;
    margin-top: 55px !important;
  }

  .main-content {
    padding-top: 85px;
  }

  .course-section {
    padding: 30px 0;
  }

  .about-main {
    padding: 1rem;
    gap: 1.5rem;
  }

  .top-header-content li span {
    display: none;
  }

  .top-header-content li:last-child {
    display: none;
  }
}

/* Mobil cihazlar için ek geliştirmeler */
@media (max-width: 480px) {
  .top-header-area {
    display: block !important;
    visibility: visible !important;
    height: 28px;
    padding: 3px 0;
    font-size: 9px;
    position: fixed !important;
    top: 0 !important;
    z-index: 1002 !important;
  }

  .top-header-container {
    padding: 0 0.5rem;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .top-header-left {
    gap: 10px;
    display: flex !important;
  }

  .top-header-right {
    gap: 8px;
    display: flex !important;
  }

  .social-links {
    gap: 5px;
    display: flex !important;
  }

  .social-links a {
    width: 18px;
    height: 18px;
    font-size: 9px;
    display: inline-flex !important;
  }

  .header {
    top: 28px;
  }

  .navbar {
    padding: 2px 0.5rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav-menu {
    max-width: 420px;
    padding: 80px 15px 15px 15px;
  }

  .slider-section {
    margin-top: 50px;
    height: 160px;
  }

  .slider-container {
    height: 140px;
  }

  .hero {
    padding: 65px 0 35px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-banner {
    height: 130px;
    font-size: 1.2rem;
    margin-top: 50px !important;
  }

  .main-content {
    padding-top: 78px;
  }

  .course-section {
    padding: 25px 0;
  }

  .course-section h2 {
    font-size: 1.6rem;
  }

  .about-main {
    padding: 0.5rem;
    gap: 1rem;
  }

  .about-main-text h2 {
    font-size: 1.8rem;
  }

  .about-main-text p {
    font-size: 1rem;
  }

  .courses-grid {
    padding: 0 0.5rem;
  }

  .course-card {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* Tablet dikey yönlendirme için geliştirmeler */
@media (max-width: 768px) and (orientation: portrait) {
  .slider-section {
    height: 200px;
  }

  .slider-container {
    height: 180px;
  }

  .hero {
    padding: 75px 0 45px 0;
  }

  .about-banner {
    margin-top: 120px !important;
    height: 160px;
    font-size: 1.5rem;
  }
}

/* Tablet yatay yönlendirme için geliştirmeler */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 768px) {
  .top-header-area {
    height: 32px;
    padding: 4px 0;
  }

  .header {
    top: 32px;
  }

  .navbar {
    padding: 4px 1rem;
  }

  .slider-section {
    margin-top: 62px;
    height: 300px;
  }

  .hero {
    padding: 90px 0 50px 0;
  }

  .about-banner {
    margin-top: 62px !important;
  }

  .main-content {
    padding-top: 94px;
  }
}

/* Mobil top header debug - geçici test */
@media (max-width: 768px) {
  .top-header-area {
    background: linear-gradient(
      135deg,
      var(--primary-color) 0%,
      #2980b9 100%
    ) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    z-index: 1002 !important;
    height: auto !important;
    min-height: 35px !important;
  }

  .top-header-container,
  .top-header-left,
  .top-header-right,
  .top-header-item,
  .social-links,
  .social-links a {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .slider-slide img {
    width: 100vw;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    display: block;
  }
  .footer {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
}

/* Tüm cihazlarda top header'ın görünür olmasını garanti et */
.top-header-area,
.top-header-container,
.top-header-left,
.top-header-right,
.top-header-item,
.social-links {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.top-header-container,
.top-header-left,
.top-header-right,
.social-links {
  display: flex !important;
}

.social-links a {
  display: inline-flex !important;
}
