/* Blog Hero Section */
.blog-hero {
  padding: 10px 5% 6px;
  color: white;
  position: relative;
  overflow: visible !important; /* CRITICAL: Allow dropdown to overflow */
  background-color: #f9fbfe;
  z-index: 100000;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M500,97C126.7,96.3,0.8,19.8,0,0v100l1000,0V1C1000,19.4,873.3,97.8,500,97z" fill="%23ffffff"/></svg>');
  background-size: 100% 100px;
  background-position: bottom;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.blog-hero-content {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 3;
}

/* ================= REDESIGNED SEARCH SECTION ================= */

.blog-hero-search {
margin: auto;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 99999 !important;
    width: 100%;
    max-width: 400px;
    align-items: center;
    flex-direction: column;
}

.search-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  z-index: 99999 !important;
}

.search-form {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 100000 !important;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 40px;
  padding: 4px 16px;
  box-shadow: 0 4px 12px rgba(31, 58, 138, 0.15);
  min-width: 0;
  transition: all 0.3s ease;
  z-index: 100001 !important;
}

.search-input-wrapper:focus-within {
  box-shadow: 0 6px 20px rgba(31, 58, 138, 0.25);
  transform: translateY(-2px);
}

.search-icon {
  color: #64748b;
  font-size: 16px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  pointer-events: none;
}

.search-input {
  border: none;
  padding: 10px 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: #162c6b;
  flex: 1;
  min-width: 0;
  outline: none;
  font-weight: 500;
}

