/* ============================================
   ARTA GHADIR — v2 components (menus, sections, pages, 404)
   ============================================ */

/* ---------- Header: dropdown / mega menu ---------- */
#mainNav .navbar-nav .nav-link { padding: .5rem .6rem; font-size: .9rem; white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #mainNav .navbar-nav .nav-link { padding: .5rem .42rem; font-size: .84rem; }
}
#mainNav .dropdown-toggle::after { border: 0; content: 'expand_more'; font-family: 'Material Icons Round'; font-size: 1rem; vertical-align: middle; margin-inline-start: 2px; transition: transform .25s; display: inline-block; line-height: 1; }
#mainNav .ag-dd.show > .dropdown-toggle::after, #mainNav .ag-dd:hover > .dropdown-toggle::after { transform: rotate(180deg); }
.ag-dd-menu {
  border: 0; border-top: 3px solid var(--ag-secondary); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(18,41,26,.22); padding: 10px; min-width: 270px;
  background: #fff; margin-top: 0 !important;
}
.ag-dd-menu .dropdown-item {
  display: flex; align-items: center; gap: 10px; border-radius: 10px;
  padding: 9px 12px; font-size: .9rem; color: var(--ag-text); font-weight: 500; white-space: normal;
  transition: background .2s, color .2s, padding .2s;
}
.ag-dd-menu .dropdown-item .material-icons-round { font-size: 1.15rem; color: var(--ag-primary); opacity: .8; }
.ag-dd-menu .dropdown-item:hover, .ag-dd-menu .dropdown-item:focus { background: rgba(41,92,43,.08); color: var(--ag-primary); padding-inline-start: 16px; }
.ag-dd-menu .ag-dd-all { font-weight: 700; color: var(--ag-primary); border-bottom: 1px dashed var(--ag-border); border-radius: 10px 10px 0 0; margin-bottom: 4px; }
.ag-dd-menu.ag-dd-wide { column-count: 2; column-gap: 6px; min-width: 460px; }
.ag-dd-menu.ag-dd-wide li { break-inside: avoid; }
@media (min-width: 1200px) {
  .ag-dd { position: relative; }
  .ag-dd > .dropdown-menu { display: block; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; pointer-events: none; }
  .ag-dd:hover > .dropdown-menu, .ag-dd.show > .dropdown-menu, .ag-dd:focus-within > .dropdown-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .ag-dd::after { content: ''; position: absolute; inset-inline: 0; top: 100%; height: 12px; }
}
@media (max-width: 1199.98px) {
  #mainNav .navbar-collapse { background: var(--ag-dark); margin: 10px -12px 0; padding: 12px 16px 18px; border-radius: 0 0 16px 16px; max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
  #mainNav .navbar-nav .nav-link { padding: .75rem .5rem; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
  .ag-dd-menu { background: rgba(255,255,255,.05); box-shadow: none; border-top: 0; border-radius: 12px; min-width: 0; margin: 4px 0 8px !important; }
  .ag-dd-menu.ag-dd-wide { column-count: 1; min-width: 0; }
  .ag-dd-menu .dropdown-item { color: rgba(255,255,255,.85); }
  .ag-dd-menu .dropdown-item .material-icons-round { color: var(--ag-secondary); }
  .ag-dd-menu .dropdown-item:hover { background: rgba(255,255,255,.08); color: #fff; }
  .ag-dd-menu .ag-dd-all { color: var(--ag-secondary); border-bottom-color: rgba(255,255,255,.12); }
  #mainNav .navbar-collapse .lang-switch, #mainNav .navbar-collapse .navbar-search-icon-btn { margin-top: 12px; }
}

/* fix: dropdown clipping */
@media (min-width: 1200px) {
  #mainNav .navbar-collapse { overflow: visible !important; max-height: none !important; }
}

/* ---------- Brand + slogan under logo ---------- */
#mainNav .navbar-brand.ag-brand { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1; padding: 0; margin-inline-end: 14px; }
#mainNav .ag-brand-slogan { font-size: .66rem; font-weight: 700; color: var(--ag-secondary); white-space: nowrap; letter-spacing: .2px; text-shadow: 0 1px 3px rgba(0,0,0,.35); transition: opacity .3s, max-height .3s; }
@media (max-width: 575.98px) { #mainNav .ag-brand-slogan { font-size: .6rem; } }

/* ---------- Slogan ---------- */
.ag-slogan-band { background: linear-gradient(135deg, var(--ag-dark), var(--ag-primary)); padding: 34px 0; position: relative; overflow: hidden; }
.ag-slogan-band::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px); }
.ag-slogan-inner { display: flex; align-items: center; justify-content: center; gap: 22px; position: relative; }
.ag-slogan-inner h2 { color: #fff; margin: 0; font-weight: 900; font-size: clamp(1.25rem, 3.2vw, 2.1rem); text-align: center; }
.ag-slogan-line { flex: 0 1 120px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--ag-secondary), transparent); }
.loader-slogan { color: rgba(255,255,255,.8); margin-top: 16px; font-size: .95rem; letter-spacing: .5px; }
.footer-slogan { color: var(--ag-secondary); font-weight: 700; margin: -4px 0 12px; font-size: .95rem; }

