:root {
  --primary: #40E0D0;
  --secondary: #9200C5;
  --neutral: #E8E4EC;
  --gradient-primary: linear-gradient(135deg, #40E0D0 0%, #48D4C4 100%);
  --gradient-secondary: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  color: #222;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* =========================
   PREMIUM HEADER - FIXED ALIGNMENT
   ========================= */

.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(103, 76, 196, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(103, 76, 196, 0.15);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
  position: relative;
}

.logo-wrapper:hover {
  transform: translateY(-1px);
}

.logo-image {
  height: 36px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo-wrapper:hover .logo-image {
  transform: scale(1.05);
}

.header-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 11px 44px 11px 16px;
  border: 1.5px solid #E8E4EC;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #fff;
}

.header-search input:focus {
  outline: none;
  border-color: #40E0D0;
  box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.1);
}

.header-search input:hover {
  border-color: #9200C5;
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
  width: 18px;
  height: 18px;
  transition: opacity 0.2s ease;
}

.header-search input:not(:placeholder-shown) ~ .search-icon {
  opacity: 0;
  visibility: hidden;
}

#headerSearchClear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(146, 0, 197, 0.1);
  border: none;
  color: #9200C5;
  cursor: pointer;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  transition: all 0.2s ease;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

#headerSearchClear:hover {
  background: #9200C5;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

#headerSearchClear:active {
  transform: translateY(-50%) scale(0.95);
}

#searchDropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #E8E4EC;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

#searchResults {
  padding: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.search-result-item:hover {
  background: rgba(64, 224, 208, 0.08);
  border-color: #40E0D0;
  transform: translateX(4px);
}

.search-result-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: #9200C5;
  transition: all 0.2s ease;
}

.search-result-item:hover .search-result-icon {
  color: #40E0D0;
  transform: scale(1.1);
}

.search-result-icon svg {
  width: 100%;
  height: 100%;
}

.search-result-content {
  flex: 1;
}

.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
  transition: color 0.2s ease;
}

.search-result-item:hover .search-result-title {
  color: #9200C5;
}

.search-result-desc {
  font-size: 12px;
  color: #666;
}

#noSearchResults {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
  display: none;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  position: relative;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.logo-wrapper:hover .logo-text::after {
  width: 100%;
}

.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.main-nav a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.main-nav a::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-secondary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.main-nav a:hover {
  color: var(--secondary);
  background: rgba(103, 76, 196, 0.06);
}

.main-nav a:hover::before {
  width: 60%;
}

.main-nav a.active {
  color: var(--secondary);
  background: rgba(103, 76, 196, 0.1);
  font-weight: 600;
}

.header-cta {
  background: var(--gradient-secondary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(103, 76, 196, 0.2);
  white-space: nowrap;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(103, 76, 196, 0.3);
}

.header-cta:active {
  transform: translateY(0);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--secondary);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
  border-top: 1px solid #e0e0e0;
  padding: 40px 0 24px;
  font-size: 13px;
  color: #555;
  margin-top: 80px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-secondary);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: 6px;
  position: relative;
}

.footer-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.footer-links a:hover {
  color: #9200C5;
  background: rgba(103, 76, 196, 0.05);
}

.footer-links a:hover::before {
  width: 80%;
}

.footer-links span {
  color: #ccc;
  font-weight: 300;
}

.footer-disclaimer {
  max-width: 900px;
  line-height: 1.7;
  font-size: 12px;
  color: #666;
  background: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.site-footer .copyright {
  font-size: 12px;
  color: #999;
  font-weight: 400;
  padding-top: 12px;
  border-top: 1px solid #e6e6e6;
  width: 100%;
  max-width: 900px;
}

/* =========================
   FAQ ANIMATIONS
   ========================= */

.faq-item {
  border-bottom: 1px solid var(--neutral);
  padding: 18px 0;
  transition: all 0.2s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  cursor: pointer;
  margin: 0;
  position: relative;
  padding-right: 30px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  transition: color 0.3s ease;
}

.faq-item h3:hover {
  color: var(--secondary);
}

.faq-item h3::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--secondary);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 300;
  line-height: 1;
}

.faq-item.open h3::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-item.open h3 {
  color: var(--secondary);
}

.faq-item p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              margin-top 0.4s ease,
              padding-top 0.4s ease;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  color: #555;
  line-height: 1.7;
}

.faq-item.open p {
  opacity: 1;
  margin-top: 12px;
  padding-top: 4px;
}

.faq-item h3:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 6px;
}

.faq-item h3:focus:not(:focus-visible) {
  outline: none;
}

/* =========================
   RESPONSIVE MOBILE
   ========================= */

