/*
Theme Name: SMK Modern School Theme
Theme URI: https://github.com/smk-modern/smk-modern-theme
Author: SMK Modern School Engineering
Author URI: https://kemdikbud.go.id
Description: WordPress Theme profesional, modern, dinamis, responsif, elegan, dan aman khusus untuk Sekolah Menengah Kejuruan (SMK) di Indonesia. Kompatibel penuh dengan WordPress 7.0.7 dan PHP 7.4 - 8.3+. Dilengkapi sistem navigasi drop-down bertingkat, pembagian portal subdomain (PPDB, TEFA, Dapodik, e-Rapor, BKK, LMS), 14 Custom Post Types, Theme Settings lengkap, Galeri Masonry, Profil Civitas, Hall of Fame Prestasi, Gutenberg blocks, dan WooCommerce Ready.
Version: 1.2.0
Requires at least: 5.9
Tested up to: 7.0.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smk-modern
Tags: education, school, grid-layout, custom-menu, featured-images, theme-options, translation-ready, block-styles, wide-blocks, full-width-template
*/

/* Core Theme CSS Variables and Baseline */
:root {
  --smk-primary: #1e3a8a; /* Deep Navy Blue */
  --smk-primary-dark: #0f2356;
  --smk-primary-light: #2563eb;
  --smk-secondary: #fbbf24; /* Golden Amber */
  --smk-secondary-dark: #d97706;
  --smk-accent: #2563eb;
  --smk-bg: #f8fafc;
  --smk-surface: #ffffff;
  --smk-surface-alt: #f1f5f9;
  --smk-text: #1e293b;
  --smk-text-muted: #64748b;
  --smk-border: #e2e8f0;
  --smk-header-bg: rgba(30, 58, 138, 0.94);
  --smk-footer-bg: #0f172a;
  --smk-footer-text: #94a3b8;
  --smk-radius-sm: 8px;
  --smk-radius-md: 16px;
  --smk-radius-lg: 24px;
  --smk-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --smk-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --smk-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --smk-font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
  --smk-font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --smk-bg: #090d16;
  --smk-surface: #0f172a;
  --smk-surface-alt: #1e293b;
  --smk-text: #f8fafc;
  --smk-text-muted: #94a3b8;
  --smk-border: #334155;
  --smk-header-bg: rgba(15, 23, 42, 0.95);
  --smk-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --smk-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --smk-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
}

/* Base Reset & Typography */
html {
  scroll-behavior: smooth;
  font-family: var(--smk-font-sans);
  background-color: var(--smk-bg);
  color: var(--smk-text);
  line-height: 1.6;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#smk-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

/* Glass Navbar */
.glass-nav {
  background: var(--smk-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-overlay {
  background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(30, 58, 138, 0.88));
}

.smk-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Strict media constraints: prevent oversized uploaded logos/images from breaking layout */
img {
  max-width: 100%;
  height: auto;
}

.smk-header-brand img,
.custom-logo,
.custom-logo-link img,
.site-logo img,
#masthead .smk-header-brand img {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.smk-mobile-drawer img {
  height: 36px !important;
  max-height: 36px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
}

footer img,
.smk-footer-brand img {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
  display: inline-block !important;
}

.brand-pill img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
}

.smk-preview-img {
  max-height: 48px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
}
