/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Albert+Sans:wght@400;600;700&family=Bebas Neue&display=swap');

/* Base font settings */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

/* Header styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
}

h2 {
  margin-top: 4rem;
}

:root {
  --neon-green: #c1ff00;
  --dark-gray: #333333;
  --light-gray: #f5f5f5;
  --medium-gray: #999999;
  --white: #ffffff;
  --blue: #0074cd;
  --accent-orange: #ff6b00;
}


body {
  color: var(--dark-gray);
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

header {
  padding: 0.5rem 10% 0rem 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0074cd;
}


#logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  display: flex;
  align-items: center;
  color: var(--white);
}
#logo a {
  text-decoration: none;
  color: var(--white);
}
#logo svg {
  margin-right: 10px;
} 

#logo svg path, 
#logo svg g {
  fill: var(--white) !important;
}
#logo span {
  vertical-align: super;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  position: relative;
}

nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.8;
}

.search-container {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  margin-left: auto;
}

.search-container input {
  border: none;
  outline: none;
  background: none;
  padding: 0.2rem;
  font-family: 'Open Sans', sans-serif;
  width: 200px;
}

.search-container button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  color: var(--dark-gray);
}

.search-container button:hover {
  color: #00cd89;
}

main {
  padding: 2rem 10%;
}

/* Layout */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  margin: 2rem 0;
}

.main-content {
  grid-column: 1;
}

.sidebar {
  grid-column: 2;
  background-color: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  height: fit-content;
}

.sidebar h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--dark-gray);
}

.sidebar table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

.sidebar table th,
.sidebar table td {
  padding: 0.5rem;
  border: 1px solid var(--medium-gray);
  font-size: 0.9rem;
}

/* Responsive layout */
@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    grid-column: 1;
    position: static;
  }
}

.ns{
  text-align: center;
}
.ns .nuun {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}
.ns .number {
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
}
.ns .unit {
  font-size: 12px;
  margin-left: 4px;
  margin-top: 12px;
}
.ns .desc {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--medium-gray);
  line-height: 1rem;
  max-width: 80%;
  margin: 0 auto;
  display: block;
}


#reading-info {
  text-align: center;
  margin-bottom: 15px;
}

#reading-value {
  font-size: 1.5em;
  font-weight: bold;
}

#reading-category {
  font-size: 1.1em;
  font-weight: bold;
}

/* Chart styles */
.chart-container {
  position: relative;
  width: 80%;
  max-width: 600px;
  margin: 20px auto;
  /* Center the chart */
}

.legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
}

/* Dropdown Menu Styles */
.dropdown {
  position: static !important;
}

