.magazine {
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --accent: #556b00;
  font-family: system-ui, sans-serif;
  color: var(--text);
}

/* Hide default theme header */
#header,
#headering {
  display: none !important;
}

#header + hr,
#headering + hr {
  display: none !important;
}

/* Magazine Header */
.magazine-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 24px 32px;
  margin-bottom: 32px;
  font-family: system-ui, sans-serif;
}

.magazine-header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.magazine-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.magazine-logo {
  max-width: 210px;
  height: auto;
  border-radius: 6px;
}

.magazine-title {
  font-size: 28px;
  font-weight: 400;
  margin: 0;
  color: var(--text);
  font-family: system-ui, sans-serif;
  font-stretch: condensed;
}

.magazine-nav {
  margin: 0;
}

.magazine-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}

.magazine-categories li a {
font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: system-ui, sans-serif;
  font-stretch: condensed;
  text-decoration: none;
}

.magazine-categories li a:hover {
  color: var(--accent);
  background: rgba(85, 107, 0, 0.1);
}

.magazine-categories li a.active {
  color: var(--accent);
  background: rgba(85, 107, 0, 0.1);
}

.magazine h1,
.magazine h2,
.magazine h3,
.magazine h4,
.magazine h5,
.magazine h6 {
  margin: 0;
}

.magazine a {
  text-decoration: none;
  color: inherit;
}

.magazine-container {
  max-width: 1200px;
  margin: auto;
  padding: 32px;
}

.magazine-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 32px;
}

/* Images */
.article-image {
  overflow: hidden;
  border-radius: 6px;
}

.magazine-hero .article-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 0.5rem;
  border-radius: 6px;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Text */
.magazine-hero h2 {
  font-size: 2.4rem;
  font-weight: 400;
  margin: 8px 0 10px;
}

.small-article h3 {
  font-size: 1.2rem;
}

.magazine-right h4 {
  font-size: 1rem;
}

.magazine-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Meta */
.meta,
.destacado-author {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Category */
.article-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(85, 107, 0, 0.1);
  padding: 4px 8px;
  margin-bottom: 6px;
  display: inline-block;
  font-weight: 600;
  border-radius: 4px;
      width: fit-content;
}

/* Right */
.section-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  border-bottom: 3px solid #eee;
  padding-bottom: 12px;
}

.destacado-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

/* Hover */
.article-link:hover h2,
.article-link:hover h3,
.article-link:hover h4 {
  color: var(--accent);
}

.destacado-link:hover h4 {
  color: var(--accent);
}

/* Mobile */
@media (max-width: 768px) {
  .magazine-grid {
    grid-template-columns: 1fr;
  }
}

/* CATEGORY SECTIONS */

.category-section {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid #e0e0e0;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.category-header h2 {
  font-size: 2.2rem;
  color: var(--accent);
  font-weight: 400;
}

.see-more {
  font-size: 0.9rem;
  border: 1px solid var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.see-more:hover {
  background: var(--accent);
  color: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.category-featured {
  grid-column: 1;
  display: flex;
  flex-direction: column;
}

.category-featured a {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  height: 100%;
  align-items: stretch;
}

.category-featured img {
  width: 70%;
  height: 350px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  order: 1;
}

.category-featured .article-category {
  align-self: flex-start;
}

.category-featured h3 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.category-featured-content {
  width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0;
  order: 2;
}

.category-featured .meta {
  margin-top: auto;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-item {
  display: flex;
  flex-direction: column;
}

.category-item-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.category-item-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.category-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-item-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

.category-item h4 {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* Magazine Footer */
.magazine-footer {
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  padding: 2rem 0;
  margin-top: 4rem;
}

.magazine-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.magazine-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.magazine-footer a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.magazine-footer a:hover {
  color: var(--accent);
}

/* Hide default theme header */
#header,
#headering {
  display: none !important;
}
