/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --primary: #e63946;
  --primary-foreground: #ffffff;
  --destructive: #ef4444;
  --card: #ffffff;
  --card-foreground: #0a0a0a;

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --container-max-width: 1200px;
  --container-padding: 1rem;
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

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

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

.logo-image {
  height: 8rem;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

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

/* Main content */
.main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Article header */
.article-header {
  margin-bottom: 2rem;
}

.badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  white-space: nowrap;
}

.badge-vulnerability {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--destructive);
}

.badge-vulnerability:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

.badge-outline {
  border: 1px solid var(--border);
  background-color: transparent;
}

.badge-icon {
  width: 0.75rem;
  height: 0.75rem;
}

.article-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-icon {
  width: 1rem;
  height: 1rem;
}

/* Info cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.card-content {
  padding: 1rem;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

/* Article content */
.article-content {
  max-width: none;
}

.section {
  margin-bottom: 2rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.section p {
  color: rgba(10, 10, 10, 0.8);
  margin-bottom: 1rem;
}

.section ul {
  list-style: none;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.section li {
  position: relative;
  padding-left: 1.5rem; /* Space for the custom bullet */
  margin-bottom: 0.75rem; /* Increase spacing between items */
  color: var(--muted-foreground);
}

.section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em; /* Adjust for vertical alignment */
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--primary);
  border-radius: 50%;
}

/* Code blocks */
.code-block {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.code-block pre {
  padding: 1rem;
  margin: 0;
  font-family: "Fira Code", "Monaco", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

.code-block code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* Download card */
.download-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1.5rem 0;
}

.download-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.download-icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

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

.download-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.download-link:hover {
  color: rgba(230, 57, 70, 0.85);
}

.external-icon {
  width: 0.75rem;
  height: 0.75rem;
}

/* Separator */
.separator {
  height: 1px;
  background-color: var(--border);
  margin: 2rem 0;
}

/* Contact feature section */
#contactFeature {
  background-color: var(--muted);
  padding: 3rem 0;
  margin-top: 4rem;
}

#contactFeature .row {
  width: 100%;
}

#contactFeature .col-lg-12 {
  width: 100%;
}

/* Updated to enforce a 3-column grid layout on desktop */
.contact_feature {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.single_contact_feaured {
  background-color: var(--card);
  padding: 2rem 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.single_contact_feaured:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single_contact_feaured i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.single_contact_feaured h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.single_contact_feaured p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0;
}

.contact_feature_link {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact_feature_link:hover {
  color: rgba(230, 57, 70, 0.85);
  text-decoration: underline;
}

/* Footer */
#footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 2rem 0;
  text-align: center;
}

#footer .row {
  width: 100%;
}

#footer .col-lg-12 {
  width: 100%;
}

.footer_center {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.footer_center p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
    gap: 1rem;
  }

  .nav {
    gap: 1rem;
  }

  .article-title {
    font-size: 1.875rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  @media (max-width: 992px) {
  .contact_feature {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact_feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

  .single_contact_feaured {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .main {
    padding: 1rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact_feature {
    gap: 1rem;
  }
}
