/*
Theme Name: NPK School Theme
Theme URI: https://npk.ac.th/
Author: NPK Web Team
Author URI: https://npk.ac.th/
Description: ธีมเว็บไซต์โรงเรียนนาโพธิ์พิทยาคม (NPK School Theme) - ธีม WordPress สำหรับโรงเรียนไทย ออกแบบอย่างสง่างามด้วยคู่สีน้ำเงินสดนีออนและสีทองพรีเมียม ครบครันด้วยระบบข่าวสาร, โครงการ Anywhere Anytime, อัลบั้มภาพกิจกรรม, ทำเนียบบุคลากร, ปฏิทินกิจกรรม, ศูนย์ดาวน์โหลดเอกสาร, ทำเนียบเกียรติยศ, สถิติผู้เข้าชมเว็บไซต์ และระบบความปลอดภัย NPK Security Shield
Version: 1.2.0
Requires at least: 5.8
Tested up to: 6.5
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: npk-school-theme
Tags: school, education, thai, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   NPK SCHOOL THEME - COMPLETE MODERN DESIGN SYSTEM (MATCHING PREVIEW)
   ========================================================================== */
/* ====== CSS VARIABLES ====== */
        :root {
            --primary-color: #0066FF;
            --primary-dark: #0052CC;
            --primary-light: #3385ff;
            --secondary-color: #d4af37;
            --secondary-dark: #996515;
            --secondary-light: #fcf6ba;
            --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
            --gold-gradient-shine: linear-gradient(135deg, #b8860b 0%, #ffd700 25%, #fff5c0 50%, #d4af37 75%, #8b6508 100%);
            --gold-gradient-horizontal: linear-gradient(90deg, #996515 0%, #d4af37 25%, #fbe897 50%, #d4af37 75%, #996515 100%);
            --gold-gradient-soft: linear-gradient(135deg, #d4af37 0%, #fdf4c7 50%, #b38728 100%);
            --accent-hover: #eaf2ff;
            --dark-bg: #0d2149;
            --dark-text: #1f2937;
            --body-text: #4b5563;
            --light-bg: #f8fafc;
            --card-bg: #ffffff;
            --border-color: #e5e7eb;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
            --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
            --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
            --shadow-hover: 0 14px 30px rgba(0,102,255,0.20);
            --font-primary: 'Prompt','Sarabun',sans-serif;
            --font-heading: 'Prompt','Roboto Slab',sans-serif;
            --radius-sm: 6px;
            --radius-md: 12px;
            --radius-lg: 20px;
            --radius-full: 9999px;
            --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
        }

        /* ====== RESET ====== */
        *, *::before, *::after { box-sizing: border-box; }
        body {
            margin: 0; padding: 0;
            font-family: var(--font-primary);
            color: var(--body-text);
            background: var(--light-bg);
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
        }
        a { text-decoration: none; color: inherit; transition: var(--transition); }
        img { max-width: 100%; height: auto; }
        h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--dark-text); margin: 0 0 0.5em; line-height: 1.3; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
        .section-title { text-align: center; margin-bottom: 40px; }
        .section-title h2 { font-size: 28px; font-weight: 600; position: relative; display: inline-flex; align-items: center; gap: 10px; }
        .section-title h2::after { content: ''; display: block; width: 70px; height: 4px; background: var(--gold-gradient); border-radius: var(--radius-full); margin: 10px auto 0; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4); }
        .section-title p { color: var(--body-text); margin-top: 15px; }

        /* ====== TOPBAR ====== */
        .topbar {
            background: var(--gold-gradient-horizontal);
            color: #0c1225;
            font-size: 13px;
            padding: 9px 0;
            font-weight: 500;
            box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
        }
        .topbar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }
        .topbar-left { display: flex; align-items: center; gap: 8px; }
        .topbar-left i { color: #0066FF; }
        .topbar-right { display: flex; gap: 20px; align-items: center; }
        .topbar-right a { color: #0c1225; font-size: 13px; display: flex; align-items: center; gap: 5px; font-weight: 500; }
        .topbar-right a:hover { color: #0066FF; }
        .topbar-social { display: flex; gap: 8px; }
        .topbar-social a {
            width: 28px; height: 28px;
            background: rgba(12, 18, 37, 0.12);
            color: #0c1225;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 13px;
        }
        .topbar-social a:hover { background: #0066FF; color: #fff; }

        /* ====== HEADER / BRAND ====== */
        .site-brand {
            background: #fff;
            padding: 15px 0;
            text-align: center;
            border-bottom: 1px solid var(--border-color);
        }
        .site-brand .container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }
        .school-logo-wrap {
            display: flex; align-items: center; gap: 18px;
        }
        .school-logo {
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .school-logo img,
        .school-logo .custom-logo,
        .school-logo a img {
            height: 115px;
            width: auto;
            max-width: 140px;
            object-fit: contain;
            filter: drop-shadow(0 6px 14px rgba(0, 102, 255, 0.25));
            transition: transform 0.3s ease;
            display: block;
        }
        .school-logo img:hover,
        .school-logo .custom-logo:hover,
        .school-logo a img:hover {
            transform: scale(1.04);
        }
        .school-name h1,
        .school-name .site-title,
        .school-name .site-title a,
        .school-name h1 a {
            font-size: 26px;
            color: var(--dark-text);
            margin: 0;
            font-weight: 700;
            line-height: 1.25;
            text-decoration: none;
            font-family: "Prompt", "Sarabun", sans-serif;
            display: inline-block;
            transition: color 0.2s ease;
        }
        .school-name h1 a,
        .school-name .site-title a {
            color: inherit;
            text-decoration: none;
        }
        .school-name h1 a:hover,
        .school-name .site-title a:hover {
            color: var(--primary-color);
        }
        .school-name .site-subtitle,
        .school-name p:not(.site-title) {
            margin: 4px 0 0;
            font-size: 14px;
            color: var(--body-text);
            font-family: "Sarabun", sans-serif;
            font-weight: 400;
        }

        /* ====== MAIN NAVIGATION ====== */
        .main-nav {
            background: #fff;
            box-shadow: var(--shadow-sm);
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 3px solid #d4af37;
            border-image: var(--gold-gradient-horizontal) 1;
        }
        .main-nav .container {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .nav-menu {
            list-style: none;
            margin: 0; padding: 0;
            display: flex;
        }
        .nav-menu > li { position: relative; }
        .nav-menu > li > a {
            display: flex; align-items: center; gap: 6px;
            padding: 14px 16px;
            font-size: 14px;
            font-weight: 500;
            color: var(--dark-text);
            transition: var(--transition);
            border-bottom: 3px solid transparent;
            margin-bottom: -3px;
        }
        .nav-menu > li > a i { color: var(--primary-color); font-size: 15px; }
        .nav-menu > li > a:hover,
        .nav-menu > li.active > a {
            color: var(--primary-color);
            background: var(--accent-hover);
            border-bottom-color: var(--primary-color);
        }
        /* Dropdown */
        .nav-menu .sub-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: #fff;
            min-width: 260px;
            box-shadow: var(--shadow-lg);
            border-radius: 0 0 var(--radius-md) var(--radius-md);
            border-top: 3px solid var(--primary-color);
            list-style: none;
            padding: 8px 0;
            margin: 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: var(--transition);
            z-index: 100;
        }
        .nav-menu > li:hover .sub-menu {
            opacity: 1; visibility: visible; transform: translateY(0);
        }
        .sub-menu a {
            display: block;
            padding: 8px 20px;
            font-size: 13px;
            color: var(--body-text);
            border-left: 3px solid transparent;
        }
        .sub-menu a:hover {
            background: var(--accent-hover);
            color: var(--primary-dark);
            border-left-color: var(--primary-color);
        }
        .nav-search-btn {
            padding: 14px 16px;
            cursor: pointer;
            color: var(--body-text);
            font-size: 16px;
        }
        .nav-search-btn:hover { color: var(--primary-color); }

        /* ====== HERO SLIDER (FULL-WIDTH WIDE & RESPONSIVE) ====== */
        .hero-slider {
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #092c6b 0%, #0052cc 50%, #0066ff 100%);
            height: 520px;
            width: 100%;
        }
        .hero-slide {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            transition: opacity 0.8s ease-in-out;
            opacity: 0;
        }
        .hero-slide.active { opacity: 1; }
        .hero-slide-bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            filter: brightness(0.62);
        }
        .hero-slide-content {
            position: relative;
            z-index: 2;
            width: 100%;
        }
        .hero-slide-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 40px;
        }
        .hero-slide-content h2 {
            font-size: 38px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 15px;
            line-height: 1.35;
            max-width: 680px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.45);
        }
        .hero-slide-content p {
            font-size: 16.5px;
            color: #fff;
            opacity: 0.95;
            margin-bottom: 24px;
            line-height: 1.6;
            max-width: 620px;
            text-shadow: 0 1px 5px rgba(0,0,0,0.35);
        }
        .hero-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 28px;
            background: var(--gold-gradient-shine);
            color: #0c1225;
            border-radius: var(--radius-full);
            font-weight: 600;
            font-size: 15px;
            box-shadow: 0 4px 18px rgba(212,175,55,0.45);
            transition: var(--transition);
        }
        .hero-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 24px rgba(212,175,55,0.65);
            color: #000;
        }
        .hero-dots {
            position: absolute;
            bottom: 25px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }
        .hero-dot {
            width: 12px; height: 12px;
            border-radius: 50%;
            background: rgba(255,255,255,0.4);
            cursor: pointer;
            transition: var(--transition);
        }
        .hero-dot.active { background: var(--gold-gradient); transform: scale(1.3); }
        .hero-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.18);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            color: #fff;
            border: none;
            width: 50px; height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            display: flex; align-items: center; justify-content: center;
            z-index: 10;
            transition: var(--transition);
        }
        .hero-nav:hover { background: var(--gold-gradient); color: #0c1225; }
        .hero-nav.prev { left: 24px; }
        .hero-nav.next { right: 24px; }
        .hero-wave {
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            z-index: 5;
        }

        /* ====== QUICK LINKS ====== */
        .quick-links {
            padding: 50px 0;
            background: #fff;
        }
        .quick-links-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }
        .quick-link-card {
            padding: 30px 20px;
            border-radius: var(--radius-md);
            text-align: center;
            color: #fff;
            transition: var(--transition);
            cursor: pointer;
        }
        .quick-link-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
        .quick-link-card.orange { background: linear-gradient(135deg, #0066FF, #0052CC); }
        .quick-link-card.green {
            background: var(--gold-gradient-shine);
            color: #0c1225;
            box-shadow: 0 4px 15px rgba(212,175,55,0.3);
        }
        .quick-link-card.green h3 { color: #0c1225; font-weight: 600; }
        .quick-link-card.green p { color: rgba(12, 18, 37, 0.85); }
        .quick-link-card.green i { color: #0c1225; }
        .quick-link-card.blue { background: linear-gradient(135deg, #004bb8, #3385ff); }
        .quick-link-card.purple { background: linear-gradient(135deg, #0052CC, #0066FF); }
        .quick-link-card i { font-size: 36px; margin-bottom: 12px; display: block; }
        .quick-link-card h3 { font-size: 16px; color: #fff; margin: 0 0 5px; font-weight: 500; }
        .quick-link-card p { font-size: 13px; opacity: 0.85; margin: 0; }

        /* ====== NEWS SECTION ====== */
        .news-section {
            padding: 60px 0;
            background: var(--light-bg);
        }
        .news-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }
        .news-card {
            background: #fff;
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            border-bottom: 3px solid transparent;
        }
        .news-card:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-5px);
            border-bottom-color: #d4af37;
        }
        .news-card-thumb {
            position: relative;
            padding-top: 60%;
            background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
            overflow: hidden;
        }
        .news-card-thumb img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .news-card-thumb .cat-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: var(--gold-gradient);
            color: #0c1225;
            font-size: 11px;
            padding: 4px 12px;
            border-radius: var(--radius-full);
            font-weight: 600;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        }
        .news-card-date {
            position: absolute;
            bottom: 12px;
            right: 12px;
            background: #fff;
            border-radius: var(--radius-sm);
            text-align: center;
            padding: 6px 10px;
            box-shadow: var(--shadow-sm);
            min-width: 55px;
            border: 1px solid rgba(212, 175, 55, 0.3);
        }
        .news-card-date .day {
            font-size: 22px;
            font-weight: 700;
            background: var(--gold-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1;
        }
        .news-card-date .month { font-size: 11px; color: var(--body-text); }
        .news-card-body { padding: 20px; }
        .news-card-body h3 {
            font-size: 16px; font-weight: 600;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
            margin-bottom: 8px;
        }
        .news-card-body h3 a:hover { color: #0066FF; }
        .news-card-body p {
            font-size: 13px; color: var(--body-text);
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
            margin: 0 0 12px;
        }
        .read-more {
            font-size: 13px;
            color: #0066FF;
            font-weight: 600;
            display: inline-flex; align-items: center; gap: 5px;
        }
        .read-more i {
            background: var(--gold-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .read-more:hover { gap: 8px; }
        .btn-primary {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 12px 28px;
            background: var(--primary-color);
            color: #fff;
            border-radius: var(--radius-full);
            font-weight: 500;
            transition: var(--transition);
        }
        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 18px rgba(0, 102, 255, 0.35);
        }
        .text-center { text-align: center; }
        .mt-30 { margin-top: 30px; }

        /* ====== ANYWHERE ANYTIME PROJECT ====== */
        .anywhere-section {
            padding: 70px 0;
            background: linear-gradient(135deg, #092c6b 0%, #0066FF 55%, #004bb8 100%);
            color: #fff;
            position: relative;
            overflow: hidden;
        }
        .anywhere-section::before {
            content: '';
            position: absolute;
            top: -50px; right: -50px;
            width: 320px; height: 320px;
            background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }
        .anywhere-grid {
            display: grid;
            grid-template-columns: 1fr 420px;
            gap: 45px;
            align-items: center;
        }
        .anywhere-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(212, 175, 55, 0.15);
            border: 1px solid rgba(212, 175, 55, 0.4);
            color: #fcf6ba;
            padding: 6px 14px;
            border-radius: var(--radius-full);
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 16px;
        }
        .anywhere-content h2 {
            font-size: 30px;
            color: #fff;
            margin: 0 0 10px;
            font-weight: 700;
            line-height: 1.3;
        }
        .anywhere-content h2 span {
            background: var(--gold-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .anywhere-content .lead-desc {
            font-size: 15px;
            color: rgba(255, 255, 255, 0.9);
            line-height: 1.7;
            margin-bottom: 25px;
        }
        .anywhere-features {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 28px;
        }
        .anywhere-feat-card {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: var(--radius-md);
            padding: 16px;
            backdrop-filter: blur(6px);
            transition: var(--transition);
        }
        .anywhere-feat-card:hover {
            background: rgba(255, 255, 255, 0.14);
            transform: translateY(-3px);
            border-color: rgba(212, 175, 55, 0.5);
        }
        .anywhere-feat-card .icon {
            font-size: 24px;
            background: var(--gold-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 8px;
        }
        .anywhere-feat-card h4 {
            font-size: 15px;
            color: #fff;
            margin: 0 0 4px;
            font-weight: 600;
        }
        .anywhere-feat-card p {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.75);
            margin: 0;
            line-height: 1.5;
        }
        .anywhere-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }
        .btn-gold {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            background: var(--gold-gradient);
            color: #0c1225;
            font-weight: 600;
            border-radius: var(--radius-full);
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
        }
        .btn-gold:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
            color: #000;
        }
        .btn-outline-light {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 22px;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.3);
            font-weight: 500;
            border-radius: var(--radius-full);
            transition: var(--transition);
        }
        .btn-outline-light:hover {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            border-color: #fff;
        }
        .anywhere-visual {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(212, 175, 55, 0.3);
            border-radius: var(--radius-lg);
            padding: 24px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
            position: relative;
        }
        .visual-device-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 15px;
        }
        .visual-dots { display: flex; gap: 6px; }
        .visual-dots span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
        .visual-dots span:nth-child(1) { background: #ef4444; }
        .visual-dots span:nth-child(2) { background: #f59e0b; }
        .visual-dots span:nth-child(3) { background: #10b981; }
        .visual-status {
            font-size: 11px;
            color: #34d399;
            background: rgba(16, 185, 129, 0.15);
            padding: 3px 10px;
            border-radius: var(--radius-full);
            border: 1px solid rgba(52, 211, 153, 0.3);
            display: flex; align-items: center; gap: 5px;
        }
        .visual-status::before {
            content: '';
            width: 6px; height: 6px;
            background: #10b981;
            border-radius: 50%;
            display: inline-block;
        }
        .visual-portal-card {
            background: rgba(12, 18, 37, 0.75);
            border-radius: var(--radius-md);
            padding: 14px 16px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 14px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: var(--transition);
            color: #fff;
        }
        .visual-portal-card:hover {
            border-color: rgba(212, 175, 55, 0.5);
            transform: translateX(4px);
            background: rgba(12, 18, 37, 0.9);
        }
        .visual-portal-card .icon-box {
            width: 44px; height: 44px;
            border-radius: var(--radius-sm);
            background: var(--gold-gradient-shine);
            color: #0c1225;
            display: flex; align-items: center; justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }
        .visual-portal-card h5 {
            color: #fff;
            margin: 0 0 2px;
            font-size: 14px;
            font-weight: 600;
        }
        .visual-portal-card p {
            color: rgba(255, 255, 255, 0.65);
            margin: 0;
            font-size: 12px;
        }
        .visual-portal-card .arrow {
            margin-left: auto;
            color: rgba(255, 255, 255, 0.4);
            font-size: 13px;
        }

        /* ====== COURSES ====== */
        .courses-section {
            padding: 60px 0;
            background: var(--light-bg);
        }
        .courses-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
        }
        .course-card {
            background: #fff;
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            text-align: center;
        }
        .course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
        .course-card-icon {
            padding: 30px 20px;
            color: #fff;
            font-size: 40px;
        }
        .course-card-icon.c1 { background: linear-gradient(135deg, #0066FF, #0052CC); }
        .course-card-icon.c2 { background: var(--gold-gradient-shine); color: #0c1225; }
        .course-card-icon.c3 { background: linear-gradient(135deg, #004bb8, #3385ff); }
        .course-card-icon.c4 { background: var(--gold-gradient); color: #0c1225; }
        .course-card-body { padding: 20px; }
        .course-card-body h3 { font-size: 16px; margin-bottom: 5px; }
        .course-card-body p { font-size: 13px; color: var(--body-text); margin: 0; }

        /* ====== STATS BANNER ====== */
        .stats-banner {
            background: linear-gradient(135deg, #0c1225, #0066FF);
            padding: 50px 0;
            color: #fff;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            text-align: center;
            justify-content: center;
        }
        .stat-item {
            padding: 15px;
            border-radius: 12px;
            transition: transform 0.3s ease, background 0.3s ease;
        }
        .stat-item:hover {
            transform: translateY(-4px);
            background: rgba(255, 255, 255, 0.05);
        }
        .stat-item i {
            font-size: 38px;
            background: var(--gold-gradient-shine);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
            display: block;
        }
        .stat-item .stat-number {
            font-size: 42px;
            font-weight: 700;
            background: var(--gold-gradient-shine);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .stat-item .stat-label { font-size: 14px; opacity: 0.9; margin-top: 5px; }

        /* ====== GALLERY ====== */
        .gallery-section {
            padding: 60px 0;
            background: #fff;
        }
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }
        .gallery-card {
            position: relative;
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            cursor: pointer;
        }
        .gallery-card-img {
            padding-top: 75%;
            background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
            position: relative;
        }
        .gallery-card-img .placeholder-icon {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            font-size: 40px; color: #94a3b8;
        }
        .gallery-card-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
            display: flex;
            align-items: flex-end;
            padding: 20px;
            opacity: 0;
            transition: var(--transition);
        }
        .gallery-card:hover .gallery-card-overlay { opacity: 1; }
        .gallery-card-overlay h3 { color: #fff; font-size: 14px; margin: 0; }
        .gallery-card-overlay span { color: rgba(255,255,255,0.7); font-size: 12px; }

        /* ====== FOOTER ====== */
        .site-footer {
            background: linear-gradient(180deg, #0e2b5c 0%, #081a38 100%);
            color: #cbd5e1;
            padding: 0;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.25);
        }
        .footer-top-accent {
            height: 4px;
            background: linear-gradient(90deg, #d4af37 0%, #fbe897 25%, var(--primary-color) 50%, var(--primary-light) 75%, #d4af37 100%);
            box-shadow: 0 0 14px rgba(0, 102, 255, 0.5);
        }
        .footer-main-area {
            padding: 55px 0 35px;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
            padding-bottom: 35px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .footer-col h4 {
            color: #ffffff;
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 20px;
            padding-bottom: 10px;
            position: relative;
            display: inline-block;
        }
        .footer-col h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 45px;
            height: 3px;
            background: var(--gold-gradient-shine);
            border-radius: var(--radius-full);
            box-shadow: 0 2px 6px rgba(212, 175, 55, 0.4);
        }
        .footer-col p { font-size: 14px; line-height: 1.8; color: #cbd5e1; }
        .footer-col ul { list-style: none; padding: 0; margin: 0; }
        .footer-col ul li { padding: 5px 0; font-size: 14px; color: #cbd5e1; display: flex; align-items: flex-start; gap: 8px; }
        .footer-col ul li a { color: #cbd5e1; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
        .footer-col ul li a:hover { color: #ffffff; transform: translateX(5px); }
        .footer-col ul li a i, .footer-col ul li > i {
            color: var(--secondary-color);
            margin-top: 3px;
            font-size: 14px;
            flex-shrink: 0;
        }
        .footer-logo {
            margin-bottom: 15px;
            display: inline-block;
        }
        .footer-logo img {
            height: 75px;
            width: auto;
            object-fit: contain;
            filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
        }
        .footer-social { display: flex; gap: 10px; margin-top: 18px; }
        .footer-social a {
            width: 38px; height: 38px;
            background: rgba(37, 117, 252, 0.18);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            color: #ffffff;
            transition: var(--transition);
        }
        .footer-social a:hover {
            background: var(--gold-gradient-shine);
            color: #0c1225;
            transform: translateY(-3px);
            border-color: transparent;
            box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
        }
        .footer-map-box {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, rgba(19, 52, 105, 0.6) 0%, rgba(10, 28, 59, 0.7) 100%);
            border-radius: var(--radius-sm);
            border: 1px solid rgba(37, 117, 252, 0.3);
            margin-top: 15px;
            display: flex;
            align-items: center;
            gap: 14px;
            transition: var(--transition);
            text-decoration: none;
            color: #ffffff;
        }
        .footer-map-box:hover {
            border-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
        }
        .footer-map-box .map-icon {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            background: rgba(0, 102, 255, 0.25);
            border: 1px solid rgba(0, 102, 255, 0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #4d94ff;
            font-size: 20px;
            flex-shrink: 0;
        }
        .footer-map-box .map-info h5 {
            margin: 0 0 2px 0;
            font-size: 13.5px;
            color: #ffffff;
        }
        .footer-map-box .map-info p {
            margin: 0;
            font-size: 11.5px;
            color: #94a3b8;
        }

        /* ====== VISITOR COUNTER ====== */
        .footer-counter-section {
            background: rgba(8, 22, 48, 0.6);
            border-top: 1px solid rgba(37, 117, 252, 0.2);
            border-bottom: 1px solid rgba(37, 117, 252, 0.2);
            padding: 24px 0;
            margin-top: 0;
        }
        .npk-visitor-counter-wrap {
            background: linear-gradient(135deg, rgba(19, 52, 105, 0.55) 0%, rgba(10, 28, 59, 0.7) 100%);
            border: 1.5px solid rgba(212, 175, 55, 0.35);
            border-radius: var(--radius-md);
            padding: 20px 24px;
            backdrop-filter: blur(8px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        }
        .counter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            margin-bottom: 18px;
            flex-wrap: wrap;
            gap: 12px;
        }
        .counter-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 16px;
            font-weight: 700;
            color: #fff;
        }
        .counter-title i {
            background: var(--gold-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 20px;
        }
        .counter-online-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(16, 185, 129, 0.15);
            border: 1px solid rgba(52, 211, 153, 0.3);
            color: #34d399;
            font-size: 13px;
            padding: 4px 14px;
            border-radius: var(--radius-full);
        }
        .counter-online-pill .live-dot {
            width: 8px; height: 8px;
            background: #10b981;
            border-radius: 50%;
            box-shadow: 0 0 8px #10b981;
            animation: pulseLive 2s infinite;
        }
        @keyframes pulseLive {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.4; transform: scale(0.85); }
        }
        .counter-body {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 25px;
            flex-wrap: wrap;
        }
        .counter-mini-grid {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            flex: 1;
        }
        .counter-mini-item {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(9, 25, 53, 0.85);
            border: 1px solid rgba(0, 102, 255, 0.35);
            padding: 10px 18px;
            border-radius: var(--radius-sm);
            min-width: 140px;
        }
        .counter-mini-item .item-icon {
            font-size: 20px;
            color: #4d94ff;
        }
        .counter-mini-item .item-info {
            display: flex;
            flex-direction: column;
        }
        .counter-mini-item .item-label {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.65);
        }
        .counter-mini-item .item-num {
            font-size: 17px;
            font-weight: 700;
            color: #fff;
        }
        .counter-mini-item .item-num.gold {
            background: var(--gold-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .counter-odometer-box {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 6px;
        }
        .odometer-label {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.75);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .odometer-label i { color: #d4af37; }
        .odometer-digits {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .odometer-digits .digit-box {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 36px;
            background: linear-gradient(180deg, #1f293d 0%, #0c1225 100%);
            border: 1px solid rgba(212, 175, 55, 0.4);
            color: #fbe897;
            font-family: 'Courier New', Courier, monospace;
            font-size: 20px;
            font-weight: 700;
            border-radius: 4px;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.3);
        }
        .odometer-digits .digit-unit {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.75);
            margin-left: 6px;
        }

        .footer-bar {
            background: #061124;
            padding: 18px 0;
            text-align: center;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.65);
            border-top: 1px solid rgba(37, 117, 252, 0.2);
        }
        .footer-bar a {
            background: var(--gold-gradient-shine);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 600;
        }

        /* ====== BACK TO TOP ====== */
        .back-to-top {
            position: fixed;
            bottom: 30px; right: 30px;
            width: 45px; height: 45px;
            background: var(--gold-gradient-shine);
            color: #0c1225;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 4px 18px rgba(212,175,55,0.45);
            cursor: pointer;
            z-index: 999;
            transition: var(--transition);
            font-size: 18px;
        }
        .back-to-top:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 24px rgba(212,175,55,0.65);
        }

        /* ====== MOBILE HAMBURGER ====== */
        .mobile-toggle {
            display: none;
            cursor: pointer;
            padding: 10px;
            font-size: 22px;
            color: var(--dark-text);
        }

        /* ====== ADMIN PREVIEW SECTION ====== */
        .admin-section {
            padding: 60px 0;
            background: #fff;
        }
        .admin-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }
        .admin-card {
            background: var(--light-bg);
            border-radius: var(--radius-md);
            overflow: hidden;
            border: 1px solid var(--border-color);
        }
        .admin-card-header {
            background: linear-gradient(135deg, var(--dark-bg), #1a1a2e);
            color: #fff;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 500;
        }
        .admin-card-header .dots {
            display: flex; gap: 5px; margin-right: 10px;
        }
        .admin-card-header .dots span {
            width: 10px; height: 10px;
            border-radius: 50%;
        }
        .admin-card-header .dots span:nth-child(1) { background: #ef4444; }
        .admin-card-header .dots span:nth-child(2) { background: #eab308; }
        .admin-card-header .dots span:nth-child(3) { background: #22c55e; }
        .admin-card-body { padding: 20px; }
        .admin-widget {
            background: #fff;
            border-radius: var(--radius-sm);
            margin-bottom: 15px;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
        }
        .admin-widget-title {
            background: var(--accent-hover);
            padding: 10px 15px;
            font-size: 13px;
            font-weight: 600;
            color: var(--dark-text);
            border-bottom: 1px solid var(--border-color);
            display: flex; align-items: center; gap: 8px;
        }
        .admin-widget-title i { color: var(--primary-color); }
        .admin-widget-body { padding: 15px; font-size: 13px; }
        .stat-mini-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
        .stat-mini {
            background: var(--light-bg);
            padding: 12px;
            border-radius: var(--radius-sm);
            text-align: center;
            border-left: 3px solid var(--primary-color);
        }
        .stat-mini .num { font-size: 24px; font-weight: 700; color: var(--primary-color); }
        .stat-mini .label { font-size: 12px; color: var(--body-text); }
        .admin-quick-link {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            background: var(--light-bg);
            border-radius: var(--radius-sm);
            margin-bottom: 8px;
            font-size: 13px;
            transition: var(--transition);
            cursor: pointer;
        }
        .admin-quick-link:hover { background: var(--accent-hover); }
        .admin-quick-link i { color: var(--primary-color); width: 20px; text-align: center; }
        .admin-news-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-color);
            font-size: 13px;
        }
        .admin-news-item:last-child { border: none; }
        .admin-badge {
            font-size: 10px;
            padding: 2px 8px;
            border-radius: var(--radius-full);
            font-weight: 500;
        }
        .admin-badge.pub { background: #dcfce7; color: #166534; }
        .admin-badge.draft { background: #fef3c7; color: #92400e; }
        .meta-box-preview { font-size: 13px; }
        .meta-field {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-color);
        }
        .meta-field:last-child { border: none; }
        .meta-field label {
            font-weight: 600;
            min-width: 120px;
            color: var(--dark-text);
            font-size: 12px;
        }
        .meta-field input[type="text"], .meta-field select {
            flex: 1;
            padding: 6px 10px;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-family: var(--font-primary);
        }
        .meta-field input:focus { border-color: var(--primary-color); outline: none; }
        .tab-nav {
            display: flex;
            border-bottom: 2px solid var(--border-color);
            margin-bottom: 15px;
        }
        .tab-nav span {
            padding: 8px 15px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            color: var(--body-text);
        }
        .tab-nav span.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }

        /* Login preview */
        .login-preview {
            background: linear-gradient(135deg, #f8f4f0, #fde8d0);
            padding: 30px 20px;
            text-align: center;
            border-radius: var(--radius-md);
        }
        .login-box {
            background: #fff;
            max-width: 280px;
            margin: 0 auto;
            padding: 25px;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-md);
        }
        .login-logo {
            margin: 0 auto 15px;
            display: flex; align-items: center; justify-content: center;
        }
        .login-logo img {
            height: 70px;
            width: auto;
            object-fit: contain;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
        }
        .login-box h3 { font-size: 14px; margin-bottom: 15px; color: var(--dark-text); }
        .login-field {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            font-size: 12px;
            margin-bottom: 10px;
            font-family: var(--font-primary);
        }
        .login-btn {
            width: 100%;
            padding: 10px;
            background: var(--primary-color);
            color: #fff;
            border: none;
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            font-family: var(--font-primary);
            transition: var(--transition);
        }
        .login-btn:hover { background: var(--primary-dark); }

        /* ====== EXTENSIONS: ITEMS 1, 2, 3 ====== */
        /* Accessibility in Topbar */
        .topbar-accessibility {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-left: 12px;
        }
        .font-resizer-control {
            display: inline-flex;
            align-items: center;
            background: rgba(12, 18, 37, 0.12);
            border-radius: var(--radius-full);
            padding: 2px 4px;
            gap: 2px;
        }
        .font-resizer-control .ctrl-label {
            font-size: 11px;
            color: #0c1225;
            padding: 0 4px;
        }
        .font-resizer-control .font-btn {
            background: transparent;
            border: none;
            color: #0c1225;
            font-family: var(--font-primary);
            font-weight: 600;
            font-size: 12px;
            padding: 2px 8px;
            border-radius: var(--radius-full);
            cursor: pointer;
            transition: var(--transition);
        }
        .font-resizer-control .font-btn:hover {
            background: rgba(37, 117, 252, 0.15);
            color: var(--primary-color);
        }
        .font-resizer-control .font-btn.active {
            background: var(--primary-color);
            color: #fff;
        }
        .grayscale-toggle-btn {
            background: rgba(12, 18, 37, 0.12);
            border: 1px solid rgba(12, 18, 37, 0.2);
            border-radius: var(--radius-full);
            color: #0c1225;
            padding: 3px 10px;
            font-size: 11.5px;
            font-weight: 600;
            font-family: var(--font-primary);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: var(--transition);
        }
        .grayscale-toggle-btn:hover, .grayscale-toggle-btn.is-grayscale {
            background: #1f2937;
            color: #fff;
            border-color: #1f2937;
        }
        html.grayscale-mode {
            filter: grayscale(100%) contrast(105%);
            -webkit-filter: grayscale(100%) contrast(105%);
        }

        /* Breaking News Ticker Bar */
        .breaking-news-ticker {
            background: #0f172a;
            color: #f8fafc;
            font-size: 13.5px;
            border-top: 1px solid rgba(212, 175, 55, 0.4);
            border-bottom: 2px solid var(--secondary-color);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
            position: relative;
            overflow: hidden;
            z-index: 90;
        }
        .ticker-container {
            display: flex;
            align-items: center;
            height: 42px;
        }
        .ticker-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--gold-gradient-shine);
            color: #0f172a;
            font-weight: 700;
            font-size: 12px;
            padding: 4px 14px;
            border-radius: var(--radius-full);
            box-shadow: 0 2px 6px rgba(184, 134, 11, 0.35);
            flex-shrink: 0;
            margin-right: 18px;
        }
        .ticker-pulse {
            width: 8px;
            height: 8px;
            background: #ef4444;
            border-radius: 50%;
            display: inline-block;
            box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
            animation: tickerPulse 1.6s infinite;
        }
        @keyframes tickerPulse {
            0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
            70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
            100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
        }
        .ticker-content-wrap {
            flex: 1;
            overflow: hidden;
            position: relative;
            white-space: nowrap;
        }
        .ticker-track {
            display: inline-flex;
            white-space: nowrap;
            animation: tickerMarquee 38s linear infinite;
        }
        .ticker-track:hover {
            animation-play-state: paused;
        }
        .ticker-text {
            padding-right: 60px;
            color: #f1f5f9;
            font-weight: 400;
        }
        @keyframes tickerMarquee {
            0% { transform: translateX(0%); }
            100% { transform: translateX(-50%); }
        }

        /* Calendar Section */
        .calendar-section {
            padding: 60px 0;
            background: #ffffff;
            border-bottom: 1px solid var(--border-color);
        }
        .calendar-header-flex {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }
        .calendar-header-flex .section-title {
            text-align: left;
            margin-bottom: 0;
        }
        .calendar-header-flex .section-title h2::after {
            left: 0;
            transform: none;
        }
        .btn-calendar-pdf {
            background: #ffffff;
            border: 1.5px solid var(--secondary-color);
            color: var(--primary-color);
            font-weight: 600;
            font-size: 13.5px;
            padding: 8px 18px;
            border-radius: var(--radius-full);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
            box-shadow: var(--shadow-sm);
        }
        .btn-calendar-pdf i { color: #dc2626; font-size: 15px; }
        .btn-calendar-pdf:hover {
            background: var(--primary-color);
            color: #ffffff;
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }
        .btn-calendar-pdf:hover i { color: #ffffff; }
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 22px;
        }
        .calendar-card {
            background: #f8fafc;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 20px;
            display: flex;
            gap: 18px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }
        .calendar-card::before {
            content: '';
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 4px;
            background: var(--primary-color);
            transition: var(--transition);
        }
        .calendar-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-md);
            background: #ffffff;
            border-color: rgba(212, 175, 55, 0.4);
        }
        .calendar-card:hover::before {
            background: var(--gold-gradient);
        }
        .calendar-date-box {
            width: 78px;
            height: 82px;
            background: linear-gradient(180deg, #0066FF 0%, #0052CC 100%);
            color: #ffffff;
            border-radius: var(--radius-sm);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border-top: 3px solid var(--secondary-color);
            box-shadow: 0 4px 10px rgba(0, 102, 255, 0.25);
        }
        .calendar-date-box .day { font-size: 26px; font-weight: 700; line-height: 1; }
        .calendar-date-box .month { font-size: 12.5px; font-weight: 500; color: var(--secondary-light); margin-top: 2px; }
        .calendar-date-box .year { font-size: 11px; opacity: 0.8; }
        .calendar-card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
        .calendar-tag-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
        .cal-tag { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: var(--radius-full); }
        .tag-red { background: #fee2e2; color: #b91c1c; }
        .tag-gold { background: #fef3c7; color: #92400e; }
        .tag-blue { background: #e0e7ff; color: #3730a3; }
        .tag-green { background: #d1fae5; color: #065f46; }
        .cal-status { font-size: 11px; color: #059669; font-weight: 600; }
        .calendar-card-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
        .cal-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: #64748b; }
        .cal-meta span { display: inline-flex; align-items: center; gap: 5px; }
        .cal-meta i { color: var(--primary-light); }

        /* Downloads Center Section */
        .downloads-section {
            padding: 65px 0;
            background: #ffffff;
            border-bottom: 1px solid var(--border-color);
        }
        .downloads-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }
        .download-box {
            background: #f8fafc;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            padding: 22px;
            transition: var(--transition);
        }
        .download-box:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-md);
            background: #ffffff;
            border-color: rgba(0, 102, 255, 0.25);
        }
        .download-box-head {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-bottom: 14px;
            border-bottom: 2px solid #e2e8f0;
            margin-bottom: 16px;
        }
        .download-box-head .icon {
            width: 42px; height: 42px;
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            color: #ffffff; font-size: 17px;
        }
        .download-box-head .icon.i-blue { background: linear-gradient(135deg, #0066FF, #3385ff); }
        .download-box-head .icon.i-gold { background: linear-gradient(135deg, #b8860b, #d4af37); color: #0c1225; }
        .download-box-head .icon.i-purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
        .download-box-head h3 { font-size: 15.5px; font-weight: 700; margin: 0; }
        .download-box-head span { font-size: 12px; color: #64748b; }
        .download-list {
            list-style: none; padding: 0; margin: 0;
            display: flex; flex-direction: column; gap: 10px;
        }
        .download-item {
            display: flex; align-items: center; gap: 10px;
            padding: 9px 12px; background: #ffffff;
            border: 1px solid #e2e8f0; border-radius: var(--radius-sm);
            transition: var(--transition);
        }
        .download-item:hover {
            border-color: var(--primary-light);
            background: #f0f7ff;
            transform: translateX(3px);
        }
        .badge-type {
            font-size: 9.5px; font-weight: 700; padding: 3px 6px;
            border-radius: 4px; color: #fff;
        }
        .badge-type.pdf { background: #dc2626; }
        .badge-type.doc { background: #2563eb; }
        .download-item .info { flex: 1; min-width: 0; }
        .download-item .name {
            font-size: 13px; font-weight: 500; color: var(--dark-text);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
        }
        .download-item .meta { font-size: 11px; color: #94a3b8; display: block; }
        .btn-down-action {
            width: 30px; height: 30px; border-radius: 50%;
            background: #f1f5f9; color: var(--primary-color);
            display: flex; align-items: center; justify-content: center;
            font-size: 12px; flex-shrink: 0; transition: var(--transition);
        }
        .download-item:hover .btn-down-action {
            background: var(--primary-color); color: #fff;
        }

        /* Hall of Fame Section */
        .fame-section {
            padding: 65px 0;
            background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
            border-bottom: 1px solid var(--border-color);
        }
        .fame-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 22px;
        }
        .fame-box {
            background: #ffffff;
            border-radius: var(--radius-md);
            border: 1px solid rgba(212, 175, 55, 0.35);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
            display: flex; flex-direction: column;
            position: relative;
            transition: var(--transition);
        }
        .fame-box:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 28px rgba(0, 102, 255, 0.18);
            border-color: var(--secondary-color);
        }
        .fame-badge {
            position: absolute; top: 12px; right: 12px;
            font-size: 11px; font-weight: 700; padding: 3px 9px;
            border-radius: var(--radius-full); color: #ffffff; z-index: 2;
        }
        .fame-badge.b-green { background: linear-gradient(135deg, #10b981, #059669); }
        .fame-badge.b-gold { background: var(--gold-gradient-shine); color: #0c1225; }
        .fame-badge.b-royal { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
        .fame-badge.b-blue { background: linear-gradient(135deg, #0066FF, #0052CC); }
        .fame-media {
            height: 130px;
            background: linear-gradient(135deg, #0066FF 0%, #0047b3 100%);
            display: flex; align-items: center; justify-content: center;
            border-bottom: 3px solid var(--secondary-color);
        }
        .fame-avatar {
            width: 66px; height: 66px; border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            border: 2px dashed rgba(212, 175, 55, 0.6);
            display: flex; align-items: center; justify-content: center;
            color: var(--secondary-light); font-size: 28px;
        }
        .fame-body {
            padding: 18px 16px;
            flex: 1; display: flex; flex-direction: column;
        }
        .fame-role-tag { font-size: 11.5px; font-weight: 600; color: var(--primary-light); margin-bottom: 4px; display: block; }
        .fame-name { font-size: 15.5px; font-weight: 700; color: var(--dark-text); margin-bottom: 6px; line-height: 1.35; }
        .fame-desc { font-size: 12.5px; color: var(--body-text); line-height: 1.6; margin-bottom: 14px; flex: 1; }
        .fame-foot {
            border-top: 1px solid #f1f5f9; padding-top: 10px;
            display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #64748b;
        }
        .fame-foot span { display: flex; align-items: center; gap: 5px; }
        .fame-foot i { color: var(--secondary-dark); }

        /* Floating Speed-Dial */
        .preview-speed-dial {
            position: fixed;
            bottom: 95px; right: 28px;
            z-index: 998;
            display: flex; flex-direction: column; align-items: center;
        }
        .preview-dial-actions {
            display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px;
            opacity: 0; visibility: hidden; transform: translateY(15px);
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            pointer-events: none;
        }
        .preview-speed-dial.open .preview-dial-actions,
        .preview-speed-dial:hover .preview-dial-actions {
            opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
        }
        .p-dial-btn {
            width: 48px; height: 48px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            color: #ffffff; font-size: 18px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
            position: relative; transition: var(--transition); text-decoration: none;
        }
        .p-dial-btn:hover { transform: scale(1.12); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
        .p-dial-phone { background: linear-gradient(135deg, #10b981, #059669); }
        .p-dial-line  { background: linear-gradient(135deg, #06c755, #00b348); }
        .p-dial-fb    { background: linear-gradient(135deg, #1877f2, #0d65d9); }
        .p-dial-map   { background: linear-gradient(135deg, #ea4335, #c5221f); }
        .p-dial-tooltip {
            position: absolute; right: 58px; background: #0f172a; color: #ffffff;
            font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: var(--radius-sm);
            white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
            opacity: 0; visibility: hidden; transition: var(--transition); pointer-events: none;
        }
        .p-dial-btn:hover .p-dial-tooltip { opacity: 1; visibility: visible; transform: translateX(-4px); }
        .p-dial-main {
            width: 56px; height: 56px; border-radius: 50%;
            background: var(--gold-gradient-shine); border: 3px solid #ffffff;
            color: #0c1225; font-size: 22px; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 6px 20px rgba(184, 134, 11, 0.45);
            position: relative; transition: var(--transition);
        }
        .p-dial-main:hover { transform: scale(1.08); }
        .p-dial-main .close-ic { display: none; font-size: 20px; }
        .preview-speed-dial.open .p-dial-main .main-ic { display: none; }
        .preview-speed-dial.open .p-dial-main .close-ic { display: block; }
        .p-dial-pulse {
            position: absolute; inset: -4px; border-radius: 50%;
            border: 2px solid var(--secondary-color);
            animation: dialRing 2s infinite; pointer-events: none;
        }

        /* Urgent Modal */
        .preview-modal-wrap {
            position: fixed; inset: 0; z-index: 9999;
            display: flex; align-items: center; justify-content: center;
            opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 20px;
        }
        .preview-modal-wrap.show { opacity: 1; visibility: visible; }
        .preview-modal-backdrop {
            position: absolute; inset: 0; background: rgba(12, 18, 37, 0.75);
            backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
        }
        .preview-modal-card {
            position: relative; width: 100%; max-width: 530px;
            background: #ffffff; border-radius: var(--radius-lg);
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
            overflow: hidden; border: 1px solid rgba(212, 175, 55, 0.3);
            transform: translateY(25px) scale(0.96);
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .preview-modal-wrap.show .preview-modal-card { transform: translateY(0) scale(1); }
        .preview-modal-head {
            background: var(--gold-gradient-horizontal);
            padding: 13px 20px; display: flex; align-items: center; justify-content: space-between;
        }
        .preview-modal-tag { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #0c1225; font-size: 13.5px; }
        .preview-modal-close {
            background: rgba(12, 18, 37, 0.12); border: none;
            width: 30px; height: 30px; border-radius: 50%; color: #0c1225;
            font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: var(--transition);
        }
        .preview-modal-close:hover { background: #0c1225; color: #fff; }
        .preview-modal-body { padding: 26px 22px 18px; text-align: center; }
        .preview-modal-icon {
            width: 64px; height: 64px; margin: 0 auto 15px;
            background: rgba(37, 117, 252, 0.08); border: 2px solid rgba(212, 175, 55, 0.5);
            color: var(--primary-color); font-size: 28px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
        }
        .preview-modal-body h3 { font-size: 19px; color: var(--primary-color); margin-bottom: 10px; font-weight: 700; line-height: 1.4; }
        .preview-modal-body p { font-size: 14px; color: var(--body-text); line-height: 1.65; margin-bottom: 22px; }
        .preview-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
        .p-btn-gold {
            background: var(--gold-gradient-shine); color: #0c1225 !important;
            font-weight: 700; font-size: 13.5px; padding: 9px 20px;
            border-radius: var(--radius-full); display: inline-flex; align-items: center; gap: 8px;
            box-shadow: 0 4px 12px rgba(184, 134, 11, 0.35); transition: var(--transition);
        }
        .p-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(184, 134, 11, 0.5); }
        .p-btn-dismiss {
            background: #f1f5f9; border: 1px solid #cbd5e1; color: #475569;
            font-family: var(--font-primary); font-weight: 500; font-size: 13.5px;
            padding: 9px 16px; border-radius: var(--radius-full); cursor: pointer; transition: var(--transition);
        }
        .p-btn-dismiss:hover { background: #e2e8f0; color: #1e293b; }
        .preview-modal-foot { background: #f8fafc; border-top: 1px solid var(--border-color); padding: 9px 18px; text-align: center; }
        .preview-modal-foot label { font-size: 12px; color: #64748b; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }

        
/* ==========================================================================
   NPK SCHOOL THEME - COMPLETE MOBILE RESPONSIVE SYSTEM
   ========================================================================== */

/* ====== TABLET & MOBILE BREAKPOINT (max-width: 991px) ====== */
@media (max-width: 991px) {
    /* 1. Global Layout */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    body {
        overflow-x: hidden;
    }

    /* 2. Topbar (ซ่อนแถบสีทองและรายละเอียดด้านบนในโหมดโทรศัพท์และแท็บเล็ต) */
    .topbar {
        display: none !important;
    }

    /* 3. Header & Brand */
    .site-brand {
        padding: 16px 0;
    }
    .school-logo img,
    .school-logo .custom-logo,
    .school-logo a img {
        height: 72px;
        width: auto;
        max-width: 80px;
    }
    .school-name h1,
    .school-name .site-title,
    .school-name .site-title a,
    .school-name h1 a {
        font-size: 20px;
        line-height: 1.3;
        font-weight: 700;
    }
    .school-name .site-subtitle,
    .school-name p:not(.site-title) {
        font-size: 12px;
    }

    /* 4. Navigation Menu & Mobile Drawer */
    .main-nav {
        position: relative;
    }
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 20px;
        color: var(--primary-color);
        background: #f0f7ff;
        border-radius: var(--radius-sm);
        cursor: pointer;
        border: 1px solid rgba(0, 102, 255, 0.15);
        transition: var(--transition);
    }
    .mobile-toggle:hover,
    .mobile-toggle[aria-expanded="true"] {
        background: var(--primary-color);
        color: #ffffff;
    }
    .main-nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    .nav-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 8px 0;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
        border-top: 3px solid var(--primary-color);
        border-radius: 0 0 12px 12px;
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }
    .nav-menu.show {
        display: flex !important;
        animation: npkNavSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        margin: 0;
        text-align: center;
    }
    .nav-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 8px;
        padding: 14px 20px;
        color: #1e293b;
        font-size: 15px;
        font-weight: 500;
        border-bottom: none;
        transition: var(--transition);
    }
    .nav-menu > li > a i:first-child {
        color: var(--primary-color);
        font-size: 15px;
    }
    .nav-menu > li > a i.fa-chevron-down {
        font-size: 11px;
        color: #94a3b8;
        margin-left: 4px;
        transition: transform 0.25s ease;
    }
    .nav-menu > li.active > a,
    .nav-menu > li > a:hover {
        background: #f0f7ff;
        color: var(--primary-color);
        border-bottom: none;
    }
    /* Submenus on Mobile - Centered */
    .nav-menu .sub-menu {
        display: none !important;
        position: static;
        box-shadow: none;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        border-radius: 0;
        background: #f8fafc;
        padding: 6px 0;
        width: 100%;
        text-align: center;
    }
    .nav-menu li.active-sub > .sub-menu {
        display: block !important;
        animation: npkNavSlideDown 0.2s ease-out forwards;
    }
    .nav-menu li.active-sub > a i.fa-chevron-down {
        transform: rotate(180deg);
    }
    .nav-menu .sub-menu li {
        width: 100%;
        text-align: center;
    }
    .nav-menu .sub-menu li a {
        padding: 11px 20px;
        font-size: 14px;
        color: #475569;
        display: block;
        text-align: center;
        transition: var(--transition);
    }
    .nav-menu .sub-menu li a:hover,
    .nav-menu .sub-menu li.active > a {
        color: var(--primary-color);
        background: #eaf2ff;
    }
    .nav-search-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-sm);
        background: #f8fafc;
        color: var(--dark-text);
        border: 1px solid #e2e8f0;
        cursor: pointer;
    }

    /* 5. Hero Slider on Tablet */
    .hero-slider {
        height: 400px;
    }
    .hero-slide-container {
        padding: 0 30px;
    }
    .hero-slide-content h2 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    .hero-slide-content p {
        font-size: 14.5px;
        margin-bottom: 20px;
    }
    .hero-nav {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }
    .hero-nav.prev { left: 16px; }
    .hero-nav.next { right: 16px; }

    /* 6. Grids on Tablet */
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .anywhere-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .anywhere-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .fame-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 7. Floating Speed Dial */
    .preview-speed-dial {
        bottom: 24px;
        right: 20px;
    }
}

/* Slide Down Animation */
@keyframes npkNavSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== PHABLET & SMARTPHONE BREAKPOINT (max-width: 768px) ====== */
@media (max-width: 768px) {
    /* 1. Topbar (ซ่อนในโหมดโทรศัพท์) */
    .topbar {
        display: none !important;
    }

    /* 2. Site Brand */
    .site-brand {
        padding: 12px 0;
    }
    .school-logo-wrap {
        gap: 12px;
    }
    .school-logo img,
    .school-logo .custom-logo,
    .school-logo a img {
        height: 60px;
        max-width: 68px;
    }
    .school-name h1,
    .school-name .site-title,
    .school-name .site-title a,
    .school-name h1 a {
        font-size: 18px;
        line-height: 1.25;
        font-weight: 700;
    }
    .school-name .site-subtitle,
    .school-name p:not(.site-title) {
        font-size: 11px;
        line-height: 1.3;
    }

    /* 3. Ticker Bar */
    .breaking-news-ticker {
        padding: 6px 0;
    }
    .ticker-container {
        gap: 8px;
    }
    .ticker-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    .ticker-text {
        font-size: 12.5px;
    }

    /* 4. Hero Slider */
    .hero-slider {
        height: 340px;
    }
    .hero-slide-container {
        padding: 0 20px;
    }
    .hero-slide-content h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    .hero-slide-content p {
        font-size: 13px;
        margin-bottom: 16px;
        max-width: 95%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-btn {
        padding: 9px 22px;
        font-size: 13.5px;
    }
    .hero-nav {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .hero-nav.prev { left: 10px; }
    .hero-nav.next { right: 10px; }
    .hero-dots {
        bottom: 14px;
    }

    /* 5. Sections Padding & Titles */
    .news-section,
    .calendar-section,
    .anywhere-section,
    .courses-section,
    .downloads-section,
    .fame-section,
    .gallery-section {
        padding: 35px 0;
    }
    .section-title {
        margin-bottom: 22px;
    }
    .section-title h2 {
        font-size: 21px;
    }
    .section-title p {
        font-size: 13px;
    }

    /* 6. Quick Links */
    .quick-links {
        padding: 16px 0;
        margin-top: -15px;
        position: relative;
        z-index: 10;
    }
    .quick-links-grid {
        gap: 12px;
    }
    .quick-link-card {
        padding: 16px 12px;
        border-radius: 10px;
    }
    .quick-link-card i {
        font-size: 26px;
        margin-bottom: 8px;
    }
    .quick-link-card h3 {
        font-size: 14.5px;
        margin-bottom: 4px;
    }
    .quick-link-card p {
        font-size: 11.5px;
    }

    /* 7. News Section */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .news-card-thumb {
        height: 190px;
    }
    .news-card-body {
        padding: 16px;
    }
    .news-card-body h3 {
        font-size: 16px;
        line-height: 1.4;
    }
    .news-card-body p {
        font-size: 13px;
    }

    /* 8. Calendar Section */
    .calendar-header-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .btn-calendar-pdf {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }
    .calendar-card {
        padding: 14px;
        gap: 14px;
    }
    .calendar-date-box {
        min-width: 64px;
        width: 64px;
        height: 64px;
    }
    .calendar-date-box .day {
        font-size: 20px;
    }
    .calendar-date-box .month {
        font-size: 11px;
    }
    .calendar-date-box .year {
        font-size: 10px;
    }
    .calendar-card-body h3 {
        font-size: 15px;
    }
    .calendar-card-body p {
        font-size: 12.5px;
    }

    /* 9. Hall of Fame */
    .fame-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .fame-box {
        padding: 20px 16px;
    }
    .fame-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .fame-name {
        font-size: 16px;
    }
    .fame-desc {
        font-size: 13px;
    }
    .fame-foot {
        flex-direction: column;
        gap: 6px;
    }

    /* 10. Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .gallery-card {
        height: 150px;
    }

    /* 11. Visitor Counter System */
    .npk-visitor-counter-wrap {
        padding: 16px 14px;
    }
    .counter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .counter-title {
        font-size: 13.5px;
    }
    .counter-online-pill {
        font-size: 11.5px;
        padding: 4px 10px;
    }
    .counter-body {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .counter-mini-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .counter-mini-item {
        padding: 8px 4px;
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    .counter-mini-item .item-icon {
        font-size: 18px;
    }
    .counter-mini-item .item-label {
        font-size: 11px;
    }
    .counter-mini-item .item-num {
        font-size: 13.5px;
    }
    .counter-odometer-box {
        width: 100%;
        align-items: center;
        gap: 6px;
    }
    .odometer-label {
        font-size: 11px;
    }
    .odometer-digits .digit-box {
        width: 24px;
        height: 32px;
        font-size: 15px;
    }
    .odometer-digits .digit-unit {
        font-size: 12px;
    }

    /* 12. Footer */
    .footer-col {
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-logo img {
        margin: 0 auto;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-col ul li {
        justify-content: center;
    }
    .footer-map-box {
        max-width: 320px;
        margin: 0 auto;
        text-align: left;
    }
    .footer-bar {
        font-size: 12px;
        padding: 12px 10px;
    }

    /* 13. Floating Actions */
    .preview-speed-dial {
        bottom: 20px;
        right: 16px;
    }
    .p-dial-main {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .p-dial-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    .back-to-top {
        bottom: 20px;
        left: 16px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    /* 14. Urgent Modal Popup */
    .preview-modal-card {
        width: 92%;
        margin: 15px;
        max-height: 85vh;
        overflow-y: auto;
    }
    .preview-modal-body {
        padding: 20px 16px;
    }
    .preview-modal-body h3 {
        font-size: 17px;
    }
    .preview-modal-body p {
        font-size: 13px;
        line-height: 1.5;
    }
    .preview-modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    .p-btn-gold,
    .p-btn-dismiss {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ====== SMARTPHONES BREAKPOINT (max-width: 576px) ====== */
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .school-logo img,
    .school-logo .custom-logo,
    .school-logo a img {
        height: 52px;
        max-width: 58px;
    }
    .school-name h1,
    .school-name .site-title,
    .school-name .site-title a,
    .school-name h1 a {
        font-size: 16px;
        font-weight: 700;
    }
    .school-name .site-subtitle,
    .school-name p:not(.site-title) {
        font-size: 10px;
    }
    .hero-slider {
        height: 280px;
    }
    .hero-slide-container {
        padding: 0 15px;
    }
    .hero-slide-content {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .hero-slide-content h2 {
        font-size: 18px;
    }
    .hero-slide-content p {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .hero-nav {
        display: none;
    }
    .hero-dots {
        bottom: 10px;
        gap: 6px;
    }
    .hero-dot {
        width: 8px;
        height: 8px;
    }
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .quick-link-card {
        padding: 14px 10px;
    }
    .quick-link-card i {
        font-size: 22px;
    }
    .quick-link-card h3 {
        font-size: 13.5px;
    }
    .quick-link-card p {
        font-size: 10.5px;
    }
    .anywhere-features {
        grid-template-columns: 1fr;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .calendar-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .calendar-date-box {
        width: 100%;
        height: 38px;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        border-radius: 6px;
    }
    .calendar-date-box .day,
    .calendar-date-box .month,
    .calendar-date-box .year {
        margin: 0;
        line-height: 1;
    }
    .download-box {
        padding: 16px 12px;
    }
    .doc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .doc-btn {
        align-self: flex-end;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-number {
        font-size: 22px;
    }
    .stat-label {
        font-size: 12px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .gallery-card {
        height: 130px;
    }
    .gallery-card-overlay h3 {
        font-size: 11px;
    }
    .gallery-card-overlay span {
        font-size: 10px;
    }
}

/* ====== COMPACT SMARTPHONES BREAKPOINT (max-width: 380px) ====== */
@media (max-width: 380px) {
    .school-name h1,
    .school-name .site-title,
    .school-name .site-title a,
    .school-name h1 a {
        font-size: 14.5px;
        font-weight: 700;
    }
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    .odometer-digits .digit-box {
        width: 20px;
        height: 28px;
        font-size: 13px;
    }
    .preview-speed-dial {
        right: 12px;
        bottom: 16px;
    }
    .back-to-top {
        left: 12px;
        bottom: 16px;
    }
}


/* ==========================================================================
   WORDPRESS CORE ALIGNMENT, CONTENT & UTILITY CLASSES
   ========================================================================== */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; text-align: center; }
.alignwide { width: 100vw; max-width: 1400px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { margin-bottom: 1.5em; max-width: 100%; text-align: center; }
.wp-caption-text { font-size: 0.85rem; color: #64748b; margin-top: 0.5em; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.entry-content { line-height: 1.8; font-size: 16px; color: #334155; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { color: #0c1225; margin-top: 1.5em; margin-bottom: 0.5em; font-weight: 600; }
.entry-content p { margin-bottom: 1.25em; }
.entry-content a { color: var(--primary-color); text-decoration: underline; }
.entry-content a:hover { color: var(--primary-dark); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid #e2e8f0; }
.entry-content th { background: #f8fafc; color: #0c1225; font-weight: 600; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 1.25em; }
.entry-content li { margin-bottom: 6px; }

/* Page inner layout */
.page-inner-main { padding: 50px 0; background: var(--light-bg); }
.site-content-inner { display: flex; gap: 30px; }
.main-content-column { flex: 1; min-width: 0; background: #fff; border-radius: var(--radius-md); padding: 30px; box-shadow: var(--shadow-sm); }
.sidebar-column { width: 340px; flex-shrink: 0; }
@media (max-width: 991px) {
	.site-content-inner { flex-direction: column; }
	.sidebar-column { width: 100%; }
}
.page-title-banner { margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #e2e8f0; }
.page-title-banner h1, .page-title-banner .page-title { font-size: 26px; color: #0c1225; margin: 0; font-weight: 700; }
.title-underline { height: 3px; width: 60px; background: var(--gold-gradient); margin-top: 8px; border-radius: 2px; }
.title-underline.centered { margin-left: auto; margin-right: auto; }
.news-cards-grid.grid-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .news-cards-grid.grid-2col { grid-template-columns: 1fr; } }
