
/* =========================================================
   WATERPOD KNOWLEDGE CENTRE
   Premium AquaTech Design
========================================================= */

.knowledge-page {
    --knowledge-primary: #0879c9;
    --knowledge-deep: #07569a;
    --knowledge-navy: #102e4d;
    --knowledge-orange: #f28b24;
    --knowledge-light: #eaf6ff;
    --knowledge-text: #53677a;
    --knowledge-white: #ffffff;

    font-family: 'Poppins', sans-serif;
    color: var(--knowledge-navy);
    background: #ffffff;
    overflow-x: clip;
}

.knowledge-page * {
    box-sizing: border-box;
}

.knowledge-page a {
    text-decoration: none;
}

.knowledge-page button {
    font-family: inherit;
}


/* =========================================================
   HERO SECTION
========================================================= */

.knowledge-hero {
    position: relative;
    min-height: 550px;
    padding: 65px 6% 75px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 78% 45%, rgba(89, 190, 255, 0.20), transparent 30%),
        linear-gradient(115deg, #f7fcff 0%, #eaf7ff 48%, #dcefff 100%);
}

.knowledge-hero-water {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    background:
        radial-gradient(circle at 12% 18%, rgba(8, 121, 201, 0.08) 0 3px, transparent 4px),
        radial-gradient(circle at 28% 76%, rgba(8, 121, 201, 0.09) 0 5px, transparent 6px),
        radial-gradient(circle at 68% 15%, rgba(8, 121, 201, 0.08) 0 4px, transparent 5px),
        radial-gradient(circle at 92% 72%, rgba(8, 121, 201, 0.10) 0 6px, transparent 7px);
    background-size: 170px 170px, 220px 220px, 190px 190px, 240px 240px;
}

.knowledge-hero-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 55px;
    position: relative;
    z-index: 2;
}

.knowledge-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.knowledge-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 17px;
    border: 1px solid rgba(8, 121, 201, 0.18);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--knowledge-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 20px rgba(8, 121, 201, 0.06);
}

.knowledge-eyebrow i {
    font-size: 14px;
}

.knowledge-hero-content h1 {
    max-width: 680px;
    margin: 24px 0 18px;
    color: var(--knowledge-navy);
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1.17;
    letter-spacing: -1.8px;
}

.knowledge-hero-content h1 span {
    display: block;
    color: var(--knowledge-primary);
}

.knowledge-hero-content > p {
    max-width: 590px;
    margin: 0;
    color: var(--knowledge-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
}

.knowledge-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.knowledge-primary-btn,
.knowledge-secondary-btn {
    min-height: 49px;
    padding: 13px 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.knowledge-primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #0879c9, #07569a);
    box-shadow: 0 9px 23px rgba(8, 121, 201, 0.22);
}

.knowledge-primary-btn:hover {
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 13px 28px rgba(8, 121, 201, 0.30);
}

.knowledge-secondary-btn {
    color: var(--knowledge-deep);
    border: 1px solid rgba(8, 121, 201, 0.24);
    background: rgba(255, 255, 255, 0.65);
}

.knowledge-secondary-btn:hover {
    color: #ffffff;
    background: var(--knowledge-navy);
    border-color: var(--knowledge-navy);
    transform: translateY(-4px);
}


/* =========================================================
   HERO VISUAL
========================================================= */

.knowledge-hero-visual {
    min-height: 390px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.knowledge-visual-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 163, 235, 0.20), transparent 70%);
    filter: blur(12px);
    z-index: -1;
}

.knowledge-book-card {
    width: 310px;
    min-height: 310px;
    padding: 32px 30px;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(235,247,255,0.90));
    box-shadow:
        0 25px 65px rgba(17, 83, 133, 0.15),
        inset 0 1px 0 #ffffff;
    backdrop-filter: blur(15px);
    transform: rotate(-3deg);
}

.knowledge-book-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    color: #ffffff;
    font-size: 23px;
    background: linear-gradient(135deg, #1598e7, #07569a);
    box-shadow: 0 10px 22px rgba(8, 121, 201, 0.22);
    margin-bottom: 20px;
}

