/* Simple centered meta info for author and date */
body > p:nth-of-type(1),
body > p:nth-of-type(2) {
  text-align: center;
  margin-bottom: 12px;
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Create a flex container wrapper for reordering */
body > h1 ~ p:nth-of-type(1):has(strong:first-child),
body > h1 ~ p:nth-of-type(2):has(strong:first-child) {
  display: block;
}

/* Use CSS to visually swap the order if needed */
/* This assumes Author comes first in HTML, Published second */
body > h1 ~ p:nth-of-type(1) {
  order: 2;
}
body > h1 ~ p:nth-of-type(2) {
  order: 1;
}@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Define a CSS variable for consistent max-width */
:root {
  --content-max-width: 1200px;
  --content-padding: 32px;
  
  /* Light mode colors (default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fffe;
  --bg-gradient-start: #f8fffe;
  --bg-gradient-mid: #f0faf8;
  --bg-gradient-end: #ffffff;
  
  --text-primary: #1a1a1a;
  --text-secondary: #333333;
  --text-muted: #666666;
  --text-light: #8795a1;
  
  --accent-primary: #16a085;
  --accent-secondary: #27d687;
  --accent-dark: #0f4c3a;
  --accent-green: #19af6a;
  
  --shadow-sm: rgba(0, 0, 0, 0.05);
  --shadow-md: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.12);
  --shadow-accent: rgba(22, 160, 133, 0.08);
  
  --border-light: #e2e8f0;
  --border-accent: #e6e6e6;
  
  --footer-bg-start: #e0f2ef;
  --footer-bg-end: #c7e1d8;
  --footer-text: #566366;
  
  --caption-bg-start: #e7fbee;
  --caption-bg-end: #f6faf7;
  --caption-text: #20614c;
  --caption-border: #19af6a;
  
  --modal-bg: rgba(0, 0, 0, 0.95);
  --modal-overlay: rgba(0, 0, 0, 0.5);
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f26;
    --bg-gradient-start: #1a1f26;
    --bg-gradient-mid: #141922;
    --bg-gradient-end: #0f1419;
    
    --text-primary: #e1e8ed;
    --text-secondary: #d1d8dd;
    --text-muted: #8b98a5;
    --text-light: #657786;
    
    --accent-primary: #1db584;
    --accent-secondary: #2ee59d;
    --accent-dark: #26b590; /* Darkened from #2dd4a4 */
    --accent-green: #20d070;
    
    --shadow-sm: rgba(0, 0, 0, 0.3);
    --shadow-md: rgba(0, 0, 0, 0.5);
    --shadow-lg: rgba(0, 0, 0, 0.7);
    --shadow-accent: rgba(29, 181, 132, 0.2);
    
    --border-light: #2f3336;
    --border-accent: #38444d;
    
    --footer-bg-start: #1a2f2a;
    --footer-bg-end: #162621;
    --footer-text: #8b98a5;
    
    --caption-bg-start: #1a3a2e;
    --caption-bg-end: #162b23;
    --caption-text: #a8e6cf;
    --caption-border: #2ee59d;
    
    --modal-bg: rgba(0, 0, 0, 0.98);
    --modal-overlay: rgba(0, 0, 0, 0.8);
  }
  
  /* Override h1 specifically for moderately brighter title in dark mode */
  body > h1 {
    color: #2ac896; /* Darkened from #3be5b0 */
    text-shadow: 
      0 2px 6px rgba(0, 0, 0, 0.4),
      0 4px 12px rgba(42, 200, 150, 0.25),
      0 8px 20px rgba(29, 181, 132, 0.2),
      0 12px 30px rgba(29, 181, 132, 0.15);
  }
  
  /* Make h3 text moderately brighter in dark mode */
  body > h3 {
    color: #e8f2f7; /* Slightly less bright than pure white */
  }
}

