/*
Theme Name: YRH Cooperative
Description: ธีมเว็บไซต์สหกรณ์ออมทรัพย์โรงพยาบาลยะลา
Version: 2.3
*/
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;500;600;700&display=swap');
:root{--green:#1677b8;--deep:#104a80;--ink:#183b56;--muted:#647c91;--cream:#f4f8fc;--line:#dfe8f2}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:Prompt,system-ui,sans-serif;line-height:1.8}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.wrap{width:min(1180px,calc(100% - 40px));margin:auto}.top{background:#104a80;color:#d5e4f1;font-size:13px;padding:7px 0}.top .wrap{display:flex;justify-content:space-between}.header{background:#fff;border-bottom:1px solid var(--line)}.header .wrap{min-height:91px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand img{width:285px;display:block}.nav{display:flex;align-items:center;gap:23px;font-size:14px;font-weight:500}.nav a:hover{color:var(--green)}.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 21px;background:var(--green);color:#fff!important;border-radius:9px;font-weight:600}.hero{padding:70px 0;background:linear-gradient(100deg,rgba(16,54,94,.97),rgba(22,119,184,.84)),url('assets/hospital.jpg') center/cover;color:white}.hero .eyebrow{font-size:13px;letter-spacing:.14em;color:#a3c9e8}.hero h1{font-size:clamp(32px,4.3vw,54px);line-height:1.35;max-width:760px;margin:12px 0}.hero p{max-width:580px;color:#d5e4f1;margin-bottom:28px}.btn.light{background:#fff;color:var(--deep)!important}.hero .outline{border:1px solid #acc6dc;background:transparent;margin-left:8px}.services{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:-27px;position:relative}.service{background:white;padding:23px;border-radius:14px;box-shadow:0 10px 28px #0d274012;border:1px solid var(--line)}.service b{display:block;font-size:17px}.service span{color:var(--muted);font-size:13px}.service .icon{font-size:25px;color:var(--green)}section.content{padding:65px 0}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px}.section-head h2{font-size:28px;margin:0}.section-head p{margin:0;color:var(--muted)}.section-head a{color:var(--green);font-weight:600}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}.card-body{padding:22px}.card img{width:100%;height:180px;object-fit:cover}.card time,.meta{color:var(--muted);font-size:13px}.card h3{font-size:17px;line-height:1.65;margin:7px 0 14px}.card .more{font-size:13px;color:var(--green);font-weight:600}.callout{background:#e1ebf3;padding:38px;border-radius:18px;display:flex;justify-content:space-between;align-items:center;gap:20px}.callout h2{margin:0}.callout p{margin:4px 0;color:var(--muted)}.page{padding:48px 0 80px}.page-inner{max-width:900px;background:white;padding:38px;border:1px solid var(--line);border-radius:16px}.page h1{line-height:1.4}.entry img{height:auto}.entry a{color:var(--green);text-decoration:underline}.entry table{max-width:100%}.footer{background:#102f54;color:#d2e0eb;padding:45px 0 20px;margin-top:35px}.footer .wrap{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap}.footer small{display:block;margin-top:25px;color:#a4b9cb}.menu-toggle{display:none}.pagination{margin-top:25px}@media(max-width:900px){.nav{flex-wrap:wrap;gap:12px}.services{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.top .wrap{display:block}.top .wrap span:last-child{display:none}.header .wrap{display:block;padding:15px 0}.brand img{width:230px}.nav{margin-top:15px;font-size:13px}.nav .btn{padding:7px 10px}.hero{padding:48px 0 65px}.services{grid-template-columns:repeat(2,1fr);gap:10px}.service{padding:15px}.grid{grid-template-columns:1fr}.callout{display:block;padding:24px}.callout .btn{margin-top:15px}.page-inner{padding:23px}}


/* Corporate Blue v1.9 — favicon support and minimal section heading icons */
.section-title-with-icon{display:flex;align-items:center;gap:12px;min-width:0}
.section-title-with-icon span:last-child{display:inline-block;min-width:0}
.section-title-icon{display:inline-grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border-radius:13px;border:1px solid #d7e6f2;background:#edf5fc;color:#104a80;box-shadow:inset 0 1px 0 rgba(255,255,255,.95)}
.section-title-icon svg{display:block;width:21px;height:21px}
.section-title-small .section-title-icon{width:38px;height:38px;border-radius:12px}
.section-title-small .section-title-icon svg{width:19px;height:19px}
.section-title-icon.is-megaphone{background:linear-gradient(180deg,#eef6ff,#dfeefd);color:#1677b8}
.section-title-icon.is-news{background:linear-gradient(180deg,#eff7ff,#e1eefc);color:#1d6faf}
.section-title-icon.is-notice{background:linear-gradient(180deg,#fff5ef,#ffe5d8);color:#de6d42}
.section-title-icon.is-activity{background:linear-gradient(180deg,#f4fbff,#dff0ff);color:#1790c6}
.section-title-icon.is-more-news{background:linear-gradient(180deg,#f8f7ff,#ece8ff);color:#6c63d9}
.section-title-icon.is-documents{background:linear-gradient(180deg,#f1fbf4,#def4e4);color:#27a35f}
.section-title-icon.is-partners{background:linear-gradient(180deg,#fff9ef,#f9e8c5);color:#bf8a1a}
.section-title-icon.is-contact{background:linear-gradient(180deg,#eef5ff,#dfeafd);color:#2f76c5}
@media(max-width:600px){.section-title-with-icon{gap:10px}.section-title-icon{width:38px;height:38px;border-radius:12px}.section-title-icon svg{width:19px;height:19px}.section-title-small .section-title-icon{width:34px;height:34px}}


/* Corporate Blue v2.1 — related organizations / partnership illustration. */
.partners .section-title-icon.is-partners{width:54px;height:54px;border-radius:16px;border:1px solid #cbdff0;background:linear-gradient(145deg,#f6fbff,#e5f0fa);box-shadow:0 4px 14px rgba(16,74,128,.09);overflow:hidden;}
.partners .section-title-icon.is-partners img{display:block;width:51px;height:51px;object-fit:contain;max-width:none;}
@media(max-width:600px){.partners .section-title-icon.is-partners{width:48px;height:48px;border-radius:14px;}.partners .section-title-icon.is-partners img{width:45px;height:45px;}}
