/*
Theme Name: TechCult Theme
Description: A custom WordPress theme based on Bootstrap 5.
Author: Assistant
Version: 1.0
Text Domain: techcult-theme
*/

:root {
  --primary-color: #cc0000; /* The red border color */
  --body-bg: #f8f9fa; /* slightly off-white for background if needed, but looks white in screenshots */
  --body-color: #333;
  --link-color: #333;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--body-color);
  background-color: #fff;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

/* Header */
.site-header {
  border-bottom: 3px solid var(--primary-color);
  padding: 15px 0;
}
.site-branding img {
  max-height: 40px; /* Adjust based on logo size */
}
.navbar-nav .nav-link {
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* Post Cards */
.post-card {
  margin-bottom: 20px;
}
.post-card .card-img-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background-color: #eee; /* Placeholder bg */
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card .category-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px;
}
.post-card .post-title {
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}
.post-card .post-title a {
  color: #000;
}
.post-card .post-meta {
  font-size: 0.8rem;
  color: #666;
  margin-top: 5px;
}

/* Stats Section */
.stats-section {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  margin: 40px 0;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.stat-item .icon {
  font-size: 2.5rem;
  color: #6c757d;
}
.stat-item h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}
.stat-item p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
}

/* Section Titles */
.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title a {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: normal;
}

/* Single Post */
.single-post-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 15px;
}
.single-post-meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.single-post-meta strong {
  color: #000;
}
.single-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}
.single-post-content h2, .single-post-content h3 {
  margin-top: 30px;
  font-weight: bold;
}
.single-post-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

/* Sidebar */
.author-bio-widget {
  text-align: center;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.author-bio-widget img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #eee;
}
.author-bio-widget h4 {
  font-weight: bold;
  margin-bottom: 10px;
}
.author-bio-widget p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

.sidebar-widget {
  margin-bottom: 30px;
}
.sidebar-widget h4 {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}
.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.sidebar-widget ul li:last-child {
  border-bottom: none;
}
.sidebar-widget ul li a {
  color: #333;
}

/* Footer */
.site-footer {
  background-color: #f8f9fa;
  padding: 60px 0 20px;
  margin-top: 60px;
  border-top: 1px solid #eee;
}
.footer-logo {
  max-width: 150px;
  margin-bottom: 10px;
}
.footer-tagline {
  color: #666;
  margin-bottom: 20px;
}
.footer-social-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #007bff; /* default link blue for social, or whatever matches */
}
.footer-widget h5 {
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}
.footer-widget ul {
  list-style: none;
  padding: 0;
}
.footer-widget ul li {
  margin-bottom: 10px;
}
.footer-widget ul li a {
  color: #666;
}
.footer-copyright {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  margin-top: 40px;
  text-align: left;
  font-size: 0.85rem;
  color: #666;
}

/* Dropdown Menu */
.navbar-nav .dropdown-menu {
  border: 1px solid #eee;
  border-radius: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  padding: 0;
  margin-top: 0;
}
.navbar-nav .dropdown-item {
  text-align: center;
  font-weight: 700;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  color: #000;
}
.navbar-nav .dropdown-item:last-child {
  border-bottom: none;
}
.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus,
.navbar-nav .dropdown-item.active {
  background-color: transparent;
  color: var(--primary-color);
}
.navbar-nav .nav-link.dropdown-toggle.show {
  color: var(--primary-color);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  width: 100%;
}
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  position: relative;
}
.nav-links .prev {
  position: absolute;
  left: 0;
  color: #555;
}
.nav-links .next {
  position: absolute;
  right: 0;
  color: #555;
}
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #777;
  color: #444;
  text-decoration: none;
  min-width: 40px;
  height: 40px;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.nav-links .page-numbers:not(.prev):not(.next):hover {
  background-color: #f5f5f5;
}
.nav-links .page-numbers.current {
  background-color: #2d2a32;
  color: #fff;
  border-color: #2d2a32;
}
.nav-links .prev, .nav-links .next {
  border: 1px solid #777;
  padding: 0 15px;
  min-width: auto;
}
.nav-links .prev:hover, .nav-links .next:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.single-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  overflow-wrap: break-word;
}

.single-post-content img,
.single-post-content .wp-block-image img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 20px 0;
}

.single-post-content figure,
.single-post-content .wp-block-image {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.single-post-content .alignwide,
.single-post-content .alignfull {
  max-width: 100%;
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.single-post-content .alignfull img,
.single-post-content .alignwide img {
  width: 100%;
  max-width: 100%;
}
