/* mobile overflow guard */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }
/* India Pharma Outlook Replica — main styles */
:root {
  --ipo-green: #009639;
  --ipo-green-dark: #007a2e;
  --ipo-black: #111;
  --ipo-text: #1a1a1a;
  --ipo-muted: #666;
  --ipo-line: #e5e5e5;
  --ipo-bg: #f4f7f9;
  --ipo-white: #fff;
  --ipo-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --ipo-container: 1200px;
  --ipo-font: "Mukta", "Roboto", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ipo-font);
  color: var(--ipo-text);
  background: var(--ipo-bg);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ipo-green); text-decoration: none; }
a:hover { color: var(--ipo-green-dark); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 700; line-height: 1.25; }

.ipo-container {
  width: min(100% - 32px, var(--ipo-container));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.ipo-header { background: var(--ipo-white); }
.ipo-header-top { padding: 10px 0; }
.ipo-logo .custom-logo-link { display: inline-block; }
.ipo-logo .custom-logo,
.ipo-logo img {
  max-height: 72px;
  width: auto;
  background: transparent !important;
}
.ipo-logo-text {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  color: var(--ipo-green);
  font-weight: 800;
}
.ipo-logo-india { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; letter-spacing: 1px; }
.ipo-logo-pharma { font-family: Georgia, serif; font-size: 42px; line-height: 1; }
.ipo-logo-outlook { font-family: Georgia, serif; font-style: italic; font-size: 20px; margin-bottom: 6px; }

.ipo-nav-primary {
  background: var(--ipo-green);
  position: relative;
}
.ipo-nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
}
.ipo-menu-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1;
}
.ipo-menu-primary > li > a {
  display: block;
  padding: 12px 14px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.ipo-menu-primary > li.current-menu-item > a,
.ipo-menu-primary > li > a:hover {
  background: #fff;
  color: var(--ipo-green);
  border-radius: 4px 4px 0 0;
}
.ipo-menu-primary .sub-menu {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 200px;
  box-shadow: var(--ipo-shadow);
  z-index: 50;
}
.ipo-menu-primary > li { position: relative; }
.ipo-menu-primary > li:hover > .sub-menu { display: block; }
.ipo-menu-primary .sub-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--ipo-text);
  border-bottom: 1px solid var(--ipo-line);
}

.ipo-search-toggle {
  background: #fff;
  border: 0;
  color: var(--ipo-green);
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  margin-left: auto;
  border-radius: 2px;
  line-height: 1;
}
.ipo-nav-toggle {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
}
.ipo-nav-toggle { display: none; flex-direction: column; gap: 4px; }
.ipo-nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff;
}

.ipo-search-panel {
  display: none;
  background: #007a2e;
  padding: 10px 0;
}
.ipo-search-panel.is-open { display: block; }
.ipo-search-panel form,
.ipo-search-form {
  display: flex;
  gap: 0;
}
.ipo-search-panel input,
.ipo-search-form input {
  flex: 1;
  border: 0;
  padding: 10px 12px;
  font: inherit;
}
.ipo-search-panel button,
.ipo-search-form button {
  background: var(--ipo-black);
  color: #fff;
  border: 0;
  padding: 0 16px;
  cursor: pointer;
}

