:root {
  
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary: #0f172a;
  --accent: #10b981; 
  --background: #f8fafc;
  --surface: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;

  
  --container-width: 1200px;
  --header-height: 70px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-primary: 0 10px 15px -3px rgba(37, 99, 235, 0.2);

  
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}




* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s eas;
}


.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}


.site-header {
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--text-main);
}


.hero {
  padding: 30px 0;
  text-align: center;
  background: radial-gradient(
    circle at center,
    var(--primary-light) 0%,
    transparent 70%
  );
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}


.nav-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-toggle-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: scale(1.05);
}

.nav-toggle-btn svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6); 
  backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: var(--surface);
  z-index: 1000;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.nav-drawer.active {
  transform: translateX(0);
}

.nav-drawer-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.nav-drawer-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

.nav-close-btn {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-close-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.1);
}

.nav-close-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
}

.nav-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  background: var(--background); 
}


.nav-drawer-content::-webkit-scrollbar {
  width: 6px;
}
.nav-drawer-content::-webkit-scrollbar-track {
  background: transparent;
}
.nav-drawer-content::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 20px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: var(--surface);
  border: 1px solid transparent;
}

.nav-item a:hover {
  background-color: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}


.nav-item a.active {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: transparent;
}


.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-link {
  margin-top: 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


.tool-banner {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  margin-top: 40px;
  box-shadow: var(--shadow-md);
  display: block;
}

.page-header {
  padding: 60px 0 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.header-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.tool-card.tool-card-image {
  padding: 0;
  overflow: hidden;
}

.tool-cover-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.tool-card-content {
  padding: 24px;
  width: 100%;
}

.tool-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  background: var(--primary-light);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.tool-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.tool-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tool-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin: 40px auto;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

.tool-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.tool-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.tool-form-group {
  margin-bottom: 20px;
}

.tool-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.tool-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--background);
  color: var(--text-main);
  transition: border-color 0.2s;
}

.tool-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.tool-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--background);
  color: var(--text-main);
  transition: border-color 0.2s;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.tool-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.result-box {
  margin-top: 32px;
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0;
}


.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb-item:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--border);
  font-size: 0.8em;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}


.site-footer {
  background-color: var(--secondary);
  color: #fff;
  border-top: none;
  padding: 40px 0 0;
  margin-top: 50px;
  font-size: 0.95rem;
}

.footer-top {
  padding-bottom: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
}


.footer-brand h4 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand span {
  color: var(--primary);
}

.footer-brand p {
  color: #94a3b8; 
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 300px;
}


.footer-links h5 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: #cbd5e1; 
  transition: all 0.2s ease;
  position: relative;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}


.footer-tags-container {
  margin-bottom: 40px;
  text-align: center;
  background: rgba(0, 0, 0, 0.3); 
  padding: 40px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-tags-header {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.footer-tag {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.footer-tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}


.bookmark-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  text-align: left;
}

.bookmark-text {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-weight: 500;
  display: block;
}

.bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
  justify-content: center;
}

.bookmark-btn:hover {
  background: var(--primary-dark);
}

.bookmark-icon {
  font-size: 1.1rem;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.share-btn {
  height: auto; 
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  padding: 0; 
}

.share-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-btn svg {
  width: 20px;
  height: 20px;
  fill: white; 
  display: block; 
}

.share-twitter {
  background: #000000;
  border: 1px solid #333;
}
.share-facebook {
  background: #1877f2;
}
.share-linkedin {
  background: #0a66c2;
}
.share-whatsapp {
  background: #25d366;
}


.share-copy {
  background: #475569;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


.footer-bottom {
  background: rgba(0, 0, 0, 0.5); 
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: #64748b;
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: #64748b;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: white;
}


@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }
}

@media (max-width: 768px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .hero h1 {
    font-size: 2.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

.content-section-divider {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.content-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
}

.content-text {
  margin-bottom: 15px;
  color: #334155; 
  line-height: 1.6;
}


.content-list {
  margin-bottom: 30px;
  padding-left: 20px;
  line-height: 1.6;
  color: #334155;
}

.content-list li {
  margin-bottom: 10px;
}


.content-example-box {
  background-color: var(--background);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 30px;
  border: 1px solid var(--border);
}

.content-example-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 10px;
}

.content-example-text {
  margin-bottom: 0px;
  line-height: 1.6;
  color: #334155;
}


.content-accent {
  color: #0284c7; 
}

.content-link {
  color: #0284c7;
  text-decoration: underline;
}


.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  display: block;
  margin-bottom: 5px;
  color: #334155;
  font-weight: 700; 
}

.faq-answer {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}
