:root {
    --navy: #0d3f6e;
    --blue: #0a74c9;
    --sky: #61B4F6;
    --bg: #f3f7fb;
    --text: #1b2b3c;
    --muted: #6b7a8a;
    --line: #e6edf4;
    --gold: #f5c26b;

    /* ---- Country list: edit these to resize the section ---- */
    --country-intro-w: 300px;
    /* width of the left text column */
    --country-list-w: 1fr;
    /* width of the cards area (e.g. 1fr, 800px, 60%) */
    --country-list-max: none;
    /* optional cap, e.g. 900px */
    --country-cols: 5;
    /* cards per row */
    --country-gap: 16px;
    /* space between cards */
    --country-photo-h: 162px;
    /* height of the card image */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased
}

a {
    text-decoration: none;
    color: inherit
}

ul {
    list-style: none
}

img {
    max-width: 100%;
    display: block
}

.container {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 24px
}

.ico {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex: none
}

.ico.stroke,
.ico.big,
.ico.mosque,
.ico.globe {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.ico.sm {
    width: 11px;
    height: 11px
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    font: 600 13px Inter, sans-serif;
    cursor: pointer;
    transition: background .2s
}

.btn-primary {
    background: var(--sky);
    color: #fff
}

.btn-primary:hover {
    background: #0862ab
}

/* header */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 0 var(--line)
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    height: 68px
}

.header-left {
    justify-self: start
}

.header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px
}

/* developer credit sits where the nav links used to be */
.dev-credit {
    margin-left: 20px;
    display: flex;
    align-items: center
}

.dev-credit img {
    height: 44px;
    width: auto
}

/* mobile-only header items */
.bell {
    display: none
}

.bell {
    color: var(--navy);
    width: 22px;
    height: 22px
}

.bell .ico {
    width: 22px;
    height: 22px
}

.logo img {
    height: 50px;
    width: auto
}

.logo-mobile {
    display: none
}

.header-left .btn {
    padding: 11px 16px;
    font-size: 12.500px
}

.social {
     width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    transition: background .2s, transform .2s
}

.social svg {
    width: 20px;
    height: 20px;
    fill: currentColor
}

/* hero */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    color: #fff;
    background: #0b4a80 url("../images/hero.jpg") center 60% / cover no-repeat
}

/* keeps the text readable over the image */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 52, 96, .78) 0%, rgba(8, 52, 96, .45) 40%, rgba(8, 52, 96, 0) 65%)
}

.hero-inner {
    position: relative;
    padding-top: 112px;
    padding-bottom: 144px
}

.hero h1 {
    font-size: 51px;
    line-height: 1.28;
    font-weight: 700;

}

.hero h1 span:not(.nowrap) {
    color: #5bb5ff
}

.hero p {
    max-width: 710px;
    font-size: 17px;
    line-height: 1.55;
    margin: 34px 0 42px;
    color: #eaf3fb
}

.search {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 40px;
    padding: 4px;
    max-width: 790px;
    border: 3px solid rgba(255, 255, 255, .55);
    background-clip: padding-box
}

.search .pin {
    margin: 0 12px 0 18px;
    color: var(--blue);
    width: 22px;
    height: 22px
}

.search input {
    flex: 1;
    border: 0;
    outline: 0;
    font: 400 15px Inter, sans-serif;
    color: var(--text);
    min-width: 0;
    background: transparent
}

.search .btn {
    border-radius: 30px;
    padding: 14px 38px;
    font-size: 14px
}

/* countries */
.countries {
    display: grid;
    grid-template-columns: var(--country-intro-w) var(--country-list-w);
    gap: 24px;
    align-items: center;
    padding-top: 26px;
    padding-bottom: 26px
}

.eyebrow {
    font-size: 11.500px;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: .3px
}

.countries h2 {
    font-size: 33px;
    color: var(--navy);
    margin: 2px 0 6px;
    line-height: 1.1
}

.countries-intro p {
    font-size: 16px;
    color: var(--muted);
    max-width: 270px
}

.country-list {
    display: grid;
    grid-template-columns: repeat(var(--country-cols), 1fr);
    gap: var(--country-gap);
    max-width: var(--country-list-max)
}

.country {
    display: block;
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(20, 50, 90, .1);
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .2s
}

.country:hover {
    transform: translateY(-3px)
}

.country.active {
    border-color: var(--blue)
}

.country .photo {
    height: var(--country-photo-h);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

.country .flag img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover
}

.country .meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    position: relative
}

.country .flag {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-top: -26px;
    position: relative
}

.country .meta span.name {
    margin-top: 6px;
    font-size: 16px
}

.country .go {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border: 1.5px solid #c8d4e0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    color: var(--navy)
}

.country.active .go {
    border-color: var(--blue)
}

.region-select {
    background: #eaf0f6;
    border-radius: 10px;
    height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(20, 50, 90, .06)
}

.region-select .globe {
    width: 26px;
    height: 26px;
    color: var(--blue)
}

.region-select select {
    border: 0;
    background: transparent;
    font: 600 12px Inter, sans-serif;
    color: var(--navy);
    cursor: pointer;
    outline: 0;
    max-width: 120px
}

/* main grid */
.main-grid-wrap {
    background: #e4edf7;
    padding: 12px 0 30px
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding-top: 0;
    margin-top: 10px;
    margin-bottom: 30px;

}

