
/* Sobekhanei Free Resource Library */
.resource-library{padding:30px 0 76px}
.resource-library .resource-hero{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(280px,.88fr);align-items:center;gap:clamp(22px,4vw,56px);padding:clamp(26px,4vw,52px);border:1px solid #bfdbfe;border-radius:22px;background:#eff6ff;overflow:hidden;position:relative}
.resource-library .resource-hero:after{content:"";position:absolute;width:270px;height:270px;border:1px solid #dbeafe;border-radius:50%;right:-112px;top:-145px;pointer-events:none}
.resource-library .resource-eyebrow,.resource-detail .resource-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#1d4ed8;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.resource-library .resource-eyebrow:before,.resource-detail .resource-eyebrow:before{content:"";width:22px;height:2px;border-radius:2px;background:#2563eb}
.resource-library .resource-hero h1{max-width:650px;margin:15px 0 12px;color:#0f172a;font-size:clamp(30px,4vw,46px);line-height:1.23;letter-spacing:-.035em}
.resource-library .resource-hero p{max-width:560px;margin:0;color:#52627e;font-size:15px;line-height:1.85}
.resource-library .resource-search{display:flex;align-items:center;gap:12px;max-width:570px;margin-top:25px;padding:7px 8px 7px 16px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;box-shadow:0 7px 24px rgba(15,23,42,.055)}
.resource-library .resource-search .search-mark{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:9px;background:#eff6ff;color:#2563eb;font-size:19px}
.resource-library .resource-search input{width:100%;min-width:0;height:42px;padding:0;border:0;outline:0;background:transparent;color:#0f172a;font:400 14px/1.5 Inter,"Noto Sans Bengali",sans-serif;box-shadow:none}
.resource-library .resource-search input::placeholder{color:#94a3b8}
.resource-library .resource-search:focus-within{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(147,197,253,.25)}
.resource-library .resource-hero-stats{display:flex;flex-wrap:wrap;gap:20px;margin-top:24px}
.resource-library .resource-stat{display:flex;align-items:center;gap:9px;color:#64748b;font-size:12px}
.resource-library .resource-stat strong{color:#0f172a;font-size:16px;font-weight:800}
.resource-library .resource-stat-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#dbeafe;color:#1d4ed8;font-size:14px}
.resource-library .resource-hero-visual{position:relative;z-index:1;min-height:260px;padding:12px;border:1px solid rgba(191,219,254,.9);border-radius:18px;background:#fff;box-shadow:0 20px 48px rgba(30,64,175,.12);transform:rotate(1.2deg)}
.resource-library .resource-hero-visual img{display:block;width:100%;height:235px;object-fit:cover;border-radius:11px;background:#f1f5f9}
.resource-library .resource-visual-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 5px 3px;color:#52627e;font-size:11px}
.resource-library .resource-visual-caption strong{color:#0f172a;font-size:12px}
.resource-library .resource-visual-tag{padding:5px 9px;border-radius:6px;background:#eff6ff;color:#1d4ed8;font-size:10px;font-weight:800;white-space:nowrap}
.resource-library .resource-library-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:44px 0 18px}
.resource-library .resource-library-heading h2{margin:0;color:#0f172a;font-size:25px;line-height:1.35}
.resource-library .resource-library-heading p{margin:5px 0 0;color:#64748b;font-size:12px}
.resource-library .resource-count{padding:7px 11px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#52627e;font-size:11px;white-space:nowrap}
.resource-library .resource-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}
.resource-library .resource-filter{appearance:none;border:1px solid #e2e8f0;border-radius:9px;padding:8px 13px;background:#fff;color:#475569;font:600 11px Inter,"Noto Sans Bengali",sans-serif;cursor:pointer;transition:background .16s,border-color .16s,color .16s}
.resource-library .resource-filter:hover{border-color:#bfdbfe;background:#f8fafc;color:#1d4ed8}
.resource-library .resource-filter[aria-pressed="true"]{border-color:#2563eb;background:#2563eb;color:#fff}
.resource-library .resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.resource-library .resource-card{display:grid;grid-template-columns:minmax(190px,.9fr) minmax(0,1.1fr);min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;transition:border-color .16s,box-shadow .16s,transform .16s}
.resource-library .resource-card:hover{border-color:#bfdbfe;box-shadow:0 12px 30px rgba(15,23,42,.07);transform:translateY(-2px)}
.resource-library .resource-card-visual{display:block;position:relative;min-height:210px;overflow:hidden;background:#eff6ff}
.resource-library .resource-card-visual img{display:block;width:100%;height:100%;min-height:210px;object-fit:cover;transition:transform .22s}
.resource-library .resource-card:hover .resource-card-visual img{transform:scale(1.025)}
.resource-library .resource-card-art{display:grid;place-items:center;width:100%;height:100%;min-height:210px;background:#eff6ff;color:#2563eb;font-size:54px}
.resource-library .resource-free-badge{position:absolute;top:12px;left:12px;padding:6px 9px;border:1px solid rgba(255,255,255,.75);border-radius:7px;background:rgba(255,255,255,.94);color:#166534;font-size:9px;font-weight:800;letter-spacing:.08em}
.resource-library .resource-format-badge{position:absolute;right:12px;bottom:12px;padding:7px 9px;border-radius:7px;background:rgba(15,23,42,.82);color:#fff;font-size:10px;font-weight:700}
.resource-library .resource-card-body{display:flex;flex-direction:column;min-width:0;padding:19px}
.resource-library .resource-card-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#64748b;font-size:10px}
.resource-library .resource-card-category{color:#1d4ed8;font-weight:700}
.resource-library .resource-card h3{margin:12px 0 8px;color:#0f172a;font-size:18px;line-height:1.5}
.resource-library .resource-card h3 a{color:inherit;text-decoration:none}
.resource-library .resource-card h3 a:hover{color:#1d4ed8}
.resource-library .resource-card-description{display:-webkit-box;overflow:hidden;margin:0;color:#64748b;font-size:12px;line-height:1.8;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.resource-library .resource-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:18px}
.resource-library .resource-file-label{color:#64748b;font-size:10px}
.resource-library .resource-card-link{display:inline-flex;align-items:center;gap:7px;color:#1d4ed8;font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap}
.resource-library .resource-card-link:hover{color:#1e40af}
.resource-library .resource-empty{grid-column:1/-1;padding:45px 20px;border:1px dashed #cbd5e1;border-radius:15px;background:#f8fafc;text-align:center}
.resource-library .resource-empty h3{margin:0 0 7px;color:#0f172a;font-size:18px}
.resource-library .resource-empty p{margin:0;color:#64748b;font-size:12px}
.resource-library .resource-loading{grid-column:1/-1;padding:28px;border:1px solid #e2e8f0;border-radius:14px;color:#64748b;text-align:center;font-size:13px}
.resource-library .resource-library-note{display:flex;align-items:center;gap:10px;margin-top:25px;padding:13px 15px;border:1px solid #dbeafe;border-radius:11px;background:#f8fafc;color:#52627e;font-size:11px}
.resource-library .resource-library-note strong{color:#1d4ed8}

/* Resource detail */
.resource-detail{padding:26px 0 76px}
.resource-detail .resource-breadcrumb{display:flex;align-items:center;gap:9px;margin-bottom:24px;color:#94a3b8;font-size:11px}
.resource-detail .resource-breadcrumb a{color:#1d4ed8;text-decoration:none;font-weight:700}
.resource-detail .resource-detail-hero{padding:clamp(23px,4vw,42px);border:1px solid #dbeafe;border-radius:20px;background:#f8fafc}
.resource-detail .resource-detail-meta{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:14px 0}
.resource-detail .resource-meta-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #dbeafe;border-radius:7px;background:#fff;color:#52627e;font-size:10px}
.resource-detail .resource-meta-chip.is-free{border-color:#bfdbfe;background:#dcfce7;color:#166534;font-weight:800}
.resource-detail .resource-detail-hero h1{max-width:900px;margin:12px 0;color:#0f172a;font-size:clamp(27px,4vw,42px);line-height:1.3;letter-spacing:-.025em}
.resource-detail .resource-detail-lead{max-width:850px;margin:0;color:#52627e;font-size:14px;line-height:1.9}
.resource-detail .resource-detail-cover{display:block;width:100%;max-height:440px;margin-top:24px;object-fit:cover;border:1px solid #e2e8f0;border-radius:13px;background:#fff}
.resource-detail .resource-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;align-items:start;gap:30px;margin-top:28px}
.resource-detail .resource-article{min-width:0;padding:clamp(18px,3vw,34px);border:1px solid #e2e8f0;border-radius:16px;background:#fff;color:#334155;font-size:15px;line-height:1.95}
.resource-detail .resource-article>*:first-child{margin-top:0}
.resource-detail .resource-article h2{margin:2em 0 .75em;padding-left:13px;border-left:3px solid #2563eb;color:#0f172a;font-size:23px;line-height:1.45}
.resource-detail .resource-article h3{margin:1.6em 0 .6em;color:#1e40af;font-size:18px}
.resource-detail .resource-article p{margin:0 0 1.1em;color:#475569;font-size:14px;line-height:1.95}
.resource-detail .resource-article ul,.resource-detail .resource-article ol{padding-left:1.5em;margin:0 0 1.2em}
.resource-detail .resource-article li{padding-left:3px;margin:.35em 0;color:#475569}
.resource-detail .resource-article strong{color:#0f172a}
.resource-detail .resource-article figure{margin:22px 0}
.resource-detail .resource-article img{display:block;max-width:100%;height:auto;margin:auto;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc}
.resource-detail .resource-article figcaption{margin-top:8px;color:#64748b;font-size:11px;text-align:center}
.resource-detail .resource-article table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:10px;font-size:12px}
.resource-detail .resource-article th,.resource-detail .resource-article td{padding:10px 12px;border-bottom:1px solid #e2e8f0;text-align:left}
.resource-detail .resource-article th{background:#eff6ff;color:#1e40af;font-weight:800}
.resource-detail .resource-article tr:last-child td{border-bottom:0}
.resource-detail .resource-article a{color:#1d4ed8;font-weight:700;text-underline-offset:3px}
.resource-detail .resource-article .box{margin:20px 0;border:1px solid #dbeafe;border-radius:11px;background:#f8fafc;color:#334155}
.resource-detail .resource-article .cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin:6px 0;padding:11px 17px;border-radius:9px;background:#2563eb;color:#fff;text-decoration:none;font-weight:800}
.resource-detail .resource-article .resource-link-unavailable{display:inline-block;padding:10px 14px;border:1px solid #e2e8f0;border-radius:9px;background:#f1f5f9;color:#64748b;font-weight:700}
.resource-detail .resource-download-panel{position:sticky;top:22px;padding:20px;border:1px solid #dbeafe;border-radius:15px;background:#f8fafc}
.resource-detail .resource-download-panel h2{margin:0 0 7px;color:#0f172a;font-size:17px}
.resource-detail .resource-download-panel p{margin:0 0 16px;color:#64748b;font-size:11px;line-height:1.8}
.resource-detail .resource-download-panel .resource-download-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px 14px;border:0;border-radius:9px;background:#2563eb;color:#fff;font-size:12px;font-weight:800;text-decoration:none}
.resource-detail .resource-download-panel .resource-download-button:hover{background:#1d4ed8}
.resource-detail .resource-download-pending{padding:12px;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff;color:#1e40af;font-size:11px;line-height:1.75}
.resource-detail .resource-download-panel .resource-back-link{display:block;margin-top:14px;color:#1d4ed8;font-size:11px;font-weight:800;text-align:center;text-decoration:none}
.resource-detail .resource-detail-error{padding:40px 20px;border:1px solid #e2e8f0;border-radius:15px;background:#f8fafc;text-align:center}
.resource-detail .resource-detail-error h1{margin:0 0 10px;color:#0f172a;font-size:26px}
.resource-detail .resource-detail-error p{color:#64748b;font-size:13px}
.resource-detail .resource-detail-error a{color:#1d4ed8;font-weight:700;text-decoration:none}

/* Homepage Free Store banner */
.store-banner{position:relative;overflow:hidden;border:1px solid #bfdbfe;border-radius:17px;background:#eff6ff;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.store-banner:before{content:"";position:absolute;right:28px;top:50%;width:95px;height:95px;transform:translateY(-50%);border:1px solid #bfdbfe;border-radius:22px;opacity:.55}
.store-banner h2{color:#0f172a}
.store-banner p{color:#52627e}
.store-banner .btn{position:relative;z-index:1;border-radius:9px;background:#2563eb;color:#fff;font-weight:800}

@media(max-width:900px){
 .resource-library .resource-hero{grid-template-columns:minmax(0,1fr) minmax(220px,.8fr);gap:20px}
 .resource-library .resource-card{grid-template-columns:1fr}
 .resource-library .resource-card-visual,.resource-library .resource-card-visual img,.resource-library .resource-card-art{min-height:185px;height:185px}
 .resource-detail .resource-detail-layout{grid-template-columns:minmax(0,1fr) 245px;gap:18px}
}
@media(max-width:680px){
 .resource-library{padding:18px 0 48px}
 .resource-library .resource-hero{grid-template-columns:1fr;padding:24px 19px;border-radius:16px}
 .resource-library .resource-hero h1{font-size:30px}
 .resource-library .resource-hero p{font-size:13px}
 .resource-library .resource-hero-visual{max-width:480px;width:100%;min-height:0;margin:0 auto;transform:none}
 .resource-library .resource-hero-visual img{height:175px}
 .resource-library .resource-hero-stats{gap:12px}
 .resource-library .resource-stat{font-size:10px}
 .resource-library .resource-library-heading{align-items:flex-start;margin:30px 0 14px}
 .resource-library .resource-library-heading h2{font-size:21px}
 .resource-library .resource-grid{grid-template-columns:1fr;gap:13px}
 .resource-library .resource-card{grid-template-columns:115px minmax(0,1fr);border-radius:13px}
 .resource-library .resource-card-visual,.resource-library .resource-card-visual img,.resource-library .resource-card-art{height:100%;min-height:190px}
 .resource-library .resource-card-body{padding:13px}
 .resource-library .resource-card h3{margin:8px 0 5px;font-size:14px;line-height:1.5}
 .resource-library .resource-card-description{-webkit-line-clamp:3;font-size:10px;line-height:1.65}
 .resource-library .resource-card-meta{font-size:9px}
 .resource-library .resource-card-footer{gap:6px;padding-top:10px}
 .resource-library .resource-file-label{font-size:9px}
 .resource-library .resource-card-link{font-size:10px}
 .resource-library .resource-format-badge{right:6px;bottom:7px;font-size:8px}
 .resource-library .resource-free-badge{top:7px;left:7px;padding:4px 6px;font-size:8px}
 .resource-detail{padding:17px 0 48px}
 .resource-detail .resource-detail-hero{padding:20px 16px;border-radius:15px}
 .resource-detail .resource-detail-hero h1{font-size:27px}
 .resource-detail .resource-detail-lead{font-size:12px}
 .resource-detail .resource-detail-cover{max-height:240px;margin-top:17px}
 .resource-detail .resource-detail-layout{grid-template-columns:1fr;gap:14px}
 .resource-detail .resource-download-panel{position:static;order:-1}
 .resource-detail .resource-article{padding:17px 14px;font-size:13px}
 .resource-detail .resource-article h2{font-size:19px}
 .resource-detail .resource-article h3{font-size:16px}
 .resource-detail .resource-article p{font-size:12px}
 .resource-detail .resource-article table{display:block;overflow-x:auto;white-space:nowrap}
 .store-banner:before{right:10px;width:60px;height:60px}
}
@media(prefers-reduced-motion:reduce){
 .resource-library .resource-card,.resource-library .resource-card-visual img,.resource-library .resource-filter{transition:none}
}

.resource-library .resource-card.is-featured{grid-column:1/-1;grid-template-columns:minmax(280px,.86fr) minmax(0,1.14fr)}
.resource-library .resource-card.is-featured .resource-card-visual,.resource-library .resource-card.is-featured .resource-card-visual img,.resource-library .resource-card.is-featured .resource-card-art{min-height:270px}
.resource-library .resource-card.is-featured .resource-card-body{padding:clamp(20px,3vw,32px)}
.resource-library .resource-card.is-featured h3{font-size:clamp(20px,2.4vw,27px);line-height:1.45}
.resource-library .resource-card.is-featured .resource-card-description{-webkit-line-clamp:4;font-size:13px}
@media(max-width:680px){
 .resource-library .resource-card.is-featured{grid-column:1/-1;grid-template-columns:115px minmax(0,1fr)}
 .resource-library .resource-card.is-featured .resource-card-visual,.resource-library .resource-card.is-featured .resource-card-visual img,.resource-library .resource-card.is-featured .resource-card-art{min-height:190px;height:100%}
 .resource-library .resource-card.is-featured .resource-card-body{padding:13px}
 .resource-library .resource-card.is-featured h3{font-size:14px}
 .resource-library .resource-card.is-featured .resource-card-description{font-size:10px;-webkit-line-clamp:3}
}
