/* Hero Section */
.articles-hero-section {
  background-image: url('https://pocketly-public-bucket.s3.ap-south-1.amazonaws.com/7aceb4bf-fa95-4e3a-a473-52665bc97a10.png');
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 150px 20px 250px;
  position: relative;
  overflow: visible;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.articles-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.articles-hero-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.articles-hero-title-line1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500; /* Medium */
  font-size: 62px;
  line-height: 100%;
  letter-spacing: 0;
  color: #7594CC;
  margin: 0 0 16px 0;
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.articles-hero-title-line2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; /* Bold */
  font-size: 62px;
  line-height: 100%;
  letter-spacing: 0;
  color: #ffffff;
  margin: 0;
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.articles-hero-subtitle {
 font-size:16px;
 color:#9BA4BB;
  margin: 20px 0 42px 0;
  font-weight: 500;
}

.articles-search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
}

.articles-search-input-group {
  width: 100%;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 28px;
  padding: 0 4px 0 20px;
  height: 56px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
}

.articles-search-icon {
  display: flex;
  align-items: center;
  color: #64748b;
  margin-right: 12px;
}

.articles-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #1e293b;
  background: transparent;
}

.articles-search-input::placeholder {
  color: #94a3b8;
}

.articles-search-arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #183FBA;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 8px;
  flex-shrink: 0;
  margin-right: 0;
}

