/* Global Resets & Variables */
:root {
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --text-main: #111827;
  --text-sub: #4B5563;
  --border: #E5E7EB;
  --primary: #47B88D;
  --primary-light: #EAF4EE;
  --primary-hover: #3AA37B;
  --accent: #F59E0B;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --bg: #111827;
  --surface: #1F2937;
  --text-main: #F9FAFB;
  --text-sub: #9CA3AF;
  --border: #374151;
  --primary-light: rgba(71, 184, 141, 0.15);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.5;
  overflow-x: hidden;
}

* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }

/* Typography */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }
p { margin: 0; }

/* Container utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Informational Pages Styles */
.page-hero {
  text-align: center;
  padding: 60px 24px 40px;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero h1 { margin-bottom: 16px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -1px; }
.page-hero p { color: var(--text-sub); font-size: 18px; line-height: 1.6; }
.page-badge { display: inline-block; padding: 6px 16px; background: var(--primary-light); color: var(--primary); border-radius: 99px; font-weight: 600; margin-bottom: 16px; font-size: 14px; letter-spacing: 0.5px; }

.content {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 40px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.content h2 { margin: 40px 0 16px; font-size: 26px; color: var(--primary); }
.content h2:first-child { margin-top: 0; }
.content h3 { margin: 24px 0 12px; font-size: 20px; color: var(--primary-hover); }
.content p, .content ul { margin-bottom: 16px; color: var(--text-sub); line-height: 1.7; font-size: 16px; }
.content ul { padding-left: 24px; }
.content li { margin-bottom: 8px; }

/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 24px 20px; /* Reduced vertical padding */
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px; /* Reduced */
}
.pip {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(71, 184, 141, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(71, 184, 141, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(71, 184, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(71, 184, 141, 0); }
}
.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 8px; /* Reduced vertical margin */
  line-height: 1.1;
  letter-spacing: -1.5px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-sub);
  margin: 0 auto 16px; /* Reduced bottom margin */
  max-width: 650px;
}
.search-wrap {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.search-wrap .si {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-sub);
  pointer-events: none;
}
#search {
  width: 100%;
  padding: 20px 20px 20px 56px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 99px;
  background-color: var(--surface);
  color: var(--text-main);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
#search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(71, 184, 141, 0.1);
}
.search-hint {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 16px;
}
.search-hint kbd {
  background-color: var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-main);
  font-weight: 600;
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 36px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.stat-label { font-size: 15px; color: var(--text-sub); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* Filter Pills */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  padding: 0 24px;
  flex-wrap: wrap;
}
.filter-label { font-size: 15px; color: var(--text-sub); font-weight: 600; margin-right: 8px; }
.cat-pill {
  padding: 10px 20px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.cat-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.cat-pill.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(71, 184, 141, 0.3);
}

/* Sections */
.pop-section, .cat-section {
  max-width: 1400px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.sec-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.sec-title { font-size: 24px; font-weight: 700; color: var(--text-main); }
.sec-link { font-size: 15px; color: var(--primary); font-weight: 600; transition: color 0.2s; }
.sec-link:hover { color: var(--primary-hover); text-decoration: underline; }

.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.cat-header-left { display: flex; align-items: center; gap: 16px; }
.cat-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  background-color: var(--primary-light);
}
.cat-title { font-size: 24px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.cat-sub { font-size: 15px; color: var(--text-sub); }
.cat-count { font-size: 14px; font-weight: 600; color: var(--text-sub); background: var(--surface); padding: 6px 16px; border-radius: 99px; border: 1px solid var(--border); }

/* Tool Grid & Cards */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}
.tool-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), #3AA37B); opacity: 0; transition: opacity 0.3s;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.tool-card:hover::before { opacity: 1; }
.tc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.tc-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}
.tool-card:hover .tc-icon {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--primary);
  color: white;
}
.tc-icon.mono { font-family: 'DM Mono', monospace; font-size: 16px; font-weight: 700; }
.hot-badge {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tc-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}
.tc-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item:hover { border-color: var(--primary); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  outline: none;
}
.faq-icon {
  font-size: 24px;
  font-weight: 400;
  transition: transform 0.3s;
  color: var(--primary);
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 24px 24px;
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
  display: none;
}
.faq-item.active .faq-a { display: block; animation: fadeDown 0.3s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* No Results */
#no-results {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-sub);
  padding: 60px 24px;
  display: none;
}
.hidden { display: none !important; }

