/* =========================================================
           DFMAX BLOG PAGE
        ========================================================= */

.dfmax-blog-page {
  background: #ffffff;
  overflow: hidden;
}

/* =========================================================
           HERO
        ========================================================= */

.dfmax-blog-hero {
  position: relative;
  padding: 90px 0 75px;
  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(0, 156, 197, 0.12),
      transparent 35%
    ),
    radial-gradient(
      circle at 10% 80%,
      rgba(244, 123, 58, 0.08),
      transparent 30%
    ),
    #f0fafd;
}

.dfmax-blog-hero-content {
  max-width: 760px;
  margin: auto;
  text-align: center;
}

.dfmax-blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 156, 197, 0.09);
  color: var(--dfmax-primary-dark);
  border: 1px solid rgba(0, 156, 197, 0.15);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.dfmax-blog-eyebrow i {
  color: var(--dfmax-accent);
}

.dfmax-blog-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  color: var(--dfmax-text);
  letter-spacing: -1.5px;
}

.dfmax-blog-hero h1 span {
  color: var(--dfmax-primary);
}

.dfmax-blog-hero p {
  max-width: 680px;
  margin: auto;
  color: var(--dfmax-text-light);
  font-size: 17px;
  line-height: 1.75;
}

/* =========================================================
           SEARCH
        ========================================================= */

.dfmax-blog-search-wrap {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.dfmax-blog-search {
  width: 100%;
  max-width: 570px;
  position: relative;
}

.dfmax-blog-search input {
  width: 100%;
  height: 58px;
  padding: 0 58px 0 22px;
  border: 1px solid var(--dfmax-border);
  border-radius: 14px;
  outline: none;
  background: #ffffff;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 60, 80, 0.06);
  transition: var(--dfmax-transition);
}

.dfmax-blog-search input:focus {
  border-color: var(--dfmax-primary);
  box-shadow: 0 10px 35px rgba(0, 156, 197, 0.12);
}

.dfmax-blog-search button {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--dfmax-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
           SECTION
        ========================================================= */

.dfmax-blog-section {
  padding: 50px 0;
}

.dfmax-blog-section-heading {
  text-align: center;
  margin-bottom: 45px;
}

.dfmax-blog-section-heading small {
  display: block;
  color: var(--dfmax-primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 9px;
}

.dfmax-blog-section-heading h2 {
  margin: 0 0 12px;
  color: var(--dfmax-text);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.dfmax-blog-section-heading p {
  max-width: 650px;
  margin: auto;
  color: var(--dfmax-text-light);
  line-height: 1.7;
}

/* =========================================================
           CATEGORY FILTER
        ========================================================= */

.dfmax-blog-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.dfmax-blog-filter {
  border: 1px solid var(--dfmax-border);
  background: #ffffff;
  color: var(--dfmax-text-light);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--dfmax-transition);
}

.dfmax-blog-filter:hover,
.dfmax-blog-filter.active {
  color: #ffffff;
  background: var(--dfmax-primary);
  border-color: var(--dfmax-primary);
  transform: translateY(-2px);
}

/* =========================================================
           FEATURED ARTICLE
        ========================================================= */

.dfmax-blog-featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid var(--dfmax-border);
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 50, 70, 0.07);
  margin-bottom: 65px;
}

.dfmax-blog-featured-image {
  min-height: 410px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #009cc5, #006b87);
}

.dfmax-blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.dfmax-blog-featured:hover img {
  transform: scale(1.04);
}

.dfmax-blog-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 70px;
}

.dfmax-blog-featured-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dfmax-blog-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--dfmax-text-light);
  font-size: 12px;
  font-weight: 600;
}

.dfmax-blog-category {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 50px;
  background: rgba(0, 156, 197, 0.1);
  color: var(--dfmax-primary-dark);
  font-weight: 800;
}

.dfmax-blog-featured-content h2 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.25;
  color: var(--dfmax-text);
  font-weight: 800;
}

.dfmax-blog-featured-content p {
  color: var(--dfmax-text-light);
  line-height: 1.75;
  margin-bottom: 25px;
}

.dfmax-blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--dfmax-primary);
  font-weight: 800;
  text-decoration: none;
  transition: var(--dfmax-transition);
}

.dfmax-blog-read-more:hover {
  color: var(--dfmax-accent);
  gap: 13px;
}

/* =========================================================
           BLOG GRID
        ========================================================= */

.dfmax-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.dfmax-blog-card {
  border: 1px solid var(--dfmax-border);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  transition: var(--dfmax-transition);
  display: flex;
  flex-direction: column;
}

