/**
 * WordPress + branding overrides for portal skin clone
 * Trường Mầm non Ô Chợ Dừa
 */

/* Admin bar clearance */
body.admin-bar .menu-header2,
body.admin-bar .header-default {
  position: relative;
}
@media screen and (min-width: 783px) {
  body.admin-bar {
    padding-top: 0;
  }
  html.wp-toolbar {
    /* WP admin bar handles itself */
  }
}

/* Header branding fallback when no custom logo / banner image */
.header-default-type3 .header-wrapper {
  background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 45%, #ffd3b6 100%) !important;
  background-size: cover !important;
  min-height: 140px;
}
.header-default-type3 .header-logo .logo-placeholder,
.header-default-type3 a.logo-img.logo-text-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  max-height: 110px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: #0d6e4f;
  font-size: 42px;
  text-decoration: none;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.header-default-type3 .edu-info-header .department {
  display: block !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.header-default-type3 .edu-info-header .name {
  font-weight: 800;
  text-transform: uppercase;
}
.header-default-type3 .slogan {
  text-transform: uppercase;
  font-weight: 700;
}

/* Content width / WP content
 *
 * CRITICAL: Do NOT give #whole-page a max-width without margin:auto.
 * Header uses centered .container (margin:auto). Main content lives inside
 * #whole-page. If #whole-page is max-width:1170px and left-aligned, the
 * main+sidebar column pins to the far left while the header stays centered
 * — the broken live layout (header upper-right vs content far-left).
 * Keep #whole-page full-bleed; let inner .container handle centering.
 */
#whole-page,
.region-full-content {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.columns-widget.container,
.column1.container {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}
/* Nested Bootstrap .container inside header .container overflows; fluidize nav bar */
#menu-primary .navbar > .container {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.entry-content img,
.wp-block-image img {
  max-width: 100%;
  height: auto;
}
.wp-content-card {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
}
.wp-content-card .entry-title {
  margin-top: 0;
}
.wp-content-card .entry-meta {
  color: #777;
  font-size: 13px;
  margin-bottom: 15px;
}

/* listType4 placeholder thumb */
.left-listType4 .thumb-placeholder,
figure.post-image .thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  background: linear-gradient(135deg, #e8f5e9, #fff3e0);
  color: #66bb6a;
  font-size: 32px;
  border-radius: 4px;
}
.left-listType4 img.post-image,
figure.post-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 140px;
}

/* Panel spacing */
#whole-page .panel {
  margin-bottom: 18px;
}
.chu-chay {
  background: #fff8e1;
  padding: 6px 12px;
  margin-bottom: 12px;
  border-left: 4px solid #ffb300;
  font-weight: 600;
}

/* Footer branding */
.footer-section .title-web {
  font-size: 16px;
  margin-bottom: 8px;
}
.footer-section .cont-web p {
  margin: 4px 0;
}

/* Search in menu */
.search-menu .form-control {
  display: inline-block;
  width: auto;
  min-width: 140px;
  height: 30px;
  padding: 4px 8px;
  font-size: 13px;
}
.search-menu button,
.search-menu .btn-search {
  height: 30px;
  padding: 4px 10px;
}

/* Nav icons optional (text-first) */
.navigation-menu-type-20 .nav > li > a .text {
  display: block;
}
.navigation-menu-type-20 .icon-home {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
}

/* Align WP pagination */
.pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pagination-wrap .page-numbers {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #ddd;
  background: #fff;
  text-decoration: none;
}
.pagination-wrap .page-numbers.current {
  background: #4caf50;
  color: #fff;
  border-color: #4caf50;
}

/* Sidebar panels */
.sidebar-stack .panel {
  margin-bottom: 15px;
}
.sidebar-stack .docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-stack .docs-list li {
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
}
.sidebar-stack .docs-list li:last-child {
  border-bottom: none;
}

