/* ===== BLOG.CSS - IJOER ENGINEERING JOURNAL ===== */
/* Updated to match custom.css brand colors (Navy/Cyan/Gold) */

:root {
  --primary: #03045e;           /* Deep navy - matches custom.css */
  --primary-dark: #020242;       /* Darker navy - matches custom.css */
  --primary-light: #1a1f7a;      /* Lighter navy - matches custom.css */
  --secondary: #0077b6;          /* Rich medium blue - matches custom.css */
  --secondary-dark: #005f92;     /* Darker blue - matches custom.css */
  --accent: #C59F1E;             /* Warm gold - matches custom.css */
  --accent-light: #dbb545;       /* Lighter gold */
  --text-light: #64748b;         /* Muted text - matches custom.css */
  --text-primary: #0f172a;       /* Dark navy-gray - matches custom.css */
  --bg-light: #f8fafc;           /* Clean technical background - matches custom.css */
  --card-bg: #ffffff;            /* Pure white - matches custom.css */
  --border-light: #e2e8f0;       /* Subtle borders - matches custom.css */
}

/* Hero Section - Updated to Navy/Cyan Gradient */
.blog-hero {
  background: linear-gradient(135deg, #03045e 0%, #0077b6 100%);
  color: white;
  padding: 60px 0;
  margin-bottom: 30px;
  border-bottom: 4px solid var(--accent);
  margin-top: 20px;
}

/* Missing styles - add these */
.blog-hero h1 {
  color: white;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-hero .lead {
  color: white;
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.95;
  max-width: 600px;
}

.blog-hero p {
  color: white;
}

.blog-welcome-badge {
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-search {
  max-width: 500px;
}

.blog-search .input-group {
  box-shadow: 0 4px 15px rgba(3, 4, 94, 0.2);
  border-radius: 50px;
  overflow: hidden;
}

.blog-search .form-control {
  border: none;
  padding: 0.8rem 1.5rem;
}

.blog-search .btn {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
}

.blog-search .btn:hover {
  background: var(--primary);
}

/* Section Title */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Featured Cards */
.featured-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
  box-shadow: 0 4px 15px rgba(3, 4, 94, 0.1);
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-no-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #03045e, #0077b6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(2, 2, 66, 0.95));
  padding: 1.5rem;
  color: white;
}

.featured-label {
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.featured-overlay h5 a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.featured-overlay h5 a:hover {
  color: var(--accent);
}

.featured-overlay small {
  color: rgba(255, 255, 255, 0.8);
}

.featured-overlay small i {
  color: var(--accent);
  margin-right: 0.3rem;
}

/* Blog Cards */
.blog-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(3, 4, 94, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(3, 4, 94, 0.15);
}

.blog-card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.blog-no-image {
  background: linear-gradient(135deg, #03045e, #0077b6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-category {
  background: linear-gradient(135deg, #0077b6, #03045e);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 1rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
}

.blog-category:hover {
  background: linear-gradient(135deg, #03045e, #0077b6);
  color: white;
  text-decoration: none;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.blog-title a {
  color: var(--primary-dark);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--secondary);
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.blog-meta i {
  color: var(--accent);
  margin-right: 0.3rem;
}

.blog-meta span {
  margin-right: 1rem;
}

.blog-read-more {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-read-more:hover {
  color: var(--primary);
  gap: 0.8rem;
  text-decoration: none;
}

/* Sidebar - Matches custom.css sidebar */
.sidebar-box {
  background: var(--sidebar-bg, #ffffff);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 15px rgba(3, 4, 94, 0.08);
  border-left: 4px solid var(--secondary);
  transition: transform 0.3s ease;
}

.sidebar-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(3, 4, 94, 0.12);
}

.sidebar-box h4 {
  color: var(--primary-dark);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list li:hover {
  background-color: var(--primary-soft, #EEF2FF);
  padding-left: 10px;
}

.sidebar-list a {
  color: var(--text-primary);
  text-decoration: none;
  display: block;
}

.sidebar-list a:hover {
  color: var(--secondary);
}

.popular-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.popular-item:last-child {
  border-bottom: none;
}

.popular-link {
  color: var(--primary-dark);
  font-weight: 500;
  text-decoration: none;
  display: block;
  margin-bottom: 0.2rem;
}

.popular-link:hover {
  color: var(--secondary);
}

.popular-item small {
  color: var(--text-light);
  font-size: 0.8rem;
}

.popular-item small i {
  color: var(--accent);
  margin-right: 0.3rem;
}

/* Pagination */
.pagination .page-link {
  color: var(--secondary);
  border: 1px solid var(--border-light);
  margin: 0 3px;
  border-radius: 6px;
}

.pagination .page-link:hover {
  background-color: var(--primary-soft, #EEF2FF);
  color: var(--primary);
  border-color: var(--secondary);
}

.pagination .active .page-link {
  background: var(--secondary);
  border-color: var(--secondary);
  color: white;
}

.pagination .active .page-link:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .blog-hero {
    padding: 40px 0;
    text-align: center;
  }
  
  .featured-card {
    height: 200px;
  }
  
  .sidebar-box {
    margin-bottom: 1.5rem;
  }
}

/* Dark mode support - matches custom.css */
@media (prefers-color-scheme: dark) {
  .blog-card {
    background: #343a40;
    border-color: #495057;
  }
  
  .blog-card-content {
    color: #f8f9fa;
  }
  
  .blog-title a {
    color: #f8f9fa;
  }
  
  .blog-title a:hover {
    color: var(--accent);
  }
  
  .blog-meta {
    border-bottom-color: #495057;
  }
  
  .sidebar-box {
    background: #343a40;
  }
  
  .sidebar-list li {
    border-bottom-color: #495057;
  }
  
  .sidebar-list li:hover {
    background-color: #2c3e50;
  }
  
  .popular-item {
    border-bottom-color: #495057;
  }
}

/* Print styles - matches custom.css */
@media print {
  .blog-hero,
  .blog-search,
  .sidebar-box,
  .pagination {
    display: none !important;
  }
  
  .blog-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}