.articles-search-arrow-btn svg {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.articles-search-arrow-btn:hover {
  background: #003e9f;
  transform: scale(1.05);
}

.articles-search-arrow-btn:hover svg {
  transform: rotate(45deg);
}


/* Featured Article - Overlapping */
.featured-article-container {
  max-width: 1300px;
  margin: -200px auto 60px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Content Wrapper */
.articles-content-wrapper {
  background: #ffffff;
  padding: 60px 20px;
  min-height: 60vh;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.featured-article {
  display: flex;
  gap: 40px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 1256px;
  min-height: 452px;
  box-sizing: border-box;
}

.featured-article-image {
  flex: 0 0 50%;
  min-height: 452px;
  overflow: hidden;
  box-sizing: border-box;
  max-width: 100%;
}

.featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-article-content {
    flex: 1;
    padding: 36px 48px 48px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.featured-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.featured-article-category {
  font-family: 'Geist', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #183FBA;
  background: #E6ECFC;
  padding: 6px 10px;
  border-radius: 6px;
}

.featured-article-date {
 font-size: 20px;
 font-weight: 400;
 font-family: 'Geist', sans-serif;
  color: #64748b;
}

.featured-article-date::before {
  content: '•';
  margin-right: 12px;
  color: #183FBA;
  font-size: 40px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.featured-article-title {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 46px;
  letter-spacing: 0;
  color: #1e293b;
  margin: 24px 0 24px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.featured-article-description {
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0;
  color: #949494;
  margin: 0 0 40px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.featured-article-link {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #183FBA;
  text-decoration: none;
  position: relative;
  transition: gap 0.3s ease, color 0.25s ease;
}

.featured-read-more-label {
  position: relative;
}

.featured-read-more-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background-color: #183FBA;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-article-link:hover {
  gap: 12px;
}

.featured-article-link:hover .featured-read-more-label::after {
  width: 100%;
}

.featured-arrow-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 24px;
  height: 24px;
  overflow: hidden;
}

.featured-arrow {
  width: 24px;
  height: 24px;
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-arrow:first-child {
  transform: translateX(0);
}

.featured-arrow:last-child {
  transform: translateX(-24px);
}

.featured-article-link:hover .featured-arrow:first-child {
  transform: translateX(24px);
}

.featured-article-link:hover .featured-arrow:last-child {
  transform: translateX(0);
}

/* Articles Grid */
.articles-grid-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  padding: 0 20px;
}

.blog-card {
  background: #ffffff;
  width: 100%;
  min-height: 479px;
  border-radius: 16px;
  border: 1.5px solid #D5E2F9;
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  max-width: 100%;
}

.blog-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  padding: 0;
  margin: 0;
  display: block;
  flex-shrink: 0;
  position: relative;
}
.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  position: absolute;
  top: 0;
  left: 0;
}

.blog-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.blog-time {
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #64748b;
  margin: 0 0 10px 0;
}

.blog-heading {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  color: #1e293b;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.blog-description {
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #64748b;
  margin: 0 0 12px 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #183FBA;
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
  margin-top: auto;
  flex-shrink: 0;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.pagination-modern {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-modern__btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.pagination-modern__btn:not([disabled]) {
  background: #E3EEFD;
  color: #075DED;
}

.pagination-modern__btn:hover:not([disabled]) {
  background: #D5E2F9;
  color: #0540b3;
}

.pagination-modern__btn[disabled] {
  background: #f1f5f9;
  color: #cbd5e1;
  cursor: not-allowed;
}

.pagination-modern__btn svg {
  width: 20px;
  height: 20px;
}

.pagination-modern__num {
  min-width: auto;
  height: auto;
  border: none;
  background: transparent;
  color: #64748b;
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  transition: all 0.2s ease;
}

.pagination-modern__num:hover:not(.active) {
  color: #075DED;
}

.pagination-modern__num.active {
  width: 40px;
  height: 40px;
  background: #075DED;
  color: #ffffff;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pagination-modern__ellipsis {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.2rem;
}

/* Search Results Info */
.search-results-info {
  text-align: center;
  margin: 40px auto 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 16px;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 500;
  max-width: 500px;
  border: 1px solid rgba(7, 93, 237, 0.1);
}

.search-results-info .highlight {
  color: #075DED;
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .featured-article {
    max-width: 100%;
  }

  .articles-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }

  .articles-content-wrapper {
    padding: 50px 20px;
  }
}

@media (max-width: 900px) {
  .articles-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  .articles-hero-section {
    padding: 120px 20px 220px;
  }

  .featured-article-container {
    margin: -160px auto 60px;
    padding: 0 20px;
  }

  .articles-hero-title-line1 {
    font-size: 48px;
    line-height: 48px;
  }

  .articles-hero-title-line2 {
    font-size: 56px;
    line-height: 56px;
  }

  .articles-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 20px;
  }

  .featured-article {
    flex-direction: row;
    gap: 30px;
    min-height: auto;
  }

  .featured-article-image {
    flex: 0 0 45%;
    min-height: 350px;
  }

  .featured-article-content {
    padding: 32px 32px 32px 0;
  }

  .featured-article-title {
    font-size: 28px;
    line-height: 38px;
  }

  .featured-article-description {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 768px) {
  .articles-hero-section {
    padding: 100px 20px 180px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .featured-article-container {
    margin: -120px auto 60px;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  .articles-hero-title-line1 {
    font-size: 36px;
    line-height: 36px;
  }

  .articles-hero-title-line2 {
    font-size: 42px;
    line-height: 42px;
  }

  .articles-hero-subtitle {
    font-size: 14px;
    margin: 16px 0 32px 0;
  }

  .articles-search-form {
    max-width: 100%;
  }

  .articles-search-input-group {
    width: 100%;
    height: 52px;
    padding: 0 4px 0 16px;
  }

  .articles-search-icon {
    margin-right: 10px;
  }

  .articles-search-icon svg {
    width: 18px;
    height: 18px;
  }

  .articles-search-arrow-btn {
    width: 44px;
    height: 44px;
    margin-left: 6px;
  }

  .articles-search-arrow-btn svg {
    width: 18px;
    height: 18px;
  }

  .articles-grid-container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .articles-content-wrapper {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 40px 16px;
  }

  .blog-card {
    min-height: auto;
    height: auto;
  }

  .blog-image {
    height: 200px;
  }

  .featured-article {
    flex-direction: column;
    gap: 0;
    min-height: auto;
  }

  .featured-article-image {
    flex: none;
    width: 100%;
    min-height: 250px;
    height: 250px;
  }

  .featured-article-content {
    padding: 24px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .featured-article {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  .featured-article-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .featured-article-category {
    font-size: 16px;
    padding: 4px 8px;
  }

  .featured-article-date {
    font-size: 16px;
  }

  .featured-article-date::before {
    font-size: 24px;
    margin-right: 8px;
  }

  .featured-article-title {
    font-size: 24px;
    line-height: 32px;
    margin: 16px 0;
  }

  .featured-article-description {
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 24px 0;
  }

  .featured-article-link {
    font-size: 20px;
  }

  .pagination-container {
    margin-top: 40px;
  }

  .pagination-modern {
    gap: 12px;
    flex-wrap: wrap;
  }

  .pagination-modern__btn {
    width: 36px;
    height: 36px;
  }

  .pagination-modern__num {
    font-size: 14px;
    padding: 0 8px;
  }

  .pagination-modern__num.active {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .search-results-info {
    margin: 32px auto 0;
    padding: 16px 20px;
    font-size: 14px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .articles-hero-section {
    padding: 80px 16px 150px;
    background-size: cover;
    background-position: center;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .articles-hero-content {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .featured-article-container {
    margin: -100px auto 40px;
    padding: 0 12px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  .articles-hero-title-line1 {
    font-size: 28px;
    line-height: 32px;
    margin: 20px 0 12px 0;
  }

  .articles-hero-title-line2 {
    font-size: 32px;
    line-height: 36px;
  }

  .articles-hero-subtitle {
    font-size: 13px;
    margin: 12px 0 28px 0;
    line-height: 20px;
  }

  .articles-search-form {
    max-width: 100%;
  }

  .articles-search-input-group {
    height: 48px;
    padding: 0 4px 0 14px;
    border-radius: 24px;
  }

  .articles-search-input {
    font-size: 14px;
  }

  .articles-search-arrow-btn {
    width: 40px;
    height: 40px;
  }

  .articles-content-wrapper {
    padding: 40px 12px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .articles-grid-container {
    gap: 20px;
    padding: 0 12px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .featured-article {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .featured-article-content {
    padding: 20px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .blog-card {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .blog-content {
    width: 100%;
    box-sizing: border-box;
  }

  .blog-card {
    border-radius: 12px;
  }

  .blog-image {
    height: 180px;
  }

  .blog-content {
    padding: 16px;
  }

  .blog-time {
    font-size: 12px;
    margin: 0 0 8px 0;
  }

  .blog-heading {
    font-size: 18px;
    line-height: 24px;
    margin: 0 0 8px 0;
  }

  .blog-description {
    font-size: 13px;
    line-height: 18px;
    margin: 0 0 12px 0;
  }

  .read-more-link {
    font-size: 14px;
  }

  .featured-article {
    border-radius: 16px;
    gap: 0;
  }

  .featured-article-image {
    min-height: 200px;
    height: 200px;
  }

  .featured-article-content {
    padding: 20px;
  }

  .featured-article-meta {
    margin-bottom: 0;
  }

  .featured-article-category {
    font-size: 14px;
    padding: 4px 8px;
  }

  .featured-article-date {
    font-size: 14px;
  }

  .featured-article-date::before {
    font-size: 20px;
    margin-right: 6px;
  }

  .featured-article-title {
    font-size: 20px;
    line-height: 28px;
    margin: 12px 0;
  }

  .featured-article-description {
    font-size: 14px;
    line-height: 20px;
    margin: 0 0 20px 0;
  }

  .featured-article-link {
    font-size: 18px;
    gap: 6px;
  }

  .featured-article-link svg {
    width: 20px;
    height: 20px;
  }

  .pagination-container {
    margin-top: 32px;
  }

  .pagination-modern {
    gap: 8px;
  }

  .pagination-modern__btn {
    width: 32px;
    height: 32px;
  }

  .pagination-modern__btn svg {
    width: 16px;
    height: 16px;
  }

  .pagination-modern__num {
    font-size: 13px;
    padding: 0 6px;
  }

  .pagination-modern__num.active {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .pagination-modern__ellipsis {
    min-width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .search-results-info {
    margin: 24px auto 0;
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 12px;
  }
}

/* Extra small devices (phones in portrait, less than 360px) */
@media (max-width: 360px) {
  .articles-hero-section {
    padding: 60px 12px 120px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .articles-hero-content {
    width: 100%;
    box-sizing: border-box;
  }

  .articles-hero-title-line1 {
    font-size: 24px;
    line-height: 28px;
  }

  .articles-hero-title-line2 {
    font-size: 28px;
    line-height: 32px;
  }

  .articles-hero-subtitle {
    font-size: 12px;
  }

  .articles-search-input-group {
    height: 44px;
  }

  .articles-search-arrow-btn {
    width: 36px;
    height: 36px;
  }

  .featured-article-container {
    margin: -80px auto 32px;
    padding: 0 8px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  .articles-content-wrapper {
    padding: 32px 8px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .articles-grid-container {
    padding: 0 8px;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .featured-article {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .featured-article-content {
    padding: 16px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .blog-card {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
  }

  .blog-image {
    height: 160px;
  }

  .blog-content {
    padding: 12px;
  }

  .blog-heading {
    font-size: 16px;
    line-height: 22px;
  }

  .blog-description {
    font-size: 12px;
    line-height: 16px;
  }

  .featured-article-image {
    min-height: 180px;
    height: 180px;
  }

  .featured-article-content {
    padding: 16px;
  }

  .featured-article-title {
    font-size: 18px;
    line-height: 24px;
  }

  .featured-article-description {
    font-size: 13px;
    line-height: 18px;
  }
}