/* provinces + calendar sit side by side; the calendar top lines up with the first row of cards */
.boards-row {
    display: grid;
    grid-template-columns: 1fr 384px;
    gap: 18px;
    align-items: start
}

.times iframe {
    display: block
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 12px
}

.section-head h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    color: var(--navy);
    text-transform: uppercase
}

.section-head h3 .ico {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.8
}

.section-head h3 svg {
   
    stroke:#0a74c9;
    stroke-width: 1.8
}



.link {
    font-size: 11px;
    font-weight: 600;
    color: var(--blue)
}

.board-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

/* provinces (edit colours / size here) */
.province {
    display: flex;
    align-items: center;
    gap: 36px;
    background: #95cffc;
    border-radius: 6px;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    border: 2px solid transparent;
    transition: background .2s, transform .2s
}

.province:hover {
    background: #b3dcfc;
    transform: translateY(-2px)
}

.province .ico {
    width: 34px;
    height: 34px;
    color: var(--blue)
}

.province.match {
    border-color: var(--blue)
}

/* times card */
.times {
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0
}

.times-head {
    background: var(--navy);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative
}

.times-head .big {
    width: 36px;
    height: 36px
}

.times-head strong {
    display: block;
    font-size: 19px;
    text-transform: uppercase
}

.times-head small {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10.500px;
    opacity: .85;
    margin-top: 4px
}

.times-head .ico.sm {
    stroke: none;
    fill: #fff
}

.times-head .date {
    position: absolute;
    right: 16px;
    bottom: 10px;
    font-size: 12px;
    opacity: .85
}

.times li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 20px;
    font-size: 13.500px;
    border-bottom: 1px solid var(--line)
}

.times li:last-child {
    border: 0
}

.times li .pi {
    width: 20px;
    text-align: center;
    color: var(--blue)
}

.times li b {
    margin-left: auto;
    font-size: 15px;
    color: var(--navy)
}

.times li.next {
    background: #eef6fd
}

.times li.next b {
    color: var(--blue)
}

/* CTA */
.cta {
    margin-top: 18px;
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 22px 90px 22px 130px;
    position: relative;
    overflow: hidden;
    /* top layers: gold corner (right) and faint blue pattern (left); gradient underneath */
    background:
        url("../images/pattern-cta-gold.png") right bottom / auto 100% no-repeat,
        url("../images/pattern-cta-left.png") left center / auto 150% no-repeat,
        linear-gradient(95deg, #0b3d6e, #124f86 60%, #0b3d6e)
}

.cta::after {
    content: "";
    position: absolute;
    right: 170px;
    bottom: 0;
    width: 62%;
    height: 78%;
    border-radius: 0 0 12px 0;
    pointer-events: none;
    opacity: .159;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' fill='%230a74c9'><rect x='6' y='34' width='8' height='56'/><path d='M10 20l6 14h-12z'/><rect x='146' y='28' width='8' height='62'/><path d='M150 12l6 16h-12z'/><path d='M40 90V60a40 40 0 0 1 80 0v30z'/><path d='M80 12l4 10h-8z'/><rect x='24' y='62' width='16' height='28'/><rect x='120' y='62' width='16' height='28'/></svg>") right bottom / contain no-repeat
}

.cta-title {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    margin-left: 70px
}

.cta-title .mosque {
    width: 60px;
    height: 60px;
    color: var(--gold)
}

.cta h3 {
    font-size: 25px;
    line-height: 1.35
}

.gold {
    color: var(--gold)
}

.lblue {
    color: #61B4F6
}

.cta-call {
    display: flex;
    gap: 12px;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, .35);
    padding-left: 56px;
    position: relative;
    max-width: 480px;
    /* space between the title and the divider: increase to push the call block right, decrease to move it left */
    margin-left: 60px
}

.cta-call .phone {
    width: 52px;
    height: 52px
}

.cta-call strong {
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap
}

.cta-call b {
    font-size: 26px
}

.cta-call p {
    font-size: 15px;
    opacity: 1;
    margin-top: 0px
}

/* footer */
.footer {
    background: #fff;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
    position: relative;
    overflow: hidden
}

/* decorative pattern at the left and right edges of the footer */
.footer::before,
.footer::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    background: url("../images/pattern-footer.png") center / contain no-repeat;
    pointer-events: none
}

.footer::before {
    left: 0;
    top: 0
}

.footer::after {
    right: 0;
    bottom: 0;
    transform: scale(-1, -1)
}

.footer .container {
    position: relative;
    z-index: 1
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 24px
}

.footer strong {
    display: block;
    font-size: 15px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 12px
}

.footer-about p {
    margin: 0;
    max-width: 300px;
    line-height: 1.6
}

/* developed-by logo, centred */
.footer-brand {
    display: block;
    justify-self: center;
    transition: transform .2s, opacity .2s
}

.footer-brand:hover {
    transform: translateY(-2px);
    opacity: .9
}

.footer-logo {
    display: block;
    height: 120px;
    width: auto
}

/* social, right */
.footer-follow {
    justify-self: end
}

.footer-follow div {
    display: flex;
    gap: 12px
}

.footer-follow a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    transition: background .2s, transform .2s
}

.footer-follow a:hover {
    background: var(--blue);
    transform: translateY(-2px)
}

.footer-follow svg {
    width: 20px;
    height: 20px;
    fill: currentColor
}

