/*
Theme Name: KARF
Theme URI: https://karfacademy.my
Author: Komuniti Affiliates Raja Fatin
Description: Theme blok untuk KARF Academy. Latar hitam, tulisan emas, aksen teal.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: karf
*/

/* Small extras that theme.json cannot express. */
:root { color-scheme: dark; }
::selection { background: #dba63f; color: #1a1205; }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid #35bfd0; outline-offset: 2px; }

/* Header: sticky bar with a thin gold rule underneath. */
.karf-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 9, 8, .92); backdrop-filter: blur(8px); border-bottom: 1px solid #30291b; }
.admin-bar .karf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .karf-header { top: 0; position: relative; } }
.karf-logo img { height: 36px; width: auto; display: block; mix-blend-mode: lighten; clip-path: inset(0 4% 0 0); }
.karf-header .wp-block-navigation__responsive-container.is-menu-open { background: #0a0908; color: #f4ecd9; }
.karf-header .wp-block-navigation-item__content { padding: .35em 0; border-bottom: 2px solid transparent; }
.karf-header .current-menu-item > .wp-block-navigation-item__content,
.karf-header .wp-block-navigation-item__content[aria-current="page"] { color: #f4d483; border-bottom-color: #35bfd0; }

/* Cards and small labels used by the patterns. */
.karf-card { background: #15120d; border: 1px solid #30291b; border-radius: 16px; height: 100%; }
.karf-card:hover { border-color: #b9822a; }
.karf-eyebrow { color: #35bfd0; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .78rem; }
.karf-step-no { font-family: Sora, sans-serif; font-weight: 700; color: #1a1205; background: linear-gradient(180deg,#f4d483,#dba63f 55%,#b9822a); width: 2.4rem; height: 2.4rem; border-radius: 999px; display: grid; place-items: center; margin: 0; }
/* Teal accent rule: full width of its container, drawn 56px from the left so it lines up with the heading. */
.wp-block-separator.karf-rule { height: 3px; width: auto; border: 0; opacity: 1; background: linear-gradient(90deg, #35bfd0 0 56px, transparent 56px) !important; }
.karf-badge { display: inline-block; border: 1px solid #35bfd0; color: #35bfd0; border-radius: 999px; padding: .1em .7em; font-size: .75rem; font-weight: 700; }

/* Outline button style (registered in functions.php). */
.wp-block-button.is-style-karf-outline .wp-block-button__link { background: transparent; color: #f4d483; border: 1px solid #dba63f; }
.wp-block-button.is-style-karf-outline .wp-block-button__link:hover { background: #261e0e; color: #f4d483; }

/* Forms everywhere (comments, search, plugin forms that do not style their own fields). */
:where(input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=url], input[type=number], textarea, select) {
	background: #0a0908; color: #f4ecd9; border: 1px solid #30291b; border-radius: 10px; padding: .6em .8em; font: inherit;
}
.wp-block-search__button { border-radius: 10px; }

/* Tables in posts. */
.wp-block-table td, .wp-block-table th { border-color: #30291b; }

/* Tutor LMS: brand colours through its own variables. */
:root {
	--tutor-color-primary: #dba63f;
	--tutor-color-primary-rgb: 219, 166, 63;
	--tutor-color-primary-hover: #b9822a;
}

/* WooCommerce: notices readable on black. */
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: #15120d; color: #f4ecd9; border-top-color: #35bfd0; }

/* Footer */
.karf-footer { border-top: 1px solid #30291b; }
.karf-footer a { text-decoration: none; color: #f4ecd9; }
.karf-footer a:hover { color: #35bfd0; }
