/* ===== Color Variables ===== */
:root {
  /* Aluminum Theme Colors (for main content) */
  --aluminum-primary: #2563eb;
  --aluminum-primary-dark: #1d4ed8;
  --aluminum-secondary: #64748b;
  --aluminum-accent: #0ea5e9;
  --aluminum-light: #f8fafc;
  --aluminum-lighter: #f1f5f9;
  --aluminum-dark: #0f172a;
  --aluminum-text: #334155;
  --aluminum-text-light: #64748b;
  --aluminum-border: #e2e8f0;
  --aluminum-success: #10b981;
  --aluminum-warning: #f59e0b;
  --aluminum-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --aluminum-shadow: 0 2px 5px rgba(37, 99, 235, 0.15);
  --aluminum-shadow-hover: 0 5px 15px rgba(37, 99, 235, 0.2);

  /* Global/Header/Footer Theme Colors */
  --global-primary: #7c3aed;
  --global-primary-dark: #5b21b6;
  --global-accent: #f59e0b;
  --global-dark: #1e293b;
  --global-light: #faf5ff;
  --global-white: #ffffff;
  --global-text: #334155;
  --global-text-light: #64748b;
  --global-border: #e9d5ff;
  --global-success: #22c55e;
  --global-gradient-start: #8b5cf6;
  --global-gradient-end: #a855f7;
}

/* General Body and Container Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--aluminum-text);
  background-color: var(--aluminum-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: 1280px; /* Consolidated to the larger max-width */
  margin: 0 auto;
  padding: 0 2rem; /* Consolidated to the larger padding */
}

section {
  padding: 4rem 0;
}

h1,
h2,
h3,
h4 {
  color: var(--aluminum-dark);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

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

.list1,
ol {
  padding-left: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.list1 li {
  margin-bottom: 0.5rem;
}

/* ===== Header Styles ===== */
.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--global-dark); /* Uses global dark */
  text-decoration: none;
  margin-left: 5px;
}

.logo-icon {
  color: var(--global-primary); /* Uses global primary */
}

.logo svg {
  width: 36px;
  height: 36px;
  color: var(--global-primary); /* Uses global primary */
}

.nav-logo {
  text-decoration: none;
  color: var(--global-dark); /* Uses global dark */
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--global-text); /* Uses global text */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--global-primary); /* Uses global primary */
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--global-primary); /* Uses global primary */
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: transform 0.2s ease;
  margin-left: 1rem;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--global-primary-dark); /* Uses global primary dark */
}

/* Hamburger Menu */
.hamburger {
  display: none;
  padding: 1rem;
  cursor: pointer;
  background: transparent;
  border: 0;
  z-index: 1001;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  width: 100%;
  height: 2px;
  background: var(--global-dark); /* Uses global dark */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  width: 100%;
  height: 2px;
  background: inherit;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  top: 8px;
}

/* ===== Hero Section ===== */
.hero-section {
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #ffffff 50%, #f1f5f9 75%, #f8fafc 100%);
  overflow: hidden;
  text-align: center;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, transparent 40%, rgba(37, 99, 235, 0.05) 50%, transparent 60%);
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  width: 100%;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  margin-top: 5rem;
  color: var(--aluminum-dark);
}

.title-highlight {
  background: var(--aluminum-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--aluminum-text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
  padding: 2%;
}

/* ===== Calculator Section (Main Calculator) ===== */
.calculator-section {
  padding: 2rem 0;
  background: var(--aluminum-lighter);
  max-width: 1000px;
  margin: 0 auto;
}

.calculator-card {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--aluminum-shadow);
  border: 1px solid var(--aluminum-border);
}

.section-header {
  text-align: center;
  margin-bottom: 1rem;
  padding: 2%;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--aluminum-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--aluminum-text-light);
}

