/* Learning Center & Resources Blog Styling */

/* Blog Layout Styles */
.resources-page {
  min-height: 100vh;
  background: #f9fafb;
  padding-top: 0;
}

/* Ensure nav logo is visible on resources pages */
.resources-page .nav-logo {
  display: flex !important;
  flex-direction: column;
}

.resources-page .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a !important;
  letter-spacing: -0.02em;
}

.resources-page .logo-tagline {
  font-size: 0.7rem;
  color: #64748b !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Blog Header Section - WITH CONTRAST FIXES */
.blog-header {
  background: linear-gradient(135deg, var(--navy-primary) 0%, #2563eb 100%);
  padding: 4rem 0;
  margin-bottom: 3rem;
  color: white !important;
}

.blog-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  color: white;
}

.blog-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.blog-header .subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 800px;
}

/* Blog Container */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

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

.blog-layout.with-sidebar {
  grid-template-columns: 280px 1fr;
}

/* Blog Sidebar */
.blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-links a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.sidebar-links a:hover {
  background: var(--light-grey);
  color: var(--navy-primary);
}

.sidebar-links a.active {
  background: var(--blue-light);
  color: var(--navy-primary);
  font-weight: 600;
}

/* Article Content */
.article-container {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--navy-primary);
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
}

.publish-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.reading-time {
  margin-left: auto;
  padding: 0.25rem 0.75rem;
  background: var(--light-grey);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Article Typography */
.article-content {
  color: var(--text-primary);
  line-height: 1.8;
}

.article-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  color: var(--navy-primary);
  letter-spacing: -0.02em;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--navy-primary);
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.article-content ul, .article-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--light-grey);
  border-left: 4px solid var(--navy-primary);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Key Statistics Box */