/* Updated figcaption styling - shorter and closer to images */
figcaption {
  font-size: 1rem;
  color: var(--caption-text);
  font-style: italic;
  background: linear-gradient(90deg, var(--caption-bg-start) 70%, var(--caption-bg-end) 100%);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  margin: -20px auto 3rem auto; /* Added 3rem bottom margin for space */
  max-width: 50%; /* Reduced from 65% for narrower desktop captions */
  text-align: center;
  box-shadow: 0 2px 10px var(--shadow-accent);
  position: relative;
  letter-spacing: 0.01em;
  transition: background 0.2s, box-shadow 0.2s;
  border-left: 3px solid var(--caption-border);
  box-sizing: border-box;
  z-index: 1; /* Added z-index to ensure it appears above image */
}

figcaption:hover {
  background: linear-gradient(90deg, var(--caption-bg-start) 60%, var(--caption-bg-end) 100%);
  box-shadow: 0 3px 15px var(--shadow-accent);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body > footer {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: center;
}

/* Header section - the h1, author, and date area */
body > h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--accent-dark);
  margin-top: 80px;
  margin-bottom: 24px;
  text-align: center;
  max-width: var(--content-max-width);
  padding: 0 var(--content-padding);
  margin-left: auto;
  margin-right: auto;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(15, 76, 58, 0.2),
    0 8px 16px rgba(22, 160, 133, 0.15),
    0 12px 24px rgba(22, 160, 133, 0.1);
}


/* HR after header info */
body > hr:first-of-type {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light) 25%, var(--border-light) 75%, transparent);
  margin: 40px auto 60px;
  max-width: 200px;
  position: relative;
}

body > hr:first-of-type::after {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  color: var(--accent-primary);
  padding: 0 1rem;
  font-size: 1rem;
}

/* Main content paragraphs */
body > p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  font-weight: 400;
  max-width: var(--content-max-width);
  padding: 0 var(--content-padding);
  margin-left: auto;
  margin-right: auto;
}

/* First content paragraph - make it stand out */
body > hr:first-of-type + p {
  font-size: 1.375rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: calc(var(--content-padding) + 24px);
}

/* Add decorative quote mark to first content paragraph */
body > hr:first-of-type + p::before {
  content: '"';
  position: absolute;
  left: calc(var(--content-padding) - 8px);
  top: -10px;
  font-size: 4rem;
  color: var(--accent-primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Drop cap for first letter */
body > hr:first-of-type + p:first-letter {
  float: left;
  font-size: 4rem;
  line-height: 3rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  font-weight: 700;
  color: var(--accent-primary);
  font-family: Georgia, serif;
}

/* Headings */
body > h1,
body > h2,
body > h3,
body > h4 {
  font-weight: 700;
  color: var(--accent-dark);
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  max-width: var(--content-max-width);
  padding: 0 var(--content-padding);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

body > h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
  padding-top: 0.5rem;
  margin-top: 4rem;
  position: relative;
}

/* Enhanced h2 with decorative line */
body > h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light) 20%, var(--border-light) 80%, transparent);
}

/* Add accent mark to h2 */
body > h2::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

body > h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-left: calc(var(--content-padding) + 20px);
}

/* Add left accent bar to h3 */
body > h3::before {
  content: '';
  position: absolute;
  left: var(--content-padding);
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
  opacity: 0.7;
}

body > h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Images - Fixed sizing that scales with viewport */
body > img {
  width: 100%;
  max-width: 800px; /* Reasonable max size for desktop */
  height: auto;
  display: block;
  margin: 2.5rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease;
}

@media (max-width: 768px) {
  body > img {
    width: calc(100% - 40px);
    max-width: none;
    margin-left: 20px;
    margin-right: 20px;
  }
}

.see-others-widget {
  padding: 2.5rem var(--content-padding) 1.5rem;
  margin: 3rem auto 2rem;
  border-top: 1px solid #e6e6e6;
  text-align: center;
  max-width: var(--content-max-width);
}

.see-others-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f4c3a;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  text-align: center;
  background: linear-gradient(90deg, #16a085 0%, #27d687 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding: 0 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(22, 160, 133, 0.08);
}

