/* =========================================================
   WASMaN KNOWLEDGE BITE PAGE
   Premium editorial aquatic redesign
========================================================= */

:root {
    --ocean-deep: #052f43;
    --ocean-dark: #073e54;
    --ocean: #087f9c;
    --teal: #18a7b5;
    --mint: #4fd2c4;

    --seafoam: #e9f8f5;
    --mist: #f1f9fa;
    --ice: #f9fcfd;
    --sand: #f5f2ea;

    --white: #ffffff;

    --heading: #183746;
    --text: #000000;
    --muted: #070707;

    --border: rgba(8,127,156,0.12);

    --shadow-soft: 0 12px 34px rgba(5,47,67,0.07);
    --shadow-medium: 0 22px 52px rgba(5,47,67,0.11);
    --shadow-large: 0 32px 80px rgba(5,47,67,0.15);

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 30px;

    --transition: all 0.34s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;

    color: var(--text);

    background: var(--white);

    line-height: 1.8;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
}
/* p{
    font-size:18pt
} */
img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

.knowledge-page {
    overflow: hidden;
}

.content-container {
    width: min(1200px, 88%);
    margin: auto;
}
 /* pp{
    font-size:1.2rem;
} */



/* =========================================================
   SHARED SECTION STYLES
========================================================= */

.section-title {
    max-width: 760px;

    margin: 0 auto 55px;

    text-align: center;
}

.section-label {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 10px;

    color: var(--teal);

    font-size: 1rem;

    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}

.section-label::before {
    content: "";

    width: 28px;
    height: 2px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--mint),
            var(--ocean)
        );
}

.section-label.dark-label {
    color: #75ddd3;
}

.section-title h2 {
    margin-bottom: 14px;

    color: var(--ocean-deep);

    font-size: clamp(2.4rem, 4vw, 3.5rem);

    font-weight: 600;

    line-height: 1.12;

    letter-spacing: -0.025em;
}

.section-title p {
    color: var(--muted);

    font-size: 0.9rem;

    line-height: 1.8;
}


/* =========================================================
   HERO
========================================================= */

.knowledge-hero {
    min-height: 700px;

    position: relative;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            100deg,
            rgba(3,39,51,0.92),
            rgba(4,59,76,0.68),
            rgba(8,127,156,0.26)
        ),
        url("../pics_vids/knbh.png")
        center / cover no-repeat;

    background-attachment: fixed;
}

.knowledge-overlay {
    width: 100%;
}

.knowledge-content {
    width: min(1180px, 88%);

    margin: auto;

    color: var(--white);
}

.hero-eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 22px;

    color: #9de6df;

    font-size: 1rem;

    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.knowledge-content h1 {
    max-width: 920px;

    margin-bottom: 24px;

    color: var(--white);

    font-size: clamp(3.5rem, 6vw, 5rem);

    font-weight: 600;

    line-height: 1.04;

    letter-spacing: -0.04em;
}

.knowledge-content h1 span {
    color: #9de6df;
}

.knowledge-content p {
    max-width: 720px;

    margin-bottom: 34px;

    color: rgba(255,255,255,0.82);

    font-size: 1.5rem;

    line-height: 1.9;
}

.knowledge-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 11px;
}

.knowledge-buttons a {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 13px 22px;

    border-radius: 50px;

    background: var(--mint);

    color: var(--ocean-deep);

    font-size: 0.78rem;

    font-weight: 800;

    transition: var(--transition);
}

.knowledge-buttons a:hover {
    transform: translateY(-3px);
}

.knowledge-buttons .outline-button {
    color: var(--white);

    background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.18);

    backdrop-filter: blur(8px);
}


/* =========================================================
   INTRO
========================================================= */

.knowledge-intro {
    width: min(1180px, 88%);

    margin: 110px auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 0.95fr);

    gap: 75px;

    align-items: center;
}

.knowledge-intro-text h2 {
    margin: 10px 0 20px;

    color: var(--ocean-deep);

    font-size: clamp(2.4rem, 4vw, 3.5rem);

    font-weight: 600;

    line-height: 1.12;

    letter-spacing: -0.025em;
}

.knowledge-intro-text p {
    margin-bottom: 17px;

    color: var(--text);

    font-size: 1.2rem;

    line-height: 1.9;
}

