/*
Theme Name: Rahmatullah Memorial Library
Theme URI: https://rahmatlibrary.com
Author: GetBranded
Description: Complete theme for the Rahmatullah Memorial Library: catalogue, member sign up and dashboard, book requests, contact forms, English and Bangla switch, search and AI friendly data.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: Proprietary
Text Domain: rahmatlib
*/
body{margin:0}
.rl-shelf{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22640%22 height=%22150%22 viewBox=%220 0 640 150%22%3E%3Crect x=%220%22 y=%2264%22 width=%2222%22 height=%2286%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%224%22 y=%2278%22 width=%2214%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%2224%22 y=%2280%22 width=%2214%22 height=%2270%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%2240%22 y=%2250%22 width=%2214%22 height=%22100%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%2256%22 y=%2264%22 width=%2232%22 height=%2286%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%2260%22 y=%2278%22 width=%2224%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%2290%22 y=%2234%22 width=%2226%22 height=%22116%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%2294%22 y=%2248%22 width=%2218%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%22118%22 y=%2222%22 width=%2214%22 height=%22128%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22122%22 y=%2236%22 width=%226%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%22134%22 y=%2280%22 width=%2232%22 height=%2270%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22168%22 y=%2280%22 width=%2232%22 height=%2270%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22202%22 y=%2280%22 width=%2226%22 height=%2270%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22230%22 y=%2222%22 width=%2214%22 height=%22128%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22246%22 y=%2234%22 width=%2222%22 height=%22116%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22250%22 y=%2248%22 width=%2214%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%22270%22 y=%2222%22 width=%2214%22 height=%22128%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22274%22 y=%2236%22 width=%226%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%22286%22 y=%2280%22 width=%2218%22 height=%2270%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22306%22 y=%2250%22 width=%2218%22 height=%22100%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22310%22 y=%2264%22 width=%2210%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%22326%22 y=%2222%22 width=%2214%22 height=%22128%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22330%22 y=%2236%22 width=%226%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%22342%22 y=%2234%22 width=%2218%22 height=%22116%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22362%22 y=%2250%22 width=%2226%22 height=%22100%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22366%22 y=%2264%22 width=%2218%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%22390%22 y=%2250%22 width=%2226%22 height=%22100%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22394%22 y=%2264%22 width=%2218%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%22418%22 y=%2264%22 width=%2218%22 height=%2286%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22422%22 y=%2278%22 width=%2210%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%22438%22 y=%2222%22 width=%2222%22 height=%22128%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22442%22 y=%2236%22 width=%2214%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%22462%22 y=%2234%22 width=%2222%22 height=%22116%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22466%22 y=%2248%22 width=%2214%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%22486%22 y=%2280%22 width=%2214%22 height=%2270%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22502%22 y=%2250%22 width=%2218%22 height=%22100%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22506%22 y=%2264%22 width=%2210%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%22522%22 y=%2234%22 width=%2226%22 height=%22116%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22526%22 y=%2248%22 width=%2218%22 height=%223%22 fill=%22%23F1F1F1%22/%3E%3Crect x=%22550%22 y=%2222%22 width=%2214%22 height=%22128%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22566%22 y=%2250%22 width=%2222%22 height=%22100%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22590%22 y=%2234%22 width=%2232%22 height=%22116%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%22624%22 y=%2280%22 width=%2226%22 height=%2270%22 rx=%222%22 fill=%22%23F8F8F8%22/%3E%3Crect x=%220%22 y=%22148%22 width=%22640%22 height=%222%22 fill=%22%23EFEFEF%22/%3E%3C/svg%3E");background-repeat:repeat-x;background-position:center bottom;background-size:640px 150px}
p{max-width:640px}.rl-center{max-width:640px}
.rl-link{display:inline-flex;align-items:center;min-height:44px;padding:4px 0;text-decoration:none;color:inherit;transition:color .25s}.rl-link:hover{color:#AD0000;text-decoration:underline;text-underline-offset:4px}
.rl-card-link{display:block;padding:14px 16px;margin:0 -16px;border-radius:14px;text-decoration:none;color:inherit;transition:background-color .25s,color .25s}.rl-card-link:hover{background:#FFFFFF;color:#AD0000}
a{color:#111111}a:hover{color:#AD0000}
.rl-wrap{max-width:1240px;margin-left:auto;margin-right:auto;padding-left:40px;padding-right:40px;box-sizing:border-box}
.rl-h1{font-size:clamp(56px,9vw,104px)}
.rl-bn1{font-size:clamp(46px,7.6vw,88px)}
.rl-h2{font-size:clamp(30px,4vw,40px)}
.rl-big{font-size:clamp(36px,5.4vw,60px)}
.rl-hero{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:32px;align-items:center}
.rl-split{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:32px}
.rl-half{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:56px;align-items:center}
.rl-g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rl-g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rl-g4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.rl-g5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px}
.rl-g6{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.rl-sub{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.rl-center{text-align:center;margin-left:auto;margin-right:auto}
.rl-tile{transition:background-color .3s,color .3s,transform .35s cubic-bezier(.2,.7,.2,1)}.rl-tile:hover{transform:translateY(-3px)}
.rl-list2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 40px}
.rl-show-sm{display:none}
.rl-row{transition:background-color .3s}.rl-row:hover{background-color:#FAFAFA}
.rl-ic{transition:color .25s ease,background-color .25s ease}
a:hover .rl-ic,button:hover .rl-ic,.rl-hov:hover .rl-ic{color:#AD0000}
.rl-cover{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
a:hover .rl-cover{transform:translateY(-6px)}
.rl-clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rl-marquee{height:600px;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent)}
@media (max-width:960px){.rl-hero,.rl-split,.rl-half{grid-template-columns:minmax(0,1fr)}.rl-g5,.rl-g4,.rl-g6{grid-template-columns:repeat(3,minmax(0,1fr))}.rl-sub{grid-template-columns:repeat(3,minmax(0,1fr))}.rl-g3{grid-template-columns:minmax(0,1fr)}.rl-hide-md{display:none!important}}
@media (max-width:640px){.rl-wrap{padding-left:20px;padding-right:20px}.rl-g5,.rl-g4{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rl-g6,.rl-sub{grid-template-columns:repeat(2,minmax(0,1fr))}.rl-brk{display:none}.rl-marquee{height:420px}.rl-g2,.rl-list2{grid-template-columns:minmax(0,1fr)}.rl-hide-sm{display:none!important}.rl-logo{width:72px!important;height:72px!important}.rl-show-sm{display:flex}.rl-pad{padding:32px 24px}}
@keyframes rlRise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes rlFloat{0%,100%{transform:translateY(var(--y,0px))}50%{transform:translateY(calc(var(--y,0px) - 10px))}}
@keyframes rlUp{from{transform:translateY(0)}to{transform:translateY(-50%)}}
@keyframes rlDown{from{transform:translateY(-50%)}to{transform:translateY(0)}}
@keyframes rlFade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:no-preference){
.rl-rise{animation:rlRise .9s cubic-bezier(.2,.7,.2,1) both}
.rl-fade{animation:rlFade 1.2s ease both}
.rl-d1{animation-delay:.08s}.rl-d2{animation-delay:.18s}.rl-d3{animation-delay:.3s}.rl-d4{animation-delay:.42s}.rl-d5{animation-delay:.56s}
.rl-float{animation:rlFloat 7s ease-in-out infinite}
.rl-float2{animation:rlFloat 8s ease-in-out 1.2s infinite}
.rl-js .rl-reveal{opacity:0;transform:translateY(24px);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1)}.rl-js .rl-reveal.rl-in{opacity:1;transform:none}
.rl-up{animation:rlUp 60s linear infinite}.rl-down{animation:rlDown 60s linear infinite}
.rl-marquee:hover .rl-up,.rl-marquee:hover .rl-down{animation-play-state:paused}
.rl-lift{transition:transform .45s cubic-bezier(.2,.7,.2,1),box-shadow .45s}
.rl-lift:hover{transform:translateY(-6px);box-shadow:0 22px 40px rgba(0,0,0,.14)}
.rl-btn{transition:transform .25s ease,background-color .25s ease,color .25s ease}
}

/* ---- WordPress additions ---- */
.rl-skip{position:absolute;left:-9999px;top:8px;z-index:100;padding:12px 18px;border-radius:999px;background:#111;color:#fff;font-weight:600;text-decoration:none}
.rl-skip:focus{left:12px;color:#fff}
.rl-mobile{padding-bottom:24px;display:flex;flex-direction:column}
.rl-mobile[hidden]{display:none!important}
.rl-faq.rl-open .rl-faq-sign{background:#AD0000!important;color:#fff!important}
.rl-faq-a[hidden]{display:none}
.rl-faq-q:hover .rl-faq-sign{background:#EDEDED}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid #AD0000;outline-offset:2px}
input:focus,select:focus,textarea:focus{border-color:#AD0000!important}
[role=radio]:focus-visible{outline-offset:3px}
html[lang="bn"] p[lang="bn"]:not(.rl-bn1),html[lang="bn"] span[lang="bn"]:not(.rl-bn1){display:none!important}
html[lang="bn"] body{font-family:'Noto Sans Bengali',Geist,system-ui,sans-serif}
@media print{header,footer,.rl-marquee{display:none}}
/* centre short paragraphs inside centred blocks (the 640px measure keeps them from sitting left) */
[style*="text-align: center"] > p{margin-left:auto!important;margin-right:auto!important}
body{font-variant-numeric:tabular-nums}

/* ---- v2: dropdown, avatar, save icon, buttons, balance, footer ---- */
.rl-dd{position:relative;display:inline-flex;align-items:center}
.rl-dd>a{display:inline-flex;align-items:center;gap:6px}
.rl-dd>a svg{transition:transform .25s}
.rl-dd:hover>a svg,.rl-dd:focus-within>a svg{transform:rotate(180deg)}
.rl-dd-menu{position:absolute;top:100%;left:-16px;min-width:260px;max-height:70vh;overflow:auto;padding:10px;margin-top:0;border-radius:20px;background:#fff;border:1px solid #E5E5E5;box-shadow:0 22px 48px rgba(0,0,0,.14);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .2s,transform .2s,visibility .2s;z-index:60}
.rl-dd::after{content:"";position:absolute;left:0;right:0;top:100%;height:14px}
.rl-dd:hover .rl-dd-menu,.rl-dd:focus-within .rl-dd-menu{opacity:1;visibility:visible;transform:none}
.rl-dd-menu a{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 14px;border-radius:12px;color:#111;text-decoration:none;font-size:15px;font-weight:500;transition:background-color .2s,color .2s}
.rl-dd-menu a:hover,.rl-dd-menu a:focus{background:#AD0000;color:#fff}
.rl-dd-menu a em{font-style:normal;font-size:13px;opacity:.6}
.rl-avatar{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#AD0000;color:#fff!important;font-weight:600;font-size:17px;text-decoration:none;text-transform:uppercase;transition:background-color .25s}
.rl-avatar:hover,.rl-avatar:focus{background:#111}.rl-avatar:active{background:#5E0000}
.rl-save{display:inline-flex;align-items:center;justify-content:center;width:48px;height:54px;padding:0;border:0;background:transparent;color:#111;cursor:pointer;transition:color .25s,transform .2s}
.rl-save:hover{color:#AD0000}.rl-save:active{color:#5E0000;transform:scale(.92)}
.rl-save svg{width:28px;height:28px}
.rl-save .rl-save-on{display:none}
.rl-save[aria-pressed="true"]{color:#AD0000}
.rl-save[aria-pressed="true"] .rl-save-on{display:block}.rl-save[aria-pressed="true"] .rl-save-off{display:none}
.rl-save:disabled{opacity:.6}
/* button colours on hover and press */
a.rl-btn,button.rl-btn,.rl-btn{transition:background-color .25s ease,color .25s ease,border-color .25s ease}
.rl-btn[style*="#AD0000"]:hover{background:#111!important;color:#fff!important}
.rl-btn[style*="#AD0000"]:active{background:#5E0000!important}
.rl-btn[style*="background: #111"]:hover{background:#AD0000!important;color:#fff!important}
.rl-btn[style*="background: #111"]:active{background:#5E0000!important}
.rl-btn[style*="background: #FFFFFF"]:hover,.rl-btn[style*="background: #fff"]:hover,.rl-btn[style*="border: 1"]:hover{background:#111!important;color:#fff!important;border-color:#111!important}
.rl-btn[style*="background: #FFFFFF"]:active,.rl-btn[style*="border: 1"]:active{background:#AD0000!important;border-color:#AD0000!important}
.rl-link{transition:color .2s}.rl-link:hover{color:#AD0000}
/* even line breaks */
p,h1,h2,h3,h4,li,blockquote,dd,figcaption{text-wrap:balance}
/* footer bar on one line */
.rl-fbar{flex-wrap:nowrap;white-space:nowrap}
.rl-fbar>*{min-width:0}
@media(max-width:900px){.rl-fbar{flex-wrap:wrap!important;white-space:normal;justify-content:center!important;text-align:center}}
/* page progress bar */
#rl-bar{position:fixed;top:0;left:0;height:3px;width:0;background:#AD0000;z-index:9999;opacity:0;transition:width .3s ease,opacity .3s}
#rl-bar.on{opacity:1}
.rl-busy{opacity:.6;pointer-events:none;transition:opacity .2s}

.rl-root img{max-width:100%}
