/**
 * Masal Dünyam — Modern UI (Doping Hafıza tarzı)
 * Sadece görsel katman; PHP/işlev dokunulmaz.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --md-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --md-radius: 16px;
  --md-radius-sm: 10px;
  --md-radius-lg: 24px;
  --md-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --md-shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.14);
  --md-bg: #f4f6fb;
  --md-surface: #ffffff;
  --md-text: #1e293b;
  --md-text-muted: #64748b;
  --md-border: #e2e8f0;
  --md-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --md-header-h: 72px;
}

/* ---- Base ---- */
body.md-site {
  font-family: var(--md-font);
  color: var(--md-text);
  background: var(--md-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.md-site h1,
body.md-site h2,
body.md-site h3,
body.md-site h4,
body.md-site h5,
body.md-site h6 {
  font-family: var(--md-font);
  letter-spacing: -0.02em;
}

body.md-site .main-content {
  overflow-x: hidden;
}

/* ---- Header ---- */
body.md-site #header.header {
  position: relative;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--md-border);
}

body.md-site #header.header.md-sticky:not(.md-site-header) {
  position: sticky;
  top: 0;
  box-shadow: var(--md-shadow);
}

@media (max-width: 991px) {
  body.md-site.md-home #header.header.md-sticky {
    position: absolute;
    top: 0;
    box-shadow: none;
  }
}

body.md-site .header-top {
  background: linear-gradient(90deg, rgba(255,255,255,0.98), #f8fafc) !important;
  border-bottom: 1px solid var(--md-border);
  font-size: 13px;
}

body.md-site .header-top .list-inline li {
  margin-right: 20px;
}

body.md-site .header-top a {
  color: var(--md-text);
  transition: color var(--md-transition);
}

body.md-site .header-top a:hover {
  opacity: 0.85;
}

body.md-site .header-middle {
  background: var(--md-surface) !important;
  padding: 12px 0 !important;
}

body.md-site .menuzord-brand img {
  max-height: 64px;
  width: auto;
  transition: transform var(--md-transition);
}

body.md-site .header-middle .btn {
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: none;
  transition: transform var(--md-transition), box-shadow var(--md-transition);
}

body.md-site .header-middle .btn-dark {
  background: linear-gradient(135deg, var(--md-primary, #2563eb), var(--md-primary-dark, #1d4ed8)) !important;
  color: #fff !important;
}

body.md-site .header-middle .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

body.md-site .header-nav-wrapper {
  border-radius: 0;
}

body.md-site .menuzord-menu > li > a {
  font-weight: 600;
  font-size: 14px;
  padding: 18px 16px !important;
  transition: background var(--md-transition), color var(--md-transition);
}

body.md-site .menuzord.bg-theme-colored .menuzord-menu > li > a {
  color: #fff !important;
}

body.md-site .menuzord.bg-theme-colored .menuzord-menu > li.active > a,
body.md-site .menuzord.bg-theme-colored .menuzord-menu > li:hover > a {
  background: #fff !important;
  color: var(--md-primary, #1e3a5f) !important;
}

body.md-site .menuzord.bg-theme-colored .menuzord-menu ul.dropdown li a {
  color: var(--md-text) !important;
}

body.md-site .menuzord.bg-theme-colored .menuzord-menu ul.dropdown li:hover > a {
  background: var(--md-bg) !important;
  color: var(--md-primary, #1e3a5f) !important;
}

body.md-site .menuzord-menu .dropdown {
  border-radius: var(--md-radius-sm);
  box-shadow: var(--md-shadow-hover);
  border: 1px solid var(--md-border);
  overflow: hidden;
  margin-top: 0;
}

body.md-site .menuzord-menu .dropdown li a {
  padding: 12px 20px !important;
  font-size: 14px;
}

/* ---- Hero / Slider (Swiper) ---- */
body.md-site .md-hero-section,
body.md-site #home.md-hero-section {
  padding: 0 !important;
  margin: 0;
  background: #0c1220;
}

body.md-site .md-hero-wrap {
  padding: 0 !important;
  max-width: 100%;
}

body.md-site .md-hero-slider:not(.md-doping-slider) {
  width: 100%;
  --md-hero-h: clamp(280px, 42vw, 620px);
  height: var(--md-hero-h);
}

body.md-site .md-doping-slider.md-hero-slider {
  width: 100%;
  height: auto !important;
  min-height: clamp(480px, 78vh, 760px);
}

body.md-site .md-hero-slide:not(.md-doping-slide) {
  position: relative;
  width: 100%;
  height: var(--md-hero-h);
  overflow: hidden;
}

body.md-site .md-hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

body.md-site .md-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.35) 45%, rgba(15, 23, 42, 0.15) 100%);
  pointer-events: none;
}

body.md-site .md-hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  padding: 24px 0;
}