.knowledge-highlights {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    overflow: hidden;

    border-radius: var(--radius-md);

    background:
        linear-gradient(
            145deg,
            #edf8f7,
            #f7fbfb
        );

    border: 1px solid var(--border);

    box-shadow: var(--shadow-soft);
}

.highlight-item {
    min-height: 180px;

    padding: 28px;

    border-right: 1px solid rgba(8,127,156,0.08);

    border-bottom: 1px solid rgba(8,127,156,0.08);
}

.highlight-icon {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    border-radius: 11px;

    background: rgba(255,255,255,0.70);

    color: var(--teal);
}

.highlight-item strong {
    display: block;

    margin-bottom: 5px;

    color: var(--ocean);

    font-family: 'Playfair Display', serif;

    font-size: 2.2rem;

    line-height: 1.1;
}

.highlight-item span {
    color: var(--muted);

    font-size: 0.72rem;

    font-weight: 700;
}


/* =========================================================
   FEATURED KNOWLEDGE
========================================================= */

.featured-knowledge {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    min-height: 600px;

    background:
        linear-gradient(
            135deg,
            #052f43,
            #075f70
        );
}

.featured-knowledge-image {
    position: relative;

    min-height: 560px;

    overflow: hidden;
}

.featured-knowledge-image::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            transparent 50%,
            rgba(5,47,67,0.45)
        );

    pointer-events: none;
}

.featured-knowledge-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.featured-knowledge:hover .featured-knowledge-image img {
    transform: scale(1.03);
}

.featured-label {
    position: absolute;

    top: 22px;
    left: 22px;

    z-index: 2;

    padding: 7px 11px;

    border-radius: 50px;

    background: rgba(255,255,255,0.92);

    color: var(--ocean-deep);

    font-size: 0.62rem;

    font-weight: 800;

    letter-spacing: 0.12em;
}

.featured-image-caption {
    position: absolute;

    left: 22px;
    bottom: 22px;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 9px 13px;

    border-radius: 50px;

    background: rgba(255,255,255,0.93);

    color: var(--ocean-deep);

    font-size: 0.72rem;

    font-weight: 800;
}

.featured-image-caption i {
    color: var(--teal);
}

.featured-knowledge-content {
    padding: 70px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.featured-knowledge-content h2 {
    margin-bottom: 18px;

    color: var(--white);

    font-size: clamp(2.5rem, 4vw, 3.7rem);

    font-weight: 600;

    line-height: 1.08;
}

.featured-knowledge-content p {
    max-width: 580px;

    color: rgba(255,255,255,0.70);

    font-size: 1.2rem;

    line-height: 1.8;
}

.knowledge-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin: 25px 0;
}

.knowledge-meta span {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 8px 10px;

    border-radius: 50px;

    background: rgba(255,255,255,0.07);

    color: rgba(255,255,255,0.72);

    font-size: 0.7rem;
}

.knowledge-meta i {
    color: var(--mint);
}

.featured-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.featured-actions a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 12px 20px;

    border-radius: 50px;

    background: var(--mint);

    color: var(--ocean-deep);

    font-size: 0.76rem;

    font-weight: 800;

    transition: var(--transition);
}

.featured-actions a:hover {
    transform: translateY(-3px);
}

.featured-actions .outline-action {
    color: var(--white);

    background: transparent;

    border: 1px solid rgba(255,255,255,0.18);
}


/* =========================================================
   LATEST KNOWLEDGE
========================================================= */

.latest-knowledge {
    padding: 110px 0;

    background:
        linear-gradient(
            180deg,
            #f6fbfb,
            #fbfdfd
        );
}

.knowledge-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.knowledge-card {
    overflow: hidden;

    border-radius: 20px;

    background: var(--white);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-soft);

    transition: var(--transition);
}

.knowledge-card:hover {
    transform: translateY(-8px);

    box-shadow: var(--shadow-medium);
}

.knowledge-card-image {
    position: relative;

    height: 235px;

    overflow: hidden;
}

.knowledge-card-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 60%,
            rgba(5,47,67,0.28)
        );

    pointer-events: none;
}

.knowledge-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.knowledge-card:hover .knowledge-card-image img {
    transform: scale(1.04);
}

.knowledge-card-image span {
    position: absolute;

    top: 16px;
    left: 16px;

    z-index: 2;

    padding: 7px 10px;

    border-radius: 50px;

    background: rgba(5,47,67,0.86);

    color: var(--white);

    font-size: 0.6rem;

    font-weight: 800;

    letter-spacing: 0.10em;
}

