/* Base styles */
:root {
  --primary-color: #4a6cf7;
  --secondary-color: #6c757d;
  --background-color: #ffffff;
  --text-color: #333333;
  --link-color: #4a6cf7;
  --border-color: #e9ecef;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  font-size: 1rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.pagination ul {
  padding: 0;
}
.pagination li {
  display: inline;
}

.pagination a,
.pagination span {
  display: inline;
  min-width: 0;
  padding: 0 0.5em;
  margin: 0;
  text-decoration: none;
  /* color: var(--primary-color); */
  background: none;
  border: none;
  border-radius: 0;
  font-size: 1em;
  transition: color 0.2s;
}

.pagination a:hover,
.pagination a:focus {
  color: var(--primary-color);
  text-decoration: underline;
  background: none;
}

.pagination .active,
.pagination .current {
  color: var(--primary-color);
  font-weight: bold;
  border: none;
  border-bottom: 2px solid var(--primary-color);
  background: none;
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

.pagination .disabled {
  color: #bbb;
  background: none;
  border: none;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}

@media (max-width: 480px) {
  .pagination {
    gap: 0.2rem;
  }
  .pagination a,
  .pagination span {
    font-size: 0.95em;
    padding: 0.3em 0.6em;
  }
}

/* Utility classes */
.hidden-mobile {
  display: none !important;
}
@media (min-width: 600px) {
  .hidden-mobile {
    display: initial !important;
  }
}
@media (max-width: 599px) {
  .hidden-desktop {
    display: none !important;
  }
}
@media (min-width: 600px) {
  .hidden-desktop {
    display: initial !important;
  }
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .container {
    max-width: 700px;
    padding: 0 2rem;
  }
}
@media (min-width: 900px) {
  .container {
    max-width: 1200px;
    padding: 0 3rem;
  }
}

/* Header */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.2rem 0 0.5rem 0;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}
@media (min-width: 600px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    padding: 2rem 0;
  }
}

.site-logo a {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.site-logo-img {
  max-height: 40px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (min-width: 600px) {
  .site-logo-img {
    max-height: 50px;
    max-width: 180px;
  }
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.75rem;
}
@media (min-width: 600px) {
  .site-nav ul {
    flex-direction: row;
    width: auto;
    gap: 1.5rem;
  }
}

.site-nav li {
  margin-left: 0;
}
@media (min-width: 600px) {
  .site-nav li {
    margin-left: 1.5rem;
  }
}

.site-nav a {
  text-decoration: none;
  color: var(--text-color);
}

.site-nav a:hover {
  color: var(--primary-color);
}

/* Content */
.content {
  padding: 1.5rem 0;
}
@media (min-width: 600px) {
  .content {
    padding: 2.5rem 0;
  }
}
@media (min-width: 900px) {
  .content {
    padding: 3.5rem 0;
  }
}

/* Post */
.post {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .post {
    max-width: 700px;
  }
}
@media (min-width: 900px) {
  .post {
    max-width: 800px;
  }
}
@media (min-width: 1200px) {
  .post {
    max-width: 1200px;
  }
}

.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
@media (min-width: 600px) {
  .post-title {
    font-size: 2.2rem;
  }
}
@media (min-width: 900px) {
  .post-title {
    font-size: 2.5rem;
  }
}

.post-meta {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.post-content {
  font-size: 1rem;
}
@media (min-width: 600px) {
  .post-content {
    font-size: 1.1rem;
  }
}
@media (min-width: 900px) {
  .post-content {
    font-size: 1.15rem;
  }
}

.post-content h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
}

.post-content h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.post-content p {
  margin-bottom: 20px;
}

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

.post-content a:hover {
  text-decoration: underline;
}

.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid #eee;
  padding: 20px 0;
  text-align: center;
  color: var(--secondary-color);
  font-size: 0.9rem;
}
.footer-nav {
  margin-bottom: 10px;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li {
  display: inline;
  margin-right: 10px;
}
.footer-nav a {
  color: var(--secondary-color);
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .post-title {
    font-size: 2rem;
  }

  .post-content {
    font-size: 1rem;
  }
}

/* Special Pages Styles */

/* About Page */
.about-page .page-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Contact Page */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: #f8f9fa;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"] {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
  background-color: #3a5bd9;
}

/* Legal Pages (Privacy & Terms) */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

.legal-content ul,
.legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.last-updated {
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

/* Homepage */
.hero {
  padding: 4rem 0;
  text-align: center;
  background-color: #f8f9fa;
  margin-bottom: 3rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.site-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.site-description {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.latest-articles {
  margin: 4rem 0;
}

.latest-articles h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.article-card {
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 1.5rem;
}

.article-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.article-excerpt {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.author-bio {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-family: system-ui, sans-serif;
}
.author-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.author-details {
  max-width: 600px;
}
.author-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.author-name .author-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.author-name .author-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
.author-text {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: #4b5563;
}
.author-socials {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}
.social-icon {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  background: #f3f4f6;
  color: #1f2937;
  text-decoration: none;
  transition: background 0.2s;
}
.social-icon:hover {
  background: #e5e7eb;
}

/* About page author section styles */
.about-author-section {
  margin: 2rem 0 3rem;
}

.author-profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.about-author-section .author-avatar img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-intro {
  flex: 1;
}

.about-author-section .author-name {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.author-tagline {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-style: italic;
}

.about-author-section .author-socials {
  margin-top: 1rem;
}
.image-holder {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .author-profile {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .about-author-section .author-socials {
    justify-content: center;
  }
}
.breadcrumb {
  font-size: 0.95rem;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--color-muted);
  font-weight: 400;
}

figure:has(img[src^="https://placehold.co"]), .image-holder:has(img[src^="https://placehold.co"])
{
  display: none;
}
