/* Global Styles for Static HTML Pages */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Navigation Styles */
.page-nav {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
}

.nav-brand {
  display: inline-block;
}

.nav-logo {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 15px 0;
  display: inline-block;
}

.nav-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 15px 10px;
  float: right;
  display: none;
}

.hamburger::before {
  content: "☰";
}

.nav-links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: bold;
}

.nav-section {
  flex-basis: 100%;
  margin-top: 10px;
}

.nav-section-title {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

/* Main Content */
main {
  flex: 1;
  padding: 40px 0;
}

.page-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 3px solid #3498db;
  padding-bottom: 15px;
}

.about-section {
  background: white;
  margin-bottom: 30px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.about-section h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 20px;
  border-left: 4px solid #3498db;
  padding-left: 15px;
}

.about-section h3 {
  font-size: 1.4rem;
  color: #34495e;
  margin: 20px 0 15px 0;
}

.about-section p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.7;
}

.about-section ul {
  margin: 15px 0;
  padding-left: 25px;
}

.about-section li {
  margin-bottom: 8px;
  color: #555;
}

.about-section a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.about-section a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.cta-link {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white !important;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-copyright {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 0.95em;
  letter-spacing: 0.02em;
  margin-bottom: 15px;
}

.footer-disclaimer {
  line-height: 1.4;
  margin: 15px 0;
  font-size: 0.9em;
  color: #bdc3c7;
}

.footer-links {
  margin-top: 20px;
}

.footer-links a {
  color: #ecf0f1;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #3498db;
}

/* Methodology-specific styles */
.methodology-section {
  background: white;
  margin-bottom: 30px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.methodology-section h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #333;
}

.methodology-section h4 {
  font-size: 1.2rem;
  margin-top: 1px;
  margin-bottom: 8px;
  color: #444;
}

.methodology-section p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  max-width: 800px;
  margin-bottom: 15px;
}

.methodology-section p.full-width {
  max-width: none;
}

.methodology-section a {
  color: #007acc;
  text-decoration: none;
  font-weight: 500;
}

.methodology-section a:hover {
  text-decoration: underline;
  color: #005fa3;
}

/* Side-by-side layout */
.side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.methodology-content {
  flex: 1;
}

.methodology-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  transition: all 0.3s ease;
  min-height: 200px;
}

/* Areas Grid */
.areas-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
}

.area-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: center;
}

.area-link {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid #dee2e6;
  color: #495057;
  text-decoration: none;
  padding: 12px 8px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: block;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.area-link:hover,
.area-link.hovered {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  text-decoration: none;
}

.area-link.selected {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border-color: #c0392b;
}

.placeholder {
  /* Empty space in grid */
  color: white;
}

/* Results page specific styles */
.preview-image-container {
  margin: 20px 0;
  text-align: center;
}

.preview-image {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #f9f9f9;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 25px 0;
  max-width: 1000px;
}

.case-study-item {
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f9f9f9;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.case-study-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.case-study-item h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 12px;
  font-weight: 600;
}

.case-study-item p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
}

.case-study-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #3498db;
  color: white !important;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.case-study-link:hover {
  background-color: #2980b9;
  text-decoration: none;
}

.methodology-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.methodology-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-links-container {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }
  
  .nav-links-container.show {
    display: flex;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .about-section {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .footer-disclaimer br {
    display: none;
  }
  
  .footer-links a {
    display: block;
    margin: 5px 0;
  }
  
  .side-by-side {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .area-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .area-link {
    font-size: 0.8rem;
    padding: 10px 6px;
    min-height: 50px;
  }
  
  .methodology-description {
    min-height: 150px;
  }

  .preview-image {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-study-item {
    padding: 15px;
  }

  .case-study-item h3 {
    font-size: 1.1rem;
  }

  .case-study-item p {
    font-size: 0.9rem;
  }

  .case-study-link {
    font-size: 0.85rem;
    padding: 7px 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .about-section {
    padding: 15px;
  }
  
  .about-section h2 {
    font-size: 1.5rem;
  }
  
  .about-section p {
    font-size: 1rem;
  }
  
  .area-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .area-link {
    font-size: 0.75rem;
    padding: 8px 4px;
  }
}

/* Print Styles */
@media print {
  .page-nav,
  .footer {
    display: none;
  }
  
  .about-section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .page-title {
    color: black;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}