.knowledge-card-body {
    padding: 25px;
}

.knowledge-card-body small {
    color: var(--teal);

    font-size: 0.64rem;

    font-weight: 800;

    letter-spacing: 0.10em;
}

.knowledge-card-body h3 {
    margin: 10px 0 11px;

    color: var(--ocean-deep);

    font-size: 1.35rem;

    font-weight: 600;

    line-height: 1.3;
}

.knowledge-card-body p {
    min-height: 80px;

    color: var(--text);

    font-size: 0.8rem;

    line-height: 1.75;
}

.knowledge-card-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 20px;

    padding-top: 16px;

    border-top: 1px solid var(--border);
}

.knowledge-card-footer a {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--ocean);

    font-size: 0.72rem;

    font-weight: 800;
}

.knowledge-card-footer .download-link {
    color: var(--teal);
}


/* =========================================================
   CATEGORIES
========================================================= */

.knowledge-categories {
    padding: 110px 0;

    background: var(--white);
}

.knowledge-category-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.knowledge-category-grid a {
    min-height: 190px;

    padding: 25px;

    border-radius: 18px;

    background: var(--ice);

    border: 1px solid var(--border);

    transition: var(--transition);
}

.knowledge-category-grid a:hover {
    transform: translateY(-6px);

    background:
        linear-gradient(
            145deg,
            var(--ocean-deep),
            var(--ocean)
        );

    box-shadow: var(--shadow-medium);
}

.category-icon {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 13px;

    background: var(--seafoam);

    color: var(--ocean);
}

.knowledge-category-grid strong {
    display: block;

    margin-bottom: 5px;

    color: var(--ocean-deep);

    font-family: 'Playfair Display', serif;

    font-size: 1.1rem;

    font-weight: 600;
}

.knowledge-category-grid small {
    color: var(--muted);

    font-size: 0.72rem;
}

.knowledge-category-grid a:hover .category-icon {
    background: rgba(255,255,255,0.11);

    color: var(--mint);
}

.knowledge-category-grid a:hover strong,
.knowledge-category-grid a:hover small {
    color: var(--white);
}


/* =========================================================
   RESOURCE HUB
========================================================= */

.resource-hub {
    padding: 110px 0;

    background:
        linear-gradient(
            180deg,
            #f5f2ea,
            #faf8f3
        );
}

.resource-grid {
    max-width: 1080px;

    margin: auto;

    display: grid;

    gap: 16px;
}

.resource-card {
    display: grid;

    grid-template-columns: 60px 1fr auto;

    gap: 20px;

    align-items: center;

    padding: 23px 26px;

    border-radius: 16px;

    background: var(--white);

    border: 1px solid rgba(5,47,67,0.08);

    box-shadow: 0 8px 22px rgba(5,47,67,0.04);

    transition: var(--transition);
}

.resource-card:hover {
    transform: translateX(5px);

    box-shadow: var(--shadow-soft);
}

.resource-icon {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--seafoam);

    color: var(--ocean);
}

.resource-info span {
    color: var(--teal);

    font-size: 0.62rem;

    font-weight: 800;

    letter-spacing: 0.10em;
}

.resource-info h3 {
    margin: 4px 0;

    color: var(--ocean-deep);

    font-size: 1rem;

    font-weight: 600;
}

.resource-info p {
    margin-bottom: 5px;

    color: var(--text);

    font-size: 0.76rem;

    line-height: 1.6;
}

.resource-info small {
    color: var(--muted);

    font-size: 0.65rem;
}

.resource-download {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 16px;

    border-radius: 50px;

    background: var(--ocean-deep);

    color: var(--white);

    font-size: 0.7rem;

    font-weight: 800;

    transition: var(--transition);
}

.resource-download:hover {
    background: var(--teal);

    transform: translateY(-2px);
}


/* =========================================================
   TRENDING
========================================================= */

.trending-knowledge {
    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.05fr);

    gap: 70px;

    padding: 105px 8%;

    background:
        linear-gradient(
            135deg,
            #052f43,
            #075f70
        );
}

.trending-content {
    align-self: center;
}

