/**
Theme Name: OTA DatXeViet Theme
Author: DatXeVietnam.vn
Author URI: https://datxevietnam.vn
Description: Custom WordPress theme for OTA booking system. Standalone theme with custom layout system and navbar. Features include booking forms, route management, operator management, and search functionality.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: otadatve-theme
*/

/**
 * Inter Font Face Declarations
 * Custom font loading for Inter font family
 */

/* 300 - Light */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/wp-content/themes/otadatve-theme/fonts/inter-v20-latin_vietnamese-300.woff2') format('woff2');
}

/* 400 - Regular (Mặc định) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/wp-content/themes/otadatve-theme/fonts/inter-v20-latin_vietnamese-regular.woff2') format('woff2');
}

/* 500 - Medium */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/wp-content/themes/otadatve-theme/fonts/inter-v20-latin_vietnamese-500.woff2') format('woff2');
}

/* 600 - SemiBold */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/wp-content/themes/otadatve-theme/fonts/inter-v20-latin_vietnamese-600.woff2') format('woff2');
}

/* 700 - Bold */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/wp-content/themes/otadatve-theme/fonts/inter-v20-latin_vietnamese-700.woff2') format('woff2');
}

/* Áp dụng chung */
body,
p,
a,
h1,
h2,
h3,
h4,
h5,
h6,
li,
input {
  font-family: 'Inter', sans-serif;
}

/**
 * Layout setup 
 * Prevents overflow and ensures proper layout constraints
 */

/* Global box-sizing for all elements */
*,
*::before,
*::after {
  box-sizing: border-box;
}



body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/**
 * Button Component Classes
 * Base button styles with variants and sizes
 */

/* Base Button Styles */
.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button Variants */
.btn-default {
  background-color: rgb(var(--default));
  color: rgb(var(--background));
}

.btn-primary {
  background-color: rgb(var(--primary));
  color: rgb(var(--background));
}

.btn-secondary {
  background-color: rgb(var(--secondary));
  color: rgb(var(--background));
}

.btn-success {
  background-color: rgb(var(--success-bg));
  color: rgb(var(--background));
}

.btn-warning {
  background-color: rgb(var(--warning));
  color: rgb(var(--background));
}

.btn-danger {
  background-color: rgb(var(--danger));
  color: rgb(var(--background));
}

/* Button Sizes */
.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-md {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
}

/* Button Outline Variants */
.btn-outline-default {
  background-color: transparent;
  color: rgb(var(--default));
  border: 2px solid rgb(var(--default));
}

.btn-outline-default:hover {
  background-color: rgb(var(--default));
  color: rgb(var(--background));
}

.btn-outline-primary {
  background-color: transparent;
  color: rgb(var(--primary));
  border: 2px solid rgb(var(--primary));
}

.btn-outline-primary:hover {
  background-color: rgb(var(--primary));
  color: rgb(var(--background));
}

.btn-outline-secondary {
  background-color: transparent;
  color: rgb(var(--secondary));
  border: 2px solid rgb(var(--secondary));
}

.btn-outline-secondary:hover {
  background-color: rgb(var(--secondary));
  color: rgb(var(--background));
}

.btn-outline-success {
  background-color: transparent;
  color: rgb(var(--success));
  border: 2px solid rgb(var(--success));
}

.btn-outline-success:hover {
  background-color: rgb(var(--success));
  color: rgb(var(--background));
}

.btn-outline-warning {
  background-color: transparent;
  color: rgb(var(--warning));
  border: 2px solid rgb(var(--warning));
}

.btn-outline-warning:hover {
  background-color: rgb(var(--warning));
  color: rgb(var(--background));
}

.btn-outline-danger {
  background-color: transparent;
  color: rgb(var(--danger));
  border: 2px solid rgb(var(--danger));
}

.btn-outline-danger:hover {
  background-color: rgb(var(--danger));
  color: rgb(var(--background));
}

/* Button Ghost Variants (transparent background) */
.btn-ghost-default {
  background-color: transparent;
  color: rgb(var(--default));
}

.btn-ghost-default:hover {
  background-color: rgba(var(--default) / 0.1);
}

.btn-ghost-primary {
  background-color: transparent;
  color: rgb(var(--primary));
}

.btn-ghost-primary:hover {
  background-color: rgba(var(--primary) / 0.1);
}

.btn-ghost-secondary {
  background-color: transparent;
  color: rgb(var(--secondary));
}

.btn-ghost-secondary:hover {
  background-color: rgba(var(--secondary) / 0.1);
}

.btn-ghost-success {
  background-color: transparent;
  color: rgb(var(--success));
}

.btn-ghost-success:hover {
  background-color: rgba(var(--success) / 0.1);
}