/* Footer */
footer {
  background-color: var(--surface);
  border-top: 4px solid var(--primary);
  padding: 80px 24px 24px;
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 40px;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo-mark { width: 36px; height: 36px; background-color: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.footer-logo-mark svg { width: 20px; height: 20px; }
.footer-logo-name { font-size: 20px; font-weight: 700; color: var(--text-main); }
.footer-brand-desc { font-size: 15px; color: var(--text-sub); margin-bottom: 24px; line-height: 1.6; max-width: 300px; }

.footer-col-title { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 24px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 14px; }
.footer-col a { font-size: 15px; color: var(--text-sub); transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }

.newsletter-p { font-size: 15px; color: var(--text-sub); margin-bottom: 16px; line-height: 1.6; }
.newsletter-form { display: flex; flex-direction: row; gap: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 99px; padding: 4px; transition: border-color 0.2s; }
.newsletter-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(71,184,141,0.15); }
.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  width: 100%;
}

.newsletter-btn {
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 99px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.newsletter-btn:hover { background: var(--primary-hover); transform: scale(1.02); }

.footer-divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); max-width: 1200px; margin: 0 auto 32px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.footer-btm-links { justify-content: center; }
.footer-copy { font-size: 15px; font-weight: 500; color: var(--text-sub); letter-spacing: 0.5px; }
.footer-btm-links { display: flex; gap: 24px; }
.footer-btm-links a { font-size: 14px; color: var(--text-sub); transition: color 0.2s; }
.footer-btm-links a:hover { color: var(--primary); }
.footer-badge { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-sub); background: var(--bg); padding: 8px 16px; border-radius: 99px; border: 1px solid var(--border); }
.gdot { width: 8px; height: 8px; background: #10B981; border-radius: 50%; }

/* Responsive Adjustments */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats { gap: 40px; padding: 30px 20px; }
  .tool-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 600px) {
  .hero h1 { font-size: clamp(20px, 6vw, 32px); white-space: nowrap; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
  .cat-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stats { flex-wrap: nowrap; gap: 8px; justify-content: space-between; padding: 24px 12px; }
  .stat-num { font-size: 18px; margin-bottom: 2px; }
  .stat-label { font-size: 9px; letter-spacing: 0; }
}

/* Hide unselected categories on dark mode pills */
[data-theme="dark"] .cat-pill.active { color: white; }

/* Global Mobile Content Padding */
@media (max-width: 768px) {
  .content { padding: 20px !important; margin: 0 auto 40px; border-radius: 0; box-shadow: none; }
  .page-hero { padding: 40px 20px 30px; }
  .seo-content { padding: 15px !important; margin: 20px auto; max-width: 100%; border-radius: 0; box-shadow: none; }
}

/* Header Search Bar (Universal Expandable) */
.header-search-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-search-icon {
    position: absolute;
    width: 18px;
    height: 18px;
    color: #555;
    pointer-events: none;
    z-index: 2;
}
[data-theme="dark"] .header-search-icon {
    color: #fff;
}
#search {
    position: absolute;
    right: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: transparent;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#search:hover {
    background: #f9f9f9;
}
[data-theme="dark"] #search:hover {
    background: #333;
}
#search::placeholder {
    color: transparent;
}
/* SEO Content Section */
.seo-content {
    max-width: 1000px;
    margin: 40px auto;
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    color: var(--text-main);
    box-sizing: border-box;
}
.seo-content h2 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 16px;
}
.seo-content h3 {
    color: var(--primary-hover);
    font-size: 18px;
    margin: 20px 0 12px;
}
.seo-content p, .seo-content li {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--text-sub);
}
#search:focus {
    width: 240px;
    height: 36px;
    border-radius: 6px;
    padding: 10px 16px 10px 36px;
    border-color: var(--primary);
    background: var(--surface);
    color: var(--text-main);
    cursor: text;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