/* Back to top */
.backtotop6 a {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 999;
  background: #4caf50;
  color: #fff !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

/* Widget sidebar boxes */
.sidebar-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
  padding: 0 12px 12px;
}
.sidebar-box-title {
  background: #4caf50;
  color: #fff;
  margin: 0 -12px 12px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
}
.navbar-fixed-affix {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
body.admin-bar .navbar-fixed-affix {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .navbar-fixed-affix {
    top: 46px;
  }
}


/* Keep branding block from collapsing around floated logo */
.header-default-type3 .header-wrapper,
.header-default-type3 .section-logo {
  overflow: hidden;
}
.header-default-type3 .edu-info-header {
  display: inline-block;
  vertical-align: middle;
}

/* ============================================================
 * Visual match — mamnon10-10 portal chrome (local assets)
 * Colors: purple #997bff / #bd4fb9, orange #ffb200
 * ============================================================ */

:root {
  --mamnon-purple: #908efe;
  --mamnon-purple-deep: #8a5fd6;
  --mamnon-magenta: #bd4fb9;
  --mamnon-orange: #ffb200;
  --mamnon-nav-text: #960a00;
}

/* Full-page cartoon background */
html {
  min-height: 100%;
}
body {
  background: #c8e8f8 url("../img/portal/bg/body-cartoon.jpg") top center no-repeat !important;
  background-attachment: fixed !important;
  background-size: cover !important;
}

/* Top purple utility bar — solid purple across date + login (no cream chu-chay) */
.region-top,
.region-top .column1.container,
.region-top .menu-header2,
.menu-header2 {
  background-color: var(--mamnon-purple) !important;
  background-image: none !important;
  border-bottom: none !important;
  color: #fff;
}
.menu-header2 .chu-chay,
.menu-header2 .time-news,
.menu-header2 .time-home-gio,
.menu-header2 .ModuleWrapper,
.menu-header2 .col-left,
.menu-header2 .col-right,
.menu-header2 .row,
.menu-header2 .columns-widget {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.menu-header2 .chu-chay {
  border-left: none !important;
  font-weight: inherit !important;
}
.menu-header2 .time-home-gio,
.menu-header2 .time-home-gio i,
.menu-header2 a {
  color: #fff !important;
}
.menu-header2 .time-home-gio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px !important;
  line-height: 33px;
  font-size: 13px;
}
.menu-header2 .btn_signin {
  background: #6b4fc4 !important;
  border-radius: 4px;
  padding: 4px 12px !important;
  color: #fff !important;
}
.menu-header2 .btn_signin:hover {
  background: #5a3fb0 !important;
  color: #fff !important;
}

/* Header branding banner image */
.header-default-type3 .header-wrapper {
  background: url("../img/portal/header/header-sky.jpg") top left no-repeat !important;
  background-size: cover !important;
  min-height: 140px;
}
.header-default-type3 .edu-info-header .department {
  color: #c62828 !important;
}
.header-default-type3 .edu-info-header .name {
  color: #1565c0 !important;
}

/* Nav bar — sunny yellow→gold like mamnon10-10 (sampled from reference) */
.menu-default-school .navbar-default {
  background-color: #f7ce72 !important;
  background-image: url("../img/portal/decor/bgmenu1.png"),
    linear-gradient(180deg, #f8cb6c 0%, #f7ce72 45%, #f7df91 100%) !important;
  background-repeat: repeat-x, no-repeat !important;
  background-size: auto 100%, 100% 100% !important;
  min-height: 90px !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 5px rgba(180, 140, 40, 0.22);
}
.menu-default-school .navbar-default .navbar-nav > li > a {
  color: var(--mamnon-nav-text) !important;
  font-weight: 700 !important;
  text-align: center;
  padding: 8px 10px !important;
}
.menu-default-school .navbar-default .navbar-nav > li > a .menu-icon,
.menu-default-school .navbar-default .navbar-nav > li > a .text-center {
  display: block;
  text-align: center;
  padding-bottom: 4px;
  line-height: 1;
}
.menu-default-school .navbar-default .navbar-nav > li > a .menu-icon img,
.menu-default-school .navbar-default .navbar-nav > li > a .text-center img {
  height: 48px;
  width: auto;
  max-width: 70px;
  display: inline-block;
}
.menu-default-school .navbar-default .navbar-nav > li.home > a .menu-icon img {
  height: 56px;
  max-width: 70px;
}
.menu-default-school .navbar-default .navbar-nav > li > a .text {
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
}
.menu-default-school .navbar-default .navbar-nav > li > a:hover,
.menu-default-school .navbar-default .navbar-nav > li > a:focus {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #6a0000 !important;
}

/* CSS nth-child icon fallback when walker has no img (empty / custom menus) */
.menu-default-school .navbar-nav > li:nth-child(1) > a:not(:has(.menu-icon)):before,
.menu-default-school .navbar-nav > li:nth-child(2) > a:not(:has(.menu-icon)):before,
.menu-default-school .navbar-nav > li:nth-child(3) > a:not(:has(.menu-icon)):before,
.menu-default-school .navbar-nav > li:nth-child(4) > a:not(:has(.menu-icon)):before,
.menu-default-school .navbar-nav > li:nth-child(5) > a:not(:has(.menu-icon)):before,
.menu-default-school .navbar-nav > li:nth-child(6) > a:not(:has(.menu-icon)):before,
.menu-default-school .navbar-nav > li:nth-child(7) > a:not(:has(.menu-icon)):before,
.menu-default-school .navbar-nav > li:nth-child(8) > a:not(:has(.menu-icon)):before,
.menu-default-school .navbar-nav > li:nth-child(9) > a:not(:has(.menu-icon)):before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 4px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.menu-default-school .navbar-nav > li:nth-child(1) > a:not(:has(.menu-icon)):before {
  background-image: url("../img/portal/menu/house.png");
  width: 56px;
  height: 56px;
}
.menu-default-school .navbar-nav > li:nth-child(2) > a:not(:has(.menu-icon)):before {
  background-image: url("../img/portal/menu/bee.png");
}
.menu-default-school .navbar-nav > li:nth-child(3) > a:not(:has(.menu-icon)):before {
  background-image: url("../img/portal/menu/rabbit.png");
}
.menu-default-school .navbar-nav > li:nth-child(4) > a:not(:has(.menu-icon)):before {
  background-image: url("../img/portal/menu/bird.png");
}
.menu-default-school .navbar-nav > li:nth-child(5) > a:not(:has(.menu-icon)):before {
  background-image: url("../img/portal/menu/owl.png");
}
.menu-default-school .navbar-nav > li:nth-child(6) > a:not(:has(.menu-icon)):before {
  background-image: url("../img/portal/menu/hedgehog.png");
}
.menu-default-school .navbar-nav > li:nth-child(7) > a:not(:has(.menu-icon)):before {
  background-image: url("../img/portal/menu/folder.png");
}
.menu-default-school .navbar-nav > li:nth-child(8) > a:not(:has(.menu-icon)):before {
  background-image: url("../img/portal/menu/elephant.png");
}
.menu-default-school .navbar-nav > li:nth-child(9) > a:not(:has(.menu-icon)):before {
  background-image: url("../img/portal/menu/books.png");
}

/* Purple / orange panel headers with flower accents */
.frame-article1 .panel-heading,
.panel.frame-article1 .panel-heading {
  background: var(--mamnon-purple) url("../img/portal/decor/ladybug.png") no-repeat right bottom !important;
  background-size: contain !important;
  border: none !important;
  border-radius: 4px 4px 0 0;
}
.frame-article2 .panel-heading,
.panel.frame-article2 .panel-heading {
  background: var(--mamnon-magenta) url("../img/portal/decor/bird.png") no-repeat right bottom !important;
  background-size: contain !important;
  border: none !important;
}
.frame-article3 .panel-heading,
.panel.frame-article3 .panel-heading {
  background: var(--mamnon-orange) url("../img/portal/decor/hoa.png") no-repeat right bottom !important;
  background-size: contain !important;
  border: none !important;
}
.frame-article1 .panel-heading .panel-title,
.frame-article2 .panel-heading .panel-title,
.frame-article3 .panel-heading .panel-title,
.frame-new .panel-heading .panel-title {
  color: #fff !important;
  font-weight: 700;
  text-align: center;
}
.frame-article1 .panel-heading .panel-title a,
.frame-article2 .panel-heading .panel-title a,
.frame-article3 .panel-heading .panel-title a,
.frame-new .panel-heading .panel-title a {
  color: #fff !important;
}
.frame-new .panel-heading,
.panel.frame-ne .panel-heading {
  background: var(--mamnon-purple) url("../img/portal/decor/hoa.png") no-repeat right center !important;
  background-size: 28px auto !important;
  border: none !important;
}
.frame-new .panel-body,
.frame-article1 .panel-body,
.frame-article2 .panel-body,
.frame-article3 .panel-body {
  border: 1px dashed #c5b3f0 !important;
  border-top: 0 !important;
  background: #fff;
}
.frame-article3 .panel-body {
  border-color: #ffd280 !important;
}

/* Footer accent */
.footer-section {
  border-top: 5px solid var(--mamnon-purple) !important;
  background: rgba(255, 255, 255, 0.92);
}

/* WELCOME owls row */
.mamnon-welcome-owls {
  text-align: center;
  margin: 12px 0 18px;
  padding: 8px 0;
}
.mamnon-welcome-owls img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* Feature cards row */
.mamnon-feature-row {
  margin: 10px 0 20px;
}
.mamnon-feature-row .feature-box {
  background: #fff;
  border: 1px solid #90caf9;
  border-radius: 6px;
  padding: 18px 12px 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 15px;
  min-height: 180px;
}
.mamnon-feature-row .icon-box {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}
.mamnon-feature-row .icon-box img.img-qc {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto;
}
.mamnon-feature-row .icon-box img.img-hover {
  display: none;
}
.mamnon-feature-row .feature-box:hover .icon-box img.img-qc {
  display: none;
}
.mamnon-feature-row .feature-box:hover .icon-box img.img-hover {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto;
}
.mamnon-feature-row h4 {
  margin: 12px 0 8px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: #0a76b8;
  line-height: 1.3;
}
.mamnon-feature-row h4 a {
  color: #0a76b8;
  text-decoration: none;
}
.mamnon-feature-row .feature-desc {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Quote / marquee bar */
.chu-chay {
  background: #fff8e1 !important;
  border-left: 4px solid var(--mamnon-orange) !important;
  color: #2e7d32;
}

/* Sidebar widget titles → purple */
.sidebar-box-title {
  background: var(--mamnon-purple) !important;
}

/* Dual-column activity / notice pairs */
.mamnon-dual-panels > [class*="col-"] {
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .menu-default-school .navbar-default {
    min-height: 36px !important;
  }
  .menu-default-school .navbar-default .navbar-nav > li > a .menu-icon img,
  .menu-default-school .navbar-default .navbar-nav > li > a .text-center img {
    height: 36px;
  }
  body {
    background-attachment: scroll !important;
  }
}


/* Search strip under nav — keep orange, not pale yellow */
.menu-default-school .search-menu,
.menu-default-school .navbar-default .search-menu {
  background: transparent !important;
}
.menu-default-school .navbar-collapse {
  background: transparent !important;
}
