/* ===== style.css ===== */
/*
Theme Name: NguyenTheVinh
Theme URI: https://NguyenTheVinh.com/
Author: Nguyễn Thế Vinh
Author URI: https://NguyenTheVinh.com/
Description: Custom portfolio theme for LogoMuses, optimized for responsive design, performance and security.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ngthevinh
Tags: portfolio, cv, design, graphic-designer, responsive, clean, modern
*/

/* ==================================================
= Root Variables =
================================================== */
:root {
  --primary-color: #0171D5;
  --secondary-color: #2296FE;
  --color-1: #F8F9FA;
  --color-2: #DDD;
  --text-color-1: #333;
  --text-color-2: #666;
  --text-color-3: #999;

  --header-border: #0061b7;
  --menu-border: #0061b7;
  --color-white: #ffffff;

  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --border-radius-3: 3px;
  --border-radius-5: 5px;
}

/* ==================================================
= Reset & Global Styles =
================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
html, body {
  height: 100%;
}
body {
  color: var(--text-color-1);
  font-size: 1.125rem;
  line-height: 1.6;
 display: flex;
 flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  padding-top: 112px;
}
body:not(.admin-bar) {
  padding-top: 80px;
}

/* ✅ Giữ đúng behavior trang chủ: hero full height, header overlay lên hero */
body:is(.page-template-front-page-php,.front-page) {
  padding-top: 0;
}

/* ==================================================
= Typography =
================================================== */
h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin: 3rem 0 1.5rem;
}
h2 {
  font-size: 2rem;
  line-height: 1.35;
  margin: 2.8rem 0 1.3rem;
}
#logo h2 {
  line-height: 40px;
  margin: 0;
}
h3 {
  font-size: 1.75rem;
  line-height: 1.4;
  margin: 2.6rem 0 1.2rem;
}
h4 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 2.4rem 0 1rem;
}
h5 {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 2.2rem 0 0.9rem;
}
h6 {
  font-size: 1rem;
  line-height: 1.6;
  margin: 2rem 0 0.8rem;
}
ul {
  list-style: disc inside;
}
.main-container li::marker {
  color: var(--accent-color);
}
.main-container li {
  padding: 5px 0 15px 0;
}
a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.2s ease-in-out;
}
p {
  margin-bottom: 1rem;
}

/* === Ảnh hiển thị chung trong theme === */
img {
  border-radius: 5px;
  transition: border-radius 0.2s ease;
}

.logo img,
.custom-logo-link img {
  border-radius: 0; /* giữ nguyên góc vuông cho logo */
}

/* Bo góc cho tất cả iframe YouTube */
iframe[src*="youtube.com"],
iframe[src*="youtu.be"],
.wp-block-embed__wrapper iframe {
  border-radius: 5px;
  overflow: hidden;
}

/* ==================================================
= Utility Classes =
================================================== */
.page-content {
  margin-bottom: 2.4rem;
}

.wp-block-image img {
  margin-top: 10px;
  margin-bottom: 20px;
}
.archive-title,
.content-title {
  text-align: center;
  margin-bottom: 2rem;
}
.text-center {
  text-align: center;
}
.mt-2 {
  margin-top: 2rem;
}
.mb-2 {
  margin-bottom: 2rem;
}

/* ==================================================
= Layout: Container & Grid =
================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.row {
  display: flex;
  flex-wrap: wrap;
}
.col {
  flex: 1;
  padding: 1rem;
}
.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}
.col-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

/* ==================================================
= Layout: Full Height Wrapper =
================================================== */
.wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}
main {
  width: 100%;
  padding-bottom: 4rem;
}

/* ==================================================
= Buttons =
================================================== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  font-size: 1.125rem;
  color: var(--color-white);
  background-color: var(--primary-color);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  min-width: 140px;
  border-radius: var(--border-radius-3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: var(--secondary-color);
}

/* ==================================================
= Footer =
================================================== */
#site-footer {
  background-color: var(--secondary-color);
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
  color: var(--color-white);
  margin-top: auto;
}

/* ================================
📌 Footer Widgets (Top)
================================ */
#site-footer .footer-widgets {
  padding: 3rem 0 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#site-footer .footer-widgets-grid {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

#site-footer .footer-widget-col {
  flex: 1;
  min-width: 0;
}

#site-footer .footer-cols-1 .footer-widget-col {
  flex: 0 0 100%;
  max-width: 100%;
}

