﻿@media screen and (min-width: 768px) {
  .footer-mobile {
    display: none;
  }
}

footer {
  background: url(../footer_images/footer-bg.png);
}

.footer-main {
  padding-top: 30px;
  padding-bottom: 15px;
}

.main-wrap {
  margin: auto;
  position: relative;
  max-width: 1200px;
  width: 100%;
}

.footer-intro-endorse {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 92px;
  justify-content: space-between;
  margin-bottom: 27px;
}

.footer-intro-endorse > * {
  flex: 1;
}

.footer-endorse {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.footer-endorse-head {
  color: #006719;
  font-size: 26px;
  font-weight: 700;
  text-transform: capitalize;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.footer-endorse-head-left {
  text-align: left;
  flex: 1;
  margin-left: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-endorse-head-right {
  text-align: right;
  margin-right: 12px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- CONTAINER --- */
.ambassador-strip {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 64px; /* khoảng cách giữa các item */
}

/* --- CARD --- */
.ambassador-card {
  width: 220px; /* cố định để đồng đều */
  text-align: center;
}

.ambassador-photo {
  width: 100%;
  height: 240px;
  object-fit: contain;
  object-position: bottom;
  pointer-events: none;
}

/* thanh logo + gạch */
.logo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}

.logo-bar img {
  height: 28px; /* logo nhỏ */
  object-fit: contain;
}

.divider {
  width: 1px;
  height: 22px;
  background: #006719;
  margin: 0 8px;
}

/* chữ mô tả */
.caption {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #035e2d; /* xanh đậm hơn */
}

/* responsive: thu nhỏ gap khi màn hình < 600px */
@media (max-width: 600px) {
  .ambassador-strip {
    justify-content: center;
    align-items: stretch; /* Stretch cards to same height */
    gap: 12px; /* Smaller gap between cards */
    flex-wrap: wrap;
  }

  .ambassador-card {
    width: 160px;
    margin: 0;
  }

  .ambassador-photo {
    height: 180px;
  }
}

.footer-endorse-item {
  align-items: center;
  display: flex;
  font-size: 18px;
  gap: 10px;
  justify-content: center;
  color: #006719;
}

.footer-endorse-item img {
  height: 75px;
}

.footer-endorse-hr {
  background: #006719;
  display: block;
  font-size: 0;
  height: 70px;
  width: 1px;
}

.footer-logos-icons {
  align-items: flex-start;
  display: flex;
  gap: 92px;
  justify-content: space-between;
  margin-bottom: 27px;
}

.footer-logos-icons > * {
  flex: 1;
}

.footer-logos {
  display: block;
  width: auto;
}

.footer-icons {
  display: flex;
  justify-content: space-between;
}

.icon-item img {
  display: block;
  height: 42px;
  width: auto;
}

.icon-sns {
  cursor: pointer;
}

.icon-sns:hover {
  opacity: 0.5;
}

.footer-linkslist {
  display: flex;
  justify-content: space-between;
  margin-bottom: 11px;
}

.footer-linkslist a {
  color: #006719;
  font-size: 17px;
  line-height: 23px;
  text-decoration: none;
}

.footer-linkslist a:hover {
  opacity: 0.5;
}

.hr {
  background: #006719;
  /*height: 23px;*/
  width: 1px;
}

.footer-copy {
  font-size: 15px;
  text-align: center;
  color: #006719;
}

/* Footer MOBILE wrapper */

.mb-wrapper {
  max-width: 768px;
  margin: 0 auto;
  padding: 8px 12px;
}

/* ---------- TIÊU ĐỀ SECTION ---------- */
.section-title {
  font-weight: 700;
  font-size: 22px;
  margin: 2px 0;
}

/* ---------- DÒNG PARTNER ---------- */
.partner-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.partner-info {
  font-size: 16px;
  font-weight: 400;
  color: #006719;
  height: 100%;
  margin: 0;
}

.partner-sign {
  width: 100px;
  object-fit: contain;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 8px;
}

.partner-logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.partner-logos img:first-child {
  width: 44px;
  height: auto;
}

.divider-vert {
  width: 1px;
  height: 60px;
  background: #4d795d;
}

/* ---------- CHIP “Tin Tức OK9 …” ---------- */
.news-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 16px;
  margin: 12px 0 8px;
}

.news-chip span.green {
  color: #fff;
}

/* ---------- CARD TIN TỨC ---------- */
.news-card {
  display: flex;
  gap: 8px;
  background: #e6fce8;
  border: 1px solid #c2f0c5;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.news-thumb {
  flex: 0 0 120px;
  border-radius: 6px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  flex: 1 1 auto;
}

.news-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  color: #0e4724;
}

.news-desc {
  font-size: 14px;
  color: #145333;
}

.news-more {
  color: #0b8f3f;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.news-more:hover {
  text-decoration: underline;
}

/* ---------- FOOTER ICON GRID ---------- */
.icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.icon-col {
  flex: 1 1 120px;
  min-width: 110px;
}

.icon-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0e4724;
}

.icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-list img {
  height: 28px;
  object-fit: contain;
}

.social-row {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social-row img {
  height: 26px;
  width: 26px;
  object-fit: contain;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 460px) {
  .partner-info {
    font-size: 16px;
  }

  .partner-logos img {
    height: 32px;
  }

  .news-thumb {
    flex-basis: 100px;
  }

  .divider-vert {
    width: 1px;
    height: 36px;
    background: #4d795d;
  }
}
