/* PDF Container and Viewer Styles */
.content-section {
  padding: 0;
  margin: 0;
  width: 100%;
}

.text-image-wrapper {
  padding: 0;
  margin: 0;
  width: 100%;
}

.text-content {
  padding: 0;
  margin: 0;
  width: 100%;
}

.kvkk-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: black;
  margin-bottom: 2rem;
  text-align: center;
}

.pdf-container {
  width: 100%;
  height: 85vh; /* Viewport height based sizing */
  min-height: 400px;
  margin: 0 auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pdf-viewer {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* PDF Fallback Styles */
.pdf-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: white;
  height: 100%;
  text-align: center;
}

.pdf-fallback p {
  margin-bottom: 1.5rem;
  color: #666;
  font-size: clamp(0.9rem, 2vw, 1rem);
  max-width: 600px;
}

.pdf-fallback a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #003366;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  margin: 0.5rem;
  transition: all 0.3s ease;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.pdf-fallback a:hover {
  background: #004488;
  transform: translateY(-2px);
}

.pdf-fallback i {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/* Desktop Styles (1024px and above) */
@media (min-width: 1024px) {
  .pdf-container {
    max-width: 1200px;
    height: 80vh;
  }
}

/* Tablet Styles (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .pdf-container {
    height: 75vh;
    min-height: 500px;
  }
  
  .kvkk-title {
    margin-bottom: 1.5rem;
  }
}

/* Mobile Styles (320px to 767px) */
@media (max-width: 767px) {
  .pdf-container {
    height: 70vh;
    min-height: 400px;
    margin: 0;
    border-radius: 4px;
  }

  .kvkk-title {
    margin-bottom: 1rem;
  }

  .pdf-fallback {
    padding: 1rem;
  }

  .pdf-fallback a {
    width: 100%;
    justify-content: center;
    margin: 0.25rem 0;
  }
}

/* Accessibility Improvements */
.pdf-viewer:focus {
  outline: 2px solid #003366;
  outline-offset: -2px;
}

.pdf-fallback a:focus {
  outline: 2px solid #003366;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.2);
}

/* Print Media Query */
@media print {
  .pdf-container {
    height: auto;
    border: none;
    box-shadow: none;
  }

  .pdf-viewer {
    page-break-inside: avoid;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
  .pdf-container {
    border: 2px solid #000;
  }

  .pdf-fallback a {
    background: #000;
    border: 2px solid #000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .pdf-fallback a {
    transition: none;
  }
}