/* =====================================
   THEME VARIABLES
===================================== */

:root {
    --page-bg: #f5f9ff;
    --navbar-bg: rgba(255, 255, 255, 0.97);

    --surface: #ffffff;
    --surface-soft: #f3f8ff;

    --main-text: #08244d;
    --muted-text: #72839f;

    --border: #dfe8f4;

    --green: #13b978;
    --blue: #1768e5;

    --status-bg: rgba(19, 185, 120, 0.13);

    --shadow:
        0 14px 35px rgba(20, 60, 105, 0.08);
}


html[data-theme="dark"] {
    --page-bg: #0f1220;
    --navbar-bg: rgba(20, 22, 36, 0.98);

    --surface: #242635;
    --surface-soft: #1c2030;

    --main-text: #f5f7ff;
    --muted-text: #aeb8cc;

    --border: #363a4d;

    --green: #35c998;
    --blue: #6e72ff;

    --status-bg: rgba(53, 201, 152, 0.14);

    --shadow:
        0 18px 40px rgba(0, 0, 0, 0.28);
}


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

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

html {
    scroll-behavior: smooth;
    background: var(--page-bg);
}

body {
    min-height: 100vh;

    font-family: "Inter", Arial, sans-serif;

    color: var(--main-text);
    background: var(--page-bg);

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}


/* =====================================
   WPV NAVBAR
===================================== */


/* Navbar links */


.screener-link {
    position: relative;
}

.dashboard-new-badge {
    position: absolute;
    top: 13px;
    left: 50%;

    padding: 2px 6px;

    transform: translateX(-50%);

    border-radius: 20px;

    color: #ffffff;
    background: var(--blue);

    font-size: 8px;
    font-weight: 800;
}


/* Navbar actions */


/* Theme button */


/* Other navbar buttons */


.notification-count {
    width: 18px;
    height: 18px;

    position: absolute;
    top: 0;
    right: 0;

    display: grid;
    place-items: center;

    border:
        2px solid var(--surface);

    border-radius: 50%;

    color: #ffffff;
    background: #f04040;

    font-size: 9px;
    font-weight: 800;
}


/* Notification without count */


/* =====================================
   RESOURCES PAGE
===================================== */

.resources-page {
    min-height: calc(100vh - 88px);
    padding: 78px 0 110px;

    display: flex;
    align-items: flex-start;

    background:
        radial-gradient(circle at 15% 20%,
            rgba(19, 185, 120, 0.06),
            transparent 32%),
        radial-gradient(circle at 85% 20%,
            rgba(23, 104, 229, 0.07),
            transparent 32%),
        var(--page-bg);
}

.resources-container {
    width: min(1400px, 82%);
    margin: 0 auto;
}


/* Large resource banner */