.search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-btn {
  background: linear-gradient(135deg, #1f3a8a, #133C72);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  display: flex;
  font-weight: 600;
  align-items: center;
  cursor: pointer;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(31, 58, 138, 0.2);
  z-index: 100001;
}

.search-btn:hover {
  background: linear-gradient(135deg, #133C72, #0b2a5c);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 58, 138, 0.3);
}

.search-btn i {
  font-size: 14px;
}

/* ================= COMPLETELY REDESIGNED SEARCH SUGGESTIONS ================= */

.search-suggestions {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 
              0 0 0 1px rgba(31, 58, 138, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999999 !important; /* CRITICAL: Extremely high z-index */
  overflow: hidden;
  max-height: 600px;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.search-suggestions.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Suggestions Header */
.suggestions-header {
  padding: 18px 24px;
  background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
  border-bottom: 2px solid #e1e8ff;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #1f3a8a;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.suggestions-header i {
  color: #4a6cf7;
  font-size: 16px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Suggestions Content Container */
.suggestions-content {
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  background: white;
}

/* Custom Scrollbar */
.suggestions-content::-webkit-scrollbar {
  width: 8px;
}

.suggestions-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.suggestions-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.suggestions-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ================= SEARCH RESULT ITEMS - REDESIGNED ================= */

.search-result-item {
  display: flex;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  background: white;
}

.search-result-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, #4a6cf7, #1f3a8a);
  transition: width 0.3s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f8faff;
  transform: translateX(8px);
  padding-left: 32px;
}

.search-result-item:hover::before {
  width: 4px;
}

.search-result-item.active {
  background: linear-gradient(90deg, #eef2ff 0%, #f8faff 100%);
  border-left: 4px solid #4a6cf7;
  padding-left: 28px;
  box-shadow: inset 0 0 0 1px rgba(74, 108, 247, 0.1);
}

.result-item-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

/* Result Item Image */
.result-item-image {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.search-result-item:hover .result-item-image {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.result-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.search-result-item:hover .result-item-image img {
  transform: scale(1.1);
}

/* Result Item Text */
.result-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-item-title {
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.search-result-item:hover .result-item-title,
.search-result-item.active .result-item-title {
  color: #1f3a8a;
}

.result-item-excerpt {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.result-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
  flex-wrap: wrap;
}

.result-item-category {
  background: linear-gradient(135deg, #eef2ff, #dbeafe);
  color: #1f3a8a;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(31, 58, 138, 0.1);
}

/* ================= STATE COMPONENTS ================= */

/* Loading State */
.loading-state {
  padding: 48px 24px;
  text-align: center;
  color: #64748b;
  background: white;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #4a6cf7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-state p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #475569;
}

/* Empty State */
.empty-state {
  padding: 56px 24px;
  text-align: center;
  color: #94a3b8;
  background: white;
}

.empty-state i {
  font-size: 56px;
  color: #cbd5e1;
  margin-bottom: 20px;
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.empty-state p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
}

/* No Results State */
.no-results {
  padding: 48px 24px;
  text-align: center;
  color: #64748b;
  background: white;
}

.no-results i {
  font-size: 48px;
  color: #f97316;
  margin-bottom: 20px;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.no-results p {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: #475569;
}

.no-results .query-text {
  color: #4a6cf7;
  font-weight: 700;
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ================= VIEW ALL RESULTS BUTTON ================= */

.view-all-results {
  padding: 20px 24px;
  text-align: center;
  background: linear-gradient(180deg, white 0%, #f8faff 100%);
  border-top: 2px solid #e1e8ff;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.view-all-btn-b {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #4a6cf7, #1f3a8a);
  color: white;
  padding: 12px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
  letter-spacing: 0.3px;
}

.view-all-btn-b:hover {
  background: linear-gradient(135deg, #3a5ce5, #1a2f7a);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 108, 247, 0.4);
}

.view-all-btn-b i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.view-all-btn-b:hover i {
  transform: translateX(4px);
}

/* ================= SEARCH STATS ================= */

.search-stats {
  margin-top: 16px;
}

.search-results-info {
  background: linear-gradient(135deg, #eef2ff, #dbeafe);
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #1f3a8a;
  box-shadow: 0 2px 8px rgba(74, 108, 247, 0.1);
  border: 1px solid rgba(74, 108, 247, 0.1);
}

.search-results-info i {
  flex-shrink: 0;
  font-size: 16px;
  color: #4a6cf7;
}

.search-results-info strong {
  font-weight: 700;
  color: #1f3a8a;
}

.clear-search {
  margin-left: auto;
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.clear-search:hover {
  color: #ef4444;
  background: #fee2e2;
}

.clear-search i {
  font-size: 12px;
}

/* ================= KEYBOARD HINTS ================= */

.keyboard-hint {
  padding: 12px 24px;
  background: #f8faff;
  border-top: 1px solid #e1e8ff;
  font-size: 12px;
  color: #64748b;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.keyboard-hint kbd {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  margin: 0 3px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
              inset 0 -2px 0 rgba(0, 0, 0, 0.3);
  font-family: 'Monaco', 'Courier New', monospace;
}

/* ================= CATEGORIES ================= */

.blog-categories {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.category-tag {
  background: rgba(255, 255, 255, 0.2);
  color: black;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  box-shadow: 0 5px 5px rgb(31 58 138 / 20%);
}

.category-tag:hover,
.category-tag.active {
  background: white;
  color: #1f3a8a;
  border-color: white;
  transform: scale(1.05);
  box-shadow: 0 5px 5px rgb(31 58 138 / 20%);
}

/* Main Blog Layout */
.blog-main {
  padding: 30px 5%;
  background-color: #f9fbfe;
  position: relative;
  z-index: 1;
}

.blog-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
}

/* Featured Article */
.featured-article {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 60px;
  transition: transform 0.3s ease;
}

.featured-article:hover {
  transform: translateY(-5px);
}

.featured-image {
  position: relative;
  height: 330px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-article:hover .featured-image img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.featured-content {
  padding: 10px;
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #64748b;
}

.article-category {
  background: #eef5ff;
  color: #1f3a8a;
  padding: 5px 15px;
  border-radius: 50px;
  font-weight: 600;
}

.article-title {
  font-size: 20px;
  color: #162c6b;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.article-excerpt {
  font-size: 18px;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 30px;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 15px;
  color: #162c6b;
  font-weight: 600;
  margin-bottom: 5px;
}

.author-info p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.read-more-btn {
  background: linear-gradient(135deg, #1f3a8a, #133C72);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: linear-gradient(135deg, #133C72, #0b2a5c);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(31, 58, 138, 0.3);
}

/* Recent Articles Header */
.recent-articles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.recent-articles-header h2 {
  font-size: 28px;
  color: #162c6b;
  font-weight: 700;
}

.sort-select {
  padding: 10px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #162c6b;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-select:focus {
  outline: none;
  border-color: #1f3a8a;
  box-shadow: 0 0 0 3px rgba(31, 58, 138, 0.1);
}

/* Articles Grid - 3 COLUMNS */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.article-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.article-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #1f3a8a, #133C72);
  color: white;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-content .article-meta {
  margin-bottom: 15px;
}

.article-content .article-title {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.4;
  flex-grow: 1;
}

.article-content .article-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 20px;
  flex-grow: 2;
}

.article-content .article-footer {
  padding-top: 20px;
  margin-top: auto;
  border-top: 1px solid #e2e8f0;
}

.article-content .author-info {
  align-items: center;
}

.article-content .author-avatar {
  width: 35px;
  height: 35px;
}

.article-content .author-info span {
  font-size: 14px;
  font-weight: 600;
  color: #162c6b;
}

.read-more-link {
  color: #1f3a8a;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.read-more-link:hover {
  color: #133C72;
  gap: 12px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
}

.page-btn {
  padding: 12px 25px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #162c6b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background: #f8fafc;
  border-color: #1f3a8a;
  color: #1f3a8a;
}

.page-numbers {
  display: flex;
  gap: 10px;
}

.page-number {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-number:hover,
.page-number.active {
  background: linear-gradient(135deg, #1f3a8a, #133C72);
  color: white;
}

.page-dots {
  color: #94a3b8;
  padding: 0 5px;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 320px;
}

.sidebar-widget {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.widget-title {
  font-size: 18px;
  color: #162c6b;
  margin-bottom: 18px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid #eef5ff;
}

/* About Widget */
.about-widget p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 18px;
  font-size: 14px;
}

.widget-link {
  color: #1f3a8a;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.widget-link:hover {
  color: #133C72;
  gap: 12px;
}

/* Popular Posts */
.popular-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.popular-post:last-child {
  border-bottom: none;
}

.popular-post-image {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post-content h4 {
  font-size: 14px;
  color: #162c6b;
  margin-bottom: 6px;
  font-weight: 600;
  line-height: 1.4;
}

.post-meta {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
}

/* Categories Widget */
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  margin-bottom: 10px;
}

.categories-list li:last-child {
  margin-bottom: 0;
}

.categories-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 13px;
}

.categories-list a:hover {
  background: #eef5ff;
  color: #1f3a8a;
  transform: translateX(5px);
}

.categories-list i {
  color: #1f3a8a;
  font-size: 14px;
  width: 18px;
}

.category-count {
  background: #e2e8f0;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, #1f3a8a, #133C72);
  color: white;
  padding: 25px;
}

.newsletter-widget .widget-title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.newsletter-widget p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-form input {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
  outline: none;
  border-color: white;
}

.subscribe-btn {
  background: white;
  color: #1f3a8a;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.subscribe-btn:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.privacy-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
  text-align: center;
}

/* Tags Widget */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #f8fafc;
  color: #4a5568;
  padding: 6px 12px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #eef5ff;
  color: #1f3a8a;
  transform: translateY(-2px);
}

/* CTA Section */
.blog-cta {
  padding: 80px 5%;
  background: linear-gradient(135deg, #133C72 0%, #1f3a8a 100%);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.cta-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: #1f3a8a;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #f8fafc;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Active Link */
.nav-links a.active {
  color: #1f3a8a;
  font-weight: 600;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #1f3a8a;
  border-radius: 2px;
}

/* Trending Widget */
.trending-widget .trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.trending-widget .trending-item:last-child {
  border-bottom: none;
}

.trending-widget .trending-item:hover {
  transform: translateX(5px);
}

.trending-widget .trending-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1f3a8a, #133C72);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trending-widget .trending-icon i {
  color: white;
  font-size: 16px;
}

.trending-widget .trending-content h4 {
  font-size: 14px;
  color: #162c6b;
  margin-bottom: 4px;
  font-weight: 600;
}

.trending-widget .trending-content p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* Comments Widget */
.comments-widget .comment-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.comments-widget .comment-item:last-child {
  border-bottom: none;
}

.comments-widget .comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.comments-widget .comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comments-widget .comment-content h4 {
  font-size: 13px;
  color: #162c6b;
  margin-bottom: 4px;
  font-weight: 600;
}

.comments-widget .comment-content p {
  font-size: 12px;
  color: #4a5568;
  line-height: 1.4;
  margin-bottom: 6px;
  font-style: italic;
}

.comments-widget .comment-time {
  font-size: 11px;
  color: #94a3b8;
}

/* Resources Widget */
.resources-widget .resource-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.resources-widget .resource-item:last-child {
  border-bottom: none;
}

.resources-widget .resource-item i {
  color: #1f3a8a;
  font-size: 14px;
  width: 18px;
}

.resources-widget .resource-link {
  color: #4a5568;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.resources-widget .resource-link:hover {
  color: #1f3a8a;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .blog-sidebar {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .blog-hero-content h1 {
    font-size: 36px;
  }
  
  .featured-image {
    height: 300px;
  }
  
  .article-title {
    font-size: 28px;
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 60px 5% 40px;
  }
  
  .blog-hero-content h1 {
    font-size: 32px;
  }
  
  .blog-hero-search {
    max-width: 100%;
    padding: 0 16px;
  }

  .search-form {
    flex-direction: column;
    gap: 12px;
  }
  
  .search-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }
  
  .search-suggestions {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    max-height: 75vh !important;
    transform: translateY(100%) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3) !important;
  }
  
  .search-suggestions.visible {
    transform: translateY(0) scale(1) !important;
  }

  .suggestions-content {
    max-height: calc(75vh - 140px);
  }

  .result-item-content {
    gap: 12px;
  }

  .result-item-image {
    width: 60px;
    height: 60px;
  }

  .result-item-title {
    font-size: 14px;
  }

  .result-item-excerpt {
    font-size: 12px;
    -webkit-line-clamp: 1;
  }

  .keyboard-hint {
    display: none;
  }
  
  .blog-main {
    padding: 60px 5%;
  }
  
  .featured-article {
    margin-bottom: 40px;
  }
  
  .featured-image {
    height: 250px;
  }
  
  .featured-content {
    padding: 30px;
  }
  
  .recent-articles-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-sidebar {
    grid-template-columns: 1fr;
  }
  
  .pagination {
    flex-direction: column;
    gap: 15px;
  }
  
  .blog-cta {
    padding: 60px 5%;
  }
  
  .cta-content h2 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .blog-hero-content h1 {
    font-size: 28px;
  }
  
  .blog-hero-content p {
    font-size: 16px;
  }

  .search-input-wrapper {
    padding: 4px 12px;
  }

  .search-input {
    font-size: 13px;
    padding: 8px 6px;
  }

  .suggestions-header {
    padding: 14px 16px;
    font-size: 13px;
  }

  .search-result-item {
    padding: 12px 16px;
  }

  .result-item-image {
    width: 50px;
    height: 50px;
  }

  .view-all-results {
    padding: 16px;
  }

  .view-all-btn-b {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }
  
  .featured-content {
    padding: 20px;
  }
  
  .article-title {
    font-size: 24px;
  }
  
  .article-footer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  
  .page-numbers {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .sidebar-widget {
    padding: 20px;
  }
  
  .cta-content h2 {
    font-size: 28px;
  }
}