/* =========================================================
   RTLx IDEAS  (idea.html + view-idea.html)
   Loads AFTER home.css   |   Prefix: ia-
========================================================= */

/* ---------- LIGHT IMAGES ---------- */
:root {
  --img-ia-hero: url('/src/idea-banner-dark.jpeg');
--ia-hero-overlay: linear-gradient(100deg, rgba(5,13,9,.95) 0%, rgba(8,19,14,.76) 55%, rgba(8,19,14,.35) 100%);
  --ia-card-overlay: linear-gradient(180deg, rgba(5,13,9,0) 45%, rgba(5,13,9,.7) 100%);
}

/* ---------- DARK IMAGES ---------- */
[data-theme="dark"] {
  --img-ia-hero: url('/src/idea-banner-dark.jpeg');
  --ia-hero-overlay: linear-gradient(100deg, rgba(5,13,9,.95) 0%, rgba(8,19,14,.76) 55%, rgba(8,19,14,.35) 100%);
  --ia-card-overlay: linear-gradient(180deg, rgba(5,13,9,0) 45%, rgba(5,13,9,.7) 100%);
}

/* ---------- COMMON ---------- */
.ia-sec { padding: 70px 0 90px; position: relative; }
[hidden] { display: none !important; }

.ia-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; letter-spacing: .4px;
  background: rgba(255,255,255,.88); color: var(--navy);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ia-badge .ic { width: 13px; height: 13px; color: var(--green); }
