/* =============================================
   PhysicsCatalyst Pillar Page Theme
   Earthy Biology Color Scheme
   Compatible with Zurb Foundation 5
   Version: 1.0
   Last Updated: May 2026
============================================= */

/* =============================================
   COLOR VARIABLES
============================================= */
:root {
  --green-dark:   #1a5c45;
  --green-mid:    #2e8b6e;
  --green-light:  #4db88c;
  --teal:         #0d7377;
  --amber:        #e8a838;
  --cream:        #faf7f2;
  --text-dark:    #1e2122;
  --border:       #d9e4dc;
}

/* =============================================
   HERO SECTION
============================================= */
.hero-section {
  background: linear-gradient(135deg, #1a5c45 0%, #0d7377 60%, #0a4f53 100%);
  color: #fff;
  padding: 40px 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 300px; 
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -100px; 
  right: -60px;
  pointer-events: none;
}

.chapter-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.hero-section h1 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 2.2rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 700px;
}

.key-facts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.fact-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 6px;
  padding: 8px 15px;
  font-size: 0.85rem;
  color: #fff;
}

/* =============================================
   SECTION LABELS
============================================= */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2e8b6e;
  background: #e6f4ee;
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

/* =============================================
   TABLE OF CONTENTS CARD
============================================= */
.toc-card {
  background: #f0faf5;
  border-left: 4px solid #2e8b6e;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 25px;
}

.toc-card h3 {
  color: #1a5c45;
  margin-top: 0;
  font-size: 1.3rem;
}

/* =============================================
   NAVIGATION GRID & CARDS
============================================= */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.nav-card {
  background: #faf7f2;
  border: 1px solid #d9e4dc;
  border-radius: 8px;
  padding: 15px;
  transition: all 0.2s ease;
  display: block;
  text-decoration: none;
  color: #1e2122;
}

.nav-card:hover {
  border-color: #2e8b6e;
  background: #e8f5ee;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: #1e2122;
}

.nav-card .nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #1a5c45;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.nav-card .nav-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.nav-card .nav-desc {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

/* =============================================
   DIVIDERS
============================================= */
.section-divider {
  border: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #d9e4dc, transparent);
  margin: 35px 0;
}

/* =============================================
   STATS ROW
============================================= */
.stats-row {
  background: #1a5c45;
  color: #fff;
  padding: 25px;
  border-radius: 8px;
  margin: 20px 0;
}

.stat-box {
  text-align: center;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: #4db88c;
  line-height: 1;
  font-family: Georgia, serif;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin-top: 5px;
}

/* =============================================
   TABLES
============================================= */
.organelle-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.organelle-table thead th {
  background: #0d7377;
  color: #fff;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.organelle-table tbody tr:nth-child(even) {
  background: #f5f9f7;
}

.organelle-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0ece5;
}

.organelle-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.comparison-table thead th {
  background: #1a5c45;
  color: #fff;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table tbody tr:nth-child(even) {
  background: #f5f9f7;
}

.comparison-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #dbeae2;
}

/* =============================================
   TIMELINE
============================================= */
.timeline {
  position: relative;
  padding: 20px 0;
  margin: 30px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #4db88c, #0d7377);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: 22px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8a838;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #e8a838;
}

.timeline-year {
  display: inline-block;
  background: #1a5c45;
  color: #fff;
  border-radius: 15px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.timeline-scientist {
  font-weight: 700;
  color: #1a5c45;
  font-size: 1rem;
  margin-bottom: 5px;
}

.timeline-fact {
  font-size: 0.88rem;
  color: #3a3f42;
  line-height: 1.55;
}

/* =============================================
   GLOSSARY
============================================= */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.glossary-card {
  background: #fff;
  border: 1px solid #d9e4dc;
  border-left: 3px solid #2e8b6e;
  border-radius: 6px;
  padding: 14px 16px;
}

.glossary-term {
  font-weight: 700;
  color: #1a5c45;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.glossary-def {
  font-size: 0.85rem;
  color: #3a3f42;
  line-height: 1.5;
}

/* =============================================
   ACTIVITY BOXES
============================================= */
.activity-box {
  background: #fff;
  border: 1px solid #d9e4dc;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.activity-box h4 {
  color: #1a5c45;
  margin-top: 0;
  font-size: 1.05rem;
}

.activity-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #e8a838;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 8px;
}

