/* Dynamic/CMS pages — visual system aligned with the legacy Kuyin Farm site */
.dynamic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:28px}
.dynamic-card{background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 12px 34px rgba(38,70,47,.09);border:1px solid rgba(71,111,79,.12)}
.dynamic-card a{display:block;height:100%}
.dynamic-card img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.dynamic-body{padding:20px}
.dynamic-body small{color:#628263;font-weight:800}
.dynamic-body h3{font-size:22px;line-height:1.35;margin:7px 0 8px}
.dynamic-body p{margin:0;color:#5f6d62}
.section-more{margin-top:28px;text-align:right}
.fb-old-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:44px;align-items:start}
.fb-embed{display:flex;justify-content:center}
.fb-embed iframe{max-width:100%;background:white;border-radius:20px!important}

/* Booking table */
.booking-section{padding:86px 0;background:#fbf7ed}
.booking-head{max-width:820px;margin:0 auto 28px;text-align:center}
.booking-head h2{margin:8px 0 10px;font-size:clamp(30px,4vw,46px);line-height:1.2;color:#173e36}
.booking-head p{margin:0;color:#5f6d62;font-size:17px}
.booking-table{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid #dce5d9;border-radius:24px;overflow:hidden;box-shadow:0 12px 35px rgba(41,72,48,.08)}
.booking-cell{display:flex;gap:15px;align-items:flex-start;padding:24px 22px;min-height:150px;border-right:1px solid #e3e9e1}
.booking-cell:last-child{border-right:0}
.booking-icon{flex:0 0 38px;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e6efe1;color:#315a3c;font-weight:900;font-size:12px}
.booking-cell b{display:block;margin:1px 0 7px;font-size:21px;color:#173e36}
.booking-cell span{display:block;color:#667168;line-height:1.65;font-size:14px}
.booking-action{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:18px;padding:20px 22px;background:#173e36;color:#fff;border-radius:18px}
.booking-action strong,.booking-action span{display:block}
.booking-action strong{font-size:18px;margin-bottom:2px}
.booking-action span{color:#d8e4d7;font-size:14px}
.booking-action .btn-line{flex:0 0 auto}

/* Dynamic page headers */
.page-head{padding:58px 0;background:linear-gradient(135deg,#fff4bf,#e6faeb 45%,#e5f3ff)}
.page-head .wrap{display:block}
.page-head .eyebrow{display:inline-block;background:#fff;padding:8px 13px;border-radius:999px;font-weight:900;box-shadow:0 8px 20px rgba(40,74,55,.08);color:#287d58}
.page-head h1{font-size:clamp(40px,5vw,62px);line-height:1.08;letter-spacing:-1.5px;margin:18px 0 12px}
.page-head p{font-size:18px;color:#5d7068;max-width:780px;margin:0}

/* Article / knowledge layouts */
.article{max-width:900px;padding:62px 0 88px}
.article h2{font-size:30px;line-height:1.3;margin:42px 0 12px;color:#203f35}
.article p,.article li{font-size:18px;color:#4f6259}
.article ul{padding-left:1.35em}
.article .btn.primary{background:var(--green);color:#fff}
.post-meta{color:#4a8668;font-weight:900;margin-bottom:12px}
.post h1{font-size:clamp(38px,5vw,58px);line-height:1.16;letter-spacing:-1px;margin:8px 0 22px}
.post-cover{display:block;width:100%;height:auto!important;max-height:620px;object-fit:cover;border-radius:26px;margin:24px 0 34px;box-shadow:var(--shadow)}
.post-body p{font-size:18px;line-height:1.9}
.share{display:flex;gap:12px;flex-wrap:wrap;margin-top:36px}
.share .btn{background:#fff;border:1px solid #dfe8e1}
.share .btn.primary{background:var(--green);color:#fff;border-color:var(--green)}

/* Article listing cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{background:#fff;border-radius:24px;overflow:hidden;box-shadow:var(--shadow);border:1px solid #edf1ed}
.card>a{display:block;height:100%}
.card img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.card-body{padding:20px}
.card-body small{color:#4f8a68;font-weight:900}
.card h2,.card h3{font-size:21px;line-height:1.42;margin:7px 0 8px}
.card p{margin:0;color:#607269}
.empty{padding:24px;background:#fff;border:1px dashed #b8c9bc;border-radius:18px;color:#607269}

/* Knowledge center list */
.mini-list{display:grid;gap:12px;margin:16px 0 28px}
.mini-list a{display:grid;gap:4px;padding:18px 20px;border-radius:18px;background:#f5faf6;border:1px solid #e4eee7}
.mini-list a:hover{background:#edf8f0}
.mini-list b{font-size:18px;color:#245f49}
.mini-list span{color:#64766e}

/* Legacy PHP course page fallback */
.course-list{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.course-list article{padding:24px;border-radius:22px;background:#fff;box-shadow:0 10px 26px rgba(42,70,54,.08)}
.course-list h2{font-size:23px;margin-top:0}
.course-list p{color:#5e7067}
.course-list a{color:var(--green);font-weight:900}

@media(max-width:900px){
  .dynamic-grid,.cards{grid-template-columns:1fr 1fr}
  .fb-old-grid{grid-template-columns:1fr}
  .booking-table{grid-template-columns:1fr 1fr}
  .booking-cell:nth-child(2){border-right:0}
  .booking-cell:nth-child(-n+2){border-bottom:1px solid #e3e9e1}
  .booking-action{align-items:flex-start;flex-direction:column}
  .course-list{grid-template-columns:1fr}
}
@media(max-width:620px){
  .dynamic-grid,.cards{grid-template-columns:1fr}
  .booking-table{grid-template-columns:1fr}
  .booking-cell{border-right:0;border-bottom:1px solid #e3e9e1;min-height:auto}
  .booking-cell:last-child{border-bottom:0}
  .booking-action .btn-line{width:100%;text-align:center}
  .page-head{padding:42px 0}
  .page-head h1{font-size:40px}
  .article{padding:44px 0 64px}
  .article h2{font-size:26px}
  .post h1{font-size:38px}
}

.post-gallery{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:30px 0 8px}.post-gallery img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:20px;box-shadow:0 10px 24px rgba(42,70,54,.10)}@media(max-width:650px){.post-gallery{grid-template-columns:1fr}.post-gallery img{aspect-ratio:16/10}}

/* Google Ads landing pages */
.adhero{padding:64px 0;background:linear-gradient(135deg,#fff7ca 0%,#e9f8e9 52%,#e8f5ff 100%)}
.adhero-grid{display:grid;grid-template-columns:1.04fr .96fr;gap:42px;align-items:center}
.adhero-copy h1{font-size:clamp(44px,5.2vw,68px);line-height:1.08;letter-spacing:-1.8px;margin:18px 0 16px;max-width:760px}
.adhero-copy .lead{font-size:19px;line-height:1.8;max-width:690px}
.adhero-photo{margin:0;border-radius:30px;overflow:hidden;border:6px solid #fff;box-shadow:var(--shadow);height:430px}
.adhero-photo img{width:100%;height:100%;object-fit:cover}
.ad-quick{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0 0}
.ad-quick>div{padding:16px 18px;background:rgba(255,255,255,.82);border-radius:17px;border:1px solid rgba(58,103,75,.08)}
.ad-quick b,.ad-quick span{display:block}.ad-quick b{color:#287b58;font-size:14px;margin-bottom:3px}.ad-quick span{font-weight:800}
.ad-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.ad-micro{font-size:14px;color:#687a71;margin:12px 0 0}
.ad-topic-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.ad-topic-grid article{background:#fff;border-radius:22px;padding:22px;box-shadow:0 10px 26px rgba(42,70,54,.08);min-height:150px}
.ad-topic-grid article span{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;background:#e8f7ec;color:#287b58;font-size:12px;font-weight:900}
.ad-topic-grid h3{font-size:21px;line-height:1.4;margin:14px 0 0}
.ad-proof-grid{display:grid;grid-template-columns:.82fr 1.18fr;gap:34px;align-items:center}
.ad-proof-grid h2{font-size:clamp(30px,4vw,44px);line-height:1.2;margin:8px 0 18px}
.ad-proof-list{display:grid;gap:10px;margin:20px 0}.ad-proof-list div{background:#fff;padding:14px 16px;border-radius:15px;font-weight:850}
.text-link{display:inline-block;color:#287b58;font-weight:900;margin-top:8px}
.ad-photo-strip{display:grid;grid-template-columns:1.15fr .85fr;grid-template-rows:200px 200px;gap:12px}
.ad-photo-strip img{border-radius:20px;box-shadow:0 8px 24px rgba(40,72,54,.10)}
.ad-photo-strip img:first-child{grid-row:1/3}
.ad-final{padding:58px 0 78px;background:#fffaf0}
.ad-final-inner{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:34px 38px;border-radius:28px;background:linear-gradient(120deg,#fff2a9,#e6f7e8 52%,#e5f4ff);box-shadow:0 14px 34px rgba(42,70,54,.08)}
.ad-final h2{font-size:clamp(28px,3.6vw,40px);line-height:1.25;margin:6px 0 8px}
.ad-final p{margin:0;color:#607269;max-width:720px}
.ad-final-actions{display:flex;flex-direction:column;gap:10px;min-width:210px}
@media(max-width:940px){.adhero-grid,.ad-proof-grid{grid-template-columns:1fr}.adhero-photo{height:360px}.ad-topic-grid{grid-template-columns:1fr 1fr}.ad-final-inner{align-items:flex-start;flex-direction:column}.ad-final-actions{flex-direction:row;min-width:0}}
@media(max-width:650px){.adhero{padding:44px 0}.adhero-copy h1{font-size:42px}.adhero-photo{height:280px}.ad-quick,.ad-topic-grid{grid-template-columns:1fr}.ad-photo-strip{grid-template-columns:1fr;grid-template-rows:auto}.ad-photo-strip img:first-child{grid-row:auto}.ad-photo-strip img{height:230px}.ad-final-inner{padding:26px 22px}.ad-final-actions{width:100%;flex-direction:column}.ad-final-actions .btn{width:100%}}

.ad-entry-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.ad-entry-grid a{display:flex;flex-direction:column;gap:6px;min-height:170px;padding:24px;border-radius:24px;background:#fff;box-shadow:0 10px 26px rgba(42,70,54,.08);border:1px solid #edf1ed;transition:.2s transform,.2s box-shadow}.ad-entry-grid a:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(42,70,54,.12)}.ad-entry-grid b{font-size:22px;color:#245f49}.ad-entry-grid span{color:#63756d}.ad-entry-grid em{margin-top:auto;color:#27885e;font-style:normal;font-weight:900}@media(max-width:900px){.ad-entry-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.ad-entry-grid{grid-template-columns:1fr}.ad-entry-grid a{min-height:140px}}