/* copyright, centred at the bottom */
.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 16px 0 20px;
    text-align: center
}

/* centre the developer logo under the copyright */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px
}

.footer-bottom .logo {
    display: block;
    margin: 0 auto;
	margin-bottom: 15px
}

.footer-bottom .logo img {
    display: block;
    margin: 0 auto
}

/* social icons, centred below the web company logo */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 4px
}

.footer-bottom small {
    font-size: 13px;
	text-transform: uppercase;
	color: #0d3f6e;
	font-weight: 600;
	letter-spacing: 2.5px;
	margin-bottom: 15px
}


/* ==========================================================



   PROVINCES PAGE  (provinces.html)
   Loaded AFTER style.css and responsive.css.
   Every class here starts with "sp-" so nothing clashes with
   the existing styles. Header, .search, .cta and footer still
   come from style.css / responsive.css.
   ========================================================== */

/* ---- hero ---- */
.sp-hero {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    color: #fff;
    background: #0b4a80 url("../images/hero.jpg") center 42% / cover no-repeat
}

.sp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 52, 96, .82) 0%, rgba(8, 52, 96, .4) 42%, rgba(8, 52, 96, 0) 68%)
}

.sp-hero .container {
    position: relative
}

.sp-hero-content {
    margin-left: 0px;
    padding: 56px 0
}

.sp-eyebrow {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .38em;
    color: #cfe6fb;
    margin-bottom: 6px
}

.sp-hero h1 {
    font-size: 50px;
    line-height: 1.2;
    font-weight: 700
}

.sp-hero h1 span {
    color: #5bb5ff
}

.sp-hero p {
    max-width: 480px;
    font-size: 18px;
    line-height: 1.5;
    margin: 12px 0 26px;
    color: #eaf3fb
}

.sp-hero .search {
    max-width: 700px
}

/* ---- province list ---- */
.sp-main {
    background: linear-gradient(180deg, #f9fcfe 0%, #eef5fb 100%);
    padding: 64px 0 50px
}

.sp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px
}

.sp-head h2 {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--navy)
}

.sp-head h2 svg {
    width: 48px;
    height: 48px;
    flex: none;
    fill: var(--blue);
    stroke: none;
    stroke-linecap: round;
    stroke-linejoin: round
}

.sp-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    white-space: nowrap
}

.sp-link:hover {
    text-decoration: underline
}

.sp-status {
    color: var(--muted);
    font-size: 14px;
    margin: -8px 0 12px
}

.sp-status:empty {
    display: none
}

/* 20 columns: top row = 4 cards x 5 cols, bottom row = 5 cards x 4 cols */
.sp-grid {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 24px; margin-bottom: 50px
}

.sp-card {
    grid-column: span 4;
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(20, 60, 110, .12);
    border: 2px solid transparent;
    transition: transform .2s, box-shadow .2s
}

.sp-card:nth-child(-n+4) {
    grid-column: span 5
}

.sp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(20, 60, 110, .18)
}

.sp-card:focus-visible,
.sp-card.match {
    border-color: var(--blue);
    outline: 0
}

.sp-photo {
    height: 118px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

.sp-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 20px
}

.sp-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy)
}

.sp-go {
    flex: none;
    width: 28px;
    height: 28px;
    border: 1.5px solid #9db4c9;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    line-height: 1;
    padding-bottom: 2px;
    color: var(--navy);
    transition: background .2s, border-color .2s
}

.sp-card:hover .sp-go {
    border-color: var(--blue);
    background: #eef6fd
}

/* ---- call-to-action strip (look comes from .cta in style.css) ---- */
.sp-cta {
    margin-top: 32px;
    padding: 0 0 0 70px;
    min-height: 112px
}

.sp-cta .cta-title {
    margin-left: 0;

    padding: 22px 0
}

.sp-cta h3 {
    font-size: 26px

}

.sp-cta-text p {
    font-size: 16px;
    margin-top: 4px;
    opacity: .92
}

.sp-cta .cta-call {
    align-self: stretch;
    flex: 0 0 44%;
    max-width: none;
    margin: 0;
    padding: 18px 70px 18px 100px;
    border-left: 0;
    background: linear-gradient(90deg, #1668a8, #0e4c88);
    clip-path: polygon(46px 0, 100% 0, 100% 100%, 0 100%)
}

.sp-assist {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px
}

.sp-cta .cta-call p {
    font-size: 14px;
    margin-top: 2px
}

/* ---- responsive ---- */
@media (max-width:1100px) {
    .sp-hero-content {
        margin-left: 40px
    }

    .sp-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px
    }

    .sp-card,
    .sp-card:nth-child(-n+4) {
        grid-column: auto
    }

    .sp-cta {
        padding-left: 40px
    }

    .sp-cta .cta-call {
        padding: 18px 40px 18px 80px
    }
}

@media (max-width:860px) {
    .sp-hero {
        min-height: 0
    }

    .sp-hero-content {
        margin-left: 0;
        padding: 44px 0
    }

    .sp-hero h1 {
        font-size: 38px
    }

    .sp-hero p {
        font-size: 16px
    }

    .sp-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0
    }

    .sp-cta .cta-title {
        padding: 24px
    }

    .sp-cta .cta-call {
        flex: none;
        padding: 20px 24px;
        clip-path: none;
        width: auto
    }
}

