/*
Theme Name: Seap Educa (Educación y Cursos)
Theme URI: https://example.com/
Author: AI Theme Generator
Author URI: https://example.com/
Description: Plantilla optimizada para SEO diseñada para el nicho: Educación y Cursos. Incluye blog grid y estilos de página.
Version: 1.2.0
Text Domain: seo-niche-theme
*/

/* Variables */
:root {
  --primary-color: #0056D2;
  --secondary-color: #FFC107;
  --background-color: #FAFAFA;
  --text-color: #202124;
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Inter', sans-serif; 
}

/* Base Styles */
body {
  font-family: var(--body-font);
  background-color: var(--background-color, #fff);
  color: var(--text-color, #333);
  margin: 0;
  line-height: 1.7; /* Better readability */
  font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #111;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header.site-header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--text-color);
  text-decoration: none !important;
}

.main-menu ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu a {
  color: #444;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.main-menu a:hover {
  color: var(--primary-color);
}

/* BLOG GRID (Home/Archive) */
.blog-header {
  text-align: center;
  padding: 4rem 0;
  background: #f9f9f9;
  margin-bottom: 3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.post-thumbnail {
  height: 240px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.post-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.post-title a {
  color: #111;
  text-decoration: none;
}

.post-excerpt {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.read-more {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* SINGLE POST */
.single-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.single-header {
  text-align: center;
  margin-bottom: 3rem;
}

.single-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.single-meta {
  color: #666;
  font-size: 0.9rem;
}

.single-thumbnail {
  margin-bottom: 3rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.single-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content {
  font-size: 1.125rem; /* 18px for better reading */
  color: #2c2c2c;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content h2 {
  margin-top: 2.5rem;
  font-size: 2rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

/* Utility Classes used by Generator */
.btn-cta {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #fff !important;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  font-weight: bold;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

/* WP Alignments */
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
