/*
Theme Name: Lotus Dharma
Version: 3.0
Description: Editable Buddhist education and media website.
Requires at least: 6.0
Requires PHP: 7.4
*/
*{box-sizing:border-box}body{margin:0;background:#fffaf1;color:#35271e;font:17px/1.7 system-ui,sans-serif}a{color:#895019;text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{font-family:Georgia,serif;color:#702b12;line-height:1.2}img{max-width:100%;height:auto}header,.wrap{max-width:1280px;margin:auto;padding:24px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.brand{font: bold 36px Georgia;color:#702b12}.custom-logo{max-width:240px}nav{background:#63340e;color:white}nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center}nav li{position:relative}nav a{display:block;color:white;padding:12px 14px;font-size:14px}nav a:hover,nav .current-menu-item>a{background:#a66b17}nav .sub-menu{display:none;position:absolute;background:#63340e;min-width:230px;z-index:5}nav li:hover>.sub-menu,nav li:focus-within>.sub-menu{display:block}.hero{background:linear-gradient(110deg,#f8d994,#fff4df);text-align:center;padding:65px 20px;background-size:cover;background-position:center}.hero h1{font-size:clamp(32px,5vw,60px);margin:0;background:#fff5dfdf;display:inline-block;padding:12px 24px}.layout{display:grid;grid-template-columns:260px 1fr;gap:32px}.side{background:#f4e7d0;border:1px solid #e2c89b;padding:20px;align-self:start;border-radius:8px}.side a{display:block;border-bottom:1px solid #dfc9a4;padding:8px 0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.tile{background:white;border:1px solid #e5d5b9;border-radius:8px;overflow:hidden;padding:16px}.tile img{width:100%;aspect-ratio:16/10;object-fit:cover}.button,button,input[type=submit]{background:#945711;color:white;border:0;padding:10px 18px;border-radius:5px;cursor:pointer}input{padding:10px;border:1px solid #d5c5ae;max-width:100%}footer{background:#49270f;color:#fff3dc;padding:28px}footer a{color:#fff3dc}.entry{min-width:0}.entry iframe,.entry video,.entry audio{max-width:100%}.entry a{text-decoration:underline}.crumb{font-size:14px;margin-bottom:20px}.menu-toggle{display:none}@media(max-width:760px){.layout{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.menu-toggle{display:block;margin:8px}nav ul{display:none}nav.open ul{display:block}nav .sub-menu{position:static;display:block;padding-left:15px}.brand{font-size:26px}.wrap{padding:16px}}@media(max-width:420px){.grid{grid-template-columns:1fr}}
.hero{background-image:linear-gradient(90deg,#fff5df33,#fff5dfbb),url('assets/banner.jpg');min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center}.tile{box-shadow:0 3px 12px #63340e12}.tile h3{margin:10px 0}.tile:hover{border-color:#a66b17}.side h3{background:#63340e;color:white;padding:12px;margin:-10px -10px 10px}.entry{background:#fffdf8;padding:24px;border:1px solid #ead9bb}.entry img{height:auto}.hero p{background:#fff5dfdd;padding:5px 15px}.tile .fallback{width:100%;aspect-ratio:16/10;object-fit:cover}footer .wrap{display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between}
body{font-family:'Noto Sans Khmer','Khmer OS System',Arial,sans-serif;font-size:15px;background:#fcf8ee;color:#33200f}h1,h2,h3{font-family:'Noto Serif Khmer','Khmer OS Muol Light','Khmer OS System',serif;line-height:1.65;color:#68370e}a:hover{text-decoration:none;color:#b77b1f}.ld-header{max-width:1500px;padding:8px 3%;min-height:78px;background:linear-gradient(100deg,#fffaf2,#f8e8cb);flex-wrap:nowrap}.brand{display:flex;align-items:center;gap:10px;font-size:clamp(20px,2.6vw,36px);font-family:inherit}.brand img{width:76px;height:70px;object-fit:contain}.brand small{display:block;font-size:12px;font-weight:normal}.ld-search{display:flex;flex-shrink:0}.ld-search input{width:180px;background:white}.ld-nav{background:linear-gradient(90deg,#51270b,#794611,#51270b)}.ld-nav>ul{max-width:1500px;margin:auto}.ld-nav a{font-size:13px;padding:13px 9px;text-align:center}.ld-hero{min-height:clamp(230px,25vw,400px);display:flex;align-items:center;justify-content:flex-end;background-image:linear-gradient(90deg,transparent 35%,#fff2d3 79%),var(--hero);background-size:cover;background-position:center 55%;padding:25px 7%}.ld-hero>div{width:40%;text-align:center}.ld-hero h1{font-size:clamp(24px,3vw,49px);margin:0 0 18px}.button{display:inline-block;border-radius:28px;background:linear-gradient(#a56a20,#75410d);color:white;padding:8px 22px}.quick-grid{display:grid;grid-template-columns:repeat(9,1fr);background:linear-gradient(#fffcf4,#f9e9ca);border-radius:0 0 40% 40% / 0 0 20% 20%;padding:15px 3% 22px;gap:0}.quick-grid a{text-align:center;border-right:1px solid #dec9a4;font-weight:600;font-size:13px;padding:0 8px;line-height:1.7}.quick-grid a:last-child{border:0}.quick-grid span{display:grid;place-items:center;margin:0 auto 6px;background:#fff2d8;border-radius:50%;width:47px;height:47px;font-size:30px;color:#a66b17}.ld-main{max-width:1500px;margin:auto;padding:16px 2%}.ld-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:12px 0;border-bottom:1px solid #e6d6b9}.top-row{grid-template-columns: 1.45fr 1fr}.books-row{grid-template-columns:1.55fr 1fr}.ld-row section{min-width:0}.section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #dec9a4;margin-bottom:12px}.section-title h2{font-size:clamp(16px,1.8vw,25px);margin:0 0 6px}.section-title h2 span{color:#a66b17}.section-title a{font-size:12px;white-space:nowrap}.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.post-grid article{background:#fffdf8;border-radius:7px;overflow:hidden;box-shadow:0 2px 8px #6b401b20}.post-grid img{width:100%;aspect-ratio:1.55;object-fit:cover;display:block}.post-grid h3{font-size:14px;margin:7px 10px}.post-grid small{display:block;padding:0 10px 8px}.promo{display:flex;align-items:center;background:linear-gradient(110deg,#fff1c8,#f1c56c);border-radius:12px;overflow:hidden;min-height:155px;position:relative}.promo div{padding:18px;width:62%;z-index:1}.promo h2{font-size:clamp(19px,2.1vw,31px);margin:0 0 10px}.promo img{width:38%;align-self:stretch;object-fit:cover}.radio{min-height:230px}.media-box{display:flex;align-items:center;gap:15px;padding:10px;background:#fffbf2;border:1px solid #e4d3b6;border-radius:8px;min-height:110px}.media-box img{width:40%;max-height:125px;object-fit:cover;border-radius:6px}.media-box div{flex:1;min-width:0}.media-box h3{font-size:15px}.book-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.book{aspect-ratio:0.78;display:flex;flex-direction:column;justify-content:space-between;text-align:center;padding:12px 5px;background:linear-gradient(100deg,#dca846,#fff3c9 8%,#fff8e4 60%,#e6b457);border:1px solid #d6b470;border-radius:4px;box-shadow:2px 4px 5px #5a341b33;font-weight:bold;font-size:13px}.book span{font-size:38px;color:#b87b20}.book img{height:100%;width:100%;object-fit:cover}.ld-footer{display:grid;grid-template-columns:repeat(4,1fr);gap:25px;max-width:1450px;margin:auto}.ld-footer h3{color:#ffe6b2;margin-top:0}.ld-footer a{display:block;font-size:13px}.copyright{text-align:center;border-top:1px solid #ffffff33;margin-top:20px;padding-top:12px;font-size:12px}.hero h1{font-size:clamp(22px,3vw,44px)}@media(max-width:800px){.ld-header{flex-wrap:wrap}.ld-search{width:100%}.ld-search input{flex:1}.ld-nav a{text-align:left}.quick-grid{grid-template-columns:repeat(3,1fr);gap:12px;border-radius:0}.ld-row,.top-row,.books-row{grid-template-columns:1fr}.ld-hero>div{width:58%}.ld-hero{background-image:linear-gradient(90deg,transparent,#fff2d3 85%),var(--hero)}.ld-footer{grid-template-columns:1fr 1fr}}@media(max-width:480px){.post-grid{grid-template-columns:1fr 1fr}.book-grid{grid-template-columns:repeat(3,1fr)}.brand img{width:50px}.ld-footer{grid-template-columns:1fr}.promo h2{font-size:20px}}
