/* ============================================
   MODERN TYPOGRAPHY & BASE STYLES
   ============================================ */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* Modern heading styles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: #0a0a0a;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-branding {
  padding: 1rem 0;
}

.site-logo img {
  max-height: 80px;
  width: auto;
  transition: transform 0.3s ease;
}

.site-logo:hover img {
  transform: scale(1.02);
}

/* Modern navigation menu */
.main-navigation {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.main-navigation a {
  color: #2c3e50;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
  position: relative;
}

.main-navigation a:hover {
  color: #3498db;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-navigation a:hover::after {
  width: 80%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.site-main > article:first-child,
.entry-content > *:first-child {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Italic mission text styling */
em, i {
  font-style: italic;
  color: #2c3e50;
  font-weight: 500;
}

strong em, em strong {
  background: linear-gradient(120deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-style: italic;
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */

a {
  color: #3498db;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #2980b9;
}

.wp-block-button__link,
a.button,
button,
input[type="submit"] {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.3px;
  border: none;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
  text-transform: none;
}

.wp-block-button__link:hover,
a.button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.entry-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Modern card styling for images and content */
.wp-block-image,
.entry-content img {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  overflow: hidden;
}

.wp-block-image:hover,
.entry-content img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* Numbered list styling (Our Missions) */
.entry-content ol {
  list-style: none;
  counter-reset: mission-counter;
  padding-left: 0;
  margin: 2rem 0;
}

.entry-content ol li {
  counter-increment: mission-counter;
  position: relative;
  padding-left: 4rem;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.entry-content ol li::before {
  content: counter(mission-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* ============================================
   SEPARATOR LINES
   ============================================ */

hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
  margin: 4rem auto;
  max-width: 50%;
}

/* ============================================
   PROFILE SECTION
   ============================================ */

.entry-content table {
  width: 100%;
  border: none;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.entry-content table td {
  border: none;
  padding: 0.5rem;
  font-size: 16px;
  line-height: 1.8;
}

.entry-content table em {
  color: #5a6c7d;
  font-weight: 500;
}

/* ============================================
   FEATURED POSTS / BLOG CARDS
   ============================================ */

.blog .entry,
article.post {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  margin-bottom: 3rem;
}

.blog .entry:hover,
article.post:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.entry-header {
  padding: 2rem 2rem 0 2rem;
}

.entry-title {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.entry-meta {
  color: #7f8c8d;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  padding: 4rem 2rem 2rem 2rem;
  margin-top: 6rem;
}

.site-footer h2,
.site-footer h3,
.site-footer strong {
  color: white;
}

.site-footer a {
  color: #3498db;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #5dade2;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  .entry-content {
    padding: 1rem;
  }
  
  .site-logo img {
    max-height: 60px;
  }
  
  .entry-content ol li {
    padding-left: 3.5rem;
  }
  
  .entry-content ol li::before {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}

/* ============================================
   SMOOTH ANIMATIONS
   ============================================ */

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

.entry-content > * {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.entry-content > *:nth-child(1) { animation-delay: 0.1s; }
.entry-content > *:nth-child(2) { animation-delay: 0.2s; }
.entry-content > *:nth-child(3) { animation-delay: 0.3s; }
.entry-content > *:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   ACCENT COLORS & GRADIENTS
   ============================================ */

/* Optional: Adjust these colors to match your branding */
:root {
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --accent-color: #e74c3c;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
}

/* Add subtle gradient overlay to hero images */
.wp-block-cover,
.has-background {
  position: relative;
}

.wp-block-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
  pointer-events: none;
}