/* Weddifly — layout modeled on attached design: centered content column + right sidebar, card-style post list */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: #e9e9e9;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
}

a { color: #c0392b; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* Header */

.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: bold;
  color: #c0392b;
  letter-spacing: -0.5px;
}
.logo span { color: #333; }

.tagline {
  font-size: 12px;
  color: #767676;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-links {
  display: flex;
  gap: 14px;
}
.social-links a {
  color: #767676;
}
.social-links a:hover {
  color: #c0392b;
}

.main-nav {
  background: #2c2c2c;
}
.main-nav .header-inner { padding: 0 20px; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.main-nav li { border-right: 1px solid #444; }
.main-nav a {
  display: block;
  padding: 12px 16px;
  color: #eee;
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.main-nav a:hover { background: #c0392b; text-decoration: none; }

/* Layout */

.page-wrap {
  max-width: 960px;
  margin: 24px auto;
  padding: 0 20px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.content-col {
  flex: 1;
  min-width: 0;
  background: #fff;
  padding: 30px;
  border: 1px solid #ddd;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  align-self: flex-start;
}

.widget {
  background: #fff;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  padding: 16px;
}
.widget h3 {
  margin: 0 0 12px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #c0392b;
  padding-bottom: 8px;
  color: #333;
}

.popular-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.popular-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
  background: #ccc;
}
.popular-item a {
  font-size: 13px;
  color: #333;
  font-weight: bold;
  line-height: 1.4;
  display: block;
}
.popular-item a:hover { color: #c0392b; }
.popular-item .read-more {
  margin-top: 4px;
  font-size: 11px;
}

.about-widget p { font-size: 13px; color: #555; margin: 0; }

.newsletter-widget input[type="email"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  font-family: Arial, sans-serif;
}
.newsletter-widget button,
.btn {
  background: #c0392b;
  color: #fff;
  border: none;
  padding: 9px 16px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.newsletter-widget button:hover, .btn:hover { background: #a5281a; }

/* Page image hook — filled by assets/page-image.js */

.page-slot { margin-bottom: 20px; }
.page-slot:empty { margin-bottom: 0; }
.page-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border: 1px solid #ddd;
}

/* Post list / cards */

.post-card {
  border-bottom: 1px dashed #ccc;
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.post-card:last-child { border-bottom: none; margin-bottom: 0; }

.post-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
}
.post-title a { color: #222; }
.post-title a:hover { color: #c0392b; text-decoration: none; }

.post-meta {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #767676;
  margin-bottom: 12px;
}
.post-meta span { margin-right: 14px; }

.post-thumb { margin-bottom: 12px; border: 1px solid #eee; }

.read-more {
  display: inline-block;
  margin-top: 8px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c0392b;
  font-weight: bold;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  font-family: Arial, sans-serif;
  font-size: 13px;
}
.pagination-pages { display: flex; gap: 8px; }
.pagination-link {
  color: #555;
  padding: 4px 8px;
}
.pagination-link:hover { color: #c0392b; text-decoration: none; }
.pagination-current {
  padding: 4px 8px;
  font-weight: bold;
  color: #c0392b;
}

/* Single post */

.post-body h1 { font-size: 28px; margin-top: 0; }
.post-body h2 { font-size: 21px; margin-top: 32px; }
.post-body p { margin: 0 0 16px; }
.post-body blockquote {
  margin: 20px 0;
  padding: 4px 20px;
  border-left: 4px solid #c0392b;
  color: #555;
  font-style: italic;
}
.post-body-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border: 1px solid #ddd;
  margin: 24px 0;
}
.tldr {
  background: #fdf3f2;
  border: 1px solid #f1cdc9;
  padding: 14px 18px;
  margin: 20px 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
}
.tldr strong { color: #c0392b; }

/* Static pages */

.page-content h1 { margin-top: 0; }

/* Footer */

.site-footer {
  background: #2c2c2c;
  color: #aaa;
  margin-top: 30px;
  font-family: Arial, sans-serif;
  font-size: 13px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-newsletter { max-width: 360px; }
.footer-newsletter h4 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 15px;
  text-transform: uppercase;
}
.footer-newsletter form {
  display: flex;
  gap: 8px;
}
.footer-newsletter input[type="email"] {
  flex: 1;
  padding: 9px 10px;
  border: 1px solid #555;
  background: #1e1e1e;
  color: #eee;
  font-family: Arial, sans-serif;
}
.footer-newsletter .form-note {
  font-size: 11px;
  color: #aaa;
  margin-top: 8px;
}
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: #ccc; }
.footer-bottom {
  border-top: 1px solid #444;
  text-align: center;
  padding: 14px 20px;
  font-size: 12px;
  color: #aaa;
}
.footer-bottom a { color: #c0392b; }

.form-success {
  background: #eaf6ea;
  border: 1px solid #b7dfb7;
  color: #2b6b2b;
  padding: 10px 14px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  margin-top: 10px;
  display: none;
}
.form-success.visible { display: block; }

.header-mob-slot, .header-slot { display: none; }

@media (max-width: 720px) {
  .page-wrap { flex-direction: column; }
  .sidebar { width: 100%; position: static; order: -1; }
  .footer-inner { flex-direction: column; }
  .header-slot { display: none; }
  .header-mob-slot { display: block; width: 100%; margin-top: 20px; margin-bottom: 20px; }
  .site-header .header-inner { flex-direction: column; align-items: flex-start; }
  .social-links { display:none; }
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #636363;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}
.back-to-top:hover { background: #636363; }
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