@media (max-width:700px) {
    .sp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px
    }

    .sp-photo {
        height: 90px
    }

    .sp-body {
        padding: 14px 14px 16px
    }

    .sp-name {
        font-size: 16px
    }

    .sp-head h2 {
        font-size: 24px;
        gap: 10px
    }

    .sp-head h2 svg {
        width: 36px;
        height: 36px
    }
}

@media (max-width:600px) {
    .sp-hero {
        background-position: 78% center
    }

    .sp-hero::before {
        background: linear-gradient(180deg, rgba(8, 52, 96, .72), rgba(8, 52, 96, .5))
    }

    .sp-hero-content {
        padding: 34px 0
    }

    .sp-hero h1 {
        font-size: 30px
    }

    .sp-eyebrow {
        font-size: 12px
    }

    .sp-link {
        display: none
    }

    .sp-cta h3 {
        font-size: 20px
    }

    .sp-cta .cta-title svg {
        width: 56px;
        height: 56px;
        flex: none
    }
}

@media (max-width:420px) {
    .sp-grid {
        grid-template-columns: 1fr
    }

    .sp-photo {
        height: 120px
    }
}


/* ---- KZN REGION PAGE (kzn.html) ----
   Classes start with "rg-". The hero, heading, status line and page
   background reuse the "sp-" classes above; header, .cta and footer come
   from the top of this file. */

/* breadcrumb */
.rg-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px
}

.rg-crumbs a:hover {
    color: var(--blue)
}

.rg-crumbs strong {
    color: var(--navy);
    font-weight: 600
}

/* region cards: 3 per row */
.rg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.rg-grid+.cta {
    margin-top: 40px
}

.rg-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 27px 28px;
    min-height: 110px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 4px 16px rgba(20, 60, 110, .1);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s
}

/* faint mosque silhouette */
.rg-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 55%;
    height: 80%;
    pointer-events: none;
    opacity: .07;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' fill='%230a74c9'><rect x='6' y='34' width='8' height='56'/><path d='M10 20l6 14h-12z'/><rect x='146' y='28' width='8' height='62'/><path d='M150 12l6 16h-12z'/><path d='M40 90V60a40 40 0 0 1 80 0v30z'/><path d='M80 12l4 10h-8z'/><rect x='24' y='62' width='16' height='28'/><rect x='120' y='62' width='16' height='28'/></svg>") right bottom / contain no-repeat
}

.rg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(20, 60, 110, .18)
}

.rg-card:focus-visible,
.rg-card.match {
    border-color: var(--blue);
    outline: 0
}

.rg-pin {
    flex: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #34a4f0, #0a74c9);

    box-shadow: 0 4px 10px rgba(10, 116, 201, .35);
    transition: transform .2s
}

.rg-card:hover .rg-pin {
    transform: scale(1.08)
}

.rg-pin svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.rg-text {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0
}

.rg-name {
    display: block;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy)
}

.rg-sub {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px
}

.rg-go {
    position: relative;
    z-index: 1;
    flex: none;
    width: 30px;
    height: 30px;
    border: 1.5px solid #9db4c9;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 19px;
    line-height: 1;
    padding-bottom: 2px;
    color: var(--navy);
    background: #fff;
    transition: background .2s, border-color .2s
}

.rg-card:hover .rg-go {
    border-color: var(--blue);
    background: #eef6fd
}

@media (max-width:1100px) {
    .rg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px
    }
}

@media (max-width:600px) {
    .rg-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .rg-card {
        padding: 20px;
        min-height: 0
    }

    .rg-pin {
        width: 50px;
        height: 50px
    }

    .rg-name {
        font-size: 19px
    }
}


/* ---- MASJID LIST PAGES (durban-north.html and the other KZN region pages) ----
   Classes start with "mq-". The hero, breadcrumb (rg-crumbs), heading (sp-head),
   status line and page background reuse the "sp-" / "rg-" classes above. */

/* region tabs */
.mq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px
}

.mq-tabs a {
    flex: none;
    padding: 10px 20px;
    border-radius: 30px;
    background: #fff;
    border: 1.5px solid #cfe0ee;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    transition: background .2s, color .2s, border-color .2s
}

.mq-tabs a:hover {
    border-color: var(--blue);
    color: var(--blue)
}

.mq-tabs a.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff
}

@media (max-width:600px) {
    .mq-tabs {
        gap: 8px
    }

    .mq-tabs a {
        padding: 8px 16px;
        font-size: 13px
    }
}

/* masjid cards: 3 per row */
.mq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.mq-grid+.cta {
    margin-top: 40px
}

.mq-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 26px 24px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid transparent;
    border-top: 4px solid var(--sky);
    box-shadow: 0 4px 16px rgba(20, 60, 110, .1);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s
}

/* faint mosque silhouette */
.mq-card::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    width: 46%;
    height: 90px;
    pointer-events: none;
    opacity: .06;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' fill='%230a74c9'><rect x='6' y='34' width='8' height='56'/><path d='M10 20l6 14h-12z'/><rect x='146' y='28' width='8' height='62'/><path d='M150 12l6 16h-12z'/><path d='M40 90V60a40 40 0 0 1 80 0v30z'/><path d='M80 12l4 10h-8z'/><rect x='24' y='62' width='16' height='28'/><rect x='120' y='62' width='16' height='28'/></svg>") right top / contain no-repeat
}

.mq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(20, 60, 110, .18)
}

.mq-card.match {
    border-color: var(--blue)
}

