/* Featured Publications Section Styles */

.featured-publications {
  margin-bottom: 40px;
}

.newsletter-feature-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 25px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  height: 100%;
}

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

.newsletter-logo-main {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 12px;
  border-radius: 3px;
  background: #f8f9fa;
  padding: 3px;
  flex-shrink: 0;
}

.newsletter-info h3 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.newsletter-info h3 a {
  color: #333;
  text-decoration: none;
}

.newsletter-info h3 a:hover {
  color: #007bff;
}

.newsletter-description {
  margin: 0;
  font-size: 11px;
  color: #555;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.subscriber-count {
  display: none;
}

.featured-articles-list {
  margin-top: 12px;
}

.article-item {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.article-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.article-item h4 {
  margin: 0 0 3px 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-link {
  font-size: 10px;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.article-link:hover {
  text-decoration: underline;
  color: #0056b3;
}

.see-more-link {
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 10px;
  color: #666;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #f8f9fa;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.see-more-link:hover {
  color: #007bff;
  border-color: #007bff;
  background: #f0f8ff;
  text-decoration: none;
}

.additional-articles {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.additional-articles.expanded {
  display: block;
}

.see-less-link {
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 10px;
  color: #666;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #f8f9fa;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.see-less-link:hover {
  color: #007bff;
  border-color: #007bff;
  background: #f0f8ff;
  text-decoration: none;
}

.featured-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px 30px -15px;
}

.featured-col {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 15px;
}

.blog-separator {
  border-top: 2px solid #e0e0e0;
  margin: 50px 0 30px 0;
  position: relative;
}

.blog-separator::before {
  content: "Recent Blog Posts";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .featured-publications {
    margin-bottom: 30px;
  }
  
  .featured-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .featured-row {
    margin: 0 -8px 20px -8px;
  }
  
  .featured-col {
    padding: 0 8px;
  }
  
  .newsletter-feature-card {
    padding: 12px;
    margin-bottom: 16px;
  }
  
  .newsletter-logo-main {
    width: 28px;
    height: 28px;
    margin-right: 10px;
  }
  
  .newsletter-info h3 {
    font-size: 13px;
  }
  
  .newsletter-description {
    font-size: 10px;
  }
  
  .article-item h4 {
    font-size: 11px;
  }
  
  .article-link {
    font-size: 9px;
  }
  
  .see-more-link {
    font-size: 9px;
    padding: 3px 6px;
  }
  
  .blog-separator {
    margin: 35px 0 25px 0;
  }
  
  .blog-separator::before {
    font-size: 13px;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .featured-publications {
    margin-bottom: 25px;
    padding: 0 15px !important;
  }
  
  .featured-row {
    margin: 0 0 20px 0 !important;
    display: block !important;
    flex-wrap: nowrap !important;
  }
  
  .featured-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin-bottom: 20px;
  }
  
  .newsletter-feature-card {
    margin-bottom: 0;
    padding: 20px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #e8e8e8;
    width: 100%;
    height: auto !important;
  }
  
  .newsletter-header {
    margin-bottom: 16px;
    align-items: flex-start;
    display: flex !important;
  }
  
  .newsletter-logo-main {
    width: 44px !important;
    height: 44px !important;
    margin-right: 16px;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
    object-fit: contain;
  }
  
  .newsletter-info {
    flex: 1;
    min-width: 0;
  }
  
  .newsletter-info h3 {
    font-size: 17px !important;
    margin-bottom: 8px;
    line-height: 1.3;
    font-weight: 600;
  }
  
  .newsletter-description {
    font-size: 14px !important;
    line-height: 1.5;
    color: #666;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
  }
  
  .featured-articles-list {
    margin-top: 20px;
  }
  
  .article-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f5f5f5;
  }
  
  .article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  .article-item h4 {
    font-size: 15px !important;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .article-link {
    font-size: 13px !important;
    font-weight: 600;
    color: #007bff;
    display: inline-block;
    margin-top: 4px;
  }
  
  .see-more-link {
    font-size: 13px !important;
    padding: 10px 18px;
    margin-top: 16px;
    border-radius: 25px;
    font-weight: 600;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    width: 100%;
    text-align: center;
    display: block;
    cursor: pointer;
  }
  
  .see-more-link:hover {
    background: #e9ecef;
    border-color: #ced4da;
    color: #495057;
    text-decoration: none;
  }
  
  .additional-articles {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
  }
  
  .blog-separator {
    margin: 45px 15px 30px 15px;
    border-top-width: 2px;
  }
  
  .blog-separator::before {
    font-size: 15px !important;
    padding: 0 18px;
    top: -12px;
    font-weight: 600;
  }
}

/* Ultra-specific mobile layout fixes */
@media screen and (max-width: 480px) {
  /* Force single column layout with maximum specificity */
  .page-content .featured-publications .featured-row {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  .page-content .featured-publications .featured-row .featured-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    float: none !important;
    display: block !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
  }
  
  .page-content .featured_publications .featured-col:nth-child(even),
  .page-content .featured_publications .featured-col:nth-child(odd) {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    clear: both !important;
  }
}

@media screen and (max-width: 600px) {
  /* Additional mobile fixes for slightly larger small screens */
  .featured-publications .featured-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .featured-publications .featured-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    order: 0 !important;
  }
}