.ipo-nav-secondary {
  background: var(--ipo-black);
}
.ipo-menu-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ipo-menu-secondary a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}
.ipo-menu-secondary a:hover { color: #b6f5cb; }

/* Headings */
.ipo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  border-bottom: 2px solid var(--ipo-line);
  padding-bottom: 8px;
}
.ipo-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  margin: 0;
  color: var(--ipo-text);
}
.ipo-dot {
  width: 14px; height: 14px;
  border: 3px solid var(--ipo-green);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.ipo-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--ipo-green);
  border-radius: 50%;
}
.ipo-view-all {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* Hero */
.ipo-hero { padding: 18px 0 8px; }
.ipo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr) minmax(220px, 0.65fr);
  gap: 12px;
  align-items: stretch;
  min-height: 430px;
}
.ipo-hero-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 430px;
}
.ipo-card-overlay { position: relative; overflow: hidden; border-radius: 4px; height: 100%; background: #111; }
.ipo-card-overlay .ipo-card-link { display: block; height: 100%; color: #fff; }
.ipo-card-media { position: relative; height: 100%; min-height: 180px; }
.ipo-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.ipo-card-overlay:hover img { transform: scale(1.05); }
.ipo-card-grad {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 35%, rgba(0,0,0,.82) 100%);
  pointer-events: none;
}
.ipo-card-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0; padding: 14px 16px;
  color: #fff; font-size: 22px; font-weight: 700;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.ipo-hero-side .ipo-card-title { font-size: 15px; padding: 10px 12px; line-height: 1.3; }
.ipo-hero-slider {
  min-width: 0;
  height: 100%;
  min-height: 430px;
}
.ipo-hero-slider .swiper,
.ipo-hero-slider .swiper-wrapper,
.ipo-hero-slider .swiper-slide,
.ipo-hero-main {
  height: 100%;
  min-height: 430px;
}
.ipo-hero-slider .swiper { overflow: hidden; border-radius: 4px; }
.ipo-hero-slider .swiper-button-prev,
.ipo-hero-slider .swiper-button-next {
  color: #fff !important;
  background: rgba(0,0,0,.35);
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
}
.ipo-current-issue {
  background: #fff;
  border-radius: 4px;
  padding: 12px;
  box-shadow: var(--ipo-shadow);
  display: flex;
  flex-direction: column;
  min-height: 430px;
  align-self: stretch;
}
.ipo-current-issue .ipo-heading { margin-bottom: 10px; flex: 0 0 auto; }
.ipo-current-issue .swiper {
  flex: 1 1 auto;
  width: 100%;
  min-height: 340px;
  overflow: hidden;
  position: relative;
}
.ipo-current-issue .swiper-wrapper { height: auto !important; }
.ipo-current-issue .swiper-slide {
  height: auto !important;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.ipo-mag-cover {
  display: block;
  text-align: center;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}
.ipo-mag-cover img {
  width: 100%;
  max-width: 240px;
  height: auto;
  /* min-height removed: conflicts with aspect-ratio on mobile */

  margin: 0 auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--ipo-shadow);
  background: #f0f0f0;
  display: block;

  max-width: 100%;
  overflow: hidden;
}
.ipo-mag-caption {
  display: block; margin-top: 10px;
  font-size: 13px; font-weight: 600; color: var(--ipo-text);
  line-height: 1.35;
}
.ipo-current-issue .swiper-button-prev,
.ipo-current-issue .swiper-button-next {
  top: 42%;
  color: var(--ipo-green) !important;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  width: 30px !important;
  height: 30px !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
}

/* Sections */
.ipo-section { padding: 18px 0; }
.ipo-split {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
}
.ipo-col-main, .ipo-col-side {
  background: transparent;
}

.ipo-news-feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.ipo-news-feat-card { min-height: 240px; }
.ipo-news-feat-card .ipo-card-title { font-size: 17px; }
.ipo-news-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--ipo-shadow);
  height: 100%;
}
.ipo-news-media img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  transition: transform 0.3s ease;
}
.ipo-news-card:hover .ipo-news-media img { transform: scale(1.04); }
.ipo-news-body { padding: 12px 14px 16px; }
.ipo-news-body h3 { font-size: 16px; margin: 0 0 8px; }
.ipo-news-body h3 a { color: var(--ipo-text); }
.ipo-news-body h3 a:hover { color: var(--ipo-green); }
.ipo-excerpt { margin: 0 0 8px; color: var(--ipo-muted); font-size: 14px; }
.ipo-list-meta { margin: 0; font-size: 12px; color: var(--ipo-muted); font-weight: 600; }

.ipo-list-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: var(--ipo-shadow);
  margin-bottom: 10px;
}
.ipo-list-thumb img {
  width: 96px; height: 70px; object-fit: cover; border-radius: 4px;
}
.ipo-list-title { font-size: 14px; margin: 0 0 4px; }
.ipo-list-title a { color: var(--ipo-text); }

.ipo-tv {
  position: relative;
  background: #1b1b1b;
  border-radius: 6px;
  aspect-ratio: 16/10;
  margin-bottom: 18px;
  overflow: hidden;
  background-image: linear-gradient(135deg, #123 0%, #345 50%, #012 100%);
}
.ipo-tv-large { max-width: 720px; margin: 16px 0 24px; }
.ipo-tv-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
}
.ipo-tv-play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff; gap: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
  z-index: 2;
}
.ipo-tv.is-playing .ipo-tv-play { display: none; }
.ipo-tv-play:hover .ipo-play-btn { transform: scale(1.06); }
.ipo-play-btn {
  width: 64px; height: 64px; border-radius: 50%;
  background: #e11; display: grid; place-items: center;
  font-size: 22px; box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .2s ease;
}
.ipo-tv-label { font-weight: 700; font-size: 14px; color: #b6f5cb; }

.ipo-experts-grid,
.ipo-experts-page {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ipo-expert-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--ipo-shadow);
}
.ipo-expert-media img {
  width: 100%; height: 100%; min-height: 160px; object-fit: cover;
}
.ipo-expert-body { padding: 14px 14px 14px 0; }
.ipo-expert-body h3 { font-size: 16px; }
.ipo-expert-body h3 a { color: var(--ipo-text); }
.ipo-expert-person { color: var(--ipo-green); font-weight: 700; font-size: 13px; margin: 0 0 8px; }