.see-article-grid {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.see-article-card {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(46, 125, 50, 0.09);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: box-shadow 0.15s, transform 0.12s;
  border: 1.5px solid #e9f7ee;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 355px;
}
.see-article-card:hover {
  box-shadow: 0 6px 30px rgba(33, 33, 33, 0.14);
  border: 1.6px solid #b1f4bd;
  transform: translateY(-3px) scale(1.012);
}

.see-article-img-area {
  width: 100%;
  height: 144px;
  background: linear-gradient(120deg,#e7f3ee 80%, #f9faf9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.see-article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eee;
  display: block;
  border-radius: 0 0 0 0;
}

.see-article-title {
  font-size: 1.13rem;
  font-weight: 700;
  margin: 18px 20px 5px 20px;
  color: #1F6B31;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.see-article-excerpt {
  font-size: 0.97rem;
  color: #454545;
  margin: 0 20px 8px 20px;
  line-height: 1.35;
  min-height: 36px;
  max-height: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.see-article-meta {
  font-size: 0.97rem;
  color: #63a945;
  margin: 0 20px 13px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 900px) {
  .see-article-grid { flex-direction: column; gap: 1.3rem; }
  .see-article-card { max-width: 100%; min-width: 0; }
}


img.cover-photo {
  width: 100% !important;
  max-width: calc(var(--content-max-width) - (2 * var(--content-padding))) !important;
  margin: 2rem auto 2.5rem auto !important;
  border-radius: 12px !important;
  box-shadow: 
    0 0 30px rgba(22, 160, 133, 0.4),
    0 0 60px rgba(22, 160, 133, 0.3),
    0 4px 36px rgba(15, 76, 58, 0.25) !important;
  max-height: 450px !important; /* Increased from 380px */
  object-fit: cover !important;
  display: block;
}

body > img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* Modal styles for fullscreen image */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--modal-bg);
  cursor: pointer;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.image-modal img {
  margin: auto;
  display: block;
  max-width: 95%;
  max-height: 95vh;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 0;
  box-shadow: none;
  cursor: default;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10000;
  background: var(--modal-overlay);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.image-modal-close:hover {
  color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.8);
}

/* Mobile adjustments for modal */
@media (max-width: 768px) {
  .image-modal img {
    max-width: 100%;
    max-height: 100vh;
  }
  
  .image-modal-close {
    top: 10px;
    right: 10px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
}

/* Remove the complex meta info styling */

/* Figure and Figcaption styling for images with captions */
body > figure {
  display: grid;
  grid-template-columns: minmax(0, min-content);
  justify-content: center;
  margin: 2.5rem auto 3rem auto; /* Added extra bottom margin */
  padding: 0;
  gap: 0;
  position: relative; /* For absolute positioning of caption */
}

body > figure img {
  display: block;
  max-width: min(800px, calc(100vw - (2 * var(--content-padding))));
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow-md);
  margin: 0;
  grid-column: 1;
}

/* Updated figure caption styling - more compact and closer to image */
body > figure figcaption {
  grid-column: 1;
  font-size: 0.8rem;
  color: #ffffff;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #0f4c3a 0%, #16a085 100%);
  border: none;
  border-radius: 6px;
  margin-top: -40px; /* Increased negative margin for desktop */
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 3px 12px rgba(15, 76, 58, 0.2);
  letter-spacing: 0.015em;
  font-family: Georgia, serif;
  text-transform: uppercase;
  box-sizing: border-box;
  z-index: 1;
}

@media (max-width: 768px) {
  body > figure {
    padding: 0 20px;
    margin-bottom: 1rem; /* Reduced from 3rem */
  }
  
  body > figure img {
    max-width: 100%;
    width: 100%;
  }
  
  body > figure figcaption {
    margin-top: -20px; /* Maintain overlap on mobile */
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
  }
  
  /* Make standalone figcaptions wider on mobile */
  figcaption {
    max-width: 85%; /* Increased from 65% */
    margin-bottom: 1rem; /* Reduced from 3rem */
  }
  
  /* Reduce spacing for paragraphs that follow figures */
  body > figure + p {
    margin-top: -0.5rem;
  }
}

/* Caption label */
body > figure figcaption::before {
  content: 'FIGURE CAPTION';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 0.6rem;
  background: #16a085;
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

/* Decorative corner accents */
body > figure figcaption::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-top: 2px solid #27d687;
  border-right: 2px solid #27d687;
  border-radius: 0 6px 0 0;
}

/* Caption hover effect for additional interactivity */
body > figure figcaption:hover {
  background: linear-gradient(135deg, #16a085 0%, #27d687 100%);
  box-shadow: 0 4px 16px rgba(22, 160, 133, 0.3);
  transform: translateY(-2px); /* Slight lift on hover */
  transition: all 0.3s ease;
}

/* Caption text styling for emphasis */
body > figure figcaption strong {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Remove duplicate figure styling */
body > figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--content-max-width);
  padding: 0 var(--content-padding);
  margin: 2.5rem auto;
  text-align: center;
  box-sizing: border-box;
}
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #0f4c3a 0%, #16a085 100%); /* Fixed colors instead of variables */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--content-max-width);
    margin: 0 auto;
    width: 100%;
    padding: 24px var(--content-padding);
    box-shadow: 0 2px 12px rgba(22, 160, 133, 0.08); /* Fixed shadow */
    transition: background 0.2s, box-shadow 0.2s;
    border-radius: 0 0 18px 18px;
}


@media (max-width: 600px) {
    .main-header {
        padding: 12px 10px;
    }
    .main-header .logo-img {
        height: 40px;
    }
}

.cover-photo {
  display: block;
  width: 100%;
  max-width: calc(var(--content-max-width) - (2 * var(--content-padding)));
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  margin: 2rem auto 2.5rem auto;
  box-shadow: 0 4px 36px rgba(22, 160, 133, 0.13);
}
@media (max-width: 600px) {
  .cover-photo {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
    max-height: 220px; /* Increased from 180px */
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1.3rem;
  }
}


.main-header .company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-left: 0.75rem;
    letter-spacing: 0.01em;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 1px 4px rgba(0,0,0,0.12);
    white-space: nowrap;
}
@media (max-width: 600px) {
    .main-header .company-name {
        font-size: 1.1rem;
    }
}

