/* ── Shared content page styles (articles + videos) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Merriweather:wght@400;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif !important;
    background: #ffffff !important;
    color: #1a1a2e !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-font-smoothing: antialiased;
}

/* ── Injected Navbar ── */
#content-nav {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: linear-gradient(to bottom, rgba(16,136,150,0.88), rgba(16,136,150,0.78));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(139,21,56,0.2);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    font-family: 'Inter', sans-serif;
}

#content-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #108896, #C41E3A, #108896, #5fd6e0, #C41E3A, #108896);
    background-size: 300% 100%;
    animation: cnAccent 6s linear infinite;
    z-index: 2;
}

@keyframes cnAccent {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

#content-nav.scrolled {
    background: linear-gradient(to bottom, rgba(13,107,119,0.97), rgba(10,85,95,0.97));
    box-shadow: 0 6px 36px rgba(0,0,0,0.28);
}

#content-nav .cn-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}

#content-nav.scrolled .cn-inner { height: 56px; }

#content-nav .cn-brand {
    display: flex; align-items: center; flex-shrink: 0; text-decoration: none;
}

#content-nav .cn-brand img {
    height: 38px; width: auto;
    transition: height 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

#content-nav.scrolled .cn-brand img { height: 32px; }
#content-nav .cn-brand:hover img { filter: brightness(1.18); transform: scale(1.04); }

/* Mobile toggle */
#content-nav .cn-toggler {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 9px;
    padding: 8px 11px;
    cursor: pointer;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    transition: background 0.2s ease;
}

#content-nav .cn-toggler:hover { background: rgba(255,255,255,0.18); }

/* Center + right */
#content-nav .cn-main-links {
    display: flex; align-items: center;
    flex: 1; justify-content: flex-end; gap: 2px;
}

#content-nav .cn-links {
    display: flex; align-items: center; gap: 2px;
    list-style: none; margin: 0; padding: 0;
}

#content-nav .cn-links a {
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 600;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    padding: 7px 14px; border-radius: 8px;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
    letter-spacing: 0.15px;
}

#content-nav .cn-links a::after {
    content: '';
    position: absolute;
    bottom: 3px; left: 14px;
    width: 0; height: 2px; border-radius: 2px;
    background: #ffffff;
    transition: width 0.25s ease;
}

#content-nav .cn-links a:hover { color: #ffffff; background: rgba(255,255,255,0.1); }
#content-nav .cn-links a:hover::after { width: calc(100% - 28px); }

/* Right group */
#content-nav .cn-right {
    display: flex; align-items: center; gap: 14px;
    margin-left: 12px;
}

#content-nav .cn-sbu {
    display: flex; align-items: center; gap: 8px;
    padding-right: 14px;
    border-right: 1px solid rgba(255,255,255,0.15);
}

#content-nav .cn-sbu a { display: flex; align-items: center; }

#content-nav .cn-sbu a img {
    height: 26px; width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

#content-nav .cn-sbu a:hover img {
    opacity: 1; filter: brightness(1.05) saturate(1.15); transform: scale(1.08);
}

#content-nav .cn-back {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px; font-weight: 700;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 7px 16px; border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.07);
    transition: all 0.25s ease;
    white-space: nowrap;
}

#content-nav .cn-back:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.35);
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 960px) {
    #content-nav .cn-inner { padding: 0 20px; height: 60px; }
    #content-nav .cn-toggler { display: flex; align-items: center; }
    #content-nav .cn-main-links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(13,107,119,0.98);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255,255,255,0.12);
        padding: 16px 20px 20px;
        flex-direction: column; align-items: stretch; gap: 0;
        box-shadow: 0 12px 40px rgba(0,0,0,0.3);
        justify-content: flex-start;
    }
    #content-nav .cn-main-links.open { display: flex; }
    #content-nav .cn-links { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
    #content-nav .cn-links a { padding: 10px 14px; }
    #content-nav .cn-links a::after { display: none; }
    #content-nav .cn-right { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; margin-top: 10px; margin-left: 0; justify-content: space-between; }
    #content-nav .cn-sbu { border-right: none; padding-right: 0; }
}