.resource-banner {
    width: 100%;
    min-height: 475px;

    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns: 32% 68%;

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

    background: var(--surface);

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


/* Banner image */

.resource-banner-image {
    min-height: 475px;

    position: relative;
    overflow: hidden;
}

.resource-banner-image img {
    width: 100%;
    height: 100%;

    position: absolute;
    inset: 0;

    object-fit: cover;
    object-position: center top;
}

.resource-image-overlay {
    width: 48%;
    height: 100%;

    position: absolute;
    top: 0;
    right: -2px;

    background: linear-gradient(90deg,
            transparent,
            var(--surface));
}


/* Banner content */

.resource-banner-content {
    padding: 55px 60px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.resource-label {
    margin-bottom: 16px;

    color: var(--green);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.resource-banner-content h1 {
    max-width: 780px;

    color: var(--main-text);

    font-size: clamp(38px, 4vw, 63px);
    line-height: 1.15;

    font-weight: 400;
    letter-spacing: -1.7px;
}

.resource-description {
    max-width: 580px;
    margin-top: 22px;

    color: var(--muted-text);

    font-size: 16px;
    line-height: 1.7;
}


/* Watch button */

.watch-guide-btn {
    margin-top: 36px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    gap: 14px;

    border: 0;

    color: var(--main-text);
    background: transparent;

    cursor: pointer;

    font-size: 20px;
    font-weight: 800;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.watch-guide-btn:hover {
    color: var(--green);
    transform: translateX(4px);
}

.play-circle {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #ffffff;

    background: linear-gradient(135deg,
            var(--green),
            var(--blue));

    font-size: 13px;

    box-shadow:
        0 9px 22px rgba(23, 104, 229, 0.22);
}

.play-circle i {
    margin-left: 2px;
}


/* =====================================
   MODAL
===================================== */

.guide-modal {
    position: fixed;
    inset: 0;

    z-index: 12000;

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

    padding: 25px;

    visibility: hidden;
    opacity: 0;

    transition:
        visibility 0.3s ease,
        opacity 0.3s ease;
}

.guide-modal.show {
    visibility: visible;
    opacity: 1;
}

.guide-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(5, 8, 18, 0.78);

    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.guide-modal-box {
    width: min(700px, 96%);
    min-height: 490px;

    position: relative;
    z-index: 2;

    overflow: hidden;

    display: grid;
    grid-template-columns: 44% 56%;

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

    background: var(--surface);

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.38);

    transform:
        translateY(25px) scale(0.97);

    transition: transform 0.3s ease;
}

.guide-modal.show .guide-modal-box {
    transform:
        translateY(0) scale(1);
}


/* Close button */

.guide-close-btn {
    width: 42px;
    height: 42px;

    position: absolute;
    top: 18px;
    right: 18px;

    z-index: 5;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    color: var(--main-text);
    background: var(--surface-soft);

    cursor: pointer;

    font-size: 25px;

    transition:
        color 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
}

.guide-close-btn:hover {
    color: #ffffff;
    background: #f05252;
    transform: rotate(90deg);
}


/* Modal intro */

.guide-modal-intro {
    padding: 54px 32px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: #ffffff;

    background:
        radial-gradient(circle at 75% 10%,
            rgba(43, 126, 255, 0.55),
            transparent 35%),
        linear-gradient(145deg,
            #272045,
            #34246b 60%,
            #254c9c);
}

.modal-small-label {
    margin-bottom: 14px;

    color: #8fe4c6;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.guide-modal-intro h2 {
    font-size: 35px;
    font-weight: 500;
}

.guide-modal-intro>p:not(.modal-small-label) {
    margin-top: 17px;

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

    font-size: 15px;
    line-height: 1.6;
}

.guide-profile-image {
    width: 122px;
    height: 122px;

    margin-top: 40px;

    overflow: hidden;

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

    border-radius: 50%;

    box-shadow:
        0 15px 32px rgba(0, 0, 0, 0.3);
}

.guide-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Modal list */

.guide-modal-list {
    padding: 75px 28px 32px;

    background: var(--surface);
}

.guide-video-item {
    width: 100%;
    min-height: 62px;
    padding: 0 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

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

    color: var(--main-text);
    background: transparent;

    cursor: pointer;

    text-align: left;

    transition:
        color 0.2s ease,
        padding 0.2s ease,
        background-color 0.2s ease;
}

.guide-video-item:hover,
.guide-video-item.active {
    padding-left: 16px;

    color: var(--green);
    background: var(--surface-soft);
}

.guide-item-left {
    display: flex;
    align-items: center;
    gap: 13px;

    font-size: 15px;
    font-weight: 600;
}

.guide-play-icon {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border: 2px solid var(--muted-text);
    border-radius: 50%;

    color: var(--muted-text);

    font-size: 9px;
}

.guide-play-icon i {
    margin-left: 2px;
}

.guide-video-item:hover .guide-play-icon,
.guide-video-item.active .guide-play-icon {
    border-color: var(--green);
    color: var(--green);
}

.guide-video-item>i {
    color: var(--muted-text);
    font-size: 13px;
}


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

@media (max-width: 1180px) {

    

    

    

    .resources-container {
        width: 90%;
    }

    .resource-banner {
        grid-template-columns: 38% 62%;
    }

    .resource-banner-content {
        padding: 50px 40px;
    }
}


@media (max-width: 960px) {

    .mobile-menu-btn {
        display: grid;
    }

    

    

    

    

    

    .dashboard-new-badge {
        top: 4px;
        right: auto;
        left: 85px;
    }

    

    .resources-page {
        padding-top: 45px;
    }

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

    .resource-banner-image {
        min-height: 390px;
    }

    .resource-image-overlay {
        width: 100%;
        height: 45%;

        top: auto;
        right: 0;
        bottom: 0;

        background: linear-gradient(180deg,
                transparent,
                var(--surface));
    }

    .resource-banner-content {
        padding: 20px 40px 55px;
    }
}


@media (max-width: 700px) {

    

    

    

    

    .resources-page {
        padding: 30px 0 90px;
    }

    .resources-container {
        width: calc(100% - 30px);
    }

    .resource-banner {
        border-radius: 20px;
    }

    .resource-banner-image {
        min-height: 320px;
    }

    .resource-banner-content {
        padding: 10px 25px 42px;
    }

    .resource-banner-content h1 {
        font-size: 36px;
    }

    .resource-description {
        font-size: 14px;
    }

    .guide-modal-box {
        max-height: 90vh;

        display: block;

        overflow-y: auto;
    }

    .guide-modal-intro {
        min-height: 345px;
        padding: 50px 25px 35px;
    }

    .guide-profile-image {
        width: 100px;
        height: 100px;
        margin-top: 28px;
    }

    .guide-modal-list {
        padding: 25px 20px 30px;
    }

    .guide-close-btn {
        position: fixed;
    }
}


@media (max-width: 480px) {

    

    .resource-banner-image {
        min-height: 270px;
    }

    .resource-banner-content h1 {
        font-size: 31px;
    }

    .watch-guide-btn {
        margin-top: 28px;
        font-size: 18px;
    }

    .guide-modal {
        padding: 12px;
    }

    .guide-modal-box {
        width: 100%;
        border-radius: 18px;
    }

    .guide-modal-intro h2 {
        font-size: 30px;
    }
}

/* =====================================
   GUIDE LIST AND DETAIL SWITCHING
===================================== */
.guide-modal-box {
    display: block;
}

.guide-list-view {
    width: 100%;
    min-height: 490px;
    display: grid;
    grid-template-columns: 44% 56%;
}

.guide-detail-view {
    width: 100%;
    min-height: 490px;
    display: none;
    grid-template-columns: 44% 56%;
}

.guide-detail-image {
    min-height: 490px;
    position: relative;
    overflow: hidden;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #202230;
}

.guide-detail-image img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
}

.detail-play-button {
    width: 62px;
    height: 62px;
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    color: #101522;
    background: #fff;
    cursor: pointer;
    font-size: 23px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .3);
    transition: transform .25s ease, background-color .25s ease;
}

.detail-play-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--green);
    color: #fff;
}