.ipo-analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ipo-innovations {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--ipo-shadow);
  padding: 4px 16px 8px;
}
.ipo-text-article {
  padding: 14px 0;
  border-bottom: 1px solid var(--ipo-line);
}
.ipo-text-article:last-child { border-bottom: 0; }
.ipo-text-title {
  font-size: 15px;
  margin: 0 0 6px;
  line-height: 1.35;
}
.ipo-text-title a { color: var(--ipo-text); }
.ipo-text-title a:hover { color: var(--ipo-green); }
.ipo-text-excerpt {
  margin: 0;
  color: var(--ipo-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ipo-section-carousel .swiper { padding: 4px 36px 12px; }
.ipo-section-carousel .swiper-slide { height: auto; }
.ipo-trend-card .ipo-card-media { min-height: 220px; }
.ipo-trend-card .ipo-card-title { font-size: 15px; }

.swiper-button-prev,
.swiper-button-next {
  color: var(--ipo-green) !important;
  width: 28px !important; height: 28px !important;
}
.swiper-button-prev::after,
.swiper-button-next::after { font-size: 18px !important; font-weight: 700; }

.ipo-mag-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.ipo-mag-card {
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  box-shadow: var(--ipo-shadow);
  text-align: center;
}
.ipo-mag-card img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; margin: 0 auto 8px;
}
.ipo-mag-card h3 { font-size: 13px; }
.ipo-mag-meta { font-size: 12px; color: var(--ipo-muted); }
.ipo-mag-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; font-size: 12px; font-weight: 700; }
.ipo-mag-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.ipo-mag-filter {
  border: 1px solid var(--ipo-green);
  background: #fff;
  color: var(--ipo-green);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.ipo-mag-filter.is-active,
.ipo-mag-filter:hover {
  background: var(--ipo-green);
  color: #fff;
}
.ipo-mag-card.is-hidden { display: none; }

/* Single / archive */
.ipo-single-wrap,
.ipo-archive-grid {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr;
  gap: 28px;
  padding: 24px 0 40px;
}
.ipo-page-header { padding: 24px 0 8px; }
.ipo-page-header h1 { font-size: 32px; }
.ipo-breadcrumb { font-size: 13px; color: var(--ipo-muted); margin-bottom: 10px; }
.ipo-breadcrumb a { color: var(--ipo-green); }
.ipo-single {
  background: #fff;
  padding: 22px;
  border-radius: 8px;
  box-shadow: var(--ipo-shadow);
}
.ipo-single-cat { text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.ipo-single-title { font-size: 34px; margin: 6px 0 10px; }
.ipo-single-meta { color: var(--ipo-muted); font-size: 14px; }
.ipo-single-featured { margin: 16px 0; }
.ipo-single-featured img { width: 100%; border-radius: 6px; }
.ipo-content p { margin: 0 0 1em; font-size: 17px; line-height: 1.75; }
.ipo-content h2, .ipo-content h3 { margin-top: 1.2em; }
.ipo-share { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.ipo-share a {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ipo-green); color: #fff;
}
.ipo-tags { margin-top: 18px; font-size: 14px; }
.ipo-single-sidebar .ipo-heading { margin-top: 8px; }

.ipo-pagination { margin: 24px 0; text-align: center; }
.ipo-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 3px;
  background: #fff;
  border-radius: 4px;
  color: var(--ipo-text);
  box-shadow: var(--ipo-shadow);
}
.ipo-pagination .current,
.ipo-pagination a:hover {
  background: var(--ipo-green);
  color: #fff;
}

.ipo-simple-page { padding: 24px 0 48px; }
.ipo-subscribe-box,
.ipo-404 {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--ipo-shadow);
}
.ipo-subscribe-form { display: grid; gap: 10px; max-width: 420px; margin-top: 16px; }
.ipo-subscribe-form input {
  padding: 12px; border: 1px solid var(--ipo-line); border-radius: 4px; font: inherit;
}
.ipo-subscribe-form button,
.ipo-btn {
  background: var(--ipo-green);
  color: #fff !important;
  border: 0;
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
}
.ipo-btn-outline {
  background: #fff !important;
  color: var(--ipo-green) !important;
  border: 1px solid var(--ipo-green);
}
.ipo-form-note { font-size: 12px; color: var(--ipo-muted); }
.ipo-mag-single-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--ipo-shadow);
}