/* Hide old Bootstrap navbar + masthead immediately */
nav.navbar,
header.newspost-masthead,
header.news-masthead,
header.news2-masthead,
section.contact-section.bg-red,
nav.blog-pagination { display: none !important; }

/* ── Article / Video Content Area ── */
.content-page-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* Hide old masthead */
header.newspost-masthead,
header.news-masthead,
header.news2-masthead { display: none !important; }

/* Hide old content bg */
section#news-title {
    background: #ffffff !important;
    padding: 0 !important;
}

/* Article hero band */
.art-hero-band {
    background: linear-gradient(160deg, #070d10 0%, #0d1f2a 50%, #1a0810 100%);
    padding: 70px 40px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.art-hero-band::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 60%, rgba(16,136,150,0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 30%, rgba(196,30,58,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.art-hero-band-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.art-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #5fd6e0;
    border: 1px solid rgba(95,214,224,0.3);
    background: rgba(95,214,224,0.08);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.art-hero-title {
    font-family: 'Merriweather', serif;
    font-size: 40px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.art-hero-meta {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

/* Article content card */
.art-content-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.art-author-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.art-author-row img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(16,136,150,0.2);
}

.art-author-row .author-info strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0d1f2a;
}

.art-author-row .author-info span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #8a9bb0;
}

/* Article body text */
section#news-title p,
.art-body-text,
.art-body-text p {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.85 !important;
    color: #2d3748 !important;
    margin-bottom: 0 !important;
}

/* Video embed */
.video-embed-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    margin-bottom: 0;
    background: #000;
}

.video-embed-wrap iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    border: none;
    border-radius: 0;
}

/* ── Pagination ── */
nav.blog-pagination { display: none !important; }

.cn-pagination {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 40px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.cn-pag-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #108896;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1.5px solid rgba(16,136,150,0.2);
    background: #f8fafa;
    transition: all 0.25s ease;
}

.cn-pag-btn:hover {
    background: #108896;
    border-color: #108896;
    color: #ffffff;
    text-decoration: none;
}

.cn-pag-top {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #8a9bb0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cn-pag-top:hover { color: #108896; text-decoration: none; }

/* ── Injected Footer ── */
#content-footer {
    background: linear-gradient(160deg, #f0fafb 0%, #e8f6f7 40%, #fdf4f6 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

#content-footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #108896, #C41E3A, #108896, #5fd6e0, #C41E3A, #108896);
    background-size: 300% 100%;
    animation: ftBar 6s linear infinite;
}

@keyframes ftBar {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Hide old footer */
section.contact-section.bg-red { display: none !important; }

#content-footer .cf-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr;
    gap: 48px;
    padding: 56px 60px 44px;
    max-width: 1200px;
    margin: 0 auto;
}

#content-footer .cf-logo {
    height: 40px; width: auto; margin-bottom: 14px; display: block;
    transition: filter 0.3s ease;
}

#content-footer .cf-logo:hover { filter: drop-shadow(0 4px 12px rgba(16,136,150,0.4)); }

#content-footer .cf-tagline {
    font-size: 13px; color: #5a6c7d; line-height: 1.75; margin-bottom: 18px;
}

#content-footer .cf-socials { display: flex; gap: 10px; }

#content-footer .cf-social {
    width: 34px; height: 34px; border-radius: 9px;
    background: #ffffff; border: 1.5px solid rgba(16,136,150,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #108896; text-decoration: none; font-size: 13px;
    transition: all 0.3s ease;
}

#content-footer .cf-social:hover {
    background: linear-gradient(135deg, #108896, #0d6b77);
    border-color: transparent; color: #ffffff; transform: translateY(-3px);
}

#content-footer .cf-col-title {
    font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: #108896; margin-bottom: 18px; padding-bottom: 10px; position: relative;
}

#content-footer .cf-col-title::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 22px; height: 2px; border-radius: 1px;
    background: linear-gradient(90deg, #108896, #C41E3A);
}

#content-footer .cf-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }

#content-footer .cf-links a {
    font-size: 13px; color: #5a6c7d; text-decoration: none;
    display: inline-flex; align-items: center; gap: 0;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

#content-footer .cf-links a::before {
    content: '—'; font-size: 10px; color: #108896;
    opacity: 0; margin-right: 0;
    transition: opacity 0.25s ease, margin-right 0.25s ease;
}