.stats-box {
  background: linear-gradient(135deg, var(--navy-primary) 0%, #2563eb 100%);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Callout Boxes */
.callout {
  background: var(--blue-light);
  border-left: 4px solid var(--navy-primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.callout.warning {
  background: #fef3c7;
  border-left-color: #f59e0b;
}

.callout.success {
  background: #d1fae5;
  border-left-color: #10b981;
}

.callout-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Tables */
.data-table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}

.data-table table {
  width: 100%;
  min-width: 600px;
}

.data-table th {
  background: var(--navy-primary);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.data-table tr:hover {
  background: var(--light-grey);
}

/* CTA Section */
.article-cta {
  background: linear-gradient(135deg, var(--navy-primary) 0%, #2563eb 100%);
  border-radius: 12px;
  padding: 3rem;
  margin: 3rem 0;
  text-align: center;
  color: white;
}

.article-cta h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.article-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-demo {
  background: white !important;
  color: #0a1f44 !important;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  background: #f0f4f8 !important;
  color: #0a1f44 !important;
}

.btn-learn {
  background: transparent;
  color: white;
  padding: 0.875rem 2rem;
  border: 2px solid white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-learn:hover {
  background: white;
  color: var(--navy-primary);
}

/* Social Sharing */
.social-sharing {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  margin: 2rem 0;
}

.social-sharing span {
  font-weight: 600;
  color: var(--text-secondary);
}

.social-buttons {
  display: flex;
  gap: 0.5rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-grey);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--navy-primary);
  color: white;
  transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #e5e7eb;
}

.related-articles h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--navy-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.related-card {
  background: var(--light-grey);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.related-card h4 {
  color: var(--navy-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.related-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Hub Page Styles */
.hub-hero {
  background: linear-gradient(135deg, var(--navy-primary) 0%, #2563eb 100%);
  padding: 5rem 0;
  margin-bottom: 3rem;
  text-align: center;
  color: white;
}

.hub-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hub-hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hub-search {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.hub-search input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: 50px;
  border: none;
  font-size: 1.05rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.hub-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.category-section {
  margin-bottom: 4rem;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.category-header h2 {
  font-size: 1.75rem;
  color: var(--navy-primary);
}

.category-header a {
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.article-card-content {
  padding: 1.5rem;
}

.article-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--blue-light);
  color: var(--navy-primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.article-card h3 {
  color: var(--navy-primary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.article-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.article-meta-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* CONTRAST FIXES FOR DARK SECTIONS */
.blog-header,
.hub-hero,
.article-cta,
.stats-box {
  color: white !important;
}

.blog-header *,
.hub-hero *,
.article-cta *,
.stats-box * {
  color: white !important;
}

.blog-header h1,
.hub-hero h1,
.article-cta h3 {
  color: white !important;
}

.blog-header .subtitle,
.hub-hero p,
.article-cta p {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* FIX: Override white color for CTA buttons */
.article-cta .btn-demo {
  background: white !important;
  color: #0a1f44 !important;
}

.article-cta .btn-demo:hover {
  background: #f0f4f8 !important;
  color: #0a1f44 !important;
}

/* COMPREHENSIVE RESPONSIVE DESIGN */

/* Tablets - iPad, iPad Pro landscape (768px - 1024px) */
@media (max-width: 1024px) {
  .container,
  .blog-container {
    padding: 0 24px !important;
  }
  
  .hub-hero,
  .blog-header {
    padding: 80px 24px 60px !important;
  }
  
  .hub-hero h1,
  .blog-header h1 {
    font-size: 2.5rem !important;
  }
  
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-layout.with-sidebar {
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }
  
  section {
    padding: 60px 0 !important;
  }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
  /* Container adjustments */
  .blog-container {
    padding: 0 16px 2rem !important;
  }
  
  .container {
    padding: 0 16px !important;
  }
  
  /* Blog Layout */
  .blog-layout.with-sidebar {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  
  .blog-sidebar {
    position: static;
  }
  
  .sidebar-section {
    padding: 1rem !important;
    margin-bottom: 1rem;
  }
  
  /* Article Container */
  .article-container {
    padding: 1.5rem !important;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .reading-time {
    margin-left: 0;
  }
  
  /* Article Typography */
  .article-content h1 {
    font-size: 1.75rem !important;
  }
  
  .article-content h2 {
    font-size: 1.5rem !important;
  }
  
  .article-content h3 {
    font-size: 1.25rem !important;
  }
  
  .article-content p,
  .article-content li {
    font-size: 1rem !important;
  }
  
  .article-content blockquote {
    padding: 1rem !important;
    font-size: 1rem !important;
  }
  
  /* Stats Box */
  .stats-box {
    padding: 1.5rem !important;
  }
  
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .stat-number {
    font-size: 2rem !important;
  }
  
  /* Callout Boxes */
  .callout {
    padding: 1rem !important;
  }
  
  .callout-title {
    font-size: 1rem !important;
  }
  
  /* Tables */
  .data-table {
    font-size: 0.9rem !important;
  }
  
  .data-table th,
  .data-table td {
    padding: 0.75rem !important;
  }
  
  /* Article CTA */
  .article-cta {
    padding: 2rem 1.5rem !important;
  }
  
  .article-cta h3 {
    font-size: 1.5rem !important;
  }
  
  .article-cta p {
    font-size: 1rem !important;
  }
  
  /* CTA Buttons */
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .btn-demo,
  .btn-learn {
    width: 100% !important;
    padding: 16px !important;
    font-size: 16px !important;
    min-height: 44px;
  }
  
  /* Social Sharing */
  .social-sharing {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
  }
  
  .social-buttons {
    width: 100%;
    justify-content: flex-start;
  }
  
  /* Related Articles */
  .related-articles {
    margin-top: 2rem;
    padding-top: 2rem;
  }
  
  .related-articles h3 {
    font-size: 1.5rem !important;
  }
  
  .related-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .related-card {
    padding: 1.25rem !important;
  }
  
  /* Hub Hero */
  .hub-hero {
    padding: 3rem 16px !important;
  }
  
  .hub-hero h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  .hub-hero p {
    font-size: 1.05rem !important;
  }
  
  .hub-search {
    margin: 0 16px;
  }
  
  .hub-search input {
    font-size: 16px !important; /* Prevent iOS zoom */
    padding: 1rem 1rem 1rem 2.5rem !important;
  }
  
  .hub-search-icon {
    left: 1rem;
  }
  
  /* Category Section */
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .category-header h2 {
    font-size: 1.5rem !important;
  }
  
  /* Article Grid */
  .article-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .article-card-content {
    padding: 1.25rem !important;
  }
  
  .article-card h3 {
    font-size: 1.1rem !important;
  }
  
  .article-meta-inline {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  /* Blog Header */
  .blog-header {
    padding: 3rem 16px !important;
  }
  
  .blog-header h1 {
    font-size: 2rem !important;
  }
  
  .blog-header .subtitle {
    font-size: 1.05rem !important;
  }
  
  /* Typography scaling */
  h1 {
    font-size: 2rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  /* Ensure touch targets */
  a, button {
    min-height: 44px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .hub-hero h1 {
    font-size: 1.75rem !important;
  }
  
  .blog-header h1 {
    font-size: 1.75rem !important;
  }
  
  .article-content h1 {
    font-size: 1.5rem !important;
  }
  
  .stat-number {
    font-size: 1.75rem !important;
  }
  
  .blog-container,
  .container {
    padding: 0 12px !important;
  }
  
  .article-container {
    padding: 1rem !important;
  }
}

/* ============================================
   Enterprise Footer - Professional Design
   ============================================ */

.enterprise-footer {
  background: linear-gradient(135deg, #0a1f44 0%, #1a365d 100%) !important;
  color: white !important;
  padding: 60px 0 30px !important;
  margin-top: 0 !important;
}

.enterprise-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.enterprise-footer .footer-content {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 3rem !important;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.enterprise-footer .footer-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  text-align: left !important;
}

.enterprise-footer .footer-section h4 {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: #00d4ff !important;
  margin-bottom: 0.75rem !important;
}

.enterprise-footer .footer-section a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  transition: all 0.3s ease !important;
  padding: 0.25rem 0 !important;
  display: block !important;
}

.enterprise-footer .footer-section a:hover {
  color: #ffffff !important;
  padding-left: 0.5rem !important;
}

.enterprise-footer .footer-bottom {
  text-align: center !important;
  padding-top: 1.5rem !important;
}

.enterprise-footer .footer-bottom p {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .enterprise-footer {
    padding: 40px 16px 24px !important;
  }
  
  .enterprise-footer .footer-container {
    padding: 0 !important;
  }
  
  .enterprise-footer .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }
  
  .enterprise-footer .footer-section {
    align-items: center !important;
  }
  
  .enterprise-footer .footer-section a:hover {
    padding-left: 0 !important;
  }
}

@media (max-width: 480px) {
  .enterprise-footer .footer-content {
    gap: 1.5rem !important;
  }
  
  .enterprise-footer .footer-section h4 {
    font-size: 0.8rem !important;
  }
  
  .enterprise-footer .footer-section a {
    font-size: 0.9rem !important;
  }
}