/* Variables & Setup */
:root {
  --primary-color: #005f73;
  --secondary-color: #0a9396;
  --accent-color: #ee9b00;
  --text-color: #333333;
  --text-light: #555555;
  --bg-color: #ffffff;
  --bg-alt: #f8f9fa;
  --border-color: #e9ecef;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Search */
.search-container {
  padding: 20px;
  position: relative;
}

#searchInput {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 20px;
  right: 20px;
  background: white;
  border: 1px solid var(--border-color);
  border-top: none;
  z-index: 10;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
}
.search-result-item:last-child {
  border-bottom: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Articles */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  background: white;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.card p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.category-badge {
  display: inline-block;
  background-color: var(--bg-alt);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary-color);
}

/* Single Article Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin: 40px auto;
}

.single-page {
  max-width: 800px;
  margin: 40px auto;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-widget {
  background: white;
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--bg-alt);
  padding-bottom: 10px;
}

.related-list {
  list-style: none;
  padding: 0;
}

.related-list li {
  margin-bottom: 15px;
}

.related-list li a {
  font-weight: 500;
  line-height: 1.4;
  display: block;
}

.article-header h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.article-header .meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.article-content h2 {
  margin: 30px 0 15px;
  color: var(--primary-color);
}

.article-content h3 {
  margin: 20px 0 10px;
}

.article-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.key-takeaways {
  background-color: #f0f7f8;
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin-bottom: 30px;
}

.key-takeaways h3 {
  margin-top: 0;
  color: var(--primary-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

th, td {
  border: 1px solid var(--border-color);
  padding: 12px;
  text-align: left;
}

th {
  background-color: var(--bg-alt);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover {
  background-color: #d18800;
  color: white;
}

/* Social Share */
.social-share {
  margin-bottom: 30px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.social-share button {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.social-share button:hover {
  background-color: #e9ecef;
}

/* Newsletter */
.newsletter-inline {
  background-color: var(--primary-color);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin: 40px 0;
  text-align: center;
}
.newsletter-inline input {
  padding: 10px;
  width: 60%;
  max-width: 300px;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
}

/* Footer */
.site-footer {
  background-color: #1a1a1a;
  color: white;
  padding: 60px 0 20px;
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-widget h3 {
  margin-bottom: 20px;
  color: var(--accent-color);
}
.footer-widget ul {
  list-style: none;
}
.footer-widget a {
  color: #cccccc;
}
.footer-widget a:hover {
  color: white;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  color: #888;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}
.cookie-banner.hidden {
  display: none;
}
.cookie-banner p {
  margin: 0;
  margin-right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .newsletter-inline input {
    width: 100%;
    margin-bottom: 10px;
  }
}