body.md-site .md-hero-title {
  color: #fff;
  font-size: clamp(1.35rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 720px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

body.md-site .md-hero-desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  line-height: 1.5;
  margin: 0 0 20px;
  max-width: 560px;
}

body.md-site .md-hero-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--md-primary, #1e3a5f);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transition: transform var(--md-transition), box-shadow var(--md-transition);
}

body.md-site .md-hero-btn:hover {
  transform: translateY(-2px);
  color: var(--md-primary, #1e3a5f);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

body.md-site .md-hero-pagination {
  bottom: 18px !important;
}

body.md-site .md-hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

body.md-site .md-hero-pagination .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}

body.md-site .md-hero-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--md-primary, #1e3a5f) !important;
  box-shadow: var(--md-shadow);
}

body.md-site .md-hero-nav::after {
  font-size: 18px;
  font-weight: 700;
}

/* ---- Eğitim birimleri: 2 ise ortala, 3 ise 3 kolon ---- */
body.md-site .md-birim-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.md-site .md-birim-grid > .birim {
  float: none !important;
  width: 100%;
  max-width: 380px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 576px) {
  body.md-site .md-birim-count-1 > .birim {
    max-width: 420px;
  }

  body.md-site .md-birim-count-2 > .birim {
    width: calc(50% - 12px);
    max-width: 480px;
  }

  body.md-site .md-birim-count-3 > .birim {
    width: calc(33.333% - 16px);
    max-width: 400px;
  }

  body.md-site .md-birim-count-4 > .birim {
    width: calc(50% - 12px);
    max-width: 480px;
  }
}

@media (min-width: 992px) {
  body.md-site .md-birim-count-4 > .birim {
    width: calc(25% - 18px);
    max-width: none;
  }
}

/* ---- Haberler listesi ---- */
body.md-site .md-haber-list .masonry {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-left: -12px;
  margin-right: -12px;
}

body.md-site .md-haber-list .gallery-item {
  display: flex;
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 24px;
}

body.md-site .md-haber-list article.post {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 0 !important;
  height: auto;
}

body.md-site .md-haber-list .entry-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.md-site .md-haber-spot {
  flex: 1;
  margin-bottom: 12px;
}

body.md-site .md-haber-list .haberler img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

/* ---- Mobil header — md-doping.css yönetir ---- */
@media (max-width: 991px) {
  body.md-site .md-site-header .header-top,
  body.md-site .md-site-header .header-middle {
    display: none !important;
  }

  body.md-site .md-site-header .menuzord-brand {
    display: none !important;
  }
}

@media (max-width: 575px) {
  body.md-site .md-birim-count-2 > .birim,
  body.md-site .md-birim-count-3 > .birim,
  body.md-site .md-birim-count-4 > .birim {
    width: 100%;
    max-width: 100%;
  }
}

/* ---- Sections ---- */
body.md-site section {
  padding-top: 44px;
  padding-bottom: 44px;
}

