/* ====================================
   PKC SHARED DESIGN SYSTEM
   Used by all penangkoreanclass.com page templates
   ==================================== */

:root {
    --pkc-red:       #B7202C;
    --pkc-blue:      #003478;
    --pkc-orange:    #F9653F;
    --pkc-cream:     #FAF7F2;
    --pkc-warm:      #F4EFE6;
    --pkc-ink:       #1A1A1A;
    --pkc-gray:      #5C5C5C;
    --pkc-light:     #E8E2D5;
    --pkc-white:     #FFFFFF;
}

/* Full-width layout overrides — works for BuddyBoss + Twenty Twenty-One + most WP themes */
body[class*="pkc-"] .site-content,
body[class*="pkc-"] #content,
body[class*="pkc-"] #primary,
body[class*="pkc-"] .site-main,
body[class*="pkc-"] main.site-main,
body[class*="pkc-"] main#main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}
body[class*="pkc-"] .site-content:not(.maintenance-content),
body[class*="pkc-"] #content.site-content > .container {
    padding: 0 !important;
    max-width: none !important;
}
body[class*="pkc-"] article,
body[class*="pkc-"] .post,
body[class*="pkc-"] .page {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}
body[class*="pkc-"] .entry-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}
body[class*="pkc-"] .container,
body[class*="pkc-"] .bb-grid {
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}
body[class*="pkc-"] .bb-grid-cell,
body[class*="pkc-"] .bb-grid-cell:not(.no-gutter),
body[class*="pkc-"] .bb-grid > :not(.no-gutter) {
    max-width: none !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
body[class*="pkc-"] .bb-grid.site-content-grid {
    display: block !important;
}
body[class*="pkc-"] .bb-share-container,
body[class*="pkc-"] .post-meta-wrapper-main,
body[class*="pkc-"] .entry-header,
body[class*="pkc-"] .bb-page-header,
body[class*="pkc-"] .page-title,
body[class*="pkc-"] .post-related-posts {
    display: none !important;
}

/* Hide Twenty Twenty-One default header & footer (we use custom PKC ones) */
body[class*="pkc-"] #masthead,
body[class*="pkc-"] .site-header,
body[class*="pkc-"] #site-navigation,
body[class*="pkc-"] .primary-navigation,
body[class*="pkc-"] .menu-button-container,
body[class*="pkc-"] .site-branding,
body[class*="pkc-"] #colophon,
body[class*="pkc-"] .site-footer,
body[class*="pkc-"] .widget-area,
body[class*="pkc-"] #secondary,
body[class*="pkc-"] .site-info,
body.pkc-global-header #masthead,
body.pkc-global-header .site-header,
body.pkc-global-header #site-navigation,
body.pkc-global-header .primary-navigation,
body.pkc-global-header .menu-button-container,
body.pkc-global-header .site-branding,
body.pkc-global-header #colophon,
body.pkc-global-header .site-footer,
body.pkc-global-header .widget-area,
body.pkc-global-header #secondary,
body.pkc-global-header .site-info,
/* Hide legacy custom header that's hardcoded into header.php */
body[class*="pkc-"] #header,
body[class*="pkc-"] #headerimg,
body[class*="pkc-"] #header + hr,
body[class*="pkc-"] #page > hr,
body.pkc-global-header #header,
body.pkc-global-header #headerimg,
body.pkc-global-header #header + hr,
body.pkc-global-header #page > hr {
    display: none !important;
}

/* Give non-PKC pages some top padding so their content isn't hidden under the fixed PKC nav */
body.pkc-global-header {
    padding-top: 90px !important;
}
body.pkc-global-header .pkc-nav {
    /* Make sure nav stays visible above the pushed-down content */
    z-index: 99999 !important;
}
/* Override any Elementor negative margins that might push content back up */
body.pkc-global-header .elementor-section.elementor-top-section:first-of-type {
    margin-top: 0 !important;
}

/* Twenty Twenty-One specific overrides */
body[class*="pkc-"].page .site {
    max-width: none !important;
    padding: 0 !important;
}
body[class*="pkc-"] .default-max-width,
body[class*="pkc-"] .wide-max-width,
body[class*="pkc-"] .wp-block-group__inner-container,
body[class*="pkc-"] .wp-site-blocks {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body[class*="pkc-"] .entry-content > * {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body[class*="pkc-"] .entry-header,
body[class*="pkc-"] .entry-footer,
body[class*="pkc-"] .post-thumbnail,
body[class*="pkc-"] .comments-area,
body[class*="pkc-"] #comments {
    display: none !important;
}
/* Hide Twenty Twenty-One's default page padding */
body[class*="pkc-"] #page {
    padding: 0 !important;
}
body[class*="pkc-"].singular .entry-content {
    padding: 0 !important;
}

