/* Insights Section */

/* :root {
  --default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft Yahei UI", "Microsoft Yahei",
    "Source Han Sans CN", sans-serif;
  --primary-color: #ff4612;
  --text-dark: #24282b;
  --text-gray: #6c6969;
  --background-light: #f3f3f3;
  --background-gray: #f6f6f6;
  --white: #ffffff;
  --border-color: #dadada;
  --error-color: #e74c3c;
  --success-color: #27ae60;
} */

.dm-insights-wrapper {
    padding: 5rem 1.5rem;
    max-width: 1700px;
    margin: 0 auto;
}

.dm-explore-link span {
    font-family: 'Poppins';
    color: #ff4612;
}

/* Header Styles */
.dm-insights-header-section {
    margin-bottom: 2rem;
}

.dm-insights-main-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
}

/* Tab Navigation */
.dm-tab-nav-container {
      border-bottom: 1px solid #d5d5d5;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.dm-tab-nav-btn {
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 500;
    color: #000;
    margin-right: 4rem;
    padding: 1.5rem 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dm-tab-nav-btn:hover {
    color: #ff4612;
}

.dm-tab-nav-btn.dm-active {
    color: #ff4612;
    border-bottom-color: #ff4612;
}

/* Content Styles */
.dm-tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.dm-tab-panel.dm-active {
    display: block;
    opacity: 1;
}

.dm-section-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dm-section-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.dm-explore-link {
    background: none;
    border: none;
    color: #f97316;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    height: auto;
}

.dm-explore-link:hover {
    color: #ea580c;
}

.dm-arrow-svg {
    width: 1rem;
    height: 1rem;
}

/* Carousel Styles */
.dm-carousel-wrapper {
    position: relative;
}

.dm-carousel-viewport {
    overflow: hidden;
    margin: 0rem;
}

.dm-carousel-slider {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease-in-out;
}

.dm-carousel-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 10;
}

.dm-carousel-ctrl:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: #f9fafb;
}

.dm-prev-ctrl {
    left: -60px;
}

.dm-next-ctrl {
    right: -60px;
}

.dm-carousel-ctrl svg {
    color: #374151;
}

/* Card Styles */
.dm-insight-card {
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dm-insight-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.dm-card-img-wrap {
    aspect-ratio: 13/9;
    overflow: hidden;
    flex-shrink: 0;
}

.dm-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    clip-path: polygon(0 0, 100% 0, 100% 20%, 100% 80%, 100% 100%, 29% 100%, 0 73%, 0% 20%);
}

.dm-insight-card:hover .dm-card-img-wrap img {
    transform: scale(1.05);
}

.dm-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dm-card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}


.dm-card-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.dm-insight-card:hover .dm-card-heading {
    color: #374151;
}

.dm-card-bottom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.dm-author-img-wrap {
    position: relative;
    flex-shrink: 0;
}

.dm-author-img-wrap img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dm-author-details {
    flex: 1;
    min-width: 0;
}

.dm-author-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-card-metadata {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top:15px;
    font-weight: 500;
}

.dm-dot {
    width: 0.25rem;
    height: 0.25rem;
    background-color: #9ca3af;
    border-radius: 50%;
    display: inline-block;
}

.dm-read-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 16px;
}
.dm-card-metadata span {
    font-size: 16px;
}
.dm-clock-svg {
    color: #f97316;
    flex-shrink: 0;
    height: 25px;
    width: 25px;
}

@media(min-width:1152px) and (max-width:1680px){
    .dm-insights-wrapper {
    padding: 5rem 5.5rem;
    max-width: 1700px;
    margin: 0 auto;
}
}

@media(min-width:991px){
  .dm-card-heading{
    height: 50px;
  }
}
@media(min-width:810px)and (max-width:991px){

.dm-insights-wrapper {
    padding: 5rem 4.5rem;
    max-width: none;
    margin: 0 auto;
}
}

/* Responsive Design */
@media (max-width: 768px) {
   .dm-insights-wrapper {
        padding: 2rem 2rem;
    }
    
    .testimonial-slide .author-info {
    flex-direction: row;
}
    .dm-insights-main-title {
        font-size: 2rem;
    }
    
    .dm-carousel-viewport {
        margin: 0rem;
    }
    
    .dm-carousel-ctrl {
        width: 2rem;
        height: 2rem;
        display: none;
    }
    
    .dm-carousel-ctrl svg {
        width: 1rem;
        height: 1rem;
    }
    
    .dm-insight-card {
        width: 100%;
    }
    
    .dm-section-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .dm-tab-nav-btn {
        margin-right: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .dm-insight-card {
        width: calc(50% - 0.5rem);
    }
    .dm-carousel-ctrl{
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .dm-insight-card {
        width: calc(25% - 0.75rem);
    }
}

/* Auto-play indicator styles */
.dm-carousel-wrapper.dm-auto-playing .dm-carousel-ctrl {
    opacity: 0.7;
}

.dm-carousel-wrapper:hover .dm-carousel-ctrl {
    opacity: 1;
}
main.insight-main {
    background: #F4F4F4;
}
/* Slider Container */
.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  width: 100%;
}

.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  padding-bottom: 30px;
}

