/* Modern header, footer and home page. Everything is scoped under .hm-* so the old theme
   styles of the inner pages are not affected. Uses logical properties for RTL and LTR. */
:root{--hm-green:#0e4a45;--hm-green-2:#0a3733;--hm-gold:#d5ae4a;--hm-ink:#101b1a;--hm-muted:#5d6b69;--hm-line:#e4eae8;--hm-soft:#f4f7f6;--hm-r:20px}
.hm,.hm *{box-sizing:border-box}
.hm{color:var(--hm-ink);line-height:1.9}
[dir=rtl] .hm,[dir=rtl] .hm button,[dir=rtl] .hm input{font-family:IRANSans,Tahoma,sans-serif}
[dir=ltr] .hm,[dir=ltr] .hm button,[dir=ltr] .hm input{font-family:Roboto,system-ui,-apple-system,"Segoe UI",sans-serif}
.hm h1,.hm h2,.hm h3,.hm h4{font-family:inherit;color:inherit;margin:0;letter-spacing:0;text-transform:none}
.hm p,.hm ul,.hm figure,.hm form{margin:0;padding:0}.hm ul{list-style:none}
.hm a{color:inherit;text-decoration:none}.hm img{display:block;max-width:100%}
.hm svg{width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
[dir=ltr] .hm .hm-arrow{transform:scaleX(-1)}
.hm-wrap{width:min(1180px,100% - 40px);margin-inline:auto}

.hm-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 24px;border-radius:999px;font-size:15px;font-weight:700;line-height:1.6;border:1px solid transparent;cursor:pointer;transition:.2s;background:transparent}
.hm a.hm-primary,.hm button.hm-primary{background:var(--hm-green);color:#fff}.hm .hm-primary:hover{background:var(--hm-green-2)}
.hm .hm-outline{border-color:var(--hm-line);background:#fff;color:var(--hm-ink)}.hm .hm-outline:hover{border-color:var(--hm-green)}
.hm .hm-small{padding:7px 18px;font-size:14px}

/* header */
.hm-header{position:sticky;top:0;z-index:999;background:#fff;border-bottom:1px solid var(--hm-line)}
.hm-bar{display:flex;align-items:center;gap:24px;min-height:76px;width:min(1280px,100% - 32px);margin-inline:auto}
.hm-logo{display:block;background:var(--hm-green);border-radius:12px;padding:8px 14px;flex:none}.hm-logo img{height:30px;width:auto}
.hm-menu{display:flex;align-items:center;gap:4px}
.hm-menu>li{position:relative}
.hm-top{display:flex;align-items:center;gap:6px;border:0;background:none;color:var(--hm-ink);font-size:14.5px;font-weight:500;padding:10px 10px;cursor:pointer;white-space:nowrap;line-height:1.6}
.hm a.hm-top:hover,.hm-top:hover{color:var(--hm-green)}
.hm-top.hm-has::after{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg) translateY(-2px);opacity:.6}
.hm .hm-sub{position:absolute;inset-inline-start:0;top:100%;min-width:260px;max-height:calc(100vh - 90px);overflow:auto;background:#fff;border:1px solid var(--hm-line);border-radius:16px;padding:8px;box-shadow:0 24px 48px -24px rgba(10,55,51,.35);display:none}
.hm-sub a{display:block;padding:7px 12px;border-radius:10px;font-size:14px}
.hm-sub a:hover,.hm-sub a:focus-visible{background:var(--hm-soft);color:var(--hm-green)}
.hm-menu>li.open>.hm-sub{display:block}
.hm-tools{margin-inline-start:auto;display:flex;align-items:center;gap:8px}
.hm-header .hm-burger{display:none}

/* home */
.hm-home{overflow-x:clip}
.hm-hero{padding-top:32px}
.hm-hero-top{display:grid;grid-template-columns:1.25fr 1fr;gap:48px;align-items:end;margin-bottom:36px}
.hm-tag{display:inline-flex;align-items:center;gap:8px;color:var(--hm-green);font-weight:700;font-size:14px;background:var(--hm-soft);border-radius:999px;padding:5px 16px;margin-bottom:18px}
.hm-tag::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--hm-gold)}
.hm h1{font-size:clamp(30px,4.4vw,56px);line-height:1.45;font-weight:900;text-wrap:balance}
.hm-hero-top p{color:var(--hm-muted);font-size:17px;margin-bottom:24px}
.hm-actions{display:flex;gap:12px;flex-wrap:wrap}
.hm-hero-img{border-radius:28px;overflow:hidden;height:clamp(240px,52vh,520px)}
.hm-hero-img img{width:100%;height:100%;object-fit:cover}
.hm-quick{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}
.hm-quick-item{display:flex;align-items:center;gap:14px;border:1px solid var(--hm-line);border-radius:var(--hm-r);padding:12px;transition:.2s}
.hm-quick-item:hover{border-color:var(--hm-green);transform:translateY(-3px)}
.hm-quick-item>a:first-child{display:flex;align-items:center;gap:14px;flex:1;min-width:0}
.hm-quick img{width:88px;height:66px;object-fit:cover;border-radius:12px;flex:none}
.hm-quick b{display:block}.hm-quick small{color:var(--hm-muted);display:block}
.hm-play{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--hm-soft);color:var(--hm-green)!important;flex:none}
.hm-section{padding-top:96px}
.hm-head{display:flex;justify-content:space-between;align-items:end;gap:24px;flex-wrap:wrap;margin-bottom:32px}
.hm h2{font-size:clamp(23px,2.7vw,34px);line-height:1.6;font-weight:900;text-wrap:balance}
.hm-calls{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.hm-call{border:1px solid var(--hm-line);border-radius:var(--hm-r);overflow:hidden;display:flex;flex-direction:column;background:#fff}
.hm-call img{width:100%;aspect-ratio:1280/673;object-fit:cover}
.hm-call div{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 20px}
.hm-call h3{font-size:16px;font-weight:700}.hm-call span{display:flex;gap:8px;align-items:center}
.hm-split{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.hm-split p{color:var(--hm-muted);text-align:justify;margin:18px 0 26px}
.hm-split figure img{border-radius:28px;width:100%;height:440px;object-fit:cover}
.hm-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.hm-card{background:var(--hm-soft);border-radius:var(--hm-r);padding:28px;display:flex;flex-direction:column;gap:12px;transition:.25s;border:1px solid transparent}
.hm-card:hover{background:#fff;border-color:var(--hm-line);box-shadow:0 20px 40px -24px rgba(14,74,69,.35);transform:translateY(-4px)}
.hm-icon{width:52px;height:52px;border-radius:14px;background:var(--hm-green);color:var(--hm-gold);display:grid;place-items:center;font-size:20px}
.hm-card h3{font-size:18px;font-weight:700}.hm-card p{color:var(--hm-muted);font-size:14px;flex:1}
.hm-more{display:flex;align-items:center;gap:8px;color:var(--hm-green);font-weight:700;font-size:14px}
.hm-dark{margin-top:96px;background:var(--hm-green);color:#fff;padding:88px 0}
.hm-dark .hm-split{align-items:start}.hm-dark p{color:rgba(255,255,255,.75)}
.hm-plats{display:grid;gap:20px}
.hm-plats div{display:flex;justify-content:space-between;gap:16px;font-size:15px;margin-bottom:8px}.hm-plats b{color:var(--hm-gold)}
.hm-plats i{display:block;height:6px;border-radius:9px;background:linear-gradient(to right,var(--hm-gold) var(--v),rgba(255,255,255,.14) var(--v))}
[dir=rtl] .hm-plats i{background:linear-gradient(to left,var(--hm-gold) var(--v),rgba(255,255,255,.14) var(--v))}
.hm-chips{display:flex;gap:8px;flex-wrap:wrap}
.hm-chips button{border:1px solid var(--hm-line);background:#fff;color:var(--hm-ink);border-radius:999px;padding:5px 18px;font-size:14px;cursor:pointer}
.hm-chips button.on{background:var(--hm-green);border-color:var(--hm-green);color:#fff}
.hm-gallery{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:250px;grid-auto-flow:dense;gap:16px}
.hm-gallery figure{position:relative;border-radius:var(--hm-r);overflow:hidden}.hm-gallery .wide{grid-column:span 2}.hm-gallery figure[hidden]{display:none}
.hm-gallery .lightimg{display:block;position:static;opacity:1;visibility:visible;width:100%;height:100%;margin:0;transform:none;cursor:zoom-in;background:none}
.hm-gallery img{width:100%;height:100%;object-fit:cover;transition:.5s}.hm-gallery figure:hover img{transform:scale(1.06)}
.hm-gallery figcaption{position:absolute;inset-inline:12px;bottom:12px;background:rgba(255,255,255,.94);border-radius:12px;padding:5px 14px;font-weight:700;font-size:14px;pointer-events:none}
.hm-center{text-align:center}
.hm-world h2{margin:20px 0 32px}
.hm-bigplay{display:inline-grid;place-items:center;width:72px;height:72px;border-radius:50%;background:var(--hm-gold);color:var(--hm-green-2)!important;font-size:24px}
.hm-partners{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:rgba(255,255,255,.12);border-radius:var(--hm-r);overflow:hidden}
.hm-partners a{display:block}
.hm-partners img{width:100%;height:130px;object-fit:contain;padding:24px;background:var(--hm-green)}
.hm-legacy{max-width:820px;text-align:center;margin-inline:auto}.hm-legacy p{color:var(--hm-muted);margin:14px 0 24px}
.hm-stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--hm-line);border-radius:28px;margin-top:36px}
.hm-stats div{padding:28px;text-align:center}.hm-stats div+div{border-inline-start:1px solid var(--hm-line)}
.hm-stats strong{display:block;font-size:42px;color:var(--hm-green);font-weight:900;direction:ltr}.hm-stats span{color:var(--hm-muted)}

/* newsletter + footer */
.hm-newsbox{margin-top:96px}
.hm-news{background:var(--hm-soft);border-radius:28px;padding:44px;display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}
.hm-news p{color:var(--hm-muted)}
.hm .hm-news-field{display:flex;gap:8px;background:#fff;padding:8px;border-radius:999px;border:1px solid var(--hm-line)}
.hm-news input{flex:1;min-width:0;border:0;outline:0;padding-inline:16px;font-size:15px;background:transparent}
.hm-footer{margin-top:96px;background:var(--hm-green-2);color:rgba(255,255,255,.78);padding:60px 0 24px;font-size:14px}
.hm-footer .hm-cols{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.1fr;gap:32px}
.hm-footer h4{color:#fff;margin-bottom:12px;font-size:16px;font-weight:700}
.hm-footer li a:hover{color:var(--hm-gold)}.hm-footer li{margin-bottom:4px}
.hm-footer .hm-logo{display:inline-block;background:none;padding:0;margin-bottom:12px}
.hm-footer .hm-about{text-align:justify}
.hm-social{display:flex;gap:10px;margin-top:16px}
.hm-social a{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(255,255,255,.22)}
.hm-social a:hover{background:var(--hm-gold);color:var(--hm-green-2)}
.hm-copy{border-top:1px solid rgba(255,255,255,.12);margin-top:36px;padding-top:18px;text-align:center}

.hm a:focus-visible,.hm button:focus-visible,.hm input:focus-visible{outline:2px solid var(--hm-gold);outline-offset:2px}

@media(max-width:1199px){
  .hm-header .hm-burger{display:inline-flex}
  .hm .hm-menu{display:none;position:absolute;top:100%;inset-inline:0;background:#fff;border-bottom:1px solid var(--hm-line);padding:8px 16px 16px;max-height:calc(100vh - 76px);overflow:auto}
  .hm .hm-menu.open{display:block}
  .hm-top{width:100%;justify-content:space-between;padding:12px 8px;font-size:15px}
  .hm .hm-sub{position:static;box-shadow:none;border:0;border-radius:12px;background:var(--hm-soft);max-height:none;min-width:0}
}
@media(max-width:1000px){
  .hm-hero-top,.hm-split,.hm-news,.hm-calls,.hm-quick{grid-template-columns:1fr}
  .hm-split{gap:36px}.hm-cards,.hm-gallery{grid-template-columns:repeat(2,1fr)}
  .hm-partners{grid-template-columns:repeat(2,1fr)}.hm-footer .hm-cols{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .hm-bar{gap:10px}.hm-tools .hm-primary{display:none}.hm-hero{padding-top:28px}
  .hm-cards,.hm-stats,.hm-footer .hm-cols{grid-template-columns:1fr}
  .hm-stats div+div{border-inline-start:0;border-top:1px solid var(--hm-line)}
  .hm-gallery{grid-auto-rows:160px;gap:10px}.hm-news{padding:24px}
  .hm .hm-news-field{flex-direction:column;border-radius:20px}.hm-news input{padding:10px}
  .hm-section{padding-top:64px}.hm-dark,.hm-newsbox,.hm-footer{margin-top:64px}.hm-dark{padding:56px 0}
  .hm-split figure img{height:260px}
}
@media(prefers-reduced-motion:reduce){.hm,.hm *{transition:none!important}}

/* Result of a submitted form */
.hm-notice { padding-block: 14px; font-weight: 700; }
.hm-notice.ok { background: #e7f4ec; color: #14532d; }
.hm-notice.bad { background: #fdecec; color: #8a1c1c; }

/* The BRICS logo is dark grey: show it white like the others */
.hm-partners .hm-white { background: var(--hm-green); }
.hm-partners .hm-white img { background: none; filter: brightness(0) invert(1); }

/* Main banner slider */
.hm-slider { position: relative; }
.hm-slides { display: grid; }
.hm-slide { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.hm-slide.active { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.hm-slide .hm-hero-top { flex: 1; align-content: center; margin-bottom: 24px; grid-template-columns: 1.7fr 1fr; }
.hm .hm-slide h1, .hm .hm-slide h2 { font-size: clamp(27px, 3.4vw, 44px); font-weight: 900; line-height: 1.45; text-wrap: balance; }
/* Leave room so the whole slide, with its controls, fits on one screen. */
.hm-slide .hm-hero-img { height: clamp(280px, calc(100vh - 420px), 520px); }
.hm-slide .hm-hero-img img { transform: scale(1.12); transition: transform 1.2s ease; }
.hm-slide.active .hm-hero-img img { transform: scale(1); transition: transform 6s cubic-bezier(.2, .6, .3, 1); }
.hm-slide.active .hm-hero-img { animation: hm-reveal 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.hm-slide.active .hm-hero-top > div > * { animation: hm-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hm-slide.active .hm-hero-top h1, .hm-slide.active .hm-hero-top h2 { animation-delay: .1s; }
.hm-slide.active .hm-hero-top p { animation-delay: .25s; }
.hm-slide.active .hm-actions { animation-delay: .38s; }
@keyframes hm-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes hm-reveal { from { clip-path: inset(6% 4% round 28px); } to { clip-path: inset(0 0 round 28px); } }

.hm-controls { position: absolute; z-index: 2; inset-inline: 0; bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 10px; width: max-content; max-width: 100%; margin-inline: auto; padding: 6px; border-radius: 99px; background: rgba(10, 55, 51, .72); backdrop-filter: blur(8px); }
.hm-controls button { border: 0; padding: 0; background: none; cursor: pointer; }
.hm-controls .hm-nav { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.hm-controls .hm-nav:hover { background: rgba(255, 255, 255, .18); }
.hm-controls .hm-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
[dir=rtl] .hm-controls .hm-nav svg { transform: scaleX(-1); }
.hm-dots { display: flex; gap: 6px; }
.hm-dots button { height: 20px; width: 20px; display: flex; align-items: center; transition: width .35s; }
.hm-dots button::before { content: none; }
.hm-dots i { display: block; position: relative; overflow: hidden; width: 100%; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .4); }
.hm-dots button.active { width: 52px; }
.hm-dots button.active i::after { content: ""; position: absolute; inset: 0; background: var(--hm-gold); transform-origin: left; animation: hm-progress 5s linear forwards; }
[dir=rtl] .hm-dots button.active i::after { transform-origin: right; }
@keyframes hm-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Hold the slide while someone is about to click, uses the keyboard or watches a video. */
.hm-slider.paused .hm-dots i::after,
.hm-slider:has(.hm-actions:hover, .hm-controls:hover, :focus-visible) .hm-dots i::after { animation-play-state: paused; }

@media (max-width: 1000px) {
  .hm-slide .hm-hero-top { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  /* Posters have text in them, so keep their shape on narrow screens. */
  .hm-slide .hm-hero-img { height: auto; aspect-ratio: 1280 / 673; border-radius: 18px; }
  .hm-controls { position: static; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-slide, .hm-slide * { animation: none !important; transition: none !important; }
  .hm-slide .hm-hero-img img { transform: none; }
  .hm-dots button.active i::after { animation: none !important; transform: none; }
}
