/*
Theme Name: Let-All Blog
Theme URI: https://www.let-all.com/
Author: Learning Theory Alliance
Author URI: https://www.let-all.com/
Description: Custom blog theme aligned with the main let-all.com website.
Version: 1.0.3
Text Domain: letall-blog
*/

:root {
  --letall-bg: #f7f6f8;
  --letall-card-border: #e9e6eb;
  --letall-text: #444444;
  --letall-muted: #6c757d;
}

body {
  background: var(--letall-bg);
  color: var(--letall-text);
}

body.admin-bar #header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar #header {
    top: 46px;
  }
}

#site-main {
  min-height: 65vh;
  padding-top: 110px;
}

.letall-blog-section {
  padding: 40px 0 56px;
}

.letall-page-heading {
  margin-bottom: 24px;
}

.letall-page-heading h1 {
  margin: 0;
  font-size: 32px;
  color: var(--color-primary);
}

.letall-page-description {
  margin-top: 8px;
  color: var(--letall-muted);
}

.letall-post-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.letall-post-card {
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  border: 1px solid var(--letall-card-border);
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.letall-post-card:hover {
  border-color: #dcd8e2;
  background: #fcfbfd;
}

.letall-post-thumb {
  display: block;
  flex: 0 0 280px;
  max-width: 280px;
}

.letall-post-thumb img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
}

.letall-post-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 20px 24px;
}

.letall-post-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.3;
}

.letall-post-title a {
  color: #2d2430;
}

.letall-post-title a:hover,
.letall-post-title a:focus {
  color: var(--color-primary);
  text-decoration: none;
}

.letall-post-meta {
  margin-bottom: 14px;
  color: var(--letall-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.letall-post-excerpt {
  color: #515764;
  line-height: 1.75;
  font-size: 15px;
}

.letall-post-excerpt p {
  margin-bottom: 0;
}

.letall-read-more {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #5d001e;
  background: #5d001e;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: 0.2s ease;
}

.letall-read-more:hover,
.letall-read-more:focus {
  background: #ee4c7c;
  border-color: #ee4c7c;
  color: #fff;
  text-decoration: none;
}

.letall-pagination {
  margin-top: 30px;
}

.letall-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.letall-pagination .page-numbers {
  display: inline-block;
  min-width: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-heading);
  text-align: center;
}

.letall-pagination .page-numbers.current,
.letall-pagination .page-numbers:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.letall-single-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.letall-single-card {
  border-radius: 14px;
  border: 1px solid var(--letall-card-border);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.07);
  padding: 32px;
}

.letall-single-title {
  margin: 0 0 8px;
  font-size: 38px;
  line-height: 1.2;
  color: #2d2430;
}

.letall-single-meta {
  margin-bottom: 22px;
  color: var(--letall-muted);
  font-size: 13px;
  font-weight: 600;
}

.letall-single-thumbnail {
  margin: 0 0 24px;
}

.letall-single-thumbnail img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.letall-single-content {
  color: #3d3d44;
  line-height: 1.75;
  font-size: 17px;
}

.letall-single-content img.latex {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.letall-single-content h2,
.letall-single-content h3,
.letall-single-content h4 {
  margin-top: 28px;
}

.letall-post-nav {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.letall-post-nav a {
  color: var(--color-primary);
  font-weight: 600;
}

.letall-empty-state {
  border-radius: 14px;
  border: 1px solid var(--letall-card-border);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.07);
  padding: 32px;
}

.letall-footer-bottom {
  min-height: 62px;
}

@media (max-width: 1199px) {
  .letall-post-thumb {
    flex-basis: 240px;
    max-width: 240px;
  }

  .letall-post-title {
    font-size: 27px;
  }
}

@media (max-width: 991px) {
  #site-main {
    padding-top: 98px;
  }

  .letall-post-card {
    display: block;
  }

  .letall-post-thumb {
    max-width: 100%;
  }

  .letall-post-thumb img {
    height: 220px;
    min-height: 220px;
  }

  .letall-post-title {
    font-size: 25px;
  }

  .letall-single-card {
    padding: 24px;
  }

  .letall-single-title {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .letall-blog-section {
    padding: 30px 0 40px;
  }

  .letall-post-body {
    padding: 18px;
  }

  .letall-post-title {
    font-size: 22px;
  }

  .letall-single-card {
    padding: 20px;
  }

  .letall-single-title {
    font-size: 28px;
  }
}