.trending-content h2 {
    margin-bottom: 18px;

    color: var(--white);

    font-size: clamp(2.5rem, 4vw, 3.7rem);

    font-weight: 600;

    line-height: 1.1;
}

.trending-content p {
    max-width: 580px;

    color: rgba(255,255,255,0.70);

    font-size: 0.88rem;

    line-height: 1.8;
}

.trend-list {
    display: flex;

    flex-direction: column;
}

.trend-list div {
    display: grid;

    grid-template-columns: auto 1fr auto;

    gap: 18px;

    align-items: center;

    padding: 20px 0;

    border-bottom: 1px solid rgba(255,255,255,0.13);
}

.trend-list span {
    color: var(--mint);

    font-size: 0.72rem;

    font-weight: 800;
}

.trend-list h3 {
    color: var(--white);

    font-size: 1.1rem;

    font-weight: 600;
}

.trend-list i {
    color: rgba(255,255,255,0.42);
}


/* =========================================================
   FINAL CTA
========================================================= */

.knowledge-cta {
    padding: 105px 5%;

    background:
        linear-gradient(
            135deg,
            #087f9c,
            #052f43
        );

    text-align: center;
}

.knowledge-cta-inner {
    max-width: 760px;

    margin: auto;
}

.knowledge-cta h2 {
    margin-bottom: 16px;

    color: var(--white);

    font-size: clamp(2.5rem, 5vw, 3.8rem);

    font-weight: 600;
}

.knowledge-cta p {
    max-width: 650px;

    margin: 0 auto 28px;

    color: rgba(255,255,255,0.74);

    font-size: 0.88rem;

    line-height: 1.8;
}

.knowledge-cta a {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 13px 22px;

    border-radius: 50px;

    background: var(--mint);

    color: var(--ocean-deep);

    font-size: 0.78rem;

    font-weight: 800;

    transition: var(--transition);
}

.knowledge-cta a:hover {
    transform: translateY(-3px);

    background: var(--white);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    position: relative;

    padding: 82px 0 0;

    color: rgba(255,255,255,0.75);

    background:
        linear-gradient(
            135deg,
            #042d42 0%,
            #07586b 55%,
            #087f8d 100%
        );

    overflow: hidden;
}

.footer::before {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    right: -220px;
    top: -250px;

    border-radius: 50%;

    border: 1px solid rgba(79,210,196,0.18);
}

.footer-container {
    position: relative;

    z-index: 2;

    width: min(1200px, 90%);

    margin: auto;

    display: grid;

    grid-template-columns:
        1.45fr
        0.8fr
        1fr
        1fr;

    gap: 50px;
}

.footer-brand-mark {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 14px;

    background: rgba(255,255,255,0.10);

    color: var(--mint);
}

.footer-column h2 {
    margin-bottom: 16px;

    color: var(--white);

    font-size: 1.8rem;

    font-weight: 600;
}

.footer-column h3 {
    margin-bottom: 20px;

    color: var(--white);

    font-size: 1rem;

    font-weight: 600;
}

.footer-column h3::after {
    content: "";

    display: block;

    width: 28px;
    height: 2px;

    margin-top: 8px;

    border-radius: 10px;

    background: var(--mint);
}

.footer-column p {
    color: rgba(255,255,255,0.66);

    font-size: 0.78rem;

    line-height: 1.82;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;

    color: rgba(255,255,255,0.66);

    font-size: 0.78rem;
}

.footer-column li a {
    color: rgba(255,255,255,0.66);

    transition: var(--transition);
}

.footer-column li a:hover {
    color: var(--mint);

    padding-left: 4px;
}

.focus-list li {
    display: flex;

    align-items: center;

    gap: 8px;
}

.focus-list i {
    width: 15px;

    color: var(--mint);

    font-size: 0.7rem;
}

.contact-item {
    display: flex;

    gap: 11px;

    margin-bottom: 16px;
}

.contact-item > i {
    width: 33px;
    height: 33px;

    flex: 0 0 33px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(255,255,255,0.08);

    color: var(--mint);

    font-size: 0.75rem;
}

.contact-item span {
    display: block;

    margin-bottom: 2px;

    color: rgba(255,255,255,0.43);

    font-size: 0.62rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.contact-item a,
.contact-item p {
    color: rgba(255,255,255,0.75);

    font-size: 0.76rem;
}

.footer-divider {
    width: min(1200px, 90%);

    height: 1px;

    margin: 60px auto 0;

    background: rgba(255,255,255,0.13);
}

.footer-bottom {
    position: relative;

    z-index: 2;

    width: min(1200px, 90%);

    margin: auto;

    padding: 24px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.46);

    font-size: 0.7rem;
}