.mq-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px
}

.mq-icon {
    flex: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #34a4f0, #0a74c9);
    box-shadow: 0 4px 10px rgba(10, 116, 201, .35)
}

.mq-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.mq-area {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--sky)
}

.mq-name {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
    margin-top: 2px
}

.mq-addr {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted)
}

.mq-addr svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.mq-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 10px
}

.mq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: 1.5px solid var(--sky);
    transition: background .2s, color .2s
}

.mq-btn .ico {
    width: 16px;
    height: 16px
}

.mq-btn-main {
    background: var(--sky);
    color: #fff
}

.mq-btn-main:hover {
    background: #0862ab;
    border-color: #0862ab
}

.mq-btn-alt {
    background: #fff;
    color: var(--blue)
}

.mq-btn-alt:hover {
    background: #eef6fd
}

@media (max-width:1100px) {
    .mq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px
    }
}

@media (max-width:600px) {
    .mq-grid {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .mq-card {
        padding: 22px 20px 20px
    }
}


/* ---- CONTACT PAGE (contact-us.html) ----
   Reuses the masjid card classes (mq-grid, mq-card ...). Only the extras are here. */

/* hero has no search box, so drop the extra bottom margin */
.ct-hero .sp-hero-content p {
    margin-bottom: 0
}

/* a card with a single full-width button */
.mq-actions.single {
    grid-template-columns: 1fr
}

/* facebook / instagram icons are solid shapes, not outlines */
.mq-icon svg.fill {
    fill: currentColor;
    stroke: none
}

/* contact form */
.ct-form-card {
    margin-top: 40px;
    padding: 30px 30px 28px;
    background: #fff;
    border-radius: 12px;
    border-top: 4px solid var(--blue);
    box-shadow: 0 4px 16px rgba(20, 60, 110, .1)
}

.ct-form-card+.cta {
    margin-top: 40px
}

.ct-form-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px
}

.ct-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px
}

.ct-field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.ct-field.full {
    grid-column: 1/-1
}

.ct-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy)
}

.ct-field label span {
    font-weight: 500;
    color: var(--muted)
}

.ct-field input,
.ct-field textarea {
    width: 100%;
    padding: 12px 14px;
    font: 400 15px Inter, sans-serif;
    color: var(--text);
    background: #fff;
    border: 1.5px solid #cfe0ee;
    border-radius: 8px;
    transition: border-color .2s, box-shadow .2s
}

.ct-field textarea {
    min-height: 140px;
    resize: vertical
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
    color: #9aa8b6
}

.ct-field input:focus,
.ct-field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(10, 116, 201, .15)
}

/* red outline on bad fields, only after the person has tried to send */
.ct-form.was-validated input:invalid,
.ct-form.was-validated textarea:invalid {
    border-color: #d64545
}

/* reCAPTCHA + thank-you panel */
.ct-captcha {
    min-height: 78px
}

.ct-thanks {
    text-align: center;
    padding: 20px 10px 8px
}

.ct-thanks[hidden] {
    display: none
}

.ct-thanks svg {
    width: 64px;
    height: 64px;
    fill: none;
    stroke: #1a7f4b;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.ct-thanks h3 {
    margin: 14px 0 6px;
    font-size: 26px;
    color: var(--navy)
}

.ct-thanks p {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--text)
}

.ct-thanks small {
    color: var(--muted)
}

/* the reCAPTCHA box is 304px wide - shrink it on very small phones */
@media (max-width:380px) {
    .ct-captcha .g-recaptcha {
        transform: scale(.8);
        transform-origin: 0 0
    }

    .ct-captcha {
        min-height: 64px
    }
}

/* spam trap - hidden from people */
.ct-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden
}

.ct-actions {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px
}

.ct-actions .btn {
    border: 0;
    cursor: pointer;
    font-family: inherit
}

.ct-actions .btn:disabled {
    opacity: .6;
    cursor: wait
}

.ct-status {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4
}

.ct-status:empty {
    display: none
}

.ct-status.ok {
    color: #1a7f4b
}

.ct-status.err {
    color: #c0392b
}

@media (max-width:600px) {
    .ct-form-card {
        padding: 22px 20px 20px
    }

    .ct-form {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .ct-actions .btn {
        width: 100%;
        justify-content: center
    }
}

/* ================= SEARCH RESULTS PANEL (all pages) =================
   Filled by js/script.js; sits directly under the search box. */
.sr-panel {
    background: var(--bg);
    padding: 36px 0 20px;
    border-bottom: 1px solid var(--line)
}

.sr-panel[hidden] {
    display: none
}

.sr-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.sr-head h2 {
    margin: 0;
    font-size: 22px;
    color: var(--navy)
}

.sr-clear {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--blue);
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer
}

.sr-clear:hover {
    border-color: var(--blue)
}

.sr-empty {
    color: var(--muted);
    margin: 0 0 16px
}

.sr-empty a {
    color: var(--blue);
    font-weight: 600
}

.sr-sub {
    margin: 26px 0 14px;
    font-size: 17px;
    color: var(--navy)
}

.sr-places {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px
}

.sr-place {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text);
    transition: transform .15s, box-shadow .15s
}

.sr-place:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(20, 60, 110, .15)

}

.sr-pin {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e8f3fc;
    display: grid;
    place-items: center
}

.sr-pin svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.8
}

.sr-place-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.sr-place-text small {
    color: var(--muted);
    font-size: 12.5px
}

