/*
Theme Name: SMK Vokasi Modern
Theme URI: https://smkn2karangbaru.sch.id/tema-vokasi
Author: Tim Pengembang SMK Negeri 2 Karang Baru
Author URI: https://smkn2karangbaru.sch.id
Description: Tema WordPress profesional, modern, responsif, dan berorientasi TEFA untuk SMK Negeri 2 Karang Baru Aceh Tamiang. Mendukung 10 Kompetensi Keahlian, Katalog & Pemesanan TEFA, Kartu Pelajar Digital QR Code, dan standar keamanan OWASP.
Version: 1.0.0
Tested up to: 7.0.7
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smk-vokasi-modern
Tags: education, vocational, custom-menu, featured-images, theme-options, translation-ready, accessibility-ready

(C) 2025-2026 SMK Negeri 2 Karang Baru. Seluruh hak cipta dilindungi.
*/

:root {
  --color-primary-navy: #0d2847;
  --color-primary-blue: #1565c0;
  --color-primary-dark: #0a1c30;
  --color-accent-gold: #f59e0b;
  --color-accent-amber: #d97706;
  --color-surface-bg: #f8fafc;
  --color-card-border: #e2e8f0;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset and Core WordPress Classes */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: #1e293b;
  background-color: var(--color-surface-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

.alignwide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  position: static !important;
  width: auto;
  height: auto;
  clip: auto !important;
  padding: 0.5rem 1rem;
  background: var(--color-primary-navy);
  color: #fff;
  z-index: 100000;
  border-radius: 6px;
  font-weight: 700;
}

/* ==========================================================================
   SMK VOKASI MODERN - CORE HEADER & NAVIGATION ARCHITECTURE (.smkv-*)
   ========================================================================== */

/* 1. TOP INFORMATION BAR (.smkv-topbar) */
.smkv-topbar {
  background-color: #0b2545;
  color: #e2e8f0;
  font-size: 0.75rem;
  line-height: 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.4);
  position: relative;
  z-index: 45;
}
.smkv-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.smkv-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.smkv-topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: rgba(30, 58, 138, 0.6);
  color: #fde047;
  font-weight: 700;
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
}

/* 2. MAIN HEADER (.smkv-header) */
.smkv-header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  width: 100%;
  transition: all 0.25s ease;
}

.smkv-main-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* 3. BRAND & LOGO AREA (.smkv-brand) */
.smkv-brand,
.site-branding {
  flex-shrink: 0;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.smkv-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}
.smkv-brand-logo {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}
.smkv-brand-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.smkv-brand-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0a2540;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.smkv-brand-subtitle {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1565c0;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.smkv-brand-region {
  font-size: 0.625rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
  padding-top: 0.125rem;
  white-space: nowrap;
}

/* 4. PRIMARY NAVIGATION (.smkv-primary-nav) */
.smkv-primary-nav,
#site-navigation {
  display: none;
}

@media (min-width: 1024px) {
  .smkv-primary-nav,
  #site-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
  }
}

.smkv-primary-menu,
#site-navigation > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
}

.smkv-menu-item,
#site-navigation > ul > li {
  position: relative;
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.smkv-nav-link,
#site-navigation > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  line-height: 1.25;
  white-space: nowrap;
  transition: all 0.15s ease;
  cursor: pointer;
}

.smkv-nav-link:hover,
#site-navigation > ul > li > a:hover {
  color: #1d4ed8;
  background-color: #eff6ff;
}

.smkv-nav-link.is-active,
#site-navigation > ul > li.current-menu-item > a {
  color: #1d4ed8;
  font-weight: 700;
  border-bottom: 2px solid #2563eb;
}

/* Caret indicator for dropdown menu items */
.smkv-menu-item-has-children > a::after,
#site-navigation .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.2s ease;
}

.smkv-menu-item-has-children:hover > a::after,
#site-navigation .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231d4ed8' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* 5. DROPDOWN SUBMENUS (.smkv-submenu & .sub-menu) */
.smkv-submenu,
.smk-dropdown-menu,
#site-navigation ul ul.sub-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #ffffff;
  border-radius: 0.875rem;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
  padding: 0.5rem;
  z-index: 100;
  margin-top: 0.25rem;
  list-style: none;
}

/* Invisible hover bridge */
.smkv-submenu::before,
.smk-dropdown-menu::before,
#site-navigation ul ul.sub-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

/* Show dropdown on hover, focus-within, or open */
.smkv-menu-item-has-children:hover > .smkv-submenu,
.smkv-menu-item-has-children:focus-within > .smkv-submenu,
.smkv-menu-item-has-children.is-open > .smkv-submenu,
.smkv-menu-item:hover > .smkv-submenu,
.smkv-menu-item:focus-within > .smkv-submenu,
.smkv-menu-item.is-open > .smkv-submenu,
#site-navigation ul li:hover > ul.sub-menu,
#site-navigation ul li:focus-within > ul.sub-menu,
#site-navigation ul li.is-open > ul.sub-menu,
.group:hover > .smk-dropdown-menu,
.smk-has-dropdown:hover > .smk-dropdown-menu,
.smk-has-dropdown.is-open > .smk-dropdown-menu {
  display: block !important;
  animation: smkvDropdownFade 0.18s ease-out;
}

/* Dropdown items */
.smkv-submenu li,
#site-navigation ul ul.sub-menu li,
.smk-dropdown-menu .smk-dropdown-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.smkv-dropdown-item,
.smkv-submenu li a,
#site-navigation ul ul.sub-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.4;
  cursor: pointer;
  background: transparent;
  border: none;
}

.smkv-dropdown-item:hover,
.smkv-submenu li a:hover,
#site-navigation ul ul.sub-menu li a:hover {
  background-color: #eff6ff;
  color: #1d4ed8;
  padding-left: 0.875rem;
}

@keyframes smkvDropdownFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 6. HEADER ACTIONS (.smkv-header-actions) */
.smkv-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.smkv-search-toggle {
  padding: 0.5rem;
  border-radius: 9999px;
  color: #475569;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.smkv-search-toggle:hover {
  color: #1d4ed8;
  background-color: #eff6ff;
}

.smkv-ppdb-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: #f59e0b;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.smkv-ppdb-button:hover {
  background-color: #fbbf24;
  transform: translateY(-1px);
}

.smkv-mobile-toggle {
  padding: 0.5rem;
  color: #334155;
  border-radius: 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.smkv-mobile-toggle:hover {
  color: #1d4ed8;
  background-color: #f1f5f9;
}

@media (min-width: 1024px) {
  .smkv-mobile-toggle {
    display: none !important;
  }
}

/* 7. RESPONSIVE MOBILE DRAWER (.smkv-mobile-menu) */
.smkv-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(11, 23, 48, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.2s ease;
}
.smkv-mobile-menu.hidden {
  display: none !important;
}

@media (min-width: 1024px) {
  .smkv-mobile-menu {
    display: none !important;
  }
}

.smkv-mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  background-color: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  animation: smkvDrawerSlide 0.22s ease-out;
}

@keyframes smkvDrawerSlide {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}