:root {
  --ink: #202a35;
  --muted: #68717b;
  --paper: #faf9f6;
  --surface: #ffffff;
  --line: #dde1e2;
  --brand: #a21d2c;
  --brand-dark: #243747;
  --accent: #b72a3a;
  --accent-ink: #fff;
  --tint: #f2f5f5;
  --header-bg: #fff;
  --header-ink: #243747;
  --shadow: 0 16px 38px rgba(25, 41, 54, 0.08);
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Avenir Next", Avenir, "Segoe UI", var(--body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.65 var(--body); }
a { color: inherit; text-underline-offset: 0.18em; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site-imdiconferences { --brand: #1f6ba0; --brand-dark: #2a6b6d; --accent: #d54747; --accent-ink: #fff; --tint: #e5f3f5; }
.site-medicalpackagingindia { --brand: #0e715c; --brand-dark: #09473a; --accent: #9bd6c8; --accent-ink: #09473a; --tint: #e7f2ef; }
.shell { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: 0.7rem 1rem; background: #fff; color: #111; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 20; color: var(--header-ink); background: var(--header-bg); border-top: 4px solid var(--brand-dark); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.8rem; display: flex; align-items: center; gap: 1.6rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--header-ink); font: 800 1.02rem/1.1 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.65rem; background: var(--accent); color: var(--brand-dark); font-size: 0.85rem; }
.brand-logo-frame { display: grid; place-items: center; min-height: 3.8rem; max-width: 19rem; padding: 0.25rem 0; background: var(--header-bg); overflow: hidden; }
.brand-logo { display: block; width: auto; max-width: 100%; max-height: 3.25rem; object-fit: contain; }
.site-imdiconferences .brand-logo { width: min(20rem, 31vw); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 0.15rem; }
.site-nav a { padding: 0.4rem 0.65rem; border-bottom: 2px solid transparent; color: var(--header-ink); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--accent); color: var(--brand); background: transparent; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid #8f9498; border-radius: 0.55rem; padding: 0.5rem 0.75rem; background: transparent; color: var(--header-ink); font: 700 0.9rem var(--body); }

.hero { padding: clamp(3.75rem, 7vw, 5.75rem) 0 clamp(3.25rem, 6vw, 4.75rem); color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--line); }
.hero::after { display: none; }
.hero-inner { display: block; }
.hero-copy { max-width: 900px; }
.eyebrow { margin: 0 0 0.75rem; color: var(--brand); font-size: 0.73rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--brand); }
.hero h1, .page-heading h1 { margin: 0; font: 800 clamp(2.5rem, 5vw, 4.45rem)/1.03 var(--display); letter-spacing: -0.05em; text-wrap: balance; }
.hero-lead { max-width: 720px; margin: 1.25rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; border: 1px solid var(--brand); border-radius: 0.2rem; padding: 0.6rem 1rem; background: var(--brand); color: #fff; font: 800 0.8rem var(--body); letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; }
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button--accent { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.button--ghost { border-color: var(--brand-dark); background: transparent; color: var(--brand-dark); }
.hero-panel { max-width: 460px; margin-top: 2rem; padding: 1.35rem; border: 1px solid var(--line); border-radius: 0; background: #fff; }
.hero-panel strong { display: block; margin-bottom: 0.35rem; font: 800 1.15rem var(--display); }
.hero-panel p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.hero-panel-link { margin-top: 1rem; }

.section { padding: clamp(3.75rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--tint); }
.section--dark { color: #fff; background: var(--brand-dark); }
.section-heading { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-heading h2 { max-width: 650px; margin: 0; font: 800 clamp(2rem, 4vw, 3.25rem)/1.05 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.section-heading > p { max-width: 600px; margin: 0; color: var(--muted); }
.section--dark .eyebrow { color: var(--accent); }
.section--dark .section-heading > p { color: #c9d5df; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; min-height: 100%; padding: 1.35rem; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 0; background: var(--surface); box-shadow: none; transition: border-color 180ms ease, background 180ms ease; }
.card:hover { border-top-color: var(--accent); background: var(--tint); }
.card h3 { margin: 0.15rem 0 0.55rem; font: 750 1.15rem/1.3 var(--display); letter-spacing: -0.015em; }
.card h3 a { color: var(--brand-dark); text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.card .card-link { margin-top: auto; padding-top: 1.1rem; color: var(--brand); font-size: 0.82rem; font-weight: 850; text-decoration: none; }
.topic-block + .topic-block { margin-top: 2.5rem; }
.topic-title { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem; font: 800 1.35rem var(--display); color: var(--brand-dark); }
.topic-title::before { content: ""; width: 2.5rem; height: 0.25rem; border-radius: 1rem; background: var(--accent); }
.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.article-list a { display: block; height: 100%; padding: 0.95rem 1rem; border-left: 2px solid var(--line); background: rgba(255,255,255,0.72); color: var(--brand-dark); font-weight: 680; line-height: 1.35; text-decoration: none; }
.article-list a:hover { border-color: var(--accent); background: #fff; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0.8rem; }
.resource { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 5.2rem; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,0.15); border-radius: 0.85rem; color: #fff; background: rgba(255,255,255,0.07); font-weight: 750; text-decoration: none; }
.resource::after { content: "\2197"; color: var(--accent); font-size: 1.1rem; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 0.8rem; }
.logo-card { display: grid; place-items: center; min-height: 95px; padding: 1rem; border: 1px solid var(--line); border-radius: 0.85rem; background: #fff; color: var(--brand-dark); font-weight: 800; text-align: center; text-decoration: none; }
.logo-card img { max-height: 62px; width: auto; object-fit: contain; }

.page { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.page-heading { max-width: 850px; margin-bottom: 2.3rem; }
.article-heading { display: flex; justify-content: space-between; gap: 2rem; max-width: 100%; }
.article-heading > div { max-width: 850px; }
.author-card { display: flex; flex: 0 0 auto; align-items: center; gap: 0.7rem; max-width: 16rem; margin: 0; color: var(--muted); font-size: 0.88rem; font-weight: 750; text-align: right; }
.author-card img { width: 3.75rem; height: 3.75rem; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.author-card p { margin: 0; }
.page-heading h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); color: var(--brand-dark); }
.page-heading > p { max-width: 720px; margin: 1rem 0 0; color: var(--muted); font-size: 1.1rem; }
.prose { max-width: 800px; color: #36465a; }
.prose p { margin: 0 0 1.1rem; }
.prose h2 { color: var(--brand-dark); font: 800 1.7rem var(--display); }
.content-image-frame { width: min(100%, 800px); margin: 0 0 2rem; padding: clamp(0.7rem, 1.5vw, 1rem); border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: var(--shadow); }
.content-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 800px; margin: 0 0 2rem; }
.content-image { display: block; width: 100%; aspect-ratio: 4 / 3; margin: 0; border-radius: 0.75rem; box-shadow: var(--shadow); object-fit: cover; }
.content-image.content-image--feature { height: auto; max-height: min(28rem, 62vh); aspect-ratio: auto; border-radius: 0.6rem; box-shadow: none; object-fit: contain; background: #fff; }
.content-image-grid:has(.content-image:only-child) { grid-template-columns: minmax(0, 1fr); }
.breadcrumb, .tags { color: var(--muted); font-size: 0.86rem; }
.breadcrumb a { color: var(--brand); font-weight: 750; text-decoration: none; }
.listing, .related, .page-resources { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.listing h2, .related h2, .page-resources h2 { margin: 0 0 1.2rem; font: 800 1.8rem var(--display); color: var(--brand-dark); }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.tile { padding: 1.3rem; border: 1px solid var(--line); border-radius: 0.85rem; background: #fff; }
.tile h3 { margin: 0 0 0.5rem; font: 750 1.1rem var(--display); }
.tile h3 a { color: var(--brand-dark); text-decoration: none; }
.tile p { margin: 0.35rem 0; color: var(--muted); }
.tag-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.2rem; }
.tag-filters button { border: 1px solid var(--brand); border-radius: 99px; padding: 0.5rem 0.8rem; background: #fff; color: var(--brand-dark); font: 750 0.82rem var(--body); cursor: pointer; }
.tag-filters button.active { background: var(--brand); color: #fff; }
.page-link-list { display: grid; gap: 0.65rem; max-width: 800px; padding: 0; list-style: none; }
.page-link-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; border-radius: 0.7rem; background: var(--tint); color: var(--brand-dark); font-weight: 750; text-decoration: none; }
.page-link-list a::after { content: "\2192"; color: var(--brand); }

.advertisements { padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-block: 1px solid var(--line); background: var(--tint); }
.advertisements-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.35rem; }
.advertisements-heading .section-label { margin: 0; }
.advertisements-heading h2 { margin: 0; color: var(--brand-dark); font: 800 clamp(1.7rem, 3vw, 2.5rem)/1 var(--display); letter-spacing: -0.035em; }
.section-label { color: var(--muted); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.ad-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ad-slot { min-height: 112px; border: 1px solid var(--line); border-radius: 0; background: #fff; overflow: hidden; box-shadow: none; transition: border-color 180ms ease; }
.ad-slot:hover { border-color: var(--accent); }
.ad-link { display: block; height: 112px; color: var(--ink); text-decoration: none; }
.ad-slot img { width: 100%; height: 100%; padding: 0.75rem; object-fit: contain; }
.site-footer { padding: 2.8rem 0; background: #101b2b; color: #c8d3df; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; align-items: start; }
.footer-title { color: #fff; font: 800 1rem var(--display); }
.footer-note { max-width: 520px; margin: 0.35rem 0 0; font-size: 0.88rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 0.9rem; }
.footer-links a { color: #e2ebf2; font-size: 0.86rem; text-decoration: none; }

@media (max-width: 820px) {
  .shell { width: min(100% - 2rem, 1180px); }
  .header-inner { min-height: 4.4rem; flex-wrap: wrap; padding-block: 0.55rem; }
  .brand-logo-frame { min-height: 3.5rem; max-width: min(16rem, 68vw); padding: 0.25rem 0.45rem; }
  .brand-logo { max-height: 3.1rem; }
  .site-imdiconferences .brand-logo { width: min(15rem, 62vw); }
  .menu-toggle { display: block; }
  .site-nav { display: none; order: 3; width: 100%; margin: 0; padding-bottom: 0.5rem; }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 0.7rem; }
  .hero-inner, .section-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero-panel { max-width: 520px; }
  .article-list { grid-template-columns: 1fr; }
  .article-heading { display: block; }
  .author-card { margin-top: 1.2rem; text-align: left; }
  .ad-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { display: grid; }
  .footer-links { justify-content: start; }
}

@media (max-width: 480px) {
  .ad-track { grid-template-columns: 1fr; }
  .content-image-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