.btn-ghost-warning {
  background-color: transparent;
  color: rgb(var(--warning));
}

.btn-ghost-warning:hover {
  background-color: rgba(var(--warning) / 0.1);
}

.btn-ghost-danger {
  background-color: transparent;
  color: rgb(var(--danger));
}

.btn-ghost-danger:hover {
  background-color: rgba(var(--danger) / 0.1);
}

/**
 * SVG Icon Styles
 * Styles for SVG icons loaded via get_theme_icon() function
 */

/* Base SVG icon styles */
svg.ota-icon-svg,
.ota-icon-svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
  stroke: currentColor;
  fill: none;
}

/* Icon size variants */
.ota-icon-svg.ota-icon-sm {
  width: 16px;
  height: 16px;
}

.ota-icon-svg.ota-icon-md {
  width: 24px;
  height: 24px;
}

.ota-icon-svg.ota-icon-lg {
  width: 32px;
  height: 32px;
}

/* Icon color variants */
.ota-icon-svg.ota-icon-primary {
  stroke: rgb(var(--primary));
  color: rgb(var(--primary));
}

.ota-icon-svg.ota-icon-secondary {
  stroke: rgb(var(--secondary));
  color: rgb(var(--secondary));
}

.ota-icon-svg.ota-icon-success {
  stroke: rgb(var(--success));
  color: rgb(var(--success));
}

.ota-icon-svg.ota-icon-warning {
  stroke: rgb(var(--warning));
  color: rgb(var(--warning));
}

.ota-icon-svg.ota-icon-danger {
  stroke: rgb(var(--danger));
  color: rgb(var(--danger));
}

/* Icon hover effects */
.ota-icon-svg:hover {
  transform: scale(1.1);
}

/* Icon in button */
.btn svg.ota-icon-svg {
  margin-right: 0.5rem;
  vertical-align: middle;
}

/**
 * Form Component Classes
 * Reusable input, select, label, and field container styles
 */

/* OTA Field Container */
.ota-field {
  flex: 2 !important;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Label Styles */
.ota-field label,
label.ota-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: rgb(var(--foreground));
  line-height: 1.5;
}

.ota-field label strong,
label.ota-label strong {
  font-weight: 600;
}

/* Base Input Styles */
.ota-field input[type="text"],
.ota-field input[type="email"],
.ota-field input[type="password"],
.ota-field input[type="number"],
.ota-field input[type="tel"],
.ota-field input[type="date"],
.ota-field input[type="time"],
.ota-field input[type="datetime-local"],
.ota-field textarea,
input.ota-input,
textarea.ota-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgb(var(--border));
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background-color: #f5f5f5;
  color: rgb(var(--foreground));
  transition: all 0.3s ease;
  line-height: 1.5;
}

.ota-field input::placeholder,
.ota-field textarea::placeholder,
input.ota-input::placeholder,
textarea.ota-input::placeholder {
  color: rgb(var(--muted));
  opacity: 0.7;
}

.ota-field input:hover,
.ota-field textarea:hover,
input.ota-input:hover,
textarea.ota-input:hover {
  background-color: #eeeeee;
  border-color: rgb(var(--primary));
}

.ota-field input:focus,
.ota-field textarea:focus,
input.ota-input:focus,
textarea.ota-input:focus {
  outline: none;
  border-color: rgb(var(--primary));
  box-shadow: 0 0 0 3px rgba(var(--primary) / 0.1);
  background-color: #fff;
}

.ota-field input:disabled,
.ota-field textarea:disabled,
input.ota-input:disabled,
textarea.ota-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f9f9f9;
}

/* Select Styles */
.ota-field select,
select.ota-select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid rgb(var(--border));
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background-color: #f5f5f5;
  color: rgb(var(--foreground));
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.ota-field select:hover,
select.ota-select:hover {
  background-color: #eeeeee;
  border-color: rgb(var(--primary));
}

.ota-field select:focus,
select.ota-select:focus {
  outline: none;
  border-color: rgb(var(--primary));
  box-shadow: 0 0 0 3px rgba(var(--primary) / 0.1);
  background-color: #fff;
}

.ota-field select:disabled,
select.ota-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f9f9f9;
}

.ota-field select option,
select.ota-select option {
  color: rgb(var(--foreground));
  background-color: #fff;
  padding: 8px;
}

/* Input Sizes */
.ota-input-sm,
.ota-field input.ota-input-sm,
.ota-field select.ota-input-sm {
  padding: 8px 12px;
  font-size: 13px;
  height: 36px;
}

.ota-input-md,
.ota-field input.ota-input-md,
.ota-field select.ota-input-md {
  padding: 12px 14px;
  font-size: 15px;
  height: 48px;
}