.ia-badge.solid { background: var(--accent); color: #fff; }
.ia-badge.solid .ic { color: #fff; }
[data-theme="dark"] .ia-badge { background: rgba(8,19,14,.78); color: var(--accent); border: 1px solid var(--border); }
[data-theme="dark"] .ia-badge .ic { color: var(--accent); }
[data-theme="dark"] .ia-badge.solid { background: var(--accent); color: #06210f; border: none; }
[data-theme="dark"] .ia-badge.solid .ic { color: #06210f; }

.ia-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--navy)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700;
}
.ia-avatar.lg { width: 62px; height: 62px; font-size: 20px; }
[data-theme="dark"] .ia-avatar { background: linear-gradient(135deg, var(--accent), #1f6b32); color: #06210f; }

/* =========================================================
   HERO
========================================================= */
/* .ia-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 110px 0 150px;
  background-image:var(--img-ia-hero);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  
} */

.ia-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 110px 0 150px;

  background-image: var(--ia-hero-overlay), var(--img-ia-hero);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--navy);
}

/* .ia-hero-sm { padding: 80px 0 90px; } */
.ia-hero-sm { padding: 110px 0 150px; min-height: 640px; }
.ia-hero-inner { position: relative; z-index: 2; }

.ia-crumb {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; margin-right: 16px;
  padding: 8px 18px; border-radius: 50px; font-size: 13px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ia-crumb a { color: #e6edf5; transition: color .3s; }
.ia-crumb a:hover { color: var(--green); }
.ia-crumb span { opacity: .6; }
.ia-crumb b { color: #fff; }
[data-theme="dark"] .ia-crumb a:hover, [data-theme="dark"] .ia-crumb b { color: var(--accent); }

.ia-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: 3px; font-weight: 700; margin-bottom: 20px; }
.ia-eyebrow i { width: 46px; height: 2px; background: var(--green); display: block; }
[data-theme="dark"] .ia-eyebrow i { background: var(--accent); }

.ia-hero h1 { color: #fff; font-size: 62px; line-height: 1.1; max-width: 780px; margin-bottom: 22px; }
.ia-hero h1 span { color: var(--green); display: block; font-style: italic; }
[data-theme="dark"] .ia-hero h1 span { color: var(--accent); text-shadow: 0 0 30px rgba(75,227,106,.35); }
.ia-lead { font-size: 17px; color: #dfe8f1; max-width: 560px; margin-bottom: 36px; }

.ia-hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.ia-hero-stats div {
  min-width: 140px; padding: 14px 24px; border-radius: 16px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ia-hero-stats strong { display: block; font-family: 'Poppins', sans-serif; font-size: 28px; line-height: 1.2; }
.ia-hero-stats span { font-size: 12px; letter-spacing: 1px; color: #e6edf5; }
[data-theme="dark"] .ia-hero-stats strong { color: var(--accent); }

/* view page hero */
.ia-hero-sm h1 { font-size: 46px; max-width: 900px; margin: 18px 0 30px; }
.ia-hero-sm .ia-crumb { margin-right: 16px; vertical-align: middle; }
.ia-hero-sm .ia-hero-inner > .ia-badge { vertical-align: middle; margin-bottom: 26px; }
.ia-meta-chips { display: flex; gap: 14px; flex-wrap: wrap; }
.ia-mchip {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 16px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ia-mchip .ic { width: 22px; height: 22px; color: var(--green); }
[data-theme="dark"] .ia-mchip .ic { color: var(--accent); }
.ia-mchip small { display: block; font-size: 11px; letter-spacing: 1px; color: #cdd9e6; text-transform: uppercase; }
.ia-mchip strong { font-size: 14px; color: #fff; }

/* =========================================================
   TOOLBAR (search + sort + chips)
========================================================= */
.ia-toolbar {
  position: relative; z-index: 5; margin-top: -60px; padding: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow);
}
[data-theme="dark"] .ia-toolbar { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ia-toolbar-top { display: flex; gap: 14px; margin-bottom: 18px; }

.ia-search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 52px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 50px; transition: border-color .3s, box-shadow .3s;
}
.ia-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(83,158,89,.15); }
.ia-search .ic { color: var(--icon); width: 20px; height: 20px; }
.ia-search input {
  flex: 1; min-width: 0; width: 100%; border: none; outline: none; background: transparent;
  color: var(--text); font: inherit; font-size: 15px; text-overflow: ellipsis;
}

.ia-select {
  flex-shrink: 0; min-width: 190px; height: 52px; padding: 0 48px 0 22px; border-radius: 50px; cursor: pointer;
  background-color: var(--bg); color: var(--heading); border: 1.5px solid var(--border);
  font: inherit; font-size: 14px; font-weight: 700; outline: none;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23539e59' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center; background-size: 14px;
}
[data-theme="dark"] .ia-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234be36a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.ia-select:focus { border-color: var(--accent); }
.ia-select option { background: var(--surface); color: var(--heading); }

.ia-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.ia-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px; border-radius: 50px; cursor: pointer;
  background: transparent; color: var(--heading); border: 1.5px solid var(--border);
  font: inherit; font-size: 14px; font-weight: 700; transition: all .3s;
}
.ia-chip em {
  font-style: normal; font-size: 11px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 50px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--accent);
}
.ia-chip:hover { border-color: var(--accent); color: var(--accent); }
.ia-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ia-chip.active em { background: rgba(255,255,255,.25); color: #fff; }
[data-theme="dark"] .ia-chip.active { color: #06210f; box-shadow: 0 0 18px rgba(75,227,106,.4); }
[data-theme="dark"] .ia-chip.active em { background: rgba(0,0,0,.2); color: #06210f; }

/* =========================================================
   FEATURED
========================================================= */
.ia-feat {
  display: grid; grid-template-columns: 1.1fr 1fr; margin-bottom: 60px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .4s, border-color .4s, box-shadow .4s;
}
.ia-feat:hover { transform: translateY(-6px); border-color: var(--accent); }
[data-theme="dark"] .ia-feat:hover { box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 30px rgba(75,227,106,.15); }

.ia-feat-img { position: relative; min-height: 420px; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--green)); }
.ia-feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.ia-feat:hover .ia-feat-img img { transform: scale(1.06); }
.ia-feat-img::after { content: ''; position: absolute; inset: 0; background: var(--ia-card-overlay); }
.ia-flag {
  position: absolute; left: 22px; top: 22px; z-index: 2; padding: 8px 18px; border-radius: 50px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px;
}
[data-theme="dark"] .ia-flag { color: #06210f; box-shadow: 0 0 18px rgba(75,227,106,.5); }

.ia-feat-body { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ia-feat-body h2 { font-size: 34px; margin: 18px 0 14px; }
.ia-feat-body p { font-size: 15px; margin-bottom: 22px; }
.ia-feat-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; font-size: 13px; font-weight: 700; color: var(--heading); }
.ia-feat-meta span { display: inline-flex; align-items: center; gap: 7px; }
.ia-feat-meta .ic { color: var(--icon); width: 16px; height: 16px; }

/* =========================================================
   RESULT BAR + GRID
========================================================= */
.ia-result-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.ia-result-bar h2 { font-size: 26px; position: relative; padding-left: 18px; }
.ia-result-bar h2::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 5px; background: var(--accent);
}
.ia-result-bar span { font-size: 14px; font-weight: 700; color: var(--accent); }

.ia-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* =========================================================
   IDEA CARD
========================================================= */
.ia-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow);
  transition: transform .4s ease, border-color .4s, box-shadow .4s;
  animation: iaUp .6s ease both; animation-delay: calc(var(--i) * 70ms);
}
[data-theme="dark"] .ia-card { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ia-card::before {
  content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 0; z-index: 3;
  background: linear-gradient(90deg, var(--green), var(--accent)); transition: width .5s ease;
}
.ia-card:hover { transform: translateY(-10px); border-color: var(--accent); }
.ia-card:hover::before { width: 100%; }
[data-theme="dark"] .ia-card:hover { box-shadow: 0 22px 48px rgba(0,0,0,.55), 0 0 28px rgba(75,227,106,.18); }

@keyframes iaUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.ia-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--green)); }
.ia-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.ia-card:hover .ia-thumb img { transform: scale(1.1); }
.ia-thumb::after { content: ''; position: absolute; inset: 0; background: var(--ia-card-overlay); pointer-events: none; }
.ia-thumb .ia-badge { position: absolute; left: 16px; top: 16px; z-index: 2; }
.ia-read {
  position: absolute; right: 16px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: #fff;
}
.ia-read .ic { width: 14px; height: 14px; }

.ia-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 20px; }
.ia-date { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--accent); margin-bottom: 10px; }
.ia-date .ic { width: 14px; height: 14px; }
.ia-body h3 {
  font-size: 20px; margin-bottom: 10px; transition: color .3s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ia-card:hover .ia-body h3 { color: var(--accent); }
.ia-body > p {
  font-size: 14px; margin-bottom: 20px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.ia-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.ia-author { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ia-author strong { display: block; font-size: 13px; color: var(--heading); line-height: 1.3; }
.ia-author small { display: block; font-size: 12px; color: var(--text); }
.ia-go {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--accent); color: var(--accent); transition: all .3s;
}
.ia-card:hover .ia-go { background: var(--accent); color: #fff; transform: rotate(-45deg); }
[data-theme="dark"] .ia-card:hover .ia-go { color: #06210f; box-shadow: 0 0 16px rgba(75,227,106,.55); }

/* =========================================================
   EMPTY STATE
========================================================= */
.ia-empty {
  max-width: 460px; margin: 20px auto; padding: 50px 30px; text-align: center;
  background: var(--surface); border: 1px dashed var(--border); border-radius: 24px;
}
.ia-empty .ic-lg { width: 54px; height: 54px; margin: 0 auto 14px; }
.ia-empty h3 { font-size: 22px; margin-bottom: 8px; }
.ia-empty p { margin-bottom: 22px; }

/* =========================================================
   VIEW PAGE
========================================================= */
.ia-progress {
  position: fixed; left: 0; top: 0; height: 4px; width: 0; z-index: 1001;
  background: linear-gradient(90deg, var(--green), var(--accent));
}
[data-theme="dark"] .ia-progress { box-shadow: 0 0 12px rgba(75,227,106,.7); }

.ia-article-sec { padding-top: 60px; }
.ia-article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 44px; align-items: start; }

.ia-cover {
  position: relative; aspect-ratio: 16 / 8; border-radius: 28px; overflow: hidden; margin-bottom: 36px;
  background: linear-gradient(135deg, var(--navy), var(--green)); box-shadow: var(--shadow); border: 1px solid var(--border);
}
.ia-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ia-cover .ia-badge { position: absolute; left: 20px; top: 20px; z-index: 2; }

.ia-intro {
  position: relative; padding: 28px 32px; margin-bottom: 40px; border-radius: 22px;
  background: var(--bg-soft); border: 1px solid var(--border); border-left: 5px solid var(--accent);
}
.ia-intro small { display: block; font-size: 12px; letter-spacing: 3px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.ia-intro p { font-size: 19px; line-height: 1.7; color: var(--heading); font-weight: 400; }

.ia-content h3 {
  font-size: 26px; margin: 40px 0 14px; position: relative; padding-bottom: 12px;
}
.ia-content h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; border-radius: 3px; background: var(--accent); }
.ia-content > h3:first-child { margin-top: 0; }
.ia-content p { font-size: 16px; line-height: 1.9; margin-bottom: 18px; }
.ia-content strong { color: var(--heading); }
.ia-content ul { margin: 6px 0 22px; display: grid; gap: 12px; }
.ia-content li {
  position: relative; padding: 14px 18px 14px 52px; font-size: 15px; color: var(--heading);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: transform .3s, border-color .3s;
}
.ia-content li:hover { transform: translateX(6px); border-color: var(--accent); }
.ia-content li::before {
  content: '✓'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
[data-theme="dark"] .ia-content li::before { color: #06210f; }
.ia-content blockquote {
  margin: 28px 0; padding: 26px 30px 26px 36px; position: relative; border-radius: 20px;
  font-family: 'Poppins', sans-serif; font-size: 20px; line-height: 1.6; font-style: italic; color: var(--heading);
  background: linear-gradient(135deg, var(--bg-soft), var(--surface)); border: 1px solid var(--border);
}
.ia-content blockquote::before {
  content: '“'; position: absolute; left: 12px; top: -6px; font-size: 64px; line-height: 1; color: var(--accent); font-family: Georgia, serif;
}

/* share */
.ia-share {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin: 44px 0 34px; padding: 20px 26px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
}
.ia-share > span { font-weight: 700; color: var(--heading); font-size: 15px; }
.ia-share > div { display: flex; gap: 10px; }
.ia-share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 14px;
  border-radius: 50px; cursor: pointer; background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent); font: inherit; font-size: 13px; font-weight: 700; transition: all .3s;
}
.ia-share-btn:hover { background: var(--accent); color: #fff; }
[data-theme="dark"] .ia-share-btn:hover { color: #06210f; box-shadow: 0 0 16px rgba(75,227,106,.5); }
.ia-share-btn em { font-style: normal; }

/* prev / next */
.ia-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ia-pn-card {
  display: block; padding: 22px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s, border-color .3s;
}
.ia-pn-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.ia-pn-card span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.ia-pn-card strong { display: block; font-family: 'Poppins', sans-serif; font-size: 16px; color: var(--heading); line-height: 1.4; }
.ia-pn-card.next { text-align: right; }
.ia-pn-card.next span { justify-content: flex-end; }

/* sidebar */
.ia-side { position: sticky; top: 100px; display: grid; gap: 22px; }
.ia-side-card {
  padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
[data-theme="dark"] .ia-side-card { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ia-side-card > small { display: block; font-size: 11px; letter-spacing: 3px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }

.ia-author-big { display: flex; align-items: center; gap: 16px; }
.ia-author-big strong { display: block; font-family: 'Poppins', sans-serif; font-size: 18px; color: var(--heading); }
.ia-author-big span:not(.ia-avatar) { font-size: 13px; }

.ia-details { display: grid; gap: 16px; }
.ia-details li { display: flex; align-items: center; gap: 14px; }
.ia-details li > span {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--icon); border: 1px solid var(--border);
}
.ia-details .ic { width: 18px; height: 18px; }
.ia-details em { display: block; font-style: normal; font-size: 12px; }
.ia-details strong { font-size: 14px; color: var(--heading); }

.ia-related { display: grid; gap: 16px; }
.ia-rel { display: flex; gap: 14px; align-items: center; }
.ia-rel-img {
  position: relative; width: 78px; height: 66px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--green));
}
.ia-rel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ia-rel:hover .ia-rel-img img { transform: scale(1.12); }
.ia-rel small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; }
.ia-rel strong { display: block; font-size: 14px; line-height: 1.4; color: var(--heading); transition: color .3s; }
.ia-rel:hover strong { color: var(--accent); }
.ia-rel em { font-style: normal; font-size: 12px; }

.ia-cta-card { text-align: center; }
.ia-cta-card .ic-lg { margin: 0 auto 12px; }
.ia-cta-card h4 { font-size: 19px; margin-bottom: 8px; }
.ia-cta-card p { font-size: 14px; margin-bottom: 18px; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
  .ia-hero h1 { font-size: 52px; }
  .ia-grid { grid-template-columns: repeat(2, 1fr); }
  .ia-article-wrap { grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; }
}

@media (max-width: 991px) {
  .ia-sec { padding: 56px 0 70px; }
  .ia-hero { padding: 80px 0 130px; }
  .ia-hero h1 { font-size: 42px; }
  /* .ia-hero-sm { padding: 60px 0 70px; } */
  .ia-hero-sm { padding: 80px 0 110px; min-height: 520px; }
  .ia-hero-sm h1 { font-size: 34px; }
  .ia-feat { grid-template-columns: 1fr; }
  .ia-feat-img { min-height: 280px; }
  .ia-feat-body { padding: 32px 28px; }
  .ia-feat-body h2 { font-size: 28px; }
  .ia-article-wrap { grid-template-columns: 1fr; }
  .ia-side { position: static; }
}

@media (max-width: 767px) {
  .ia-hero h1 { font-size: 34px; }
  .ia-lead { font-size: 15px; }
  .ia-toolbar { padding: 16px; margin-top: -50px; border-radius: 20px; }
  .ia-toolbar-top { flex-direction: column; gap: 12px; margin-bottom: 14px; }
  .ia-search { flex: none; width: 100%; height: 48px; padding: 0 16px; }
  .ia-search input { font-size: 16px; } /* 16px stops iOS zoom on focus */
  .ia-select { flex: none; width: 100%; min-width: 0; height: 48px; font-size: 15px; }
  .ia-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .ia-chips::-webkit-scrollbar { display: none; }
  .ia-chip { white-space: nowrap; }
  .ia-grid { grid-template-columns: 1fr; }
  .ia-intro { padding: 22px; }
  .ia-intro p { font-size: 17px; }
  .ia-content h3 { font-size: 22px; }
  .ia-pn { grid-template-columns: 1fr; }
  .ia-pn-card.next { text-align: left; }
  .ia-pn-card.next span { justify-content: flex-start; }
}

@media (max-width: 575px) {
  .ia-hero h1 { font-size: 30px; }
  .ia-hero-sm h1 { font-size: 27px; }
  .ia-hero-sm .ia-crumb { display: flex; width: fit-content; max-width: 100%; margin-right: 0; margin-bottom: 14px; }
  .ia-hero-sm .ia-hero-inner > .ia-badge { margin-bottom: 18px; }
  .ia-hero-stats div { flex: 1 1 calc(50% - 14px); min-width: 0; padding: 12px 16px; }
  .ia-mchip { flex: 1 1 100%; }
  .ia-cover { aspect-ratio: 16 / 10; border-radius: 20px; }
  .ia-share { padding: 18px; }
  .ia-share-btn em { display: none; }
  .ia-share-btn { padding: 0; width: 44px; }
  .ia-toolbar { padding: 12px; }
  .ia-search .ic { width: 18px; height: 18px; }
  .ia-chip { padding: 8px 16px; font-size: 13px; }
  .ia-toolbar { padding: 12px; }
  .ia-search .ic { width: 18px; height: 18px; }
  .ia-chip { padding: 8px 16px; font-size: 13px; }
}
/* =========================================================
   LOCKED CARDS + LOGIN GATE + SHARE POPUP + PROFILE POSTS
========================================================= */

/* ---------- blurred (locked) cards ---------- */
.ia-locked { cursor: pointer; }
.ia-locked:hover { transform: none; border-color: var(--border); }
.ia-locked:hover::before { width: 0; }
.ia-locked .ia-blur {
  display: flex; flex-direction: column; flex: 1;
  filter: blur(7px); opacity: .8; pointer-events: none; user-select: none;
}
.ia-lock-ov {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.6));
  transition: background .3s;
}
[data-theme="dark"] .ia-lock-ov { background: linear-gradient(180deg, rgba(5,13,9,.25), rgba(5,13,9,.7)); }
.ia-lock-ov strong { font-family: 'Poppins', sans-serif; font-size: 18px; color: var(--heading); }
.ia-lock-ov p { font-size: 13px; margin-bottom: 6px; color: var(--heading); }
.ia-locked .ia-lock-ov .rx-btn { transition: background .3s, border-color .3s, color .3s; }
.ia-locked:hover .ia-lock-ov .rx-btn { background: #3f8a47; border-color: #3f8a47; color: #fff; }
.rx-btn-outline-dark { background: transparent; color: #3f8a47; border-color: #3f8a47 }
[data-theme="dark"] .ia-locked:hover .ia-lock-ov .rx-btn {
  background: var(--accent); border-color: var(--accent); color: #06210f;
  box-shadow: 0 0 18px rgba(75,227,106,.45);
}
.ia-lock-ic {
  width: 62px; height: 62px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(83,158,89,.4);
}
[data-theme="dark"] .ia-lock-ic { color: #06210f; box-shadow: 0 0 24px rgba(75,227,106,.55); }
.ia-lock-ic.big { width: 80px; height: 80px; margin: 0 auto 16px; }

/* ---------- guest banner ---------- */
.ia-gate {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 18px 24px; margin-bottom: 34px; border-radius: 20px;
  background: var(--bg-soft); border: 1.5px dashed var(--accent);
}
.ia-gate-txt { display: flex; align-items: center; gap: 16px; }
.ia-gate-ic {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
}
[data-theme="dark"] .ia-gate-ic { color: #06210f; }
.ia-gate strong { font-family: 'Poppins', sans-serif; font-size: 17px; color: var(--heading); }
.ia-gate p { font-size: 13.5px; margin: 2px 0 0; }
.ia-gate-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ia-gate-btns .rx-btn { padding: 10px 24px; }

.ia-locked-page .ia-gate-btns { margin-bottom: 18px; }
.ia-back { font-weight: 700; font-size: 14px; color: var(--accent); }
.ia-back:hover { text-decoration: underline; }

/* ---------- share popup ---------- */
.sh-modal { max-width: 700px; }
.sh-modal .lg-main { padding: 44px 36px 30px; }
.sh-modal .lg-sub { margin-bottom: 16px; }
.sh-as {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 18px;
  border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--border);
}
.sh-as strong { display: block; font-size: 14px; color: var(--heading); line-height: 1.3; }
.sh-as small { font-size: 12px; }
.sh-as em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.sh-types { display: flex; gap: 10px; flex-wrap: wrap; }
.sh-type { position: relative; cursor: pointer; }
.sh-type input { position: absolute; opacity: 0; pointer-events: none; }
.sh-type span {
  display: inline-flex; align-items: center; margin: 0; padding: 10px 24px; border-radius: 50px;
  font-size: 14px; font-weight: 700; color: var(--heading);
  background: var(--bg-soft); border: 1.5px solid var(--border); transition: all .25s;
}
.sh-type:hover span { border-color: var(--accent); }
.sh-type input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .sh-type input:checked + span { color: #06210f; box-shadow: 0 0 16px rgba(75,227,106,.4); }
.sh-type input:focus-visible + span { box-shadow: 0 0 0 3px rgba(83,158,89,.4); }

.lg-box.sh-file { height: auto; padding: 8px 10px; }
.sh-file input[type="file"] { width: 100%; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.sh-file input[type="file"]::file-selector-button {
  margin-right: 14px; padding: 9px 18px; border: none; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 13px;
}
[data-theme="dark"] .sh-file input[type="file"]::file-selector-button { color: #06210f; }
.sh-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--accent); font-weight: 700; }

.lg-box.sh-area { height: auto; align-items: stretch; }
.sh-area textarea {
  width: 100%; padding: 13px 16px; border: none; outline: none; background: transparent; resize: vertical;
  font: inherit; font-size: 14.5px; line-height: 1.6; color: var(--heading); min-height: 90px;
}
.sh-area textarea::placeholder { color: var(--text); opacity: .6; }
.sh-count { display: block; text-align: right; font-size: 12px; margin-top: 4px; }

.lg-done-ic.sh-warn { background: #f5a524; color: #fff; }
.sh-ok { max-width: 220px; margin: 18px auto 0; }
.lg-done p { max-width: 420px; margin: 0 auto; }

@media (max-width: 640px) {
  .sh-grid { grid-template-columns: 1fr; }
  .sh-modal .lg-main { padding: 56px 20px 24px; }
  .sh-as em { display: none; }
}

/* ---------- profile: my posts ---------- */
.pf-posts { margin-top: 28px; }
.pf-post-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-post-btns .rx-btn { padding: 9px 18px; font-size: 13.5px; }
.pf-counts { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 22px; }
.pf-counts span {
  padding: 7px 16px; border-radius: 50px; font-size: 13px; font-weight: 700;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--heading);
}
.pf-counts b { margin-left: 6px; color: var(--accent); }
.pf-counts .st-pending b { color: #d98a00; }
.pf-counts .st-rejected b { color: #d64545; }

.pf-noposts { text-align: center; padding: 40px 10px; color: var(--text); }
.pf-noposts svg { color: var(--accent); margin-bottom: 8px; }

.pf-list { display: grid; gap: 16px; }
.pf-post {
  display: flex; gap: 18px; padding: 14px; border-radius: 18px; align-items: stretch;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s, border-color .3s;
}
a.pf-post:hover { transform: translateY(-4px); border-color: var(--accent); }
.pf-post-img {
  width: 150px; min-height: 110px; flex-shrink: 0; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--green));
}
.pf-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-post-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pf-type { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.pf-badge { padding: 4px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.pf-badge.st-pending { background: #fff4d6; color: #b7791f; border: 1px solid #f0d58a; }
.pf-badge.st-approved { background: #e3f6e6; color: #2f7d4a; border: 1px solid #a8d8b0; }
.pf-badge.st-rejected { background: #fdeaea; color: #c0392b; border: 1px solid #f0b4b4; }
[data-theme="dark"] .pf-badge.st-pending { background: rgba(255,216,77,.12); color: #ffd84d; border-color: #8a7020; }
[data-theme="dark"] .pf-badge.st-approved { background: rgba(75,227,106,.12); color: #4be36a; border-color: rgba(75,227,106,.4); }
[data-theme="dark"] .pf-badge.st-rejected { background: rgba(255,90,90,.12); color: #ff9b9b; border-color: rgba(255,120,120,.4); }
.pf-post h4 { font-size: 18px; margin-bottom: 6px; }
.pf-post p {  
  font-size: 13.5px; margin-bottom: 8px;
  display: -webkit-box;  -webkit-box-orient: vertical; overflow: hidden;
}
.pf-post small { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--heading); }

@media (max-width: 575px) {
  .pf-post { flex-direction: column; }
  .pf-post-img { width: 100%; height: 170px; }
}
/* ---------- profile: edit button ---------- */
.pf-head-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-edit {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 50px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; background: transparent;
  color: var(--accent); border: 1.5px solid var(--accent); transition: all .3s;
}
.pf-edit:hover { background: var(--accent); color: #fff; }
[data-theme="dark"] .pf-edit:hover { color: #06210f; box-shadow: 0 0 16px rgba(75,227,106,.45); }
.rg-pitem input:disabled + .rg-pcard { cursor: not-allowed; }
/* Edit profile popup: no visible scrollbar */
.sh-modal,
.sh-modal .lg-main,
.lg-overlay:has(.sh-modal) {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* old Edge */
}
.sh-modal::-webkit-scrollbar,
.sh-modal .lg-main::-webkit-scrollbar,
.lg-overlay:has(.sh-modal)::-webkit-scrollbar {
  display: none;                /* Chrome, Edge, Safari */
  width: 0; height: 0;
}

/* tighten spacing so the form fits without scrolling on normal screens */
.sh-modal .lg-main { padding: 36px 36px 24px; }


.ia-content h1, .ia-content h2, .ia-content h3, .ia-content h4 { margin: 22px 0 10px; font-weight: 700; }
.ia-content p { margin-bottom: 14px; line-height: 1.8; }
.ia-content ul { list-style: none; padding-left: 0; margin-bottom: 14px; }
.ia-content ol { list-style: decimal; padding-left: 24px; margin-bottom: 14px; }
.ia-content img { max-width: 100%; height: auto; border-radius: 10px; }
.ia-content a { color: var(--accent); }