/* Modern, Clean CSS for Morning Sign Out Website */

/* ——— CSS Custom Properties ——— */
:root {
  /* Colors */
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Transitions */
  --transition: all 0.2s ease-in-out;
  --transition-slow: all 0.3s ease-in-out;
}

/* ——— Reset & Base ——— */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* ——— Typography ——— */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-4);
  color: var(--gray-600);
}

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

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

/* ——— Layout Components ——— */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: var(--space-12);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  background-color: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-800);
}

/* ——— Hero Section (Showcase) ——— */
.showcase {
  padding: var(--space-24) 0 var(--space-20) 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--gray-100);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
}

.showcase .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.text-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-8);
  color: var(--gray-600);
}

.text-content .btn {
  margin-right: var(--space-4);
  margin-bottom: var(--space-2);
}

.hero-spacer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  text-align: center;
}

.stat {
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: var(--space-2);
  font-weight: 500;
}

/* ——— Articles Section ——— */
section {
  padding: var(--space-24) 0;
}

.editor-h1 {
  font-size: 2.5rem;
  margin: 0 0 var(--space-16) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
}

.card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-200);
  transition: var(--transition-slow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Ensure first child (image) takes full width */
.card > img:first-child {
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Direct image styling - force full coverage */
.card img {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  background: var(--gray-100);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
}





.card > div[class*="-category"],
.card-tags > div[class*="-category"] {
  padding: var(--space-1) var(--space-3);
  background: var(--white);
  color: var(--gray-800);
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

/* Legacy positioning for standalone categories */
.card > div[class*="-category"]:not(.card-tags *) {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
}

.card {
  position: relative;
}

/* Category Colors */
.medicine-category { background: #eff6ff !important; color: #2563eb !important; }
.wellness-category { background: #f0fdf4 !important; color: #16a34a !important; }
.biotechnology-category { background: #faf5ff !important; color: #9333ea !important; }
.public-health-category { background: #eff6ff !important; color: #2563eb !important; }
.pharmacy-category { background: #fefce8 !important; color: #ca8a04 !important; }
.research-category { background: #f3f4f6 !important; color: #374151 !important; }
.miscellaneous-category { background: #fef2f2 !important; color: #dc2626 !important; }

/* Card content wrapper */
.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.card h3 {
  padding: var(--space-6);
  padding-bottom: var(--space-3);
  margin-bottom: 0;
  font-size: 1.25rem;
  color: var(--gray-900);
  flex-shrink: 0;
}

.card p {
  padding: 0 var(--space-6) var(--space-4);
  color: var(--gray-600);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  text-overflow: ellipsis;
  word-wrap: break-word;
  flex: 1;
  max-height: calc(1.4em * 3);
  position: relative;
}

/* Fallback ellipsis for browsers that don't support line-clamp */
.card p::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: var(--space-6);
  width: 1em;
  height: 1.4em;
  background: linear-gradient(to right, transparent, var(--white) 50%);
  pointer-events: none;
}

/* Card tags container */
.card-tags {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  display: flex;
  gap: var(--space-2);
  z-index: 2;
}

/* Time tag styling */
.time-tag {
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-700);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-sm);
}

/* Author styling */
.card-author {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--gray-500);
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 500;
  margin-top: auto;
  flex-shrink: 0;
}

/* ——— Scroll Indicator ——— */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.scroll-icon:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.scroll-icon span {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.scroll-arrow {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}



/* ——— Enhanced Footer Styles ——— */
.enhanced-footer {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  margin-top: var(--space-24);
}

.footer-wave {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
  fill: #1a1a2e;
}

.footer-content {
  padding: 4rem 0 0;
}

.enhanced-footer .footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.enhanced-footer .footer-col h3 {
  color: #64b5f6;
  font-family: "Quicksand", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
}

.enhanced-footer .footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #64b5f6, #42a5f5);
  border-radius: 1px;
}

/* Brand Section */
.brand-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.enhanced-footer .footer-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

.brand-text .footer-title {
  font-family: "Quicksand", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
  line-height: 1.2;
}

.footer-subtitle {
  color: #64b5f6;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.4;
  font-style: italic;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: #64b5f6;
  transform: translateX(5px);
}

.footer-links a i {
  width: 16px;
  font-size: 0.9rem;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4);
}

.social-link.instagram:hover { background: linear-gradient(45deg, #e1306c, #fd1d1d); }
.social-link.email:hover { background: linear-gradient(45deg, #34495e, #2c3e50); }
.social-link.twitter:hover { background: linear-gradient(45deg, #1da1f2, #0d8bd9); }
.social-link.linkedin:hover { background: linear-gradient(45deg, #0077b5, #005885); }

/* Footer Info */
.footer-info {
  display: flex;
    flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.info-item i {
  color: #64b5f6;
  margin-top: 2px;
  width: 14px;
}

/* Newsletter Section in Footer */
.footer-newsletter {
  margin: 3rem 0;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-content h3 {
  color: white;
  font-family: "Quicksand", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.newsletter-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 30px;
  background: linear-gradient(135deg, #64b5f6, #42a5f5);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

.newsletter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(100, 181, 246, 0.5);
  background: linear-gradient(135deg, #42a5f5, #1e88e5);
  color: white;
}

/* Footer Bottom */
.enhanced-footer .footer-bottom {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #64b5f6;
}

.separator {
  color: rgba(255, 255, 255, 0.4);
}

.footer-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-style: italic;
}

/* ——— Responsive Design ——— */
@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }
  
  .container {
    padding: 0 var(--space-4);
  }
  
  /* Hero */
  .showcase {
    padding: var(--space-16) 0 var(--space-12) 0;
    min-height: calc(100vh - var(--nav-height));
  }
  
  .showcase .container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
  
  .text-content h1 {
    font-size: 2.5rem;
  }
  
  .text-content p {
    font-size: 1.125rem;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
  
  .stat {
    padding: var(--space-4);
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  /* Sections */
  section {
    padding: var(--space-16) 0;
  }
  
  .editor-h1 {
    font-size: 2rem;
    margin-bottom: var(--space-12);
  }
  
  /* Articles */
  .articles {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  /* Enhanced Footer */
  .enhanced-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .brand-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-newsletter {
    margin: 2rem 0;
    padding: 2rem 1rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .text-content h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: var(--space-4) var(--space-6);
  }
  
  .text-content .btn {
    width: 100%;
    margin-right: 0;
    margin-bottom: var(--space-3);
  }
}

/* ——— Utility Classes ——— */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  }
