/*
Theme Name: Fiesta Mexicana
Theme URI: https://brilloa.com/
Author: Max
Author URI: https://brilloa.com/
Description: Tema mexicana vibrante para sitio de fiestas
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fiesta-mexicana
*/

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #FFF8DC 0%, #FFE4B5 100%);
  min-height: 100vh;
}

a {text-decoration: none;}
a:hover {text-decoration: underline;}
article p a {text-decoration: underline; font-weight: 500;}

.header::before {
    content: "🎊🎉🎊🎉🎊";
    font-size: 2rem;
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    letter-spacing: 30px;
    opacity: 0.25;
}

.header {
  background: #eb5700;
  color: white;
  padding: 30px 20px 10px 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
  border-bottom: 5px solid #FFD700;
  margin-bottom: 30px;
}

.title {
  font-size: 2.8em;
  font-weight: bold;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.title a {
  color: white;
  text-decoration: none;
}

.description {
  font-size: 1.25em;
  font-style: italic;
  font-weight: 500;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}


main {
  flex: 1;
  min-width: 0;
}

article {
	padding: 25px;
    color: #555;
    line-height: 1.6;
    font-size: 18px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

article h2 {
    color: #a63e00;
    margin-top: 20px;
    margin-bottom: 10px;
}

h1 {
    font-size: 30px;
    color: #2c3e50;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 12px;
}	

article p {
	margin: 10px 0;
}

strong {
	font-weight: 500;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 22px;
  font-size: 0.95em;
}

.meta_dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #fdf0e2;
  color: #c2530a;
  border: 1px solid #f3cd9e;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9em;
}

.meta_dt::before {
  content: "📅";
  font-size: 0.9em;
}

.meta {
  color: #8a7d6a;
}

.meta a {
  color: #a63e00;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.meta a:hover {
  border-bottom-color: #a63e00;
}



.card {
	margin-top: 20px;
	padding: 25px;
    color: #555;
    line-height: 1.6;
    font-size: 18px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card h2 {
	border-bottom: 2px solid #95a5a6;
    padding-bottom: 5px;	
    margin-bottom: 15px;
}

.thumb {
	float: right;
	margin: 0 0 0.3em 1em;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

blockquote {
  position: relative;
  margin: 30px 0;
  padding: 20px 30px 20px 55px;
  background: #fdf6e3;
  border-left: 5px solid #e8590c;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.05em;
  line-height: 1.6;
  color: #4a3f35;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  left: 12px;
  top: 5px;
  font-family: Georgia, serif;
  font-size: 3em;
  color: #e8590c;
  opacity: 0.35;
  line-height: 1;
}

blockquote p {
  margin: 0;
}

blockquote footer,
blockquote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.85em;
  color: #a63e00;
}

blockquote footer::before {
  content: "— ";
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.97em;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

article table thead {
  background: #e8590c;
}

article table thead th {
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border: none;
}

article table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0e4c8;
  color: #4a3f35;
  vertical-align: top;
}

article table tbody tr:nth-child(odd) {
  background: #fffdf6;
}

article table tbody tr:nth-child(even) {
  background: #fbf3dd;
}

article table tbody tr:hover {
  background: #f9e4c4;
  transition: background 0.15s ease;
}

article table tbody td:first-child {
  font-weight: 600;
  color: #a63e00;
}


article ul {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

article ul li {
  position: relative;
  padding: 8px 0 8px 32px;
  line-height: 1.6;
  color: #4a3f35;
  border-bottom: 1px dashed #f0e0bf;
}

article ul li:last-child {
  border-bottom: none;
}

article ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 10px;
  height: 10px;
  background: #e8590c;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.15);
}

article ul li strong {
  color: #a63e00;
}

article ul ul {
  margin: 8px 0 0 0;
}

article ul ul li {
  border-bottom: none;
  padding-left: 28px;
}

article ul ul li::before {
  width: 6px;
  height: 6px;
  background: transparent;
  border: 2px solid #e8590c;
  box-shadow: none;
}


article ol {
  counter-reset: item;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

article ol li {
  counter-increment: item;
  position: relative;
  padding: 8px 0 8px 40px;
  line-height: 1.6;
  color: #4a3f35;
  border-bottom: 1px dashed #f0e0bf;
}

article ol li:last-child {
  border-bottom: none;
}

article ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8590c;
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.15);
}

article ol li strong {
  color: #a63e00;
}

/* вложенные нумерованные списки */
article ol ol {
  margin: 8px 0 0 0;
}

article ol ol li::before {
  background: transparent;
  color: #e8590c;
  border: 2px solid #e8590c;
  box-shadow: none;
}

aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #fffdf6;
  border: 1px solid #f3e3bf;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

aside h3 {
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  color: #006847;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 2px solid #f3e3bf;
}

.months-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  gap: 6px 20px;
}

.months-grid a {
  position: relative;
  color: #a63e00;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
}

.months-grid a:hover {
  color: #e8590c;
  background: #fdf0e2;
}

aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

aside li a {
  position: relative;
  display: block;
  color: #a63e00;
  font-weight: 500;
  text-decoration: none;
  padding: 7px 8px 7px 16px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
}

aside li a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #e8590c;
  font-weight: 700;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

aside li a:hover {
  color: #e8590c;
  background: #fdf0e2;
  padding-left: 20px;
}

aside li a:hover::before {
  opacity: 1;
}

@media (max-width: 968px) {
  .container {
    flex-direction: column;
  }
  aside {
    flex-direction: row;
    gap: 20px;
    width: 100%;
    padding: 0 20px;
  }
  aside nav,
  aside .categories-wrapper {
    flex: 1;
    min-width: 0;
  }
  .months-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  aside .categories-wrapper ul {
    columns: 4;
    column-gap: 15px;
  }
  .footer-wrap {
    padding-right: 0px;
  }
}
@media (max-width: 768px) {
  aside .categories-wrapper ul {
    columns: 3;
  }
}
@media (max-width: 600px) {
  aside {
    flex-direction: column;
  }
  .months-grid {
    grid-template-columns: 1fr 1fr;
  }
  aside .categories-wrapper ul {
    columns: 2;
  }
}








.comments-area {
    margin-top: 30px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 15px;
    background: white;
    padding: 30px;
    border-radius: 12px;
}


.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  background: white;
  color: #D32F2F;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid #D32F2F;
  font-weight: 600;
  transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
  background: #D32F2F;
  color: white;
  transform: translateY(-2px);
}


footer {
	margin-top: 20px;
	background: #006847;
	color: white;
	text-align: center;
	padding: 30px 20px;
	border-top: 5px solid #FFD700;
	box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

.footer-wrap{
	max-width: 1200px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	margin: 0 auto;
	padding-right:200px;
}

.footer-left,
.footer-right {
	flex: 1;
	min-width: 250px;
}

.footer-right a {
	color: white;
	margin: 7px;
	white-space: nowrap;
}

@media (max-width: 968px) {
    .container {
        flex-direction: column;
    }
	/*
	aside {
		flex-direction: row;
		gap: 20px;
		width: 100%;
		padding: 0 20px;
	}
	aside nav,
	aside .categories-wrapper {
		flex: 1;
		min-width: 0;
	}
	aside .categories-wrapper ul {
		columns: 4;
		column-gap: 15px;
	}
	*/
	.footer-wrap{
		padding-right:0px;
	}	
}
/*
@media (max-width: 768px) {
	aside .categories-wrapper ul {
		columns: 3;
	}
}

@media (max-width: 600px) {
	aside {
		flex-direction: column;
	}
	aside .categories-wrapper ul {
		columns: 2;
	}
}
*/