/*
Theme Name: Flatsome Child
Template: flatsome
*/

/* ===============================
   HERO SMART FARM
=============================== */

.sf-hero-section {
  position: relative;
  overflow: hidden;
}

/* Overlay gradient (dùng hệ của Flatsome) */
.sf-hero-section .section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.5) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
  z-index: 1;
}

/* Đảm bảo content nổi lên trên */
.sf-hero-section .section-content {
  position: relative;
  z-index: 2;
}

/* Blur decoration */
.sf-hero-section::before {
  content: "";
  position: absolute;
  top: 80px;
  right: 40px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(168, 230, 95, 0.18);
  filter: blur(55px);
  z-index: 1;
}

.sf-hero-section::after {
  content: "";
  position: absolute;
  bottom: 60px;
  left: 20%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.18);
  filter: blur(60px);
  z-index: 1;
}

/* Badge */
.sf-hero-badge {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.2);
  border: 1px solid rgba(168, 230, 95, 0.35);
  color: #b8ef73;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.sf-hero-badge p {
  margin: 0 !important;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/* Title */
.sf-hero-title {
  font-size: 56px;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.sf-hero-title span {
  color: #a7e163;
}

/* Description */
.sf-hero-desc p {
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 700px;
  margin-bottom: 25px;
}

/* Button primary */
.sf-btn-primary {
  background: #2e7d32 !important;
  border-color: #2e7d32 !important;
  color: #fff !important;
}

.sf-btn-primary:hover {
  background: #25682a !important;
  border-color: #25682a !important;
}

/* Button secondary */
.sf-btn-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}

.sf-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}

/* Stats */
.sf-stat-number {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  color: #a7e163;
  margin-bottom: 6px;
}

.sf-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* Wave */
.sf-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 3;
}

.sf-hero-wave svg {
  display: block;
  width: 100%;
  height: 110px;
}

.sf-hero-wave path {
  fill: #f7f4ed;
}

/* Mobile */
@media (max-width: 849px) {
  .sf-hero-title {
    font-size: 34px;
    line-height: 1.2;
  }

  .sf-hero-desc p {
    font-size: 17px;
  }

  .sf-stat-number {
    font-size: 24px;
  }
}


/* ===============================
   WAVE SECTION
=============================== */

.sf-wave {
	margin-top:20px;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
}

.sf-wave svg {
  display: block;
  width: 100%;
  height: 120px;
}

.sf-wave path {
  fill: #f7f4ed; /* màu nền section tiếp theo */
}

/* ===============================
   ABOUT SMART FARM SECTION
=============================== */

.sf-about-section {
  position: relative;
}

.sf-about-image-col {
  position: relative;
}

.sf-about-main-image img {
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  object-fit: cover;
  width: 100%;
  height: 500px;
}

.sf-about-floating-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border: 1px solid #e5e7eb;
  max-width: 240px;
  z-index: 2;
}

.sf-about-float-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.sf-about-float-title {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}

.sf-about-float-desc {
  font-size: 14px;
  color: #666;
}

.sf-about-badge p {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.sf-about-title {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 800;
  color: #222;
  margin-bottom: 20px;
}

.sf-about-desc p {
  font-size: 20px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 24px;
}

.sf-about-desc strong {
  color: #222;
}

.sf-highlight {
  color: #2e7d32;
}

.sf-about-features {
  margin-bottom: 24px;
}

.sf-about-feature-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.sf-about-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(46,125,50,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: #2e7d32;
}

.sf-about-feature-text {
  font-weight: 600;
  color: #222;
}

.sf-about-link {
  color: #2e7d32 !important;
  font-weight: 600;
}

@media (max-width: 849px) {
  .sf-about-main-image img {
    height: 400px;
  }

  .sf-about-floating-card {
    position: static;
    max-width: 100%;
    margin-top: 20px;
    right: auto;
    bottom: auto;
  }

  .sf-about-title {
    font-size: 34px;
    line-height: 1.2;
  }

  .sf-about-desc p {
    font-size: 17px;
  }
}
/* ===============================
   PILLARS SECTION - CLEAN VERSION
=============================== */

.sf-pillars-section {
  position: relative;
}

.sf-pillars-badge p {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.10);
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 20px;
}

.sf-pillars-title {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 20px;
  text-align: center;
}

.sf-pillars-subtitle p {
  font-size: 18px;
  line-height: 1.7;
  color: #6b7280;
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}

.sf-pillars-row {
  margin-top: 20px;
}

/* Flatsome equal height fix */
.sf-pillars-row > .col {
  display: flex;
}

.sf-pillars-row > .col > .col-inner {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
}

/* Card */
.sf-pillars-row .sf-pillar-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Card hover */
.sf-pillars-row .sf-pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.10);
  border-color: rgba(46, 125, 50, 0.25);
}

/* Bỏ toàn bộ lệch cột giữa */
.sf-pillar-col-center {
  transform: none !important;
}