.detail-play-button i {
    margin-left: 4px;
}

.guide-detail-content {
    min-height: 490px;
    padding: 75px 42px 25px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
}

.guide-detail-content h2 {
    max-width: 380px;
    margin-top: 40px;
    color: var(--main-text);
    font-size: clamp(29px, 3vw, 40px);
    line-height: 1.25;
    font-weight: 750;
}

.guide-back-button {
    width: fit-content;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    color: var(--muted-text);
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease;
}

.guide-back-button:hover {
    color: var(--green);
}

.guide-next-button {
    min-width: 85px;
    min-height: 49px;
    margin-top: auto;
    margin-left: auto;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    color: #10203b;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 750;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .16);
    transition: transform .2s ease, background-color .2s ease;
}

.guide-next-button:hover {
    transform: translateY(-3px);
    background: var(--green);
    color: #fff;
}

@media (max-width: 700px) {

    .guide-list-view,
    .guide-detail-view {
        grid-template-columns: 1fr;
    }

    .guide-detail-image {
        min-height: 350px;
        padding: 20px;
    }

    .guide-detail-image img {
        height: 310px;
    }

    .guide-detail-content {
        min-height: 330px;
        padding: 35px 25px 25px;
    }

    .guide-detail-content h2 {
        margin-top: 25px;
        font-size: 28px;
    }
}


/* RESOURCE VERTICAL LAYOUT + NEWS */
.resources-page {
    display: block !important;
    width: 100%;
    padding: 78px 0 0;
}

