:root {
  --primary: #0277BD;
  --primary-dark: #01579B;
  --primary-light: #B3E5FC;
  --accent: #00BFA5;
  --accent-dark: #00897B;
  --text: #212121;
  --text-secondary: #616161;
  --bg: #FFFFFF;
  --bg-light: #F5F7FA;
  --bg-card: #FFFFFF;
  --border: #E0E0E0;
  --success: #43A047;
  --warning: #F9A825;
  --danger: #E53935;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 6px;
  --max-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  line-height: 1.3;
  color: var(--primary-dark);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.8rem; margin-top: 2rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.6rem; margin-top: 1.5rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

img { max-width: 100%; height: auto; }

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

/* HEADER / NAV */
.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  height: 60px;
}

.logo {
  font-family: 'Roboto Slab', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo:hover { text-decoration: none; color: var(--primary-dark); }

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.2rem;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
}

/* HERO */
.hero {
  background: var(--bg);
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

/* SEARCH */
.search-box {
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 3rem;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  outline: none;
}

.search-box input:focus {
  border-color: var(--primary);
}

.search-box .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* SECTIONS */
section {
  padding: 2rem 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

/* CARDS — horizontal style */
.drug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.drug-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.drug-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.drug-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
}

.drug-card-body {
  flex: 1;
}

.drug-card-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.drug-card-body h3 a {
  color: var(--primary-dark);
}

.drug-card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.drug-card-meta {
  font-size: 0.82rem;
  color: var(--accent-dark);
  font-weight: 600;
}

/* CATEGORY CHIPS */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.chip {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 20px;
  color: var(--primary);
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  font-family: 'Lato', sans-serif;
}

.chip:hover, .chip.active {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* CTA BUTTON — ghost/outline */
.cta-button {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
}

.cta-button:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.cta-button-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.cta-button-primary:hover {
  background: var(--primary);
  color: #fff;
}

.cta-center {
  text-align: center;
  margin: 2rem 0;
}

/* DRUG INFO BOX */
.drug-info-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
}

.drug-info-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
}

.drug-info-box dt {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.drug-info-box dd {
  font-size: 0.95rem;
  color: var(--text);
}

/* ANALOGS TABLE */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.analogs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.analogs-table thead {
  background: var(--primary);
  color: #fff;
}

.analogs-table th {
  padding: 0.7rem 0.8rem;
  text-align: left;
  font-weight: 600;
  font-family: 'Roboto Slab', serif;
  font-size: 0.88rem;
  white-space: nowrap;
}

.analogs-table td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.analogs-table tbody tr:hover {
  background: var(--primary-light);
}

.analogs-table .price {
  color: var(--success);
  font-weight: 700;
  white-space: nowrap;
}

.analogs-table .price-high {
  color: var(--danger);
}

.analogs-table .rx-badge {
  display: inline-block;
  background: var(--warning);
  color: #333;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* FAQ — two columns */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.faq-item h3 {
  font-size: 1rem;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
}

/* DISCLAIMER */
.disclaimer {
  background: #FFF3E0;
  border: 1px solid #FFB74D;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: #E65100;
  margin: 2rem 0;
  line-height: 1.5;
}

.disclaimer-icon {
  font-weight: 700;
  margin-right: 0.3rem;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 0.8rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 0.3rem;
  color: var(--border);
}

/* CONTENT PROSE */
.content {
  max-width: 900px;
  margin: 0 auto;
}

.content h2 {
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.4rem;
}

.content ul, .content ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.content li {
  margin-bottom: 0.4rem;
}

/* RSY PLACEHOLDER */
.rsy-block {
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 1.5rem 0;
}

/* FOOTER — single row */
.site-footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.footer-nav a {
  color: var(--primary-light);
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

.footer-disclaimer {
  width: 100%;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 0.8rem;
  margin-top: 0.5rem;
}

/* MOBILE */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  .hero h1 { font-size: 1.7rem; }

  .burger { display: block; }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--primary);
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.open { display: flex; }

  .nav-menu a {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .drug-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .drug-info-box dl {
    grid-template-columns: 1fr;
  }

  .drug-info-box dt {
    margin-top: 0.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .analogs-table {
    font-size: 0.82rem;
  }

  .analogs-table th,
  .analogs-table td {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero { padding: 2rem 0 1.5rem; }
  .hero h1 { font-size: 1.4rem; }
  .container { padding: 0 0.75rem; }
  .drug-card { flex-direction: column; }
}

/* TELEMEDICINE CTA */
.telemedicine-cta {
  background: linear-gradient(135deg, var(--primary-light), #E0F7FA);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.telemedicine-cta h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.telemedicine-cta p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* INTERNAL LINKS BLOCK */
.related-drugs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.related-drugs a {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 15px;
  font-size: 0.85rem;
  color: var(--primary);
}

.related-drugs a:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