.social-links {
    display: flex;

    gap: 9px;
}

.social-links a {
    width: 37px;
    height: 37px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: rgba(255,255,255,0.78);

    background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.10);

    transition: var(--transition);
}

.social-links a:hover {
    color: var(--ocean-deep);

    background: var(--mint);

    border-color: var(--mint);

    transform: translateY(-4px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .knowledge-intro,
    .featured-knowledge,
    .trending-knowledge {
        grid-template-columns: 1fr;
    }

    .knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .knowledge-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-knowledge-content {
        padding: 60px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    .knowledge-hero {
        min-height: 620px;

        background-attachment: scroll;
    }

    .knowledge-content h1 {
        font-size: 2.8rem;
    }

    .knowledge-content p {
        font-size: 0.88rem;
    }

    .knowledge-intro {
        width: 88%;

        margin: 78px auto;

        gap: 45px;
    }

    .knowledge-highlights {
        grid-template-columns: 1fr 1fr;
    }

    .latest-knowledge,
    .knowledge-categories,
    .resource-hub {
        padding: 78px 0;
    }

    .knowledge-grid,
    .knowledge-category-grid {
        grid-template-columns: 1fr;
    }

    .featured-knowledge-content {
        padding: 48px 7%;
    }

    .resource-card {
        grid-template-columns: 52px 1fr;
    }

    .resource-download {
        grid-column: 2;

        justify-self: start;
    }

    .trending-knowledge {
        padding: 80px 7%;

        gap: 45px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;

        text-align: center;
    }
}


@media (max-width: 440px) {

    .knowledge-content h1 {
        font-size: 2.35rem;
    }

    .knowledge-highlights {
        grid-template-columns: 1fr;
    }

    .knowledge-card-image {
        height: 220px;
    }

    .featured-knowledge-content {
        padding: 40px 6%;
    }

    .resource-card {
        grid-template-columns: 1fr;
    }

    .resource-download {
        grid-column: auto;
    }
}


/* =========================================================
   CURRENT KNOWLEDGE BITES — DOCUMENT LIBRARY
========================================================= */
.current-knowledge-bites {
    padding: 110px 0;
    background: linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
}

.current-bites-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.current-bite-card {
    display: grid;
    grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr);
    min-height: 390px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.current-bite-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.current-bite-preview {
    position: relative;
    width: 100%;
    min-height: 390px;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #e9f3f5;
    cursor: pointer;
}

.current-bite-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .45s ease;
}

.current-bite-card:hover .current-bite-preview img {
    transform: scale(1.025);
}

.preview-overlay {
    position: absolute;
    inset: auto 16px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(5, 47, 67, .90);
    font-size: .75rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.current-bite-body {
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.current-bite-category {
    margin-bottom: 10px;
    color: var(--teal);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.current-bite-body h3 {
    margin-bottom: 10px;
    color: var(--ocean-deep);
    font-size: 1.55rem;
    line-height: 1.25;
}

.current-bite-date {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
    color: #58707c;
    font-size: .74rem;
    font-weight: 700;
}

.current-bite-date i { color: var(--teal); }

.current-bite-body p {
    margin-bottom: 24px;
    color: var(--text);
    font-size: .82rem;
    line-height: 1.75;
}

.current-bite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: auto;
}

.bite-read-button,
.bite-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 999px;
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.bite-read-button {
    border: 0;
    color: #fff;
    background: var(--ocean-deep);
}

.bite-download-button {
    border: 1px solid rgba(8,127,156,.18);
    color: var(--ocean-deep);
    background: var(--seafoam);
}

.bite-read-button:hover,
.bite-download-button:hover {
    transform: translateY(-2px);
}

/* In-page PDF reader */
body.knowledge-reader-open { overflow: hidden; }

.knowledge-reader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.knowledge-reader.is-open { display: flex; }

.knowledge-reader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 25, 36, .82);
    backdrop-filter: blur(7px);
}

.knowledge-reader-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 96vw);
    height: min(90vh, 900px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.knowledge-reader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    color: #fff;
    background: linear-gradient(135deg, #052f43, #087f9c);
}

.knowledge-reader-header span {
    display: block;
    margin-bottom: 3px;
    color: #9de6df;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.knowledge-reader-header h2 {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.25;
}

.knowledge-reader-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.09);
    cursor: pointer;
}