/* Icon */
.sf-pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.sf-pillar-icon-1 {
  background: linear-gradient(135deg, #2e7d32, #8bc34a);
}

.sf-pillar-icon-2 {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.sf-pillar-icon-3 {
  background: linear-gradient(135deg, #16a34a, #65a30d);
}

/* Title: ép chiều cao đồng đều */
.sf-pillar-card h3 {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px;
  min-height: 68px;
}

/* Description */
.sf-pillar-card p {
  font-size: 16px;
  line-height: 1.8;
  color: #6b7280;
  margin: 0 0 20px;
}

/* List */
.sf-pillar-card ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.sf-pillar-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

.sf-pillar-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #84cc16;
  font-weight: 700;
}

/* Link luôn nằm đáy card */
.sf-pillar-card p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.sf-pillar-link {
  color: #2e7d32;
  font-weight: 700;
  text-decoration: none;
}

.sf-pillar-link:hover {
  color: #25682a;
}

/* Mobile */
@media (max-width: 849px) {
  .sf-pillars-title {
    font-size: 34px;
    line-height: 1.2;
  }

  .sf-pillars-subtitle p {
    font-size: 16px;
  }

  .sf-pillars-row > .col {
    display: block;
  }

  .sf-pillars-row > .col > .col-inner {
    display: block;
  }

  .sf-pillars-row .sf-pillar-card {
    min-height: auto;
    padding: 24px;
  }

  .sf-pillar-card h3 {
    font-size: 22px;
    min-height: auto;
  }
}

/* ===============================
   BLOG SECTION DYNAMIC
=============================== */

.sf-blog-section {
  position: relative;
}

.sf-blog-head-row {
  margin-bottom: 28px;
}

.sf-blog-badge p {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.10);
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
}

.sf-blog-title {
  font-size: 42px;
  line-height: 1.18;
  font-weight: 800;
  color: #1f2937;
  margin: 0;
}

.sf-blog-more {
  color: #2e7d32 !important;
  font-weight: 700;
}

/* Grid spacing */
.sf-blog-dynamic-row .col-inner {
  padding-bottom: 0;
}

/* Flatsome blog card */
.sf-blog-dynamic .box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  height: 100%;
}

.sf-blog-dynamic .box:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.10);
  border-color: rgba(46, 125, 50, 0.18);
}

/* image */
.sf-blog-dynamic .box-image {
  border-radius: 0;
  overflow: hidden;
}

.sf-blog-dynamic .image-cover img,
.sf-blog-dynamic .box-image img {
  transition: transform 0.7s ease;
}

.sf-blog-dynamic .box:hover .box-image img {
  transform: scale(1.08);
}

/* content */
.sf-blog-dynamic .box-text {
  padding: 24px;
}

.sf-blog-dynamic .post-title {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 14px;
}

.sf-blog-dynamic .post-title a {
  color: #1f2937;
  text-decoration: none;
}

.sf-blog-dynamic .box:hover .post-title a {
  color: #2e7d32;
}

.sf-blog-dynamic .from_the_blog_excerpt,
.sf-blog-dynamic .box-text p {
  font-size: 16px;
  line-height: 1.75;
  color: #6b7280;
}

/* date/meta */
.sf-blog-dynamic .is-divider,
.sf-blog-dynamic .badge {
  display: none !important;
}

.sf-blog-dynamic .post-meta,
.sf-blog-dynamic .from_the_blog_excerpt + p,
.sf-blog-dynamic .box-text .post-meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

/* equal height */
.sf-blog-dynamic .col {
  display: flex;
}

.sf-blog-dynamic .col-inner {
  display: flex;
  width: 100%;
}

.sf-blog-dynamic .box-blog-post {
  width: 100%;
  display: flex;
}

.sf-blog-dynamic .box-blog-post .box {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sf-blog-dynamic .box-blog-post .box-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.sf-blog-dynamic .post-title {
  min-height: 98px;
}

.sf-blog-dynamic .from_the_blog_excerpt {
  margin-bottom: 0;
}

/* read more nếu Flatsome hiện ra */
.sf-blog-dynamic .button.is-link,
.sf-blog-dynamic .more-link {
  color: #2e7d32 !important;
  font-weight: 700;
  text-decoration: none !important;
}

@media (max-width: 849px) {
  .sf-blog-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .sf-blog-dynamic .post-title {
    min-height: auto;
    font-size: 22px;
  }
}
/* ===============================
   WHY CHOOSE US
=============================== */

.sf-why-section {
  position: relative;
}

.sf-why-badge p {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(46,125,50,0.10);
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
}

.sf-why-title {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 20px;
  text-align: center;
}

.sf-why-subtitle p {
  font-size: 18px;
  color: #6b7280;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 20px;
}

/* GRID */
.sf-why-row > .col {
  display: flex;
}

.sf-why-row > .col > .col-inner {
  display: flex;
  width: 100%;
}

/* ITEM */
.sf-why-item {
  text-align: center;
  width: 100%;
  padding: 10px 10px 0;
}

/* ICON */
.sf-why-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #fff;
  transition: all 0.3s ease;
}

/* gradient màu */
.sf-why-icon-1 {
  background: linear-gradient(135deg, #2e7d32, #8bc34a);
}

.sf-why-icon-2 {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.sf-why-icon-3 {
  background: linear-gradient(135deg, #16a34a, #65a30d);
}

.sf-why-icon-4 {
  background: linear-gradient(135deg, #4ade80, #2e7d32);
}

/* HOVER */
.sf-why-item:hover .sf-why-icon {
  transform: scale(1.12);
  box-shadow: 0 16px 30px rgba(0,0,0,0.15);
}

/* TEXT */
.sf-why-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.sf-why-item p {
  font-size: 15px;
  line-height: 1.7;
  color: #6b7280;
  max-width: 260px;
  margin: 0 auto;
}

/* MOBILE */
@media (max-width: 849px) {

  .sf-why-title {
    font-size: 30px;
  }

  .sf-why-row > .col,
  .sf-why-row > .col > .col-inner {
    display: block;
  }

  .sf-why-item {
    margin-bottom: 30px;
  }
}