@media (max-width: 768px) {
  .header-container {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .header-search {
    max-width: none;
    flex: 1;
  }

  .header-search input {
    padding: 9px 40px 9px 12px;
    font-size: 13px;
  }

  #headerSearchClear {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  .logo-wrapper {
    flex-shrink: 0;
  }

  .logo-image {
    height: 32px;
  }

  .logo-text {
    font-size: 20px;
  }

  .main-nav {
    display: none;
  }
  
  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 16px;
    gap: 4px;
  }

  .header-cta {
    font-size: 13px;
    padding: 8px 16px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .site-footer {
    padding: 32px 0 20px;
    margin-top: 60px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    padding: 4px 10px;
    font-size: 12px;
  }

  .footer-disclaimer {
    font-size: 11.5px;
    padding: 14px 18px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .main-nav {
    gap: 4px;
  }

  .main-nav a {
    font-size: 14px;
    padding: 8px 12px;
  }
}

h1, h2, h3 {
  color: #111;
}

/* =========================
   RELATED CALCULATORS
   ========================= */

.related-calculators {
  margin-top: 60px;
  padding: 40px 28px;
  background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
  border-radius: 14px;
  border: 1px solid #e8e8e8;
}

.related-calculators h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.related-calculators > p {
  text-align: center;
  font-size: 15px;
  color: #666;
  margin-bottom: 28px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.related-card {
  background: #fff;
  border: 1px solid #e8e4ec;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: #40E0D0;
  box-shadow: 0 8px 24px rgba(64, 224, 208, 0.15);
}

.related-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(146, 0, 197, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9200C5;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.related-icon svg {
  width: 24px;
  height: 24px;
}

.related-card:hover .related-icon {
  background: #40E0D0;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(64, 224, 208, 0.35);
}

.related-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #9200C5;
  transition: color 0.2s ease;
}

.related-card:hover h3 {
  color: #40E0D0;
}

.related-card p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.related-cta {
  text-align: center;
  padding-top: 10px;
}

.btn-all-calculators {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(103, 76, 196, 0.25);
}

.btn-all-calculators:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(103, 76, 196, 0.35);
}

@media (max-width: 768px) {
  .related-calculators {
    padding: 30px 20px;
    margin-top: 40px;
  }
  
  .related-calculators h2 {
    font-size: 24px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .related-card {
    padding: 20px;
  }
  
  .related-icon {
    width: 42px;
    height: 42px;
  }
}

/* =========================
   HOMEPAGE STYLES - MODERN DESIGN
   ========================= */

.hero-section {
  text-align: center;
  padding: 40px 20px 32px;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  border-radius: 16px;
  margin-bottom: 50px;
  box-shadow: 0 10px 40px rgba(146, 0, 197, 0.2);
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 400;
}

.calc-section {
  margin-bottom: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* HOMEPAGE CALCULATOR GRID */
body > .container > .calc-section .calculator-grid,
.hero-section ~ .calc-section .calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

/* HOMEPAGE CALC CARDS ONLY */
body > .container > .calc-section .calc-card,
.hero-section ~ .calc-section .calc-card {
  background: #fff;
  border: 2px solid #E8E4EC;
  border-radius: 12px;
  padding: 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  aspect-ratio: 1;
  justify-content: center;
  overflow: hidden;
  gap: 16px;
  padding: 24px 20px;
}

body > .container > .calc-section .calc-card:hover,
.hero-section ~ .calc-section .calc-card:hover {
  transform: translateY(-8px);
  border-color: #40E0D0;
  box-shadow: 0 12px 32px rgba(64, 224, 208, 0.2);
  background: linear-gradient(to bottom, #ffffff 0%, rgba(64, 224, 208, 0.02) 100%);
}

/* ICON - NO BACKGROUND, CLEAN DESIGN */
body > .container > .calc-section .calc-icon,
.hero-section ~ .calc-section .calc-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9200C5;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background: none;
}

body > .container > .calc-section .calc-icon svg,
.hero-section ~ .calc-section .calc-icon svg {
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 2px 4px rgba(146, 0, 197, 0.1));
}

body > .container > .calc-section .calc-card:hover .calc-icon,
.hero-section ~ .calc-section .calc-card:hover .calc-icon {
  color: #40E0D0;
  transform: scale(1.15);
}

body > .container > .calc-section .calc-card:hover .calc-icon svg,
.hero-section ~ .calc-section .calc-card:hover .calc-icon svg {
  filter: drop-shadow(0 4px 8px rgba(64, 224, 208, 0.3));
}

/* TEXT - NO BACKGROUND, CLEAN TYPOGRAPHY */
body > .container > .calc-section .calc-card-text,
.hero-section ~ .calc-section .calc-card-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

body > .container > .calc-section .calc-card h3,
.hero-section ~ .calc-section .calc-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.3;
  transition: color 0.2s ease;
}

body > .container > .calc-section .calc-card:hover h3,
.hero-section ~ .calc-section .calc-card:hover h3 {
  color: #9200C5;
}

body > .container > .calc-section .calc-card p,
.hero-section ~ .calc-section .calc-card p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

/* SEO CONTENT */
.seo-content {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 2px solid #E8E4EC;
}

.seo-content h2 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #9200C5 0%, #A020D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 40px 0 20px 0;
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.seo-content ol,
.seo-content ul {
  margin-left: 24px;
  margin-bottom: 24px;
}

.seo-content li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: #444;
}

