/* ==========================================================================
   HOSTMAFIYA  -  SINGLE ANNOUNCEMENT  (index.php?rp=/announcements/{id}/{title}.html)
   body.hm-skin.hm-ann.hm-annx.hm-annv  -  loaded by header.tpl on 'viewannouncement' only,
   after custom.css and hm-announce.css (page background, sidebars, grid come from there).
   Markup: viewannouncement.tpl  +  the announcement's own HTML (.hm-guide / .hm-steps / .hm-note).
   ========================================================================== */

/* ---------- Page frame: no hero on this page -------------------------------- */
body.hm-annv section#main-body { padding-top: clamp(20px, 2.4vw, 34px); }
body.hm-annv div.header-lined { margin: 0 0 12px; }

/* breadcrumb: plain line above the card (gold links, white current page) */
body.hm-annv .breadcrumb {
    flex-wrap: wrap;
    padding: 0 4px;
    font-size: 14px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
body.hm-annv .breadcrumb > li,
body.hm-annv .breadcrumb > li.active { color: #fff; }
body.hm-annv .breadcrumb > li a { color: #FFD21F; }
body.hm-annv .breadcrumb > li a:hover { color: #fff; }
body.hm-annv .breadcrumb > li + li::before { background-color: #FFD21F; }
body.hm-annv .breadcrumb > li:first-child a::before { width: 16px; height: 16px; background-color: #FFD21F; }
body.hm-annv .breadcrumb > li:first-child a::after { font-size: 14px; }

/* ---------- Card ------------------------------------------------------------ */
.hm-av {
    overflow: hidden;
    color: #241014;
    font-size: 15px;
    line-height: 1.6;
    background: #FCEFED;
    border: 2px solid #E5092A;
    border-radius: 22px;
    box-shadow: 0 0 20px rgba(229, 9, 42, .38), 0 12px 28px rgba(40, 0, 6, .28);
}

/* red banner */
.hm-av__banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 150px;
    padding: 22px 26px 30px 36px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 120% at 82% 50%, rgba(255, 40, 50, .45) 0%, rgba(255, 40, 50, 0) 70%),
        linear-gradient(100deg, #5a0207 0%, #8e0410 45%, #c3081a 100%);
}
/* gold swoosh, bottom-left corner */
.hm-av__banner::before {
    content: "";
    position: absolute;
    left: -70px;
    bottom: -92px;
    width: 220px;
    height: 120px;
    background: linear-gradient(90deg, #FFD21F, #f0a800);
    border-radius: 50%;
    transform: rotate(-12deg);
    opacity: .95;
}
.hm-av__banner::after {
    content: "";
    position: absolute;
    left: -50px;
    bottom: -104px;
    width: 230px;
    height: 120px;
    background: #8e0410;
    border-radius: 50%;
    transform: rotate(-12deg);
}
.hm-av__head { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.hm-av__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px;
    color: #1a0a0c;
    font-size: 14px;
    font-weight: 700;
    background: #FFD21F;
    border-radius: 20px;
}
.hm-av__title {
    margin: 12px 0 0;
    color: #fff;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(22px, 2.3vw, 31px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}
.hm-av-gold { color: #FFD21F; }
.hm-av__art {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 34%;
    max-width: 330px;
    text-align: right;
}
.hm-av__art img { display: inline-block; max-width: 100%; max-height: 172px; height: auto; object-fit: contain; }

/* date bar */
.hm-av__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    margin: 16px 26px 0;
    padding: 10px 18px;
    background: #F8E0E0;
    border-radius: 12px;
}
.hm-av__date { display: inline-flex; align-items: center; gap: 10px; color: #241014; font-size: 14px; font-weight: 700; }
.hm-av__date i { color: #E5092A; font-size: 17px; }
.hm-av__tweet { display: inline-flex; }
.hm-av__edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 4px 14px;
    color: #E5092A;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: #FFF8F6;
    border: 1.5px solid #E5092A;
    border-radius: 8px;
}
.hm-av__edit:hover,
.hm-av__edit:focus { color: #fff; text-decoration: none; background: #E5092A; }

/* ---------- Announcement text (anything typed in the admin editor) ----------- */
.hm-av__body { padding: 18px 26px 4px; overflow-wrap: break-word; }
.hm-av__body > :first-child { margin-top: 0; }
.hm-av__body p { margin: 0 0 14px; }
.hm-av__body p:empty { display: none; }
.hm-av__body strong { color: #1a0a0c; }
.hm-av__body a { color: #E5092A; font-weight: 600; }
.hm-av__body h1,
.hm-av__body h2,
.hm-av__body h3,
.hm-av__body h4 {
    margin: 22px 0 10px;
    color: #1a0a0c;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.25;
}
.hm-av__body h1 { font-size: 26px; }
.hm-av__body h2 { font-size: 23px; }
.hm-av__body h3 { font-size: 20px; }
.hm-av__body h4 { font-size: 17px; }
.hm-av__body h2::after,
.hm-av__body > h3::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 8px; background: #E5092A; border-radius: 3px; }
.hm-av__body img { max-width: 100%; height: auto; border-radius: 12px; }
.hm-av__body ul { margin: 0 0 16px; padding: 0; list-style: none; }
.hm-av__body ul > li { position: relative; margin: 0 0 7px; padding-left: 28px; }
.hm-av__body ul > li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    color: #1a0a0c;
    font-family: "Font Awesome 5 Free";
    font-size: 10px;
    font-weight: 900;
    line-height: 18px;
    text-align: center;
    background: #FFD21F;
    border-radius: 50%;
}
.hm-av__body ol { margin: 0 0 16px; padding-left: 22px; }
.hm-av__body ol > li { margin: 0 0 7px; padding-left: 4px; }
.hm-av__body ol > li::marker { color: #E5092A; font-weight: 800; }
.hm-av__body blockquote {
    margin: 0 0 16px;
    padding: 14px 18px;
    font-size: 15px;
    background: #FFF6D6;
    border: 0;
    border-left: 4px solid #FFD21F;
    border-radius: 10px;
}
.hm-av__body blockquote p:last-child { margin: 0; }
.hm-av__body table { width: 100%; margin: 0 0 16px; border-collapse: collapse; background: #FFF8F6; border-radius: 10px; overflow: hidden; }
.hm-av__body th { padding: 9px 12px; color: #fff; background: #c3081a; text-align: left; }
.hm-av__body td { padding: 9px 12px; border-top: 1px solid #f6d8db; }
.hm-av__body hr { margin: 20px 0; border: 0; border-top: 1px dashed #efb7bd; }

/* --- guide banner (.hm-guide) --- */
.hm-av__body .hm-guide {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 6px 0 20px;
    padding: 14px 26px;
    background: #F8E0E0;
    border-radius: 14px;
}
.hm-av__body .hm-guide__img { flex: 0 1 52%; margin: 0; text-align: center; }
.hm-av__body .hm-guide__img img { max-height: 150px; border-radius: 0; }
.hm-av__body .hm-guide__txt { flex: 1 1 48%; padding-left: 26px; border-left: 2px solid #E5092A; }
.hm-av__body .hm-guide__txt h3 { margin: 0 0 12px; font-size: 24px; font-weight: 700; }
.hm-av__body .hm-guide__txt h3::after { content: none; }
.hm-av__body .hm-guide__txt h3 strong { display: block; color: #E5092A; font-size: 1.22em; font-weight: 800; }
.hm-av__body .hm-pills {
    display: inline-flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 6px 8px;
    background: #FFD21F;
    border-radius: 20px;
}
.hm-av__body .hm-pills span { padding: 0 14px; color: #1a0a0c; font-size: 14px; font-weight: 700; }
.hm-av__body .hm-pills span + span { border-left: 1.5px solid rgba(26, 10, 12, .45); }

/* --- numbered steps (.hm-steps > .hm-step.hm-ic-*) --- */
.hm-av__body .hm-steps { counter-reset: hmstep; margin: 0 0 16px; }
.hm-av__body .hm-step {
    position: relative;
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: center;
    gap: 18px;
    min-height: 76px;
    margin: 0 0 12px;
    padding: 0 0 0 48px;
    background: #F9E6E5;
    border-radius: 12px;
    counter-increment: hmstep;
}
.hm-av__body .hm-step::before {
    content: counter(hmstep);
    position: absolute;
    left: 12px;
    top: 14px;
    width: 26px;
    height: 26px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 26px;
    text-align: center;
    background: #E5092A;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #FCEFED, 0 2px 6px rgba(229, 9, 42, .4);
}
.hm-av__body .hm-step h4 {
    display: flex;
    align-items: center;
    gap: 16px;
    align-self: stretch;
    margin: 0;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 800;
    background: #F6DCDC;
}
.hm-av__body .hm-step h4::before {
    flex: 0 0 auto;
    width: 46px;
    color: #E5092A;
    font-family: "Font Awesome 5 Free";
    font-size: 30px;
    font-weight: 900;
    text-align: center;
}
.hm-av__body .hm-ic-review h4::before { content: "\f002"; }
.hm-av__body .hm-ic-kyc h4::before    { content: "\f2c2"; }
.hm-av__body .hm-ic-change h4::before { content: "\f2f1"; }
.hm-av__body .hm-ic-refund h4::before { content: "\f3ed"; }
.hm-av__body .hm-ic-warn h4::before   { content: "\f071"; }
.hm-av__body .hm-ic-help h4::before   { content: "\f590"; }
.hm-av__body .hm-ic-info h4::before   { content: "\f05a"; }
.hm-av__body .hm-ic-check h4::before  { content: "\f058"; }
.hm-av__body .hm-step ul { margin: 0; padding: 10px 16px 10px 0; font-size: 13.5px; line-height: 1.5; }
.hm-av__body .hm-step ul > li { margin: 0 0 4px; }
.hm-av__body .hm-step ul > li:last-child { margin: 0; }
.hm-av__body .hm-step ul > li::before { top: 1px; }
.hm-av__body .hm-step p { margin: 0; padding: 10px 16px 10px 0; }

/* --- reminder box (.hm-note) --- */
.hm-av__body .hm-note {
    position: relative;
    margin: 4px 0 16px;
    padding: 14px 18px 14px 66px;
    background: linear-gradient(90deg, #FFF0C2, #FFF8E0);
    border-radius: 12px;
}
.hm-av__body .hm-note::before {
    content: "\f05a";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    color: #fff;
    font-family: "Font Awesome 5 Free";
    font-size: 18px;
    font-weight: 900;
    line-height: 38px;
    text-align: center;
    background: #c3081a;
    border-radius: 8px;
}
.hm-av__body .hm-note p { margin: 0; }
.hm-av__body .hm-note strong:first-child { margin-right: 6px; color: #c3081a; }

/* ---------- Social + buttons --------------------------------------------------- */
.hm-av__social { padding: 0 26px 10px; }
.hm-av__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 26px 24px;
}
.hm-av__back,
.hm-av__print {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    border-radius: 24px;
    cursor: pointer;
}
.hm-av__back { color: #E5092A; background: #FFF8F6; border: 2px solid #E5092A; }
.hm-av__back:hover,
.hm-av__back:focus { color: #fff; text-decoration: none; background: #E5092A; }
.hm-av__print { color: #1a0a0c; background: #FFD21F; border: 2px solid #FFD21F; box-shadow: 0 6px 14px rgba(240, 180, 0, .35); }
.hm-av__print:hover,
.hm-av__print:focus { background: #ffdf55; outline: 0; }

/* ---------- Responsive -------------------------------------------------------- */
@media (max-width: 1199px) {
    .hm-av__body .hm-step { grid-template-columns: 250px 1fr; }
}
@media (max-width: 767px) {
    .hm-av { font-size: 14.5px; border-radius: 18px; }
    .hm-av__banner { flex-direction: column; align-items: flex-start; padding: 20px 18px 18px 22px; }
    .hm-av__art { width: 100%; max-width: none; text-align: center; }
    .hm-av__art img { max-height: 170px; }
    .hm-av__meta { margin: 14px 16px 0; padding: 10px 14px; }
    .hm-av__body { padding: 16px 16px 2px; }
    .hm-av__body .hm-guide { flex-direction: column; gap: 14px; padding: 16px; text-align: center; }
    .hm-av__body .hm-guide__img { flex-basis: auto; }
    .hm-av__body .hm-guide__txt { padding: 14px 0 0; border-left: 0; border-top: 2px solid #E5092A; }
    .hm-av__body .hm-guide__txt h3 { font-size: 20px; }
    .hm-av__body .hm-pills span { padding: 0 9px; font-size: 13px; }
    .hm-av__body .hm-step { grid-template-columns: 1fr; gap: 0; padding: 0; }
    .hm-av__body .hm-step::before { left: auto; right: 12px; top: 18px; }
    .hm-av__body .hm-step h4 { padding: 12px 46px 12px 14px; border-radius: 12px 12px 0 0; }
    .hm-av__body .hm-step h4::before { width: 36px; font-size: 24px; }
    .hm-av__body .hm-step ul,
    .hm-av__body .hm-step p { padding: 12px 14px; }
    .hm-av__body .hm-note { padding: 60px 16px 14px; }
    .hm-av__body .hm-note::before { top: 14px; margin-top: 0; }
    .hm-av__actions { padding: 10px 16px 20px; }
    .hm-av__back,
    .hm-av__print { padding: 8px 18px; font-size: 15px; }
}

/* ---------- Print: only the announcement ------------------------------------------ */
@media print {
    body.hm-annv { background: #fff !important; }
    body.hm-annv section#header,
    body.hm-annv section#main-menu,
    body.hm-annv section#footer,
    body.hm-annv .sidebar,
    body.hm-annv div.header-lined,
    body.hm-annv .hm-av__edit,
    body.hm-annv .hm-av__tweet,
    body.hm-annv .hm-av__social,
    body.hm-annv .hm-av__actions { display: none !important; }
    body.hm-annv section#main-body > .container > .row { display: block !important; }
    body.hm-annv .main-content { width: 100% !important; float: none !important; }
    .hm-av { border: 1px solid #E5092A; box-shadow: none; }
    .hm-av,
    .hm-av * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .hm-av__body .hm-step,
    .hm-av__body .hm-note,
    .hm-av__body .hm-guide { break-inside: avoid; }
    .hm-av a[href]::after { content: none !important; }
}

/* ---------- Pasted content clean-up ------------------------------------------------
   Text copied from Word / ChatGPT / web pages brings inline white backgrounds and
   fixed fonts/colours on every line. Neutralise them inside the announcement text only
   (the .hm-guide / .hm-steps / .hm-note blocks keep their own backgrounds). */
.hm-av__body p,
.hm-av__body span,
.hm-av__body div:not([class^="hm-"]):not([class*=" hm-"]),
.hm-av__body h1, .hm-av__body h2, .hm-av__body h3, .hm-av__body h4, .hm-av__body h5, .hm-av__body h6,
.hm-av__body ul, .hm-av__body ol, .hm-av__body li,
.hm-av__body strong, .hm-av__body b, .hm-av__body em, .hm-av__body font {
    background-color: transparent !important;
    background-image: none !important;
}
.hm-av__body span,
.hm-av__body font { font-family: inherit !important; font-size: inherit !important; }
.hm-av__body p,
.hm-av__body li,
.hm-av__body ul,
.hm-av__body ol,
.hm-av__body div:not([class^="hm-"]):not([class*=" hm-"]) { font-family: inherit !important; }
.hm-av__body h1, .hm-av__body h2, .hm-av__body h3, .hm-av__body h4 { font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif !important; }
.hm-av__body img[src=""],
.hm-av__body img:not([src]) { display: none; }
.hm-av__body p,
.hm-av__body li,
.hm-av__body ul,
.hm-av__body ol,
.hm-av__body div:not([class^="hm-"]):not([class*=" hm-"]) { font-size: inherit !important; line-height: inherit !important; color: inherit; }
.hm-av__body h1 { font-size: 26px !important; }
.hm-av__body h2 { font-size: 23px !important; }
.hm-av__body h3 { font-size: 20px !important; }
.hm-av__body h4 { font-size: 17px !important; }
.hm-av__body .hm-step ul,
.hm-av__body .hm-step li { font-size: 13.5px !important; line-height: 1.5 !important; }
.hm-av__body .hm-step h4 { font-size: 16px !important; }
.hm-av__body .hm-guide__txt h3 { font-size: 24px !important; }
.hm-av__body .hm-pills span { font-size: 14px !important; }
@media (max-width: 767px) {
    .hm-av__body .hm-guide__txt h3 { font-size: 20px !important; }
    .hm-av__body .hm-pills span { font-size: 13px !important; }
}
/* keep the design blocks' own backgrounds after the clean-up above */
.hm-av__body p.hm-pills { background: #FFD21F !important; }
.hm-av__body .hm-step h4 { background: #F6DCDC !important; }
.hm-av__body .hm-guide__img { background: transparent !important; }