/* =============================================
   FAQ ACCORDION (Foundation 5)
============================================= */
.faq-accordion .accordion-navigation > a {
  background: #f0faf5;
  border-bottom: 1px solid #d9e4dc;
  padding: 15px;
  font-weight: 600;
  color: #1a5c45;
}

.faq-accordion .accordion-navigation.active > a {
  background: #e8f5ee;
}

/* =============================================
   RESOURCE PANELS
============================================= */
.resource-panel {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 15px;
}

.resource-panel h4 {
  color: #fff;
  margin: 10px 0;
  font-size: 1.1rem;
}

.resource-panel p {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}

/* =============================================
   INTERNAL LINKS SECTION
============================================= */
.internal-links {
  background: #f0faf5;
  border: 1px solid #d9e4dc;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
}

.internal-links h3 {
  color: #1a5c45;
  margin-top: 0;
}

/* =============================================
   RESPONSIVE DESIGN
============================================= */
@media (max-width: 768px) {
  .hero-section h1 { 
    font-size: 1.6rem; 
  }
  
  .nav-grid { 
    grid-template-columns: 1fr; 
  }
  
  .timeline::before { 
    left: 15px; 
  }
  
  .timeline-item { 
    padding-left: 50px; 
  }
  
  .timeline-dot { 
    left: 7px; 
  }
  
  .key-facts { 
    flex-direction: column; 
  }
  
  .glossary-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-num {
    font-size: 2rem;
  }
  
  /* Cluster page mobile styles */
  .breadcrumb {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  
  .figure-placeholder {
    padding: 20px 10px;
  }
  
  .study-tip-box,
  .qa-section,
  .example-box,
  .related-links-box {
    padding: 15px;
    margin: 12px 0;
  }
  
  /* Make tables responsive with horizontal scroll */
  .comparison-table,
  .organelle-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .comparison-table thead th,
  .organelle-table thead th,
  .comparison-table tbody td,
  .organelle-table tbody td {
    padding: 8px;
    font-size: 0.85rem;
  }
}

/* =============================================
   UTILITY CLASSES
============================================= */

/* Colored backgrounds for different topics */
.bg-green-light { background: #e6f4ee; }
.bg-teal-light { background: #edf4fa; }
.bg-amber-light { background: #fff8e1; }
.bg-red-light { background: #fdf2f2; }

/* Border accents */
.border-green { border-left: 4px solid #2e8b6e; }
.border-teal { border-left: 4px solid #0d7377; }
.border-amber { border-left: 4px solid #e8a838; }

/* Text colors */
.text-green-dark { color: #1a5c45; }
.text-green-mid { color: #2e8b6e; }
.text-teal { color: #0d7377; }
.text-amber { color: #e8a838; }

/* =============================================
   CLUSTER PAGE SPECIFIC STYLES
============================================= */

/* Breadcrumb Navigation */
.breadcrumb {
  background: #f0faf5;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #2e8b6e;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #6b7280;
  margin: 0 8px;
}

/* Figure Placeholders */
.figure-placeholder {
  background: #f5f9f7;
  border: 2px dashed #d9e4dc;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  margin: 20px 0;
  color: #6b7280;
}

.figure-caption {
  font-size: 0.85rem;
  color: #3a3f42;
  font-style: italic;
  text-align: center;
  margin-top: 8px;
}

/* Study Tips Box */
.study-tip-box {
  background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
  border-left: 4px solid #e8a838;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
}

.study-tip-box h4 {
  color: #7a5800;
  margin-top: 0;
}

/* Q&A Section */
.qa-section {
  background: #fff;
  border: 1px solid #d9e4dc;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
}

.qa-section .question {
  font-weight: 700;
  color: #1a5c45;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.qa-section .answer {
  color: #3a3f42;
  line-height: 1.6;
}

/* Example Boxes */
.example-box {
  background: #edf4fa;
  border-left: 4px solid #0d7377;
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
}

/* Related Links Box */
.related-links-box {
  background: #f0faf5;
  border: 1px solid #d9e4dc;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
}