#site-footer .footer-cols-2 .footer-widget-col {
  flex: 0 0 calc(50% - 1.25rem);
  max-width: calc(50% - 1.25rem);
}

#site-footer .footer-cols-3 .footer-widget-col {
  flex: 0 0 calc(33.333% - 1.666rem);
  max-width: calc(33.333% - 1.666rem);
}

#site-footer .footer-widget .widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

#site-footer .footer-widget,
#site-footer .footer-widget p,
#site-footer .footer-widget li {
  color: rgba(255, 255, 255, 0.9);
}

#site-footer .footer-widget a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

#site-footer .footer-widget a:hover {
  color: #ffffff;
  text-decoration: underline;
}

#site-footer .footer-widget ul,
#site-footer .footer-widget ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* ================================
📌 Footer Bottom (Giữ footer-inner hiện tại)
================================ */
#site-footer .footer-bottom {
  padding: 0.625rem 0;
  background: var(--primary-color);
}
#site-footer a {
  color: var(--color-white);
}
.footer-inner{
  display: flex;
  align-items: center;
  min-height: 1.875rem;
}
.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
.footer-social li {
  display: inline-block;
}
.footer-social a {
  color: #ffffff;
  font-size: 1.2rem;
  text-decoration: none;
}
.footer-social a:hover {
  color: var(--primary-color);
}

/* ==================================================
📌 1. ARCHIVE – Style cho danh sách thiết kế
================================================== */
/* (Viết riêng tại design.css) */

/* ==================================================
📌 2. ITEM – Style riêng cho từng item thiết kế
================================================== */
/* (Viết riêng tại design.css) */

/* ================================================
📌 Hover Border Effect for Item Thumbnails
================================================== */
.image-container {
  width: 100%;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
}

.image-container::before {
  content: '';
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  right: 0.625rem;
  bottom: 0.625rem;
  border: 1px solid white;
  pointer-events: none;
  opacity: 0.7;
  transition: all 0.5s ease;
}

.image-container:hover::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
}

/* ==================================================
📌 3. SINGLE – Layout chi tiết trang thiết kế
================================================== */
/* (Viết riêng tại design.css) */

/* ==================================================
📌 4. RELATED – Carousel các thiết kế liên quan
================================================== */
/* (Viết riêng tại design.css) */

/* ================================================
📌 Responsive Embed YouTube/Vimeo (Gutenberg block)
================================================== */
.wp-block-embed {
  margin: 2rem 0;
  max-width: 100%;
}

.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Tỷ lệ 16:9 */
  height: 0;
  overflow: hidden;
}

.wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ================================================
📌 SIDEBAR – Giao diện thanh bên phải
================================================ */
/* ✅ Dùng chung layout cho cả sidebar và project meta */


.sidebar-area {
  width: 25%;
  position: sticky;
  top: 11rem;
  align-self: flex-start;
}

.site-sidebar {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color-1);
}

.site-sidebar .widget_search label {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

.site-sidebar .widget {
  margin-bottom: 2.5rem;
}

/* ✅ Tiêu đề sidebar */
.site-sidebar h2,
.site-sidebar .widget-title,
.site-sidebar .wp-block-heading {
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid var(--color-2);
  padding-bottom: 0.375rem;
  margin-bottom: 1rem;
/*  color: var(--primary-color);*/
}

/* ✅ Danh sách: giữ nguyên font mặc định, bỏ dấu chấm */
.site-sidebar ul,
.site-sidebar ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.site-sidebar li {
  margin-bottom: 0.5rem;
}

/* ✅ Link */
.site-sidebar li a {
  color: var(--text-color-1);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.125rem;
  line-height: 1.6;
}

.site-sidebar li a:hover {
  color: var(--primary-color);
}

/* ✅ FORM TÌM KIẾM - Sửa lỗi submit bị co lại */
.site-sidebar .widget_search form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.site-sidebar .widget_search input[type="search"],
.site-sidebar .widget_search input[type="text"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-2);
  border-radius: var(--border-radius-3);
  font-size: 1rem;
}

.site-sidebar .widget_search input[type="submit"] {
  padding: 0.5rem 1rem;
  height: 100%;
  font-size: 1rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-3);
  cursor: pointer;
  white-space: nowrap;
}

.site-sidebar .widget_search input[type="submit"]:hover {
  background-color: var(--secondary-color);
}