body > figure figcaption em {
  color: #e0f7fa;
  font-style: normal;
  opacity: 0.95;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 2px;
}

body > footer {
  padding: 60px 0 40px 0;
  margin-top: 100px;
  color: #566366;
  font-size: 0.875rem;
  background: linear-gradient(135deg, #e0f2ef 0%, #c7e1d8 100%);
  border-top: 1px solid #e8ecf0;
  position: relative;
  overflow: hidden;
}

body > footer > div {
  max-width: var(--content-max-width);
  padding: 0 var(--content-padding);
  margin: 0 auto 24px auto;
  text-align: center;
  display: block;
}

body > footer .cta-btn {
  display: inline-block;
  margin: 0 auto 32px auto;
  float: none;
}


/* Footer content wrapper */
body > footer > div {
  max-width: var(--content-max-width);
  padding: 0 var(--content-padding);
  margin: 0 auto 24px auto;
  text-align: center;
  display: block;
  gap: 0;
}

/* Footer sections (disclaimers, citations, etc.) */
body > footer h3,
body > footer h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f4c3a;
  margin-bottom: 1rem;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #16a085;
  padding-bottom: 0.5rem;
}

body > footer p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #566366;
  margin-bottom: 1rem;
  max-width: none;
  padding: 0;
}

body > footer ul,
body > footer ol {
  margin: 0;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

body > footer li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #566366;
  margin-bottom: 0.5rem;
}

body > footer a {
  color: #16a085;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

body > footer a:hover {
  color: #0f4c3a;
  text-decoration: underline;
}

/* Footer disclaimer/warning blocks */
body > footer .disclaimer,
body > footer .warning {
  background: rgba(22, 160, 133, 0.1);
  border-left: 4px solid #16a085;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

body > footer .disclaimer strong,
body > footer .warning strong {
  color: #0f4c3a;
  font-weight: 600;
}

/* Copyright notice - centered at bottom */
body > footer > p:last-child {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
  color: #8795a1;
  font-size: 0.8125rem;
  margin-bottom: 0;
}

/* Decorative footer pattern */
body > footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #16a085 0%, #27d687 25%, #16a085 50%, #27d687 75%, #16a085 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Add hover effect to footer text */
body > footer:hover {
  color: #333333;
  transition: color 0.3s ease;
}

/* Links */
a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--accent-dark);
}

