/* ===================================
   MEDEKS SAĞLIK TURİZMİ - PREMIUM MEDICAL TOURISM
   Theme: Clean, Modern, Medical Professional
   =================================== */

/* === ROOT VARIABLES === */
:root {
  --primary-color: #1e88e5;
  --secondary-color: #0d47a1;
  --accent-color: #00acc1;
  --text-dark: #212529;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --success: #28a745;
  --transition: all 0.3s ease;
}

/* === GLOBAL STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* === HEADER & NAVIGATION === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand img {
  height: 50px;
  transition: var(--transition);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 5px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
  background: rgba(30, 136, 229, 0.1);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-left: 1rem;
}

.header-phone i {
  font-size: 1.3rem;
}

/* Mobile menu toggle */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* === MOBILE FIXED ACTION BUTTONS === */
.mobile-action-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.mobile-action-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: var(--transition);
  cursor: pointer;
}

.mobile-action-btn.phone {
  background: var(--primary-color);
}

.mobile-action-btn.whatsapp {
  background: #25d366;
}

.mobile-action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .mobile-action-buttons {
    display: flex;
  }
  .header-phone {
    display: none;
  }
}

/* === HERO SLIDER === */
.hero-slider {
  margin-top: 76px;
  position: relative;
}

.carousel-item {
  height: 600px;
  position: relative;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.8), rgba(30, 136, 229, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-content {
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 2rem;
}

.carousel-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
  animation: fadeInUp 1s ease;
}

.carousel-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
  animation: fadeInUp 1.2s ease;
}

.btn-primary-custom {
  background: var(--white);
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  animation: fadeInUp 1.4s ease;
  display: inline-block;
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: var(--primary-color);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .carousel-item {
    height: 500px;
  }
  .carousel-content h1 {
    font-size: 2rem;
  }
  .carousel-content p {
    font-size: 1.1rem;
  }
}

/* === SECTION STYLES === */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 1rem auto 0;
}

/* === FEATURE CARDS === */
.feature-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
  height: 100%;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* === SERVICE & TREATMENT CARDS === */
.service-card,
.treatment-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover,
.treatment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .card-image img,
.treatment-card:hover .card-image img {
  transform: scale(1.1);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.card-link:hover {
  gap: 1rem;
}

/* === DETAIL PAGES === */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  padding: 8rem 0 4rem;
  margin-top: 76px;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.page-header p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
}

.breadcrumb-custom {
  background: transparent;
  padding: 0;
  margin-top: 1rem;
  justify-content: center;
}

.breadcrumb-custom .breadcrumb-item {
  color: rgba(255,255,255,0.8);
}

.breadcrumb-custom .breadcrumb-item a {
  color: var(--white);
  font-weight: 600;
}

.breadcrumb-custom .breadcrumb-item.active {
  color: var(--white);
}

.content-section {
  padding: 4rem 0;
}

.content-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin-bottom: 2rem;
}

.content-image img {
  width: 100%;
  height: auto;
}

/* === TREATMENT CATEGORIES === */
.category-section {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-color);
}

/* === PARTNER INSTITUTIONS === */
.partner-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: var(--transition);
  text-align: center;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.partner-logo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.partner-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* === CONTACT PAGE === */
.contact-info {
  background: var(--white);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-details p {
  color: var(--text-light);
  margin: 0;
}

.contact-details a {
  color: var(--primary-color);
  font-weight: 600;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  height: 450px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* === FOOTER === */
.footer {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.8rem;
}

.footer ul li a {
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  display: inline-block;
}

.footer ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-info p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* === UTILITY CLASSES === */
.bg-light-custom {
  background: var(--bg-light);
}

.text-primary-custom {
  color: var(--primary-color);
}

.btn-outline-custom {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

.btn-outline-custom:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .section {
    padding: 3rem 0;
  }
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 6rem 0 3rem;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .category-title {
    font-size: 1.5rem;
  }
}