/* ==================================================
🎨 5. SOCIALS WIDGET
================================================== */

  .footer-social a[href*="nangtho.vn"] {
    background-color: orange !important; /* ✅ FIX cú pháp */
  }

.footer-social a {
  border-radius: 50%;
  color: #fff !important;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* ==================================================
🎨 5.1 BLOCK
================================================== */
.wp-block-image :where(figcaption) {
  color: var(--text-color-3);
  font-size: 1rem;
  text-align: right;
  font-style: italic;
  margin-top: 0;
}

ul.wp-block-list li {
	padding: 5px 0 !important;
}

/* ==================================================
📱 6. RESPONSIVE – Tablet (≤ 1440px)
================================================== */
@media screen and (max-width: 1440px) {
  .footer-social ul {
    padding-right: 7rem;
  }
	
  #site-footer .footer-widget ul,
  #site-footer .footer-widget ol {
    float: left;
  }
} /* ✅ FIX: đóng media 1440 đúng chỗ */

/* ==================================================
📱 7. RESPONSIVE – Mobile (≤ 768px)
================================================== */
@media (max-width: 768px) {
  .row {
    gap: 0;
  }
	
  .col-6,
  .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* ✅ FIX: admin bar mobile cao hơn (WP thường ~46px) */
  body {
    padding-top: 80px; /* giữ đúng offset cơ bản */
  }

  body.admin-bar {
    padding-top: calc(80px + 46px);
  }

  /* ✅ Giữ đúng behavior trang chủ */
  body:is(.page-template-front-page-php,.front-page) {
    padding-top: 0;
  }

  /* ✅ Footer căn lại cho hợp lý */

  #site-footer .footer-widgets {
    padding: 2.25rem 0 1.75rem;
  }

  #site-footer .footer-widgets-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  #site-footer .footer-widget-col {
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .footer-left {
    text-align: center;
	padding-bottom: 0.625rem;
    margin-bottom: 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
/*     border-bottom: 1px dashed var(--color-2); */
  }

  .footer-right {
    text-align: left;
    margin-bottom: 0.2rem;
  }

  .footer-social ul {
    justify-content: flex-start;
    padding-right: 0;
  }

  .footer-social ul li {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  }

  /* 🎨 Style Socials Widget */
  .footer-social a {
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
  }

  .wp-block-social-link.wp-social-link:hover {
    transform: scale(1.1) !important;
  }

  .footer-social a svg {
    width: 26px !important;
    height: 26px !important;
    flex-shrink: 0;         /* ✅ không bị co trong flex */
    display: block;         /* ✅ loại bỏ inline spacing */
    vertical-align: middle; /* ✅ tránh méo do căn giữa theo text */
  }
}


/* ===== assets/css/menu.css ===== */
/* ==================================================
= Header & Logo Styles =
================================================== */
.site-header {
  background-color: var(--primary-color);
  border-bottom: 1px solid var(--header-border);
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

body:not(.admin-bar) .site-header {
  top: 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 0 1 auto;
  height: 100%;
}

.logo img {
  max-height: 36px;
  height: auto;
  width: auto;
}

.site-logo {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  line-height: 1;
}

.site-logo a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

.site-tagline {
  font-size: 0.74rem;
/*  letter-spacing: 1px;*/
  color: var(--color-white);
  margin: 2px 0 0 0;
  line-height: 1.2;
  display: block;
  text-align: center;
  opacity: 0.6;
}

.site-logo i {
  margin-right: 4px;
  color: var(--color-white);
  font-size: 0.8rem;
}

.site-tagline i {
/*  margin-right: 5px;*/
/*  margin: 0 5px;*/
}

/* ==================================================
= Main Menu Styles =
================================================== */
#main-menu {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

#main-menu li {
  position: relative;
  border-left: 1px solid var(--menu-border);
}

#main-menu li:last-child {
  border-right: 1px solid var(--menu-border);
}

#main-menu li > a {
  text-decoration: none;
  color: var(--color-white);
  font-weight: 400;
  padding: 0.7rem 1.5rem;
  display: block;
  transition: all 0.3s ease;
}

#main-menu > li:hover > a,
#main-menu > li.current-menu-item > a {
  background-color: var(--secondary-color);
}


/* ==================================================
= Submenu Styles =
================================================== */
#main-menu li ul {
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
  background-color: var(--color-1);
  border: 1px solid var(--color-2);
  min-width: 180px;
  padding: 0;
  list-style: none;
  z-index: 10;
}

