/* ============================================
   GLOBAL DESIGN UNIFICATION
   Demo page color scheme unification for all pages
   ============================================ */

/* --- CSS Variables (Global) --- */
:root {
  --uni-navy: #0c2d5a;
  --uni-blue: #1a5da8;
  --uni-sky: #0ea5e9;
  --uni-sky-light: #38bdf8;
  --uni-bg-off: #f8fafb;
  --uni-bg-light: #f0f7ff;
  --uni-text: #1f2937;
  --uni-text-sub: #4b5563;
  --uni-text-muted: #6b7280;
  --uni-border: #e5e7eb;
  --uni-radius: 8px;
  --uni-radius-lg: 16px;
  --uni-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --uni-font: 'Noto Sans JP', sans-serif;
}

/* --- Base Typography --- */
body {
  font-family: var(--uni-font) !important;
  color: var(--uni-text);
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   HEADER
   ============================================ */
.site-header,
#header,
.vk-header {
  background: var(--uni-navy) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .navbar-brand,
.site-header a,
.vk-header a {
  color: #fff !important;
}

.vk-header-top,
.header-top {
  background: rgba(12,45,90,0.95) !important;
  color: rgba(255,255,255,0.7) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.vk-header-top a,
.header-top a {
  color: rgba(255,255,255,0.85) !important;
}

.vk-header-top a:hover,
.header-top a:hover {
  color: var(--uni-sky-light) !important;
}

.vk-header-top .btn,
.header-top .btn,
.header-top a[href*="free"],
.header-top a[href*="contact"] {
  background: var(--uni-sky) !important;
  color: #fff !important;
  border-color: var(--uni-sky) !important;
  border-radius: var(--uni-radius) !important;
}

/* Global Navigation */
.global-nav,
#g_nav,
.vk-navigation {
  background: var(--uni-navy) !important;
}

.global-nav a,
#g_nav a,
.vk-navigation a {
  color: rgba(255,255,255,0.8) !important;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.3s;
}

.global-nav a:hover,
#g_nav a:hover,
.vk-navigation a:hover,
.global-nav .current-menu-item > a,
.vk-navigation .current-menu-item > a {
  color: var(--uni-sky-light) !important;
}

.global-nav .current-menu-item > a,
.vk-navigation .current-menu-item > a {
  border-bottom: 2px solid var(--uni-sky) !important;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header,
.vk-page-header,
.entry-header {
  background: linear-gradient(135deg, var(--uni-navy), var(--uni-blue)) !important;
  color: #fff !important;
  padding: 48px 0 !important;
}

.page-header h1,
.vk-page-header h1,
.page-header .page-title {
  color: #fff !important;
  font-weight: 900 !important;
  font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
  letter-spacing: -0.02em;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb,
.vk-breadcrumb {
  background: var(--uni-bg-light) !important;
  border-bottom: 1px solid var(--uni-border);
  padding: 10px 0;
}

.breadcrumb a,
.vk-breadcrumb a {
  color: var(--uni-sky) !important;
}

.breadcrumb a:hover,
.vk-breadcrumb a:hover {
  color: var(--uni-blue) !important;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.main-section h1,
.main-section h2,
.entry-body h2 {
  color: var(--uni-text) !important;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.main-section h2,
.entry-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  padding-bottom: 12px;
  border-bottom: 3px solid var(--uni-sky);
  margin-bottom: 24px;
}

.main-section h3,
.entry-body h3 {
  color: var(--uni-navy) !important;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  padding-left: 14px;
  border-left: 4px solid var(--uni-sky);
  margin-bottom: 16px;
}

.main-section h4,
.entry-body h4 {
  color: var(--uni-blue) !important;
  font-weight: 700;
}

.main-section a,
.entry-body a {
  color: var(--uni-sky);
  transition: color 0.3s;
}

.main-section a:hover,
.entry-body a:hover {
  color: var(--uni-navy);
}

.main-section p,
.entry-body p {
  color: var(--uni-text-sub);
  line-height: 1.8;
  font-size: 15px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn,
.btn-primary,
.vk_button_link,
input[type="submit"],
button[type="submit"] {
  background: linear-gradient(135deg, var(--uni-sky), #0284c7) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--uni-radius) !important;
  font-weight: 600;
  padding: 12px 28px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(14,165,233,0.3);
}

.btn:hover,
.btn-primary:hover,
.vk_button_link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,165,233,0.4);
}

.btn-outline-primary,
.btn--o {
  background: transparent !important;
  color: var(--uni-sky) !important;
  border: 2px solid var(--uni-sky) !important;
  box-shadow: none;
}

.btn-outline-primary:hover,
.btn--o:hover {
  background: var(--uni-sky) !important;
  color: #fff !important;
}

/* ============================================
   CARDS & BOXES
   ============================================ */
.card,
.vk_prBlk_item,
.vk_post,
.media {
  border-radius: var(--uni-radius-lg) !important;
  border: 1px solid var(--uni-border) !important;
  box-shadow: var(--uni-shadow);
  transition: all 0.3s;
}

.card:hover,
.vk_prBlk_item:hover,
.vk_post:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* ============================================
   FAQ
   ============================================ */
.vk-faq .faq_title,
.faq-q,
.vk_faq_title {
  background: var(--uni-bg-light) !important;
  color: var(--uni-text) !important;
  border-left: 4px solid var(--uni-sky) !important;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: 0 var(--uni-radius) var(--uni-radius) 0;
}

/* ============================================
   TABLES
   ============================================ */
table,
.wp-block-table table {
  border-collapse: collapse;
  border-radius: var(--uni-radius);
  overflow: hidden;
  box-shadow: var(--uni-shadow);
}

table th,
.wp-block-table th {
  background: var(--uni-navy) !important;
  color: #fff !important;
  font-weight: 700;
  padding: 12px 16px;
}

table td,
.wp-block-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--uni-border);
}

table tr:nth-child(even) td {
  background: var(--uni-bg-off);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer,
#footer,
.vk-footer {
  background: var(--uni-navy) !important;
  color: rgba(255,255,255,0.6) !important;
}

.site-footer a,
#footer a,
.vk-footer a {
  color: rgba(255,255,255,0.7) !important;
  transition: color 0.3s;
}

.site-footer a:hover,
#footer a:hover,
.vk-footer a:hover {
  color: var(--uni-sky-light) !important;
}

.site-footer h3,
.site-footer h4,
.vk-footer h3,
.vk-footer h4 {
  color: #fff !important;
  font-weight: 700;
}

.vk-copyright,
.site-footer .copyright {
  background: rgba(0,0,0,0.2) !important;
  color: rgba(255,255,255,0.4) !important;
  font-size: 12px;
}

/* ============================================
   BLOG LISTING (Column page)
   ============================================ */
.media.vk_post {
  background: #fff;
  border-radius: var(--uni-radius-lg) !important;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--uni-border);
}

.media.vk_post:hover {
  border-color: var(--uni-sky);
}

.media .vk_post_title a,
.entry-title a {
  color: var(--uni-text) !important;
  font-weight: 700;
}

.media .vk_post_title a:hover,
.entry-title a:hover {
  color: var(--uni-sky) !important;
}

.btn-read-more,
.vk_post_btn a {
  background: transparent !important;
  color: var(--uni-sky) !important;
  border: 2px solid var(--uni-sky) !important;
  border-radius: var(--uni-radius) !important;
  font-weight: 600;
  padding: 8px 20px;
  box-shadow: none !important;
}

.btn-read-more:hover,
.vk_post_btn a:hover {
  background: var(--uni-sky) !important;
  color: #fff !important;
}

.vk_post_cat,
.cat-label {
  background: var(--uni-sky) !important;
  color: #fff !important;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* ============================================
   BLOG SINGLE
   ============================================ */
.entry-meta,
.vk_post_date {
  color: var(--uni-text-muted);
  font-size: 13px;
}

.entry-body img {
  border-radius: var(--uni-radius);
}

/* ============================================
   SIDEBAR
   ============================================ */
.widget,
.vk_widget {
  background: #fff;
  border-radius: var(--uni-radius-lg);
  padding: 20px;
  border: 1px solid var(--uni-border);
  box-shadow: var(--uni-shadow);
  margin-bottom: 20px;
}

.widget h3,
.widget h4,
.vk_widget h3,
.vk_widget h4 {
  color: var(--uni-navy) !important;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--uni-sky);
  margin-bottom: 12px;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  border: 2px solid var(--uni-border) !important;
  border-radius: var(--uni-radius) !important;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--uni-font);
  transition: border-color 0.3s;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--uni-sky) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

.wpcf7 input[type="submit"] {
  background: linear-gradient(135deg, var(--uni-sky), #0284c7) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--uni-radius) !important;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* ============================================
   MOBILE NAV
   ============================================ */
.vk-mobile-nav,
#vk-mobile-nav {
  background: rgba(12,45,90,0.95) !important;
  backdrop-filter: blur(20px);
}

.vk-mobile-nav a,
#vk-mobile-nav a {
  color: rgba(255,255,255,0.85) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.vk-mobile-nav a:hover,
#vk-mobile-nav a:hover {
  color: var(--uni-sky-light) !important;
}

.vk-mobile-nav-menu-btn {
  color: #fff !important;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-numbers {
  border-radius: var(--uni-radius) !important;
  border: 1px solid var(--uni-border);
  color: var(--uni-text-muted);
  transition: all 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--uni-sky) !important;
  color: #fff !important;
  border-color: var(--uni-sky);
}

/* ============================================
   CTA SECTION (for sub-pages)
   ============================================ */
.uni-cta-section {
  background: linear-gradient(135deg, #0ea5e9, #0284c7, #0369a1);
  border-radius: var(--uni-radius-lg);
  padding: 48px 40px;
  color: #fff;
  text-align: center;
  margin: 48px 0;
}

.uni-cta-section h2 {
  color: #fff !important;
  border-bottom: none !important;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.uni-cta-section p {
  color: rgba(255,255,255,0.8) !important;
}

.uni-cta-section .btn {
  background: #fff !important;
  color: var(--uni-sky) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

.uni-cta-section .btn:hover {
  background: var(--uni-bg-light) !important;
  transform: translateY(-2px);
}

/* Footer fix - higher specificity */
footer.site-footer,
body .site-footer,
body footer.site-footer {
  background: #0c2d5a !important;
  background-color: #0c2d5a !important;
  color: rgba(255,255,255,0.6) !important;
}

footer.site-footer a,
body .site-footer a {
  color: rgba(255,255,255,0.7) !important;
}

footer.site-footer a:hover,
body .site-footer a:hover {
  color: #38bdf8 !important;
}

footer.site-footer h3,
footer.site-footer h4,
body .site-footer h3,
body .site-footer h4 {
  color: #fff !important;
  font-weight: 700;
}

body .site-footer .copyright,
body .vk-copyright {
  background: rgba(0,0,0,0.2) !important;
  color: rgba(255,255,255,0.4) !important;
}