/* Footer */
.ipo-footer {
  background: #0e0e0e;
  color: #ddd;
  margin-top: 24px;
  padding: 28px 0 0;
}
.ipo-footer a { color: #eee; }
.ipo-footer a:hover { color: #b6f5cb; }
.ipo-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 24px;
  padding-bottom: 20px;
}
.ipo-footer-logo img { max-height: 56px; width: auto; filter: brightness(1.1); }
.ipo-footer h4 { color: #fff; margin-bottom: 10px; }
.ipo-footer-menu { display: grid; gap: 6px; }
.ipo-social { display: flex; gap: 10px; }
.ipo-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: #222; display: grid; place-items: center;
}
.ipo-footer-bottom {
  border-top: 1px solid #222;
  padding: 12px 0;
  font-size: 13px;
  color: #999;
}

.ipo-back-top {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: var(--ipo-green); color: #fff;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 99;
}
.ipo-back-top.is-visible { opacity: 1; pointer-events: auto; }

/* Responsive */
@media (max-width: 1024px) {
  .ipo-hero-grid { grid-template-columns: 1fr 1fr; }
  .ipo-current-issue { grid-column: 1 / -1; }
  .ipo-mag-grid { grid-template-columns: repeat(3, 1fr); }
  .ipo-split,
  .ipo-single-wrap,
  .ipo-archive-grid { grid-template-columns: 1fr; }
  .ipo-experts-grid,
  .ipo-experts-page { grid-template-columns: 1fr; }
  .ipo-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .ipo-nav-toggle { display: flex; }
  .ipo-menu-primary {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--ipo-green);
    flex-direction: column;
    z-index: 40;
    padding: 8px 0 16px;
  }
  .ipo-menu-primary.is-open { display: flex; }
  .ipo-menu-primary > li > a { padding: 12px 20px; }
  .ipo-menu-secondary { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .ipo-hero-grid { grid-template-columns: 1fr; }
  .ipo-hero-slider, .ipo-hero-main { min-height: 280px; }
  .ipo-news-feat,
  .ipo-analysis-grid { grid-template-columns: 1fr; }
  .ipo-expert-card { grid-template-columns: 1fr; }
  .ipo-expert-body { padding: 0 14px 14px; }
  .ipo-mag-grid { grid-template-columns: repeat(2, 1fr); }
  .ipo-mag-single-grid { grid-template-columns: 1fr; }
  .ipo-footer-grid { grid-template-columns: 1fr; }
  .ipo-single-title { font-size: 26px; }
}


/* drc-mobile-harden */
@media (max-width: 768px) {
  .wrap, .container, .site, .site-content, .content-area, .main, .page, .sp-page, .sp-container {
    max-width: 100% !important;
    width: auto !important;
    box-sizing: border-box;
  }
  [class*="grid"], [class*="__grid"], [class*="columns"] {
    grid-template-columns: 1fr !important;
  }
  table { display: block; max-width: 100%; overflow-x: auto; }
}

/* === zizhan mobile harden fixed === */
html, body { overflow-x: hidden; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }
@media (max-width: 768px) {
  .alignwide, .alignfull {
    max-width: 100% !important;
  }
  table { display: block; max-width: 100%; overflow-x: auto; }
}


/* === zizhan mobile harden v2 20261130093754 === */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe, embed, object, svg { max-width: 100%; height: auto; }
@media (max-width: 768px) {
  *, *::before, *::after { min-width: 0; box-sizing: border-box; }
  .wrap, .container, .site, .site-content, .content-area, main,
  .sp-page, .sp-container, .entry-content, .wp-block-group,
  .alignwide, .alignfull {
    max-width: 100% !important;
  }
  [class*="hero"], .sp-hero, .hero-grid, .ps-hero {
    max-width: 100% !important;
    min-height: 0 !important;
  }
  table { display: block; max-width: 100%; overflow-x: auto; }
}