/* ---------- Common ---------- */
.ag-eyebrow-light { display: inline-block; background: rgba(229,169,39,.18); color: var(--ag-secondary); border: 1px solid rgba(229,169,39,.35); padding: 3px 14px; border-radius: 99px; font-size: .78rem; font-weight: 700; margin-bottom: 10px; }
.ag-h3 { font-weight: 800; color: var(--ag-primary); font-size: 1.35rem; margin: 0; }
.ag-h5 { font-weight: 800; color: var(--ag-primary); font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.ag-link { color: var(--ag-primary); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.ag-link:hover { color: var(--ag-secondary); }
.ag-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(229,169,39,.14); color: #9a6a06; padding: 4px 12px; border-radius: 99px; font-size: .75rem; font-weight: 700; }
.ag-badge .material-icons-round { font-size: .95rem; }
.ag-badge-green { background: rgba(41,92,43,.1); color: var(--ag-primary); }
.ag-empty { text-align: center; padding: 50px 20px; color: var(--ag-text-light); background: var(--ag-light-bg); border-radius: 16px; }
.ag-empty .material-icons-round { font-size: 3rem; color: #c7d2c8; }
.ag-img-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e9efe9, #f6f8f6); height: 100%; min-height: 150px; }
.ag-img-ph .material-icons-round { font-size: 3rem; color: #b8c8b9; }
.ag-btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 11px 22px; border-radius: 99px; border: 2px solid var(--ag-primary); color: var(--ag-primary); font-weight: 700; text-decoration: none; transition: var(--ag-transition); }
.ag-btn-ghost:hover { background: var(--ag-primary); color: #fff; }

/* ---------- Cards ---------- */
.ag-card { display: flex; flex-direction: column; background: #fff; border-radius: 18px; border: 1.5px solid var(--ag-border); box-shadow: var(--ag-shadow); overflow: hidden; text-decoration: none; color: var(--ag-text); transition: transform .3s, box-shadow .3s, border-color .3s; }
.ag-card:hover { transform: translateY(-6px); box-shadow: var(--ag-shadow-lg); border-color: rgba(229,169,39,.6); color: var(--ag-text); }
.ag-card-img { height: 190px; overflow: hidden; }
.ag-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ag-card:hover .ag-card-img img { transform: scale(1.06); }
.ag-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.ag-card-body h5, .ag-card-body h6 { font-weight: 800; color: var(--ag-primary); margin-bottom: 8px; line-height: 1.6; }
.ag-card-body p { color: var(--ag-text-light); font-size: .9rem; line-height: 1.9; margin-bottom: 14px; }
.ag-card-icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ag-primary), #3D7A40); color: #fff; font-size: 1.6rem !important; margin-bottom: 16px; box-shadow: 0 8px 18px rgba(41,92,43,.25); }
.ag-card-alt .ag-card-icon { background: linear-gradient(135deg, #E5A927, #c98a12); box-shadow: 0 8px 18px rgba(229,169,39,.3); }
.ag-card-more { margin-top: auto; color: var(--ag-secondary); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 4px; }
.ag-card-more .material-icons-round { font-size: 1rem; transition: transform .25s; }
.lang-en .ag-card-more .material-icons-round { transform: scaleX(-1); }
.ag-card:hover .ag-card-more .material-icons-round { transform: translateX(-4px); }
.ag-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--ag-text-light); font-size: .8rem; margin-top: auto; }
.ag-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.ag-meta .material-icons-round { font-size: 1rem; color: var(--ag-secondary); }

/* ---------- Article pages ---------- */
.ag-article { background: #fff; border-radius: 18px; border: 1.5px solid var(--ag-border); box-shadow: var(--ag-shadow); padding: 32px 36px; }
@media (max-width: 767.98px) { .ag-article { padding: 22px 18px; } }
.ag-article-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; margin-bottom: 24px; }
.ag-article-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--ag-light-bg); }
.ag-article-title h2 { font-size: 1.35rem; font-weight: 900; color: var(--ag-primary); margin: 0; }
.ag-article-title .material-icons-round { color: var(--ag-secondary); font-size: 1.7rem; }
.ag-emoji { font-size: 1.7rem; line-height: 1; }
.ag-emoji-sm { font-size: 1rem; width: 20px; text-align: center; }
.ag-prose { line-height: 2.1; color: #3b4658; font-size: .98rem; }
.ag-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.ag-prose h3, .ag-prose h4 { color: var(--ag-primary); font-weight: 800; margin-top: 1.4em; }
.ag-prose ul { padding-inline-start: 1.2rem; }
.ag-checklist ul { list-style: none; padding: 0; }
.ag-checklist li { position: relative; padding-inline-start: 34px; margin-bottom: 10px; }
.ag-checklist li::before { content: 'check_circle'; font-family: 'Material Icons Round'; position: absolute; inset-inline-start: 0; top: 0; color: var(--ag-primary); font-size: 1.35rem; }
.ag-steps ol { list-style: none; counter-reset: agstep; padding: 0; position: relative; }
.ag-steps ol li { counter-increment: agstep; position: relative; padding: 0 58px 22px 0; }
.lang-en .ag-steps ol li { padding: 0 0 22px 58px; }
.ag-steps ol li::before { content: counter(agstep); position: absolute; inset-inline-start: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ag-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px rgba(41,92,43,.12); }
.ag-steps ol li::after { content: ''; position: absolute; inset-inline-start: 19px; top: 42px; bottom: 2px; width: 2px; background: linear-gradient(var(--ag-secondary), transparent); }
.ag-steps ol li:last-child::after { display: none; }
.ag-mv { background: var(--ag-light-bg); border-radius: 16px; padding: 24px; height: 100%; border-top: 4px solid var(--ag-secondary); }
.ag-mv .material-icons-round { font-size: 2rem; color: var(--ag-primary); }
.ag-mv h5 { font-weight: 800; color: var(--ag-primary); margin: 8px 0; }

/* ---------- Sidebar ---------- */
.ag-side { position: sticky; top: 100px; }
.ag-side-card { background: #fff; border-radius: 16px; border: 1.5px solid var(--ag-border); box-shadow: var(--ag-shadow); overflow: hidden; margin-bottom: 20px; }
.ag-side-head { background: var(--ag-primary); color: #fff; padding: 14px 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.ag-side-head .material-icons-round { color: var(--ag-secondary); }
.ag-side-nav { list-style: none; margin: 0; padding: 8px; }
.ag-side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ag-text); text-decoration: none; font-size: .92rem; font-weight: 500; transition: background .2s, color .2s; }
.ag-side-nav a .material-icons-round { font-size: 1.1rem; color: var(--ag-text-light); }
.ag-side-nav a:hover, .ag-side-nav a.active { background: rgba(41,92,43,.08); color: var(--ag-primary); font-weight: 700; }
.ag-side-nav a.active .material-icons-round { color: var(--ag-secondary); }
.ag-side-cta { background: linear-gradient(135deg, var(--ag-dark), var(--ag-primary)); color: #fff; border-radius: 16px; padding: 24px; text-align: center; }
.ag-side-cta > .material-icons-round { font-size: 2.4rem; color: var(--ag-secondary); }
.ag-side-cta h6 { font-weight: 800; margin: 8px 0 6px; }
.ag-side-cta p { color: rgba(255,255,255,.75); font-size: .85rem; }
.ag-info { list-style: none; margin: 0; padding: 6px 0; }
.ag-info li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 18px; border-bottom: 1px solid #F0F4F8; font-size: .88rem; }
.ag-info li:last-child { border: 0; }
.ag-info span { color: var(--ag-text-light); }
@media (max-width: 991.98px) { .ag-side { position: static; } .ag-side-cta { display: none; } }

/* ---------- CEO ---------- */
.ag-ceo { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; background: #fff; border-radius: 22px; box-shadow: var(--ag-shadow-lg); padding: 36px; border: 1.5px solid var(--ag-border); }
.ag-ceo-photo { position: relative; }
.ag-ceo-photo img, .ag-ceo-ph { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px rgba(18,41,26,.25); }
.ag-ceo-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ag-primary), var(--ag-dark)); }
.ag-ceo-ph .material-icons-round { font-size: 6rem; color: rgba(255,255,255,.25); }
.ag-ceo-name { position: absolute; inset-inline: 16px; bottom: -22px; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.12); text-align: center; border-bottom: 3px solid var(--ag-secondary); }
.ag-ceo-name strong { display: block; color: var(--ag-primary); font-size: 1.05rem; }
.ag-ceo-name span { color: var(--ag-text-light); font-size: .82rem; }
.ag-ceo-msg { position: relative; padding-top: 8px; }
.ag-quote { font-size: 4rem !important; color: rgba(229,169,39,.35); line-height: 1; display: block; margin-bottom: -10px; transform: scaleX(-1); }
.ag-ceo-sign { max-height: 80px; margin-top: 18px; }
@media (max-width: 991.98px) { .ag-ceo { grid-template-columns: 1fr; padding: 22px; gap: 44px; } .ag-ceo-photo { max-width: 320px; margin: 0 auto; width: 100%; } }

/* ---------- Chips / filters ---------- */
.ag-chips-bar { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-bottom: 24px; padding: 16px 20px; background: #fff; border-radius: 16px; border: 1.5px solid var(--ag-border); box-shadow: var(--ag-shadow); }
.ag-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ag-chips-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ag-primary); font-size: .85rem; margin-inline-end: 4px; }
.ag-chips-label .material-icons-round { font-size: 1.1rem; color: var(--ag-secondary); }
.ag-chip { padding: 6px 16px; border-radius: 99px; background: var(--ag-light-bg); color: var(--ag-text); font-size: .84rem; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; transition: var(--ag-transition); }
button.ag-chip { font-family: inherit; cursor: pointer; line-height: 1.6; }
.ag-chip:hover { border-color: var(--ag-primary); color: var(--ag-primary); }
.ag-chip.active { background: var(--ag-primary); color: #fff; }
.ag-tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; position: sticky; top: 76px; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); padding: 10px; border-radius: 14px; box-shadow: var(--ag-shadow); }
.ag-tabs-nav a { padding: 8px 18px; border-radius: 99px; color: var(--ag-primary); font-weight: 700; text-decoration: none; font-size: .88rem; }
.ag-tabs-nav a:hover { background: var(--ag-primary); color: #fff; }

/* ---------- Media ---------- */
.ag-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ag-gallery-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; display: block; }
.ag-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ag-gallery-item:hover img { transform: scale(1.08); }
.ag-gallery-item span { position: absolute; inset-inline: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .78rem; padding: 18px 10px 8px; }
.ag-video { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--ag-shadow); }
.ag-video iframe, .ag-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ag-video-cap { font-size: .88rem; font-weight: 600; color: var(--ag-primary); margin: 8px 2px 0; }
.ag-certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ag-cert { border: 1.5px solid var(--ag-border); border-radius: 14px; overflow: hidden; background: #fff; }
.ag-cert-img { display: block; height: 170px; background: var(--ag-light-bg); }
.ag-cert-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.ag-cert-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ag-cert-body h6 { font-weight: 800; color: var(--ag-primary); margin: 6px 0 2px; }
.ag-cert-body small { color: var(--ag-text-light); }

/* ---------- Project status ---------- */
.ag-proj-status { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-progress-head { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; }
.ag-progress-head strong { color: var(--ag-primary); }
.ag-progress-bar { height: 12px; background: var(--ag-light-bg); border-radius: 99px; overflow: hidden; }
.ag-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ag-primary), var(--ag-secondary)); border-radius: 99px; }