.dropdown-trigger {
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.dropdown-content {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  min-width: 1200px;
  top: 60px !important;
  display: none;
  background-color: var(--white);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 15px;
  z-index: 1000;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.dropdown:hover .dropdown-content {
  display: grid;
}

.menu-section {
  padding: 8px 36px;
  position: relative;
}


.menu-section h3 {
  color: black;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
  padding-bottom: 0px;
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-items a {
  color: #0074cd !important;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 3px 0;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 15px;
}

.menu-items a::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #0074cd;
  opacity: 0.7;
}

.menu-items a:hover {
  color: #005ba0 !important;
}

.menu-item {
  color: var(--dark-gray);
  font-size: 0.9rem;
  padding: 1px 0;
  padding-left: 15px;
  position: relative;
}

.menu-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #0074cd;
  opacity: 0.7;
}

.menu-item a {
  display: inline !important;
  padding: 0 !important;
  padding-left: 0 !important;
}

.menu-item a::before {
  display: none;
}

/* Responsive Dropdown */
@media (max-width: 1400px) {
  .dropdown-content {
    min-width: 900px;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .dropdown-content {
    min-width: 700px;
  }
}

@media (max-width: 768px) {
  .dropdown-content {
    min-width: 90vw;
  }
}

/* FAQ Styles */
.faq-section h3 {
    color: var(--blue);
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-section h3:first-of-type {
    margin-top: 1rem;
}

/* Factor Grid Styles */
.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0;
}

.factor-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.factor-icon {
    width: 60px;
    height: 60px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.factor-icon i {
    color: white;
    font-size: 1.8rem;
}

.factor-content strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.factor-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Enhanced Sidebar Styles */
.sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 70px
}
h1 {
  margin: -10px 0 30px 0;
}

h1 .title-main {
  display: block;
}

h1 .title-sub {
  display: block;
  font-size: 0.5em;
  font-weight: 400;
  color: var(--medium-gray);
  margin-top: 0.2em;
}

.sidebar h2 {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 5px;
    font-size: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.sidebar > div:first-child h2 {
    margin-top: 0;
}

.toc-list, .resource-list, .tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li, .resource-list li {
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.toc-list a, .resource-list a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}

.toc-list a:hover, .resource-list a:hover {
    color: #007bff;
}

.resource-list i {
    margin-right: 2px;
    color: #007bff;
    width: 20px;
}

.tips-list li {
    margin-bottom: 3px;
    padding-left: 14px;
    position: relative;
    font-size: 0.9rem;
}

.tips-list li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

.sidebar a {
    color: #0000EE;
    text-decoration: underline;
}

main a[href^="#"] {
    text-decoration: dashed underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .factors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .factors-grid {
        grid-template-columns: 1fr;
    }
}

.bp-ranges {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
}

.bp-ranges th,
.bp-ranges td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid white;
}

/* Estilo mejorado para los encabezados */
.bp-ranges thead {
    border-bottom: px solid #2c3e50;
}

.bp-ranges th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Colores específicos para cada rango */
.bp-ranges tr.low {
    background-color: #e3f2fd; /* Azul muy claro */
}

.bp-ranges tr.normal {
    background-color: #e8f5e9; /* Verde muy claro */
}

.bp-ranges tr.elevated {
    background-color: #fff3e0; /* Naranja muy claro */
}

.bp-ranges tr.stage1 {
    background-color: #ffebee; /* Rojo muy claro */
}

.bp-ranges tr.stage2 {
    background-color: #fce4ec; /* Rosa más intenso */
}

.bp-ranges tr.emergency {
    background-color: #fcd4d0; /* Rojo más intenso */
}

/* Efectos hover */
.bp-ranges tr:hover {
    filter: brightness(95%);
}

/* Responsive design */
@media screen and (max-width: 600px) {
    .bp-ranges {
        font-size: 14px;
    }
    
    .bp-ranges th,
    .bp-ranges td {
        padding: 8px 10px;
    }
}

/* Basic Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table th {
    background-color: var(--blue);
    color: var(--white);
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #0065b4;
}

table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
}

table tbody tr:nth-child(even) {
    background-color: var(--light-gray);
}

table tbody tr:hover {
    background-color: #f0f7ff;
}

/* Responsive table */
@media screen and (max-width: 600px) {
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 8px 10px;
    }
}

/* Footer Styles */
.site-footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 2rem 10%;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-section li {
  margin: 0;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-section a:hover {
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Responsive footer */
@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 5% 1rem 5%;
  }
  
  .footer-section ul {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Myth Cards Styles */
.myths-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.myth-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.myth-header {
    background: var(--blue);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.myth-header i {
    font-size: 1.5rem;
    color: var(--neon-green);
    margin-top: 0.2rem;
}

.myth-header h3 {
    color: var(--white) !important;
    margin: 0 !important;
    font-size: 1.2rem;
    line-height: 1.4;
}

.myth-content {
    padding: 1.5rem;
    background: var(--white);
}

.myth-content p {
    margin: 0;
    line-height: 1.6;
}

.myth-content strong {
    color: var(--blue);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .myths-container {
        gap: 1.5rem;
    }

    .myth-header {
        padding: 1rem;
    }

    .myth-content {
        padding: 1rem;
    }
}

/* Resources Page Styles */
.resources-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 2rem 0;
}

.resource-section {
    background: var(--white);
    border-radius: 12px;
}

.resource-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card i {
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 1rem;
}

.resource-card h3 {
    color: var(--dark-gray);
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.resource-card p {
    color: var(--medium-gray);
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.resource-link {
    display: inline-block;
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--blue);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.resource-link:hover {
    background: var(--blue);
    color: var(--white);
}

/* Responsive adjustments for resources */
@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        padding: 1.2rem;
    }
}

/* Blood Pressure Form Styles */
.bp-form-container {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
}

.bp-check-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--dark-gray);
  font-size: 1rem;
}

.form-group input {
  padding: 0.8rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 116, 205, 0.1);
}

.form-group input::placeholder {
  color: var(--medium-gray);
}

.btn-primary {
  background-color: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  margin-top: 1rem;
}

.btn-primary:hover {
  background-color: #005ba0;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.form-help {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.form-help p {
  margin: 0.5rem 0;
}

/* Alert styles for error messages */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.alert-danger {
  background-color: #fff3f3;
  border: 1px solid #ffcdd2;
  color: #d32f2f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bp-form-container {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .form-group input {
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
  }

  .btn-primary {
    padding: 0.8rem;
    font-size: 1rem;
  }
}

/* Breadcrumb Navigation */
.breadcrumbs {
  padding: 0.8rem 0;
  margin-bottom: 1rem;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.9rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  padding: 0 0.5rem;
  color: var(--medium-gray);
}

.breadcrumb-item a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #005ba0;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--medium-gray);
}

@media (max-width: 480px) {
  .breadcrumb-list {
    font-size: 0.8rem;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    padding: 0 0.3rem;
  }
}