.knowledge-reader-frame-wrap {
    min-height: 0;
    background: #e8eef0;
}

.knowledge-reader-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.knowledge-reader-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 13px 18px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.knowledge-reader-footer a,
.knowledge-reader-footer button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 999px;
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}

.knowledge-reader-footer a {
    color: #fff;
    background: var(--ocean-deep);
}

.knowledge-reader-footer button {
    border: 1px solid var(--border);
    color: var(--ocean-deep);
    background: var(--seafoam);
}

@media (max-width: 1050px) {
    .current-bites-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .current-knowledge-bites { padding: 78px 0; }

    .current-bite-card { grid-template-columns: 1fr; }

    .current-bite-preview {
        min-height: 0;
        aspect-ratio: 4 / 5.45;
    }

    .current-bite-body { padding: 24px; }

    .knowledge-reader { padding: 8px; }

    .knowledge-reader-dialog {
        width: 100%;
        height: 94vh;
        border-radius: 16px;
    }

    .knowledge-reader-header { padding: 14px 15px; }

    .knowledge-reader-header h2 { font-size: 1rem; }

    .knowledge-reader-footer {
        justify-content: stretch;
    }

    .knowledge-reader-footer a,
    .knowledge-reader-footer button {
        flex: 1;
        justify-content: center;
    }
}

/* Reliable PDF reading/download links */
.current-bite-preview,
.bite-read-button,
.bite-download-button {
    text-decoration: none;
}


/* =========================================================
   FINAL CURRENT KNOWLEDGE BITE CARDS
   Normal topic images — PDFs are opened only by the buttons.
========================================================= */
.current-bite-card {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
}

.current-bite-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9f3f5;
}

.current-bite-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.current-bite-card:hover .current-bite-photo img {
    transform: scale(1.035);
}

.current-bite-body {
    min-height: 330px;
}

.current-bite-actions {
    margin-top: auto;
}

.bite-read-button,
.bite-download-button {
    text-decoration: none !important;
}

@media (min-width: 1051px) {
    .current-bites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .current-bite-body {
        min-height: 0;
    }
}


/* =========================================================
   LATEST KNOWLEDGE BITE — WEEKLY FEATURE
========================================================= */
.latest-knowledge-bite {
    padding: 105px 0 80px;
    background:
        radial-gradient(circle at 92% 12%, rgba(24, 167, 181, .10), transparent 28%),
        linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
}

.latest-bite-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.latest-bite-heading h2 {
    margin: 10px 0 12px;
    color: var(--ocean-deep);
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.1;
}

.latest-bite-heading p {
    max-width: 680px;
    color: var(--text);
    line-height: 1.75;
}

.latest-bite-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    overflow: hidden;
    border: 1px solid rgba(8, 127, 156, .14);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(6, 30, 44, .11);
}

.latest-bite-photo {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    background: #dcecef;
}

.latest-bite-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.latest-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 999px;
    color: #fff;
    background: rgba(6, 30, 44, .90);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.latest-badge i {
    color: #8fe1d8;
}

.latest-bite-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 5vw, 58px);
}

.latest-bite-content h3 {
    margin: 9px 0 16px;
    color: var(--ocean-deep);
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.12;
}

.latest-bite-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
    color: #58707c;
    font-size: .78rem;
    font-weight: 700;
}

.latest-bite-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.latest-bite-meta i {
    color: var(--teal);
}

.latest-bite-content > p {
    margin-bottom: 30px;
    color: var(--text);
    font-size: .92rem;
    line-height: 1.85;
}

.latest-bite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.previous-knowledge-bites {
    padding: 85px 0 110px;
    background: #fff;
}

.previous-bites-heading {
    margin-bottom: 38px;
}

/* Keep archive cards compact and clearly secondary to the weekly feature */
.previous-knowledge-bites .current-bite-card {
    box-shadow: 0 12px 34px rgba(6, 30, 44, .07);
}

.previous-knowledge-bites .current-bite-photo {
    aspect-ratio: 16 / 9;
}