html, body[class*="pkc-"] {
    overflow-x: hidden !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Base layout */
.pkc-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--pkc-ink);
    line-height: 1.7;
    font-size: 16px;
}
.pkc-page * { box-sizing: border-box; }
.pkc-page h1, .pkc-page h2, .pkc-page h3, .pkc-page h4 {
    line-height: 1.25;
    color: var(--pkc-ink);
    margin: 0 0 16px;
}
.pkc-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}
.pkc-section { padding: 90px 0; }

/* Image placeholder */
.pkc-img-placeholder {
    background: #fff3cd;
    border: 2px dashed #ff9800;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    font-family: monospace;
    color: #856404;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pkc-img-placeholder strong { display: block; font-size: 13px; margin-bottom: 8px; }
.pkc-img-placeholder span { font-size: 13px; line-height: 1.5; color: #555; }

/* Hero base */
.pkc-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}
.pkc-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(183, 32, 44, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(0, 52, 120, 0.15) 0%, transparent 50%);
}
.pkc-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.pkc-hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--pkc-orange);
    background: rgba(249, 101, 63, 0.12);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}
.pkc-hero h1 {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 24px;
    letter-spacing: -1px;
}
.pkc-hero h1 .accent { color: var(--pkc-orange); }
.pkc-hero p {
    font-size: 19px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 36px;
    max-width: 580px;
    line-height: 1.7;
}
.pkc-hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.pkc-hero-image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

/* Buttons */
.pkc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}
.pkc-btn-primary { background: var(--pkc-orange); color: #fff; }
.pkc-btn-primary:hover { background: #e7582f; transform: translateY(-2px); color: #fff; }
.pkc-btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.pkc-btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.pkc-btn-outline { background: transparent; color: var(--pkc-ink); border-color: var(--pkc-ink); }
.pkc-btn-outline:hover { background: var(--pkc-ink); color: #fff; }
.pkc-btn-red { background: var(--pkc-red); color: #fff; }
.pkc-btn-red:hover { background: #8e1822; color: #fff; transform: translateY(-2px); }

/* Section styling */
.pkc-section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--pkc-red);
    margin-bottom: 16px;
}
.pkc-section-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--pkc-ink);
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}
.pkc-section-sub {
    font-size: 18px;
    color: var(--pkc-gray);
    max-width: 720px;
    margin: 0 0 50px;
    line-height: 1.7;
}
.pkc-section-header { text-align: center; margin-bottom: 60px; }
.pkc-section-header .pkc-section-sub { margin-left: auto; margin-right: auto; }

/* Trust bar */
.pkc-trust-bar { background: var(--pkc-warm); padding: 40px 0; border-bottom: 1px solid var(--pkc-light); }
.pkc-trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; text-align: center; }
.pkc-trust-item { border-right: 1px solid var(--pkc-light); padding: 0 16px; }
.pkc-trust-item:last-child { border-right: none; }
.pkc-trust-num { font-size: 36px; font-weight: 900; color: var(--pkc-red); margin: 0; line-height: 1; }
.pkc-trust-label { font-size: 13px; color: var(--pkc-gray); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-top: 8px; }

