/*
Theme Name: Asambleas BID Chile 2025
Theme URI: https://asambleasbid-chile25.cl
Description: Custom theme matching the Asambleas BID Chile 2025 website design.
Version: 1.0
Author: Asambleas BID Chile
Text Domain: asambleas-bid
*/

:root {
  --primary-color: #446084;
  --secondary-color: #d26e4b;
  --success-color: #7a9c59;
  --alert-color: #b20000;
  --accent-green: rgb(86, 187, 28);
  --link-color: #334862;
  --link-hover: #111;
  --nav-color: #333399;
  --header-bg: #ffffff;
  --header-bottom-bg: #f1f1f1;
  --footer-bg: rgba(0, 0, 0, 0.61);
  --body-font: 'Lato', sans-serif;
  --heading-font: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.3;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* Header */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid #e0e0e0;
}

.header-top-bar {
  background: var(--header-bottom-bg);
  padding: 6px 0;
  font-size: 0.85rem;
  text-align: right;
}

.header-top-bar a {
  color: var(--nav-color);
}

.header-top-bar a:hover {
  color: var(--link-hover);
}

.header-top-bar .separator {
  color: var(--nav-color);
  margin: 0 6px;
}

.header-main {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  width: 200px;
  flex-shrink: 0;
}

.header-logo img {
  max-height: 90px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.9rem;
}

.header-nav a {
  color: var(--nav-color);
  font-family: var(--body-font);
  font-weight: 700;
  padding: 0 10px;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--link-hover);
}

.header-nav .nav-separator {
  color: var(--nav-color);
  font-weight: 400;
}

/* Main Content Area */
.site-main {
  padding: 40px 0;
}

.content-area {
  max-width: 900px;
  margin: 0 auto;
}

/* Blog Posts List */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.post-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-card-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-content {
  padding: 25px 30px;
}

.post-card-meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 10px;
}

.post-card-meta .meta-separator {
  margin: 0 8px;
  color: #ccc;
}

.post-card-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.post-card-title a {
  color: var(--primary-color);
}

.post-card-title a:hover {
  color: var(--secondary-color);
}

.post-card-excerpt {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.read-more-link {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more-link:hover {
  color: var(--primary-color);
}

/* Single Post */
.single-post-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--header-bottom-bg);
}

.single-post-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.single-post-meta {
  font-size: 0.85rem;
  color: #888;
}

.single-post-meta .meta-separator {
  margin: 0 8px;
  color: #ccc;
}

.single-post-thumbnail {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

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

.single-post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.single-post-content p {
  margin-bottom: 1.2em;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--primary-color);
}

.single-post-content img {
  border-radius: 6px;
  margin: 1em 0;
}

.single-post-content blockquote {
  border-left: 4px solid var(--secondary-color);
  padding: 15px 20px;
  margin: 1.5em 0;
  background: #f9f9f9;
  font-style: italic;
  color: #555;
}

.single-post-content ul,
.single-post-content ol {
  margin: 1em 0 1em 1.5em;
}

.single-post-content li {
  margin-bottom: 0.3em;
}

.back-to-blog {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}

.back-to-blog a {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.9rem;
}

.back-to-blog a:hover {
  color: var(--primary-color);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #e8e8e8;
}

.pagination a {
  display: inline-block;
  padding: 10px 22px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

.pagination a:hover {
  background: var(--link-hover);
  color: #fff;
}

/* Page Title Section */
.page-title-section {
  background: var(--primary-color);
  padding: 30px 0;
  text-align: center;
}

.page-title-section h1 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  padding: 40px 0;
  text-align: center;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.footer-logos img {
  max-height: 60px;
  width: auto;
  opacity: 0.9;
}

.footer-contact {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

/* No Posts */
.no-posts {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

.no-posts h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-main {
    height: 70px;
    flex-direction: column;
    height: auto;
    padding: 15px 0;
    gap: 10px;
  }

  .header-logo img {
    max-height: 50px;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    font-size: 0.78rem;
  }

  .header-nav a {
    padding: 3px 6px;
  }

  .post-card-image {
    height: 200px;
  }

  .post-card-content {
    padding: 18px 20px;
  }

  .post-card-title {
    font-size: 1.15rem;
  }

  .single-post-title {
    font-size: 1.5rem;
  }

  .page-title-section h1 {
    font-size: 1.4rem;
  }

  .footer-logos {
    gap: 20px;
  }

  .footer-logos img {
    max-height: 40px;
  }
}