.resources-page>section {
    width: 100%;
    flex: none !important;
}

.resources-container,
.resources-news-container {
    width: min(1400px, 82%);
    margin: 0 auto;
    display: block !important;
}

.resources-news-section {
    width: 100%;
    display: block !important;
    clear: both;
    margin-top: 90px;
    padding: 0 0 110px;
    background: var(--page-bg);
}

.resources-main-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border);
    margin-bottom: 90px;
}

.resource-main-tab {
    min-height: 75px;
    position: relative;
    border: 0;
    background: transparent;
    color: var(--muted-text);
    font-size: 20px;
    cursor: pointer;
}

.resource-main-tab.active {
    color: var(--main-text);
    font-weight: 700;
}

.resource-main-tab.active:after {
    content: "";
    position: absolute;
    left: 19%;
    right: 19%;
    bottom: -1px;
    height: 3px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--green), var(--blue));
}

.resource-tab-content {
    display: none
}

.resource-tab-content.active {
    display: block
}

.news-heading-area {
    margin-bottom: 55px
}

.news-heading-area h2 {
    font-size: clamp(38px, 4vw, 62px);
    font-weight: 400;
    line-height: 1.15
}

.news-heading-area p {
    margin-top: 28px;
    color: var(--muted-text);
    font-size: 20px
}

.news-controls {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 26px
}

.news-filter-buttons {
    display: flex;
    gap: 5px;
    padding: 7px;
    border-radius: 18px;
    background: var(--surface-soft)
}

.news-filter-btn {
    min-height: 49px;
    padding: 0 22px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--main-text);
    font-weight: 650
}

.news-filter-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--blue))
}

.news-search-box {
    width: 285px;
    height: 58px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface)
}

.news-search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--main-text)
}

.company-slider-wrapper {
    width: 100%;
    margin-bottom: 60px;

    position: relative;

    display: flex;
    align-items: center;
}

.company-slider-viewport {
    width: 100%;

    overflow: hidden;

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0,
            #000 38px,
            #000 calc(100% - 38px),
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to right,
            transparent 0,
            #000 38px,
            #000 calc(100% - 38px),
            transparent 100%
        );
}

.news-category-row {
    width: max-content;
    margin: 0;
    padding: 5px 48px;

    display: flex;
    align-items: center;
    gap: 16px;

    overflow: visible;

    scroll-behavior: smooth;

    transition: transform 0.45s ease;
}

.news-category {
    min-height: 64px;
    padding: 0 28px;

    flex: 0 0 auto;

    border: 1px solid transparent;
    border-radius: 18px;

    color: var(--main-text);
    background: var(--surface-soft);

    cursor: pointer;

    font-size: 17px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.news-category:hover,
.news-category.active {
    color: var(--green);

    border-color: rgba(19, 185, 120, 0.45);

    background: var(--status-bg);
}

.company-slider-arrow {
    width: 46px;
    height: 64px;

    position: absolute;
    top: 50%;
    z-index: 5;

    display: grid;
    place-items: center;

    transform: translateY(-50%);

    border: 0;

    color: var(--main-text);
    background: var(--page-bg);

    cursor: pointer;

    font-size: 24px;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.company-slider-prev {
    left: 0;
}

.company-slider-next {
    right: 0;
}

.company-slider-arrow:hover {
    color: var(--green);
}

.company-slider-arrow:disabled {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.latest-news-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 35px
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px
}

.news-card {
    min-height: 430px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow)
}

.news-card.hide {
    display: none
}

.news-card-top,
.news-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px
}

.news-card-top {
    margin-bottom: 30px
}

.news-card-bottom {
    margin-top: auto;
    padding-top: 30px
}

.news-company-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--muted-text)
}

.news-company-logo {
    width: 54px;
    height: 54px;

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

    flex-shrink: 0;
    overflow: hidden;

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

    background: #ffffff;
}

.news-company-logo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    padding: 7px;
}


.bookmark-button,
.news-open-button {
    border: 0;
    background: var(--surface-soft);
    color: var(--muted-text);
    cursor: pointer
}

.bookmark-button {
    width: 42px;
    height: 42px;
    border-radius: 11px
}