.main-container-insights {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  background: var(--white);
  overflow: hidden;
}

@media(max-width:767px){
    .dm-next-ctrl {
    right: -60px;
    display:none;
}

}

/* Responsive Design */
/* @media (max-width: 1440px) {
  .main-container-insights {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .main-container-insights {
    padding: 0 15px;
  }
} */

/* Background Pattern */
/* .background-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1547px;
  z-index: -1;
}

.pattern-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
} */

/* Utility Classes */
/* .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


.insights-section {
  position: relative;
  width: 100%;
  background: #F4F4F4;
  padding: 70px 0 70px 0;
}

.main-container-insights {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  background: var(--white);
  overflow: hidden;
}

.insights-header {
  text-align: center;
}

.insights-title {
  font-family: 'Poppins', var(--default-font-family);
  font-size: 40px;
  font-weight: 600;
  line-height: 55px;
  color: var(--text-dark);
}

.insights-subtitle {
  font-family: 'Poppins', var(--default-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-gray);
  position: absolute;
  top: 339px;
  left: 101px;
}

.insights-content {
  position: relative;
  width: 100%;
  max-width: 1718px;
  margin: 0 auto;
  padding: 0 101px;
} */

/* Navigation Tabs */
/* .insights-nav {
  display: flex;
  gap: 75px;
  margin-bottom: 20px;
}

.nav-tab {
  background: none;
  border: none;
  font-family: 'Poppins', var(--default-font-family);
  font-size: 20px;
  font-weight: 600;
  line-height: 55px;
  color: var(--text-dark);
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
}

.nav-tab:hover {
  color: var(--primary-color);
}

.nav-tab.active {
  color: var(--text-dark);
} */

/* Tab Indicator */
/* .tab-indicator {
  position: relative;
  margin-bottom: 20px;
}

.indicator-line {
  width: 1687px;
  height: 1px;
  background: url(https://static.codia.ai/custom_image/2025-07-04/070224/horizontal-line.svg) no-repeat center;
  background-size: cover;
}

.indicator-short {
  position: absolute;
  top: 0;
  left: 0;
  width: 112px;
  height: 1px;
  background: url(https://static.codia.ai/custom_image/2025-07-04/070224/short-horizontal-line.svg) no-repeat center;
  background-size: cover;
  transition: transform 0.3s ease;
}

.indicator-short.case-studies {
  transform: translateX(123px);
} */

/* Explore Section */
/* .explore-section {
  position: absolute;
  top: 110px;
  right: 132px;
  display: flex;
  align-items: center;
  gap: 46px;
}

.explore-text {
  font-family: 'Poppins', var(--default-font-family);
  font-size: 17.06px;
  font-weight: 400;
  line-height: 25.596px;
  color: var(--primary-color);
}

.explore-arrow {
  width: 14px;
  height: 14px;
} */

/* Section Title */
.section-title {
  font-family: 'Poppins', var(--default-font-family);
  font-size: 20px;
  font-weight: 600;
  line-height: 55px;
  color: var(--text-dark);
}


/* Cards Grid */
 .cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  width: 100%;
} 

/* Insight Cards */
/* .insight-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 286px;
  object-fit: cover;
}

.card-content-insights{
  padding: 20px;
}

.card-category {
  font-family: 'Poppins', var(--default-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: block;
}

.card-title {
  font-family: 'Poppins', var(--default-font-family);
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}

.author-avatar {
  width: 53px;
  height: 53px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name-insights {
  font-family: 'Poppins', var(--default-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-dark);
}

.author-subtitle {
  font-family: 'Poppins', var(--default-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-dark);
  margin-bottom: 20px;
  margin-left: 68px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.article-type,
.read-time {
  font-family: 'Poppins', var(--default-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-dark);
}

.rating {
  display: flex;
  align-items: center;
}

.star {
  width: 15px;
    height: 15px;
    margin-right: 7px;
    margin-top: -4px;
} */

/* Responsive Design */
/* @media (max-width: 1440px) {
  .insights-content {
    padding: 0 50px;
  }
  
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .insights-nav {
    gap: 100px;
  }
}

@media (max-width: 1024px) {
  .insights-section {
    height: auto;
    padding: 60px 0;
  }
  
  .insights-title {
    font-size: 32px;
    margin-bottom: 150px;
  }
  
  .insights-subtitle {
    position: static;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .nav-tab {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .explore-section {
    position: static;
    justify-content: center;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .insights-content {
    padding: 0 20px;
  }
  
  .insights-nav {
    gap: 50px;
    justify-content: center;
  }
  
  .nav-tab {
    font-size: 24px;
  }
  
  .section-title {
    font-size: 24px;
    text-align: center;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .card-title {
    font-size: 20px;
    line-height: 28px;
  }
}

@media (max-width: 480px) {
  .insights-title {
    font-size: 28px;
  }
  
  .nav-tab {
    font-size: 20px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .card-content-insights{
    padding: 15px;
  }
} */