a:hover::after {
  width: 100%;
}

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

/* Apply animation to content elements */
body > * {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

body > *:nth-child(1) { animation-delay: 0.1s; }
body > *:nth-child(2) { animation-delay: 0.2s; }
body > *:nth-child(3) { animation-delay: 0.3s; }
body > *:nth-child(4) { animation-delay: 0.4s; }
body > *:nth-child(5) { animation-delay: 0.5s; }
body > *:nth-child(6) { animation-delay: 0.6s; }
body > *:nth-child(7) { animation-delay: 0.7s; }

/* Add visual interest with pseudo-elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 25%, var(--bg-gradient-end) 50%, var(--bg-gradient-mid) 75%, var(--bg-gradient-start) 100%);
  z-index: -1;
  opacity: 0.5;
}

/* Mobile Responsive Design (phones) */
@media (max-width: 768px) {
  :root {
    --content-padding: 20px;
  }
  
  body > h1 {
    font-size: 2.4rem; /* Increased from 2.1rem */
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.2;
  }
  
  body > p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }
  
  /* Header paragraphs */
  body > p:nth-of-type(1),
  body > p:nth-of-type(2) {
    font-size: 0.875rem;
    margin-bottom: 6px;
  }
  
  body > hr:first-of-type {
    margin: 30px auto 40px;
  }
  
  body > hr:first-of-type + p {
    font-size: 1.125rem;
    padding-left: calc(var(--content-padding) + 16px);
    margin-bottom: 2rem;
  }
  
  /* Smaller drop cap on mobile */
  body > hr:first-of-type + p:first-letter {
    font-size: 3rem;
    line-height: 2.5rem;
    padding-right: 0.25rem;
  }
  
  body > hr:first-of-type + p::before {
    font-size: 3rem;
    left: calc(var(--content-padding) - 4px);
    top: -8px;
  }
  
  body > h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
  }
  
  body > h3 {
    font-size: 1.25rem;
    padding-left: var(--content-padding);
  }
  
  body > h3::before {
    display: none; /* Hide accent bar on mobile */
  }
  
  body > h4 {
    font-size: 1.125rem;
  }
  
  body > img {
    margin: 1.5rem auto;
    border-radius: 6px;
  }
  
  body > figure {
    margin: 1.5rem auto;
  }
  
  
  body > img + p::before {
    display: none !important; /* Hide label on mobile */
  }
  
  body > footer {
    padding: 50px 20px 30px 20px;
    margin-top: 60px;
    font-size: 0.8125rem;
  }
  
  body > footer > div {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  body > footer h3,
  body > footer h4 {
    font-size: 1rem;
  }
}

/* Footer social links row */
body > footer .footer-social {
  margin-bottom: 18px;
  text-align: center;
}

body > footer .footer-social a {
  display: inline-block;
  margin: 0 16px;
  color: #16a085;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
}

body > footer .footer-social a:hover {
  color: #0f4c3a;
  text-decoration: underline;
}
body > footer .footer-social .dot {
  margin: 0 8px;
  color: #b5c7bb;
  font-size: 1.1em;
}

/* Small mobile (very small phones) */
@media (max-width: 480px) {
  :root {
    --content-padding: 16px;
  }
  
  body > h1 {
    font-size: 2rem; /* Increased from 1.8rem */
    word-wrap: break-word;
    hyphens: auto;
  }
  
  body > footer {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }
}

/* Tablet Design (iPads, etc) */
@media (min-width: 769px) and (max-width: 1023px) {
  :root {
    --content-padding: 40px;
  }
  
  body > h1 {
    font-size: 2.5rem;
  }
  
  body > p {
    font-size: 1.0625rem;
  }
  
  body > hr:first-of-type + p {
    font-size: 1.3rem;
  }
  
  /* Wider captions for tablets */
  figcaption {
    max-width: 75%; /* Wider than desktop (50%) but narrower than mobile (85%) */
  }
}