.news-open-button {
    width: 50px;
    height: 50px;
    border-radius: 13px
}

.bookmark-button.bookmarked {
    color: var(--green)
}

.news-card h4 {
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.35
}

.news-source,
.news-meta {
    color: var(--muted-text)
}

.news-meta {
    display: flex;
    gap: 10px
}

.news-empty-message {
    display: none;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    flex-direction: column
}

.news-empty-message.show {
    display: flex
}

.resource-placeholder {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 17px;
    text-align: center
}

.open-guide-again {
    min-height: 50px;
    padding: 0 23px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--blue))
}

@media(max-width:960px) {
    .resources-news-container {
        width: 90%
    }

    .news-card-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:700px) {
    .resources-page {
        padding-top: 30px
    }

    .resources-news-section {
        margin-top: 55px
    }

    .news-controls {
        flex-direction: column
    }

    .news-filter-buttons,
    .news-search-box {
        width: 100%
    }

    .news-heading-area h2 {
        font-size: 35px
    }
}

/* =====================================
   LIBRARY
===================================== */

.library-section {
    width: 100%;
    padding: 0 0 100px;
}


/* Main category */

.library-category {
    width: 100%;
    overflow: hidden;
}


/* Category button */

.library-category-button {
    width: 100%;
    min-height: 126px;
    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    border: 0;
    border-bottom: 1px solid transparent;

    color: var(--main-text);
    background: transparent;

    cursor: pointer;
    text-align: left;
}


.library-category + .library-category {
    margin-top: 0;
}


/* Category title */

.library-category-title {
    display: flex;
    align-items: center;
    gap: 18px;

    color: var(--main-text);

    font-size: clamp(27px, 2.2vw, 37px);
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: -0.8px;
}


/* Left circular dot */

.library-category-dot {
    width: 19px;
    height: 19px;

    flex: 0 0 19px;

    border-radius: 50%;

    background: var(--main-text);
}


/* Right plus/minus */

.library-category-icon {
    width: 52px;

    flex: 0 0 52px;

    color: var(--main-text);

    font-size: 47px;
    line-height: 1;
    font-weight: 250;
    text-align: center;
}


/* Hover */

.library-category-button:hover
.library-category-title {
    color: var(--green);
}

.library-category-button:hover
.library-category-dot {
    background: var(--green);
}

.library-category-button:hover
.library-category-icon {
    color: var(--green);
}


/* Open category */

.library-category.active
.library-category-button {
    border-bottom-color: transparent;
}

.library-category.active
.library-category-dot {
    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--blue)
        );
}


/* Category hidden content */

.library-category-content {
    max-height: 0;

    overflow: hidden;

    visibility: hidden;
    opacity: 0;

    transition:
        max-height 0.5s ease,
        opacity 0.3s ease,
        visibility 0.3s ease;
}


/* Open content */

.library-category.active
.library-category-content {
    max-height: 1800px;

    visibility: visible;
    opacity: 1;
}


/* Question grid */

.library-question-grid {
    width: 100%;
    padding:
        4px
        38px
        30px;

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

    column-gap: 76px;
    row-gap: 0;
}


/* Individual question */

.library-question {
    width: 100%;

    border-bottom:
        1px solid transparent;
}


/* Question button */

.library-question-button {
    width: 100%;
    min-height: 104px;
    padding: 18px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    border: 0;

    color: var(--main-text);
    background: transparent;

    cursor: pointer;
    text-align: left;

    font-size: clamp(18px, 1.45vw, 25px);
    line-height: 1.45;
    font-weight: 700;
}


/* Question icon */

.library-question-icon {
    min-width: 32px;

    flex-shrink: 0;

    color: var(--main-text);

    font-size: 31px;
    line-height: 1;
    font-weight: 300;
    text-align: center;
}


/* Question hover */

.library-question-button:hover {
    color: var(--green);
}

.library-question-button:hover
.library-question-icon {
    color: var(--green);
}


/* Answer */