[data-theme="dark"] #search:focus {
    background: #2a2a2a;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
#search:focus::placeholder {
    color: #999;
}

@media (max-width: 600px) {
    #search:focus {
        position: fixed;
        top: 57px; /* Sits below the mobile header */
        left: 16px;
        width: calc(100vw - 32px);
        height: 54px;
        border-radius: 12px;
        border: 1px solid var(--primary); /* Maintain focus border */
        padding: 10px 20px;
        z-index: 1000;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    [data-theme="dark"] #search:focus {
        box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    }
}

/* Scroll to Top with Progress */
.progress-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(71, 184, 141, 0.2);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 200ms linear;
  background: var(--surface);
}
.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.progress-wrap::after {
  position: absolute;
  font-family: 'DM Sans', sans-serif;
  content: '↑';
  text-align: center;
  line-height: 46px;
  font-size: 20px;
  color: var(--text-main);
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 1;
  transition: all 200ms linear;
}
.progress-wrap:hover::after {
  color: var(--primary);
}
.progress-wrap svg path {
  fill: none;
}
.progress-wrap svg.progress-circle path {
  stroke: var(--primary);
  stroke-width: 4;
  box-sizing: border-box;
  transition: all 200ms linear;
}
[data-theme="dark"] .progress-wrap {
  background: var(--bg);
}


/* Custom Sejda-style Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    font-family: 'DM Sans', sans-serif;
    position: relative;
    z-index: 100;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
}
.logo-mark {
    width: 40px;
    height: 40px;
    background-color: #47B88D;
    color: white;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links > a, .nav-drop-btn {
    text-decoration: none;
    color: #555;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.2s;
    cursor: pointer;
}
.nav-links > a:hover, .nav-drop-btn:hover {
    color: #47B88D;
}
.nav-dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
    margin-bottom: -16px; /* Extends hover area to prevent menu disappearing */
}
.nav-drop-btn {
    display: flex;
    align-items: center;
    gap: 4px;
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eaeaea;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 24px;
    border-radius: 8px;
    display: none;
    gap: 40px;
    z-index: 1000;
    min-width: 600px;
}
.nav-dropdown:hover .mega-menu {
    display: flex;
}
.mega-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mega-title {
    font-size: 12px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.mega-col a {
    color: #444;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mega-col a:hover {
    color: #47B88D;
}
.theme-toggle {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: #f9f9f9;
    border-color: #ddd;
}
.theme-toggle svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
}
[data-theme="dark"] nav, [data-theme="dark"] .mega-menu {
    background: #1e1e1e;
    border-color: #333;
}
[data-theme="dark"] .nav-logo {
    color: #fff;
}
[data-theme="dark"] .nav-links > a, [data-theme="dark"] .nav-drop-btn {
    color: #ccc;
}
[data-theme="dark"] .mega-col a {
    color: #bbb;
}
[data-theme="dark"] .theme-toggle {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}
/* Hide one icon based on theme */
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
h1 em {
    color: #47B88D;
    font-style: normal;
}
.cat-icon-wrap {
    background-color: #EAF4EE;
    color: #47B88D;
}


/* Sticky Header & Responsiveness */
nav {
    position: sticky !important;
    top: 0;
    z-index: 9999 !important;
}

/* Language Dropdown Styles */
.lang-dropdown {
    position: relative;
    display: inline-block;
    padding: 8px 0;
}
.lang-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    padding: 0;
}
.lang-btn:hover {
    color: #47B88D;
}
.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 8px 0;
    display: none;
    flex-direction: column;
    min-width: 120px;
    z-index: 1000;
}
.lang-dropdown:hover .lang-menu {
    display: flex;
}
.lang-menu a {
    padding: 8px 16px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
}
.lang-menu a:hover {
    background: #f5f5f5;
    color: #47B88D;
}
[data-theme="dark"] .lang-menu {
    background: #1e1e1e;
    border-color: #333;
}
[data-theme="dark"] .lang-menu a {
    color: #ccc;
}
[data-theme="dark"] .lang-menu a:hover {
    background: #2a2a2a;
}
[data-theme="dark"] .lang-btn {
    color: #ccc;
}