.knowledge-book-card > span {
    color: var(--knowledge-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.knowledge-book-card h3 {
    margin: 12px 0 20px;
    color: var(--knowledge-navy);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.4;
}

.knowledge-book-line {
    width: 55px;
    height: 4px;
    border-radius: 10px;
    background: var(--knowledge-orange);
    margin-bottom: 20px;
}

.knowledge-book-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.knowledge-book-footer span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #647b8e;
    font-size: 10px;
    font-weight: 500;
}

.knowledge-book-footer i {
    color: var(--knowledge-primary);
    font-size: 12px;
}

.knowledge-orbit {
    position: absolute;
    border: 1px solid rgba(8, 121, 201, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.knowledge-orbit.orbit-one {
    width: 420px;
    height: 250px;
    transform: rotate(-27deg);
}

.knowledge-orbit.orbit-two {
    width: 470px;
    height: 290px;
    transform: rotate(30deg);
    border-color: rgba(242, 139, 36, 0.18);
}

.knowledge-floating-drop {
    width: 52px;
    height: 52px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 19px;
    background: linear-gradient(145deg, #35b6f4, #0879c9);
    box-shadow: 0 12px 25px rgba(8, 121, 201, 0.23);
    z-index: 4;
}

.knowledge-floating-drop.drop-one {
    top: 34px;
    right: 55px;
}

.knowledge-floating-drop.drop-two {
    bottom: 30px;
    left: 30px;
    width: 42px;
    height: 42px;
    font-size: 15px;
    background: linear-gradient(145deg, #ffb65f, #f28b24);
}


/* =========================================================
   HERO BOTTOM WAVE
========================================================= */

.knowledge-hero-bottom {
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -55px;
    height: 90px;
    z-index: 1;
    border-radius: 50% 50% 0 0;
    background: #ffffff;
}


/* =========================================================
   INTRO SECTION
========================================================= */

.knowledge-intro {
    padding: 65px 6% 45px;
    background: #ffffff;
}

.knowledge-intro-container {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.knowledge-intro-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--knowledge-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.knowledge-intro-label span {
    width: 24px;
    height: 3px;
    border-radius: 5px;
    background: var(--knowledge-orange);
}

.knowledge-intro-container h2 {
    margin: 15px 0 12px;
    color: var(--knowledge-navy);
    font-size: clamp(27px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.8px;
}

.knowledge-intro-container h2 span {
    color: var(--knowledge-primary);
}

.knowledge-intro-container p {
    max-width: 750px;
    margin: 0 auto;
    color: var(--knowledge-text);
    font-size: 14px;
    line-height: 1.9;
}


/* =========================================================
   TOPIC SECTION
========================================================= */

.knowledge-topics-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 50px 6% 85px;
}

.knowledge-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.knowledge-section-label {
    color: var(--knowledge-orange);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.knowledge-section-heading h2 {
    margin: 10px 0 9px;
    color: var(--knowledge-navy);
    font-size: clamp(27px, 3.1vw, 37px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.8px;
}

.knowledge-section-heading h2 span {
    color: var(--knowledge-primary);
}

.knowledge-section-heading p {
    max-width: 650px;
    margin: 0;
    color: var(--knowledge-text);
    font-size: 13px;
    line-height: 1.8;
}

.knowledge-topic-count {
    min-width: 115px;
    padding: 13px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #dcecf8;
    border-radius: 14px;
    background: #f3faff;
}

.knowledge-topic-count strong {
    color: var(--knowledge-primary);
    font-size: 29px;
    font-weight: 800;
    line-height: 1.2;
}

.knowledge-topic-count span {
    color: #6d8193;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}


/* =========================================================
   FILTER BAR
========================================================= */

.knowledge-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
}

.knowledge-filter {
    padding: 10px 17px;
    border: 1px solid #dce8f1;
    border-radius: 50px;
    color: #63788b;
    background: #ffffff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.knowledge-filter:hover,
.knowledge-filter.active {
    color: #ffffff;
    border-color: var(--knowledge-primary);
    background: var(--knowledge-primary);
    box-shadow: 0 6px 16px rgba(8, 121, 201, 0.17);
}


/* =========================================================
   TOPIC GRID
========================================================= */

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.knowledge-card {
    min-width: 0;
    min-height: 295px;
    padding: 23px 23px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5edf4;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(16, 46, 77, 0.045);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.knowledge-card:hover {
    transform: translateY(-7px);
    border-color: rgba(8, 121, 201, 0.35);
    box-shadow: 0 18px 40px rgba(16, 76, 120, 0.12);
}

.knowledge-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 19px;
}

.knowledge-card-number {
    color: #b3c8d8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.knowledge-card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: var(--knowledge-primary);
    background: #eaf6ff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.knowledge-card:hover .knowledge-card-icon {
    color: #ffffff;
    background: linear-gradient(135deg, #1598e7, #07569a);
    transform: rotate(-7deg);
}

.knowledge-card-category {
    margin-bottom: 8px;
    color: var(--knowledge-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.knowledge-card h3 {
    margin: 0 0 11px;
    color: var(--knowledge-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
    transition: color 0.25s ease;
}

.knowledge-card:hover h3 {
    color: var(--knowledge-primary);
}

.knowledge-card p {
    margin: 0 0 20px;
    color: #718294;
    font-size: 11px;
    line-height: 1.8;
    font-weight: 400;
}

.knowledge-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #edf2f6;
}

.knowledge-card-tag {
    padding: 6px 10px;
    border-radius: 5px;
    color: #668198;
    background: #f2f7fa;
    font-size: 9px;
    font-weight: 600;
}

.knowledge-card-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--knowledge-primary);
    background: #eaf6ff;
    font-size: 11px;
    transition: all 0.3s ease;
}

.knowledge-card:hover .knowledge-card-arrow {
    color: #ffffff;
    background: var(--knowledge-primary);
    transform: translateX(3px);
}


/* =========================================================
   FILTER EMPTY STATE
========================================================= */

.knowledge-empty-state {
    padding: 35px 15px;
    color: #718294;
    text-align: center;
    font-size: 13px;
}


/* =========================================================
   CTA SECTION
========================================================= */

.knowledge-cta {
    padding: 30px 6% 80px;
    background: #ffffff;
}

.knowledge-cta-inner {
    max-width: 1180px;
    min-height: 300px;
    margin: 0 auto;
    padding: 48px 55px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 24px;
    background:
        radial-gradient(circle at 85% 45%, rgba(68, 177, 241, 0.25), transparent 30%),
        linear-gradient(120deg, #07569a, #0879c9);
    box-shadow: 0 20px 45px rgba(8, 83, 145, 0.16);
}

.knowledge-cta-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.knowledge-cta-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #bce5ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.knowledge-cta-content h2 {
    margin: 16px 0 13px;
    color: #ffffff;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.35;
}

.knowledge-cta-content h2 span {
    display: block;
    color: #ffbd72;
}

.knowledge-cta-content p {
    max-width: 590px;
    margin: 0;
    color: rgba(255, 255, 255, 0.80);
    font-size: 12px;
    line-height: 1.9;
}

.knowledge-cta-btn {
    min-height: 47px;
    margin-top: 24px;
    padding: 13px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 8px;
    color: var(--knowledge-deep);
    background: #ffffff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.knowledge-cta-btn:hover {
    color: #ffffff;
    background: var(--knowledge-orange);
    transform: translateY(-4px);
}

.knowledge-cta-visual {
    width: 260px;
    height: 230px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.knowledge-cta-circle {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.knowledge-cta-circle.circle-one {
    width: 190px;
    height: 190px;
}

.knowledge-cta-circle.circle-two {
    width: 240px;
    height: 240px;
    border-color: rgba(255, 255, 255, 0.13);
}

.knowledge-cta-drop {
    width: 95px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    font-size: 42px;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1024px) {

    .knowledge-hero {
        padding-left: 5%;
        padding-right: 5%;
    }

    .knowledge-hero-container {
        gap: 25px;
    }

    .knowledge-hero-content h1 {
        font-size: 42px;
    }

    .knowledge-book-card {
        width: 280px;
    }

    .knowledge-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 17px;
    }

    .knowledge-topics-section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .knowledge-cta-inner {
        padding: 42px;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 768px) {

    .knowledge-hero {
        min-height: auto;
        padding: 55px 6% 70px;
    }

    .knowledge-hero-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .knowledge-hero-content {
        align-items: center;
        text-align: center;
    }

    .knowledge-eyebrow {
        font-size: 9px;
        letter-spacing: 1.1px;
    }

    .knowledge-hero-content h1 {
        margin: 20px 0 14px;
        font-size: clamp(31px, 8vw, 42px);
        line-height: 1.22;
        letter-spacing: -1px;
    }

    .knowledge-hero-content > p {
        font-size: 12px;
        line-height: 1.8;
    }

    .knowledge-hero-actions {
        justify-content: center;
        margin-top: 23px;
    }

    .knowledge-primary-btn,
    .knowledge-secondary-btn {
        min-height: 45px;
        padding: 12px 15px;
        font-size: 10px;
    }

    .knowledge-hero-visual {
        min-height: 340px;
        margin-top: 10px;
        transform: scale(0.9);
    }

    .knowledge-book-card {
        width: 270px;
        min-height: 290px;
        padding: 25px;
    }

    .knowledge-orbit.orbit-one {
        width: 340px;
        height: 220px;
    }

    .knowledge-orbit.orbit-two {
        width: 370px;
        height: 240px;
    }

    .knowledge-floating-drop.drop-one {
        right: 10px;
    }

    .knowledge-floating-drop.drop-two {
        left: 5px;
    }

    .knowledge-hero-bottom {
        bottom: -65px;
    }

    .knowledge-intro {
        padding: 45px 6% 35px;
    }

    .knowledge-intro-container h2 {
        font-size: 28px;
    }

    .knowledge-intro-container p {
        font-size: 12px;
    }

    .knowledge-topics-section {
        padding: 40px 6% 60px;
    }

    .knowledge-section-heading {
        align-items: flex-start;
        gap: 15px;
    }

    .knowledge-section-heading h2 {
        font-size: 27px;
    }

    .knowledge-section-heading p {
        font-size: 11px;
    }

    .knowledge-topic-count {
        min-width: 78px;
        padding: 10px 8px;
    }

    .knowledge-topic-count strong {
        font-size: 24px;
    }

    .knowledge-topic-count span {
        font-size: 8px;
    }

    .knowledge-filter-bar {
        gap: 7px;
        margin-bottom: 22px;
    }

    .knowledge-filter {
        padding: 8px 12px;
        font-size: 9px;
    }

    .knowledge-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .knowledge-card {
        min-height: 255px;
        padding: 20px;
    }

    .knowledge-card h3 {
        font-size: 15px;
    }

    .knowledge-card p {
        font-size: 11px;
    }

    .knowledge-cta {
        padding: 20px 5% 60px;
    }

    .knowledge-cta-inner {
        min-height: auto;
        padding: 35px 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        border-radius: 18px;
    }

    .knowledge-cta-content h2 {
        font-size: 27px;
    }

    .knowledge-cta-content p {
        font-size: 11px;
    }

    .knowledge-cta-visual {
        width: 100%;
        height: 150px;
        transform: scale(0.75);
        transform-origin: center;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .knowledge-hero {
        padding-top: 40px;
    }

    .knowledge-hero-content h1 {
        font-size: 30px;
    }

    .knowledge-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .knowledge-primary-btn,
    .knowledge-secondary-btn {
        width: 100%;
    }

    .knowledge-hero-visual {
        transform: scale(0.78);
        margin-top: -5px;
        margin-bottom: -25px;
    }

    .knowledge-section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .knowledge-topic-count {
        flex-direction: row;
        gap: 9px;
        align-items: center;
    }

    .knowledge-cta-content h2 {
        font-size: 24px;
    }

}