.sr-go {
    color: var(--blue);
    font-size: 26px;
    line-height: 1
}

.sr-more {
    text-align: center;
    margin-top: 24px
}

.sr-more-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit
}

@media (max-width:600px) {
    .sr-panel {
        padding: 24px 0 12px
    }

    .sr-head h2 {
        font-size: 18px
    }
}
.hero h1 .nowrap {
    white-space: nowrap
}

@media (max-width:860px) {
    .br-desktop {
        display: none
    }
}

/* ---- Back to top button (bottom right) ---- */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(13, 63, 110, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s, transform .25s, visibility .25s, background .2s
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none
}

.back-to-top:hover {
    background: var(--blue)
}

.back-to-top:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px
}

.back-to-top svg {
    width: 22px;
    height: 22px
}

@media (max-width:600px) {
    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none
    }
}

/* floating WhatsApp chat widget, bottom left */
.wa-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 60
}

.whatsapp-float {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
    animation: waPulse 2s ease-out infinite
}

.whatsapp-float:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .55)
    }

    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0)
    }
}

/* popup chat panel: fades in on hover, fades out when the pointer leaves */
.wa-panel {
    position: absolute;
    left: 0;
    bottom: 72px;
    width: 300px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s
}

.wa-widget.is-open .wa-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s
}

/* invisible bridge so the panel stays open while the pointer travels from the bubble to it */
.wa-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 20px
}

.wa-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: #128C7E;
    color: #fff;
    border-radius: 8px 8px 0 0;
    font: 700 15px Inter, sans-serif
}

.wa-close {
    border: 0;
    background: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: .7;
    flex: none
}

.wa-close:hover {
    opacity: 1
}

.wa-body {
    padding: 14px 14px 16px;
    background: #e5ded8
}

.wa-bubble {
    background: #fff;
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12)
}

.wa-form {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px 14px 14px;
    background: #fff;
    border-radius: 0 0 8px 8px
}

.wa-form textarea {
    flex: 1;
    min-width: 0;
    height: 56px;
    resize: none;
    border: 1px solid #e3e3df;
    border-radius: 3px;
    padding: 8px 10px;
    font: 400 14px Inter, sans-serif;
    color: var(--text);
    background: #f1f1ee;
    outline: 0
}

.wa-form textarea:focus {
    border-color: #128C7E
}

.wa-send {
    flex: none;
    width: 30px;
    height: 30px;
    border: 0;
    background: none;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .2s
}

.wa-send:hover {
    color: #128C7E
}

.wa-send svg {
    width: 26px;
    height: 26px;
    fill: currentColor
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none
    }

    .wa-panel {
        transition: none
    }
}

@media (max-width:600px) {
    .wa-widget {
        left: 14px;
        bottom: 14px
    }

    .whatsapp-float {
        width: 48px;
        height: 48px
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px
    }

    .wa-panel {
        bottom: 66px
    }
}

/* ==========================================================
   HEADER: search dropdown + navigation
   ========================================================== */
.header-left {
    display: flex;
    align-items: center;
    gap: 10px
}

.header-left .btn svg {
    width: 22px;
    height: 22px
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px
}

.main-nav a,
.mobile-menu nav a {
    position: relative;
    font: 600 14px Inter, sans-serif;
    color: var(--navy);
    padding: 8px 12px;
    border-radius: 8px;
    transition: color .2s, background .2s
}

.main-nav a:hover,
.mobile-menu nav a:hover {
    color: var(--blue);
    background: var(--bg)
}

/* current page: small sky-blue bar under the link */
.main-nav a[aria-current="page"] {
    color: var(--blue)
}

.main-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--sky)
}

/* round icon buttons (tablet / phone only) */
.icon-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--bg);
    color: var(--navy);
    cursor: pointer;
    flex: none
}

.icon-btn:hover {
    background: var(--line)
}

.icon-btn svg {
    width: 20px;
    height: 20px
}

.js-search-toggle[aria-expanded="true"].btn {
    background: var(--navy)
}

.icon-btn[aria-expanded="true"] {
    background: var(--navy);
    color: #fff
}

/* dropdown panels hang under the header */
.header-search,
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(13, 63, 110, .14);
    animation: hdrDrop .18s ease-out
}

.header-search[hidden],
.mobile-menu[hidden] {
    display: none
}

@keyframes hdrDrop {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.header-search {
    padding: 18px 0 20px
}

.hs-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 6px 6px 6px 14px;
    box-shadow: 0 2px 8px rgba(13, 63, 110, .06)
}

.hs-form:focus-within {
    border-color: var(--sky)
}

.hs-form .pin {
    color: var(--blue);
    width: 18px;
    height: 18px
}

.hs-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: none;
    font: 500 15px Inter, sans-serif;
    color: var(--text);
    padding: 10px 0
}

.hs-form .btn {
    padding: 11px 20px
}

.hs-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--muted);
    cursor: pointer;
    flex: none
}

.hs-close:hover {
    background: var(--bg);
    color: var(--navy)
}

/* quick suggestions under the box */
.hs-suggest {
    max-width: 760px;
    margin: 12px auto 0;
    max-height: 52vh;
    overflow-y: auto
}

.hs-suggest[hidden] {
    display: none
}

.hs-list {
    display: grid;
    gap: 4px
}

.hs-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px
}

.hs-list a:hover {
    background: var(--bg)
}