#content-footer .cf-links a:hover { color: #108896; padding-left: 4px; }
#content-footer .cf-links a:hover::before { opacity: 1; margin-right: 6px; }

#content-footer .cf-contact { display: flex; flex-direction: column; gap: 12px; }
#content-footer .cf-row { display: flex; align-items: flex-start; gap: 10px; }

#content-footer .cf-icon {
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(16,136,150,0.1); border: 1.5px solid rgba(16,136,150,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #108896; font-size: 12px; flex-shrink: 0; transition: all 0.3s ease;
}

#content-footer .cf-row:hover .cf-icon {
    background: #108896; color: #ffffff; border-color: transparent;
    transform: scale(1.1) rotate(-5deg);
}

#content-footer .cf-ctext {
    font-size: 13px; color: #5a6c7d; line-height: 1.6; margin: 0;
}

#content-footer .cf-ctext a { color: #5a6c7d; text-decoration: none; transition: color 0.25s ease; }
#content-footer .cf-ctext a:hover { color: #108896; }

#content-footer .cf-bar {
    border-top: 1.5px solid rgba(16,136,150,0.12);
    padding: 16px 60px;
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}

#content-footer .cf-copy { font-size: 12px; color: #8a9bb0; }

#content-footer .cf-esi {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #8a9bb0; text-decoration: none; transition: color 0.3s ease;
}

#content-footer .cf-esi:hover { color: #108896; }
#content-footer .cf-esi img { height: 14px; width: auto; opacity: 0.45; transition: opacity 0.3s ease; }
#content-footer .cf-esi:hover img { opacity: 1; }

/* ── Tablet (≤768px) ── */
@media (max-width: 768px) {
    /* Hero band */
    .art-hero-band { padding: 60px 20px 48px; }
    .art-hero-title { font-size: 28px; letter-spacing: -0.5px; }
    .art-hero-pill { font-size: 10px; padding: 5px 13px; }
    .art-hero-meta { font-size: 13px; }

    /* Content card */
    .art-content-card { padding: 36px 20px 56px; }

    /* Author row */
    .art-author-row { gap: 12px; padding: 16px 0; margin-bottom: 28px; }
    .art-author-row img { width: 44px; height: 44px; }
    .art-author-row .author-info strong { font-size: 13px; }

    /* Body text */
    section#news-title p,
    .art-body-text,
    .art-body-text p { font-size: 15px !important; }

    /* Pagination */
    .cn-pagination { padding: 20px 20px 48px; gap: 12px; }
    .cn-pag-btn { font-size: 12px; padding: 8px 14px; }

    /* Footer */
    #content-footer .cf-main { grid-template-columns: 1fr 1fr; gap: 28px; padding: 44px 20px 36px; }
    #content-footer .cf-bar { padding: 14px 20px; flex-direction: column; gap: 8px; text-align: center; }
    #content-footer .cf-logo { height: 36px; }
}

/* ── Mobile (≤480px) ── */
@media (max-width: 480px) {
    /* Hero band */
    .art-hero-band { padding: 48px 16px 40px; }
    .art-hero-title { font-size: 22px; letter-spacing: 0; }
    .art-hero-pill { display: none; }

    /* Content card */
    .art-content-card { padding: 24px 16px 48px; }

    /* Author row */
    .art-author-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .art-author-row img { width: 40px; height: 40px; }

    /* Body text */
    section#news-title p,
    .art-body-text,
    .art-body-text p { font-size: 14px !important; line-height: 1.75 !important; }

    /* Video embed */
    .video-embed-wrap { border-radius: 10px; }

    /* Pagination */
    .cn-pagination { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 16px 40px; }
    .cn-pag-btn { justify-content: center; }
    .cn-pag-top { text-align: center; }

    /* Footer */
    #content-footer .cf-main { grid-template-columns: 1fr; gap: 24px; padding: 36px 16px 28px; }
    #content-footer .cf-bar { padding: 12px 16px; }
    #content-footer .cf-tagline { font-size: 12px; }
}

/* ── Small mobile (≤360px) ── */
@media (max-width: 360px) {
    .art-hero-title { font-size: 20px; }
    .art-content-card { padding: 20px 14px 40px; }
}
