/*
Theme Name: DigitalFilipino Club
Theme URI: https://digitalfilipinoclub.com/
Author: DigitalFilipino
Description: Learning community theme for digitalfilipinoclub.com in the DigitalFilipino family: course catalog, network blog feed and free resources, with the Viber community as the only call to action.
Template: digitalfilipino
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dfclub
Tags: blog, two-columns, right-sidebar, full-site-editing, block-patterns, accessibility-ready
*/

/* home lead image: keep it a banner, not a full portrait */
.df-lead .df-hero img{aspect-ratio:16/9;object-fit:cover;width:100%;height:auto}

/* ---- DF family child: shared additions (parent style.css loads first) ---- */
.df-brand img{display:block;width:118px;height:auto}
@media (min-width:1000px){.df-brand img{width:150px}}
.df-footer__logo{display:block;width:120px;height:auto}
:root[data-theme="dark"] .df-brand img,:root[data-theme="dark"] .df-footer__logo{background:#fff;border-radius:4px;padding:4px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) :is(.df-brand img,.df-footer__logo){background:#fff;border-radius:4px;padding:4px}}
/* header: three action buttons (search, Viber, theme) need a wider action area than the parent */
body .df-tbtn > .wp-block-button__link{white-space:nowrap}
body .df-actions .df-viber-cta,body .df-nav-extra .df-viber-cta-m{display:none}
body .df-header .df-viber-cta > .wp-block-button__link,body .df-header .df-viber-cta-m > .wp-block-button__link{gap:6px}
body .df-header :is(.df-viber-cta,.df-viber-cta-m) .df-viber-icon{color:#7360F2}
@media (max-width:999px){body .df-nav-extra .df-viber-cta-m{display:block}}
@media (min-width:1000px){
body .df-header nav.wp-block-navigation,.js body .df-header nav.wp-block-navigation:not([data-open]){grid-column:3 / 8}
body .df-header .df-actions{grid-column:8 / -1}
body .df-actions .df-viber-cta{display:block}
body .df-header .df-search-toggle > .wp-block-button__link{min-width:140px}
}
.df-nav-extra{display:flex;flex-wrap:wrap;gap:8px}
/* bylines and author boxes only when the post has an author name */
.df-byline:not(:has(.wp-block-post-author-name)),.df-author-box:not(:has(.wp-block-post-author-name)){display:none}
/* Viber band */
.df-viber-band{background:var(--df-surface);border-block-start:3px solid var(--acc);padding-block:var(--s50);padding-inline:var(--s40)}
.df-viber-band h2{font-size:var(--fs-xl);line-height:1.2}
.df-viber-band .df-text{margin-block-start:var(--s30)}
.df-viber-band__cta{margin-block-start:var(--s50)}
.df-community__btn--inline{display:inline-flex;gap:8px;align-items:center;text-decoration:none}
/* cards (course archive, home grids) */
.df-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:var(--s50) var(--df-gutter);margin:0;padding:0;list-style:none}
.df-cards > li{margin:0}
.df-card{display:flex;flex-direction:column;gap:8px;height:100%}
.df-card__img,.df-card .df-thumb{margin:0 0 4px;border:var(--hl);background:var(--df-surface);overflow:hidden}
.df-card__img img{width:100%;height:100%;object-fit:cover;aspect-ratio:16/9}
.df-card__title{font-size:var(--fs-m);line-height:1.3;margin:0}
.df-card__title a{color:var(--ink);text-decoration:none}
.df-card__title a:hover{color:var(--acc);text-decoration:underline}
.df-card__text,.df-card__meta{font-size:var(--fs-s);color:var(--mute);margin:0}
.df-card__tag{display:inline-block;font-size:12px;font-weight:600;line-height:1;padding:4px 6px;border:1px solid currentColor;color:var(--acc);font-stretch:var(--df-narrow)}
.df-card__ph{display:grid;place-items:center;aspect-ratio:16/9;background:var(--acc);color:var(--df-on-accent);font-weight:600;font-size:var(--fs-l);padding:12px;text-align:center;line-height:1.2}
.df-cards-wrap{grid-column:1 / -1}
@media (min-width:760px){.df-cards-wrap{grid-column:4 / -1}}
@media (min-width:1200px){.df-cards-wrap{grid-column:3 / -1}}
/* item pages (course, lesson, download, product): content column */
.df-item .df-item__content > *{max-width:none}
.df-item .df-item__content{font-size:var(--fs-m)}
/* item content is a subgrid of the article (df-flow); its children sit in the body column, so the wrapper spans the whole article */
.df-item .df-item__content{grid-column:1 / -1}
/* classic WooCommerce template inside the grid (the legacy markup is not grid-aware) */
body .df-primary.df-woo{display:block;min-width:0}
.woocommerce-product-gallery,.woocommerce-product-gallery__wrapper img{opacity:1!important}
@media (min-width:760px){.df-woo div.product{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--s50) var(--df-gutter);align-items:start}.df-woo div.product > .woocommerce-product-gallery{grid-column:1}.df-woo div.product > .summary{grid-column:2}.df-woo div.product > :not(.woocommerce-product-gallery):not(.summary){grid-column:1 / -1}}
.df-woo .woocommerce-products-header__title,.df-woo .product_title{font-size:var(--fs-xl);line-height:1.15;letter-spacing:-.015em}
.df-woo ul.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:var(--s50) var(--df-gutter);margin:var(--s50) 0;padding:0;list-style:none}
.df-woo ul.products::before,.df-woo ul.products::after{content:none}
.df-woo ul.products li.product{width:auto;margin:0;float:none;display:flex;flex-direction:column;gap:8px}
.df-woo ul.products li.product img{aspect-ratio:1;object-fit:cover;border:var(--hl);margin:0 0 6px}
.df-woo ul.products li.product .woocommerce-loop-product__title{font-size:var(--fs-m);line-height:1.3;padding:0;color:var(--ink)}
.df-woo ul.products li.product a{text-decoration:none}
.df-woo div.product{display:grid;gap:var(--s50)}
@media (min-width:900px){.df-woo div.product{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}.df-woo div.product .woocommerce-tabs,.df-woo div.product .related,.df-woo div.product .upsells{grid-column:1 / -1}}
.df-woo div.product div.images,.df-woo div.product div.summary{width:auto;float:none;margin:0}
.df-woo div.product div.images img{border:var(--hl)}
.df-woo .woocommerce-tabs ul.tabs{display:flex;gap:16px;padding:0;margin:0 0 var(--s40);border-block-end:var(--hl)}
.df-woo .woocommerce-tabs ul.tabs li{list-style:none;padding-block-end:8px}
.df-woo .woocommerce-tabs ul.tabs li.active{border-block-end:2px solid var(--acc)}
.df-woo .woocommerce-result-count,.df-woo .woocommerce-ordering{font-size:var(--fs-s);color:var(--mute)}
.df-woo .woocommerce-ordering select{font:inherit;padding:6px 8px;border:1px solid var(--df-field);background:var(--df-surface);color:var(--ink)}
.df-woo nav.woocommerce-pagination ul{display:flex;gap:6px;list-style:none;padding:0;border:0}
/* selling is off: no prices, quantities, cart or checkout UI anywhere in the theme */
.df-woo .price,.woocommerce .price,.df-woo .quantity,.df-woo form.cart,.df-woo .added_to_cart,.df-woo .add_to_cart_button,.df-woo .single_add_to_cart_button,.wc-block-mini-cart,.wc-block-components-product-price,.ld-course-status-segment .ld-course-status-price,.edd_price,.edd-cart,.edd_purchase_submit_wrapper{display:none !important}
/* the mu-plugin's Viber CTA (product pages, LearnDash/EDD buy boxes) styled as the theme button */
a.df-viber-btn,.df-viber-cta-btn,a[href^="https://invite.viber.com"].button{display:inline-flex;align-items:center;gap:8px;font:600 var(--fs-m)/1.3 var(--font);color:var(--df-on-accent) !important;background:var(--acc);border:1px solid var(--acc);border-radius:0;padding:10px 18px;min-height:44px;text-decoration:none}
/* LearnDash 3.x inside the reading column */
.df-item .learndash-wrapper{font-size:var(--fs-m)}
.df-item .learndash-wrapper .ld-item-list .ld-item-list-item{border-radius:0}
.df-item .learndash-wrapper .ld-course-status{border-radius:0}
/* legacy Porto/WPBakery leftovers on old pages */
.df-prose .porto-u-heading,.df-prose .porto-sicon-box{margin-block:var(--s40)}