.calc-interface {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.calc-inputs {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  padding: 0px;
  margin: 0px;
}

.input-group label {
  font-weight: 600;
  color: var(--aluminum-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input,
.input-group select {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid var(--aluminum-border);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: var(--aluminum-text);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.input-wrapper input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--aluminum-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.unit {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--aluminum-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: none;
}

/* Custom arrow for select */
.input-group select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-16.1%208.1-3.8%204.9-4.9%2011-3.1%2016.9l132.6%20132.3c3.8%203.8%209%205.9%2014.3%205.9%205.3%200%2010.5-2.1%2014.3-5.9L287%2086.3c3.8-4.9%204.9-11%203.1-16.9z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.8em auto;
  padding-right: 2.5rem;
}

.calc-result {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.result-display {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.result-display::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--aluminum-gradient);
}

.result-icon {
  width: 50px;
  height: 50px;
  background: var(--aluminum-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.2rem;
}

.result-visual {
  max-width: 100px;
  height: auto;
  margin-bottom: 1rem;
  transition: opacity 0.3s ease;
}

.result-visual.hidden {
  opacity: 0;
  height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.result-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result-label {
  font-size: 0.9rem;
  color: var(--aluminum-text-light);
  font-weight: 500;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--aluminum-primary);
  transition: transform 0.3s ease;
}

.result-secondary {
  font-size: 1.1rem;
  color: var(--aluminum-text-light);
  font-weight: 500;
  transition: transform 0.3s ease;
}

.calc-actions {
  display: flex;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}

.calc-btn {
  background: var(--aluminum-gradient);
  color: white;
  border: none;
  padding: 1.25rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--aluminum-shadow);
  flex: 1;
  justify-content: center;
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--aluminum-shadow-hover);
}

.calc-btn.reset-btn {
  background: var(--aluminum-secondary);
  box-shadow: 0 10px 25px rgba(100, 116, 139, 0.15);
}

.calc-btn.reset-btn:hover {
  background: var(--aluminum-text);
  box-shadow: 0 20px 40px rgba(100, 116, 139, 0.2);
}

/* ===== Info Sections (How To Use / How To Calculate) ===== */
.info-section {
  padding: 2rem 0;
}

.info-section.bg-lighter {
  background: var(--aluminum-lighter);
}

.content-card {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--aluminum-shadow);
  border: 1px solid var(--aluminum-border);
  max-width: 1000px;
  margin: 0 auto;
}

.content-card h3 {
  font-size: 1.8rem;
  color: var(--aluminum-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.content-card p,
.content-card ul,
.content-card ol {
  font-size: 1rem;
  color: var(--aluminum-text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.content-card ul,
.content-card ol {
  padding-left: 1.5rem;
}

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

.formula-box {
  background: var(--aluminum-lighter);
  border: 1px solid var(--aluminum-border);
  border-left: 5px solid var(--aluminum-primary);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.formula-box p {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.1rem;
  color: var(--aluminum-dark);
  font-weight: 600;
}

.example-steps ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
}

.example-steps li {
  margin-bottom: 1rem;
}

.example-steps strong {
  color: var(--aluminum-primary);
}

.final-answer {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--aluminum-success);
}

.note-text {
  font-size: 0.9rem;
  color: var(--aluminum-text-light);
  margin-top: 2rem;
  padding-left: 0;
}

.note-text ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.note-text li {
  margin-bottom: 0.25rem;
}

/* ===== Related Calculators Section ===== */
.related-calculators-section {
  padding: 1rem 0;
  background: var(--aluminum-lighter);
  max-width: 1000px;
  margin: 0 auto;
}

.related-calc-grid-wrapper,
.related-calc-list-wrapper {
  margin-bottom: 3rem;
}

.related-calc-grid-wrapper h3,
.related-calc-list-wrapper h3 {
  font-size: 1.8rem;
  color: var(--aluminum-dark);
  margin-bottom: 2rem;
  text-align: center;
}

/* Style 1: Grid Layout */
.related-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.related-calc-card {
  background: white;
  border: 1px solid var(--aluminum-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-bottom: 4rem;
}

.related-calc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--aluminum-shadow);
  border-color: var(--aluminum-primary);
}

.related-calc-card .card-icon {
  width: 60px;
  height: 60px;
  background: var(--aluminum-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.related-calc-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--aluminum-dark);
  margin-bottom: 0.5rem;
}

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

/* New styles for "Try Calculator" link */
.card-link-wrapper {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--aluminum-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.card-link-wrapper:hover {
  color: var(--aluminum-primary-dark);
}

.card-link-arrow {
  transition: transform 0.3s ease;
}

.card-link-wrapper:hover .card-link-arrow {
  transform: translateX(5px);
}

/* Style 2: List Layout */
.related-calc-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.related-list-item {
  background: white;
  border: 1px solid var(--aluminum-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.related-list-item:hover {
  transform: translateX(5px);
  box-shadow: var(--aluminum-shadow);
  border-color: var(--aluminum-primary);
}

.related-list-item .item-icon {
  width: 45px;
  height: 45px;
  background: var(--aluminum-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.related-list-item .item-info {
  flex-grow: 1;
}

.related-list-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--aluminum-dark);
  margin-bottom: 0.25rem;
}

.related-list-item p {
  font-size: 0.85rem;
  color: var(--aluminum-text-light);
  margin-bottom: 0;
}

.related-list-item .item-arrow {
  color: var(--aluminum-primary);
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.related-list-item:hover .item-arrow {
  transform: translateX(5px);
}

/* Author Card Styles */
.author-section {
  padding: 2rem 0;
  background: var(--aluminum-light);
}

.author-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--aluminum-shadow);
  border: 1px solid var(--aluminum-border);
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.author-card-image {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--aluminum-primary);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1);
  margin: auto 0;
}

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

.author-card-content {
  flex-grow: 1;
  text-align: center;
}

.author-card-content h3 {
  font-size: 1.8rem;
  color: var(--aluminum-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.author-card-content .experience {
  font-size: 1rem;
  color: var(--aluminum-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.author-card-content .description {
  font-size: 0.95rem;
  color: var(--aluminum-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.author-social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.author-social-links a {
  color: var(--aluminum-secondary);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

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

/* ===== Footer ===== */
.footer {
  background: var(--global-dark); /* Uses global dark */
  color: #cbd5e0;
  padding-left: 3%;
  padding-right: 3%;
}

.footer-top {
  padding: 4rem 0;
  border-bottom: 1px solid #4a5568;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand .logo {
  color: var(--global-white); /* Uses global white */
}

.footer-text {
  color: var(--global-white); /* Uses global white */
  line-height: 1.6;
}

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

.social-links a {
  color: #cbd5e0;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--global-primary); /* Uses global primary */
}

.footer-col {
  text-align: left;
}

.footer-col h4 {
  color: var(--global-white); /* Uses global white */
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  margin-left: -40px;
}

.footer-col a {
  color: var(--global-light); /* Uses global light */
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--global-primary); /* Uses global primary */
}

.footer-bottom {
  padding: 2rem 0;
}

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

.copyright {
  color: var(--global-light); /* Uses global light */
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--global-primary); /* Uses global primary */
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .calc-interface {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 4rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    padding: 2rem;
    transition: left 0.3s ease;
  }

  .nav.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav-cta {
    margin-left: 0;
  }

  section {
    padding: 3rem 0;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-description {
    font-size: 1rem;
    padding: 2%;
  }
  .calc-inputs {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .calculator-card,
  .content-card {
    padding: 2rem;
  }
  .main-header .nav-links {
    display: none;
  }
  .header-content {
    justify-content: center;
  }
  .related-calc-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .calc-actions {
    flex-direction: row;
    margin-top: 2rem;
  }

  /* Responsive adjustments for author card */
  .author-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .author-card-content {
    text-align: center;
  }

  .author-social-links {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .author-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .author-card-content {
    text-align: left;
  }

  .author-social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  section {
    padding: 2rem 0;
  }

  .container {
    padding: 3%;
  }

  .hero-title {
    font-size: 2rem;
    margin-top: 5rem;
  }
  .calculator-card,
  .content-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  .content-card h3 {
    font-size: 1.5rem;
  }
  .formula-box p {
    font-size: 1rem;
  }
  .calc-btn {
    padding: 1rem 1.5rem;
  }
  .result-value {
    font-size: 2rem;
  }
  .result-secondary {
    font-size: 1rem;
  }
  .related-calc-grid {
    grid-template-columns: 1fr;
  }
  .related-list-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1rem;
  }
  .related-list-item .item-icon {
    margin-bottom: 0.5rem;
  }
  .related-list-item .item-arrow {
    align-self: flex-end;
  }
}
