/* ═══════════════════════════════════════════
   BLOG PAGE - DEDICATED STYLES
   ═══════════════════════════════════════════ */

/* SCROLL PROGRESS */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  width: 0%;
  z-index: 1001;
  transition: width 0.1s ease;
}

/* BLOG HERO SECTION */
.blog-hero-section {
  position: relative;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  padding-top: 100px;
  background: rgb(30, 41, 59);
  overflow: hidden;
  margin-top: 104px;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.blog-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.blog-hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.blog-hero-title {
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 800;
  color: white;
  margin: 0;
  line-height: 1.2;
}

.blog-hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 700px;
  line-height: 1.6;
}

.blog-search-wrapper {
  width: 100%;
  max-width: 600px;
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.blog-search-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  width: 100%;
}

.blog-search-container:focus-within {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.15);
}

.blog-search-container svg {
  width: 20px;
  height:20px;
  color: #fff;
  flex-shrink: 0;
}

.blog-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  color: white;
  outline: none;
  font-family: inherit;
}

.blog-search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* BLOG MAIN SECTION */
.blog-main-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.blog-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.blog-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.blog-tab:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.blog-tab.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #2563eb;
  color: white;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.tab-label {
  display: inline-block;
}

/* BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
  animation: fadeIn 0.4s ease-in;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* BLOG POST CARD */
.blog-post-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(8, 15, 30, 0.06);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(37, 99, 235, 0.05);
  cursor: pointer;
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(8, 15, 30, 0.1);
}

.blog-post-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  height: 220px;
}

.blog-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-post-card:hover .blog-post-image {
  transform: scale(1.08);
}

.blog-post-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(37, 99, 235, 0.9);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.blog-post-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-post-content h2 {
  margin: 0 0 12px;
}

.blog-post-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 0 0 12px;
  transition: color 0.3s;
  text-decoration: none;
}

.blog-post-card:hover .blog-post-title {
  color: #2563eb;
}

.blog-post-excerpt {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.blog-post-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  color: #64748b;
}

.blog-post-author,
.blog-post-date,
.blog-post-readtime {
  font-weight: 500;
}

.blog-post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  transition: all 0.3s;
}

.blog-post-link:hover {
  gap: 12px;
  color: #1d4ed8;
}

/* SKELETON LOADERS */
.blog-card-skeleton {
  background: white;
  border-radius: 14px;
  padding: 0;
  animation: pulse 2s infinite;
}

.skeleton-img {
  width: 100%;
  height: 220px;
  background: #e2e8f0;
  border-radius: 14px 14px 0 0;
}

.skeleton-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-line {
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
}

.skeleton-line.short {
  width: 60%;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* PAGINATION */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(8, 15, 30, 0.04);
}

.blog-pagination-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: white;
  border: 2px solid #e2e8f0;
  color: #2563eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.blog-pagination-btn:hover:not(:disabled) {
  border-color: #2563eb;
  color: #2563eb;
  background: #f0f9ff;
}

.blog-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.blog-pagination-dots {
  display: flex;
  gap: 10px;
}

.pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination-dot:hover {
  background: #2563eb;
  transform: scale(1.2);
}

.pagination-dot.active {
  background: #2563eb;
  width: 24px;
  border-radius: 5px;
}

.blog-pagination-info {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

/* CTA SECTION */
.blog-cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.blog-cta-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.blog-cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}

.blog-cta-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: #64748b;
  margin: 0;
  line-height: 1.6;
  max-width: 700px;
}

.blog-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.blog-cta-btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
}

.blog-cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.blog-cta-btn.secondary {
  background: transparent;
  color: #2563eb;
  border-color: #2563eb;
}

.blog-cta-btn.secondary:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
}

/* BLOG MODAL / POPUP */
.blog-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.blog-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.blog-modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.blog-modal-header {
  position: sticky;
  top: 0;
  padding: 32px 40px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  z-index: 10;
}

.blog-modal-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  flex: 1;
}

.blog-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all 0.2s ease;
  font-size: 20px;
}

.blog-modal-close:hover {
  background: #e2e8f0;
}

.blog-modal-body {
  padding: 40px;
}

.blog-modal-featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 32px;
}

.blog-modal-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 32px;
  font-size: 14px;
  color: #64748b;
}

.blog-modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-modal-meta-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-modal-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.blog-modal-text {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
}

.blog-modal-text h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 16px;
}

.blog-modal-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 12px;
}

.blog-modal-text p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.blog-modal-text ul,
.blog-modal-text ol {
  margin: 16px 0 16px 24px;
  padding-left: 0;
}

.blog-modal-text li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.blog-modal-footer {
  padding: 32px 40px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-modal-footer-btn {
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-modal-footer-btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
}

.blog-modal-footer-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.blog-modal-footer-btn.secondary {
  background: #f1f5f9;
  color: var(--navy);
  border: 2px solid #e2e8f0;
}

.blog-modal-footer-btn.secondary:hover {
  background: #e2e8f0;
}

/* Scrollbar styling for modal */
.blog-modal-content::-webkit-scrollbar {
  width: 8px;
}

.blog-modal-content::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.blog-modal-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

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

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-pagination {
    gap: 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .blog-hero-section {
    padding: 60px 16px;
    padding-top: 120px;
    min-height: 400px;
  }

  .blog-hero-title {
    font-size: 32px;
  }

  .blog-hero-subtitle {
    font-size: 14px;
  }

  .blog-tabs {
    gap: 8px;
  }

  .blog-tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  .blog-grid {
    gap: 16px;
  }

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

  .blog-pagination {
    padding: 24px 16px;
  }

  .blog-search-wrapper {
    margin-top: 12px;
  }

  .blog-search-container {
    padding: 12px 16px;
  }

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

/* ── ANIMATED NAVBAR LOGO ── */
.nav-logo-text {
  display: inline-block !important;
  min-width: 120px !important;
  height: auto !important;
  overflow: visible !important;
  vertical-align: middle !important;
}

.nav-logo-animated {
  display: none !important;
  font-size: 40px !important;
  font-weight: 500 !important;
  letter-spacing: -.05em !important;
  color: #0a1628 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  animation: none !important;
}

.nav-logo-animated.active {
  display: inline-block !important;
  animation: fadeInUp 0.5s ease !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
