/* ════════════════════════════════════════════════════════════════
   DUBAI PR NETWORK — Unified Stylesheet  (style.css)
   Shared by: index.asp, category pages, pr.asp
════════════════════════════════════════════════════════════════ */

/* ── 1. Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: Montserrat, 'Segoe UI', Arial, sans-serif;
    background: #e1e1e1;
    color: #313131;
    font-size: 14px;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; }


/* ── 2. Site Header ──────────────────────────────────────────── */
.site-header {
    background: #ffffff;
    border-radius: 10px 10px 0 0;
    max-width: 1280px;
    margin: 0 auto;
}

/* Top utility bar */
.site-header .top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 4px 4px 2px;
    background: #02607E;
    border-bottom: none;
}
.site-header .top-bar a {
    font-size: 12px;
    color: #ffffff;
    padding: 0 10px;
    line-height: 22px;
    border-right: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
}
.site-header .top-bar a:last-child { border-right: none; }
.site-header .top-bar a:hover,
.site-header .top-bar a.active { color: #b2e4f0; }

/* Logo + Ad row */
.site-header .logo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
}
.site-header .logo-row .logo img { display: block; width: 240px; height: auto; }
.site-header .logo-row .ad-banner { flex: 1; text-align: center; padding: 0 10px; }
.site-header .logo-row .ad-banner img { display: inline-block; max-width: 725px; width: 100%; height: auto; }

/* Hamburger toggle */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #02607E;
    color: #fff;
    border: none;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
}
.nav-toggle .hamburger { display: flex; flex-direction: column; gap: 4px; }
.nav-toggle .hamburger span {
    display: block; width: 22px; height: 2px;
    background: #fff; border-radius: 2px; transition: all 0.25s;
}