.hs-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    background: var(--bg);
    color: var(--blue)
}

.hs-ico svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.hs-txt {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.hs-txt strong {
    font-size: 14px;
    color: var(--navy)
}

.hs-txt small {
    font-size: 12.5px;
    color: var(--muted)
}

.hs-all {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 11px;
    border: 0;
    border-radius: 10px;
    background: var(--bg);
    color: var(--navy);
    font: 600 13.5px Inter, sans-serif;
    cursor: pointer
}

.hs-all:hover {
    background: var(--line)
}

.hs-empty {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--muted)
}

.hs-empty a {
    color: var(--blue);
    font-weight: 600
}

/* tablet / phone menu */
.mobile-menu {
    padding: 10px 0 14px
}

.mobile-menu nav {
    display: grid
}

.mobile-menu nav a {
    padding: 13px 12px;
    font-size: 15px;
    border-radius: 10px
}

.mobile-menu nav a[aria-current="page"] {
    color: var(--blue);
    background: var(--bg)
}

/* search results land below the sticky header */
.sr-panel {
    scroll-margin-top: 76px
}


/* ==========================================================
   PROVINCES GRID: every card the same size and every card sits
   on the same column lines, so the bottom row lines up under
   the top row (works for any number of provinces)
   ========================================================== */
.sp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: start;
    gap: 24px
}

.sp-card,
.sp-card:nth-child(-n+4) {
    grid-column: auto;
    width: auto
}

@media (max-width:1100px) {
    .sp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px
    }
}

@media (max-width:700px) {
    .sp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px
    }
}

@media (max-width:420px) {
    .sp-grid {
        grid-template-columns: 1fr
    }
}

/* search bar inside the phone / tablet menu (under the links) */
.mm-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 0;
    padding: 0 14px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    color: var(--blue);
    box-shadow: 0 2px 8px rgba(13, 63, 110, .06)
}

.mm-search:focus-within {
    border-color: var(--sky)
}

.mm-search svg {
    flex: none
}

.mm-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: none;
    font: 500 16px Inter, sans-serif;
    color: var(--text);
    padding: 13px 0;
    -webkit-appearance: none;
    appearance: none
}

.mm-search input::-webkit-search-cancel-button {
    -webkit-appearance: none
}

/* ---- country pages: each has its own hero picture (South Africa keeps the default images/hero.jpg) ----
   To change a picture, replace the file in /images keeping the same name. If a file is missing, the default hero shows. */
.sp-hero.hero-eswatini { background-image: url("../images/hero-eswatini.jpg"), url("../images/hero.jpg") }
.sp-hero.hero-lesotho { background-image: url("../images/hero-lesotho.jpg"), url("../images/hero.jpg") }
.sp-hero.hero-usa { background-image: url("../images/hero-usa.jpg"), url("../images/hero.jpg") }
.sp-hero.hero-venezuela { background-image: url("../images/hero-venezuela.jpg"), url("../images/hero.jpg") }

/* ---- "Install Salaah Board" banner (shown by js/pwa.js: Install button on Android, Add to Home Screen tip on iPhone / iPad) ---- */
.ios-install {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    max-width: 420px;
    margin: 0 auto;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(13, 63, 110, .22);
    animation: iosInstallIn .35s ease-out
}

.ios-install__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex: none
}

.ios-install__text {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    line-height: 1.35
}

.ios-install__text strong {
    display: block;
    color: var(--navy);
    font-size: 14.5px;
    margin-bottom: 2px
}

.ios-install__text span {
    color: var(--muted)
}

.ios-install__text svg {
    vertical-align: -3px;
    color: var(--blue)
}

.ios-install__text b {
    color: var(--text)
}

.ios-install__btn {
    flex: none;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer
}

.ios-install__btn:hover {
    background: var(--navy)
}

.ios-install__close {
    flex: none;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--bg);
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer
}

@keyframes iosInstallIn {
    from { opacity: 0; transform: translateY(12px) }
    to { opacity: 1; transform: none }
}

@media (prefers-reduced-motion: reduce) {
    .ios-install { animation: none }
}


