.agri-img {
  width: 100%;
  max-width: none; /* ✅ 줄이지 말고 원본대로 보여줘 */
  height: auto;
  display: block;
}

.tab-box.active {
  border: 2px solid #134197;
  border-radius: 6px;
  background-color: #f0f7ff;
  font-weight: bold;
}
/* 20250711 신용사업 농업자금 탭 박스 변경 */
.product-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.tab-box {
  display: flex;
  color: #000;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  background: #f9f9f9;
  white-space: normal;
  line-height: 1.4;
  height: 100%; /* 셀 높이에 맞춰 꽉 채움 */
}

@media (max-width: 1024px) {
  .product-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2열 */
    grid-auto-rows: 60px;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 12px; /* 아래 여백 줄임 */
    padding: 0 8px;
  }

  .tab-box {
    font-size: 13px;
    padding: 8px 4px;
    white-space: normal;
    line-height: 1.3;
  }
}

.tab-box:hover {
  background: #e6e6e6;
  border-color: #999;
}

.tab-box:hover {
  background: #e0e0e0;
}
.intro-img-wrapper {
  text-align: center;
}
.intro-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
}
.intro-container {
  display: flex;
  gap: 0; /* 필요시 여백 */
}

/* 사이드바 고정 너비 */
.intro-sidebar {
  width: 220px; /* 기존보다 넉넉하게 */
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* 콘텐츠는 나머지 공간 차지 */
.intro-content {
  flex: 1;
  max-width: 100%;
  overflow-x: hidden;
}

/*    ========================================================농협 보험=============================================*/
.insurance-info-section {
  margin-top: 40px;
}

.insurance-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.insurance-info-header h3 {
  font-size: 20px;
  font-weight: bold;
  color: #000;
}

.insurance-icon {
  width: 20px;
  height: 20px;
}

.insurance-info-desc {
  margin: 12px 0 24px;
  font-size: 15px;
  color: #222;
}

.insurance-box-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.insurance-box {
  flex: 1 1 48%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 30px 20px;
  text-align: center;
}

.insurance-logo {
  height: 26px;
  margin-bottom: 14px;
}

.insurance-caption {
  font-size: 15px;
  color: #464646;
  margin-bottom: 18px;
}

.insurance-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #134197;
  color: #fff;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
}

.insurance-btn:hover {
  background: #0c2e70;
}

/* 소비자보호 안내 */
.consumer-law-section {
  margin-top: 32px;
}

.consumer-law-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.consumer-law-header h4 {
  font-size: 18px;
  font-weight: bold;
}

.consumer-pdf-links {
  display: flex;
  gap: 16px;
  margin: 12px 0 20px;
  flex-wrap: wrap;
}

.pdf-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: bold;
  color: #cc0a00;
  text-decoration: underline;
}

.pdf-icon {
  width: 24px;
  height: 24px;
}

.consumer-law-box {
  background: #f2f5f9;
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 14px;
  color: #464646;
  line-height: 1.6;
}

.consumer-law-box ul {
  margin: 10px 0;
  padding-left: 16px;
}

.consumer-law-box li {
  list-style: disc;
}

.blue-arrow {
  display: inline-block;
  color: #134197;
  font-size: 26px; /* 기존보다 키움 */
  font-weight: bold;
  margin-right: 8px;
  position: relative;
  top: -8px; /* 위로 2px 올림 */
}

/* =========================================== 카드 =====================*/
.card-section {
  padding: 40px 20px;
  font-family: "Noto Sans KR", sans-serif;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.card-header-icon {
  width: 16px;
  height: 16px;
}

.card-header-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #000;
}

.card-header-desc {
  font-size: 15px;
  color: #222;
  margin: 10px 0 24px;
}

/* 중앙 정렬 + 최대 너비 제한 */
.card-box {
  background-color: #f2f6fb;
  border-radius: 10px;
  padding: 25px 30px;
  max-width: 420px;
  margin: 0 auto 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-box-logo {
  height: auto;
  width: 160px;
  margin-bottom: 12px;
}

.card-box-btn {
  display: inline-block;
  padding: 10px 28px;
  background-color: #004aad;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
}

.card-disclaimer-title {
  font-size: 14px;
  color: #222;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-disclaimer-box {
  background-color: #f5f7fa;
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .product-tabs.agri-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 8px;
    padding: 0 12px;
  }

  .product-tabs.agri-tabs .tab-box {
    flex: 0 0 48% !important;
    max-width: 48% !important;
    min-width: auto !important; /* 🔥 이거 추가 */
    width: 100% !important; /* 🔥 이것도 확실히 추가 */
    display: block !important;
    padding: 10px 6px !important;
    font-size: 9px !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
  }

  .product-tabs.agri-tabs .tab-box.active {
    border: 2px solid #134197 !important;
    font-weight: bold !important;
    color: #134197 !important;
    background-color: #f4f7ff !important;
  }
}

/* 20250710 신용사업 농업자금 모바일 */
@media (max-width: 768px) {
  .slide-img1,
  .slide-img2,
  .slide-img3 {
    width: 100% !important;
    height: auto !important;
    max-height: 250px !important; /* 예시용 */
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
  }

  .slide-img1 {
    max-height: 200px !important;
  }
  .slide-img2 {
    max-height: 350px !important;
  }
  .slide-img3 {
    max-height: 260px !important;
  }
}
/* 20250710 신용사업 농업자금 모바일 */

.loan-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 30px;
  background: #f8f9fa;
  padding: 10px 0;
  border-radius: 8px;
}
.tab-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  font-size: 1.15em;
  font-weight: 600;
  color: #222;
  background: #fff;
  border: 1px solid #e0e3e8;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.tab-box.active {
  color: #134197;
  border-bottom: 3px solid #134197;
  font-weight: bold;
  background: #fff;
}
.tab-box:not(.active):hover {
  background: #f0f7ff;
}
@media (max-width: 900px) {
  .product-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .product-tabs {
    grid-template-columns: 1fr;
  }
  .tab-box {
    font-size: 1em;
    height: 48px;
  }
}
