/* Base Styles & Variables */
:root {
  --primary-color: #1e88e5;
  --secondary-color: #005cb2;
  --accent-color: #ff9800;
  --text-color: #333333;
  --text-light: #757575;
  --background-color: #ffffff;
  --background-alt: #f5f7fa;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --error-color: #f44336;
  --warning-color: #ff9800;
  --info-color: #2196f3;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --header-height: 80px;
  --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

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

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

ul, ol {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn:focus {
  outline: none;
}

.primary {
  background-color: var(--primary-color);
  color: white;
}

.primary:hover {
  background-color: var(--secondary-color);
  color: white;
}

.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Header & Navigation */
header {
  background-color: var(--background-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: 0.75rem;
  border-radius: var(--radius-sm);
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
}

nav li {
  margin-left: 2rem;
}

nav a {
  color: var(--text-color);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav a:hover:after,
nav a.active:after {
  width: 100%;
}

nav a.active {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-color: var(--background-alt);
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(0, 92, 178, 0.1));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-light);
}

/* Features Section */
.features {
  background-color: var(--background-color);
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--background-alt);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  background-color: rgba(30, 136, 229, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  fill: var(--primary-color);
}

.feature-card h3 {
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Recent Posts Section */
.recent-posts {
  background-color: var(--background-alt);
}

.recent-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background-color: var(--background-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.post-image {
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.read-more {
  font-weight: 600;
  position: relative;
  padding-right: 1.5rem;
}

.read-more:after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.read-more:hover:after {
  right: -5px;
}

.view-all {
  text-align: center;
}

/* Unknown Facts Section */
.unknown-facts {
  background-color: var(--background-color);
}

.unknown-facts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.facts-list {
  max-width: 800px;
  margin: 0 auto;
}

.fact-item {
  display: flex;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--background-alt);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.fact-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.fact-number {
  flex-shrink: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 1.5rem;
  width: 40px;
  text-align: center;
}

.fact-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.fact-content p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Calculator Preview Section */
.calculator-preview {
  background-color: var(--background-alt);
  text-align: center;
}

.calculator-preview h2 {
  margin-bottom: 1rem;
}

.calculator-preview > p {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-light);
}

.calculator-teaser {
  display: flex;
  align-items: center;
  background-color: var(--background-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin: 0 auto;
}

.calculator-image {
  flex: 1;
  height: 350px;
}

.calculator-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calculator-info {
  flex: 1;
  padding: 2rem;
  text-align: left;
}

.calculator-info p {
  margin-bottom: 1rem;
}

.calculator-info ul {
  margin-bottom: 2rem;
}

.calculator-info li {
  margin-bottom: 0.5rem;
}

/* Page Header */
.page-header {
  background-color: var(--background-alt);
  text-align: center;
  padding: 4rem 0;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-light);
}

/* Blog Page */
.blog-content {
  padding: 4rem 0;
}

.blog-search {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.blog-search form {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-search input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
}

.blog-search button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.blog-search button:hover {
  background-color: var(--secondary-color);
}

.blog-search svg {
  fill: white;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.posts-grid .post-card {
  display: flex;
  flex-direction: column;
}

.posts-grid .post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.posts-grid .post-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.posts-grid .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Calculator Page */
.calculator-section {
  padding: 4rem 0;
}

.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.calculator-explanation h2 {
  margin-bottom: 1.5rem;
}

.calculator-explanation ul {
  margin-left: 1.5rem;
}

.calculator-note {
  display: flex;
  align-items: flex-start;
  background-color: rgba(33, 150, 243, 0.1);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

.calculator-note svg {
  flex-shrink: 0;
  margin-right: 1rem;
  fill: var(--info-color);
}

.calculator-note p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.calculator-form {
  background-color: var(--background-alt);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--background-color);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.calculate-btn {
  width: 100%;
}

.calculator-results {
  background-color: var(--background-alt);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: none;
}

.calculator-results h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.results-table {
  margin-bottom: 1.5rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.result-item.total {
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 2px solid var(--border-color);
  border-bottom: none;
  padding-top: 1.5rem;
}

.result-label {
  color: var(--text-light);
}

.results-disclaimer {
  font-size: 0.875rem;
  color: var(--text-light);
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* About Page */
.about-story {
  padding: 4rem 0;
}

.about-story .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.about-content h2:first-child {
  margin-top: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  background-color: var(--background-alt);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  margin-bottom: 1rem;
}

.value-icon svg {
  fill: var(--primary-color);
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-light);
}

.about-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
}

.team-section {
  background-color: var(--background-alt);
  padding: 4rem 0;
}

.team-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  background-color: var(--background-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-member h3 {
  margin: 1.5rem 0 0.25rem;
}

.team-member p {
  padding: 0 1.5rem;
  margin-bottom: 1rem;
}

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.member-social {
  display: flex;
  justify-content: center;
  padding: 0 1.5rem 1.5rem;
}

.member-social a {
  margin: 0 0.5rem;
  color: var(--text-light);
}

.stats-section {
  padding: 4rem 0;
}

.stats-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  background-color: var(--background-alt);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-description {
  color: var(--text-light);
}

/* Contact Page */
.contact-section {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-details {
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: rgba(30, 136, 229, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.contact-icon svg {
  fill: var(--primary-color);
}

.contact-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-text p {
  color: var(--text-light);
  margin-bottom: 0;
}

.social-contact h3 {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--background-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.social-links a:hover svg {
  fill: white;
}

.social-links svg {
  fill: var(--primary-color);
  transition: var(--transition);
}

.contact-form-container {
  background-color: var(--background-alt);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-form-container h2 {
  margin-bottom: 1.5rem;
}

.contact-form .checkbox-group {
  display: flex;
  align-items: flex-start;
}

.contact-form .checkbox-group input {
  width: auto;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

.map-section {
  padding: 4rem 0;
  background-color: var(--background-alt);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.map-container {
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modal-content {
  position: relative;
  background-color: var(--background-color);
  margin: 10% auto;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.thank-you-content {
  text-align: center;
}

.thank-you-icon {
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
  background-color: rgba(76, 175, 80, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-icon svg {
  fill: var(--success-color);
}

.thank-you-content h2 {
  margin-bottom: 1rem;
}

.thank-you-content p {
  margin-bottom: 2rem;
}

/* Post Detail Page */
.post-detail {
  padding: 4rem 0;
}

.post-header {
  text-align: center;
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 500px;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--text-light);
  margin: 2rem 0;
}

.image-container {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.image-caption {
  background-color: var(--background-alt);
  padding: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 0;
}

.salary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.salary-table caption {
  font-size: 0.875rem;
  color: var(--text-light);
  text-align: left;
  margin-top: 0.75rem;
}

.salary-table th,
.salary-table td {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.salary-table th {
  background-color: var(--background-alt);
}

.salary-table tr:nth-child(even) {
  background-color: var(--background-alt);
}

.tech-districts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.district {
  background-color: var(--background-alt);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.district h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.district p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-light);
}

.author-box {
  display: flex;
  align-items: center;
  background-color: var(--background-alt);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 3rem 0;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1.5rem;
}

.author-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.author-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-light);
}

.post-tags {
  margin: 2rem 0;
}

.post-tags span {
  font-weight: 600;
  margin-right: 0.5rem;
}

.post-tags a {
  display: inline-block;
  background-color: var(--background-alt);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.post-tags a:hover {
  background-color: var(--primary-color);
  color: white;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.post-navigation a {
  max-width: 48%;
  display: flex;
  flex-direction: column;
}

.nav-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.nav-title {
  font-weight: 600;
}

.related-posts {
  margin: 4rem 0 2rem;
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.related-post {
  background-color: var(--background-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.related-post:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.related-post img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-post h3 {
  font-size: 1.1rem;
  padding: 1rem 1rem 0.5rem;
}

.related-post p {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-light);
}

/* Footer */
footer {
  background-color: var(--text-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-about .footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
}

.footer-about p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.registration {
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-links h3,
.footer-legal h3,
.footer-contact h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links h3:after,
.footer-legal h3:after,
.footer-contact h3:after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
  margin: 0;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: white;
  text-decoration: underline;
}

.footer-contact address {
  font-style: normal;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer-contact svg {
  margin-right: 0.75rem;
  fill: rgba(255, 255, 255, 0.8);
}

.footer-contact .social-links {
  margin-top: 1.5rem;
}

.footer-contact .social-links a {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-contact .social-links svg {
  fill: rgba(255, 255, 255, 0.8);
  margin-right: 0;
}

.footer-contact .social-links a:hover {
  background-color: var(--primary-color);
}

.footer-contact .social-links a:hover svg {
  fill: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.6;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background-color);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
}

.cookie-content {
  padding: 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.accept {
  background-color: var(--success-color);
  color: white;
}

.accept:hover {
  background-color: #3d8b40;
  color: white;
}

.settings {
  background-color: var(--text-light);
  color: white;
}

.settings:hover {
  background-color: #616161;
  color: white;
}

.reject {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
}

.reject:hover {
  background-color: var(--text-light);
  color: white;
}

.cookie-more-info {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .calculator-teaser {
    flex-direction: column;
  }
  
  .calculator-image {
    width: 100%;
  }
  
  .about-story .container {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    grid-row: 1;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--background-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 999;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  
  nav li {
    margin: 1.5rem 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .calculator-container {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .post-featured-image {
    height: 300px;
  }
  
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  
  .author-image {
    margin: 0 auto 1.5rem;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .post-navigation a {
    max-width: 100%;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}