/* ---- dfclub: cool blue, logo yellow, narrow headings, rounded cards ---- */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
--wp--preset--color--base:#0D1420;--wp--preset--color--contrast:#E8EEF7;--wp--preset--color--muted:#9DAAC0;
--wp--preset--color--line:#26324A;--wp--preset--color--accent:#8DB6FF;--wp--preset--color--surface:#131C2C;
--wp--custom--color--hover:#B7D0FF;--wp--custom--color--on-accent:#0D1420;--wp--custom--color--logo-ink:#E8EEF7}}
:root[data-theme="dark"]{
--wp--preset--color--base:#0D1420;--wp--preset--color--contrast:#E8EEF7;--wp--preset--color--muted:#9DAAC0;
--wp--preset--color--line:#26324A;--wp--preset--color--accent:#8DB6FF;--wp--preset--color--surface:#131C2C;
--wp--custom--color--hover:#B7D0FF;--wp--custom--color--on-accent:#0D1420;--wp--custom--color--logo-ink:#E8EEF7}
:is(h1,h2,h3,.df-title,.df-title--m,.df-h2,.wp-block-post-title,.dfc-hero__title){font-stretch:82%;letter-spacing:-.01em}
.df-label{display:inline-block;background:var(--wp--custom--color--yellow);color:#0E1A2B;padding:3px 7px;border-radius:3px;font-size:12px;letter-spacing:.02em}
.df-block{border-block-start-width:2px}
/* hero */
.dfc-hero{grid-column:1 / -1;background:linear-gradient(135deg,#1E6FD9 0%,#1450B4 55%,#0C3A88 100%);color:#fff;padding:var(--s60) var(--s50);margin-block-end:var(--s70);border-radius:4px}
.dfc-hero__kicker{font-size:var(--fs-s);font-weight:600;font-stretch:var(--df-narrow);color:#F7D417}
.dfc-hero__title{font-size:var(--fs-xxl);line-height:1.04;max-width:14em;margin-block-start:10px;color:#fff}
.dfc-hero__title::after{content:"";display:block;width:96px;height:5px;background:#F7D417;margin-block-start:16px}
.dfc-hero__dek{font-size:var(--fs-l);line-height:1.5;max-width:32em;margin-block-start:var(--s40);color:#E4ECFA}
.dfc-hero__cta{display:flex;flex-wrap:wrap;gap:10px;margin-block-start:var(--s50)}
.dfc-btn-yellow{background:#F7D417;border-color:#F7D417;color:#0E1A2B}
.dfc-btn-yellow:hover{background:#fff;border-color:#fff;color:#0E1A2B}
.dfc-btn-ghost{background:none;border-color:#fff;color:#fff}
.dfc-btn-ghost:hover{background:#fff;color:#1450B4;border-color:#fff}
.dfc-btn-ghost .df-viber-icon{color:currentColor}
.dfc-hero__facts{display:flex;flex-wrap:wrap;gap:6px 18px;margin-block-start:var(--s50);font-size:var(--fs-s);color:#CFDcF5}
.dfc-hero__facts span + span::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#F7D417;margin-inline-end:18px;vertical-align:middle;margin-inline-start:-11px}
/* course cards */
.dfc-course-cards{margin-block-start:var(--s40)}
.dfc-card a{display:flex;flex-direction:column;gap:8px;height:100%;color:var(--ink);text-decoration:none;border:var(--hl);border-radius:4px;background:var(--df-surface);overflow:hidden;padding-block-end:14px}
.dfc-card .df-card__img,.dfc-card .df-card__ph{border:0;border-radius:0;margin:0;aspect-ratio:16/9}
.dfc-card .df-card__img img{width:100%;height:100%;object-fit:cover}
.dfc-card__row,.dfc-card .df-card__title{padding-inline:14px}
.dfc-card__row{display:flex;gap:10px;align-items:center;margin-block-start:6px}
.dfc-card .df-card__title{font-weight:600;line-height:1.3;font-stretch:90%}
.dfc-card a:hover{border-color:var(--acc)}
.dfc-card a:hover .df-card__title{color:var(--acc);text-decoration:underline}
.dfc-more{margin-block-start:var(--s40)}
/* blog list from digitalfilipino.com uses the parent df-post rows */
.dfc-guides{display:contents}
/* how it works */
.dfc-how{counter-reset:h;display:grid;gap:var(--s40);margin-block-start:var(--s40)}
@media (min-width:760px){.dfc-how{grid-template-columns:repeat(3,1fr)}}
.dfc-how li{counter-increment:h;border-block-start:2px solid var(--acc);padding-block-start:12px;display:flex;flex-direction:column;gap:4px}
.dfc-how li::before{content:counter(h,decimal-leading-zero);font-weight:600;color:var(--acc);font-stretch:82%;font-size:var(--fs-l)}
.dfc-how span{color:var(--mute);font-size:var(--fs-s)}
/* about page */
.dfc-hero--about .dfc-hero__title{max-width:18em}
.dfc-lead{font-size:var(--fs-l);line-height:1.5;margin-block-start:var(--s30)}
.dfc-timeline{list-style:none;padding:0;margin-block-start:var(--s50);display:grid;gap:0;border-inline-start:2px solid var(--acc)}
.dfc-timeline li{position:relative;display:grid;gap:2px;padding:0 0 var(--s50) 22px}
.dfc-timeline li:last-child{padding-block-end:0}
.dfc-timeline li::before{content:"";position:absolute;inset-inline-start:-7px;top:.35em;width:12px;height:12px;border-radius:50%;background:var(--wp--custom--color--yellow);border:2px solid var(--acc)}
.dfc-timeline__when{font-size:var(--fs-s);font-weight:600;font-stretch:82%;color:var(--acc);text-transform:uppercase;letter-spacing:.04em}
.dfc-timeline strong{font-size:var(--fs-l);line-height:1.3}
.dfc-timeline li > span:last-child{color:var(--mute);max-width:40em}
.dfc-offer{list-style:none;padding:0;display:grid;gap:var(--s40);margin-block-start:var(--s40)}
@media (min-width:760px){.dfc-offer{grid-template-columns:repeat(2,minmax(0,1fr))}}
.dfc-offer a{display:flex;flex-direction:column;gap:6px;height:100%;padding:18px 20px;border:1px solid var(--line);border-radius:10px;background:var(--wp--preset--color--surface);text-decoration:none;color:inherit;border-block-start:4px solid var(--acc)}
.dfc-offer a:hover{border-color:var(--acc)}
.dfc-offer a:hover strong{color:var(--acc);text-decoration:underline}
.dfc-offer strong{font-size:var(--fs-l);font-stretch:90%;line-height:1.3}
.dfc-offer span{color:var(--mute);font-size:var(--fs-s);line-height:1.5}
.dfc-offer li:last-child a{border-block-start-color:#7360F2}
/* rail learning card */
.dfc-learn__cta{display:flex;flex-wrap:wrap;gap:8px;margin-block-start:12px}