.ota-input-lg,
.ota-field input.ota-input-lg,
.ota-field select.ota-input-lg {
  padding: 16px 18px;
  font-size: 16px;
  height: 56px;
}

/* Textarea specific */
.ota-field textarea,
textarea.ota-input {
  min-height: 100px;
  resize: vertical;
}

.ota-field textarea.ota-input-sm {
  min-height: 80px;
}

.ota-field textarea.ota-input-lg {
  min-height: 120px;
}

/* ===== DatXeVietnam.vn Footer (BEM + isolated) ===== */


.dv-footer {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(70deg,
      rgb(var(--secondary)/ 0.4) 0%,
      rgb(var(--gold)/ 0.5) 15%,
      rgb(var(--background)) 30%,
      rgb(var(--background)) 70%,
      rgb(var(--secondary)/ 0.2) 85%,
      rgb(var(--secondary)) 100%);
  background-size: 200% 200%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: rgb(var(--foreground));
  border-radius: 24px 24px 0px 0px;
  animation: gradientShift 40s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.dv-footer__card {
  /* max-width: 1200px; */
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 40px 40px 32px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.dv-footer__top {
  display: flex;
  flex-direction: column;
}

.dv-footer__brand {
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.dv-footer__logo {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.01em;
  color: #1d4ed8;
  margin-bottom: 4px;
}

.dv-footer__slogan {
  margin: 0;
  font-size: 14px;
  color: rgb(var(--text-muted));
}

.dv-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-top: 24px;
}

.dv-footer__heading {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.dv-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dv-footer__item+.dv-footer__item {
  margin-top: 8px;
}

.dv-footer__link {
  font-size: 14px;
  color: rgb(var(--text-muted));
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.dv-footer__link:hover,
.dv-footer__link:focus-visible {
  color: #1d4ed8;
  transform: translateX(2px);
}

.dv-footer__link--hotline {
  font-weight: 700;
  color: #b91c1c;
}

.dv-footer__social-list {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dv-footer__social-link {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--text-muted));
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease,
    transform 0.2s ease;
}

.dv-footer__social-link:hover,
.dv-footer__social-link:focus-visible {
  background-color: #e0ecff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.dv-footer__social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.dv-footer__lang {
  margin-bottom: 16px;
}

.dv-footer__lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.dv-footer__lang-toggle:hover,
.dv-footer__lang-toggle:focus-visible {
  border-color: #d1d5db;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.dv-footer__lang-toggle svg {
  width: 18px;
  height: 18px;
}

.dv-footer__lang-icon svg {
  fill: none;
  stroke: #111827;
  stroke-width: 1.4;
}

.dv-footer__lang-caret svg {
  fill: #111827;
}

/* GTranslate trong footer (Kết nối) – compact cho mode Flags with language code */
.dv-footer__lang--gtranslate {
  width: 100%;
  max-width: 100%;
}

.dv-footer__lang--gtranslate .gtranslate_wrapper {
  width: 100% !important;
}

/* Container: xếp ngang, gọn */
.dv-footer__lang--gtranslate .gtranslate_wrapper>div {
  display: flex !important;
  flex-wrap: wrap !important;
  flex-direction: row !important;
  gap: 6px !important;
}

/* Mỗi nút cờ + mã ngôn ngữ: compact */
.dv-footer__lang--gtranslate .gtranslate_wrapper a.glink {
  color: rgb(var(--text-muted)) !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 32px !important;
  padding: 6px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
  font-size: 12px !important;
}

.dv-footer__lang--gtranslate .gtranslate_wrapper a.glink img {
  width: 16px !important;
  height: 12px !important;
  object-fit: contain !important;
}

.dv-footer__badge {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background-color: #f3f4f6;
  font-size: 12px;
  color: rgb(var(--text-muted));
}

.dv-footer__bottom {
  /* border-top: 1px solid #e5e7eb; */
  margin-top: 28px;
  /* padding-top: 24px; */
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}

.dv-footer__company {
  max-width: 70%;
}

.dv-footer__company-name {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 6px;
}

.dv-footer__company-line {
  margin: 2px 0;
}

.dv-footer__company-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.dv-footer__company-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Compact address list inside "Liên hệ" column */
.dv-footer__contact-addresses {
  margin-top: 8px;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
}

.dv-footer__contact-address-line {
  margin: 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.dv-footer__contact-address-icon {
  margin-top: 2px;
  color: rgb(var(--primary));
}

.dv-footer__contact-address-link {
  color: inherit;
  text-decoration: none;
}

.dv-footer__contact-address-link:hover {
  text-decoration: underline;
}

.dv-footer__copyright {
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .dv-footer__card {
    padding: 32px 24px 24px;
  }

  .dv-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .dv-footer__company {
    max-width: 100%;
  }

  .dv-footer__copyright {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .dv-footer {
    padding: 10px 10px;
  }

  .dv-footer__card {
    padding: 24px 18px 20px;
    border-radius: 18px;
  }

  .dv-footer__grid {
    grid-template-columns: 1fr;
  }

  .dv-footer__bottom {
    flex-direction: column;
  }

  .dv-footer__copyright {
    margin-left: 0;
  }
}

.ota-icon-svg-pin {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #6b7280;
}

.dv-footer__logo-image {
  width: 200px;
  overflow: hidden;
}

.dv-footer__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#dv-footer__links-about {
  margin-bottom: 24px;
}

.dv-footer__link--hotline {
  font-weight: 700;
  color: rgb(var(--primary));

}

/* Blog Page Styles */
.dv-page-blog .ota-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: rgb(var(--primary));
}

.category-nav .category-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.category-nav .category-tabs li a {
  display: block;
  padding: 8px 16px;
  /* border: 1px solid #ddd; */
  border-radius: 8px;
  text-decoration: none;
  color: rgb(var(--text-muted));
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.category-nav .category-tabs li a:hover,
.category-nav .category-tabs li a.active {
  background-color: rgb(var(--primary));
  color: rgb(var(--background));
  /* border-color: #0073aa; */
}

/* Featured Section */
.blog-featured-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

.featured-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
}

.featured-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Main Featured (Left) */
.featured-main .featured-card--large {
  height: 480px;
  position: relative;
}

.featured-card__image {
  width: 100%;
  height: 100%;
}

.featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-card__image img {
  transform: scale(1.05);
}

.featured-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(var(--primary) / 1), transparent);
  backdrop-filter: blur(2px);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: rgb(var(--background));
}

.featured-card__title {
  font-size: 32px;
  margin: 10px 0;
  line-height: 1.2;
  color: rgb(var(--background));
}

.featured-card__excerpt {
  font-size: 16px;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.featured-card__excerpt p {
  margin: 0;
  color: rgb(var(--background));

}

/* Sub Featured (Right) */
.featured-sub {
  display: flex;
  flex-direction: column;
}

.featured-sub__heading {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
  color: rgb(var(--primary));
}

.featured-sub__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* .featured-card--small {} */

.featured-card--small .featured-card__link {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.featured-card__image-small {
  width: 120px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.featured-card__image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card__content-small {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card__title-small {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  color: rgb(var(--primary));
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Recent Posts Section */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.dv-page-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.dv-page-blog__item {
  background: transparent;
  /* border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); */
  transition: transform 0.3s ease;
}

.dv-page-blog__item:hover {
  transform: translateY(-5px);
}

.dv-page-blog__item-image {
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.dv-page-blog__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .dv-page-blog__item-content {} */

.dv-page-blog__post-title {
  text-decoration: none !important;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
  color: rgb(var(--primary));
}

.dv-page-blog__excerpt {
  text-decoration: none !important;
  margin-bottom: 15px;
}

.dv-page-blog__excerpt p {
  text-decoration: none !important;
  font-size: 15px;
  color: rgb(var(--text-muted));
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Meta Footer */
.dv-page-blog__meta-footer {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: rgb(var(--text-muted));
  margin-top: 15px;
}

.dv-page-blog__author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: rgb(var(--text-muted));
}

.dv-page-blog__author img {
  border-radius: 50%;
  width: 24px;
  height: 24px;
}

.meta-separator {
  margin: 0 8px;
  font-size: 10px;
  color: rgb(var(--text-muted));
}

/* Pagination */
.dv-page-blog__pagination {
  margin-top: 50px;
  text-align: center;
}

.dv-page-blog__pagination .page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  margin: 0 4px;
  border-radius: 8px;
  text-decoration: none;
  color: rgb(var(--text-muted));
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.dv-page-blog__pagination .page-numbers:hover {
  background-color: #f5f5f5;
  color: rgb(var(--primary));
}

.dv-page-blog__pagination .page-numbers.current {
  background-color: rgb(var(--primary));
  color: rgb(var(--background));
}

/* Responsive */
@media (max-width: 992px) {
  .blog-featured-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .featured-main .featured-card--large {
    height: 400px;
  }

  .dv-page-blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-featured-section {
    margin-bottom: 40px;
  }

  .featured-main .featured-card--large {
    height: 350px;
  }

  .featured-card__title {
    font-size: 24px;
  }

  .dv-page-blog__grid {
    grid-template-columns: 1fr;
  }

  .blog-header {
    flex-direction: column;
    gap: 20px;
  }
}