/* ==========================================================================
   HOSTMAFIYA  -  ANNOUNCEMENTS & NEWS  (index.php?rp=/announcements)
   body.hm-skin.hm-ann.hm-annx  -  loaded only on this page by header.tpl (after custom.css)
   custom.css "hm-ann" rules still style the shared parts; this file overrides them
   for the new design only (single announcement / KB pages are untouched).
   Markup: includes/hm-annx-hero.tpl + announcements.tpl
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&display=swap");

/* ---------- Page frame ----------------------------------------------------- */
body.hm-annx {
    overflow-x: hidden;
    /* shades of the hero image: bright red centre, deep maroon edges, diagonal light streaks */
    background:
        linear-gradient(118deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 16%, rgba(200, 20, 30, .26) 16.2%, rgba(150, 8, 18, .1) 24%, rgba(0, 0, 0, 0) 24.2%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(62deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 80%, rgba(200, 20, 30, .2) 80.2%, rgba(150, 8, 18, .08) 88%, rgba(0, 0, 0, 0) 88.2%, rgba(0, 0, 0, 0) 100%),
        radial-gradient(ellipse 70% 50% at 66% 14%, #a60108 0%, rgba(166, 1, 8, .55) 38%, rgba(166, 1, 8, 0) 72%),
        linear-gradient(180deg, #4a0104 0%, #5e0206 40%, #3e0103 100%);
    background-color: #490104;
    background-attachment: fixed;
}
body.hm-annx::before,
body.hm-annx::after { content: none !important; display: none !important; }
body.hm-annx section#main-body { padding: 0 0 clamp(40px, 4vw, 64px); }

/* ---------- Hero ----------------------------------------------------------- */
.hm-ax-hero { position: relative; z-index: 1; padding: clamp(16px, 2vw, 28px) 0 6px; }
.hm-ax-hero > .container { width: auto; max-width: 1400px; padding: 0 28px; }
.hm-ax-hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 230px;
    padding-left: clamp(0px, 3vw, 44px);
}
.hm-ax-hero__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    color: #FFD21F;
    font-size: 48px;
    background: rgba(40, 0, 6, .35);
    border: 3px solid #FFD21F;
    border-radius: 22px;
    box-shadow: 0 0 18px rgba(255, 210, 31, .35), inset 0 0 18px rgba(255, 210, 31, .12);
}
.hm-ax-hero__txt { position: relative; z-index: 2; flex: 1 1 auto; min-width: 0; padding-right: 470px; }
.hm-ax-hero__tag {
    display: inline-block;
    padding: 4px 18px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(180deg, #f5132f, #c4001b);
    border-radius: 20px;
}
.hm-ax-hero__title {
    margin: 8px 0 6px;
    color: #fff;
    font-family: "Montserrat", "Raleway", Arial, sans-serif;
    font-size: clamp(32px, 3.2vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    white-space: nowrap;
    text-shadow: 0 4px 16px rgba(30, 0, 5, .5);
}
.hm-ax-hero__title em { color: #FFD21F; font-style: normal; }
.hm-ax-hero__sub { max-width: 680px; margin: 0; color: #fff; font-size: 18px; line-height: 1.5; letter-spacing: .01em; }
.hm-ax-hero__art {
    position: absolute;
    right: -10px;
    bottom: -6px;
    z-index: 1;
    width: 520px;
    max-width: 40%;
    height: auto;
    pointer-events: none;
}

/* ---------- Breadcrumb (WHMCS page header) as a white pill ------------------ */
body.hm-annx div.header-lined { margin: 0 0 18px; }
body.hm-annx div.header-lined h1 { display: none; }
body.hm-annx .breadcrumb {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 10px 26px;
    font-size: 16px;
    background: #fff;
    border: 0;
    border-radius: 30px;
    box-shadow: 0 8px 22px rgba(30, 0, 5, .3);
}
body.hm-annx .breadcrumb > li,
body.hm-annx .breadcrumb > li a,
body.hm-annx .breadcrumb > li.active { color: #14080a; }
body.hm-annx .breadcrumb > li a:hover { color: #e3001b; }
body.hm-annx .breadcrumb > li + li::before { width: 10px; height: 10px; margin: 0 6px; background-color: #14080a; }
body.hm-annx .breadcrumb > li:first-child a::before { width: 20px; height: 20px; background-color: #14080a; }
body.hm-annx .breadcrumb > li:first-child a::after { font-size: 16px; }

/* ---------- Announcement card ---------------------------------------------- */
body.hm-annx div.announcement-single.hm-ax-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0 0 20px;
    padding: 26px 34px 26px 26px;
    overflow: hidden;
    color: #14080a;
    background: linear-gradient(100deg, #ffffff 0%, #fff6f7 55%, #ffeef0 100%);
    border: 2px solid rgba(255, 70, 90, .85);
    border-radius: 22px;
    box-shadow: 0 0 22px rgba(255, 30, 55, .35);
}
body.hm-annx div.announcement-single.hm-ax-card::before,
body.hm-annx div.announcement-single.hm-ax-card::after { display: none; }
.hm-ax-card__media {
    display: flex;
    flex: 0 0 340px;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    overflow: hidden;
    background: radial-gradient(ellipse 70% 70% at 45% 40%, #ffe6ea 0%, rgba(255, 230, 234, 0) 70%);
    border-radius: 16px;
}
.hm-ax-card__media img { display: block; width: 100%; height: auto; max-height: 280px; object-fit: contain; }
/* a real photo/banner from the announcement: fill the box nicely */
.hm-ax-card__media.has-img { align-self: stretch; background: #fff; box-shadow: 0 8px 20px rgba(30, 0, 5, .12); }
.hm-ax-card__media.has-img img { height: 100%; max-height: none; min-height: 260px; object-fit: cover; }

.hm-ax-card__body { flex: 1 1 auto; min-width: 0; }
.hm-ax-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 18px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(180deg, #f5132f, #c4001b);
    border-radius: 20px;
}
body.hm-annx div.announcement-single.hm-ax-card a.title {
    display: block;
    margin: 12px 0 14px;
    color: #14080a;
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
}
body.hm-annx div.announcement-single.hm-ax-card a.title:hover { color: #c4001b; }
.hm-ax-red { color: #e3001b; }
.hm-ax-card__text {
    margin: 0 0 20px;
    padding-left: 20px;
    color: #14080a;
    font-size: 17px;
    line-height: 1.65;
    border-left: 4px solid #e3001b;
}
body.hm-annx .hm-ax-card__text p { max-width: none; margin: 0 0 8px; color: #14080a; font-size: 17px; }
.hm-ax-card__text p:last-child { margin-bottom: 0; }
.hm-ax-card__text a { color: #e3001b; }

body.hm-annx .hm-ax-card .article-items.hm-ax-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 0;
    margin: 0;
    padding: 0;
    color: #14080a;
    font-size: 18px;
    background: none;
    border: 0;
}
body.hm-annx .hm-ax-card .hm-ax-card__foot > * + * { margin-left: 26px; padding-left: 26px; border-left: 2px solid #d9d9de; }
.hm-ax-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    color: #14080a;
    font-size: 19px;
    font-weight: 700;
    background: #FFD21F;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(242, 180, 0, .35);
    text-decoration: none;
    transition: filter .15s, transform .15s;
}
.hm-ax-more:hover,
.hm-ax-more:focus { color: #14080a; text-decoration: none; filter: brightness(1.05); transform: translateX(2px); }

.hm-ax-date i { margin-right: 8px; color: #14080a; font-size: 20px; }
body.hm-annx .hm-ax-card__foot a.admin-inline-edit { color: #e3001b; font-weight: 700; text-decoration: none; }
body.hm-annx .hm-ax-card__foot a.admin-inline-edit:hover { color: #9a0014; }
.hm-ax-card .fb-like { margin-top: 12px; }

/* pagination */
body.hm-annx .hm-ax-pager { float: none; padding: 0; text-align: center; }
body.hm-annx .hm-ax-pager .btn-group { display: inline-flex; gap: 8px; }
body.hm-annx .hm-ax-pager .btn {
    float: none;
    min-width: 42px;
    padding: 8px 14px;
    color: #14080a;
    font-weight: 700;
    background: #fff;
    border: 0;
    border-radius: 10px !important;
}
body.hm-annx .hm-ax-pager .btn.active,
body.hm-annx .hm-ax-pager .btn:hover { color: #14080a; background: #FFD21F; }
body.hm-annx .hm-ax-pager .btn[disabled] { opacity: .5; }

/* ---------- Responsive ----------------------------------------------------- */
@media (max-width: 1399px) {
    .hm-ax-hero__txt { padding-right: 400px; }
    .hm-ax-hero__art { width: 440px; }
    .hm-ax-card__media { flex-basis: 280px; min-height: 220px; }
}
@media (max-width: 1199px) {
    .hm-ax-hero__inner { flex-wrap: wrap; }
    .hm-ax-hero__txt { padding-right: 0; }
    .hm-ax-hero__title { white-space: normal; }
    .hm-ax-hero__art { position: static; order: 3; width: 520px; max-width: 100%; margin: 0 auto; }
    body.hm-annx div.announcement-single.hm-ax-card { flex-direction: column; align-items: stretch; gap: 20px; padding: 20px; }
    .hm-ax-card__media { flex-basis: auto; min-height: 0; }
    .hm-ax-card__media img { max-height: 240px; }
    .hm-ax-card__media.has-img img { min-height: 0; max-height: 320px; }
}
@media (max-width: 767px) {
    .hm-ax-hero > .container { padding: 0 15px; }
    .hm-ax-hero__inner { gap: 14px 16px; padding-left: 0; }
    .hm-ax-hero__icon { width: 64px; height: 64px; font-size: 30px; border-radius: 16px; }
    .hm-ax-hero__tag { font-size: 14px; }
    .hm-ax-hero__sub { font-size: 15px; }
    body.hm-annx .breadcrumb { padding: 8px 16px; font-size: 14px; }
    body.hm-annx div.announcement-single.hm-ax-card { padding: 16px; border-radius: 18px; }
    .hm-ax-chip { font-size: 14px; }
    .hm-ax-card__text,
    body.hm-annx .hm-ax-card__text p { font-size: 15px; }
    body.hm-annx .hm-ax-card .article-items.hm-ax-card__foot { font-size: 15px; }
    .hm-ax-more { flex: 1 1 100%; justify-content: center; font-size: 17px; }
    body.hm-annx .hm-ax-card .hm-ax-card__foot > .hm-ax-more + * { margin-left: 0; padding-left: 0; border-left: 0; }
}

/* ---- two sidebars: WHMCS sends "Months" (primary, header.tpl) + "Support" (secondary, footer.tpl) ----
   custom.css put both .sidebar columns in the same grid cell, so Support covered the Months panel.
   Support stays on top (as in the design), Months goes directly under it. */
body.hm-annx section#main-body > .container > .row { grid-template-rows: auto auto 1fr; }
body.hm-annx section#main-body > .container > .row > .sidebar.sidebar-secondary { grid-column: 1; grid-row: 1 / span 2; }
body.hm-annx section#main-body > .container > .row > .sidebar:not(.sidebar-secondary) { grid-column: 1; grid-row: 3; align-self: start; }
body.hm-annx section#main-body > .container > .row > .main-content { grid-row: 2 / span 2; }

/* Six's mobile month dropdown (.panel.panel-default.hidden-md.hidden-lg) - same dark card as the sidebar */
body.hm-annx .sidebar .panel.panel-default {
    margin: 0 0 26px;
    background: linear-gradient(160deg, #150406, #0a0204);
    border: 2px solid var(--hm-red);
    border-radius: 20px;
    box-shadow: 0 0 22px rgba(217, 4, 41, .45), inset 0 0 18px rgba(217, 4, 41, .12);
    overflow: hidden;
}
body.hm-annx .sidebar .panel.panel-default > .panel-heading { padding: 16px 22px; color: var(--hm-gold); background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
body.hm-annx .sidebar .panel.panel-default .panel-title { display: flex; align-items: center; gap: 10px; color: var(--hm-gold); font-size: 23px; font-weight: 700; }
body.hm-annx .sidebar .panel.panel-default .panel-title > i:first-child { color: var(--hm-gold); font-size: 22px; }
body.hm-annx .sidebar .panel.panel-default .panel-body { padding: 16px 22px 20px; background: transparent; border: 0; }
body.hm-annx .sidebar .panel.panel-default form { margin: 0; }
body.hm-annx .sidebar .panel.panel-default select.form-control {
    height: 48px;
    padding: 0 44px 0 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    background: #1d0609 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23FFD21F' d='M207 381.5L12.7 187.1c-9.4-9.4-9.4-24.6 0-33.9l22.7-22.7c9.4-9.4 24.5-9.4 33.9 0L224 284.5l154.7-154c9.4-9.3 24.5-9.3 33.9 0l22.7 22.7c9.4 9.4 9.4 24.6 0 33.9L241 381.5c-9.4 9.4-24.6 9.4-34 0z'/%3E%3C/svg%3E") no-repeat right 16px center / 14px 14px;
    border: 1px solid rgba(255, 210, 31, .55);
    border-radius: 12px;
    box-shadow: none;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}
body.hm-annx .sidebar .panel.panel-default select.form-control:focus { border-color: var(--hm-gold); box-shadow: 0 0 0 3px rgba(255, 210, 31, .25); outline: 0; }
body.hm-annx .sidebar .panel.panel-default select.form-control option { color: #14080a; background: #fff; }

@media (max-width: 991px) {
    body.hm-annx section#main-body > .container > .row { grid-template-rows: none; }
    body.hm-annx section#main-body > .container > .row > .main-content { grid-column: 1; grid-row: 2; }
    body.hm-annx section#main-body > .container > .row > .sidebar.sidebar-secondary { grid-column: 1; grid-row: 3; margin-top: 8px; }
    body.hm-annx section#main-body > .container > .row > .sidebar:not(.sidebar-secondary) { grid-column: 1; grid-row: 4; margin-top: 0; }
}
