/* ===== Help bar (gold) ===== */
.help-bar {
    background: linear-gradient(180deg, #fff4c2 0%, #ffe27a 100%);
    border-bottom: 1px solid #e0b100;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.help-bar .container { padding: 9px 15px; display: flex; justify-content: center; }
.help-bar a {
    display: inline-flex; align-items: center; gap: 9px;
    color: #7a0c18; font-weight: 700; font-size: .95rem; text-decoration: none;
    transition: transform .15s ease;
}
.help-bar a::before {
    content: "?";
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(180deg, #d4202f, #a50f1e);
    color: #fff; font-weight: 800; font-size: .8rem;
    box-shadow: 0 1px 4px rgba(165, 15, 30, .35);
}
.help-bar a span {
    font-family: 'Noto Sans Sinhala', 'Inter', sans-serif; font-weight: 700;
    padding-left: 9px; border-left: 2px solid rgba(122, 12, 24, .3);
}
.help-bar a:hover { transform: translateY(-1px); text-decoration: underline; }

/* ===== Top cities strip ===== */
.city-strip {
    background: linear-gradient(180deg, #ffffff 0%, #fdf1f2 100%);
    border-bottom: 1px solid #f0c9ce;
    box-shadow: 0 3px 10px rgba(165, 15, 30, .08);
}
.city-strip .container {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px; align-items: center; padding: 10px 15px;
}
.city-strip a {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .84rem; font-weight: 600; color: #a50f1e; background: #fff;
    border: 1.5px solid #ebb7bd; padding: 5px 13px; border-radius: 999px;
    text-decoration: none; white-space: nowrap;
    box-shadow: 0 1px 3px rgba(165, 15, 30, .12);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.city-strip a::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: linear-gradient(180deg, #ff4b5c, #a50f1e);
}
.city-strip a:hover {
    background: linear-gradient(180deg, #d4202f, #a50f1e); color: #fff; border-color: #a50f1e;
    transform: translateY(-1px); box-shadow: 0 4px 10px rgba(165, 15, 30, .3);
}
.city-strip a:hover::before { background: #ffd84d; }
.city-strip a.all {
    background: linear-gradient(180deg, #ffe066, #ffb800); color: #5a0a12;
    border-color: #d99a00; font-weight: 800;
    box-shadow: 0 2px 6px rgba(217, 154, 0, .4);
}
.city-strip a.all::before { display: none; }
.city-strip a.all:hover {
    background: linear-gradient(180deg, #ffd84d, #f0a800); color: #3d0409; border-color: #c48600;
}
@media (max-width: 640px) {
    .city-strip .container {
        flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .city-strip .container::-webkit-scrollbar { display: none; }
    .help-bar a { font-size: .88rem; }
}

/* ===== Footer city links ===== */
.footer-cities { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; padding: 6px 15px 12px; font-size: .88rem; }
.footer-cities a { color: inherit; opacity: .9; }

/* ===== How-to page ===== */
.hw { max-width: 860px; margin: 0 auto; }
.hw h1 { margin: 6px 0 4px; }
.hw .hw-sub { font-family: 'Noto Sans Sinhala', 'Inter', sans-serif; color: #4a5663; margin: 0 0 18px; font-size: 1.05rem; }
.hw-steps { display: grid; gap: 12px; margin: 14px 0 22px; counter-reset: hw; }
.hw-step { position: relative; background: #fff; border: 1px solid #ecd9dc; border-radius: 12px; padding: 14px 16px 14px 62px; box-shadow: 0 2px 8px rgba(165, 15, 30, .06); }
.hw-step::before { counter-increment: hw; content: counter(hw); position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(180deg, #d4202f, #a50f1e); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hw-step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.hw-step p { margin: 0; color: #3b4753; line-height: 1.6; }
.hw-step p.si { font-family: 'Noto Sans Sinhala', 'Inter', sans-serif; margin-top: 4px; }
.hw-lang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 22px; }
@media (max-width: 700px) { .hw-lang { grid-template-columns: 1fr; } }
.hw-lang div { background: #fff; border: 1px solid #ecd9dc; border-radius: 12px; padding: 14px; line-height: 1.6; }
.hw-lang h3 { margin: 0 0 6px; font-size: 1rem; color: #a50f1e; }
.hw-faq details { background: #fff; border: 1px solid #ecd9dc; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.hw-faq summary { cursor: pointer; font-weight: 700; }
.hw-faq p { margin: 8px 0 0; line-height: 1.6; color: #3b4753; }
.hw-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }

/* ===== MOBILE ===== */
@media (max-width: 640px) {

    /* City strip එකට යටින් තිබුණු ලොකු හිස් ඉඩ අඩු කිරීම */
    .city-strip ~ main > .section:first-child { padding-top: 12px !important; margin-top: 0 !important; }
    .city-strip ~ main > .section:first-child > .container { padding-top: 0 !important; }

    /* Blog banner: පින්තූරය වමට, text දකුණට */
    .bb-wrap { margin-top: 0 !important; margin-bottom: 10px !important; min-height: 0 !important; }
    .bb-wrap .bb-slide.is-active {
        display: flex !important; flex-direction: row !important; align-items: stretch !important;
        min-height: 0 !important; height: auto !important;
    }
    .bb-wrap .bb-media { flex: 0 0 34% !important; width: 34% !important; max-width: 34% !important; height: auto !important; min-height: 118px !important; }
    .bb-wrap .bb-media img { width: 100% !important; height: 100% !important; min-height: 118px !important; object-fit: cover !important; }
    .bb-wrap .bb-noimg { min-height: 118px !important; font-size: .85rem !important; }
    .bb-wrap .bb-text { flex: 1 1 auto !important; padding: 10px 12px 22px !important; min-width: 0; }
    .bb-wrap .bb-tag { font-size: .6rem !important; padding: 2px 8px !important; margin-bottom: 5px !important; }
    .bb-wrap .bb-title { font-size: .95rem !important; line-height: 1.25 !important; margin: 0 0 6px !important;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .bb-wrap .bb-ex { display: none !important; }
    .bb-wrap .bb-more { padding: 5px 12px !important; font-size: .78rem !important; }
    .bb-wrap .bb-dots { bottom: 6px !important; right: 10px !important; }

    /* කහ පාට "අලුත්ම ඇඩ්ස්" banner */
    .hp-banner { padding: 9px 12px !important; margin-bottom: 10px !important; font-size: .98rem !important; border-radius: 12px !important; }
    .hp-banner small { margin-top: 1px !important; font-size: .8rem !important; }

    /* Hero + "7 live ads" pill ඉඩ */
    .hp-hero { padding-top: 16px !important; padding-bottom: 18px !important; margin-bottom: 12px !important; }
    .hp-hero h1 { font-size: 1.35rem !important; margin-bottom: 4px !important; }
    .hp-hero > p { font-size: .85rem !important; margin: 0 0 10px !important; }
    .hp-hero .hx-count { margin: 14px auto 0 !important; }

    /* Ad cards: දකුණට පිටවෙලා කැපෙන එක නවත්වනවා */
    .hp-layout, .hp-main, .hp-zone-ads, .hp-zone-more, .hp-ads-sec { min-width: 0 !important; max-width: 100% !important; }
    .ad-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .ad-card.lh-h { min-width: 0 !important; max-width: 100% !important; width: 100% !important; }
    .ad-card.lh-h .ad-img { flex: 0 0 36% !important; max-width: 36% !important; min-width: 100px !important; }
    .ad-card.lh-h .ad-body { min-width: 0 !important; overflow: hidden !important; }
    .ad-card.lh-h .ad-body h3,
    .ad-card.lh-h .ad-body p { overflow-wrap: anywhere; word-break: break-word; }
    .ad-card.lh-h .ad-foot { flex-wrap: wrap; gap: 2px 8px; }
}