/* ===================================
   Sağlık Eğitim Website - Main Styles
   Modern, Responsive, Accessible Design
   =================================== */

/* === CSS Variables === */
:root {
  /* Primary Colors */
  --color-primary: #2C7DA0;
  --color-primary-dark: #1C5D7F;
  --color-primary-light: #61A5C2;

  /* Accent/CTA Colors */
  --color-accent: #FF6B35;
  --color-accent-hover: #E55A2B;

  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-light: #F8F9FA;
  --color-gray-light: #E9ECEF;
  --color-gray: #6C757D;
  --color-dark: #212529;

  /* Semantic Colors */
  --color-success: #4CAF50;
  --color-warning: #FFC107;
  --color-error: #DC3545;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* === Reset & Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-dark);
  background: var(--color-white);
  overflow-x: hidden;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Layout Utilities === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-xl) 0;
}

/* SEO: Ekranda görünmez ama Google tarafından okunur */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* === Header & Navigation === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-logo img,
.nav-logo-img {
  height: 55px;
  width: auto;
}

.nav-menu {
  display: flex;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition-normal);
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

/* CTA Button with Pulse Animation */
.nav-cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
  }
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  animation: none;
  transform: translateY(-2px);
}

.nav-cta::after {
  display: none;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  transition: var(--transition-normal);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* === Hero Slider === */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--color-dark);
}

.slider-container {
  height: 100%;
  position: relative;
}

.slider-wrapper {
  display: flex;
  transition: transform var(--transition-slow);
  height: 100%;
}

.slider-item {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.slider-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.slider-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: var(--spacing-md);
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.slider-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--color-white);
}

.slider-excerpt {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.slider-btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.slider-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
  color: var(--color-white);
}

/* Slider Controls */
.slider-btn-prev,
.slider-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition-normal);
  z-index: 10;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  line-height: 1;
}

.slider-btn-prev {
  left: 1rem;
}

.slider-btn-next {
  right: 1rem;
}

.slider-btn-prev:hover,
.slider-btn-next:hover {
  background: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

/* Slider Indicators */
.slider-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-indicator {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
}

.slider-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.slider-indicator.active {
  background: var(--color-white);
  width: 30px;
  border-radius: 6px;
}

/* === Blog Grid Section === */
.blog-grid {
  background: var(--color-light);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-gray);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--color-gray-light);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

.blog-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-white);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  align-self: flex-start;
  font-weight: 500;
}

.blog-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
  line-height: 1.4;
  flex-grow: 0;
}

.blog-card-excerpt {
  color: var(--color-gray);
  font-size: 0.95rem;
  margin-bottom: auto;
  line-height: 1.6;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-gray);
  font-size: 0.875rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-gray-light);
}

.reading-time {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* === About Section === */
.about {
  background: var(--color-white);
}

.about .section-title {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-content h3 {
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: left;
}

.about-content h3:first-child {
  margin-top: 0;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--color-dark);
  text-align: left;
}

/* === CTA Section === */
.cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
  color: var(--color-white);
  font-weight: 400;
}

.cta-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 1;
  font-weight: 400;
}

.cta-button {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 1.25rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background: var(--color-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  color: var(--color-white);
}

/* === Footer === */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  max-width: 900px;
}

.footer-section h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-section a {
  color: var(--color-white);
  transition: var(--transition-normal);
}

.footer-section a:hover {
  color: var(--color-accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  transition: var(--transition-normal);
}

.social-icon.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.social-icon:not(.disabled):hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--color-white);
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* === Blog Post Styles === */
.breadcrumb {
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--color-gray);
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.blog-post {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 var(--spacing-sm);
}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.post-featured-image img {
  width: 100%;
  height: auto;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-category {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-white);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.post-title {
  font-size: 2.75rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-meta {
  display: flex;
  gap: 1rem;
  color: var(--color-gray);
  font-size: 0.95rem;
  align-items: center;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--color-dark);
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
  font-size: 1.85rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
  font-size: 1.5rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content strong {
  font-weight: 600;
  color: var(--color-dark);
}

.post-content em {
  font-style: italic;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-cta {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 3rem;
  box-shadow: var(--shadow-lg);
}

.post-cta p {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.post-cta .cta-button {
  background: var(--color-accent);
}

/* Sidebar */
.sidebar {
  max-width: 300px;
  margin: 2rem auto;
  padding: 0 var(--spacing-sm);
}

.sidebar-widget {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.sidebar-widget h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.sidebar-widget.sticky {
  position: sticky;
  top: 100px;
}

.related-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-post {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: var(--color-dark);
  transition: var(--transition-normal);
  padding: 0.5rem;
  border-radius: 8px;
}

.related-post:hover {
  background: var(--color-light);
  transform: translateX(5px);
}

.related-post img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.related-post span {
  font-size: 0.95rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Responsive Design === */

/* Tablet (768px - 1023px) */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (max 767px) */
@media (max-width: 768px) {

  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Navigation */
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background: var(--color-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right var(--transition-normal);
    padding: 2rem 0;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0 2rem;
  }

  .nav-item {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-gray-light);
  }

  .nav-link {
    display: block;
  }

  .nav-cta {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero Slider */
  .hero-slider {
    height: 450px;
  }

  .slider-content {
    padding: var(--spacing-sm);
  }

  .slider-title {
    font-size: 1.75rem;
  }

  .slider-excerpt {
    font-size: 1rem;
  }

  .slider-btn {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
  }

  .slider-btn-prev,
  .slider-btn-next {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .slider-btn-prev {
    left: 0.5rem;
  }

  .slider-btn-next {
    right: 0.5rem;
  }

  .slider-indicators {
    bottom: 1rem;
  }

  /* Blog Grid */
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* CTA */
  .cta-title {
    font-size: 1.85rem;
  }

  .cta-subtitle {
    font-size: 1.05rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Blog Post */
  .post-title {
    font-size: 2rem;
  }

  .post-content {
    font-size: 1.05rem;
  }

  .post-content h2 {
    font-size: 1.6rem;
  }

  .post-content h3 {
    font-size: 1.35rem;
  }

  .sidebar {
    max-width: 100%;
  }

  .sidebar-widget.sticky {
    position: static;
  }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
  .hero-slider {
    height: 400px;
  }

  .slider-title {
    font-size: 1.5rem;
  }

  .slider-excerpt {
    font-size: 0.95rem;
  }

  .section {
    padding: var(--spacing-md) 0;
  }

  .blog-card-content {
    padding: 1.25rem;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .post-cta {
    padding: 1.75rem;
  }
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

/* === Print Styles === */
@media print {

  .header,
  .nav,
  .slider-btn-prev,
  .slider-btn-next,
  .slider-indicators,
  .cta,
  .footer,
  .sidebar {
    display: none;
  }

  .post-content {
    font-size: 12pt;
    line-height: 1.5;
  }
}