/*
 Theme Name:   Greenergy Child
 Theme URI:    http://greenergy.bold-themes.com
 Description:  Greenergy child theme
 Author:       BoldThemes
 Author URI:   http://bold-themes.com
 Template:     greenergy
 Version:      1.0.0
 Tags:         one-column, right-sidebar, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  greenergy-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */
.bt_bb_size_small.bt_bb_button a,
.bt_bb_size_small.bt_bb_button .bt_bb_link {
  height: 40px;
}
@media (max-width: 1200px) {
  .bt-vertical-header-top {
    display: flex !important;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
  }
}

.bt-vertical-left {
  display: flex !important;
  gap: 10px;
}
@media (max-width: 480px) {
  .bt-logo-area {
    display: flex;
    align-items: center;
  }
  .bt-logo-area img {
    max-width: 120px;
    height: auto !important;
  }
}

/* VF Header Section
-------------------------------------------------------------- */
.vf-header {
  background-image: url("https://vcvf.vn/wp-content/uploads/2025/09/VCVF-VTB-Carbon-Vietnam-Fund-3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 0;
  position: relative;
}

.vf-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.vf-header-container {
  width: 100%;
  max-width: calc(100% - 60px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 200px;
}

.vf-header-title {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  text-align: left;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .vf-header {
    padding: 2rem 0;
  }

  .vf-header-container {
    min-height: 150px;
  }

  .vf-header-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .vf-header {
    padding: 1.5rem 0;
  }

  .vf-header-container {
    min-height: 120px;
  }

  .vf-header-title {
    font-size: 1.5rem;
  }
}

/* VF Posts Grid Section
-------------------------------------------------------------- */
.vf-posts-grid {
  padding: 2rem 0;
}

.vf-posts-grid__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 1400px;
  max-width: -webkit-calc(100% - 60px);
  max-width: calc(100% - 60px);
  margin: 0 auto;
}

.vf-posts-grid__pagination {
  margin-top: 3rem;
  text-align: center;
}

/* VF Card Styles
-------------------------------------------------------------- */
.vf-card {
  background: #ffffff;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  height: fit-content;
}

.vf-card__container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card Media */
.vf-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.vf-card__media a {
  display: block;
  width: 100%;
  height: 100%;
}

.vf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vf-card:hover .vf-card__media img {
  transform: scale(1.05);
}

/* Card Content */
.vf-card__content {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: #f1f1f1;
}

/* Card Header */
.vf-card__header {
  margin-bottom: 1rem;
}

.vf-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.vf-card__link {
  color: #1f2937 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vf-card__link:hover {
  color: #059669;
}

/* Excerpt */
.vf-card__excerpt {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.vf-card__excerpt p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer */
.vf-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #f3f4f6;
}

/* Actions */
.vf-button {
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  padding-bottom: 5px;
  position: relative;
}
.vf-button span {
  color: #1f2937;
}

.vf-button:after {
  background-color: var(
    --latest-posts-button-secondary-color,
    var(--accent-color)
  );
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  -webkit-transition: 300ms ease transform, 300ms ease background;
  -moz-transition: 300ms ease transform, 300ms ease background;
  transition: 300ms ease transform, 300ms ease background;
  -webkit-transform-origin: left;
  -moz-transform-origin: left;
  -ms-transform-origin: left;
  transform-origin: left;
  -webkit-transform: scaleX(1);
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  transform: scaleX(1);
}
.vf-button:hover {
  color: #1f2937;
}
.vf-button:hover:after {
  -webkit-transform-origin: right;
  -moz-transform-origin: right;
  -ms-transform-origin: right;
  transform-origin: right;
  -webkit-transform: scaleX(0);
  -moz-transform: scaleX(0);
  -ms-transform: scaleX(0);
  transform: scaleX(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .vf-posts-grid__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: -webkit-calc(100% - 60px);
    max-width: calc(100% - 60px);
  }
}

@media (max-width: 768px) {
  .vf-posts-grid {
    padding: 1.5rem 0;
  }

  .vf-posts-grid__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: -webkit-calc(100% - 60px);
    max-width: calc(100% - 60px);
  }

  .vf-posts-grid__pagination {
    margin-top: 2rem;
  }

  .vf-card__content {
    padding: 1rem;
  }

  .vf-card__title {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .vf-posts-grid {
    padding: 1rem 0;
  }

  .vf-posts-grid__container {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: -webkit-calc(100% - 60px);
    max-width: calc(100% - 60px);
  }

  .vf-posts-grid__pagination {
    margin-top: 1.5rem;
  }

  .vf-card__footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
}
@media (max-width: 1024px) {
.widget_text.btTopBox.widget_custom_html {
  margin-top: 15px;
}
}
@media (max-width: 1024px) {
  #menu-primary-menu {
    width: 200px; /* chỉnh tùy ý để chữ không bị gãy dòng */
  }
}
.textwidget .custom-html-widget{
padding: 12px;
}
/* Thu gọn menu chỉ áp dụng trên PC */
@media (min-width: 1025px) {
  #menu-primary-menu > li > a {
    padding: 0 12px !important;   /* khoảng cách 2 bên nhỏ lại */
    font-size: 15px !important;   /* cỡ chữ vừa phải */
    white-space: nowrap;          /* không cho xuống hàng */
  }

  #menu-primary-menu {
    margin: 0 !important;
    padding: 0 !important;
  }
}