/* Theme 5 - Card-based Style */

/* Typography - Bold & Modern */
body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #2c3e50;
  background: #f0f4f8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #1a252f;
  line-height: 1.3;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }

.blog-header-logo {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

/* Bright Color Scheme */
:root {
  --card-primary: #3498db;
  --card-secondary: #e74c3c;
  --card-accent: #f39c12;
  --card-success: #2ecc71;
  --card-dark: #2c3e50;
  --card-light: #ecf0f1;
}

.btn.btn-primary,
.btn-primary {
  background: var(--card-primary) !important;
  border-color: var(--card-primary) !important;
  border-radius: 25px !important;
  padding: 0.75rem 2rem;
  font-weight: 600;
  color: white !important;
}

.btn.btn-primary:hover,
.btn-primary:hover {
  background: #2980b9 !important;
  border-color: #2980b9 !important;
  color: white !important;
}

.btn.btn-light,
.btn-light {
  background: white !important;
  border-color: white !important;
  color: var(--card-dark) !important;
}

.btn.btn-light:hover,
.btn-light:hover {
  background: var(--card-light) !important;
  border-color: var(--card-light) !important;
  color: var(--card-dark) !important;
}

/* Header - Colorful */
.header-theme5 {
  background: linear-gradient(135deg, var(--card-primary) 0%, var(--card-secondary) 100%);
  color: white;
  padding: 2rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-theme5 .blog-header-logo {
  color: white;
  text-decoration: none;
}

.header-theme5 .nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.header-theme5 .nav-link:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* Card Styles - Rounded & Colorful */
.card-theme5 {
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.card-theme5:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-theme5 img {
  border-radius: 20px 20px 0 0;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-theme5 .card-body {
  padding: 1.75rem;
}

.card-theme5 .badge {
  display: inline-block;
  background: var(--card-primary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.card-theme5 h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card-theme5 h3 a {
  color: var(--card-dark);
  text-decoration: none;
}

.card-theme5 h3 a:hover {
  color: var(--card-primary);
}

.card-theme5 .card-text {
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card-theme5 .card-meta {
  font-size: 0.85rem;
  color: #95a5a6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 2px solid #ecf0f1;
}

/* Hero Card */
.hero-card {
  background: linear-gradient(135deg, var(--card-primary) 0%, var(--card-secondary) 100%);
  color: white;
  border-radius: 25px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.hero-card h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-card .lead {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.hero-card img {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Featured Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Article List Cards */
.article-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.article-card img {
  border-radius: 15px;
  width: 100%;
  margin-bottom: 1.5rem;
}

.article-card h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.article-card h2 a {
  color: var(--card-dark);
  text-decoration: none;
}

.article-card h2 a:hover {
  color: var(--card-primary);
}

.article-card .article-meta {
  color: #95a5a6;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-card .article-excerpt {
  color: #7f8c8d;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.article-card .read-more {
  display: inline-block;
  background: var(--card-primary);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.article-card .read-more:hover {
  background: var(--card-secondary);
  transform: scale(1.05);
}

/* Aside - Card Style */
.theme-5 aside {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.theme-5 aside h4 {
  font-size: 1.25rem;
  color: var(--card-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--card-primary);
}

.theme-5 aside .list-unstyled li {
  padding: 1rem 0;
  border-bottom: 1px solid #ecf0f1;
}

.theme-5 aside .list-unstyled li:last-child {
  border-bottom: none;
}

.theme-5 aside a {
  color: #34495e;
  text-decoration: none;
  font-weight: 500;
}

.theme-5 aside a:hover {
  color: var(--card-primary);
}

.theme-5 aside img {
  border-radius: 10px;
}

/* Footer */
footer {
  background: var(--card-dark);
  color: white;
  padding: 3rem 0;
  margin-top: 4rem;
  border-radius: 25px 25px 0 0;
}

footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: white;
}

/* Pagination */
.blog-pagination .btn {
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  margin: 0 0.5rem;
}

/* Post Page */
.post-header-card {
  background: linear-gradient(135deg, var(--card-primary) 0%, var(--card-secondary) 100%);
  color: white;
  border-radius: 25px;
  padding: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.post-header-card .category-tag {
  display: inline-block;
  background: rgba(255,255,255,0.3);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.post-header-card h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.post-header-card .post-meta {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}

.post-content-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  font-size: 1.1rem;
  line-height: 1.9;
}

.post-content-card img {
  border-radius: 15px;
  width: 100%;
  margin: 2rem 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Category Page */
.category-header-card {
  background: linear-gradient(135deg, var(--card-accent) 0%, var(--card-success) 100%);
  color: white;
  border-radius: 25px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.category-header-card h1 {
  color: white;
  font-size: 2.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-header-logo {
    font-size: 1.5rem;
  }
  
  .hero-card h1 {
    font-size: 2rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
}