/* ---- small round country flag on the right of each country link in the menu (all pages) ---- */
.main-nav a[href="provinces.html"],
.mobile-menu nav a[href="provinces.html"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><clipPath id='c'><circle cx='12' cy='12' r='12'/></clipPath><g clip-path='url(%23c)'><g transform='translate(-6 0) scale(1.2)'><rect width='30' height='10' fill='%23E03C31'/><rect y='10' width='30' height='10' fill='%23001489'/><path d='M0 0L12 10L0 20M12 10H30' fill='none' stroke='%23fff' stroke-width='6.4'/><path d='M0 0L12 10L0 20M12 10H30' fill='none' stroke='%23007749' stroke-width='3.6'/><path d='M0 2L8.6 10L0 18z' fill='%23FFB612'/><path d='M0 4L6.6 10L0 16z' fill='%23000'/></g></g><circle cx='12' cy='12' r='11.6' fill='none' stroke='%23000' stroke-opacity='.18' stroke-width='.8'/></svg>")
}
.main-nav a[href="eswathini.html"],
.mobile-menu nav a[href="eswathini.html"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><clipPath id='c'><circle cx='12' cy='12' r='12'/></clipPath><g clip-path='url(%23c)'><g transform='translate(-6 0) scale(1.2)'><rect width='30' height='20' fill='%233E5EB9'/><rect y='4' width='30' height='12' fill='%23FFD900'/><rect y='5' width='30' height='10' fill='%23B10C0C'/><path d='M15 6.6a7 3.4 0 0 0 0 6.8z' fill='%23000'/><path d='M15 6.6a7 3.4 0 0 1 0 6.8z' fill='%23fff'/></g></g><circle cx='12' cy='12' r='11.6' fill='none' stroke='%23000' stroke-opacity='.18' stroke-width='.8'/></svg>")
}
.main-nav a[href="lesotho.html"],
.mobile-menu nav a[href="lesotho.html"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><clipPath id='c'><circle cx='12' cy='12' r='12'/></clipPath><g clip-path='url(%23c)'><g transform='translate(-6 0) scale(1.2)'><rect width='30' height='20' fill='%23fff'/><rect width='30' height='5' fill='%2300209F'/><rect y='15' width='30' height='5' fill='%23009543'/><path d='M15 5.8L11.6 11.6H18.4z' fill='%23000'/><rect x='10.6' y='11.6' width='8.8' height='1.1' fill='%23000'/></g></g><circle cx='12' cy='12' r='11.6' fill='none' stroke='%23000' stroke-opacity='.18' stroke-width='.8'/></svg>")
}
.main-nav a[href="usa.html"],
.mobile-menu nav a[href="usa.html"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><clipPath id='c'><circle cx='12' cy='12' r='12'/></clipPath><g clip-path='url(%23c)'><g transform='translate(-1 0) scale(1.2)'><rect width='30' height='20' fill='%23fff'/><rect y='0.000' width='30' height='1.538' fill='%23B22234'/><rect y='3.077' width='30' height='1.538' fill='%23B22234'/><rect y='6.154' width='30' height='1.538' fill='%23B22234'/><rect y='9.231' width='30' height='1.538' fill='%23B22234'/><rect y='12.308' width='30' height='1.538' fill='%23B22234'/><rect y='15.385' width='30' height='1.538' fill='%23B22234'/><rect y='18.462' width='30' height='1.538' fill='%23B22234'/><rect width='13' height='10.77' fill='%233C3B6E'/><circle cx='1.60' cy='1.50' r='.55' fill='%23fff'/><circle cx='4.30' cy='1.50' r='.55' fill='%23fff'/><circle cx='7.00' cy='1.50' r='.55' fill='%23fff'/><circle cx='9.70' cy='1.50' r='.55' fill='%23fff'/><circle cx='1.60' cy='4.10' r='.55' fill='%23fff'/><circle cx='4.30' cy='4.10' r='.55' fill='%23fff'/><circle cx='7.00' cy='4.10' r='.55' fill='%23fff'/><circle cx='9.70' cy='4.10' r='.55' fill='%23fff'/><circle cx='1.60' cy='6.70' r='.55' fill='%23fff'/><circle cx='4.30' cy='6.70' r='.55' fill='%23fff'/><circle cx='7.00' cy='6.70' r='.55' fill='%23fff'/><circle cx='9.70' cy='6.70' r='.55' fill='%23fff'/><circle cx='1.60' cy='9.30' r='.55' fill='%23fff'/><circle cx='4.30' cy='9.30' r='.55' fill='%23fff'/><circle cx='7.00' cy='9.30' r='.55' fill='%23fff'/><circle cx='9.70' cy='9.30' r='.55' fill='%23fff'/></g></g><circle cx='12' cy='12' r='11.6' fill='none' stroke='%23000' stroke-opacity='.18' stroke-width='.8'/></svg>")
}
.main-nav a[href="venezuela.html"],
.mobile-menu nav a[href="venezuela.html"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><clipPath id='c'><circle cx='12' cy='12' r='12'/></clipPath><g clip-path='url(%23c)'><g transform='translate(-6 0) scale(1.2)'><rect width='30' height='6.67' fill='%23FFCC00'/><rect y='6.67' width='30' height='6.67' fill='%2300247D'/><rect y='13.33' width='30' height='6.67' fill='%23CF142B'/><circle cx='19.71' cy='10.60' r='.55' fill='%23fff'/><circle cx='18.74' cy='9.19' r='.55' fill='%23fff'/><circle cx='17.36' cy='8.17' r='.55' fill='%23fff'/><circle cx='15.72' cy='7.65' r='.55' fill='%23fff'/><circle cx='14.01' cy='7.70' r='.55' fill='%23fff'/><circle cx='12.40' cy='8.30' r='.55' fill='%23fff'/><circle cx='11.08' cy='9.39' r='.55' fill='%23fff'/><circle cx='10.18' cy='10.85' r='.55' fill='%23fff'/></g></g><circle cx='12' cy='12' r='11.6' fill='none' stroke='%23000' stroke-opacity='.18' stroke-width='.8'/></svg>")
}
.main-nav a[href="provinces.html"],
.main-nav a[href="eswathini.html"],
.main-nav a[href="lesotho.html"],
.main-nav a[href="usa.html"],
.main-nav a[href="venezuela.html"],
.mobile-menu nav a[href="provinces.html"],
.mobile-menu nav a[href="eswathini.html"],
.mobile-menu nav a[href="lesotho.html"],
.mobile-menu nav a[href="usa.html"],
.mobile-menu nav a[href="venezuela.html"] {
    padding-left: 40px;
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 22px 22px
}