/*
Theme Name: buv
Theme URI: https://yourdomain.com/
Author: Your Name
Author URI: https://yourdomain.com/
Description: Một theme WordPress lấy cảm hứng từ bố cục và phong cách BUV, sử dụng code, ảnh, nội dung giả.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buv
Tags: custom-theme, buv-style, slider, education, modern
*/

body {
    margin: 0;
    padding: 0;
    font-family: 'Urbanist', 'Arial', sans-serif;
    background: #f8f8f8;
    color: #222;
}

/* --- Bổ sung CSS slider & section --- */
.buv-slider-section {
    margin-bottom: 42px;
}
.buv-slider {
    position: relative;
}
.buv-slide {
    display: none;
    position: relative;
    transition: all 0.6s cubic-bezier(.61,-0.14,.61,1.13);
}
.buv-slide.active {
    display: block;
    animation: buvfade 0.9s;
}
@keyframes buvfade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.buv-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    font-size: 2rem;
    color: #e62829;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 9;
    box-shadow: 0 2px 6px #0001;
    transition: background 0.17s;
}
.buv-slider-arrow:hover {
    background: #fae2e2;
}
.buv-slider-arrow.prev {
    left: 24px;
}
.buv-slider-arrow.next {
    right: 24px;
}
.buv-slide-caption {
    position: absolute;
    bottom: 38px;
    left: 44px;
    background: rgba(230,40,41,0.84);
    color: #fff;
    padding: 18px 36px 14px 26px;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 7px 18px 12px 3px;
    max-width: 63vw;
    box-shadow: 0 2px 14px #0002;
}

/* Section block */
section h2 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
section {
    box-sizing: border-box;
}

/* Responsive menu */
@media (max-width:900px) {
    .buv-header-inner {
        flex-direction: column;
    }
    .buv-menu {
        margin-top: 20px;
    }
}
@media (max-width:700px) {
    .buv-slide-caption {
        font-size: 1.1rem;
        padding: 13px 10px;
        width: 90vw;
        left: 2vw;
    }
}
@media (max-width:500px) {
    .buv-header-inner {
        padding: 14px 7px;
    }
    section,
    div {
        padding: 0 7px;
    }
    .buv-slide-caption {
        font-size: .93rem;
        padding: 8px 3px;
    }
}
/* Đảm bảo menu ngang đẹp như hình ví dụ */
.buv-nav, .buv-nav ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
  align-items: center;
}

.buv-nav > li {
  position: relative;
}

.buv-nav > li > a {
  text-decoration: none;
  color: #111;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 10px;
  transition: color .15s;
}

.buv-nav > li > a:hover {
  color: #e62829;
}

.buv-nav li ul {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background: #fff;
  box-shadow: 0 2px 12px #0002;
  border-radius: 7px;
  min-width: 210px;
  z-index: 999;
  flex-direction: column;
  gap: 0;
}

.buv-nav li:hover > ul {
  display: flex;
}
.buv-nav li ul li a {
  color: #222 !important;
  padding: 10px 16px;
  font-weight: 500;
}
.buv-nav li ul li a:hover {
  background: #fae2e2;
}

@media (max-width: 900px) {
  .buv-nav, .buv-nav ul {
    flex-direction: column;
    gap: 0;
  }
}
.footer-col a,
.footer-col a * {
   pointer-events: auto !important;
   cursor: pointer !important;
}
.footer-float-btns {
  position: fixed;
  right: 22px;
  bottom: 62px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: auto !important;        /* Thêm */
  height: auto !important;       /* Thêm */
  pointer-events: none;          /* Các nút nổi mặc định không nhận sự kiện */
}
.footer-float-btns a {
  pointer-events: auto;          /* Chỉ các nút mới click được */
}
/* Căn giữa toàn bộ nội dung bài viết */
.single .entry-content, 
.page .entry-content {
    text-align: center;
}

/* Giữ lại căn trái cho heading hoặc đoạn đặc biệt nếu muốn
.single .entry-content h2, .single .entry-content h3 {
    text-align: left;
} */

/* Xử lý hình ảnh căn giữa nếu cần */
.aligncenter,
img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
#tuvan-status {min-height:28px; font-size:1rem; margin-top:18px; color:#fff; font-weight:600;}
#tuvan-status.success {color:#00e17d;}
#tuvan-status.error {color:#ffe27d; background:transparent;}
       .buv-topbar {
        background: #e62829;
        color: #fff;
        height: 24px;
        width: 100vw;
        display: flex;
        align-items: center;
        font-size: 15px;
        position: relative;
        z-index: 10;
        padding: 0;
        margin: 0;
      }
      .buv-topbar .container {
        width: 100vw;
        padding: 0;
        margin: 0;
      }
      .buv-topbar-left {
        display: flex;
        align-items: center;
        gap: 50px;
        height: 15px;
        padding-left: 12px;
      }
      .buv-topbar-left a {
        color: #fff !important;
        text-decoration: none;
        font-size: 12px;
        line-height: 15px;
      }
      .buv-topbar-left span {
        display: flex;
        align-items: center;
        height: 15px;
      }