.library-answer {
    max-height: 0;

    overflow: hidden;

    color: var(--muted-text);

    visibility: hidden;
    opacity: 0;

    font-size: 15px;
    line-height: 1.75;

    transition:
        max-height 0.35s ease,
        padding 0.3s ease,
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.library-answer p {
    margin: 0;
}


/* Open answer */

.library-question.active {
    border-bottom-color: var(--border);
}

.library-question.active
.library-answer {
    max-height: 240px;

    padding:
        0
        46px
        24px
        0;

    visibility: visible;
    opacity: 1;
}


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

@media (max-width: 960px) {

    .library-category-button {
        min-height: 108px;
    }

    .library-question-grid {
        padding-inline: 24px;

        grid-template-columns: 1fr;

        column-gap: 0;
    }
}


@media (max-width: 700px) {

    .library-section {
        padding-bottom: 70px;
    }

    .library-category-button {
        min-height: 92px;
        padding-inline: 2px;
    }

    .library-category-title {
        gap: 13px;

        font-size: 24px;
        letter-spacing: -0.4px;
    }

    .library-category-dot {
        width: 14px;
        height: 14px;

        flex-basis: 14px;
    }

    .library-category-icon {
        width: 38px;

        flex-basis: 38px;

        font-size: 37px;
    }

    .library-question-grid {
        padding:
            0
            4px
            22px;
    }

    .library-question-button {
        min-height: 82px;

        font-size: 18px;
    }
}


@media (max-width: 480px) {

    .library-category-button {
        min-height: 84px;
        gap: 15px;
    }

    .library-category-title {
        font-size: 21px;
        line-height: 1.35;
    }

    .library-category-icon {
        font-size: 34px;
    }

    .library-question-button {
        gap: 15px;

        font-size: 16px;
    }

    .library-question-icon {
        font-size: 27px;
    }

    .library-question.active
    .library-answer {
        padding-right: 20px;
    }
}

/* =====================================
   GUIDES ACCORDION SECTION
===================================== */

.guides-section {
    width: 100%;
    padding: 0 0 100px;
}


/* Main guide item */

.guide-accordion-item {
    width: 100%;

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


/* Guide heading button */

.guide-accordion-header {
    width: 100%;
    min-height: 126px;
    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    border: 0;

    color: var(--main-text);
    background: transparent;

    cursor: pointer;
    text-align: left;
}


/* Left title area */

.guide-accordion-title {
    display: flex;
    align-items: center;
    gap: 18px;

    color: var(--main-text);

    font-size: clamp(27px, 2.2vw, 37px);
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: -0.8px;

    transition: color 0.25s ease;
}


/* Circular dot */

.guide-accordion-dot {
    width: 19px;
    height: 19px;

    flex: 0 0 19px;

    border-radius: 50%;

    background: var(--main-text);

    transition: background-color 0.25s ease;
}


/* Plus and minus icon */

.guide-accordion-icon {
    width: 52px;

    flex: 0 0 52px;

    color: var(--main-text);

    font-size: 47px;
    line-height: 1;
    font-weight: 300;
    text-align: center;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


/* Heading hover */

.guide-accordion-header:hover
.guide-accordion-title {
    color: var(--green);
}

.guide-accordion-header:hover
.guide-accordion-dot {
    background: var(--green);
}

.guide-accordion-header:hover
.guide-accordion-icon {
    color: var(--green);
}


/* Active guide heading */

.guide-accordion-item.active
.guide-accordion-dot {
    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--blue)
        );
}

.guide-accordion-item.active
.guide-accordion-title {
    color: var(--main-text);
}


/* Hidden content */

.guide-accordion-content {
    max-height: 0;

    overflow: hidden;

    visibility: hidden;
    opacity: 0;

    transition:
        max-height 0.55s ease,
        opacity 0.3s ease,
        visibility 0.3s ease,
        padding 0.4s ease;
}


/* Open content */

.guide-accordion-item.active
.guide-accordion-content {
    max-height: 900px;

    padding: 5px 0 55px;

    visibility: visible;
    opacity: 1;
}


/* Guide card */

.guide-resource-card {
    width: min(760px, 72%);

    margin-left: 32px;

    cursor: pointer;
}


/* Image container */

.guide-resource-image {
    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

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

    background: var(--surface-soft);

    box-shadow: var(--shadow);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* Guide image */

.guide-resource-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform 0.35s ease;
}


/* Guide title */

.guide-resource-card h3 {
    margin-top: 28px;

    color: var(--main-text);

    font-size: clamp(22px, 2vw, 31px);
    line-height: 1.35;
    font-weight: 750;
    letter-spacing: -0.5px;

    transition: color 0.25s ease;
}


/* Card hover */

.guide-resource-card:hover
.guide-resource-image {
    transform: translateY(-4px);

    border-color: rgba(19, 185, 120, 0.5);

    box-shadow:
        0 20px 45px rgba(19, 185, 120, 0.14);
}

.guide-resource-card:hover
.guide-resource-image img {
    transform: scale(1.025);
}

.guide-resource-card:hover h3 {
    color: var(--green);
}


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

@media (max-width: 960px) {

    .guide-accordion-header {
        min-height: 108px;
    }

    .guide-resource-card {
        width: min(800px, calc(100% - 48px));
        margin-left: 24px;
    }
}


@media (max-width: 700px) {

    .guides-section {
        padding-bottom: 70px;
    }

    .guide-accordion-header {
        min-height: 92px;
        padding-inline: 2px;
    }

    .guide-accordion-title {
        gap: 13px;

        font-size: 24px;
        letter-spacing: -0.4px;
    }

    .guide-accordion-dot {
        width: 14px;
        height: 14px;

        flex-basis: 14px;
    }

    .guide-accordion-icon {
        width: 38px;

        flex-basis: 38px;

        font-size: 37px;
    }

    .guide-accordion-item.active
    .guide-accordion-content {
        padding-bottom: 40px;
    }

    .guide-resource-card {
        width: 100%;
        margin-left: 0;
    }

    .guide-resource-image {
        border-radius: 16px;
    }

    .guide-resource-card h3 {
        margin-top: 20px;

        font-size: 22px;
    }
}


@media (max-width: 480px) {

    .guide-accordion-header {
        min-height: 84px;
        gap: 15px;
    }

    .guide-accordion-title {
        font-size: 20px;
        line-height: 1.35;
    }

    .guide-accordion-icon {
        font-size: 34px;
    }

    .guide-resource-image {
        border-radius: 13px;
    }

    .guide-resource-card h3 {
        margin-top: 17px;

        font-size: 19px;
    }
}

/* ===============================
HIIVE PREMIUM THEME OVERRIDE
Append after existing CSS
===============================*/

:root{
 --page-bg:#f4f1e8;
 --navbar-bg:#174f5c;
 --surface:#fffdf8;
 --surface-soft:#ece8df;
 --main-text:#26383d;
 --muted-text:#707977;
 --border:#d8ddd6;
 --green:#5b9d70;
 --blue:#2f7d8e;
 --accent:#f45f63;
 --accent-hover:#df4e53;
}

html[data-theme=dark]{
 --page-bg:#101c20;
 --navbar-bg:#103842;
 --surface:#18323a;
 --surface-soft:#214049;
 --main-text:#f7f5ee;
 --muted-text:#b8c2c1;
 --border:rgba(255,255,255,.12);
 --green:#87c99a;
 --blue:#6eb6c6;
 --accent:#ff7478;
}

body,.resources-page{background:var(--page-bg)!important;font-family:Inter,sans-serif!important}


.resource-banner,
.guide-modal-box,
.news-card,
.resources-main-tabs,
.news-search-box,
.news-category,
.guide-video-item{
background:var(--surface)!important;
border-color:var(--border)!important;
}
.resource-label,.play-circle{color:var(--accent)!important}
.play-circle{
background:rgba(244,95,99,.12)!important;
box-shadow:none!important
}
.resource-banner-content h1,
.news-heading-area h2{
font-family:"Cormorant Garamond",serif!important;
font-weight:500!important;
color:var(--main-text)!important
}
.watch-guide-btn:hover{color:var(--accent)!important}
.news-category.active,
.resource-main-tab.active{
background:var(--accent)!important;
color:#fff!important;
border-color:var(--accent)!important
}
.news-open-button,
.bookmark-button:hover{
background:var(--accent)!important;
color:#fff!important
}