#main-menu li:hover > ul {
  margin-top: 10px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#main-menu li ul li {
  border-bottom: 1px solid var(--color-2);
  border-left: none;
}

#main-menu li ul li:last-child {
  border-bottom: none;
  border-right: none;
}

#main-menu li ul li a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--text-color-1);
  text-decoration: none;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

#main-menu li ul li:hover > a,
#main-menu li ul li.current-menu-item > a {
  color: var(--primary-color);
}


/* ==================================================
= Submenu Indicator (⬇️)
================================================== */
.has-submenu > a::after {
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.8rem;
  margin-left: 0.4rem;
  display: inline-block; /* Bắt buộc để xoay được */
  transition: transform 0.4s ease; /* Hiệu ứng mượt khi xoay */
}

.has-submenu:hover > a::after {
  transform: rotate(180deg);
}


/* ==================================================
= Hamburger Toggle Button =
================================================== */
#menu-toggle {
  display: none;
}

#menu-toggle .bar {
  position: absolute;
  width: 24px;
  height: 3px;
  background-color: var(--text-color-1);
  border-radius: 2px;
  transition: all 0.3s ease;
}

#menu-toggle .bar:nth-child(1) { top: 8px; }
#menu-toggle .bar:nth-child(2) { top: 14.5px; }
#menu-toggle .bar:nth-child(3) { top: 21px; }

#menu-toggle.open .bar:nth-child(1),
#menu-toggle.open .bar:nth-child(3) {
  top: 14.5px;
}

#menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg);
}
#menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg);
}


/* ==================================================
= Menu Animation
================================================== */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==================================================
📱 5. RESPONSIVE – Tablet (≤ 1024px)
================================================== */
/* Thêm nếu cần */


/* ==================================================
📱 6. RESPONSIVE – Mobile (≤ 960px)
================================================== */
@media (max-width: 960px) {
  .site-header {
    height: 60px;
    border-bottom: 5px solid var(--secondary-color);
  }

  .header-container {
    height: 60px;
    padding: 0;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    padding: 0;
  }

  .site-logo {
    margin-left: 0;
  }

  #menu-toggle {
    display: flex;
    margin-bottom: 3px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 32px;
    height: 32px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
  }

  #menu-toggle .bar {
    background-color: #fff;
  }

  #main-menu {
    display: none;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    margin: 0;
    border-top: 1px solid var(--color-2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 999;
  }

  #main-menu.active {
    display: flex;
  }

  #main-menu li {
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--color-2);
    text-align: left;
    margin: 0;
  }

  #main-menu li:last-child {
    border-bottom: none;
    border-right: none;
  }

  #main-menu li > a {
    color: var(--text-color-1);
    background-color: #fff;
    display: block;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  #main-menu > li.current-menu-item > a,
  #main-menu > li > a:hover,
  #main-menu > li.submenu-open > a {
    color: var(--primary-color);
    background-color: #fff;
  }

  #main-menu li ul {
    position: static;
    background: transparent;
    padding: 0;
    margin: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    display: none;
  }

  #main-menu li:hover > ul {
    margin-top: 0;
  }

  #main-menu li.submenu-open > ul {
    display: block;
  }

  #main-menu li ul li {
    border: none;
  }

  #main-menu li ul li:last-child {
    padding-bottom: 30px;
  }

  #main-menu li ul li a {
    padding-left: 40px;
    font-size: 0.95rem;
    color: var(--text-color-1);
    background-color: transparent;
  }

  #main-menu li ul li a:hover {
    color: var(--primary-color);
  }

  .has-submenu > a {
    padding-right: 1rem;
  }

   .has-submenu > a::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.75rem;
    margin-left: 0.4rem;
  }
}