/* Final CTA */
.pkc-final-cta {
    background: linear-gradient(135deg, var(--pkc-red) 0%, #8e1822 100%);
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.pkc-final-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.pkc-final-cta .pkc-section-eyebrow { color: var(--pkc-orange); }
.pkc-final-cta h2 { font-size: 48px; font-weight: 900; color: #fff; margin: 0 0 16px; position: relative; z-index: 2; }
.pkc-final-cta p { font-size: 18px; color: rgba(255,255,255,0.9); margin: 0 0 36px; max-width: 600px; margin-left: auto; margin-right: auto; position: relative; z-index: 2; }
.pkc-final-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.pkc-final-cta .pkc-btn-primary { background: var(--pkc-orange); }
.pkc-final-cta .pkc-btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.4); }

/* Footer */
.pkc-footer { background: #1a1a1a; color: #999; padding: 60px 0 40px; }
.pkc-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.pkc-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 20px; }
.pkc-footer ul { list-style: none; padding: 0; margin: 0; }
.pkc-footer ul li { padding: 6px 0; }
.pkc-footer a { color: #999; text-decoration: none; font-size: 14px; }
.pkc-footer a:hover { color: var(--pkc-orange); }
.pkc-footer-brand p { font-size: 14px; line-height: 1.7; margin: 0 0 16px; color: #999; }
.pkc-footer-brand .ubitto-link { display: inline-block; background: var(--pkc-orange); color: #fff !important; padding: 10px 20px; border-radius: 8px; font-weight: 700; margin-top: 8px; }
.pkc-footer-bottom { border-top: 1px solid #2a2a2a; padding-top: 24px; text-align: center; font-size: 13px; color: #666; }

/* ==========================
   HEADER / NAV
   ========================== */
.pkc-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s;
    padding: 16px 0;
}
body[class*="pkc-"] .pkc-nav + * {
    margin-top: 0;
}
/* Hide the default WP admin bar push when logged in (pkc nav is fixed on top) */
body[class*="pkc-"].admin-bar .pkc-nav {
    top: 32px;
}
@media (max-width: 782px) {
    body[class*="pkc-"].admin-bar .pkc-nav { top: 46px; }
}

.pkc-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.pkc-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.pkc-logo-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--pkc-red) 0%, #8e1822 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: 0 4px 12px rgba(183, 32, 44, 0.25);
}
.pkc-logo-text { line-height: 1.2; }
.pkc-logo-text strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--pkc-ink);
    letter-spacing: -0.3px;
}
.pkc-logo-text span {
    display: block;
    font-size: 11px;
    color: var(--pkc-gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 1px;
}

/* Nav Menu */
.pkc-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pkc-nav-link {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pkc-ink);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}
.pkc-nav-link:hover {
    background: var(--pkc-cream);
    color: var(--pkc-red);
}
.pkc-nav-external {
    color: var(--pkc-orange);
    font-weight: 700;
}
.pkc-nav-external:hover {
    background: rgba(249, 101, 63, 0.1);
    color: var(--pkc-orange);
}

/* Dropdown */
.pkc-nav-dropdown { position: relative; }
.pkc-nav-dropdown .pkc-nav-submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--pkc-light);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s;
}
.pkc-nav-dropdown:hover .pkc-nav-submenu,
.pkc-nav-dropdown:focus-within .pkc-nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.pkc-nav-submenu a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}
.pkc-nav-submenu a:hover {
    background: var(--pkc-cream);
}
.pkc-nav-submenu strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--pkc-ink);
    margin-bottom: 2px;
}
.pkc-nav-submenu span {
    display: block;
    font-size: 12px;
    color: var(--pkc-gray);
}

/* CTA button */
.pkc-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--pkc-orange);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(249, 101, 63, 0.35);
    transition: all 0.2s;
    margin-left: 6px;
}
.pkc-nav-cta:hover {
    background: #e7582f;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 10px 24px rgba(249, 101, 63, 0.45);
}

/* Mobile hamburger */
.pkc-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}
.pkc-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--pkc-ink);
    border-radius: 2px;
    transition: all 0.2s;
}
.pkc-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pkc-nav-toggle.active span:nth-child(2) { opacity: 0; }
.pkc-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
    .pkc-logo-text span { display: none; }
    .pkc-nav-link { padding: 8px 12px; font-size: 13px; }
    .pkc-nav-cta { padding: 10px 18px; font-size: 13px; }
}
@media (max-width: 980px) {
    .pkc-nav-toggle { display: flex; }
    .pkc-nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 100px 24px 40px;
        overflow-y: auto;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        transition: right 0.3s;
    }
    .pkc-nav-menu.open { right: 0; }
    .pkc-nav-link {
        padding: 16px 12px;
        border-bottom: 1px solid var(--pkc-light);
        border-radius: 0;
        font-size: 15px;
    }
    .pkc-nav-link:hover { background: transparent; }
    .pkc-nav-dropdown .pkc-nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 16px 12px;
        min-width: 0;
        background: transparent;
    }
    .pkc-nav-submenu a { padding: 10px 12px; }
    .pkc-nav-cta {
        margin: 24px 0 0;
        justify-content: center;
        padding: 16px 22px;
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 900px) {
    .pkc-section { padding: 60px 0; }
    .pkc-hero { padding: 130px 0 60px; }
    .pkc-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .pkc-hero h1 { font-size: 38px; }
    .pkc-hero p { font-size: 17px; }
    .pkc-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .pkc-trust-item { border-right: none; border-bottom: 1px solid var(--pkc-light); padding-bottom: 16px; }
    .pkc-trust-item:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
    .pkc-section-title { font-size: 30px; }
    .pkc-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .pkc-final-cta h2 { font-size: 32px; }
    .pkc-final-cta p { font-size: 16px; }
}