/* Main navigation */
.site-header .main-nav { background: #02607E; overflow: visible; position: relative; }
.site-header .main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-header .main-nav > ul > li { position: relative; }
.site-header .main-nav > ul > li > a {
    display: block; color: #ffffff;
    font-size: 14px; font-weight: 700;
    padding: 8px 10px; white-space: nowrap; text-decoration: none; line-height: 1.3;
}
.site-header .main-nav > ul > li > a:hover { background: #faf9f7; color: #02607E !important; }

/* Dropdown */
.site-header .main-nav .dropdown {
    display: none;
    position: absolute; top: 100%; left: 0;
    background: #02607E; z-index: 9999;
    min-width: 260px; padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.site-header .main-nav li:hover > .dropdown { display: block; }
.site-header .main-nav .dropdown li a {
    display: block; color: #ffffff;
    font-size: 13px; font-weight: 600;
    padding: 6px 16px; white-space: nowrap; text-decoration: none;
}
.site-header .main-nav .dropdown li a:hover { background: #faf9f7; color: #02607E !important; }


/* ── 3. Layout Wrappers ──────────────────────────────────────── */
.site-wrapper { max-width: 1280px; margin: 0 auto; }
.container    { max-width: 1280px; margin: 0 auto; padding: 0 12px; background: #fff; }
.news-wrap    { background: #e1e1e1; padding: 5px 0 5px; }
.page-wrap    { background: #e1e1e1; padding: 5px 0 2px; }


/* ── 4. Error Banner ─────────────────────────────────────────── */
.error-banner {
    background: #fff0f0; border-left: 4px solid #e53935;
    padding: 14px 20px; margin-bottom: 24px;
    border-radius: 4px; color: #c62828;
    font-size: 13px;
}


/* ── 5. Shared Buttons ───────────────────────────────────────── */
.btn-all {
    display: inline-flex; align-items: center; gap: 5px;
    background: #02607E; color: #fff; font-size: .8rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
    padding: 7px 16px; border-radius: 3px; transition: background .2s;
}
.btn-all:hover { background: #024f6a; }

.btn-all-lg {
    display: inline-block; padding: 10px 28px;
    background: #02607E; color: #fff;
    font-size: .85rem; font-weight: 600; border-radius: 3px;
    letter-spacing: .4px; transition: background .2s;
}
.btn-all-lg:hover { background: #024f6a; }

.btn-readmore {
    display: inline-flex; align-items: center; gap: 5px;
    background: #02607E; color: #fff; padding: 8px 18px;
    border-radius: 3px; font-size: .78rem; font-weight: 600;
    align-self: flex-start; transition: background .2s;
}
.btn-readmore:hover { background: #024f6a; }

.back-link {
    display: inline-block; margin-bottom: 18px;
    background: #02607E; color: #fff; padding: 7px 16px;
    border-radius: 4px; font-size: 12px; font-weight: 700;
}
.back-link:hover { background: #014f68; }


/* ── 6. Shared News Card ─────────────────────────────────────── */
.news-card {
    background: #fff; border-radius: 7px; overflow: hidden;
    border: 1px solid #eee; transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: 0 6px 22px rgba(2,96,126,.18); transform: translateY(-3px); }
.card-img { display: block; aspect-ratio: 16/10; overflow: hidden; background: #f0f0f0; }
.card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s;
    border: 1px solid #02607E; border-radius: 4px;
    box-shadow: 0 2px 6px rgba(2,96,126,.25);
}
.news-card:hover .card-img img { transform: scale(0.96); }
.card-body { padding: 12px 14px 14px; }
.card-cat {
    display: inline-block; background: #e6f4f8; color: #02607E;
    font-size: .67rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; padding: 2px 8px; border-radius: 2px; margin-bottom: 7px;
}
.card-body h3 { font-size: .88rem; font-weight: 600; line-height: 1.4; margin-bottom: 7px; }
.card-body h3 a { color: #1a1a2e; }
.card-body h3 a:hover { color: #d32f2f; }
.card-body time { font-size: .72rem; color: #555; }
.card-excerpt {
    font-size: .76rem; color: #666; line-height: 1.45; margin-top: 4px;
    display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical;
    overflow: hidden;
}
.no-results {
    background: #f4fafd; border: 1px solid #d0e8f0;
    border-radius: 6px; padding: 24px;
    text-align: center; color: #555; font-size: .9rem;
}


/* ── 7. News Grid ────────────────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
/* Category pages: 3 columns */
.cat-main .news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}


/* ═══════════════════════════════════════════════════════════════
   8. HOMEPAGE — Slider
═══════════════════════════════════════════════════════════════ */
.slider-block  { margin-bottom: 20px; }
.slider-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.slider-header h2 { font-size: 1.65rem; font-weight: 700; color: #111; }
.slider-header h2 span { color: #d32f2f; }

/* Slider social icons */
.slider-social { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 8px 4px 4px; }
.slider-social a img { width: 30px; height: 37px; display: block; }

/* Main slider */
.slider-main {
    position: relative; overflow: hidden;
    border-radius: 8px; background: #111;
    aspect-ratio: 16/7;
}
.slider-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.slide { flex: 0 0 100%; width: 100%; height: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }

/* Slide caption */
.slide-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px 28px 22px;
    background: linear-gradient(transparent, rgba(0,0,0,.82));
    color: #fff;
}
.slide-cat {
    display: inline-block; background: #d32f2f;
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .6px; padding: 3px 9px; border-radius: 2px; margin-bottom: 8px;
}
.slide-caption h2 { font-size: clamp(1rem, 2.2vw, 1.5rem); font-weight: 700; margin-bottom: 6px; }
.slide-caption h2 a { color: #fff; }
.slide-caption h2 a:hover { text-decoration: underline; }
.slide-caption time { font-size: .78rem; opacity: .75; }

/* Arrows */
.s-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.18); color: #fff;
    border: none; cursor: pointer; font-size: 1.2rem;
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s; z-index: 10;
    backdrop-filter: blur(4px);
}
.s-arrow:hover { background: rgba(211,47,47,.85); }
.s-prev { left: 14px; }
.s-next { right: 14px; }

/* Dots */
.s-dots { position: absolute; bottom: 14px; right: 20px; display: flex; gap: 6px; z-index: 10; }
.s-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.45); cursor: pointer;
    transition: background .2s, transform .2s;
}
.s-dot.active { background: #d32f2f; transform: scale(1.3); }

/* Thumbnail strip */
.thumb-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.thumb {
    display: flex; align-items: flex-start; gap: 8px;
    background: #fff; border-radius: 6px; overflow: hidden;
    cursor: pointer; border: 2px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.thumb.active { border-color: #d32f2f; box-shadow: 0 2px 10px rgba(211,47,47,.25); }
.thumb img { width: 72px; min-width: 72px; height: 54px; object-fit: cover; flex-shrink: 0; }
.thumb p {
    font-size: .72rem; font-weight: 500; color: #333;
    padding: 6px 6px 6px 0; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ═══════════════════════════════════════════════════════════════
   9. HOMEPAGE — Category Tabs
═══════════════════════════════════════════════════════════════ */
.tabs-block { background: #fff; border-radius: 8px; box-shadow: 0 3px 16px rgba(2,96,126,.13); overflow: hidden; }

.tabs-nav {
    display: flex; flex-wrap: wrap; overflow-x: auto; gap: 0;
    background: #02607E;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.4) #02607E;
}
.tabs-nav::-webkit-scrollbar { height: 3px; }
.tabs-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.4); }

.tab-btn {
    flex-shrink: 0; padding: 11px 16px;
    background: transparent; border: none; cursor: pointer;
    color: rgba(255,255,255,.78); font-size: .78rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
    border-bottom: 3px solid transparent; transition: all .2s; white-space: nowrap;
}
.tab-btn:hover  { color: #fff; background: rgba(0,0,0,.12); }
.tab-btn.active { color: #fff; border-bottom-color: #fff; background: rgba(0,0,0,.18); }

.tab-pane        { display: none; padding: 20px 24px 24px; }
.tab-pane.active { display: block; }

.pane-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 18px;
    padding-bottom: 12px; border-bottom: 2px solid #e8f4f7;
}
.pane-header h3 {
    font-size: 1.1rem; font-weight: 700; color: #02607E;
    border-left: 4px solid #02607E; padding-left: 10px;
}
.pane-footer { text-align: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e8f4f7; }


/* ═══════════════════════════════════════════════════════════════
   10. CATEGORY PAGES
═══════════════════════════════════════════════════════════════ */
.breadcrumb { padding: 10px 0 4px; font-size: .78rem; color: #888; }
.breadcrumb a { color: #02607E; }
.breadcrumb a:hover { text-decoration: underline; }

.cat-page-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0 10px; border-bottom: 3px solid #02607E; margin-bottom: 20px;
}
.cat-title { font-size: 1.35rem; font-weight: 700; color: #02607E; border-left: 5px solid #02607E; padding-left: 12px; }
.cat-count  { font-size: .78rem; color: #888; font-weight: 500; }

/* Latest Postings – section title (h1) */
.section-title {
    font-size: 1.35rem; font-weight: 700; color: #02607E;
    border-left: 5px solid #02607E; padding-left: 12px;
    display: flex; align-items: center; gap: 10px;
}
.section-title .cat-count {
    background: #02607E; color: #fff;
    font-size: .75rem; font-weight: 700;
    padding: 2px 10px; border-radius: 12px;
    vertical-align: middle;
}

/* Date filter form */
.date-filter {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px 14px; margin-bottom: 16px;
    background: #f7fbfd; border: 1px solid #d0e8f0;
    border-radius: 6px; padding: 12px 16px;
}
.date-filter label {
    font-size: .82rem; font-weight: 600; color: #02607E;
}
.date-filter input[type="date"] {
    font-family: inherit; font-size: .82rem; color: #333;
    border: 1px solid #c0d8e4; border-radius: 4px;
    padding: 5px 10px; background: #fff; outline: none;
}
.date-filter input[type="date"]:focus { border-color: #02607E; box-shadow: 0 0 0 2px rgba(2,96,126,.15); }
.filter-btn {
    font-family: inherit; font-size: .82rem; font-weight: 700;
    background: #02607E; color: #fff; border: none;
    border-radius: 4px; padding: 6px 18px; cursor: pointer;
    transition: background .2s;
}
.filter-btn:hover { background: #014f68; }
.filter-reset {
    font-size: .78rem; color: #02607E; text-decoration: underline;
    white-space: nowrap;
}
.filter-reset:hover { color: #014f68; }

/* Result summary bar */
.result-summary {
    font-size: .83rem; color: #555; margin-bottom: 18px;
    padding: 8px 14px; background: #f0f8fb;
    border-left: 3px solid #02607E; border-radius: 0 4px 4px 0;
}
.result-summary strong { color: #02607E; }

/* Card meta: industry badge + date */
.card-industry {
    display: inline-block; background: #e6f4f8; color: #02607E;
    font-size: .67rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; padding: 2px 8px; border-radius: 2px;
    margin-bottom: 6px;
}
.card-date {
    font-size: .72rem; color: #888; margin: 0 0 6px;
}

/* Two-column layout */
.cat-layout { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 20px; }
.cat-main   { flex: 1; min-width: 0; }
.cat-sidebar { width: 272px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }

/* Featured article */
.featured-article {
    display: flex; gap: 0; background: #fff;
    border-radius: 8px; overflow: hidden; margin-bottom: 22px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 14px rgba(2,96,126,.12);
    transition: box-shadow .2s;
}
.featured-article:hover { box-shadow: 0 6px 24px rgba(2,96,126,.22); }
.featured-img-wrap {
    width: 54%; flex-shrink: 0; display: block;
    overflow: hidden; background: #f0f0f0;
}
.featured-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
    border: 2px solid #02607E;
}
.featured-article:hover .featured-img-wrap img { transform: scale(0.95); }
.featured-body {
    flex: 1; padding: 20px 22px;
    display: flex; flex-direction: column; justify-content: center;
}
.cat-badge {
    display: inline-block; background: #e6f4f8; color: #02607E;
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; padding: 3px 10px; border-radius: 2px; margin-bottom: 10px;
}
.featured-body h2 { font-size: 1.08rem; font-weight: 700; line-height: 1.45; margin-bottom: 12px; color: #1a1a2e; }
.featured-body h2 a:hover { color: #02607E; }
.featured-excerpt {
    font-size: .83rem; color: #555; line-height: 1.65;
    flex: 1; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
    overflow: hidden;
}
.grid-label { font-size: .82rem; color: #888; margin-bottom: 14px; font-weight: 500; }

/* Pagination */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 24px 0 8px; flex-wrap: wrap;
}
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 12px;
    border-radius: 4px; background: #fff; border: 1px solid #ddd;
    color: #333; font-size: .82rem; font-weight: 600; font-family: inherit;
    text-decoration: none; transition: all .2s;
}
.page-btn:hover   { background: #02607E; color: #fff; border-color: #02607E; }
.page-btn.active  { background: #02607E; color: #fff; border-color: #02607E; pointer-events: none; }
.page-btn.disabled{ opacity: .4; pointer-events: none; cursor: default; }

/* Category Sidebar widgets */
.sidebar-widget { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(2,96,126,.1); }
.widget-title {
    background: #02607E; color: #fff; padding: 10px 14px;
    font-size: .82rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .4px; margin: 0;
}
.sidebar-search { display: flex; padding: 12px; gap: 6px; }
.sidebar-search input {
    flex: 1; border: 1px solid #ddd; border-radius: 3px;
    padding: 7px 10px; font-size: .8rem; font-family: Montserrat, sans-serif; outline: none;
}
.sidebar-search input:focus { border-color: #02607E; }
.sidebar-search button {
    background: #02607E; color: #fff; border: none; border-radius: 3px;
    padding: 7px 12px; cursor: pointer; font-size: .88rem; transition: background .2s;
}
.sidebar-search button:hover { background: #024f6a; }
.side-stories { list-style: disc; padding: 0 0 0 18px; margin: 0; }
.side-stories li { margin-bottom: 6px; line-height: 1.4; }
.side-stories li a { font-size: .8rem; color: #333; text-decoration: none; transition: color .15s; }
.side-stories li a:hover { color: #02607E; text-decoration: underline; }
.sidebar-ad { border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(2,96,126,.1); margin-top: 12px; }
.sidebar-ad a { display: block; }
.sidebar-ad img { width: 100%; height: auto; object-fit: contain; }
.side-cats { list-style: none; padding: 0; margin: 0; }
.side-cats li { border-bottom: 1px solid #f0f0f0; }
.side-cats li:last-child { border-bottom: none; }
.side-cats li a {
    display: flex; align-items: center; padding: 8px 14px;
    font-size: .78rem; color: #333; transition: background .15s, color .15s;
}
.side-cats li a::before { content: '\203A'; margin-right: 8px; color: #02607E; font-weight: 700; font-size: 1rem; }
.side-cats li a:hover { background: #f0f8fb; color: #02607E; }
.side-cats li.current a { color: #02607E; font-weight: 700; }
.side-cats li.current a::before { content: '\00BB'; }


/* ═══════════════════════════════════════════════════════════════
   11. ARTICLE PAGE (pr.asp)
═══════════════════════════════════════════════════════════════ */
/* Two-column layout */
.layout-wrap { display: flex; gap: 20px; padding: 16px 0 20px; align-items: flex-start; }
.main-col    { flex: 1; min-width: 0; }
.side-col    { width: 270px; flex-shrink: 0; }

/* Article breadcrumb */
.art-breadcrumb { font-size: 11px; color: #666; margin-bottom: 10px; padding: 5px 0; border-bottom: 1px solid #e8e8e8; }
.art-breadcrumb a { color: #02607E; }
.art-breadcrumb a:hover { text-decoration: underline; }

/* Article title */
.art-title { font-size: 22px; font-weight: 700; line-height: 1.35; color: #1a1a1a; margin-bottom: 10px; }

/* Share bar */
.share-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.share-bar a { display: inline-flex; align-items: center; }
.share-bar a img { width: 24px; height: 24px; }
.share-bar a:hover { opacity: 0.8; }

/* Hero image */
.art-hero { margin-bottom: 16px; text-align: center; }
.art-hero img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
/* Thumbnail-only articles: float small image left, wrap text around it */
.art-body .art-thumb-inline {
    float: left !important;
    max-width: 300px !important;
    width: auto !important;
    height: auto !important;
    margin: 4px 15px 14px 0 !important;
    padding: 0 !important;
    border: 2px solid #02607E;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(2,96,126,0.15);
    display: block;
}

/* Article content */
.art-body { font-size: 14px; line-height: 1.8; color: #313131; margin-bottom: 20px; overflow: hidden; }
.art-body p   { margin-bottom: 10px; text-align: justify; }
.art-body h1, .art-body h2, .art-body h3 { margin: 14px 0 8px; color: #02607E; }

/* ── Blockquote ── */
.art-body blockquote {
    position: relative;
    margin: 20px 0;
    padding: 16px 20px 16px 52px;
    background: #f0fafc;
    border-left: 4px solid #02607E;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #2a4a52;
    line-height: 1.75;
}
.art-body blockquote::before {
    content: "\201C";
    position: absolute;
    left: 12px;
    top: 8px;
    font-size: 48px;
    line-height: 1;
    color: #02607E;
    opacity: 0.35;
    font-family: Georgia, serif;
    font-style: normal;
}
.art-body blockquote p {
    margin: 0 0 8px;
    text-align: left;
}
.art-body blockquote p:last-child { margin-bottom: 0; }
.art-body ul, .art-body ol { margin: 10px 0 12px 0; padding: 0; list-style: none; }
.art-body ol { counter-reset: art-ol; }

/* Unordered list — teal chevron */
.art-body ul > li {
    position: relative;
    padding: 4px 10px 4px 22px;
    margin-bottom: 3px;
    line-height: 1.6;
    background: transparent;
    border: none;
}
.art-body ul > li::before {
    content: "\203A";
    position: absolute;
    left: 4px;
    top: 2px;
    font-size: 20px;
    font-weight: 700;
    color: #02607E;
    line-height: 1.4;
}

/* Ordered list — teal circle counter */
.art-body ol > li {
    position: relative;
    padding: 4px 10px 4px 36px;
    margin-bottom: 3px;
    line-height: 1.6;
    background: transparent;
    border: none;
    counter-increment: art-ol;
}
.art-body ol > li::before {
    content: counter(art-ol);
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #02607E;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Nested lists */
.art-body ul ul, .art-body ol ul,
.art-body ul ol, .art-body ol ol {
    margin: 2px 0 2px 16px;
}
.art-body ul ul > li::before,
.art-body ol ul > li::before {
    content: "\2013";
    position: absolute;
    left: 4px;
    top: 3px;
    font-size: 14px;
    font-weight: 700;
    color: #02607E;
}
.art-body a   { color: #02607E; text-decoration: underline; }
.art-body strong, .art-body b { color: #1a1a1a; }
.art-body table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.art-body td, .art-body th { border: 1px solid #ddd; padding: 6px 10px; }

/* ── Article body images ── */

/* Base: applied to every <img> inside article content */
.art-body img,
.art-body .art-img {
    max-width: 100%;
    width: auto;        /* overrides any HTML width="" attribute from DB */
    height: auto;       /* overrides any HTML height="" attribute from DB */
    border: 1px solid #ddd;
    border-radius: 3px;
    display: block;
    margin: 10px auto;
}

/* Responsive centred block (no alignment info in DB content) */
.art-body img.img-auto,
.art-body .art-img.img-auto {
    display: block;
    margin: 14px auto;
    max-width: 100%;
}

/* Float left — text wraps on right */
.art-body img.img-float-left,
.art-body .art-img.img-float-left {
    float: left;
    display: inline;
    margin: 6px 20px 12px 0;
    max-height: 380px;  /* caps portrait images so they don't tower over text */
    width: auto;
}

/* Float right — text wraps on left */
.art-body img.img-float-right,
.art-body .art-img.img-float-right {
    float: right;
    display: inline;
    margin: 6px 0 12px 20px;
    max-height: 380px;
    width: auto;
}

/* Explicit centre alignment */
.art-body img.img-center,
.art-body .art-img.img-center {
    display: block;
    margin: 14px auto;
    float: none;
}

/* Clearfix so container stretches past any floated images */
.art-body::after {
    content: "";
    display: table;
    clear: both;
}

/* Mobile: never float, always full-width stacked */
@media (max-width: 600px) {
    .art-body img,
    .art-body .art-img {
        float: none !important;
        display: block !important;
        margin: 10px auto !important;
        max-width: 100% !important;
        max-height: none !important;
        width: auto !important;
        height: auto !important;
    }
    .art-body .art-thumb-inline {
        float: none !important;
        display: block !important;
        max-width: 100% !important;
        margin: 0 0 14px 0 !important;
        padding: 0 !important;
    }
}

/* Article meta */
.art-meta {
    background: #f7f9fa; border-left: 4px solid #02607E;
    padding: 10px 14px; font-size: 12px; color: #555;
    margin-bottom: 18px; border-radius: 0 4px 4px 0; line-height: 2;
}
.art-meta strong { color: #313131; }
.art-meta a { color: #02607E; }
.art-meta a:hover { text-decoration: underline; }

/* Next / Previous navigation */
.art-nav {
    display: flex; gap: 12px; margin-bottom: 24px;
}
.art-nav-card {
    flex: 1; display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; background: #f7f9fa;
    border: 1px solid #e0eef2; border-radius: 6px;
    text-decoration: none; color: inherit;
    transition: background 0.15s, border-color 0.15s;
    min-width: 0;
}
.art-nav-card:hover { background: #e8f5f9; border-color: #02607E; }
.art-nav-empty { flex: 1; }
.art-nav-icon {
    flex-shrink: 0; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: #02607E; border-radius: 50%; color: #fff;
}
.art-nav-text {
    display: flex; flex-direction: column; gap: 2px;
    min-width: 0; font-size: 13px;
}
.art-nav-text-right { text-align: right; }
.art-nav-label {
    font-size: 11px; font-weight: 600; color: #02607E;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.art-nav-card strong { color: #1a1a1a; font-weight: 600; line-height: 1.35; display: block; }
.art-nav-card:hover strong { color: #02607E; }
@media (max-width: 600px) {
    .art-nav { flex-direction: column; }
    .art-nav-text-right { text-align: right; }
    .art-nav-next { flex-direction: row-reverse; }
}

/* Section header (sidebar) */
.section-hdr {
    font-size: 13px; font-weight: 700; color: #fff;
    background: #02607E; padding: 6px 12px; margin-top: 12px; margin-bottom: 10px;
    border-radius: 3px; display: flex; justify-content: space-between; align-items: center;
}
.section-hdr a { color: #b2e0ec; font-size: 11px; font-weight: 600; }
.section-hdr a:hover { color: #fff; }

/* Story lists */
.story-list { list-style: disc; padding-left: 18px; margin: 0 0 14px 0; }
.story-list li { padding: 4px 0; border-bottom: 1px solid #f0f0f0; font-size: 12px; line-height: 1.4; }
.story-list li:last-child { border-bottom: none; }
.story-list a { color: #313131; }
.story-list a:hover { color: #02607E; text-decoration: underline; }

/* Article sidebar */
.widget { margin-bottom: 18px; }
.widget-ad { text-align: center; margin-bottom: 16px; }
.widget-ad img { max-width: 100%; height: auto; border-radius: 4px; }
.sections-list { list-style: none; padding: 0; margin: 0 0 14px; }
.sections-list li { border-bottom: 1px solid #f0f0f0; }
.sections-list a {
    display: block; padding: 6px 10px; font-size: 12px;
    font-weight: 600; color: #313131; transition: background 0.15s, color 0.15s;
}
.sections-list a:hover { background: #e8f5f9; color: #02607E; padding-left: 14px; }


/* ═══════════════════════════════════════════════════════════════
   12. SITE FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
    background: #ffffff;
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    overflow: hidden;
}
.footer-timestamps { padding: 6px 8px; font-size: 11px; }
.footer-timestamps .container { display: flex; justify-content: flex-end; }
.footer-inner { padding: 10px 0 4px; border-top: none; }
.footer-copy  { color: #5c5b5b; font-size: 11px; width: 55%; }
.footer-links { text-align: right; font-size: 11px; width: 45%; }
.footer-links a, .footer-small a, .footer-disclaimer a { color: #5c5b5b; text-decoration: none; }
.footer-links a:hover, .footer-small a:hover { color: #00596d; text-decoration: underline; }
.footer-small { color: #888; font-size: 10px; padding-top: 4px; }
.footer-divider { border-bottom: 1px solid #e8e8e8; height: 5px; }
.footer-disclaimer { color: #888; font-size: 10px; padding-top: 6px; padding-bottom: 8px; }
.footer-policy-link { color: #02607E !important; }

/* Back to top button */
#myBtn {
    display: none; position: fixed; bottom: 20px; right: 20px; z-index: 999;
    background: #02607E; color: #fff; border: none; padding: 8px 14px;
    border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
#myBtn:hover { background: #00596d; }


/* ═══════════════════════════════════════════════════════════════
   13. RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* ── 1100px: homepage grid 4→3 col ── */
@media (max-width: 1100px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 900px: category layout stacks ── */
@media (max-width: 900px) {
    .cat-layout { flex-direction: column; }
    .cat-sidebar { width: 100%; }
    .cat-main .news-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-article { flex-direction: column; }
    .featured-img-wrap { width: 100%; aspect-ratio: 16/9; }
    .featured-body { padding: 16px; }
    /* Article */
    .layout-wrap { flex-direction: column; }
    .side-col { width: 100%; }
    .art-title { font-size: 18px; }
}

/* ── 860px: homepage thumb strip & grid ── */
@media (max-width: 860px) {
    .thumb-strip { grid-template-columns: repeat(3, 1fr); }
    .thumb:nth-child(n+4) { display: none; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════
   SEARCH PAGE
══════════════════════════════════════════════════════ */
.search-hero {
    background: linear-gradient(135deg, #02607E 0%, #014f68 100%);
    padding: 36px 24px 28px;
    text-align: center;
}
.search-hero-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 18px;
    letter-spacing: .3px;
}
.search-hero-form { max-width: 700px; margin: 0 auto; }
.search-hero-row {
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}
.search-hero-row input[type="text"] {
    flex: 1;
    padding: 13px 16px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    background: #fff;
    color: #222;
}
.search-hero-row button {
    padding: 13px 26px;
    background: #f5a623;
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .2s;
}
.search-hero-row button:hover { background: #e09418; }

/* Category filter dropdown */
.search-cat-row {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}
.search-cat-row select {
    padding: 8px 14px;
    border-radius: 5px;
    border: none;
    font-size: .88rem;
    font-family: inherit;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    min-width: 220px;
    outline: none;
    appearance: auto;
}
.search-cat-row select option { color: #222; background: #fff; }
.search-cat-row select:focus { background: rgba(255,255,255,0.25); }

.search-tips {
    color: rgba(255,255,255,0.75);
    font-size: .8rem;
    margin: 9px 0 0;
}
.search-tips em { color: #fff; font-style: normal; font-weight: 600; }

/* Search meta / result count bar */
.search-meta {
    margin-top: 12px;
    font-size: .9rem;
    color: rgba(255,255,255,0.9);
}
.search-meta strong { color: #fff; }
.search-err { color: #ffd0d0; }

/* Search results section */
.search-section { padding: 24px 0 32px; }
.search-section .section-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #02607E;
    margin-bottom: 20px;
    padding-bottom: 8px;
}
.search-section .section-hdr h2 {
    font-size: 1.05rem;
    color: #02607E;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* No results state */
.search-empty {
    text-align: center;
    padding: 48px 24px;
    color: #777;
}
.search-empty h2 { font-size: 1.25rem; color: #444; margin-bottom: 8px; }
.search-empty p  { font-size: .95rem; }

/* ── 600px: mobile layout ── */
@media (max-width: 600px) {
    .slider-main { aspect-ratio: 4/3; }
    .thumb-strip { grid-template-columns: repeat(2, 1fr); }
    .thumb:nth-child(n+3) { display: none; }
    .news-grid { grid-template-columns: 1fr; }
    .cat-main .news-grid { grid-template-columns: 1fr; }
    .s-dots { display: none; }
    .tab-btn { padding: 11px 13px; font-size: .72rem; }
    .cat-title { font-size: 1.1rem; }
    .art-title { font-size: 16px; }

    /* Header mobile */
    .site-header .logo-row { flex-wrap: wrap; gap: 8px; }
    .site-header .logo-row .ad-banner { display: none; }
    .site-header .top-bar { flex-wrap: wrap; }

    /* Hamburger */
    .nav-toggle { display: flex; }
    .site-header .main-nav > ul {
        display: none; flex-direction: column; width: 100%;
    }
    .site-header .main-nav > ul.nav-open { display: flex; }
    .site-header .main-nav > ul > li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.12); }
    .site-header .main-nav > ul > li > a { font-size: 13px; padding: 10px 14px; width: 100%; box-sizing: border-box; }
    .site-header .main-nav .dropdown { display: none; position: static; box-shadow: none; background: #014f68; width: 100%; }
    .site-header .main-nav li.drop-open > .dropdown { display: block; }
    .site-header .main-nav .dropdown li a { padding: 9px 24px; font-size: 12px; }

    /* Search page mobile */
    .search-hero { padding: 24px 14px 20px; }
    .search-hero-title { font-size: 1.1rem; }
    .search-hero-row input[type="text"] { font-size: .9rem; padding: 11px 12px; }
    .search-hero-row button { padding: 11px 16px; font-size: .85rem; }
    .search-cat-row select { min-width: 180px; font-size: .82rem; }
}