.seo-content strong {
  color: #9200C5;
  font-weight: 600;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.feature-box {
  background: linear-gradient(135deg, rgba(146, 0, 197, 0.05) 0%, rgba(160, 32, 208, 0.05) 100%);
  border: 2px solid #E8E4EC;
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s ease;
}

.feature-box:hover {
  border-color: #40E0D0;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(64, 224, 208, 0.15);
}

.feature-box h3 {
  font-size: 18px;
  font-weight: 600;
  color: #9200C5;
  margin-bottom: 12px;
  margin-top: 0;
}

.feature-box p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .hero-section {
    padding: 32px 20px 28px;
    margin-bottom: 40px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 15px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .section-desc {
    font-size: 15px;
  }
  
  body > .container > .calc-section .calculator-grid,
  .hero-section ~ .calc-section .calculator-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
  
  body > .container > .calc-section .calc-card,
  .hero-section ~ .calc-section .calc-card {
    padding: 20px 16px;
    gap: 12px;
  }
  
  body > .container > .calc-section .calc-icon,
  .hero-section ~ .calc-section .calc-icon {
    width: 48px;
    height: 48px;
  }
  
  body > .container > .calc-section .calc-card h3,
  .hero-section ~ .calc-section .calc-card h3 {
    font-size: 15px;
  }
  
  body > .container > .calc-section .calc-card p,
  .hero-section ~ .calc-section .calc-card p {
    font-size: 12px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-box {
    padding: 24px;
  }
  
  .seo-content {
    margin-top: 60px;
    padding-top: 40px;
  }
  
  .seo-content h2 {
    font-size: 24px;
  }
  
  .seo-content p {
    font-size: 15px;
  }
  
  .calc-section {
    margin-bottom: 60px;
  }
}

@media (max-width: 480px) {
  body > .container > .calc-section .calculator-grid,
  .hero-section ~ .calc-section .calculator-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  body > .container > .calc-section .calc-card,
  .hero-section ~ .calc-section .calc-card {
    padding: 18px 14px;
  }
}

/* SMOOTH ANIMATIONS */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ACCESSIBILITY */
body > .container > .calc-section .calc-card:focus,
.hero-section ~ .calc-section .calc-card:focus {
  outline: 3px solid #40E0D0;
  outline-offset: 2px;
}

body > .container > .calc-section .calc-card:focus:not(:focus-visible),
.hero-section ~ .calc-section .calc-card:focus:not(:focus-visible) {
  outline: none;
}

/* PRINT STYLES */
@media print {
  .hero-section {
    background: none;
    color: #000;
  }
  
  .calc-card {
    border: 1px solid #000;
    page-break-inside: avoid;
  }
}


/* Social icon row */
.footer-social {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-social-btn svg {
  width: 20px;
  height: 20px;
}
.footer-social-btn:hover {
  background: var(--gradient-secondary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(146, 0, 197, 0.25);
}

/* Made in Bharat — own line, bold */
.made-in-bharat {
  font-size: 12px;
  color: #888;
  font-weight: 700;
}


/* ── 1. HEADER LAYOUT TWEAK ────────────────────────────────────────
   The current .header-container has no nav. Adding nav shifts the
   flex order: logo | nav | search | toggle.
   We only add flex-shrink:0 to the nav so the search stays flexible.
   .header-container, .header-search, .logo-wrapper already handle
   the rest perfectly via existing rules.
   ──────────────────────────────────────────────────────────────────*/
.main-nav {
  /* existing rule already sets display:flex; gap:8px; align-items:center */
  flex-shrink: 0;   /* prevent nav from squishing on mid-width screens */
}

/* ── 2. HAMBURGER ICON ANIMATED BARS ───────────────────────────────
   SVG lines animate to X when .open is on the toggle button.
   Uses transform on the individual <line> elements.
   ──────────────────────────────────────────────────────────────────*/
.mobile-menu-toggle svg line {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.3s ease;
  transform-origin: center;
}
/* When toggle has .open: bar1 rotates to \, bar2 fades, bar3 rotates to / */
.mobile-menu-toggle.open .bar1 {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu-toggle.open .bar2 {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-toggle.open .bar3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── 3. MOBILE NAV OVERLAY ─────────────────────────────────────────
   Existing .main-nav.active rule uses position:absolute and works,
   but needs these polish additions (no conflict with existing rule).
   ──────────────────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .main-nav.active {
    /* existing rule covers layout; we only add visual polish */
    border-top: 2px solid var(--neutral);
    border-bottom: 2px solid var(--neutral);
    animation: navSlideDown 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .main-nav.active a {
    /* full-width tap targets on mobile */
    width: 100%;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
  }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 4. ARTICLES PAGE — COMING SOON ───────────────────────────────
   Scoped entirely to .articles-page so nothing else is touched.
   ──────────────────────────────────────────────────────────────────*/
.articles-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  text-align: center;
}

.articles-coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  background: rgba(64, 224, 208, 0.1);
  border: 1px solid rgba(64, 224, 208, 0.35);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #007b73;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 28px;
}
.articles-coming-badge svg {
  width: 13px; height: 13px;
  stroke: var(--primary);
}

.articles-page h1 {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 16px;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}

.articles-page .articles-subtitle {
  font-size: 17px;
  color: #555;
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 48px;
}

/* Preview grid — placeholder cards shown on coming-soon page */
.articles-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 auto 52px;
  max-width: 860px;
}

.article-preview-card {
  background: #fff;
  border: 1px solid var(--neutral);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform    0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  opacity: 0.55;   /* dimmed — content not live yet */
  pointer-events: none;
}
.article-preview-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg,
    rgba(146, 0, 197, 0.08) 0%,
    rgba(64, 224, 208, 0.10) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card-img svg {
  width: 36px; height: 36px;
  stroke: rgba(146, 0, 197, 0.3);
}
.article-card-body {
  padding: 16px 18px 20px;
}
.article-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--secondary);
  margin-bottom: 8px;
  -webkit-text-fill-color: var(--secondary);
}
.article-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
  margin: 0 0 8px;
}
.article-card-meta {
  font-size: 12px;
  color: #aaa;
}

/* Notify form */
.articles-notify {
  background: linear-gradient(135deg,
    rgba(146, 0, 197, 0.05) 0%,
    rgba(64, 224, 208, 0.06) 100%);
  border: 1.5px solid var(--neutral);
  border-radius: 14px;
  padding: 36px 32px;
  max-width: 520px;
  margin: 0 auto;
}
.articles-notify h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
  background: none;
  -webkit-text-fill-color: #1a1a1a;
}
.articles-notify p {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px;
  line-height: 1.6;
}
.notify-form {
  display: flex;
  gap: 10px;
}
.notify-form input[type="email"] {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--neutral);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: #222;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.notify-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.12);
}
.notify-form input[type="email"]::placeholder { color: #bbb; }
.notify-btn {
  padding: 11px 22px;
  background: var(--gradient-secondary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(146, 0, 197, 0.25);
}
.notify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(146, 0, 197, 0.32);
}

/* Mobile adjustments for articles page */
@media (max-width: 768px) {
  .articles-page h1        { font-size: 28px; }
  .articles-page .articles-subtitle { font-size: 15px; }
  .articles-preview-grid   { grid-template-columns: 1fr; gap: 14px; }
  .articles-notify         { padding: 24px 18px; }
  .notify-form             { flex-direction: column; }
}
@media (max-width: 480px) {
  .articles-preview-grid   { grid-template-columns: 1fr; }
}

/* ── 5. FUTURE ARTICLES GRID ───────────────────────────────────────
   Ready-to-use classes for when real articles go live.
   3-col grid with image+heading cards. Not used yet.
   ──────────────────────────────────────────────────────────────────*/
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0 auto;
  max-width: 1100px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--neutral);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform    0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(64, 224, 208, 0.16);
}

.article-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.article-card-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg,
    rgba(146, 0, 197, 0.07) 0%,
    rgba(64, 224, 208, 0.09) 100%);
}
.article-card-content {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--secondary);
  -webkit-text-fill-color: var(--secondary);
  margin-bottom: 8px;
}
.article-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px;
  line-height: 1.4;
  transition: color 0.2s;
}
.article-card:hover h3 { color: var(--secondary); }
.article-card p {
  font-size: 13.5px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 14px;
  flex: 1;
}
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #aaa;
  border-top: 1px solid var(--neutral);
  padding-top: 12px;
  margin-top: auto;
}
.article-read-more {
  color: var(--secondary);
  font-weight: 600;
  font-size: 13px;
  -webkit-text-fill-color: var(--secondary);
}

@media (max-width: 900px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 580px) {
  .articles-grid { grid-template-columns: 1fr; gap: 16px; }
}