/* Publication Ethics Page CSS - Clean Responsive Design */

.ijams-ethics {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2d3748;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}

/* Header */
.ijams-ethics__header {
  background-color: rgba(37, 150, 190, 1);
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ijams-ethics__header::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: rgba(171, 219, 227, 0.3);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.ijams-ethics__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.ijams-ethics__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
}

/* Container */
.ijams-ethics__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.ijams-ethics__container--narrow {
  max-width: 700px;
}

/* Section titles */
.ijams-ethics__section-title {
  font-size: 1.8rem;
  color: rgba(37, 150, 190, 1);
  margin-bottom: 1rem;
  border-left: 4px solid rgba(37, 150, 190, 1);
  padding-left: 0.8rem;
  font-weight: 600;
}

.ijams-ethics__lead {
  font-size: 1.1rem;
  color: #2d3748;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Note / COPE box */
.ijams-ethics__note {
  background-color: rgba(171, 219, 227, 0.15);
  padding: 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  color: #2d3748;
  border: 2px solid rgba(171, 219, 227, 0.5);
  box-shadow: 0 6px 20px rgba(37, 150, 190, 0.08);
  margin-bottom: 3rem;
  position: relative;
  transition: all 0.3s ease;
}

.ijams-ethics__note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(37, 150, 190, 1);
  border-radius: 12px 12px 0 0;
}

.ijams-ethics__note:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 150, 190, 0.12);
  border-color: rgba(37, 150, 190, 0.3);
  background-color: rgba(171, 219, 227, 0.2);
}

/* Grid Section */
.ijams-ethics__grid {
  padding: 2rem 1rem 4rem;
  background-color: #f8f9fa;
}

.ijams-ethics__grid .ijams-ethics__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Cards */
.ijams-ethics__card {
  background: #ffffff;
  border: 2px solid rgba(171, 219, 227, 0.4);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(37, 150, 190, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ijams-ethics__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: rgba(37, 150, 190, 1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.ijams-ethics__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(37, 150, 190, 0.15);
  border-color: rgba(37, 150, 190, 0.4);
}

.ijams-ethics__card:hover::before {
  transform: scaleX(1);
}

.ijams-ethics__card-head {
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(171, 219, 227, 0.3);
  padding-bottom: 0.5rem;
}

.ijams-ethics__card-title {
  font-size: 1.5rem;
  color: rgba(37, 150, 190, 1);
  font-weight: 600;
}

.ijams-ethics__card-body {
  margin-top: 1rem;
}

.ijams-ethics__list {
  list-style: none;
  padding-left: 0;
}

.ijams-ethics__list li {
  margin: 0.7rem 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}

.ijams-ethics__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: rgba(37, 150, 190, 1);
  font-size: 1rem;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .ijams-ethics__container {
    max-width: 900px;
    padding: 1.5rem;
  }
  
  .ijams-ethics__grid .ijams-ethics__container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .ijams-ethics__header {
    padding: 3rem 1rem;
  }
  
  .ijams-ethics__title {
    font-size: 2rem;
  }
  
  .ijams-ethics__subtitle {
    font-size: 1.1rem;
  }
  
  .ijams-ethics__container {
    padding: 1.5rem 0.75rem;
  }
  
  .ijams-ethics__section-title {
    font-size: 1.6rem;
  }
  
  .ijams-ethics__lead {
    font-size: 1rem;
  }
  
  .ijams-ethics__grid {
    padding: 1.5rem 0.75rem 3rem;
  }
  
  .ijams-ethics__grid .ijams-ethics__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .ijams-ethics__card {
    padding: 1.5rem;
  }
  
  .ijams-ethics__card-title {
    font-size: 1.3rem;
  }
  
  .ijams-ethics__note {
    padding: 1.2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .ijams-ethics__header {
    padding: 2.5rem 0.75rem;
  }
  
  .ijams-ethics__title {
    font-size: 1.8rem;
  }
  
  .ijams-ethics__subtitle {
    font-size: 1rem;
  }
  
  .ijams-ethics__container {
    padding: 1rem 0.5rem;
  }
  
  .ijams-ethics__section-title {
    font-size: 1.4rem;
    padding-left: 0.6rem;
  }
  
  .ijams-ethics__lead {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .ijams-ethics__grid {
    padding: 1rem 0.5rem 2rem;
  }
  
  .ijams-ethics__card {
    padding: 1.2rem;
    border-radius: 12px;
  }
  
  .ijams-ethics__card-title {
    font-size: 1.2rem;
  }
  
  .ijams-ethics__list li {
    font-size: 0.95rem;
    margin: 0.6rem 0;
  }
  
  .ijams-ethics__note {
    padding: 1rem;
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  .ijams-ethics__header {
    padding: 2rem 0.5rem;
  }
  
  .ijams-ethics__title {
    font-size: 1.6rem;
  }
  
  .ijams-ethics__subtitle {
    font-size: 0.95rem;
  }
  
  .ijams-ethics__container {
    padding: 0.75rem 0.5rem;
  }
  
  .ijams-ethics__section-title {
    font-size: 1.3rem;
  }
  
  .ijams-ethics__card {
    padding: 1rem;
  }
  
  .ijams-ethics__card-title {
    font-size: 1.1rem;
  }
  
  .ijams-ethics__note {
    padding: 0.8rem;
  }
}

/* Loading animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ijams-ethics__card {
  animation: fadeInUp 0.6s ease forwards;
}

.ijams-ethics__card:nth-child(1) { animation-delay: 0.1s; }
.ijams-ethics__card:nth-child(2) { animation-delay: 0.2s; }
.ijams-ethics__card:nth-child(3) { animation-delay: 0.3s; }
.ijams-ethics__card:nth-child(4) { animation-delay: 0.4s; }
.ijams-ethics__card:nth-child(5) { animation-delay: 0.5s; }
.ijams-ethics__card:nth-child(6) { animation-delay: 0.6s; }

/* Focus states for accessibility */
.ijams-ethics__card:focus-within {
  outline: 2px solid rgba(37, 150, 190, 0.5);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .ijams-ethics {
    background: white !important;
  }
  
  .ijams-ethics__header {
    background: rgba(37, 150, 190, 1) !important;
    color: white !important;
    box-shadow: none !important;
  }
  
  .ijams-ethics__grid {
    background: white !important;
  }
  
  .ijams-ethics__card,
  .ijams-ethics__note {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }
  
  .ijams-ethics__section-title {
    color: rgba(37, 150, 190, 1) !important;
  }
  
  .ijams-ethics__card-title {
    color: rgba(37, 150, 190, 1) !important;
  }
  
  .ijams-ethics__card::before,
  .ijams-ethics__note::before {
    display: none !important;
  }
}

/* High specificity overrides */
body .ijams-ethics {
  background-color: #ffffff !important;
}

body .ijams-ethics__grid {
  background-color: #f8f9fa !important;
}

/* Enhanced hover states */
.ijams-ethics__card:nth-child(even) {
  background: rgba(171, 219, 227, 0.02);
}

.ijams-ethics__card:nth-child(even):hover {
  background: #ffffff;
}