@media (max-width: 900px) {
    .latest-bite-card {
        grid-template-columns: 1fr;
    }

    .latest-bite-photo {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 600px) {
    .latest-knowledge-bite {
        padding: 75px 0 55px;
    }

    .previous-knowledge-bites {
        padding: 60px 0 80px;
    }

    .latest-bite-card {
        border-radius: 20px;
    }

    .latest-bite-content {
        padding: 27px 22px 30px;
    }

    .latest-bite-content h3 {
        font-size: 1.85rem;
    }

    .latest-bite-actions {
        flex-direction: column;
    }

    .latest-bite-actions .bite-read-button,
    .latest-bite-actions .bite-download-button {
        width: 100%;
    }
}

/* =========================================================
   CATEGORY-BASED KNOWLEDGE BITE LIBRARY
========================================================= */
.category-library { padding: 105px 0; background: #f6fbfb; scroll-margin-top: 110px; }
.kb-category-section { margin: 0 0 72px; padding-top: 22px; scroll-margin-top: 105px; }
.kb-category-heading { display:grid; grid-template-columns:64px 1fr auto; gap:18px; align-items:center; margin-bottom:24px; padding:22px 24px; border-radius:20px; background:linear-gradient(135deg,var(--ocean-deep),#075f70); box-shadow:var(--shadow-soft); }
.kb-category-heading-icon { width:56px; height:56px; display:flex; align-items:center; justify-content:center; border-radius:16px; color:var(--ocean-deep); background:var(--mint); font-size:1.25rem; }
.kb-category-heading span { color:#9de6df; font-size:.62rem; font-weight:800; letter-spacing:.12em; }
.kb-category-heading h3 { color:#fff; font-size:1.75rem; line-height:1.2; }
.kb-category-heading p { color:rgba(255,255,255,.7); font-size:.75rem; }
.kb-category-heading > a { color:#fff; font-size:.72rem; font-weight:800; padding:9px 13px; border:1px solid rgba(255,255,255,.2); border-radius:50px; }
.kb-document-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.kb-document-card { display:grid; grid-template-columns:52px 1fr; gap:16px; padding:22px; border-radius:18px; background:#fff; border:1px solid var(--border); box-shadow:0 8px 24px rgba(5,47,67,.05); transition:var(--transition); }
.kb-document-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-soft); }
.kb-document-icon { width:48px; height:48px; display:flex; align-items:center; justify-content:center; border-radius:13px; background:var(--seafoam); color:var(--ocean); font-size:1.2rem; }
.kb-document-info span { color:var(--teal); font-size:.58rem; font-weight:800; letter-spacing:.1em; }
.kb-document-info h4 { margin:3px 0; color:var(--ocean-deep); font-family:'Playfair Display',serif; font-size:1.05rem; line-height:1.35; }
.kb-document-info p { color:var(--muted); font-size:.7rem; }
.kb-document-actions { grid-column:1/-1; display:flex; gap:9px; padding-top:13px; border-top:1px solid var(--border); }
.kb-document-actions a { display:inline-flex; align-items:center; gap:7px; padding:9px 15px; border-radius:50px; font-size:.7rem; font-weight:800; }
.kb-read { background:var(--ocean-deep); color:#fff; }
.kb-download { background:var(--seafoam); color:var(--ocean-deep); border:1px solid var(--border); }
@media(max-width:800px){ .kb-document-grid{grid-template-columns:1fr}.kb-category-heading{grid-template-columns:54px 1fr}.kb-category-heading>a{grid-column:1/-1;width:max-content}.category-library{padding:75px 0} }


/* Fisheries & Aquaculture series card artwork */
.latest-bite-photo img,
.current-bite-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
}


/* =========================================================
   FISHERIES KNOWLEDGE BITE CARD IMAGE — COVER/FILL FIX
   Images occupy the complete dedicated image area.
========================================================= */
.latest-bite-photo,
.current-bite-photo {
    overflow: hidden !important;
    background: #eef4f6;
}

.latest-bite-photo img,
.current-bite-photo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: transparent !important;
}


/* FINAL clean Fisheries card artwork */
.latest-bite-photo {
    overflow: hidden !important;
    background: #eaf3f5;
}
.current-bite-photo {
    overflow: hidden !important;
    background: #eaf3f5;
    aspect-ratio: 5 / 3;
}
.latest-bite-photo img,
.current-bite-photo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}