/* Mobile Adjustments Cleaned */
@media (max-width: 768px) {
    nav {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 16px !important;
        flex-wrap: nowrap !important;
    }
    .nav-left {
        width: auto !important;
        margin-bottom: 0 !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
    }
    .nav-logo {
        font-size: 16px !important;
        white-space: nowrap !important;
        position: static !important;
    }
    .logo-mark {
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
    }
    .nav-links {
        width: auto !important;
        margin-top: 0 !important;
        padding-bottom: 0 !important;
        overflow: visible !important;
    }
    .nav-links > a {
        display: none !important;
    }
    .nav-right {
        position: static !important;
        margin-left: auto;
    }
    .lang-btn {
        font-size: 0; /* Hide EN text on mobile to save space */
    }
    .lang-btn svg {
        margin-right: 0;
    }
    .nav-dropdown {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    .mega-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        flex-direction: column !important;
        padding: 20px !important;
        gap: 24px !important;
        box-sizing: border-box !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
        display: none !important;
        border-radius: 0 0 12px 12px !important;
    }
    .nav-dropdown.active .mega-menu {
        display: flex !important;
    }
    /* Prevent hover from firing on mobile so click works properly */
    .nav-dropdown:hover .mega-menu {
        display: none !important;
    }
    .nav-dropdown.active:hover .mega-menu {
        display: flex !important;
    }
}


/* Sejda Style Mega Menu Grid */
.mega-grid {
    display: flex;
    gap: 40px;
}
.mega-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.mega-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mega-menu-close {
    display: none;
}
.mega-title {
    font-size: 11px;
    font-weight: 700;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.mega-group a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    margin: -6px -8px;
    border-radius: 4px;
    font-weight: 500;
}
.mega-group a:hover {
    background: #f4f6f8;
}
.m-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #f0fdf4;
    border-radius: 6px;
    font-size: 14px;
}
[data-theme="dark"] .mega-group a {
    color: #ddd;
}
[data-theme="dark"] .mega-group a:hover {
    background: #2a2a2a;
}
[data-theme="dark"] .m-icon {
    background: #1a3322;
}

@media (max-width: 768px) {
    .mega-menu {
        padding-top: 56px !important;
    }
    .mega-menu-close {
        display: flex !important;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #777;
        cursor: pointer;
        background: #f5f5f5;
        border-radius: 50%;
    }
    .mega-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 24px 12px !important;
    }
    .mega-col {
        gap: 24px !important;
    }
    .mega-group a {
        font-size: 13px !important;
        padding: 4px 6px !important;
        margin: -4px -6px !important;
        gap: 8px !important;
    }
    .m-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}


/* Full Window Mega Menu */
.nav-dropdown:hover .mega-menu {
    display: none !important; /* Disable hover opening */
}
.nav-dropdown.active .mega-menu {
    display: flex !important; /* Only open via active class */
}

.mega-menu {
    position: fixed !important;
    top: 65px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100vh - 65px) !important;
    min-width: 0 !important;
    max-height: none !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 80px 40px 40px 40px !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
    display: none !important;
    flex-direction: column !important;
}

.mega-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 40px !important;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.mega-menu-close {
    display: flex !important;
    position: absolute !important;
    top: 24px !important;
    right: 32px !important;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #555;
    cursor: pointer;
    background: #f0f0f0;
    border-radius: 50%;
    z-index: 100000;
    transition: background 0.2s;
}
.mega-menu-close:hover {
    background: #e0e0e0;
}