/* ==================================================
📱 7. ADMIN BAR FIX (783PX TRỞ LÊN)
================================================== */
@media (min-width: 783px) {
  body.admin-bar .site-header {
    top: 32px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}


/* ===== assets/css/design.css ===== */
/* ==================================================
📁 design.css – Style chính cho Design
Theme: NgTheVinh
================================================== */


/* ================================================
📌 1. ARCHIVE – Danh sách Design
================================================ */
/* -----------------------------------------------
📄 Pagination trong danh sách thiết kế (ARCHIVE)
------------------------------------------------ */
.design-pagination {
  margin-top: 1.25rem;
  text-align: center;
}

.design-pagination .page-numbers {
  display: inline-block;
  padding: 0.4em 0.9em;
  margin: 0 0.25rem;
  border: 1px solid var(--primary-color, #222);
  border-radius: var(--border-radius-3);
  color: var(--primary-color, #222);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.design-pagination .page-numbers:hover,
.design-pagination .page-numbers:focus {
  background-color: var(--primary-color, #222);
  color: #fff;
}

.design-pagination .page-numbers.current {
  background-color: var(--primary-color, #222);
  color: #fff;
  pointer-events: none;
}

/* 🔽 Dành cho taxonomy-design_category.php */
.design-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.875rem;
  margin-top: 2rem;
}

.design-archive-grid .design-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.design-archive-grid .design-caption {
  color: var(--text-color-1);
  text-align: center;
}
.design-archive-grid .design-caption a {
  text-decoration: none;
  color: inherit;
}

.design-title {
  margin-top: 5px;
  text-align: center;
}

/* ✅ Section Subtitle cho trang taxonomy Design Category */
body.tax-design_category .section-subtitle,
body.taxonomy-design_category .section-subtitle {
  text-align: center;
  margin: 0 auto;
  max-width: 720px;
  color: #999;
}


/* ================================================
📌 2. ITEM – Một Design trong danh sách
================================================ */
.design-item {
  /* Bỏ trống để bạn tuỳ chỉnh nếu cần */
}

.design-item:hover {
  /* Bỏ trống để bạn tuỳ chỉnh nếu cần */
}

.design-thumb img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.design-excerpt {
  color: #555;
  margin-top: 0.5rem;
}

/* ✅ NEW: Cho phép <a> bao cả ảnh và text */
.design-thumb-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.design-thumb-link:hover .design-title {
  color: var(--primary-color);
}


/* ================================================
📌 3. SINGLE – Chi tiết Design (2 Cột)
================================================ */
.design-two-column {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.column-primary {
  width: 75%;
}

.column-secondary {
  width: 25%;
  position: sticky;
  top: 8rem;
  align-self: flex-start;
}

/* ✅ Project Meta - cột bên phải Media */
.project-meta-col {
  width: 25%;
  align-self: center;
}

/* ✅ Image + Video upload */
.image-wrapper img,
.image-wrapper video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ✅ Video upload từ Media */
.video-uploaded {
  margin-bottom: 1.5rem;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.video-uploaded video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-5);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ✅ Video YouTube/Vimeo */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 1rem;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-icon-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}

.video-icon-svg svg {
  width: 64px;
  height: 64px;
}


/* ================================================
📌 Chi tiết thông tin bên phải (Project, Tags, Category)
================================================ */
.design-details {
  color: var(--text-color-1);
  line-height: 1.7;
}

.design-details h2 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.project-meta {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.project-meta li {
/*  margin-bottom: 0.5rem;*/
  line-height: 1.5;
  border-bottom: 1px dashed var(--color-2);
  padding: 1rem 0;
}

.project-meta li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.project-meta li strong {
  font-weight: 600;
  margin-right: 4px;
  color: var(--text-color-1);
}

.design-category {
  border-top: 1px dashed var(--color-2);
  margin-top: 20px;
  padding-top: 20px;
  font-size: 1rem;
}

.design-category a {
  text-decoration: none;
  color: var(--primary-color);
}

.design-category a:hover {
  text-decoration: underline;
}

.design-tags {
  padding-top: 10px;
  font-size: 1rem;
}

.design-tags a,
.tag-separator {
  text-decoration: none;
  color: var(--text-color-3);
}

.design-tags a:hover {
  color: var(--primary-color);
}

/* ================================================
📌 Ghi chú liên hệ ở cuối single design
================================================ */
.portfolio-cta {
	margin: 0;
}

.design-contact-note {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  border: 1px dashed var(--color-2);
  background-color: var(--color-1);
  font-style: italic;
  border-radius: var(--border-radius-5);
  font-size: 1rem;
}

.highlight-phone {
  color: var(--primary-color);
}

/* ================================================
📌 4. RELATED – Các thiết kế khác
================================================ */
.related-design {
  margin-top: 4rem;
}

.related-design .related-title {
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid var(--color-2);
  padding-bottom: 0.375rem;
  margin-bottom: 1rem;
}

.carousel-wrapper {
  position: relative;
  overflow: visible;
}

.carousel-track {
  display: flex;
  gap: 30px;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 calc(33.33% - 20px);
  max-width: calc(33.33% - 20px);
  background: #fff;
  text-align: center;
}

.related-thumb img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.carousel-item a {
  text-decoration: none;
  color: inherit;
}

.carousel-item a:hover .related-caption {
  color: var(--primary-color);
}

.carousel-item .related-title {
  margin-top: 0.5rem;
}

.carousel-btn {
  position: absolute;
  top: -45px;
  bottom: 0;
  margin: auto;
  height: 40px;
  width: 40px;
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.carousel-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.carousel-btn.prev-btn {
  left: -60px;
}

.carousel-btn.next-btn {
  right: -60px;
}

/* ================================================
📱 5. RESPONSIVE – Tablet (≤ 1024px)
================================================ */
@media (max-width: 1024px) {
  .design-two-column {
    flex-direction: column;
  }

  .column-primary,
  .column-secondary,
  .project-meta-col {
    width: 100%;
  }

  .column-secondary {
    position: relative;
    top: auto;
    margin-top: 2rem;
  }

  /* ✅ Carousel – 2 item trên tablet */
  .carousel-item {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  /* ✅ Grid – ARCHIVE 2 cột */
  .design-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ✅ Video upload từ Media */
  .video-uploaded video {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-5);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  /* ✅ Video embed từ YouTube/Vimeo */
  .video-embed {
    padding-bottom: 56.25%;
    height: 0;
  }

  .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}


/* ================================================
📱 6. RESPONSIVE – Mobile (≤ 768px)
================================================ */
@media (max-width: 768px) {
	
  .design-archive-grid {
    gap: 2.5rem;
  }
	
  /* ✅ Carousel – 1 item toàn chiều ngang */
  .carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .carousel-btn.prev-btn {
    left: -30px;
  }

  .carousel-btn.next-btn {
    right: -30px;
  }

  /* ✅ Grid – ARCHIVE 1 cột */
  .design-archive-grid {
    grid-template-columns: 1fr;
  }

  /* ✅ Video upload từ Media */
  .video-uploaded {
    margin-bottom: 1.25rem;
  }

  .video-uploaded video {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-5);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  }

  /* ✅ Video embed từ YouTube/Vimeo */
  .video-embed {
    padding-bottom: 56.25%;
    height: 0;
    position: relative;
    margin-bottom: 1rem;
  }

  .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  /* ✅ Video icon play */
  .video-icon-svg svg {
    width: 48px;
    height: 48px;
  }
}


/* ===== assets/css/widget-latest-designs.css ===== */
/* ==================================================
📁 widget-latest-designs.css – Widget Thiết kế mới
Theme: NgTheVinh
================================================== */


/* ================================================
📌 1. Widget Thiết kế mới – Layout chính
================================================ */
.widget_ngthevinh_latest_designs ul.latest-designs-widget {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.widget_ngthevinh_latest_designs ul.latest-designs-widget li.latest-design-item {
  display: flex;
  align-items: center;            /* ✅ Căn giữa theo chiều cao */
  gap: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--color-2);
  padding-bottom: 1rem;
}

.widget_ngthevinh_latest_designs ul.latest-designs-widget li.latest-design-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}


/* ================================================
📌 1.1 Giao diện ảnh lớn (full chiều ngang)
================================================ */
.widget_ngthevinh_latest_designs .latest-design-item.full-width {
  flex-direction: column;
  align-items: flex-start;
}

.widget_ngthevinh_latest_designs .latest-design-item.full-width .design-thumb {
  width: 100%;
  height: auto;
  max-height: 220px;
  overflow: hidden;
}

.widget_ngthevinh_latest_designs .latest-design-item.full-width .design-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* ================================================
📌 2. Thumbnail của thiết kế
================================================ */
.widget_ngthevinh_latest_designs .design-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--border-radius-3);
}

.widget_ngthevinh_latest_designs .design-thumb img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.widget_ngthevinh_latest_designs .design-thumb:hover img {
  transform: scale(1.1);
}


/* ================================================
📌 3. Tiêu đề thiết kế
================================================ */
.widget_ngthevinh_latest_designs .design-title {
  flex: 1;
  display: flex;
  align-items: center;          /* ✅ Căn giữa với thumbnail */
  font-size: 1.125rem;
  line-height: 1.4;
  text-align: left;
  margin-top: 0;
}

.widget_ngthevinh_latest_designs .design-title a {
  color: var(--text-color-1, #222);
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget_ngthevinh_latest_designs .design-title a:hover {
  color: var(--primary-color, #222);
}


/* ================================================
📱 4. Responsive – Tablet
================================================ */
@media (max-width: 1024px) {
  .widget_ngthevinh_latest_designs ul.latest-designs-widget li.latest-design-item {
    gap: 0.5rem;
  }

  .widget_ngthevinh_latest_designs .design-thumb {
    width: 60px;
    height: 60px;
  }

  .widget_ngthevinh_latest_designs .latest-design-item.full-width .design-thumb {
    max-height: 180px;
  }
}


/* ================================================
📱 5. Responsive – Mobile
================================================ */
@media (max-width: 768px) {
  .widget_ngthevinh_latest_designs ul.latest-designs-widget li.latest-design-item {
    flex-direction: row;
    align-items: center;
  }

  .widget_ngthevinh_latest_designs .design-title {
    font-size: 0.95rem;
  }

  .widget_ngthevinh_latest_designs .design-thumb {
    width: 50px;
    height: 50px;
  }

  .widget_ngthevinh_latest_designs .latest-design-item.full-width .design-thumb {
    max-height: 160px;
  }
}


/* ===== assets/css/floating-icons.css ===== */
/* ==================================================
📁 floating-icons.css – Floating Contact Icons
Theme: NgTheVinh
================================================== */


/* ================================================
📌 1. FLOATING ICONS – Vị trí và bố cục
================================================ */
#floating-contacts {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 999;
}


/* ================================================
📌 2. ICON STYLE – Giao diện từng nút liên hệ
================================================ */
.contact-icon {
  display: flex;
  align-items: center;
  background-color: var(--primary-color, #333);
  color: #fff;
  padding: 0.3em 0.8em 0.3em 0.3em;
  border-radius: 30px 0 0 30px;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.3s ease;
  position: relative;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.contact-icon i {
  font-size: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5em;
}


/* Màu nền riêng cho từng loại */
.email-icon {
  background-color: var(--secondary-color);
}

.phone-icon {
  background-color: #249800;
}

.zalo-icon {
  background-color: #006AF5;
}

.zalo-svg-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1.625rem;
  height: 1.625rem;
  margin-right: 8px;
}


/* ================================================
📌 3. HOVER EFFECT – Hiệu ứng khi hover
================================================ */
.contact-icon:hover {
  transform: translateX(-5px);
}

.contact-icon::after {
  content: '';
  position: absolute;
  top: 0;
  right: -5px;
  width: 5px;
  height: 100%;
  background-color: inherit;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}


/* ================================================
📌 4. LABEL – Text bên phải icon
================================================ */
.contact-label {
  display: inline-block;
  white-space: nowrap;
}


/* ================================================
📌 5. BACK TO TOP – Tách riêng 2 phiên bản
================================================ */
/* Mặc định (PC ≥ 1441px) */
.responsive-only {
  display: none;
}

.desktop-only {
  display: flex;
  position: fixed;
  bottom: 0.7rem;
  right: 2rem;
  z-index: 999;
  background-color: var(--primary-color, #333);
  color: #fff;
  border-radius: 50%;
  padding: 0.65rem;
  opacity: 0.25;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
}

.desktop-only:hover {
  opacity: 1;
}

.desktop-only i {
  font-size: 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-only .contact-label {
  display: none;
}


/* ================================================
📱 6. RESPONSIVE – Standard Desktop (≤ 1440px)
================================================ */
@media screen and (max-width: 1440px) {
  #floating-contacts {
    top: auto;
    bottom: 0.5rem;
    right: 5%;
    transform: none;
    flex-direction: row;
    gap: 0.75rem;
  }

  .email-icon,
  .contact-label,
  .contact-icon::after {
    display: none;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background-color: var(--primary-color, #333);
    position: relative;
    transition: transform 0.1s ease;
  }

  .contact-icon i {
    font-size: 1.25rem;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  }

  .phone-icon i {
    background-color: #249800;
  }

  .zalo-svg-icon {
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
    display: block;
    object-fit: contain;
  }

  .contact-icon:hover {
    transform: scale(1.05);
  }

  .responsive-only {
    display: flex;
    background-color: var(--secondary-color);
  }

  .desktop-only {
    display: none;
  }
}


/* ================================================
📱 7. RESPONSIVE – Mobile (≤ 768px)
================================================ */
@media (max-width: 768px) {
  #floating-contacts {
    bottom: 1.25rem;
  }
}
