/* GJMRP - International Global Journal of Medical Research and Practice */
/* Design System & Clinical Academic Styling */

:root {
  --primary-dark: #064E3B;
  --primary: #047857;
  --secondary: #0D9488;
  --secondary-light: #CCFBF1;
  --accent-rose: #E11D48;
  --accent-rose-light: #FFE4E6;
  --accent-gold: #D97706;
  --bg-light: #F8FAFC;
  --surface: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #475569;
  --border-color: #E2E8F0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* Universal Scholarly Text Justification */
p, 
li,
.guideline-section p, 
.academic-card p, 
.content-paragraph, 
.leading-relaxed,
article p,
main p,
section p {
  text-align: justify;
  text-justify: inter-word;
}

.text-justify {
  text-align: justify !important;
  text-justify: inter-word !important;
}

/* Custom Medical Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #0D9488;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* Badges and Highlights */
.emerald-badge {
  background-color: rgba(13, 148, 136, 0.1);
  color: #0F766E;
  border: 1px solid rgba(13, 148, 136, 0.3);
}

.rose-badge {
  background-color: rgba(225, 29, 72, 0.1);
  color: #BE123C;
  border: 1px solid rgba(225, 29, 72, 0.3);
}

.accent-line {
  height: 3.5px;
  width: 54px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-rose) 100%);
  border-radius: 2px;
}

/* Medical Network Grid Background */
.hero-grid-bg {
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(13, 148, 136, 0.08) 0%, transparent 60%),
    linear-gradient(to right, rgba(226, 232, 240, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.45) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

/* Card Elevation & Hover Effects */
.academic-card {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}
.academic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(6, 78, 59, 0.12);
  border-color: rgba(13, 148, 136, 0.4);
}

/* Guidelines Sidebar Links */
.sidebar-link {
  position: relative;
  transition: all 0.2s ease;
}
.sidebar-link.active {
  color: var(--primary-dark);
  font-weight: 700;
  background-color: #CCFBF1;
  border-left: 4px solid var(--primary);
}
.sidebar-link:hover:not(.active) {
  color: var(--primary);
  background-color: #F1F5F9;
}

/* Micro-interactions & Buttons */
.btn-primary {
  background: linear-gradient(135deg, #047857 0%, #064E3B 100%);
  color: #FFFFFF;
  transition: all 0.25s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #064E3B 0%, #022C22 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 78, 59, 0.25);
}

.btn-emerald {
  background-color: var(--primary);
  color: #FFFFFF;
  transition: all 0.25s ease;
}
.btn-emerald:hover {
  background-color: #065F46;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.3);
}

.btn-teal {
  background-color: var(--secondary);
  color: #FFFFFF;
  transition: all 0.25s ease;
}
.btn-teal:hover {
  background-color: #0F766E;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
}

.btn-rose {
  background-color: var(--accent-rose);
  color: #FFFFFF;
  transition: all 0.25s ease;
}
.btn-rose:hover {
  background-color: #BE123C;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.3);
}

/* Hero Slider Animation */
.hero-slide {
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

/* Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}