.mega-group a {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

[data-theme="dark"] .mega-menu {
    background: #111111 !important;
}
[data-theme="dark"] .mega-menu-close {
    background: #222 !important;
    color: #ddd !important;
}
[data-theme="dark"] .mega-menu-close:hover {
    background: #333 !important;
}

@media (max-width: 768px) {
    .mega-menu {
        padding: 80px 16px 20px 16px !important;
    }
    .mega-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px 12px !important;
    }
    .mega-menu-close {
        top: 16px !important;
        right: 16px !important;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}


/* Google Translate Customization */
body { top: 0 !important; }
.skiptranslate iframe { display: none !important; }
#google_translate_element select {
    font-family: 'DM Sans', sans-serif;
    padding: 6px 12px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    background: #f9f9f9;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}
[data-theme="dark"] #google_translate_element select {
    background: #2a2a2a;
    border-color: #444;
    color: #ccc;
}


/* Globe Icon Translator Styling */
.lang-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
}
.lang-wrap:hover {
    background: #f9f9f9;
}
.globe-icon {
    width: 18px;
    height: 18px;
    color: #555;
    position: absolute;
    pointer-events: none;
    z-index: 1;
}
#google_translate_element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
    overflow: hidden;
}
/* Force the injected select to cover the whole button to receive clicks */
#google_translate_element select {
    width: 100px;
    height: 40px;
    cursor: pointer;
    margin-left: -20px;
}
[data-theme="dark"] .lang-wrap {
    background: #2a2a2a;
    border-color: #444;
}
[data-theme="dark"] .globe-icon {
    color: #fff;
}
[data-theme="dark"] .lang-wrap:hover {
    background: #333;
}

/* =========================================
   Contact Page High-End Styling
========================================= */
.contact-wrap {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}
.contact-info {
    padding-right: 20px;
}
.contact-info h2 {
    font-size: 32px;
    color: var(--text-main);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
}
.contact-info p {
    color: var(--text-sub);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.info-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.info-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-value {
    color: var(--text-sub);
    font-size: 15px;
    line-height: 1.5;
}

.form-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.form-card h3 {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 24px;
    font-weight: 700;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    background: var(--bg);
    color: var(--text-main);
    transition: all 0.2s;
    box-sizing: border-box;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(71, 184, 141, 0.15);
}
.form-group textarea {
    height: 120px;
    resize: vertical;
}
.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(71, 184, 141, 0.3);
}
.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(71, 184, 141, 0.4);
}
.success-msg {
    margin-top: 16px;
    padding: 12px;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
}

@media (max-width: 768px) {
    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-info {
        padding-right: 0;
    }
    .form-card {
        padding: 24px;
    }
}


/* =========================================
   Standardized Tool Buttons
========================================= */
button, .btn, .gst-btn, .add-product-btn, .newsletter-btn {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    border-radius: 8px !important;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-sizing: border-box;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

/* Default Theme Color for Primary Buttons (only if they don't have a specific bg color override) */
.btn:not(.btn-reset):not(.btn-stop):not(.btn-copy):not(.btn-visit):not(.btn-whatsapp):not(.btn-upload),
.gst-btn:not(.btn-reset):not(.btn-share),
.add-product-btn {
    background-color: var(--primary);
    color: #ffffff;
}

.btn:hover:not(:disabled), .gst-btn:hover, .add-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 184, 141, 0.3);
    opacity: 1 !important;
}
.btn:active, .gst-btn:active, .add-product-btn:active {
    transform: translateY(0);
}

/* Secondary / Reset Buttons */
.btn-reset {
    background-color: #EF4444 !important;
    color: #ffffff !important;
}
.btn-reset:hover {
    background-color: #DC2626 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* Ensure mobile selects and inputs render correctly */
input, select {
    -webkit-appearance: none;
    appearance: none;
}
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%2347B88D%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 10px auto;
}

/* Global Reset Button Style */
.btn-reset {
    background-color: #ef4444 !important;
    color: white !important;
}
.btn-reset:hover {
    background-color: #dc2626 !important;
}

/* Global reset button styling */
.btn-reset, .reset-btn {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: white !important;
}
.btn-reset:hover, .reset-btn:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
}