body.md-site .pt-50,
body.md-site .pb-50 {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

body.md-site .pb-60 {
  padding-bottom: 36px !important;
}

body.md-site .pt-10.pb-10 {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

body.md-site .min-h80,
body.md-site .min-h100,
body.md-site .min-h220,
body.md-site .min-h550 {
  min-height: 0 !important;
}

body.md-site .section-title h2,
body.md-site .title {
  font-weight: 800 !important;
  color: var(--md-text) !important;
}

body.md-site .section-title .text-theme-color-2,
body.md-site .title .text-theme-color-2 {
  font-weight: 600 !important;
}

body.md-site .line-bottom:after,
body.md-site .line-bottom-center:after {
  height: 4px !important;
  border-radius: 2px;
  width: 56px !important;
}

body.md-site .bg-lighter {
  background: var(--md-bg) !important;
}

/* ---- Cards: eğitim birimleri, kurslar ---- */
body.md-site .birim {
  margin-bottom: 30px;
}

body.md-site .birim .img-fullwidth {
  border-radius: var(--md-radius) var(--md-radius) 0 0;
  object-fit: cover;
  height: 220px;
  width: 100%;
}

body.md-site .birim .bg-lighter {
  border-radius: 0 0 var(--md-radius) var(--md-radius) !important;
  border: 1px solid var(--md-border) !important;
  border-top: none !important;
  box-shadow: var(--md-shadow);
  padding: 24px !important;
  margin-top: -1px;
}

body.md-site .service-block,
body.md-site .service-ana-block {
  border-radius: var(--md-radius) !important;
  overflow: hidden;
  border: 1px solid var(--md-border) !important;
  box-shadow: var(--md-shadow);
  transition: transform var(--md-transition), box-shadow var(--md-transition);
  height: 100%;
}

body.md-site .service-block:hover,
body.md-site .service-ana-block:hover {
  transform: translateY(-6px);
  box-shadow: var(--md-shadow-hover);
}

body.md-site .service-block .thumb img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

body.md-site .service-block .content {
  padding: 24px !important;
}

/* ---- Buttons ---- */
body.md-site .btn-theme-colored,
body.md-site .btn-colored {
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  border: none !important;
  transition: transform var(--md-transition), box-shadow var(--md-transition);
}

body.md-site .btn-theme-colored:hover,
body.md-site .btn-colored:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body.md-site .btn-theme-color-2 {
  border-radius: 999px !important;
  font-weight: 600 !important;
}

/* ---- Funfact / parallax ---- */
body.md-site .funfact {
  padding: 24px;
  border-radius: var(--md-radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

body.md-site .funfact .animate-number {
  font-weight: 800 !important;
}

/* ---- Team ---- */
body.md-site .team-members {
  border-radius: var(--md-radius);
  overflow: hidden;
  box-shadow: var(--md-shadow);
  border: 1px solid var(--md-border);
  transition: transform var(--md-transition), box-shadow var(--md-transition);
}

body.md-site .team-members:hover {
  transform: translateY(-6px);
  box-shadow: var(--md-shadow-hover);
}

body.md-site .team-thumb img {
  height: 280px;
  object-fit: cover;
  width: 100%;
}

/* ---- Testimonials ---- */
body.md-site .testimonial {
  border-radius: var(--md-radius);
}

body.md-site .min-h220 {
  border-radius: var(--md-radius) !important;
  background: var(--md-surface) !important;
  box-shadow: var(--md-shadow);
  border: 1px solid var(--md-border) !important;
}

/* ---- Blog ---- */
body.md-site article.post {
  border-radius: var(--md-radius);
  overflow: hidden;
  border: 1px solid var(--md-border);
  box-shadow: var(--md-shadow);
  transition: transform var(--md-transition), box-shadow var(--md-transition);
  background: var(--md-surface);
}

body.md-site article.post:hover {
  transform: translateY(-4px);
  box-shadow: var(--md-shadow-hover);
}

body.md-site .haberler img {
  height: 200px;
  object-fit: cover;
}

/* ---- Pricing (paketler) — Doping tarzı kart ---- */
body.md-site #pricing {
  background: var(--md-bg) !important;
}

body.md-site .portfolio-filter a {
  border-radius: 999px;
  padding: 10px 22px;
  margin: 4px 6px;
  font-weight: 600;
  font-size: 14px;
  background: var(--md-surface);
  border: 1px solid var(--md-border);
  color: var(--md-text);
  transition: all var(--md-transition);
}

body.md-site .portfolio-filter a.active,
body.md-site .portfolio-filter a:hover {
  color: #fff !important;
  border-color: transparent;
  background: var(--md-primary, #2563eb) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

body.md-site .pricing-table {
  border-radius: var(--md-radius-lg);
  overflow: hidden;
  border: 1px solid var(--md-border);
  box-shadow: var(--md-shadow);
  transition: transform var(--md-transition), box-shadow var(--md-transition);
  background: var(--md-surface);
  height: 100%;
  display: flex;
  flex-direction: column;
}

body.md-site .pricing-table:hover {
  transform: translateY(-8px);
  box-shadow: var(--md-shadow-hover);
}

body.md-site .pricing-table .font-36 {
  border-radius: 0 !important;
  font-weight: 800 !important;
  padding: 20px 24px !important;
}

body.md-site .pricing-table .min-h550 {
  min-height: auto !important;
  flex: 1;
  padding: 28px 24px !important;
}

body.md-site .pricing-table .package-type {
  font-weight: 800 !important;
  font-size: 22px !important;
}

body.md-site .pricing-table .table-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--md-border);
  font-size: 14px;
}

body.md-site .pricing-table .table-list li:last-child {
  border-bottom: none;
}

body.md-site .pricing-table > .btn-block {
  border-radius: 0 !important;
  margin: 0;
  padding: 18px !important;
  font-weight: 700;
}

/* ---- Inner pages (breadcrumb şeridi kaldırıldı) ---- */
body.md-site .inner-header,
body.md-site section.inner-header {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.md-site .inner-header.md-inner-compact .container {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

body.md-site .inner-header .font-30 {
  font-size: 1.35rem !important;
  color: #fff !important;
}

body.md-site .inner-header .title {
  color: #fff !important;
  font-weight: 800;
}

body.md-site .inner-header .breadcrumb,
body.md-site .inner-header .breadcrumb a,
body.md-site .inner-header .breadcrumb > li + li:before {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ---- Footer ---- */
body.md-site #footer.footer {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
}

body.md-site #footer.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.98) 100%);
  pointer-events: none;
}

body.md-site #footer .container {
  position: relative;
  z-index: 1;
}

body.md-site .footer-bottom {
  background: rgba(0, 0, 0, 0.35) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.md-site #footer .widget-title {
  font-weight: 700;
  margin-bottom: 20px;
}

body.md-site #footer .styled-icons a {
  border-radius: 50%;
  transition: transform var(--md-transition);
}

body.md-site #footer .styled-icons a:hover {
  transform: scale(1.1);
}

/* ---- Scroll to top ---- */
body.md-site .scrollToTop {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  line-height: 48px;
  box-shadow: var(--md-shadow-hover);
  transition: transform var(--md-transition);
}

body.md-site .scrollToTop:hover {
  transform: translateY(-4px);
}

/* ---- Forms ---- */
body.md-site .form-control {
  border-radius: var(--md-radius-sm);
  border: 1px solid var(--md-border);
  padding: 12px 16px;
  min-height: 48px;
  transition: border-color var(--md-transition), box-shadow var(--md-transition);
}

body.md-site .form-control:focus {
  border-color: var(--md-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ---- Owl carousel ---- */
body.md-site .owl-carousel .owl-nav button {
  border-radius: 50% !important;
  width: 44px;
  height: 44px;
  background: var(--md-surface) !important;
  box-shadow: var(--md-shadow);
  border: 1px solid var(--md-border) !important;
}

/* ---- Video popup ---- */
body.md-site .md-video-popup {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

body.md-site .md-video-popup.hidden {
  display: none;
}

body.md-site .md-video-popup__box {
  background: var(--md-surface);
  padding: 24px;
  border-radius: var(--md-radius-lg);
  max-width: 560px;
  width: 100%;
  box-shadow: var(--md-shadow-hover);
}

body.md-site .md-video-popup__box video {
  width: 100%;
  border-radius: var(--md-radius-sm);
}

body.md-site .md-video-popup__footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.md-site .md-video-popup__footer button {
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 600;
  border: none;
  background: var(--md-primary, #2563eb);
  color: #fff;
  cursor: pointer;
}

/* ---- Floating widgets ---- */
body.md-site .diller {
  z-index: 999;
}

/* ---- Clients logos ---- */
body.md-site .clients-logo .item img {
  max-height: 56px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--md-transition);
  filter: grayscale(30%);
}

body.md-site .clients-logo .item:hover img {
  opacity: 1;
  filter: none;
}

/* ---- Gallery ---- */
body.md-site .gallery-item .post-thumb img {
  border-radius: var(--md-radius-sm);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  body.md-site .header-middle .btn {
    margin-bottom: 8px;
    display: inline-block;
  }

  body.md-site .menuzord-brand {
    display: block;
    text-align: center;
    float: none !important;
  }

  body.md-site .menuzord-brand img {
    max-height: 52px;
    margin: 0 auto;
  }

  body.md-site section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  body.md-site .portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  body.md-site .portfolio-filter a {
    font-size: 12px;
    padding: 8px 14px;
  }
}

@media (max-width: 767px) {
  body.md-site .header-top {
    text-align: center;
  }

  body.md-site .header-top .styled-icons {
    float: none !important;
    text-align: center;
    margin-top: 8px;
  }

  body.md-site .birim .img-fullwidth {
    height: 180px;
  }

  body.md-site .pricing-table {
    margin-bottom: 24px;
  }

  body.md-site .funfact {
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  body.md-site .header-middle .list-inline li {
    display: block;
    margin: 6px 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.md-site *,
  body.md-site *::before,
  body.md-site *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