/* ---------- Share ---------- */
.ag-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 20px; background: #fff; border: 1.5px solid var(--ag-border); border-radius: 16px; box-shadow: var(--ag-shadow); }
.ag-share-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ag-primary); margin-inline-end: 6px; }
.ag-sh { display: inline-flex; align-items: center; gap: 4px; padding: 7px 16px; border-radius: 99px; color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, opacity .2s; font-family: inherit; }
.ag-sh:hover { transform: translateY(-2px); opacity: .9; color: #fff; }
.ag-sh .material-icons-round { font-size: 1rem; }
.ag-sh-tg { background: #229ED9; } .ag-sh-wa { background: #25D366; } .ag-sh-ei { background: #EE7F22; }
.ag-sh-li { background: #0A66C2; } .ag-sh-x { background: #111; } .ag-sh-copy { background: var(--ag-primary); }

/* ---------- 404 ---------- */
.ag-err { min-height: 100vh; display: flex; align-items: center; padding: 130px 0 70px; background: radial-gradient(circle at 80% 20%, #2f6a32 0%, var(--ag-dark) 65%); color: #fff; position: relative; overflow: hidden; }
.ag-err-stars { position: absolute; inset: 0; background-image: radial-gradient(rgba(229,169,39,.5) 1px, transparent 1.5px); background-size: 46px 46px; opacity: .25; }
.ag-err .container { position: relative; }
.ag-err-art { width: 100%; max-width: 560px; display: block; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.ag-err-num { font: 900 118px/1 Montserrat, Vazirmatn, sans-serif; fill: #E5A927; letter-spacing: 6px; }
.ag-err-cart { animation: agCart 5s ease-in-out infinite; }
@keyframes agCart { 0%,100% { transform: translateX(0); } 50% { transform: translateX(26px); } }
.ag-err-pick { animation: agPick 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes agPick { 0%,100% { transform: translate(410px,120px) rotate(0); } 40% { transform: translate(410px,120px) rotate(-22deg); } 55% { transform: translate(410px,120px) rotate(6deg); } }
.ag-err-spark { animation: agSpark 1.6s ease-in-out infinite; }
@keyframes agSpark { 0%,45% { opacity: 0; } 55% { opacity: 1; } 100% { opacity: 0; } }
.ag-err-tag { display: inline-block; background: rgba(229,169,39,.18); color: var(--ag-secondary); border: 1px solid rgba(229,169,39,.4); padding: 5px 16px; border-radius: 99px; font-weight: 700; font-size: .85rem; }
.ag-err-text h1 { font-weight: 900; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 18px 0 14px; color: #fff; }
.ag-err-text p { color: rgba(255,255,255,.78); line-height: 2.1; max-width: 520px; }
.lang-fa .ag-err-text p { margin-inline: auto 0; }
@media (max-width: 991.98px) { .ag-err-text p { margin-inline: auto !important; } }
.ag-err-search { display: flex; max-width: 460px; margin: 24px 0; background: #fff; border-radius: 99px; padding: 5px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
@media (max-width: 991.98px) { .ag-err-search { margin: 24px auto; } }
.ag-err-search input { flex: 1; border: 0; outline: 0; padding: 0 18px; font-family: inherit; background: transparent; min-width: 0; }
.ag-err-search button { border: 0; background: var(--ag-secondary); color: var(--ag-dark); width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ag-err-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 991.98px) { .ag-err-actions { justify-content: center; } }
.ag-err .ag-btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.ag-err .ag-btn-ghost:hover { background: #fff; color: var(--ag-primary); }
/* ===== v2.1 ===== */
/* Fonts: professional Persian (IBM Plex Sans Arabic) + English (Inter) */
:root {
  --font-fa: 'IBM Plex Sans Arabic', 'Vazirmatn', Tahoma, sans-serif;
  --font-en: 'Inter', 'Montserrat', 'Segoe UI', sans-serif;
}
body, button, input, select, textarea { font-family: var(--font-fa); }
body.lang-en, body.lang-en button, body.lang-en input, body.lang-en select, body.lang-en textarea { font-family: var(--font-en); }
body { letter-spacing: 0; }
.section-title, h1, h2, h3 { letter-spacing: -.2px; }

/* Header: white background + dark text once the page is scrolled */
#mainNav.scrolled { background: #fff !important; box-shadow: 0 4px 24px rgba(18, 41, 26, .10); }
#mainNav.scrolled .navbar-toggler, #mainNav.scrolled .navbar-toggler .material-icons-round { color: #1f2937; }
#mainNav.scrolled .brand-text { color: var(--ag-primary); }
#mainNav.scrolled .ag-brand-slogan { text-shadow: none; color: #b7830f; }
@media (min-width: 1200px) {
  #mainNav.scrolled .navbar-nav .nav-link { color: #1f2937 !important; }
  #mainNav.scrolled .navbar-nav .nav-link:hover,
  #mainNav.scrolled .ag-dd:hover > .nav-link,
  #mainNav.scrolled .ag-dd.show > .nav-link { color: var(--ag-primary) !important; background: rgba(41, 92, 43, .07); }
  #mainNav.scrolled .navbar-search-icon-btn { color: #1f2937; background: rgba(0, 0, 0, .05); border-color: rgba(0, 0, 0, .12); }
  #mainNav.scrolled .btn-lang { color: #1f2937; background: rgba(0, 0, 0, .04); border-color: rgba(0, 0, 0, .18); }
  #mainNav.scrolled .btn-lang:hover { color: #fff; background: var(--ag-primary); border-color: var(--ag-primary); }
  #mainNav.scrolled .btn-nav-user { color: #1f2937; }
}

/* Home: services cards (from services submenu) */
.ag-svc-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; transition: transform .3s, box-shadow .3s; }
.ag-svc-card:hover { transform: translateY(-6px); color: inherit; }
.ag-svc-card p { flex: 1; }
.ag-svc-emoji { font-size: 1.9rem; line-height: 1; }
.ag-svc-img { width: 42px; height: 42px; object-fit: contain; }

/* HSE management: embedded sub-sections */
.ag-embedded { margin-top: 30px; padding-top: 26px; border-top: 2px dashed var(--ag-border); }
.ag-embedded-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ag-embedded-title h3 { font-size: 1.15rem; font-weight: 800; color: var(--ag-primary); margin: 0; }
.ag-embedded-title .material-icons-round { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(41, 92, 43, .1); color: var(--ag-primary); font-size: 1.3rem; }

/* Image protection (deters casual saving) */
img { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }
.navbar-brand img, .ag-brand img, footer img { user-select: none; -webkit-user-select: none; }
/* v2.2 hero arrows: correct direction on the English (LTR) site, themed colour */
.hero-next, .hero-prev { color: #fff !important; }
.hero-next .material-icons-round, .hero-prev .material-icons-round { font-size: 1.7rem; color: #fff; }
.lang-en .hero-next .material-icons-round, .lang-en .hero-prev .material-icons-round,
html[dir="ltr"] .hero-next .material-icons-round, html[dir="ltr"] .hero-prev .material-icons-round { transform: scaleX(-1); display: inline-block; }

/* v2.2 slogan band sits below the stats card (the card overlaps upward) */
.stats-section + .ag-slogan-band, .ag-slogan-band { margin-top: 50px; }.ag-flip { display: inline-block; transform: scaleX(-1); }
/* v2.4 */
/* Home: crisp vector logo in the about block, badge no longer covers it */
.ag-about-logo { background: #fff; border-radius: 24px; box-shadow: var(--ag-shadow-lg); padding: 40px 40px 70px; display: flex; align-items: center; justify-content: center; }
.ag-about-logo img { width: 100%; max-width: 360px; height: auto; }
.about-image-wrap .about-badge-float { bottom: -22px !important; }
/* Uniform service icons */
.ag-svc-icon { width: 64px; height: 64px; border-radius: 18px; display: flex !important; align-items: center; justify-content: center; margin: 0 auto 16px; background: linear-gradient(135deg, var(--ag-primary), #3D7A40); box-shadow: 0 10px 22px rgba(41,92,43,.25); }
.ag-svc-icon .material-icons-round { color: #fff; font-size: 2rem; }
.service-card .ag-svc-icon { margin: 0 0 18px; }
/* Hero: no text ghosting while slides cross-fade */
.hero-swiper .swiper-slide .container { transition: opacity .35s ease; }
.hero-swiper .swiper-slide:not(.swiper-slide-active) .container { opacity: 0; }
/* Faster, gap-free scroll animations */
[data-aos] { transition-duration: .45s !important; }
[data-aos][data-aos-delay] { transition-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) { [data-aos] { opacity: 1 !important; transform: none !important; } }
/* Home mini map */
.ag-home-map-wrap { max-width: 980px; margin: 0 auto; }
.ag-home-map { height: 440px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); border: 4px solid rgba(255,255,255,.15); }
@media (max-width: 767.98px) { .ag-home-map { height: 320px; } }
/* Org chart (about/organization default content) */
.ag-org { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 10px 0 20px; }
.ag-org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ag-org-box { background: #fff; border: 2px solid var(--ag-border); border-radius: 12px; padding: 10px 16px; font-weight: 700; font-size: .9rem; color: var(--ag-primary); text-align: center; min-width: 150px; }
.ag-org-box.lead { background: var(--ag-primary); color: #fff; border-color: var(--ag-primary); }
.ag-org-box.gold { background: rgba(229,169,39,.14); border-color: rgba(229,169,39,.5); color: #7a5306; }
.ag-org-arrow { color: var(--ag-secondary); font-size: 1.4rem; line-height: 1; }
/* v2.5 branded news images: show the whole design, no duplicate category chip */
.news-card-img:has(img[src*="/branded/"]) { aspect-ratio: 2 / 1; height: auto !important; }
.news-card-img:has(img[src*="/branded/"]) img { width: 100%; height: 100%; object-fit: cover; }
.news-card-img:has(img[src*="/branded/"]) .news-category { display: none; }
/* v2.6 branded everywhere: any frame holding a branded news image keeps the 2:1 design ratio */
:where(div, a, figure, picture):has(> img[src*="/news/branded/"]) { aspect-ratio: 2 / 1; height: auto !important; overflow: hidden; }
:where(div, a, figure, picture):has(> img[src*="/news/branded/"]) > img { width: 100%; height: 100% !important; object-fit: cover; object-position: center; }
:where(div, a, figure, picture):has(> img[src*="/news/branded/"]) > .news-category { display: none; }
/* v2.7 */
@media (max-width: 1199.98px) {
  body.ag-menu-open { overflow: hidden; }
  body.ag-menu-open::after { content: ''; position: fixed; inset: 0; background: rgba(8, 20, 12, .55); z-index: 1029; backdrop-filter: blur(2px); }
  body.ag-menu-open #mainNav { z-index: 1031; }
}
.loader-brand { font-size: clamp(1.25rem, 4.5vw, 2rem) !important; letter-spacing: 1px !important; }
/* logout is a POST form now; keep the old link look */
.ag-logout-form { display: contents; margin: 0; }
.ag-logout-form button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: inherit; }
.ag-logout-form button.dash-nav-item { width: 100%; }