/*
Theme Name: BotPlus Blog
Description: Custom blog theme for BotPlus
Version: 1.0
Author: BotPlus
*/

:root {
  --primary-color: #364f5d;
  --secondary-color: #5a7d8f;
  --accent-color: #2a9d8f;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --border-color: #e9ecef;
}

/* Scoped reset - only for blog-specific elements to avoid conflicts */
.blog-section *,
.blog-hero *,
.filter-tabs * {
  box-sizing: border-box;
}

/* Don't override body styles globally - use blog-page class if needed */
body.blog-page {
  font-family: 'Poppins', sans-serif;
}

/* Header Styles - REMOVED: Using site-wide header styles from main.css */
/* .header, .logo, .navmenu styles removed to avoid conflicts with main site header */

/* Fix navigation and logo link underlines - ensure no text-decoration */
#header .navmenu a,
#header .navmenu a:hover,
#header .navmenu a:focus,
#header .logo,
#header .logo:hover,
#header .logo:focus {
  text-decoration: none !important;
}

/* Fix footer link underlines */
#footer .logo,
#footer .logo:hover,
#footer .logo:focus,
#footer a,
#footer a:hover,
#footer a:focus {
  text-decoration: none !important;
}

/* Hero Section - Minimalist */
.blog-hero {
  padding: 100px 0 80px;
  text-align: center;
  background: white;
  border-bottom: 1px solid var(--border-color);
}

.blog-hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--primary-color);
  letter-spacing: -1px;
}

.blog-hero p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
}

/* Filter Tabs */
.filter-tabs {
  background: white;
  padding: 30px 0;
  position: sticky;
  top: 70px;
  z-index: 999;
  border-bottom: 2px solid var(--border-color);
}

.tabs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.categories-container {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-light);
  border-radius: 8px;
  position: relative;
}

.tab-btn:hover {
  color: var(--primary-color);
  background: rgba(54, 79, 93, 0.05);
}

.tab-btn.active {
  color: var(--primary-color);
  background: rgba(54, 79, 93, 0.1);
}

.search-container {
  display: flex;
  align-items: center;
  max-width: 300px;
  flex: 1;
  margin-left: auto;
}

.search-container .form-control {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.search-container .btn {
  border-radius: 0 8px 8px 0;
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
  border-left: none;
}

.date-filter-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.date-filter-container select {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: white;
  font-size: 15px;
  cursor: pointer;
}

/* Blog Section - Magazine Style */
.blog-section {
  padding: 60px 0 100px;
  background: white;
}

/* Hero Article */
.hero-article {
  margin-bottom: 80px;
  position: relative;
}

.hero-article-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-article-image {
  position: relative;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.hero-article-image img,
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-article-text h2 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-article-text h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.hero-article-text h2 a:hover {
  color: var(--primary-color);
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-light);
  align-items: center;
}

.article-category {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-article-text p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 30px;
}

.read-article-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid var(--primary-color);
}

.read-article-btn:hover {
  background: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Grid Articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
  border: 1px solid var(--border-color);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.article-image {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.article-content {
  padding: 28px;
}

.article-content .article-category {
  margin-bottom: 12px;
  display: inline-block;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.article-content h3 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.article-content h3 a:hover {
  color: var(--primary-color);
}

.article-excerpt {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.article-date {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.read-more-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s;
}

.read-more-link:hover {
  gap: 10px;
}

/* Highlight Carousel Styling */
.highlight-slide {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

.highlight-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.highlight-badge {
  background: var(--accent-color);
  color: white;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.highlight-slide h5 {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
}

/* Carousel indicators styling */
.carousel-indicators {
  position: static !important;
  margin-top: 20px;
  margin-bottom: 0;
  justify-content: center;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #d3d3d3;
  border: none;
  opacity: 1 !important;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: var(--primary-color);
  transform: scale(1.3);
}

/* Pagination Section */
.pagination-section {
  text-align: center;
  margin-top: 60px;
}

.pagination .page-link {
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  margin: 0 5px;
  border-radius: 8px;
  transition: all 0.3s;
}

.pagination .page-link:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Footer - REMOVED: Using site-wide footer styles from main.css */
/* .footer styles removed to avoid conflicts with main site footer */

/* Social links - kept for potential use in blog content areas */
.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* Single Post Styles */
.blog-post-single {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 40px;
}

.post-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin: 20px 0;
  color: var(--text-dark);
}

.post-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-dark);
}

.post-content p {
  margin-bottom: 24px;
}

.post-content h2 {
  font-size: 32px;
  margin: 40px 0 20px;
  color: var(--primary-color);
}

.post-content h3 {
  font-size: 24px;
  margin: 30px 0 15px;
  color: var(--text-dark);
}

.featured-image img {
  width: 100%;
  border-radius: 12px;
}

.post-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.tags-label {
  font-weight: 600;
  color: var(--primary-color);
}

.post-tags a {
  background: var(--bg-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  margin-right: 8px;
  display: inline-block;
  margin-bottom: 8px;
}

/* Minimal Pagination Styles */
.pagination-section {
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-section .btn-sm {
    padding: 6px 12px;
    min-width: 38px;
    font-size: 14px;
    font-weight: 500;
}

.pagination-section .btn-outline-primary {
    border-color: var(--border-color);
    color: var(--text-light);
}

.pagination-section .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-section .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .pagination-section .btn-sm {
        padding: 5px 10px;
        min-width: 36px;
        font-size: 13px;
    }
    
    .pagination-section .d-flex {
        gap: 4px !important;
    }
}

/* Responsive */
@media (max-width: 991px) {
  .hero-article-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-article-image {
    height: 400px;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* .navmenu responsive styles removed - using site-wide header styles */

  .blog-hero h1 {
    font-size: 42px;
  }

  .hero-article-text h2 {
    font-size: 32px;
  }

  .post-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .categories-container {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .tabs-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-container {
    margin-left: 0;
    margin-top: 15px;
    width: 100%;
    max-width: none;
  }

  .date-filter-container {
    margin-top: 15px;
    width: 100%;
  }

  .blog-hero h1 {
    font-size: 36px;
  }

  .hero-article-text h2 {
    font-size: 28px;
  }

  .post-title {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .highlight-slide {
    padding: 20px 16px !important;
  }
  
  .highlight-slide h5 {
    font-size: 1.15rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
  
}