.dfmax-blog-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 156, 197, 0.3);
  box-shadow: 0 18px 40px rgba(0, 50, 70, 0.1);
}

.dfmax-blog-card-image {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #009cc5, #006b87);
}

.dfmax-blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dfmax-blog-card:hover .dfmax-blog-card-image img {
  transform: scale(1.06);
}

.dfmax-blog-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 55px;
}

.dfmax-blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dfmax-blog-card-body .dfmax-blog-meta {
  margin-bottom: 14px;
}

.dfmax-blog-card-body h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 800;
}

.dfmax-blog-card-body h3 a {
  color: var(--dfmax-text);
  text-decoration: none;
}

.dfmax-blog-card-body h3 a:hover {
  color: var(--dfmax-primary);
}

.dfmax-blog-card-body p {
  color: var(--dfmax-text-light);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.dfmax-blog-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dfmax-blog-card-footer .dfmax-blog-read-more {
  font-size: 13px;
}

/* =========================================================
           NO RESULT
        ========================================================= */

.dfmax-blog-no-result {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--dfmax-text-light);
}

.dfmax-blog-no-result i {
  display: block;
  font-size: 42px;
  color: var(--dfmax-primary);
  margin-bottom: 15px;
}

.dfmax-blog-no-result h3 {
  color: var(--dfmax-text);
  margin-bottom: 8px;
}

/* =========================================================
           CTA
        ========================================================= */

.dfmax-blog-cta {
  padding: 50px 0;
  background: var(--dfmax-footer);
}

.dfmax-blog-cta-box {
  text-align: center;
  max-width: 760px;
  margin: auto;
}

.dfmax-blog-cta-box h2 {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 15px;
}

.dfmax-blog-cta-box p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 28px;
}

.dfmax-blog-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dfmax-blog-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  background: var(--dfmax-accent);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: var(--dfmax-transition);
}

.dfmax-blog-btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  background: #e96727;
}

.dfmax-blog-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: var(--dfmax-transition);
}

.dfmax-blog-btn-outline:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
           RESPONSIVE
        ========================================================= */

@media (max-width: 991px) {
  .dfmax-blog-hero {
    padding: 70px 0 60px;
  }

  .dfmax-blog-section {
    padding: 65px 0;
  }

  .dfmax-blog-featured {
    grid-template-columns: 1fr;
  }

  .dfmax-blog-featured-image {
    min-height: 330px;
  }

  .dfmax-blog-featured-content {
    padding: 35px;
  }

  .dfmax-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .dfmax-blog-hero {
    padding: 55px 0 50px;
  }

  .dfmax-blog-hero h1 {
    font-size: 38px;
  }

  .dfmax-blog-hero p {
    font-size: 15px;
  }

  .dfmax-blog-section {
    padding: 50px 0;
  }

  .dfmax-blog-featured {
    border-radius: 16px;
  }

  .dfmax-blog-featured-image {
    min-height: 240px;
  }

  .dfmax-blog-featured-content {
    padding: 26px 22px;
  }

  .dfmax-blog-featured-content h2 {
    font-size: 25px;
  }

  .dfmax-blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dfmax-blog-card-image {
    height: 210px;
  }

  .dfmax-blog-card-body {
    padding: 21px;
  }

  .dfmax-blog-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 5px;
    scrollbar-width: none;
  }

  .dfmax-blog-filters::-webkit-scrollbar {
    display: none;
  }

  .dfmax-blog-filter {
    flex: 0 0 auto;
  }

  .dfmax-blog-cta {
    padding: 55px 20px;
  }
}

@media (max-width: 480px) {
  .dfmax-blog-hero h1 {
    font-size: 32px;
  }

  .dfmax-blog-search input {
    height: 53px;
  }

  .dfmax-blog-search button {
    width: 39px;
    height: 39px;
    top: 7px;
    right: 7px;
  }

  .dfmax-blog-featured-image {
    min-height: 210px;
  }

  .dfmax-blog-featured-content {
    padding: 23px 18px;
  }

  .dfmax-blog-featured-content h2 {
    font-size: 22px;
  }

  .dfmax-blog-card-image {
    height: 190px;
  }
}


/* =====================================================
   DYNAMIC BLOG IMAGE
===================================================== */
.dfmax-blog-real-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

/* Blog image hover */
.dfmax-blog-card:hover .dfmax-blog-real-image {
  transform: scale(1.05);
}

/* Make image wrapper clip the image */
.dfmax-blog-image {
  overflow: hidden;
}

/* Keep category above image */
.dfmax-blog-category {
  z-index: 2;
}
