﻿/* Genel Reset ve Temel Stil */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  background: #f4f7f9;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: background 0.3s;
}
header:hover {
  background: #f8f8f8;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Logo (sol tarafta) */
.logo {
  flex: 0;
}
.logo img {
  width: 150px;
  height: auto;
}

/* Masaüstü Menü (sağda) */
nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-menu li {
  position: relative;
}
.nav-menu li a {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}
.nav-menu li a:hover {
  background: rgba(0,123,255,0.1);
  color: #007BFF;
}
/* Dropdown Menü: Eğitimler – Masaüstünde (hover ile açılır) */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}
/* Dropdown Menü: Eğitimler – Mobilde tıklamayla açılır */
.dropdown.open .dropdown-menu {
  display: block;
}
.dropdown > a::after {
  content: " ▼";
  font-size: 0.8rem;
  margin-left: 0.3rem;
}
.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
  display: none;
  min-width: 180px;
  z-index: 1000;
}
.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: #333;
  transition: background 0.3s;
  white-space: nowrap;
}
.dropdown-menu li a:hover {
  background: #f2f2f2;
}

/* Mobilde: Masaüstü Menü Gizlensin */
@media (max-width: 768px) {
  nav {
    display: none;
  }
}

/* Hamburger Menü (Mobil) – Sadece mobilde */
.hamburger {
  display: none;
}
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }
  .hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 4px 0;
    transition: all 0.3s;
  }
}

/* Mobile Menu Overlay (Mobil) */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 200px;
  height: 100%;
  background: rgba(255,255,255,0.9);
  z-index: 1100;
  padding: 2rem 1rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  text-align: right;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  text-align: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 1rem;
}
.mobile-menu ul {
  list-style: none;
  width: 100%;
}
.mobile-menu li {
  margin-bottom: 1.5rem;
}
.mobile-menu li a {
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  text-align: right;
  border-bottom: none;
}
.mobile-menu li a:hover {
  color: #007BFF;
}
.mobile-dropdown {
  cursor: pointer;
}
.mobile-dropdown-menu {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
  display: none;
}
.mobile-dropdown.open .mobile-dropdown-menu {
  display: block;
}

/* HERO */
.hero {
  position: relative;
  height: 80vh;
  background: url('https://www.biymed.com/images/kurumsal1200.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 80px;
  animation: fadeIn 1s ease-in-out;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,64,128,0.5), rgba(0,123,255,0.5));
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 800px;
  padding: 1rem;
}
.hero-content h1 {
  font-size: 3.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}
.cta-btn {
  display: inline-block;
  background: #007BFF;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  transition: background 0.3s, transform 0.3s;
  font-weight: 500;
  text-align: center;
}
.cta-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}
.card-content .cta-btn {
  display: block;
  margin: 0 auto;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ABOUT, TRAININGS, REFERENCES Bölümleri */
.about, .trainings, .references {
  padding: 3rem 2rem;
  background: #fff;
  text-align: center;
}
.about h2, .references h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #004080;
  font-weight: 700;
}
.about p, .references p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: #004080;
  font-weight: 700;
}
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-content {
  padding: 1.5rem;
  text-align: center;
}
.card-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #004080;
}
.card-content p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.gallery {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.gallery img {
  width: 30%;
  min-width: 200px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* FOOTER */
footer {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85));
  padding: 2rem 2rem 1rem;
  color: #ecf0f1;
  font-size: 0.9rem;
  overflow: hidden;
}
.footer-separator {
  border-top: 3px solid #ccc;
  margin-bottom: 1rem;
}
.footer-top {
  text-align: center;
  margin-bottom: 1.5rem;
}
.footer-top img {
  width: 275px;
  height: auto;
}
.footer-content {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ccc;
  text-align: center;
}
.footer-col {
  flex: 1;
  min-width: 250px;
}
.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.footer-col h3::after {
  content: "";
  display: block;
  width: 200px;
  height: 4px;
  background: #3498db;
  margin-top: 0.5rem;
}
.footer-col p {
  margin-bottom: 0.5rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  color: #ecf0f1;
  transition: color 0.3s;
}
.footer-col ul li a:hover {
  color: #3498db;
}
.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  background: rgba(0,0,0,0.45);
  padding: 1rem 0;
  color: #bdc3c7;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Eğitime Ait Genel Bilgiler Bölümü - Yeni Tasarım */
.course-details .general-info {
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);  /* Yumuşak mavi gradient */
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #80deea;
    margin-top: 1rem;
}
.course-details .general-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.course-details .general-info li {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #006064;
    border-bottom: 1px dashed #4dd0e1;
    padding-bottom: 0.5rem;
}
.course-details .general-info li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}