/* Desktop (standard laptops) */
@media (min-width: 1024px) and (max-width: 1199px) {
  :root {
    --content-padding: 60px;
  }
  
  body > h1 {
    font-size: 3rem;
  }
}

/* Large screens (desktop monitors) */
@media (min-width: 1200px) {
  body > h1 {
    font-size: 3.5rem;
  }
  
  body > p {
    font-size: 1.1875rem;
  }
  
  body > hr:first-of-type + p {
    font-size: 1.5rem;
  }
  
  body > h2 {
    font-size: 2.25rem;
  }
  
  body > h3 {
    font-size: 1.75rem;
  }
}

/* Very large screens (4K monitors) */
@media (min-width: 1600px) {
  :root {
    --content-max-width: 1400px;
    --content-padding: 80px;
  }
  
  body > h1 {
    font-size: 4rem;
  }
  
  body > p {
    font-size: 1.25rem;
  }
  
  body > hr:first-of-type + p {
    font-size: 1.625rem;
  }
}

/* Ultra-wide screens */
@media (min-width: 2000px) {
  :root {
    --content-max-width: 1600px;
    --content-padding: 100px;
  }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  body > h1 {
    font-size: 2rem;
    margin-top: 30px;
  }
  
  :root {
    --content-padding: 40px;
  }
}

/* High DPI screens (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Sharper shadows for high DPI */
  body > img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
}
@media print {
  body {
    color: #000;
    background: #fff;
  }
  
  body::before {
    display: none;
  }
  
  :root {
    --content-padding: 40px;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
    box-shadow: none;
  }
  
  h1, h2, h3, h4 {
    page-break-after: avoid;
  }
  
  p {
    orphans: 3;
    widows: 3;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for keyboard navigation */
:focus-visible {
  outline: 2px solid #16a085;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Selection colors */
::selection {
  background-color: #16a085;
  color: #ffffff;
}

::-moz-selection {
  background-color: #16a085;
  color: #ffffff;
}


/* About Author Widget - Updated with Mobile Fix */
.about-author-widget {
  margin: 40px auto 28px;
  padding: 24px 0;
  border-radius: 18px;
  background: linear-gradient(90deg,#e5f8ec 50%,#f7fbf9 100%);
  box-shadow: 0 2px 12px rgba(46, 125, 50, 0.10);
  max-width: var(--content-max-width);
}

.about-author-inner {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 0 var(--content-padding);
  flex-wrap: wrap;
}

.about-author-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #63a945;
  background: #fff;
  box-shadow: 0 2px 8px rgba(46,125,50,0.08);
  flex-shrink: 0; /* Prevent photo from shrinking */
}

.about-author-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px; /* Ensure minimum width */
}

.about-author-name {
  font-size: 1.28rem;
  font-weight: 700;
  color: #238843;
  margin-bottom: 0;
}

.about-author-title {
  font-size: 1.05rem;
  color: #39894c;
  font-weight: 500;
  margin-bottom: 4px;
}

.about-author-desc {
  font-size: 1.0rem;
  color: #234a24;
}

/* Updated mobile styles - name and title beside photo, description below */
@media (max-width: 650px) {
  .about-author-widget {
    padding: 20px 0;
  }
  
  .about-author-inner {
    gap: 0;
    padding: 0 20px;
    position: relative;
  }
  
  .about-author-photo {
    width: 60px;
    height: 60px;
    border-width: 2px;
    position: relative;
    z-index: 1;
  }
  
  .about-author-details {
    gap: 4px;
    min-width: 0;
    padding-left: 16px;
    margin-left: -76px; /* Overlap with photo width + gap */
    padding-top: 0;
    flex: 1 1 100%;
  }
  
  .about-author-name {
    font-size: 1.1rem;
    margin-left: 76px; /* Push name to the right of photo */
  }
  
  .about-author-title {
    font-size: 0.9rem;
    margin-bottom: 12px;
    margin-left: 76px; /* Push title to the right of photo */
  }
  
  .about-author-desc {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-left: 0; /* Description starts from the left edge */
    margin-top: 8px;
  }
}