/*
Theme Name: Mekong TESOL Editable
Theme URI: https://mekongtesol.vn/
Author: Mekong TESOL Team & AI Assistant
Description: Editable classic WordPress theme compatible with MKT Editor Core, supporting visual inline customizer on Home, Pages, Categories & Archives.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mekong-tesol-editable
*/

/* Posts Grid for Category, Archive & Blog */
.mkt-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.mkt-post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.mkt-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 45, 79, 0.1);
  border-color: var(--accent-cyan, #0b6e99);
}

.mkt-post-thumb {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #f1f5f9;
}

.mkt-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mkt-post-card:hover .mkt-post-thumb img {
  transform: scale(1.05);
}

.mkt-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy, #0b2d4f), var(--navy-dark, #061d33));
  color: #ffffff;
  gap: 8px;
}

.mkt-thumb-placeholder i {
  font-size: 2.5rem;
  color: var(--gold-primary, #d7ad44);
}

.mkt-thumb-placeholder span {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
}

.mkt-post-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mkt-post-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 12px;
}

.mkt-post-meta span i {
  color: var(--gold-primary, #d7ad44);
  margin-right: 4px;
}

.mkt-post-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.mkt-post-title a {
  color: var(--navy, #0b2d4f);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mkt-post-title a:hover {
  color: var(--accent-cyan, #0b6e99);
}

.mkt-post-excerpt {
  font-size: 0.95rem;
  color: var(--text, #172033);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.mkt-readmore-btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Pagination */
.mkt-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  list-style: none;
  padding: 0;
}

.mkt-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border-light, #e2e8f0);
  color: var(--navy, #0b2d4f);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mkt-pagination .page-numbers.current,
.mkt-pagination .page-numbers:hover {
  background: var(--navy, #0b2d4f);
  color: #ffffff;
  border-color: var(--navy, #0b2d4f);
}

/* Single Post styling */
.single-post-body p {
  margin-bottom: 1.6em;
}

.single-post-body h2, .single-post-body h3 {
  color: var(--navy, #0b2d4f);
  margin-top: 1.8em;
  margin-bottom: 0.8em;
}

.single-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}
