/* Standalone full collection theme. Shared header/footer styles load via layout-assets.php. */
* { box-sizing: border-box; }
body { margin: 0; font-family: Poppins, "Segoe UI", sans-serif; color: #222136; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 28px; }
.eyebrow { margin: 0 0 12px; color: #7354cf; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.library-header { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-bottom: 24px; }
.library-tabs { display: flex; margin-bottom: 14px; }
.library-tab { padding: 9px 14px; border: 1px solid #d6c9e5; background: #fff; color: #5b476c; border-radius: 999px; white-space: nowrap; }
.library-tab.active { background: #5d3c8e; color: #fff; border-color: #5d3c8e; }
.program-card { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid #e6ddec; background: #fff; box-shadow: 0 8px 18px rgba(59,35,80,.07); text-decoration: none; }
.program-card > img { width: 100%; object-fit: contain; background: linear-gradient(160deg,#f0e7f8,#d8cae8); padding: 18px; }
.program-body .value { color: #7c5ab5; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.program-body h3 { margin: 6px 0; color: #3b2a4e; }
.program-body p { margin: 0; color: #6d6672; }
.free-badge { position: absolute; top: 12px; right: 12px; padding: 6px 9px; border-radius: 999px; background: #fff; color: #4e2d7f; font-size: .75rem; font-weight: 800; box-shadow: 0 8px 24px rgba(63,34,90,.08); }
@media (max-width: 980px) { .library-header { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
@media (max-width: 640px) { .wrap { padding-inline: 18px; } }

/* Full collection: the home library cards in a responsive, filterable grid. */
.full-collection-page { font-size: 16px; background: #faf8ff; }
.full-collection-page [hidden] { display: none !important; }
.full-collection-page #library { padding-block: 64px 80px; }
.full-collection-page .library-header { align-items: center; }
.full-collection-page .library-header h1 { margin: 0; font-size: clamp(2.4rem, 4.5vw, 3.7rem); }
.full-collection-page .library-header p:not(.eyebrow) { font-size: 1rem; color: #6d6b7f; }
.full-collection-page .library-tabs { flex-wrap: wrap; gap: 10px; padding: 4px 2px 16px; }
.full-collection-page .library-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 .94rem/1.5 Poppins, sans-serif; }
.full-collection-page .collection-count { padding: 1px 7px; border-radius: 99px; background: #7354cf15; font-size: .8rem; }
.full-collection-page .active .collection-count { background: #ffffff26; }
.full-collection-page .collection-topic-heading { margin: 8px 0 24px; font-size: 1.75rem; }
.full-collection-page .collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.full-collection-page .program-card { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; border-color: #e6dff0; border-radius: 20px; color: #222136; transition: box-shadow .2s ease; }
.full-collection-page .program-card:hover { box-shadow: 0 10px 28px #50399e20; }
.full-collection-page .collection-media { position: relative; display: flex; align-items: center; justify-content: center; height: 230px; flex: 0 0 230px; padding: 36px 28px 24px; background: linear-gradient(145deg, #f6f2fc, #e8ddf5); border-bottom: 1px solid #eee7f6; }
.full-collection-page .collection-media img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.full-collection-page .collection-media .free-badge { top: 14px; right: 14px; padding: 5px 12px; letter-spacing: .05em; }
.full-collection-page .program-body { display: flex; flex: 1; flex-direction: column; align-items: stretch; padding: 24px; }
.full-collection-page .program-body h3 { margin: 8px 0 4px; font-size: 1.5rem; line-height: 1.3; overflow-wrap: anywhere; }
.full-collection-page .program-body p { margin-top: 8px; font-size: 1rem; line-height: 1.65; }
.full-collection-page .program-body .collection-subtitle { margin-top: 0; color: #50399e; font-size: .88rem; font-weight: 500; }
.full-collection-page .collection-action { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; margin-top: auto; padding: 12px 16px; border-radius: 99px; background: linear-gradient(110deg,#8265df,#6245bd); color: #fff; font-size: .94rem; font-weight: 600; line-height: 1.5; text-align: center; }
.full-collection-page .program-body > p:last-of-type { margin-bottom: 24px; }
.full-collection-page .prod-select { display: block; width: 100%; box-sizing: border-box; margin-bottom: 12px; padding: 9px 36px 9px 12px; border: 1px solid #cfd7e3; border-radius: 7px; background: #f7f9fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23526176' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; color: #1f2d45; font: inherit; font-weight: 600; line-height: 1.4; cursor: pointer; -webkit-appearance: none; appearance: none; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.full-collection-page .collection-action { text-decoration: none; }
.full-collection-page .collection-action:hover { background: #50399e; }
.full-collection-page .collection-action:focus-visible, .full-collection-page { outline: 3px solid #7354cf; outline-offset: 4px; }
.full-collection-page .program-card:focus-visible, .full-collection-page .library-tab:focus-visible { outline: 3px solid #7354cf; outline-offset: 4px; }
@media (max-width: 1100px) { .full-collection-page .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 850px) { .full-collection-page .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 540px) {
    .full-collection-page #library { padding-block: 36px 48px; }
    .full-collection-page .library-header { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .full-collection-page .collection-grid { grid-template-columns: minmax(0, 1fr); }
    .full-collection-page .library-tab { flex-shrink: 0; }
    .full-collection-page .collection-media { height: 210px; flex-basis: 210px; }
    .full-collection-page .program-body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .full-collection-page .program-card { transition: none; } }
